@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.
Files changed (645) hide show
  1. package/node_modules/@oozcitak/dom/LICENSE +21 -0
  2. package/node_modules/@oozcitak/dom/README.md +32 -0
  3. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.d.ts +21 -0
  4. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js +79 -0
  5. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js.map +1 -0
  6. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.d.ts +8 -0
  7. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js +23 -0
  8. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js.map +1 -0
  9. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.d.ts +8 -0
  10. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js +76 -0
  11. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js.map +1 -0
  12. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.d.ts +19 -0
  13. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js +140 -0
  14. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js.map +1 -0
  15. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.d.ts +192 -0
  16. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js +303 -0
  17. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js.map +1 -0
  18. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.d.ts +61 -0
  19. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js +108 -0
  20. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js.map +1 -0
  21. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.d.ts +72 -0
  22. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js +288 -0
  23. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js.map +1 -0
  24. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.d.ts +21 -0
  25. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js +61 -0
  26. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js.map +1 -0
  27. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.d.ts +29 -0
  28. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js +161 -0
  29. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js.map +1 -0
  30. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.d.ts +121 -0
  31. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js +608 -0
  32. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js.map +1 -0
  33. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.d.ts +146 -0
  34. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js +995 -0
  35. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js.map +1 -0
  36. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.d.ts +33 -0
  37. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js +142 -0
  38. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js.map +1 -0
  39. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.d.ts +66 -0
  40. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js +1173 -0
  41. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js.map +1 -0
  42. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.d.ts +43 -0
  43. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js +276 -0
  44. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js.map +1 -0
  45. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.d.ts +25 -0
  46. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js +85 -0
  47. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js.map +1 -0
  48. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.d.ts +68 -0
  49. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js +543 -0
  50. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js.map +1 -0
  51. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.d.ts +15 -0
  52. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js +105 -0
  53. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js.map +1 -0
  54. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.d.ts +27 -0
  55. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js +125 -0
  56. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js.map +1 -0
  57. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.d.ts +9 -0
  58. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js +69 -0
  59. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js.map +1 -0
  60. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.d.ts +82 -0
  61. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js +829 -0
  62. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js.map +1 -0
  63. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.d.ts +8 -0
  64. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js +21 -0
  65. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js.map +1 -0
  66. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.d.ts +57 -0
  67. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js +316 -0
  68. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js.map +1 -0
  69. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.d.ts +30 -0
  70. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js +226 -0
  71. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js.map +1 -0
  72. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.d.ts +8 -0
  73. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js +62 -0
  74. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js.map +1 -0
  75. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.d.ts +268 -0
  76. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js +853 -0
  77. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js.map +1 -0
  78. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.d.ts +17 -0
  79. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js +147 -0
  80. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js.map +1 -0
  81. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.d.ts +8 -0
  82. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js +14 -0
  83. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js.map +1 -0
  84. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.d.ts +25 -0
  85. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js +164 -0
  86. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js.map +1 -0
  87. package/node_modules/@oozcitak/dom/lib/algorithm/index.d.ts +28 -0
  88. package/node_modules/@oozcitak/dom/lib/algorithm/index.js +34 -0
  89. package/node_modules/@oozcitak/dom/lib/algorithm/index.js.map +1 -0
  90. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.d.ts +15 -0
  91. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js +32 -0
  92. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js.map +1 -0
  93. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.d.ts +23 -0
  94. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js +59 -0
  95. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js.map +1 -0
  96. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.d.ts +23 -0
  97. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js +70 -0
  98. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js.map +1 -0
  99. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.d.ts +45 -0
  100. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js +118 -0
  101. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js.map +1 -0
  102. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.d.ts +21 -0
  103. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js +51 -0
  104. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js.map +1 -0
  105. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.d.ts +35 -0
  106. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js +132 -0
  107. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js.map +1 -0
  108. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.d.ts +16 -0
  109. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js +165 -0
  110. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js.map +1 -0
  111. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.d.ts +21 -0
  112. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js +52 -0
  113. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js.map +1 -0
  114. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.d.ts +16 -0
  115. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js +60 -0
  116. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js.map +1 -0
  117. package/node_modules/@oozcitak/dom/lib/dom/DOMException.d.ts +171 -0
  118. package/node_modules/@oozcitak/dom/lib/dom/DOMException.js +347 -0
  119. package/node_modules/@oozcitak/dom/lib/dom/DOMException.js.map +1 -0
  120. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.d.ts +48 -0
  121. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js +100 -0
  122. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js.map +1 -0
  123. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.d.ts +29 -0
  124. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js +149 -0
  125. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js.map +1 -0
  126. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.d.ts +46 -0
  127. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js +312 -0
  128. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js.map +1 -0
  129. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.d.ts +32 -0
  130. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js +103 -0
  131. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js.map +1 -0
  132. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.d.ts +116 -0
  133. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js +545 -0
  134. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js.map +1 -0
  135. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.d.ts +11 -0
  136. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js +17 -0
  137. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js.map +1 -0
  138. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.d.ts +39 -0
  139. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js +109 -0
  140. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js.map +1 -0
  141. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.d.ts +132 -0
  142. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js +714 -0
  143. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js.map +1 -0
  144. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.d.ts +74 -0
  145. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js +313 -0
  146. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js.map +1 -0
  147. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.d.ts +30 -0
  148. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js +133 -0
  149. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js.map +1 -0
  150. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.d.ts +44 -0
  151. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js +157 -0
  152. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js.map +1 -0
  153. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.d.ts +22 -0
  154. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js +184 -0
  155. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js.map +1 -0
  156. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.d.ts +73 -0
  157. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js +116 -0
  158. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js.map +1 -0
  159. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.d.ts +34 -0
  160. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js +112 -0
  161. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js.map +1 -0
  162. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.d.ts +50 -0
  163. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js +64 -0
  164. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js.map +1 -0
  165. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.d.ts +252 -0
  166. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js +891 -0
  167. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js.map +1 -0
  168. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.d.ts +34 -0
  169. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js +86 -0
  170. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js.map +1 -0
  171. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.d.ts +46 -0
  172. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js +198 -0
  173. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js.map +1 -0
  174. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.d.ts +49 -0
  175. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js +188 -0
  176. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js.map +1 -0
  177. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.d.ts +12 -0
  178. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js +53 -0
  179. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js.map +1 -0
  180. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.d.ts +9 -0
  181. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js +31 -0
  182. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js.map +1 -0
  183. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.d.ts +24 -0
  184. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js +158 -0
  185. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js.map +1 -0
  186. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.d.ts +25 -0
  187. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js +59 -0
  188. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js.map +1 -0
  189. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.d.ts +71 -0
  190. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js +649 -0
  191. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js.map +1 -0
  192. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.d.ts +33 -0
  193. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js +82 -0
  194. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js.map +1 -0
  195. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.d.ts +16 -0
  196. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js +35 -0
  197. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js.map +1 -0
  198. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.d.ts +13 -0
  199. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js +48 -0
  200. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js.map +1 -0
  201. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.d.ts +28 -0
  202. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js +109 -0
  203. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js.map +1 -0
  204. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.d.ts +23 -0
  205. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js +41 -0
  206. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js.map +1 -0
  207. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.d.ts +36 -0
  208. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js +249 -0
  209. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js.map +1 -0
  210. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.d.ts +26 -0
  211. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js +57 -0
  212. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js.map +1 -0
  213. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.d.ts +11 -0
  214. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js +31 -0
  215. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js.map +1 -0
  216. package/node_modules/@oozcitak/dom/lib/dom/index.d.ts +36 -0
  217. package/node_modules/@oozcitak/dom/lib/dom/index.js +102 -0
  218. package/node_modules/@oozcitak/dom/lib/dom/index.js.map +1 -0
  219. package/node_modules/@oozcitak/dom/lib/dom/interfaces.d.ts +2218 -0
  220. package/node_modules/@oozcitak/dom/lib/dom/interfaces.js +91 -0
  221. package/node_modules/@oozcitak/dom/lib/dom/interfaces.js.map +1 -0
  222. package/node_modules/@oozcitak/dom/lib/index.d.ts +3 -0
  223. package/node_modules/@oozcitak/dom/lib/index.js +11 -0
  224. package/node_modules/@oozcitak/dom/lib/index.js.map +1 -0
  225. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.d.ts +11 -0
  226. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js +37 -0
  227. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js.map +1 -0
  228. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.d.ts +26 -0
  229. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js +240 -0
  230. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js.map +1 -0
  231. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.d.ts +159 -0
  232. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js +512 -0
  233. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js.map +1 -0
  234. package/node_modules/@oozcitak/dom/lib/parser/index.d.ts +1 -0
  235. package/node_modules/@oozcitak/dom/lib/parser/index.js +6 -0
  236. package/node_modules/@oozcitak/dom/lib/parser/index.js.map +1 -0
  237. package/node_modules/@oozcitak/dom/lib/parser/interfaces.d.ts +131 -0
  238. package/node_modules/@oozcitak/dom/lib/parser/interfaces.js +18 -0
  239. package/node_modules/@oozcitak/dom/lib/parser/interfaces.js.map +1 -0
  240. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.d.ts +27 -0
  241. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js +56 -0
  242. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js.map +1 -0
  243. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.d.ts +52 -0
  244. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js +151 -0
  245. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js.map +1 -0
  246. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.d.ts +166 -0
  247. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js +1479 -0
  248. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js.map +1 -0
  249. package/node_modules/@oozcitak/dom/lib/serializer/index.d.ts +1 -0
  250. package/node_modules/@oozcitak/dom/lib/serializer/index.js +6 -0
  251. package/node_modules/@oozcitak/dom/lib/serializer/index.js.map +1 -0
  252. package/node_modules/@oozcitak/dom/lib/serializer/interfaces.d.ts +15 -0
  253. package/node_modules/@oozcitak/dom/lib/serializer/interfaces.js +3 -0
  254. package/node_modules/@oozcitak/dom/lib/serializer/interfaces.js.map +1 -0
  255. package/node_modules/@oozcitak/dom/lib/util/Cast.d.ts +12 -0
  256. package/node_modules/@oozcitak/dom/lib/util/Cast.js +26 -0
  257. package/node_modules/@oozcitak/dom/lib/util/Cast.js.map +1 -0
  258. package/node_modules/@oozcitak/dom/lib/util/EmptySet.d.ts +13 -0
  259. package/node_modules/@oozcitak/dom/lib/util/EmptySet.js +61 -0
  260. package/node_modules/@oozcitak/dom/lib/util/EmptySet.js.map +1 -0
  261. package/node_modules/@oozcitak/dom/lib/util/Guard.d.ts +135 -0
  262. package/node_modules/@oozcitak/dom/lib/util/Guard.js +192 -0
  263. package/node_modules/@oozcitak/dom/lib/util/Guard.js.map +1 -0
  264. package/node_modules/@oozcitak/dom/lib/util/index.d.ts +3 -0
  265. package/node_modules/@oozcitak/dom/lib/util/index.js +9 -0
  266. package/node_modules/@oozcitak/dom/lib/util/index.js.map +1 -0
  267. package/node_modules/@oozcitak/dom/package.json +72 -0
  268. package/node_modules/@oozcitak/infra/LICENSE +21 -0
  269. package/node_modules/@oozcitak/infra/README.md +13 -0
  270. package/node_modules/@oozcitak/infra/lib/Base64.d.ts +12 -0
  271. package/node_modules/@oozcitak/infra/lib/Base64.js +82 -0
  272. package/node_modules/@oozcitak/infra/lib/Base64.js.map +1 -0
  273. package/node_modules/@oozcitak/infra/lib/Byte.d.ts +6 -0
  274. package/node_modules/@oozcitak/infra/lib/Byte.js +15 -0
  275. package/node_modules/@oozcitak/infra/lib/Byte.js.map +1 -0
  276. package/node_modules/@oozcitak/infra/lib/ByteSequence.d.ts +45 -0
  277. package/node_modules/@oozcitak/infra/lib/ByteSequence.js +171 -0
  278. package/node_modules/@oozcitak/infra/lib/ByteSequence.js.map +1 -0
  279. package/node_modules/@oozcitak/infra/lib/CodePoints.d.ts +82 -0
  280. package/node_modules/@oozcitak/infra/lib/CodePoints.js +85 -0
  281. package/node_modules/@oozcitak/infra/lib/CodePoints.js.map +1 -0
  282. package/node_modules/@oozcitak/infra/lib/JSON.d.ts +24 -0
  283. package/node_modules/@oozcitak/infra/lib/JSON.js +123 -0
  284. package/node_modules/@oozcitak/infra/lib/JSON.js.map +1 -0
  285. package/node_modules/@oozcitak/infra/lib/List.d.ts +101 -0
  286. package/node_modules/@oozcitak/infra/lib/List.js +325 -0
  287. package/node_modules/@oozcitak/infra/lib/List.js.map +1 -0
  288. package/node_modules/@oozcitak/infra/lib/Map.d.ts +87 -0
  289. package/node_modules/@oozcitak/infra/lib/Map.js +308 -0
  290. package/node_modules/@oozcitak/infra/lib/Map.js.map +1 -0
  291. package/node_modules/@oozcitak/infra/lib/Namespace.d.ts +6 -0
  292. package/node_modules/@oozcitak/infra/lib/Namespace.js +9 -0
  293. package/node_modules/@oozcitak/infra/lib/Namespace.js.map +1 -0
  294. package/node_modules/@oozcitak/infra/lib/Queue.d.ts +13 -0
  295. package/node_modules/@oozcitak/infra/lib/Queue.js +22 -0
  296. package/node_modules/@oozcitak/infra/lib/Queue.js.map +1 -0
  297. package/node_modules/@oozcitak/infra/lib/Set.d.ts +136 -0
  298. package/node_modules/@oozcitak/infra/lib/Set.js +467 -0
  299. package/node_modules/@oozcitak/infra/lib/Set.js.map +1 -0
  300. package/node_modules/@oozcitak/infra/lib/Stack.d.ts +13 -0
  301. package/node_modules/@oozcitak/infra/lib/Stack.js +22 -0
  302. package/node_modules/@oozcitak/infra/lib/Stack.js.map +1 -0
  303. package/node_modules/@oozcitak/infra/lib/String.d.ts +129 -0
  304. package/node_modules/@oozcitak/infra/lib/String.js +472 -0
  305. package/node_modules/@oozcitak/infra/lib/String.js.map +1 -0
  306. package/node_modules/@oozcitak/infra/lib/index.d.ts +13 -0
  307. package/node_modules/@oozcitak/infra/lib/index.js +34 -0
  308. package/node_modules/@oozcitak/infra/lib/index.js.map +1 -0
  309. package/node_modules/@oozcitak/infra/package.json +54 -0
  310. package/node_modules/@oozcitak/url/LICENSE +21 -0
  311. package/node_modules/@oozcitak/url/README.md +27 -0
  312. package/node_modules/@oozcitak/url/lib/URLAlgorithm.d.ts +267 -0
  313. package/node_modules/@oozcitak/url/lib/URLAlgorithm.js +2758 -0
  314. package/node_modules/@oozcitak/url/lib/URLAlgorithm.js.map +1 -0
  315. package/node_modules/@oozcitak/url/lib/URLImpl.d.ts +53 -0
  316. package/node_modules/@oozcitak/url/lib/URLImpl.js +377 -0
  317. package/node_modules/@oozcitak/url/lib/URLImpl.js.map +1 -0
  318. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.d.ts +38 -0
  319. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js +303 -0
  320. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js.map +1 -0
  321. package/node_modules/@oozcitak/url/lib/index.d.ts +2 -0
  322. package/node_modules/@oozcitak/url/lib/index.js +7 -0
  323. package/node_modules/@oozcitak/url/lib/index.js.map +1 -0
  324. package/node_modules/@oozcitak/url/lib/interfaces.d.ts +195 -0
  325. package/node_modules/@oozcitak/url/lib/interfaces.js +31 -0
  326. package/node_modules/@oozcitak/url/lib/interfaces.js.map +1 -0
  327. package/node_modules/@oozcitak/url/package.json +55 -0
  328. package/node_modules/@oozcitak/util/LICENSE +21 -0
  329. package/node_modules/@oozcitak/util/README.md +10 -0
  330. package/node_modules/@oozcitak/util/lib/CompareCache.d.ts +32 -0
  331. package/node_modules/@oozcitak/util/lib/CompareCache.js +59 -0
  332. package/node_modules/@oozcitak/util/lib/CompareCache.js.map +1 -0
  333. package/node_modules/@oozcitak/util/lib/FixedSizeSet.d.ts +64 -0
  334. package/node_modules/@oozcitak/util/lib/FixedSizeSet.js +174 -0
  335. package/node_modules/@oozcitak/util/lib/FixedSizeSet.js.map +1 -0
  336. package/node_modules/@oozcitak/util/lib/Lazy.d.ts +18 -0
  337. package/node_modules/@oozcitak/util/lib/Lazy.js +34 -0
  338. package/node_modules/@oozcitak/util/lib/Lazy.js.map +1 -0
  339. package/node_modules/@oozcitak/util/lib/ObjectCache.d.ts +71 -0
  340. package/node_modules/@oozcitak/util/lib/ObjectCache.js +181 -0
  341. package/node_modules/@oozcitak/util/lib/ObjectCache.js.map +1 -0
  342. package/node_modules/@oozcitak/util/lib/StringWalker.d.ts +49 -0
  343. package/node_modules/@oozcitak/util/lib/StringWalker.js +105 -0
  344. package/node_modules/@oozcitak/util/lib/StringWalker.js.map +1 -0
  345. package/node_modules/@oozcitak/util/lib/index.d.ts +178 -0
  346. package/node_modules/@oozcitak/util/lib/index.js +439 -0
  347. package/node_modules/@oozcitak/util/lib/index.js.map +1 -0
  348. package/node_modules/@oozcitak/util/package.json +50 -0
  349. package/node_modules/@xmldom/is-dom-node/LICENSE.md +21 -0
  350. package/node_modules/@xmldom/is-dom-node/README.md +91 -0
  351. package/node_modules/@xmldom/is-dom-node/dist/index.d.ts +33 -0
  352. package/node_modules/@xmldom/is-dom-node/dist/index.js +91 -0
  353. package/node_modules/@xmldom/is-dom-node/dist/index.js.map +1 -0
  354. package/node_modules/@xmldom/is-dom-node/package.json +69 -0
  355. package/node_modules/@xmldom/xmldom/CHANGELOG.md +468 -0
  356. package/node_modules/@xmldom/xmldom/LICENSE +8 -0
  357. package/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
  358. package/node_modules/@xmldom/xmldom/index.d.ts +43 -0
  359. package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +2 -0
  360. package/node_modules/@xmldom/xmldom/lib/conventions.js +203 -0
  361. package/node_modules/@xmldom/xmldom/lib/dom-parser.js +322 -0
  362. package/node_modules/@xmldom/xmldom/lib/dom.js +1879 -0
  363. package/node_modules/@xmldom/xmldom/lib/entities.js +2166 -0
  364. package/node_modules/@xmldom/xmldom/lib/index.js +4 -0
  365. package/node_modules/@xmldom/xmldom/lib/sax.js +662 -0
  366. package/node_modules/@xmldom/xmldom/package.json +71 -0
  367. package/node_modules/@xmldom/xmldom/readme.md +356 -0
  368. package/node_modules/esprima/ChangeLog +235 -0
  369. package/node_modules/esprima/LICENSE.BSD +21 -0
  370. package/node_modules/esprima/README.md +46 -0
  371. package/node_modules/esprima/bin/esparse.js +139 -0
  372. package/node_modules/esprima/bin/esvalidate.js +236 -0
  373. package/node_modules/esprima/dist/esprima.js +6709 -0
  374. package/node_modules/esprima/package.json +112 -0
  375. package/node_modules/node-forge/LICENSE +331 -0
  376. package/node_modules/node-forge/README.md +2071 -0
  377. package/node_modules/node-forge/dist/forge.all.min.js +2 -0
  378. package/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
  379. package/node_modules/node-forge/dist/forge.min.js +2 -0
  380. package/node_modules/node-forge/dist/forge.min.js.map +1 -0
  381. package/node_modules/node-forge/dist/prime.worker.min.js +2 -0
  382. package/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
  383. package/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
  384. package/node_modules/node-forge/lib/aes.js +1091 -0
  385. package/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
  386. package/node_modules/node-forge/lib/asn1-validator.js +91 -0
  387. package/node_modules/node-forge/lib/asn1.js +1503 -0
  388. package/node_modules/node-forge/lib/baseN.js +186 -0
  389. package/node_modules/node-forge/lib/cipher.js +230 -0
  390. package/node_modules/node-forge/lib/cipherModes.js +999 -0
  391. package/node_modules/node-forge/lib/des.js +496 -0
  392. package/node_modules/node-forge/lib/ed25519.js +1072 -0
  393. package/node_modules/node-forge/lib/forge.js +13 -0
  394. package/node_modules/node-forge/lib/form.js +149 -0
  395. package/node_modules/node-forge/lib/hmac.js +146 -0
  396. package/node_modules/node-forge/lib/http.js +1346 -0
  397. package/node_modules/node-forge/lib/index.all.js +16 -0
  398. package/node_modules/node-forge/lib/index.js +33 -0
  399. package/node_modules/node-forge/lib/jsbn.js +1264 -0
  400. package/node_modules/node-forge/lib/kem.js +168 -0
  401. package/node_modules/node-forge/lib/log.js +319 -0
  402. package/node_modules/node-forge/lib/md.all.js +13 -0
  403. package/node_modules/node-forge/lib/md.js +11 -0
  404. package/node_modules/node-forge/lib/md5.js +289 -0
  405. package/node_modules/node-forge/lib/mgf.js +12 -0
  406. package/node_modules/node-forge/lib/mgf1.js +57 -0
  407. package/node_modules/node-forge/lib/oids.js +179 -0
  408. package/node_modules/node-forge/lib/pbe.js +1023 -0
  409. package/node_modules/node-forge/lib/pbkdf2.js +211 -0
  410. package/node_modules/node-forge/lib/pem.js +237 -0
  411. package/node_modules/node-forge/lib/pkcs1.js +276 -0
  412. package/node_modules/node-forge/lib/pkcs12.js +1078 -0
  413. package/node_modules/node-forge/lib/pkcs7.js +1260 -0
  414. package/node_modules/node-forge/lib/pkcs7asn1.js +410 -0
  415. package/node_modules/node-forge/lib/pki.js +102 -0
  416. package/node_modules/node-forge/lib/prime.js +297 -0
  417. package/node_modules/node-forge/lib/prime.worker.js +168 -0
  418. package/node_modules/node-forge/lib/prng.js +419 -0
  419. package/node_modules/node-forge/lib/pss.js +241 -0
  420. package/node_modules/node-forge/lib/random.js +191 -0
  421. package/node_modules/node-forge/lib/rc2.js +410 -0
  422. package/node_modules/node-forge/lib/rsa.js +1949 -0
  423. package/node_modules/node-forge/lib/sha1.js +319 -0
  424. package/node_modules/node-forge/lib/sha256.js +327 -0
  425. package/node_modules/node-forge/lib/sha512.js +561 -0
  426. package/node_modules/node-forge/lib/socket.js +287 -0
  427. package/node_modules/node-forge/lib/ssh.js +236 -0
  428. package/node_modules/node-forge/lib/tls.js +4282 -0
  429. package/node_modules/node-forge/lib/tlssocket.js +249 -0
  430. package/node_modules/node-forge/lib/util.js +2652 -0
  431. package/node_modules/node-forge/lib/x509.js +3242 -0
  432. package/node_modules/node-forge/lib/xhr.js +738 -0
  433. package/node_modules/node-forge/package.json +123 -0
  434. package/node_modules/sprintf-js/.npmignore +1 -0
  435. package/node_modules/sprintf-js/LICENSE +24 -0
  436. package/node_modules/sprintf-js/README.md +88 -0
  437. package/node_modules/sprintf-js/bower.json +14 -0
  438. package/node_modules/sprintf-js/demo/angular.html +20 -0
  439. package/node_modules/sprintf-js/dist/angular-sprintf.min.js +4 -0
  440. package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
  441. package/node_modules/sprintf-js/dist/angular-sprintf.min.map +1 -0
  442. package/node_modules/sprintf-js/dist/sprintf.min.js +4 -0
  443. package/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
  444. package/node_modules/sprintf-js/dist/sprintf.min.map +1 -0
  445. package/node_modules/sprintf-js/gruntfile.js +36 -0
  446. package/node_modules/sprintf-js/package.json +22 -0
  447. package/node_modules/sprintf-js/src/angular-sprintf.js +18 -0
  448. package/node_modules/sprintf-js/src/sprintf.js +208 -0
  449. package/node_modules/sprintf-js/test/test.js +82 -0
  450. package/node_modules/xml-crypto/LICENSE +22 -0
  451. package/node_modules/xml-crypto/README.md +557 -0
  452. package/node_modules/xml-crypto/lib/c14n-canonicalization.d.ts +39 -0
  453. package/node_modules/xml-crypto/lib/c14n-canonicalization.js +230 -0
  454. package/node_modules/xml-crypto/lib/c14n-canonicalization.js.map +1 -0
  455. package/node_modules/xml-crypto/lib/enveloped-signature.d.ts +7 -0
  456. package/node_modules/xml-crypto/lib/enveloped-signature.js +43 -0
  457. package/node_modules/xml-crypto/lib/enveloped-signature.js.map +1 -0
  458. package/node_modules/xml-crypto/lib/exclusive-canonicalization.d.ts +38 -0
  459. package/node_modules/xml-crypto/lib/exclusive-canonicalization.js +246 -0
  460. package/node_modules/xml-crypto/lib/exclusive-canonicalization.js.map +1 -0
  461. package/node_modules/xml-crypto/lib/hash-algorithms.d.ts +13 -0
  462. package/node_modules/xml-crypto/lib/hash-algorithms.js +47 -0
  463. package/node_modules/xml-crypto/lib/hash-algorithms.js.map +1 -0
  464. package/node_modules/xml-crypto/lib/index.d.ts +5 -0
  465. package/node_modules/xml-crypto/lib/index.js +28 -0
  466. package/node_modules/xml-crypto/lib/index.js.map +1 -0
  467. package/node_modules/xml-crypto/lib/signature-algorithms.d.ts +47 -0
  468. package/node_modules/xml-crypto/lib/signature-algorithms.js +86 -0
  469. package/node_modules/xml-crypto/lib/signature-algorithms.js.map +1 -0
  470. package/node_modules/xml-crypto/lib/signed-xml.d.ts +225 -0
  471. package/node_modules/xml-crypto/lib/signed-xml.js +960 -0
  472. package/node_modules/xml-crypto/lib/signed-xml.js.map +1 -0
  473. package/node_modules/xml-crypto/lib/types.d.ts +125 -0
  474. package/node_modules/xml-crypto/lib/types.js +57 -0
  475. package/node_modules/xml-crypto/lib/types.js.map +1 -0
  476. package/node_modules/xml-crypto/lib/utils.d.ts +65 -0
  477. package/node_modules/xml-crypto/lib/utils.js +256 -0
  478. package/node_modules/xml-crypto/lib/utils.js.map +1 -0
  479. package/node_modules/xml-crypto/node_modules/xpath/LICENSE +22 -0
  480. package/node_modules/xml-crypto/node_modules/xpath/README.md +133 -0
  481. package/node_modules/xml-crypto/node_modules/xpath/docs/XPathEvaluator.md +62 -0
  482. package/node_modules/xml-crypto/node_modules/xpath/docs/XPathResult.md +47 -0
  483. package/node_modules/xml-crypto/node_modules/xpath/docs/function resolvers.md +88 -0
  484. package/node_modules/xml-crypto/node_modules/xpath/docs/namespace resolvers.md +69 -0
  485. package/node_modules/xml-crypto/node_modules/xpath/docs/parsed expressions.md +21 -0
  486. package/node_modules/xml-crypto/node_modules/xpath/docs/variable resolvers.md +89 -0
  487. package/node_modules/xml-crypto/node_modules/xpath/docs/xpath methods.md +39 -0
  488. package/node_modules/xml-crypto/node_modules/xpath/package.json +39 -0
  489. package/node_modules/xml-crypto/node_modules/xpath/test.js +1186 -0
  490. package/node_modules/xml-crypto/node_modules/xpath/xpath.d.ts +51 -0
  491. package/node_modules/xml-crypto/node_modules/xpath/xpath.js +4938 -0
  492. package/node_modules/xml-crypto/package.json +73 -0
  493. package/node_modules/xmlbuilder2/CHANGELOG.md +309 -0
  494. package/node_modules/xmlbuilder2/LICENSE +21 -0
  495. package/node_modules/xmlbuilder2/README.md +183 -0
  496. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.d.ts +236 -0
  497. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js +108 -0
  498. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js.map +1 -0
  499. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.d.ts +17 -0
  500. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js +26 -0
  501. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js.map +1 -0
  502. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.d.ts +124 -0
  503. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js +782 -0
  504. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js.map +1 -0
  505. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.d.ts +143 -0
  506. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js +841 -0
  507. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js.map +1 -0
  508. package/node_modules/xmlbuilder2/lib/builder/dom.d.ts +8 -0
  509. package/node_modules/xmlbuilder2/lib/builder/dom.js +67 -0
  510. package/node_modules/xmlbuilder2/lib/builder/dom.js.map +1 -0
  511. package/node_modules/xmlbuilder2/lib/builder/index.d.ts +4 -0
  512. package/node_modules/xmlbuilder2/lib/builder/index.js +15 -0
  513. package/node_modules/xmlbuilder2/lib/builder/index.js.map +1 -0
  514. package/node_modules/xmlbuilder2/lib/constants.d.ts +1 -0
  515. package/node_modules/xmlbuilder2/lib/constants.js +4 -0
  516. package/node_modules/xmlbuilder2/lib/constants.js.map +1 -0
  517. package/node_modules/xmlbuilder2/lib/index.d.ts +1 -0
  518. package/node_modules/xmlbuilder2/lib/index.js +10 -0
  519. package/node_modules/xmlbuilder2/lib/index.js.map +1 -0
  520. package/node_modules/xmlbuilder2/lib/interfaces.d.ts +1355 -0
  521. package/node_modules/xmlbuilder2/lib/interfaces.js +76 -0
  522. package/node_modules/xmlbuilder2/lib/interfaces.js.map +1 -0
  523. package/node_modules/xmlbuilder2/lib/readers/BaseReader.d.ts +109 -0
  524. package/node_modules/xmlbuilder2/lib/readers/BaseReader.js +167 -0
  525. package/node_modules/xmlbuilder2/lib/readers/BaseReader.js.map +1 -0
  526. package/node_modules/xmlbuilder2/lib/readers/JSONReader.d.ts +14 -0
  527. package/node_modules/xmlbuilder2/lib/readers/JSONReader.js +38 -0
  528. package/node_modules/xmlbuilder2/lib/readers/JSONReader.js.map +1 -0
  529. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.d.ts +15 -0
  530. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js +168 -0
  531. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js.map +1 -0
  532. package/node_modules/xmlbuilder2/lib/readers/XMLReader.d.ts +14 -0
  533. package/node_modules/xmlbuilder2/lib/readers/XMLReader.js +206 -0
  534. package/node_modules/xmlbuilder2/lib/readers/XMLReader.js.map +1 -0
  535. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.d.ts +14 -0
  536. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js +44 -0
  537. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js.map +1 -0
  538. package/node_modules/xmlbuilder2/lib/readers/index.d.ts +4 -0
  539. package/node_modules/xmlbuilder2/lib/readers/index.js +11 -0
  540. package/node_modules/xmlbuilder2/lib/readers/index.js.map +1 -0
  541. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.d.ts +110 -0
  542. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js +23 -0
  543. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js.map +1 -0
  544. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.d.ts +276 -0
  545. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js +1603 -0
  546. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js.map +1 -0
  547. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.d.ts +68 -0
  548. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js +172 -0
  549. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js.map +1 -0
  550. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.d.ts +67 -0
  551. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js +222 -0
  552. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js.map +1 -0
  553. package/node_modules/xmlbuilder2/lib/writers/MapWriter.d.ts +27 -0
  554. package/node_modules/xmlbuilder2/lib/writers/MapWriter.js +84 -0
  555. package/node_modules/xmlbuilder2/lib/writers/MapWriter.js.map +1 -0
  556. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.d.ts +56 -0
  557. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js +483 -0
  558. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js.map +1 -0
  559. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.d.ts +51 -0
  560. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js +165 -0
  561. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js.map +1 -0
  562. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.d.ts +60 -0
  563. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js +236 -0
  564. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js.map +1 -0
  565. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.d.ts +61 -0
  566. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js +161 -0
  567. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js.map +1 -0
  568. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.d.ts +55 -0
  569. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js +186 -0
  570. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js.map +1 -0
  571. package/node_modules/xmlbuilder2/lib/writers/index.d.ts +5 -0
  572. package/node_modules/xmlbuilder2/lib/writers/index.js +13 -0
  573. package/node_modules/xmlbuilder2/lib/writers/index.js.map +1 -0
  574. package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js +8 -0
  575. package/node_modules/xmlbuilder2/node_modules/argparse/CHANGELOG.md +185 -0
  576. package/node_modules/xmlbuilder2/node_modules/argparse/LICENSE +21 -0
  577. package/node_modules/xmlbuilder2/node_modules/argparse/README.md +257 -0
  578. package/node_modules/xmlbuilder2/node_modules/argparse/index.js +3 -0
  579. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append/constant.js +47 -0
  580. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append.js +53 -0
  581. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/count.js +40 -0
  582. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/help.js +47 -0
  583. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/constant.js +43 -0
  584. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/false.js +27 -0
  585. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/true.js +26 -0
  586. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store.js +50 -0
  587. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/subparsers.js +149 -0
  588. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/version.js +47 -0
  589. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action.js +146 -0
  590. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action_container.js +482 -0
  591. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argparse.js +14 -0
  592. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/error.js +50 -0
  593. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/exclusive.js +54 -0
  594. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/group.js +75 -0
  595. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument_parser.js +1161 -0
  596. package/node_modules/xmlbuilder2/node_modules/argparse/lib/const.js +21 -0
  597. package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/added_formatters.js +87 -0
  598. package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/formatter.js +795 -0
  599. package/node_modules/xmlbuilder2/node_modules/argparse/lib/namespace.js +76 -0
  600. package/node_modules/xmlbuilder2/node_modules/argparse/lib/utils.js +57 -0
  601. package/node_modules/xmlbuilder2/node_modules/argparse/package.json +34 -0
  602. package/node_modules/xmlbuilder2/node_modules/js-yaml/CHANGELOG.md +557 -0
  603. package/node_modules/xmlbuilder2/node_modules/js-yaml/LICENSE +21 -0
  604. package/node_modules/xmlbuilder2/node_modules/js-yaml/README.md +299 -0
  605. package/node_modules/xmlbuilder2/node_modules/js-yaml/bin/js-yaml.js +132 -0
  606. package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.js +3989 -0
  607. package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
  608. package/node_modules/xmlbuilder2/node_modules/js-yaml/index.js +7 -0
  609. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
  610. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
  611. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
  612. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/loader.js +1644 -0
  613. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
  614. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
  615. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
  616. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
  617. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
  618. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
  619. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
  620. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
  621. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
  622. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
  623. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
  624. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
  625. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
  626. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
  627. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
  628. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
  629. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
  630. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
  631. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
  632. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
  633. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
  634. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
  635. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
  636. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
  637. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml.js +39 -0
  638. package/node_modules/xmlbuilder2/node_modules/js-yaml/package.json +49 -0
  639. package/node_modules/xmlbuilder2/package.json +82 -0
  640. package/node_modules/xpath/LICENSE +22 -0
  641. package/node_modules/xpath/README.md +133 -0
  642. package/node_modules/xpath/package.json +43 -0
  643. package/node_modules/xpath/xpath.d.ts +51 -0
  644. package/node_modules/xpath/xpath.js +5041 -0
  645. package/package.json +9 -2
@@ -0,0 +1,39 @@
1
+ import type { CanonicalizationOrTransformationAlgorithm, CanonicalizationOrTransformationAlgorithmProcessOptions, NamespacePrefix, RenderedNamespace } from "./types";
2
+ export declare class C14nCanonicalization implements CanonicalizationOrTransformationAlgorithm {
3
+ protected includeComments: boolean;
4
+ constructor();
5
+ attrCompare(a: any, b: any): 1 | 0 | -1;
6
+ nsCompare(a: any, b: any): any;
7
+ renderAttrs(node: any): string;
8
+ /**
9
+ * Create the string of all namespace declarations that should appear on this element
10
+ *
11
+ * @param node The node we now render
12
+ * @param prefixesInScope The prefixes defined on this node parents which are a part of the output set
13
+ * @param defaultNs The current default namespace
14
+ * @param defaultNsForPrefix
15
+ * @param ancestorNamespaces Import ancestor namespaces if it is specified
16
+ * @api private
17
+ */
18
+ renderNs(node: Element, prefixesInScope: string[], defaultNs: string, defaultNsForPrefix: string, ancestorNamespaces: NamespacePrefix[]): RenderedNamespace;
19
+ /**
20
+ * @param node Node
21
+ */
22
+ processInner(node: any, prefixesInScope: any, defaultNs: any, defaultNsForPrefix: any, ancestorNamespaces: any): string;
23
+ renderComment(node: Comment): string;
24
+ /**
25
+ * Perform canonicalization of the given node
26
+ *
27
+ * @param node
28
+ * @api public
29
+ */
30
+ process(node: Node, options: CanonicalizationOrTransformationAlgorithmProcessOptions): string;
31
+ getAlgorithmName(): string;
32
+ }
33
+ /**
34
+ * Add c14n#WithComments here (very simple subclass)
35
+ */
36
+ export declare class C14nCanonicalizationWithComments extends C14nCanonicalization {
37
+ constructor();
38
+ getAlgorithmName(): string;
39
+ }
@@ -0,0 +1,230 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.C14nCanonicalizationWithComments = exports.C14nCanonicalization = void 0;
4
+ const utils = require("./utils");
5
+ const isDomNode = require("@xmldom/is-dom-node");
6
+ class C14nCanonicalization {
7
+ constructor() {
8
+ this.includeComments = false;
9
+ this.includeComments = false;
10
+ }
11
+ attrCompare(a, b) {
12
+ if (!a.namespaceURI && b.namespaceURI) {
13
+ return -1;
14
+ }
15
+ if (!b.namespaceURI && a.namespaceURI) {
16
+ return 1;
17
+ }
18
+ const left = a.namespaceURI + a.localName;
19
+ const right = b.namespaceURI + b.localName;
20
+ if (left === right) {
21
+ return 0;
22
+ }
23
+ else if (left < right) {
24
+ return -1;
25
+ }
26
+ else {
27
+ return 1;
28
+ }
29
+ }
30
+ nsCompare(a, b) {
31
+ const attr1 = a.prefix;
32
+ const attr2 = b.prefix;
33
+ if (attr1 === attr2) {
34
+ return 0;
35
+ }
36
+ return attr1.localeCompare(attr2);
37
+ }
38
+ renderAttrs(node) {
39
+ let i;
40
+ let attr;
41
+ const attrListToRender = [];
42
+ if (isDomNode.isCommentNode(node)) {
43
+ return this.renderComment(node);
44
+ }
45
+ if (node.attributes) {
46
+ for (i = 0; i < node.attributes.length; ++i) {
47
+ attr = node.attributes[i];
48
+ //ignore namespace definition attributes
49
+ if (attr.name.indexOf("xmlns") === 0) {
50
+ continue;
51
+ }
52
+ attrListToRender.push(attr);
53
+ }
54
+ }
55
+ attrListToRender.sort(this.attrCompare);
56
+ const res = attrListToRender.map((attr) => {
57
+ return ` ${attr.name}="${utils.encodeSpecialCharactersInAttribute(attr.value)}"`;
58
+ });
59
+ return res.join("");
60
+ }
61
+ /**
62
+ * Create the string of all namespace declarations that should appear on this element
63
+ *
64
+ * @param node The node we now render
65
+ * @param prefixesInScope The prefixes defined on this node parents which are a part of the output set
66
+ * @param defaultNs The current default namespace
67
+ * @param defaultNsForPrefix
68
+ * @param ancestorNamespaces Import ancestor namespaces if it is specified
69
+ * @api private
70
+ */
71
+ renderNs(node, prefixesInScope, defaultNs, defaultNsForPrefix, ancestorNamespaces) {
72
+ let i;
73
+ let attr;
74
+ const res = [];
75
+ let newDefaultNs = defaultNs;
76
+ const nsListToRender = [];
77
+ const currNs = node.namespaceURI || "";
78
+ //handle the namespace of the node itself
79
+ if (node.prefix) {
80
+ if (prefixesInScope.indexOf(node.prefix) === -1) {
81
+ nsListToRender.push({
82
+ prefix: node.prefix,
83
+ namespaceURI: node.namespaceURI || defaultNsForPrefix[node.prefix],
84
+ });
85
+ prefixesInScope.push(node.prefix);
86
+ }
87
+ }
88
+ else if (defaultNs !== currNs) {
89
+ //new default ns
90
+ newDefaultNs = node.namespaceURI || "";
91
+ res.push(' xmlns="', newDefaultNs, '"');
92
+ }
93
+ //handle the attributes namespace
94
+ if (node.attributes) {
95
+ for (i = 0; i < node.attributes.length; ++i) {
96
+ attr = node.attributes[i];
97
+ //handle all prefixed attributes that are included in the prefix list and where
98
+ //the prefix is not defined already. New prefixes can only be defined by `xmlns:`.
99
+ if (attr.prefix === "xmlns" && prefixesInScope.indexOf(attr.localName) === -1) {
100
+ nsListToRender.push({ prefix: attr.localName, namespaceURI: attr.value });
101
+ prefixesInScope.push(attr.localName);
102
+ }
103
+ //handle all prefixed attributes that are not xmlns definitions and where
104
+ //the prefix is not defined already
105
+ if (attr.prefix &&
106
+ prefixesInScope.indexOf(attr.prefix) === -1 &&
107
+ attr.prefix !== "xmlns" &&
108
+ attr.prefix !== "xml") {
109
+ nsListToRender.push({ prefix: attr.prefix, namespaceURI: attr.namespaceURI });
110
+ prefixesInScope.push(attr.prefix);
111
+ }
112
+ }
113
+ }
114
+ if (utils.isArrayHasLength(ancestorNamespaces)) {
115
+ // Remove namespaces which are already present in nsListToRender
116
+ for (const ancestorNamespace of ancestorNamespaces) {
117
+ let alreadyListed = false;
118
+ for (const nsToRender of nsListToRender) {
119
+ if (nsToRender.prefix === ancestorNamespace.prefix &&
120
+ nsToRender.namespaceURI === ancestorNamespace.namespaceURI) {
121
+ alreadyListed = true;
122
+ }
123
+ }
124
+ if (!alreadyListed) {
125
+ nsListToRender.push(ancestorNamespace);
126
+ }
127
+ }
128
+ }
129
+ nsListToRender.sort(this.nsCompare);
130
+ //render namespaces
131
+ res.push(...nsListToRender.map((attr) => {
132
+ if (attr.prefix) {
133
+ return ` xmlns:${attr.prefix}="${attr.namespaceURI}"`;
134
+ }
135
+ return ` xmlns="${attr.namespaceURI}"`;
136
+ }));
137
+ return { rendered: res.join(""), newDefaultNs };
138
+ }
139
+ /**
140
+ * @param node Node
141
+ */
142
+ processInner(node, prefixesInScope, defaultNs, defaultNsForPrefix, ancestorNamespaces) {
143
+ if (isDomNode.isCommentNode(node)) {
144
+ return this.renderComment(node);
145
+ }
146
+ if (node.data) {
147
+ return utils.encodeSpecialCharactersInText(node.data);
148
+ }
149
+ if (isDomNode.isElementNode(node)) {
150
+ let i;
151
+ let pfxCopy;
152
+ const ns = this.renderNs(node, prefixesInScope, defaultNs, defaultNsForPrefix, ancestorNamespaces);
153
+ const res = ["<", node.tagName, ns.rendered, this.renderAttrs(node), ">"];
154
+ for (i = 0; i < node.childNodes.length; ++i) {
155
+ pfxCopy = prefixesInScope.slice(0);
156
+ res.push(this.processInner(node.childNodes[i], pfxCopy, ns.newDefaultNs, defaultNsForPrefix, []));
157
+ }
158
+ res.push("</", node.tagName, ">");
159
+ return res.join("");
160
+ }
161
+ throw new Error(`Unable to canonicalize node type: ${node.nodeType}`);
162
+ }
163
+ // Thanks to deoxxa/xml-c14n for comment renderer
164
+ renderComment(node) {
165
+ if (!this.includeComments) {
166
+ return "";
167
+ }
168
+ const isOutsideDocument = node.ownerDocument === node.parentNode;
169
+ let isBeforeDocument = false;
170
+ let isAfterDocument = false;
171
+ if (isOutsideDocument) {
172
+ let nextNode = node;
173
+ let previousNode = node;
174
+ while (nextNode !== null) {
175
+ if (nextNode === node.ownerDocument.documentElement) {
176
+ isBeforeDocument = true;
177
+ break;
178
+ }
179
+ nextNode = nextNode.nextSibling;
180
+ }
181
+ while (previousNode !== null) {
182
+ if (previousNode === node.ownerDocument.documentElement) {
183
+ isAfterDocument = true;
184
+ break;
185
+ }
186
+ previousNode = previousNode.previousSibling;
187
+ }
188
+ }
189
+ const afterDocument = isAfterDocument ? "\n" : "";
190
+ const beforeDocument = isBeforeDocument ? "\n" : "";
191
+ const encodedText = utils.encodeSpecialCharactersInText(node.data);
192
+ return `${afterDocument}<!--${encodedText}-->${beforeDocument}`;
193
+ }
194
+ /**
195
+ * Perform canonicalization of the given node
196
+ *
197
+ * @param node
198
+ * @api public
199
+ */
200
+ process(node, options) {
201
+ options = options || {};
202
+ const defaultNs = options.defaultNs || "";
203
+ const defaultNsForPrefix = options.defaultNsForPrefix || {};
204
+ const ancestorNamespaces = options.ancestorNamespaces || [];
205
+ const prefixesInScope = [];
206
+ for (let i = 0; i < ancestorNamespaces.length; i++) {
207
+ prefixesInScope.push(ancestorNamespaces[i].prefix);
208
+ }
209
+ const res = this.processInner(node, prefixesInScope, defaultNs, defaultNsForPrefix, ancestorNamespaces);
210
+ return res;
211
+ }
212
+ getAlgorithmName() {
213
+ return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315";
214
+ }
215
+ }
216
+ exports.C14nCanonicalization = C14nCanonicalization;
217
+ /**
218
+ * Add c14n#WithComments here (very simple subclass)
219
+ */
220
+ class C14nCanonicalizationWithComments extends C14nCanonicalization {
221
+ constructor() {
222
+ super();
223
+ this.includeComments = true;
224
+ }
225
+ getAlgorithmName() {
226
+ return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments";
227
+ }
228
+ }
229
+ exports.C14nCanonicalizationWithComments = C14nCanonicalizationWithComments;
230
+ //# sourceMappingURL=c14n-canonicalization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"c14n-canon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,OAAO,GAAG,aAAa,OAAO,WAAW,MAAM,cAAc,EAAE,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,IAAU,EAAE,OAAgE;QAClF,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QACxB,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC;QAC1C,MAAM,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,IAAI,EAAE,CAAC;QAC5D,MAAM,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,IAAI,EAAE,CAAC;QAE5D,MAAM,eAAe,GAAa,EAAE,CAAC;QACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACnD,eAAe,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC;QAED,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,CAC3B,IAAI,EACJ,eAAe,EACf,SAAS,EACT,kBAAkB,EAClB,kBAAkB,CACnB,CAAC;QACF,OAAO,GAAG,CAAC;IACb,CAAC;IAED,gBAAgB;QACd,OAAO,iDAAiD,CAAC;IAC3D,CAAC;CACF;AA/QD,oDA+QC;AAED;;GAEG;AACH,MAAa,gCAAiC,SAAQ,oBAAoB;IACxE;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;IAC9B,CAAC;IAED,gBAAgB;QACd,OAAO,8DAA8D,CAAC;IACxE,CAAC;CACF;AATD,4EASC","sourcesContent":["import type {\n CanonicalizationOrTransformationAlgorithm,\n CanonicalizationOrTransformationAlgorithmProcessOptions,\n NamespacePrefix,\n RenderedNamespace,\n} from \"./types\";\nimport * as utils from \"./utils\";\nimport * as isDomNode from \"@xmldom/is-dom-node\";\n\nexport class C14nCanonicalization implements CanonicalizationOrTransformationAlgorithm {\n protected includeComments = false;\n\n constructor() {\n this.includeComments = false;\n }\n\n attrCompare(a, b) {\n if (!a.namespaceURI && b.namespaceURI) {\n return -1;\n }\n if (!b.namespaceURI && a.namespaceURI) {\n return 1;\n }\n\n const left = a.namespaceURI + a.localName;\n const right = b.namespaceURI + b.localName;\n\n if (left === right) {\n return 0;\n } else if (left < right) {\n return -1;\n } else {\n return 1;\n }\n }\n\n nsCompare(a, b) {\n const attr1 = a.prefix;\n const attr2 = b.prefix;\n if (attr1 === attr2) {\n return 0;\n }\n return attr1.localeCompare(attr2);\n }\n\n renderAttrs(node) {\n let i;\n let attr;\n const attrListToRender: Attr[] = [];\n\n if (isDomNode.isCommentNode(node)) {\n return this.renderComment(node);\n }\n\n if (node.attributes) {\n for (i = 0; i < node.attributes.length; ++i) {\n attr = node.attributes[i];\n //ignore namespace definition attributes\n if (attr.name.indexOf(\"xmlns\") === 0) {\n continue;\n }\n attrListToRender.push(attr);\n }\n }\n\n attrListToRender.sort(this.attrCompare);\n\n const res = attrListToRender.map((attr) => {\n return ` ${attr.name}=\"${utils.encodeSpecialCharactersInAttribute(attr.value)}\"`;\n });\n\n return res.join(\"\");\n }\n\n /**\n * Create the string of all namespace declarations that should appear on this element\n *\n * @param node The node we now render\n * @param prefixesInScope The prefixes defined on this node parents which are a part of the output set\n * @param defaultNs The current default namespace\n * @param defaultNsForPrefix\n * @param ancestorNamespaces Import ancestor namespaces if it is specified\n * @api private\n */\n renderNs(\n node: Element,\n prefixesInScope: string[],\n defaultNs: string,\n defaultNsForPrefix: string,\n ancestorNamespaces: NamespacePrefix[],\n ): RenderedNamespace {\n let i;\n let attr;\n const res: string[] = [];\n let newDefaultNs = defaultNs;\n const nsListToRender: { prefix: string; namespaceURI: string }[] = [];\n const currNs = node.namespaceURI || \"\";\n\n //handle the namespace of the node itself\n if (node.prefix) {\n if (prefixesInScope.indexOf(node.prefix) === -1) {\n nsListToRender.push({\n prefix: node.prefix,\n namespaceURI: node.namespaceURI || defaultNsForPrefix[node.prefix],\n });\n prefixesInScope.push(node.prefix);\n }\n } else if (defaultNs !== currNs) {\n //new default ns\n newDefaultNs = node.namespaceURI || \"\";\n res.push(' xmlns=\"', newDefaultNs, '\"');\n }\n\n //handle the attributes namespace\n if (node.attributes) {\n for (i = 0; i < node.attributes.length; ++i) {\n attr = node.attributes[i];\n\n //handle all prefixed attributes that are included in the prefix list and where\n //the prefix is not defined already. New prefixes can only be defined by `xmlns:`.\n if (attr.prefix === \"xmlns\" && prefixesInScope.indexOf(attr.localName) === -1) {\n nsListToRender.push({ prefix: attr.localName, namespaceURI: attr.value });\n prefixesInScope.push(attr.localName);\n }\n\n //handle all prefixed attributes that are not xmlns definitions and where\n //the prefix is not defined already\n if (\n attr.prefix &&\n prefixesInScope.indexOf(attr.prefix) === -1 &&\n attr.prefix !== \"xmlns\" &&\n attr.prefix !== \"xml\"\n ) {\n nsListToRender.push({ prefix: attr.prefix, namespaceURI: attr.namespaceURI });\n prefixesInScope.push(attr.prefix);\n }\n }\n }\n\n if (utils.isArrayHasLength(ancestorNamespaces)) {\n // Remove namespaces which are already present in nsListToRender\n for (const ancestorNamespace of ancestorNamespaces) {\n let alreadyListed = false;\n for (const nsToRender of nsListToRender) {\n if (\n nsToRender.prefix === ancestorNamespace.prefix &&\n nsToRender.namespaceURI === ancestorNamespace.namespaceURI\n ) {\n alreadyListed = true;\n }\n }\n\n if (!alreadyListed) {\n nsListToRender.push(ancestorNamespace);\n }\n }\n }\n\n nsListToRender.sort(this.nsCompare);\n\n //render namespaces\n res.push(\n ...nsListToRender.map((attr) => {\n if (attr.prefix) {\n return ` xmlns:${attr.prefix}=\"${attr.namespaceURI}\"`;\n }\n return ` xmlns=\"${attr.namespaceURI}\"`;\n }),\n );\n\n return { rendered: res.join(\"\"), newDefaultNs };\n }\n\n /**\n * @param node Node\n */\n processInner(node, prefixesInScope, defaultNs, defaultNsForPrefix, ancestorNamespaces) {\n if (isDomNode.isCommentNode(node)) {\n return this.renderComment(node);\n }\n if (node.data) {\n return utils.encodeSpecialCharactersInText(node.data);\n }\n\n if (isDomNode.isElementNode(node)) {\n let i;\n let pfxCopy;\n const ns = this.renderNs(\n node,\n prefixesInScope,\n defaultNs,\n defaultNsForPrefix,\n ancestorNamespaces,\n );\n const res = [\"<\", node.tagName, ns.rendered, this.renderAttrs(node), \">\"];\n\n for (i = 0; i < node.childNodes.length; ++i) {\n pfxCopy = prefixesInScope.slice(0);\n res.push(\n this.processInner(node.childNodes[i], pfxCopy, ns.newDefaultNs, defaultNsForPrefix, []),\n );\n }\n\n res.push(\"</\", node.tagName, \">\");\n return res.join(\"\");\n }\n\n throw new Error(`Unable to canonicalize node type: ${node.nodeType}`);\n }\n\n // Thanks to deoxxa/xml-c14n for comment renderer\n renderComment(node: Comment) {\n if (!this.includeComments) {\n return \"\";\n }\n\n const isOutsideDocument = node.ownerDocument === node.parentNode;\n let isBeforeDocument = false;\n let isAfterDocument = false;\n\n if (isOutsideDocument) {\n let nextNode: ChildNode | null = node;\n let previousNode: ChildNode | null = node;\n\n while (nextNode !== null) {\n if (nextNode === node.ownerDocument.documentElement) {\n isBeforeDocument = true;\n break;\n }\n\n nextNode = nextNode.nextSibling;\n }\n\n while (previousNode !== null) {\n if (previousNode === node.ownerDocument.documentElement) {\n isAfterDocument = true;\n break;\n }\n\n previousNode = previousNode.previousSibling;\n }\n }\n\n const afterDocument = isAfterDocument ? \"\\n\" : \"\";\n const beforeDocument = isBeforeDocument ? \"\\n\" : \"\";\n const encodedText = utils.encodeSpecialCharactersInText(node.data);\n\n return `${afterDocument}<!--${encodedText}-->${beforeDocument}`;\n }\n\n /**\n * Perform canonicalization of the given node\n *\n * @param node\n * @api public\n */\n process(node: Node, options: CanonicalizationOrTransformationAlgorithmProcessOptions): string {\n options = options || {};\n const defaultNs = options.defaultNs || \"\";\n const defaultNsForPrefix = options.defaultNsForPrefix || {};\n const ancestorNamespaces = options.ancestorNamespaces || [];\n\n const prefixesInScope: string[] = [];\n for (let i = 0; i < ancestorNamespaces.length; i++) {\n prefixesInScope.push(ancestorNamespaces[i].prefix);\n }\n\n const res = this.processInner(\n node,\n prefixesInScope,\n defaultNs,\n defaultNsForPrefix,\n ancestorNamespaces,\n );\n return res;\n }\n\n getAlgorithmName() {\n return \"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\";\n }\n}\n\n/**\n * Add c14n#WithComments here (very simple subclass)\n */\nexport class C14nCanonicalizationWithComments extends C14nCanonicalization {\n constructor() {\n super();\n this.includeComments = true;\n }\n\n getAlgorithmName() {\n return \"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments\";\n }\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import type { CanonicalizationOrTransformationAlgorithm, CanonicalizationOrTransformationAlgorithmProcessOptions, CanonicalizationOrTransformAlgorithmType } from "./types";
2
+ export declare class EnvelopedSignature implements CanonicalizationOrTransformationAlgorithm {
3
+ protected includeComments: boolean;
4
+ constructor();
5
+ process(node: Node, options: CanonicalizationOrTransformationAlgorithmProcessOptions): Node;
6
+ getAlgorithmName(): CanonicalizationOrTransformAlgorithmType;
7
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EnvelopedSignature = void 0;
4
+ const xpath = require("xpath");
5
+ const isDomNode = require("@xmldom/is-dom-node");
6
+ class EnvelopedSignature {
7
+ constructor() {
8
+ this.includeComments = false;
9
+ this.includeComments = false;
10
+ }
11
+ process(node, options) {
12
+ if (null == options.signatureNode) {
13
+ const signature = xpath.select1("./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']", node);
14
+ if (isDomNode.isNodeLike(signature) && signature.parentNode) {
15
+ signature.parentNode.removeChild(signature);
16
+ }
17
+ return node;
18
+ }
19
+ const signatureNode = options.signatureNode;
20
+ const expectedSignatureValue = xpath.select1(".//*[local-name(.)='SignatureValue']/text()", signatureNode);
21
+ if (isDomNode.isTextNode(expectedSignatureValue)) {
22
+ const expectedSignatureValueData = expectedSignatureValue.data;
23
+ const signatures = xpath.select(".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']", node);
24
+ for (const nodeSignature of Array.isArray(signatures) ? signatures : []) {
25
+ const signatureValue = xpath.select1(".//*[local-name(.)='SignatureValue']/text()", nodeSignature);
26
+ if (isDomNode.isTextNode(signatureValue)) {
27
+ const signatureValueData = signatureValue.data;
28
+ if (expectedSignatureValueData === signatureValueData) {
29
+ if (nodeSignature.parentNode) {
30
+ nodeSignature.parentNode.removeChild(nodeSignature);
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+ return node;
37
+ }
38
+ getAlgorithmName() {
39
+ return "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
40
+ }
41
+ }
42
+ exports.EnvelopedSignature = EnvelopedSignature;
43
+ //# sourceMappingURL=enveloped-signature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enveloped-signature.js","sourceRoot":"","sources":["../src/enveloped-signature.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iDAAiD;AAQjD,MAAa,kBAAkB;IAG7B;QAFU,oBAAe,GAAG,KAAK,CAAC;QAGhC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IAC/B,CAAC;IAED,OAAO,CAAC,IAAU,EAAE,OAAgE;QAClF,IAAI,IAAI,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;YAClC,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAC7B,0FAA0F,EAC1F,IAAI,CACL,CAAC;YACF,IAAI,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;gBAC5D,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;YAC9C,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;QAC5C,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,CAC1C,6CAA6C,EAC7C,aAAa,CACd,CAAC;QACF,IAAI,SAAS,CAAC,UAAU,CAAC,sBAAsB,CAAC,EAAE,CAAC;YACjD,MAAM,0BAA0B,GAAG,sBAAsB,CAAC,IAAI,CAAC;YAE/D,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAC7B,2FAA2F,EAC3F,IAAI,CACL,CAAC;YACF,KAAK,MAAM,aAAa,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;gBACxE,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAClC,6CAA6C,EAC7C,aAAa,CACd,CAAC;gBACF,IAAI,SAAS,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;oBACzC,MAAM,kBAAkB,GAAG,cAAc,CAAC,IAAI,CAAC;oBAC/C,IAAI,0BAA0B,KAAK,kBAAkB,EAAE,CAAC;wBACtD,IAAI,aAAa,CAAC,UAAU,EAAE,CAAC;4BAC7B,aAAa,CAAC,UAAU,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;wBACtD,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,gBAAgB;QACd,OAAO,uDAAuD,CAAC;IACjE,CAAC;CACF;AAnDD,gDAmDC","sourcesContent":["import * as xpath from \"xpath\";\nimport * as isDomNode from \"@xmldom/is-dom-node\";\n\nimport type {\n CanonicalizationOrTransformationAlgorithm,\n CanonicalizationOrTransformationAlgorithmProcessOptions,\n CanonicalizationOrTransformAlgorithmType,\n} from \"./types\";\n\nexport class EnvelopedSignature implements CanonicalizationOrTransformationAlgorithm {\n protected includeComments = false;\n\n constructor() {\n this.includeComments = false;\n }\n\n process(node: Node, options: CanonicalizationOrTransformationAlgorithmProcessOptions): Node {\n if (null == options.signatureNode) {\n const signature = xpath.select1(\n \"./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']\",\n node,\n );\n if (isDomNode.isNodeLike(signature) && signature.parentNode) {\n signature.parentNode.removeChild(signature);\n }\n return node;\n }\n const signatureNode = options.signatureNode;\n const expectedSignatureValue = xpath.select1(\n \".//*[local-name(.)='SignatureValue']/text()\",\n signatureNode,\n );\n if (isDomNode.isTextNode(expectedSignatureValue)) {\n const expectedSignatureValueData = expectedSignatureValue.data;\n\n const signatures = xpath.select(\n \".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']\",\n node,\n );\n for (const nodeSignature of Array.isArray(signatures) ? signatures : []) {\n const signatureValue = xpath.select1(\n \".//*[local-name(.)='SignatureValue']/text()\",\n nodeSignature,\n );\n if (isDomNode.isTextNode(signatureValue)) {\n const signatureValueData = signatureValue.data;\n if (expectedSignatureValueData === signatureValueData) {\n if (nodeSignature.parentNode) {\n nodeSignature.parentNode.removeChild(nodeSignature);\n }\n }\n }\n }\n }\n return node;\n }\n\n getAlgorithmName(): CanonicalizationOrTransformAlgorithmType {\n return \"http://www.w3.org/2000/09/xmldsig#enveloped-signature\";\n }\n}\n"]}
@@ -0,0 +1,38 @@
1
+ import type { CanonicalizationOrTransformationAlgorithm, CanonicalizationOrTransformationAlgorithmProcessOptions } from "./types";
2
+ export declare class ExclusiveCanonicalization implements CanonicalizationOrTransformationAlgorithm {
3
+ protected includeComments: boolean;
4
+ constructor();
5
+ attrCompare(a: any, b: any): 1 | 0 | -1;
6
+ nsCompare(a: any, b: any): any;
7
+ renderAttrs(node: any): string;
8
+ /**
9
+ * Create the string of all namespace declarations that should appear on this element
10
+ *
11
+ * @param {Node} node. The node we now render
12
+ * @param {Array} prefixesInScope. The prefixes defined on this node
13
+ * parents which are a part of the output set
14
+ * @param {String} defaultNs. The current default namespace
15
+ * @return {String}
16
+ * @api private
17
+ */
18
+ renderNs(node: any, prefixesInScope: any, defaultNs: any, defaultNsForPrefix: any, inclusiveNamespacesPrefixList: string[]): {
19
+ rendered: string;
20
+ newDefaultNs: any;
21
+ };
22
+ /**
23
+ * @param node Node
24
+ */
25
+ processInner(node: any, prefixesInScope: any, defaultNs: any, defaultNsForPrefix: any, inclusiveNamespacesPrefixList: string[]): string;
26
+ renderComment(node: Comment): string;
27
+ /**
28
+ * Perform canonicalization of the given element node
29
+ *
30
+ * @api public
31
+ */
32
+ process(elem: Element, options: CanonicalizationOrTransformationAlgorithmProcessOptions): string;
33
+ getAlgorithmName(): string;
34
+ }
35
+ export declare class ExclusiveCanonicalizationWithComments extends ExclusiveCanonicalization {
36
+ constructor();
37
+ getAlgorithmName(): string;
38
+ }
@@ -0,0 +1,246 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExclusiveCanonicalizationWithComments = exports.ExclusiveCanonicalization = void 0;
4
+ const utils = require("./utils");
5
+ const isDomNode = require("@xmldom/is-dom-node");
6
+ function isPrefixInScope(prefixesInScope, prefix, namespaceURI) {
7
+ let ret = false;
8
+ prefixesInScope.forEach(function (pf) {
9
+ if (pf.prefix === prefix && pf.namespaceURI === namespaceURI) {
10
+ ret = true;
11
+ }
12
+ });
13
+ return ret;
14
+ }
15
+ class ExclusiveCanonicalization {
16
+ constructor() {
17
+ this.includeComments = false;
18
+ this.includeComments = false;
19
+ }
20
+ attrCompare(a, b) {
21
+ if (!a.namespaceURI && b.namespaceURI) {
22
+ return -1;
23
+ }
24
+ if (!b.namespaceURI && a.namespaceURI) {
25
+ return 1;
26
+ }
27
+ const left = a.namespaceURI + a.localName;
28
+ const right = b.namespaceURI + b.localName;
29
+ if (left === right) {
30
+ return 0;
31
+ }
32
+ else if (left < right) {
33
+ return -1;
34
+ }
35
+ else {
36
+ return 1;
37
+ }
38
+ }
39
+ nsCompare(a, b) {
40
+ const attr1 = a.prefix;
41
+ const attr2 = b.prefix;
42
+ if (attr1 === attr2) {
43
+ return 0;
44
+ }
45
+ return attr1.localeCompare(attr2);
46
+ }
47
+ renderAttrs(node) {
48
+ let i;
49
+ let attr;
50
+ const res = [];
51
+ const attrListToRender = [];
52
+ if (isDomNode.isCommentNode(node)) {
53
+ return this.renderComment(node);
54
+ }
55
+ if (node.attributes) {
56
+ for (i = 0; i < node.attributes.length; ++i) {
57
+ attr = node.attributes[i];
58
+ //ignore namespace definition attributes
59
+ if (attr.name.indexOf("xmlns") === 0) {
60
+ continue;
61
+ }
62
+ attrListToRender.push(attr);
63
+ }
64
+ }
65
+ attrListToRender.sort(this.attrCompare);
66
+ for (attr of attrListToRender) {
67
+ res.push(" ", attr.name, '="', utils.encodeSpecialCharactersInAttribute(attr.value), '"');
68
+ }
69
+ return res.join("");
70
+ }
71
+ /**
72
+ * Create the string of all namespace declarations that should appear on this element
73
+ *
74
+ * @param {Node} node. The node we now render
75
+ * @param {Array} prefixesInScope. The prefixes defined on this node
76
+ * parents which are a part of the output set
77
+ * @param {String} defaultNs. The current default namespace
78
+ * @return {String}
79
+ * @api private
80
+ */
81
+ renderNs(node, prefixesInScope, defaultNs, defaultNsForPrefix, inclusiveNamespacesPrefixList) {
82
+ let i;
83
+ let attr;
84
+ const res = [];
85
+ let newDefaultNs = defaultNs;
86
+ const nsListToRender = [];
87
+ const currNs = node.namespaceURI || "";
88
+ //handle the namespaceof the node itself
89
+ if (node.prefix) {
90
+ if (!isPrefixInScope(prefixesInScope, node.prefix, node.namespaceURI || defaultNsForPrefix[node.prefix])) {
91
+ nsListToRender.push({
92
+ prefix: node.prefix,
93
+ namespaceURI: node.namespaceURI || defaultNsForPrefix[node.prefix],
94
+ });
95
+ prefixesInScope.push({
96
+ prefix: node.prefix,
97
+ namespaceURI: node.namespaceURI || defaultNsForPrefix[node.prefix],
98
+ });
99
+ }
100
+ }
101
+ else if (defaultNs !== currNs) {
102
+ //new default ns
103
+ newDefaultNs = node.namespaceURI;
104
+ res.push(' xmlns="', newDefaultNs, '"');
105
+ }
106
+ //handle the attributes namespace
107
+ if (node.attributes) {
108
+ for (i = 0; i < node.attributes.length; ++i) {
109
+ attr = node.attributes[i];
110
+ //handle all prefixed attributes that are included in the prefix list and where
111
+ //the prefix is not defined already
112
+ if (attr.prefix &&
113
+ !isPrefixInScope(prefixesInScope, attr.localName, attr.value) &&
114
+ inclusiveNamespacesPrefixList.indexOf(attr.localName) >= 0) {
115
+ nsListToRender.push({ prefix: attr.localName, namespaceURI: attr.value });
116
+ prefixesInScope.push({ prefix: attr.localName, namespaceURI: attr.value });
117
+ }
118
+ //handle all prefixed attributes that are not xmlns definitions and where
119
+ //the prefix is not defined already
120
+ if (attr.prefix &&
121
+ !isPrefixInScope(prefixesInScope, attr.prefix, attr.namespaceURI) &&
122
+ attr.prefix !== "xmlns" &&
123
+ attr.prefix !== "xml") {
124
+ nsListToRender.push({ prefix: attr.prefix, namespaceURI: attr.namespaceURI });
125
+ prefixesInScope.push({ prefix: attr.prefix, namespaceURI: attr.namespaceURI });
126
+ }
127
+ }
128
+ }
129
+ nsListToRender.sort(this.nsCompare);
130
+ //render namespaces
131
+ for (const p of nsListToRender) {
132
+ res.push(" xmlns:", p.prefix, '="', p.namespaceURI, '"');
133
+ }
134
+ return { rendered: res.join(""), newDefaultNs: newDefaultNs };
135
+ }
136
+ /**
137
+ * @param node Node
138
+ */
139
+ processInner(node, prefixesInScope, defaultNs, defaultNsForPrefix, inclusiveNamespacesPrefixList) {
140
+ if (isDomNode.isCommentNode(node)) {
141
+ return this.renderComment(node);
142
+ }
143
+ if (node.data) {
144
+ return utils.encodeSpecialCharactersInText(node.data);
145
+ }
146
+ if (isDomNode.isElementNode(node)) {
147
+ let i;
148
+ let pfxCopy;
149
+ const ns = this.renderNs(node, prefixesInScope, defaultNs, defaultNsForPrefix, inclusiveNamespacesPrefixList);
150
+ const res = ["<", node.tagName, ns.rendered, this.renderAttrs(node), ">"];
151
+ for (i = 0; i < node.childNodes.length; ++i) {
152
+ pfxCopy = prefixesInScope.slice(0);
153
+ res.push(this.processInner(node.childNodes[i], pfxCopy, ns.newDefaultNs, defaultNsForPrefix, inclusiveNamespacesPrefixList));
154
+ }
155
+ res.push("</", node.tagName, ">");
156
+ return res.join("");
157
+ }
158
+ throw new Error(`Unable to exclusive canonicalize node type: ${node.nodeType}`);
159
+ }
160
+ // Thanks to deoxxa/xml-c14n for comment renderer
161
+ renderComment(node) {
162
+ if (!this.includeComments) {
163
+ return "";
164
+ }
165
+ const isOutsideDocument = node.ownerDocument === node.parentNode;
166
+ let isBeforeDocument = false;
167
+ let isAfterDocument = false;
168
+ if (isOutsideDocument) {
169
+ let nextNode = node;
170
+ let previousNode = node;
171
+ while (nextNode != null) {
172
+ if (nextNode === node.ownerDocument.documentElement) {
173
+ isBeforeDocument = true;
174
+ break;
175
+ }
176
+ nextNode = nextNode.nextSibling;
177
+ }
178
+ while (previousNode != null) {
179
+ if (previousNode === node.ownerDocument.documentElement) {
180
+ isAfterDocument = true;
181
+ break;
182
+ }
183
+ previousNode = previousNode.previousSibling;
184
+ }
185
+ }
186
+ const afterDocument = isAfterDocument ? "\n" : "";
187
+ const beforeDocument = isBeforeDocument ? "\n" : "";
188
+ const encodedText = utils.encodeSpecialCharactersInText(node.data);
189
+ return `${afterDocument}<!--${encodedText}-->${beforeDocument}`;
190
+ }
191
+ /**
192
+ * Perform canonicalization of the given element node
193
+ *
194
+ * @api public
195
+ */
196
+ process(elem, options) {
197
+ options = options || {};
198
+ let inclusiveNamespacesPrefixList = options.inclusiveNamespacesPrefixList || [];
199
+ const defaultNs = options.defaultNs || "";
200
+ const defaultNsForPrefix = options.defaultNsForPrefix || {};
201
+ const ancestorNamespaces = options.ancestorNamespaces || [];
202
+ /**
203
+ * If the inclusiveNamespacesPrefixList has not been explicitly provided then look it up in CanonicalizationMethod/InclusiveNamespaces
204
+ */
205
+ if (!utils.isArrayHasLength(inclusiveNamespacesPrefixList)) {
206
+ const CanonicalizationMethod = utils.findChildren(elem, "CanonicalizationMethod");
207
+ if (CanonicalizationMethod.length !== 0) {
208
+ const inclusiveNamespaces = utils.findChildren(CanonicalizationMethod[0], "InclusiveNamespaces");
209
+ if (inclusiveNamespaces.length !== 0) {
210
+ inclusiveNamespacesPrefixList = (inclusiveNamespaces[0].getAttribute("PrefixList") || "").split(" ");
211
+ }
212
+ }
213
+ }
214
+ /**
215
+ * If you have a PrefixList then use it and the ancestors to add the necessary namespaces
216
+ */
217
+ if (utils.isArrayHasLength(inclusiveNamespacesPrefixList)) {
218
+ inclusiveNamespacesPrefixList.forEach(function (prefix) {
219
+ if (ancestorNamespaces) {
220
+ ancestorNamespaces.forEach(function (ancestorNamespace) {
221
+ if (prefix === ancestorNamespace.prefix) {
222
+ elem.setAttributeNS("http://www.w3.org/2000/xmlns/", `xmlns:${prefix}`, ancestorNamespace.namespaceURI);
223
+ }
224
+ });
225
+ }
226
+ });
227
+ }
228
+ const res = this.processInner(elem, [], defaultNs, defaultNsForPrefix, inclusiveNamespacesPrefixList);
229
+ return res;
230
+ }
231
+ getAlgorithmName() {
232
+ return "http://www.w3.org/2001/10/xml-exc-c14n#";
233
+ }
234
+ }
235
+ exports.ExclusiveCanonicalization = ExclusiveCanonicalization;
236
+ class ExclusiveCanonicalizationWithComments extends ExclusiveCanonicalization {
237
+ constructor() {
238
+ super();
239
+ this.includeComments = true;
240
+ }
241
+ getAlgorithmName() {
242
+ return "http://www.w3.org/2001/10/xml-exc-c14n#WithComments";
243
+ }
244
+ }
245
+ exports.ExclusiveCanonicalizationWithComments = ExclusiveCanonicalizationWithComments;
246
+ //# sourceMappingURL=exclusive-canonicalization.js.map