@sheetxl/io-xlsx 0.7.23-beta.1

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 (340) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +23 -0
  3. package/browser/cjs/5QaWZ2tRVhz1rf3W.cjs +1 -0
  4. package/browser/cjs/B6sirGz6w-Bm7Ofo.cjs +1 -0
  5. package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +1 -0
  6. package/browser/cjs/BE7AtU1GCShmJ8Yu.cjs +1 -0
  7. package/browser/cjs/CIpMN7SDVREKQUQE.cjs +6 -0
  8. package/browser/cjs/Chkqh5BZ-MJjAcPF.cjs +5 -0
  9. package/browser/cjs/D-8WoJkvdPf-79sB.cjs +2 -0
  10. package/browser/cjs/D5Y4KQhKdukOkjvA.cjs +2 -0
  11. package/browser/cjs/DWkuoJSgvcXJTdN1.cjs +1 -0
  12. package/browser/cjs/index.cjs +1 -0
  13. package/browser/cjs/sEmMmxaNBSY_o-Zb.cjs +1 -0
  14. package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +1 -0
  15. package/browser/esm/B20zuEvdeypuSU5s.mjs +3851 -0
  16. package/browser/esm/BVAAJynubTdvPOQA.mjs +24 -0
  17. package/browser/esm/CLo2oPoIised6GbD.mjs +3617 -0
  18. package/browser/esm/COSdjubnJ_UgB-Gr.mjs +111 -0
  19. package/browser/esm/CS1t46OUALKkZxTa.mjs +494 -0
  20. package/browser/esm/CS8eRkAhoCN8KdGO.mjs +52 -0
  21. package/browser/esm/CcXnQZ4Fk_nkbq2G.mjs +99 -0
  22. package/browser/esm/Ch5gA6g56cOtRvJA.mjs +2193 -0
  23. package/browser/esm/DRuB-nlH4kq_OQJ5.mjs +196 -0
  24. package/browser/esm/DoKP-E832M9vPWgU.mjs +4675 -0
  25. package/browser/esm/XoDWB6uCJVrra-pE.mjs +2623 -0
  26. package/browser/esm/index.mjs +8 -0
  27. package/licenses/dependencies.txt +60 -0
  28. package/node/esm/B3Hb3GSFs_FIoXoI.mjs +209 -0
  29. package/node/esm/BqwG-e5ddQ45fg8w.mjs +2702 -0
  30. package/node/esm/C81WoKHbCRwhcHWd.mjs +2413 -0
  31. package/node/esm/CIzCy_gyysEIa_HI.mjs +3700 -0
  32. package/node/esm/CL8002u21KKQkkL0.mjs +108 -0
  33. package/node/esm/DF893ovKIDS88O7b.mjs +2237 -0
  34. package/node/esm/DTuPlHBTHnbLGvxd.mjs +504 -0
  35. package/node/esm/DVJuJqAXDwgA-ge8.mjs +118 -0
  36. package/node/esm/index.mjs +52 -0
  37. package/package.json +55 -0
  38. package/types/index.d.ts +2 -0
  39. package/types/src/ConditionalFormatRules.d.ts +86 -0
  40. package/types/src/ConditionalFormatRules.d.ts.map +1 -0
  41. package/types/src/DataValidationRules.d.ts +59 -0
  42. package/types/src/DataValidationRules.d.ts.map +1 -0
  43. package/types/src/ExcelCompat.d.ts +142 -0
  44. package/types/src/ExcelCompat.d.ts.map +1 -0
  45. package/types/src/ExcelFunctionFacts.d.ts +375 -0
  46. package/types/src/ExcelFunctionFacts.d.ts.map +1 -0
  47. package/types/src/ExcelReservedNames.d.ts +67 -0
  48. package/types/src/ExcelReservedNames.d.ts.map +1 -0
  49. package/types/src/LegacyFormula.d.ts +74 -0
  50. package/types/src/LegacyFormula.d.ts.map +1 -0
  51. package/types/src/OOXMLEscape.d.ts +28 -0
  52. package/types/src/OOXMLEscape.d.ts.map +1 -0
  53. package/types/src/OOXMLExtensions.d.ts +53 -0
  54. package/types/src/OOXMLExtensions.d.ts.map +1 -0
  55. package/types/src/OperandLiterals.d.ts +34 -0
  56. package/types/src/OperandLiterals.d.ts.map +1 -0
  57. package/types/src/Plugin.d.ts +16 -0
  58. package/types/src/Plugin.d.ts.map +1 -0
  59. package/types/src/SourcePackage.d.ts +76 -0
  60. package/types/src/SourcePackage.d.ts.map +1 -0
  61. package/types/src/Types.d.ts +44 -0
  62. package/types/src/Types.d.ts.map +1 -0
  63. package/types/src/cfb/CompoundFileReader.d.ts +73 -0
  64. package/types/src/cfb/CompoundFileReader.d.ts.map +1 -0
  65. package/types/src/cfb/CompoundFileWriter.d.ts +57 -0
  66. package/types/src/cfb/CompoundFileWriter.d.ts.map +1 -0
  67. package/types/src/cfb/index.d.ts +3 -0
  68. package/types/src/cfb/index.d.ts.map +1 -0
  69. package/types/src/index.d.ts +3 -0
  70. package/types/src/index.d.ts.map +1 -0
  71. package/types/src/legacyChart/OOXMLMappings.d.ts +8 -0
  72. package/types/src/legacyChart/OOXMLMappings.d.ts.map +1 -0
  73. package/types/src/legacyChart/OOXMLUtils.d.ts +78 -0
  74. package/types/src/legacyChart/OOXMLUtils.d.ts.map +1 -0
  75. package/types/src/legacyChart/ToOOXMLConverter.d.ts +30 -0
  76. package/types/src/legacyChart/ToOOXMLConverter.d.ts.map +1 -0
  77. package/types/src/offcrypto/AgileCrypto.d.ts +85 -0
  78. package/types/src/offcrypto/AgileCrypto.d.ts.map +1 -0
  79. package/types/src/offcrypto/EncryptionInfo.d.ts +109 -0
  80. package/types/src/offcrypto/EncryptionInfo.d.ts.map +1 -0
  81. package/types/src/offcrypto/LazyOffCryptoEncryption.d.ts +18 -0
  82. package/types/src/offcrypto/LazyOffCryptoEncryption.d.ts.map +1 -0
  83. package/types/src/offcrypto/OffCryptoEncryption.d.ts +15 -0
  84. package/types/src/offcrypto/OffCryptoEncryption.d.ts.map +1 -0
  85. package/types/src/offcrypto/index.d.ts +5 -0
  86. package/types/src/offcrypto/index.d.ts.map +1 -0
  87. package/types/src/reader/DummyFunctionUnwrap.d.ts +58 -0
  88. package/types/src/reader/DummyFunctionUnwrap.d.ts.map +1 -0
  89. package/types/src/reader/ReaderProfiler.d.ts +45 -0
  90. package/types/src/reader/ReaderProfiler.d.ts.map +1 -0
  91. package/types/src/reader/ReaderUtils.d.ts +66 -0
  92. package/types/src/reader/ReaderUtils.d.ts.map +1 -0
  93. package/types/src/reader/XLSXReader.d.ts +11 -0
  94. package/types/src/reader/XLSXReader.d.ts.map +1 -0
  95. package/types/src/reader/ZipReader.d.ts +62 -0
  96. package/types/src/reader/ZipReader.d.ts.map +1 -0
  97. package/types/src/reader/dom/DOMTransformer.d.ts +22 -0
  98. package/types/src/reader/dom/DOMTransformer.d.ts.map +1 -0
  99. package/types/src/reader/dom/DefaultVisitor.d.ts +8 -0
  100. package/types/src/reader/dom/DefaultVisitor.d.ts.map +1 -0
  101. package/types/src/reader/dom/ExecutionContext.d.ts +78 -0
  102. package/types/src/reader/dom/ExecutionContext.d.ts.map +1 -0
  103. package/types/src/reader/dom/NumberUtils.d.ts +17 -0
  104. package/types/src/reader/dom/NumberUtils.d.ts.map +1 -0
  105. package/types/src/reader/dom/Types.d.ts +27 -0
  106. package/types/src/reader/dom/Types.d.ts.map +1 -0
  107. package/types/src/reader/dom/VisitContext.d.ts +10 -0
  108. package/types/src/reader/dom/VisitContext.d.ts.map +1 -0
  109. package/types/src/reader/dom/Visitor.d.ts +23 -0
  110. package/types/src/reader/dom/Visitor.d.ts.map +1 -0
  111. package/types/src/reader/dom/VisitorUtils.d.ts +16 -0
  112. package/types/src/reader/dom/VisitorUtils.d.ts.map +1 -0
  113. package/types/src/reader/dom/index.d.ts +7 -0
  114. package/types/src/reader/dom/index.d.ts.map +1 -0
  115. package/types/src/reader/domVisitors/AppPropertiesVisitor.d.ts +11 -0
  116. package/types/src/reader/domVisitors/AppPropertiesVisitor.d.ts.map +1 -0
  117. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +25 -0
  118. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts.map +1 -0
  119. package/types/src/reader/domVisitors/AxisVisitor.d.ts +12 -0
  120. package/types/src/reader/domVisitors/AxisVisitor.d.ts.map +1 -0
  121. package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts +6 -0
  122. package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts.map +1 -0
  123. package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts +6 -0
  124. package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts.map +1 -0
  125. package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts +7 -0
  126. package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts.map +1 -0
  127. package/types/src/reader/domVisitors/ChartVisitor.d.ts +7 -0
  128. package/types/src/reader/domVisitors/ChartVisitor.d.ts.map +1 -0
  129. package/types/src/reader/domVisitors/ClrSchemeVisitor.d.ts +7 -0
  130. package/types/src/reader/domVisitors/ClrSchemeVisitor.d.ts.map +1 -0
  131. package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts +37 -0
  132. package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts.map +1 -0
  133. package/types/src/reader/domVisitors/CommentVisitor.d.ts +6 -0
  134. package/types/src/reader/domVisitors/CommentVisitor.d.ts.map +1 -0
  135. package/types/src/reader/domVisitors/CommentsVisitor.d.ts +7 -0
  136. package/types/src/reader/domVisitors/CommentsVisitor.d.ts.map +1 -0
  137. package/types/src/reader/domVisitors/CorePropertiesVisitor.d.ts +11 -0
  138. package/types/src/reader/domVisitors/CorePropertiesVisitor.d.ts.map +1 -0
  139. package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts +8 -0
  140. package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts.map +1 -0
  141. package/types/src/reader/domVisitors/DataPointVisitor.d.ts +6 -0
  142. package/types/src/reader/domVisitors/DataPointVisitor.d.ts.map +1 -0
  143. package/types/src/reader/domVisitors/DrawingAnchorVisitor.d.ts +8 -0
  144. package/types/src/reader/domVisitors/DrawingAnchorVisitor.d.ts.map +1 -0
  145. package/types/src/reader/domVisitors/DrawingCxnSpVisitor.d.ts +7 -0
  146. package/types/src/reader/domVisitors/DrawingCxnSpVisitor.d.ts.map +1 -0
  147. package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +6 -0
  148. package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts.map +1 -0
  149. package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts +7 -0
  150. package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts.map +1 -0
  151. package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts +7 -0
  152. package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts.map +1 -0
  153. package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts +7 -0
  154. package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts.map +1 -0
  155. package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts +7 -0
  156. package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts.map +1 -0
  157. package/types/src/reader/domVisitors/DrawingVisitor.d.ts +5 -0
  158. package/types/src/reader/domVisitors/DrawingVisitor.d.ts.map +1 -0
  159. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +32 -0
  160. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts.map +1 -0
  161. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +22 -0
  162. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts.map +1 -0
  163. package/types/src/reader/domVisitors/FontSchemeVisitor.d.ts +7 -0
  164. package/types/src/reader/domVisitors/FontSchemeVisitor.d.ts.map +1 -0
  165. package/types/src/reader/domVisitors/HyperlinkVisitor.d.ts +6 -0
  166. package/types/src/reader/domVisitors/HyperlinkVisitor.d.ts.map +1 -0
  167. package/types/src/reader/domVisitors/LayoutVisitor.d.ts +5 -0
  168. package/types/src/reader/domVisitors/LayoutVisitor.d.ts.map +1 -0
  169. package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts +5 -0
  170. package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts.map +1 -0
  171. package/types/src/reader/domVisitors/LegendVisitor.d.ts +5 -0
  172. package/types/src/reader/domVisitors/LegendVisitor.d.ts.map +1 -0
  173. package/types/src/reader/domVisitors/MarkerVisitor.d.ts +5 -0
  174. package/types/src/reader/domVisitors/MarkerVisitor.d.ts.map +1 -0
  175. package/types/src/reader/domVisitors/MetadataVisitor.d.ts +104 -0
  176. package/types/src/reader/domVisitors/MetadataVisitor.d.ts.map +1 -0
  177. package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts +6 -0
  178. package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts.map +1 -0
  179. package/types/src/reader/domVisitors/OOXMLVisitorUtils.d.ts +3 -0
  180. package/types/src/reader/domVisitors/OOXMLVisitorUtils.d.ts.map +1 -0
  181. package/types/src/reader/domVisitors/PersonListVisitor.d.ts +5 -0
  182. package/types/src/reader/domVisitors/PersonListVisitor.d.ts.map +1 -0
  183. package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts +5 -0
  184. package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts.map +1 -0
  185. package/types/src/reader/domVisitors/PresetTableStylesVisitor.d.ts +8 -0
  186. package/types/src/reader/domVisitors/PresetTableStylesVisitor.d.ts.map +1 -0
  187. package/types/src/reader/domVisitors/RelsVisitor.d.ts +9 -0
  188. package/types/src/reader/domVisitors/RelsVisitor.d.ts.map +1 -0
  189. package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts +7 -0
  190. package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts.map +1 -0
  191. package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts +6 -0
  192. package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts.map +1 -0
  193. package/types/src/reader/domVisitors/SeriesVisitor.d.ts +8 -0
  194. package/types/src/reader/domVisitors/SeriesVisitor.d.ts.map +1 -0
  195. package/types/src/reader/domVisitors/ShapePropertiesVisitor.d.ts +6 -0
  196. package/types/src/reader/domVisitors/ShapePropertiesVisitor.d.ts.map +1 -0
  197. package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts +28 -0
  198. package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts.map +1 -0
  199. package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +20 -0
  200. package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts.map +1 -0
  201. package/types/src/reader/domVisitors/SlicerCacheDefinitionVisitor.d.ts +6 -0
  202. package/types/src/reader/domVisitors/SlicerCacheDefinitionVisitor.d.ts.map +1 -0
  203. package/types/src/reader/domVisitors/SlicersVisitor.d.ts +7 -0
  204. package/types/src/reader/domVisitors/SlicersVisitor.d.ts.map +1 -0
  205. package/types/src/reader/domVisitors/SortStateVisitor.d.ts +8 -0
  206. package/types/src/reader/domVisitors/SortStateVisitor.d.ts.map +1 -0
  207. package/types/src/reader/domVisitors/TableVisitor.d.ts +10 -0
  208. package/types/src/reader/domVisitors/TableVisitor.d.ts.map +1 -0
  209. package/types/src/reader/domVisitors/TableX14Visitor.d.ts +6 -0
  210. package/types/src/reader/domVisitors/TableX14Visitor.d.ts.map +1 -0
  211. package/types/src/reader/domVisitors/TextPropertiesVisitor.d.ts +11 -0
  212. package/types/src/reader/domVisitors/TextPropertiesVisitor.d.ts.map +1 -0
  213. package/types/src/reader/domVisitors/ThemeVisitor.d.ts +6 -0
  214. package/types/src/reader/domVisitors/ThemeVisitor.d.ts.map +1 -0
  215. package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts +9 -0
  216. package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts.map +1 -0
  217. package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts +6 -0
  218. package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts.map +1 -0
  219. package/types/src/reader/domVisitors/TitleVisitor.d.ts +9 -0
  220. package/types/src/reader/domVisitors/TitleVisitor.d.ts.map +1 -0
  221. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +30 -0
  222. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts.map +1 -0
  223. package/types/src/reader/domVisitors/index.d.ts +101 -0
  224. package/types/src/reader/domVisitors/index.d.ts.map +1 -0
  225. package/types/src/reader/sax/SaxParser.d.ts +34 -0
  226. package/types/src/reader/sax/SaxParser.d.ts.map +1 -0
  227. package/types/src/reader/sax/SaxVisitor.d.ts +59 -0
  228. package/types/src/reader/sax/SaxVisitor.d.ts.map +1 -0
  229. package/types/src/reader/sax/Saxes.d.ts +641 -0
  230. package/types/src/reader/sax/Saxes.d.ts.map +1 -0
  231. package/types/src/reader/sax/index.d.ts +3 -0
  232. package/types/src/reader/sax/index.d.ts.map +1 -0
  233. package/types/src/reader/sax/xmlchars/xml/1.0/ed4.d.ts +32 -0
  234. package/types/src/reader/sax/xmlchars/xml/1.0/ed4.d.ts.map +1 -0
  235. package/types/src/reader/sax/xmlchars/xml/1.0/ed5.d.ts +52 -0
  236. package/types/src/reader/sax/xmlchars/xml/1.0/ed5.d.ts.map +1 -0
  237. package/types/src/reader/sax/xmlchars/xml/1.1/ed2.d.ts +74 -0
  238. package/types/src/reader/sax/xmlchars/xml/1.1/ed2.d.ts.map +1 -0
  239. package/types/src/reader/sax/xmlchars/xmlns/1.0/ed3.d.ts +29 -0
  240. package/types/src/reader/sax/xmlchars/xmlns/1.0/ed3.d.ts.map +1 -0
  241. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +54 -0
  242. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts.map +1 -0
  243. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +22 -0
  244. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts.map +1 -0
  245. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +25 -0
  246. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts.map +1 -0
  247. package/types/src/vba/CompoundDocumentCompression.d.ts +37 -0
  248. package/types/src/vba/CompoundDocumentCompression.d.ts.map +1 -0
  249. package/types/src/vba/VBAProject.d.ts +47 -0
  250. package/types/src/vba/VBAProject.d.ts.map +1 -0
  251. package/types/src/vba/index.d.ts +3 -0
  252. package/types/src/vba/index.d.ts.map +1 -0
  253. package/types/src/writer/XLSXWriter.d.ts +4 -0
  254. package/types/src/writer/XLSXWriter.d.ts.map +1 -0
  255. package/types/src/writer/builder/ContentTypes.d.ts +18 -0
  256. package/types/src/writer/builder/ContentTypes.d.ts.map +1 -0
  257. package/types/src/writer/builder/Emitter.d.ts +25 -0
  258. package/types/src/writer/builder/Emitter.d.ts.map +1 -0
  259. package/types/src/writer/builder/EmitterRegistry.d.ts +29 -0
  260. package/types/src/writer/builder/EmitterRegistry.d.ts.map +1 -0
  261. package/types/src/writer/builder/OpcXmlUtils.d.ts +26 -0
  262. package/types/src/writer/builder/OpcXmlUtils.d.ts.map +1 -0
  263. package/types/src/writer/builder/PackageBuilder.d.ts +148 -0
  264. package/types/src/writer/builder/PackageBuilder.d.ts.map +1 -0
  265. package/types/src/writer/builder/PartWriter.d.ts +24 -0
  266. package/types/src/writer/builder/PartWriter.d.ts.map +1 -0
  267. package/types/src/writer/builder/RelationshipSet.d.ts +18 -0
  268. package/types/src/writer/builder/RelationshipSet.d.ts.map +1 -0
  269. package/types/src/writer/builder/Types.d.ts +311 -0
  270. package/types/src/writer/builder/Types.d.ts.map +1 -0
  271. package/types/src/writer/builder/Utils.d.ts +63 -0
  272. package/types/src/writer/builder/Utils.d.ts.map +1 -0
  273. package/types/src/writer/builder/XmlWriter.d.ts +3 -0
  274. package/types/src/writer/builder/XmlWriter.d.ts.map +1 -0
  275. package/types/src/writer/builder/ZipBackend.d.ts +21 -0
  276. package/types/src/writer/builder/ZipBackend.d.ts.map +1 -0
  277. package/types/src/writer/builder/_Types.d.ts +102 -0
  278. package/types/src/writer/builder/_Types.d.ts.map +1 -0
  279. package/types/src/writer/builder/index.d.ts +6 -0
  280. package/types/src/writer/builder/index.d.ts.map +1 -0
  281. package/types/src/writer/emitters/ChartColorsEmitter.d.ts +7 -0
  282. package/types/src/writer/emitters/ChartColorsEmitter.d.ts.map +1 -0
  283. package/types/src/writer/emitters/ChartEmitter.d.ts +14 -0
  284. package/types/src/writer/emitters/ChartEmitter.d.ts.map +1 -0
  285. package/types/src/writer/emitters/ChartStyleEmitter.d.ts +46 -0
  286. package/types/src/writer/emitters/ChartStyleEmitter.d.ts.map +1 -0
  287. package/types/src/writer/emitters/DrawingEmitter.d.ts +15 -0
  288. package/types/src/writer/emitters/DrawingEmitter.d.ts.map +1 -0
  289. package/types/src/writer/emitters/MetadataEmitter.d.ts +8 -0
  290. package/types/src/writer/emitters/MetadataEmitter.d.ts.map +1 -0
  291. package/types/src/writer/emitters/PropsAppEmitter.d.ts +12 -0
  292. package/types/src/writer/emitters/PropsAppEmitter.d.ts.map +1 -0
  293. package/types/src/writer/emitters/PropsCoreEmitter.d.ts +7 -0
  294. package/types/src/writer/emitters/PropsCoreEmitter.d.ts.map +1 -0
  295. package/types/src/writer/emitters/RichValueEmitter.d.ts +8 -0
  296. package/types/src/writer/emitters/RichValueEmitter.d.ts.map +1 -0
  297. package/types/src/writer/emitters/RichValueStructureEmitter.d.ts +28 -0
  298. package/types/src/writer/emitters/RichValueStructureEmitter.d.ts.map +1 -0
  299. package/types/src/writer/emitters/RichValueTypesEmitter.d.ts +10 -0
  300. package/types/src/writer/emitters/RichValueTypesEmitter.d.ts.map +1 -0
  301. package/types/src/writer/emitters/SharedStringsEmitter.d.ts +13 -0
  302. package/types/src/writer/emitters/SharedStringsEmitter.d.ts.map +1 -0
  303. package/types/src/writer/emitters/StylesEmitter.d.ts +17 -0
  304. package/types/src/writer/emitters/StylesEmitter.d.ts.map +1 -0
  305. package/types/src/writer/emitters/TableEmitter.d.ts +14 -0
  306. package/types/src/writer/emitters/TableEmitter.d.ts.map +1 -0
  307. package/types/src/writer/emitters/ThemeEmitter.d.ts +16 -0
  308. package/types/src/writer/emitters/ThemeEmitter.d.ts.map +1 -0
  309. package/types/src/writer/emitters/WorkbookEmitter.d.ts +11 -0
  310. package/types/src/writer/emitters/WorkbookEmitter.d.ts.map +1 -0
  311. package/types/src/writer/emitters/WorksheetEmitter.d.ts +18 -0
  312. package/types/src/writer/emitters/WorksheetEmitter.d.ts.map +1 -0
  313. package/types/src/writer/emitters/index.d.ts +3 -0
  314. package/types/src/writer/emitters/index.d.ts.map +1 -0
  315. package/types/src/writer/utils/AutoFilter.d.ts +15 -0
  316. package/types/src/writer/utils/AutoFilter.d.ts.map +1 -0
  317. package/types/src/writer/utils/ColorUtils.d.ts +46 -0
  318. package/types/src/writer/utils/ColorUtils.d.ts.map +1 -0
  319. package/types/src/writer/utils/DrawMLUtils.d.ts +26 -0
  320. package/types/src/writer/utils/DrawMLUtils.d.ts.map +1 -0
  321. package/types/src/writer/utils/DummyFunction.d.ts +66 -0
  322. package/types/src/writer/utils/DummyFunction.d.ts.map +1 -0
  323. package/types/src/writer/utils/DxfCollector.d.ts +22 -0
  324. package/types/src/writer/utils/DxfCollector.d.ts.map +1 -0
  325. package/types/src/writer/utils/ExtLstUtils.d.ts +3 -0
  326. package/types/src/writer/utils/ExtLstUtils.d.ts.map +1 -0
  327. package/types/src/writer/utils/IDUtils.d.ts +2 -0
  328. package/types/src/writer/utils/IDUtils.d.ts.map +1 -0
  329. package/types/src/writer/utils/MetadataCollector.d.ts +146 -0
  330. package/types/src/writer/utils/MetadataCollector.d.ts.map +1 -0
  331. package/types/src/writer/utils/ProtectionUtils.d.ts +3 -0
  332. package/types/src/writer/utils/ProtectionUtils.d.ts.map +1 -0
  333. package/types/src/writer/utils/RichValueCollector.d.ts +200 -0
  334. package/types/src/writer/utils/RichValueCollector.d.ts.map +1 -0
  335. package/types/src/writer/utils/TextUtils.d.ts +8 -0
  336. package/types/src/writer/utils/TextUtils.d.ts.map +1 -0
  337. package/types/src/writer/utils/UnsupportedFunctions.d.ts +19 -0
  338. package/types/src/writer/utils/UnsupportedFunctions.d.ts.map +1 -0
  339. package/types/src/writer/utils/VersionUtils.d.ts +26 -0
  340. package/types/src/writer/utils/VersionUtils.d.ts.map +1 -0
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Parser for the `EncryptionInfo` stream of a password-protected Office container (MS-OFFCRYPTO).
3
+ *
4
+ * @see https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-offcrypto/4f2e28a1-624a-4bed-b3ec-816f0df484ff
5
+ *
6
+ * @remarks
7
+ * The stream opens with a 4-byte version, which selects everything that follows:
8
+ *
9
+ * | Major | Minor | Scheme | Support |
10
+ * |---|---|---|---|
11
+ * | 4 | 4 | **Agile** — an XML descriptor | read + (later) write |
12
+ * | 4 or 3 | 2 | Standard ECMA-376 — a binary header | detected, not decrypted |
13
+ * | 2 | 2 | Office binary RC4 CryptoAPI | detected, not decrypted |
14
+ * | 1 | 1 | RC4 / XOR obfuscation | detected, not decrypted |
15
+ *
16
+ * Agile is what every Office release since 2010 writes, so it is the one we implement. The others
17
+ * are recognised precisely so an old file gets "this uses an older encryption scheme" rather than a
18
+ * corrupt-file error.
19
+ */
20
+ export declare namespace EncryptionInfo {
21
+ /** How a container's key material and payload are protected. */
22
+ type Scheme = 'agile' | 'standard' | 'rc4-cryptoapi' | 'rc4';
23
+ /**
24
+ * The `keyData` element: how the *payload* (the `EncryptedPackage` stream) is encrypted.
25
+ */
26
+ interface KeyData {
27
+ saltValue: Uint8Array;
28
+ /** Cipher block size in bytes (16 for AES). */
29
+ blockSize: number;
30
+ /** Key length in bits (128 / 192 / 256). */
31
+ keyBits: number;
32
+ /** Digest size in bytes. */
33
+ hashSize: number;
34
+ /** e.g. `'AES'`. */
35
+ cipherAlgorithm: string;
36
+ /** e.g. `'ChainingModeCBC'`. */
37
+ cipherChaining: string;
38
+ /** e.g. `'SHA512'`. */
39
+ hashAlgorithm: string;
40
+ }
41
+ /**
42
+ * The password `keyEncryptor`: how the payload key is wrapped by a password-derived key, plus the
43
+ * material used to verify a password before anything is decrypted.
44
+ */
45
+ interface PasswordKeyEncryptor extends KeyData {
46
+ /** PBKDF iteration count (Excel writes 100000). */
47
+ spinCount: number;
48
+ encryptedVerifierHashInput: Uint8Array;
49
+ encryptedVerifierHashValue: Uint8Array;
50
+ encryptedKeyValue: Uint8Array;
51
+ }
52
+ /**
53
+ * The optional `dataIntegrity` element — an HMAC over the encrypted payload.
54
+ *
55
+ * @remarks
56
+ * Agile encryption is AES-**CBC**, which is not authenticated, so this HMAC is the only thing
57
+ * standing between a decrypt and undetected tampering. Absent in some third-party writers.
58
+ */
59
+ interface DataIntegrity {
60
+ encryptedHmacKey: Uint8Array;
61
+ encryptedHmacValue: Uint8Array;
62
+ }
63
+ interface Agile {
64
+ scheme: 'agile';
65
+ keyData: KeyData;
66
+ passwordKeyEncryptor: PasswordKeyEncryptor;
67
+ dataIntegrity: DataIntegrity | null;
68
+ }
69
+ /** A recognised but unimplemented scheme. */
70
+ interface Unsupported {
71
+ scheme: Exclude<Scheme, 'agile'>;
72
+ versionMajor: number;
73
+ versionMinor: number;
74
+ }
75
+ type Parsed = Agile | Unsupported;
76
+ /**
77
+ * Serializes an agile `EncryptionInfo` stream: the 4-byte version, 4 reserved bytes, then the
78
+ * UTF-8 XML descriptor.
79
+ *
80
+ * @remarks
81
+ * The namespace declarations and attribute set match what Excel writes. The `p:` prefix on
82
+ * `encryptedKey` is not decorative — it binds the password key-encryptor namespace, and readers
83
+ * (ours included) look for that element by local name within a `keyEncryptor`.
84
+ */
85
+ const build: (parts: {
86
+ keyDataSalt: Uint8Array;
87
+ encryptorSalt: Uint8Array;
88
+ spinCount: number;
89
+ saltSize: number;
90
+ blockSize: number;
91
+ keyBits: number;
92
+ hashSize: number;
93
+ cipherAlgorithm: string;
94
+ cipherChaining: string;
95
+ hashAlgorithm: string;
96
+ encryptedVerifierHashInput: Uint8Array;
97
+ encryptedVerifierHashValue: Uint8Array;
98
+ encryptedKeyValue: Uint8Array;
99
+ encryptedHmacKey: Uint8Array;
100
+ encryptedHmacValue: Uint8Array;
101
+ }) => Uint8Array;
102
+ /**
103
+ * Parses the `EncryptionInfo` stream.
104
+ *
105
+ * @throws {Error} When the stream is not a recognisable EncryptionInfo at all.
106
+ */
107
+ const parse: (stream: Uint8Array) => Parsed;
108
+ }
109
+ //# sourceMappingURL=EncryptionInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EncryptionInfo.d.ts","sourceRoot":"","sources":["../../../../src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,KAAK,GAAI,OAAO;QAC3B,WAAW,EAAE,UAAU,CAAC;QACxB,aAAa,EAAE,UAAU,CAAC;QAC1B,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QACvE,eAAe,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QACvE,0BAA0B,EAAE,UAAU,CAAC;QACvC,0BAA0B,EAAE,UAAU,CAAC;QACvC,iBAAiB,EAAE,UAAU,CAAC;QAC9B,gBAAgB,EAAE,UAAU,CAAC;QAC7B,kBAAkB,EAAE,UAAU,CAAC;KAChC,KAAG,UA6BH,CAAA;IAGD;;;;OAIG;IACI,MAAM,KAAK,GAAI,QAAQ,UAAU,KAAG,MAmD1C,CAAA;CACF"}
@@ -0,0 +1,18 @@
1
+ import { IWorkbookIO } from '@sheetxl/sdk';
2
+ /**
3
+ * The registration-time face of {@link OffCryptoEncryption}: identical behavior, but the CFB reader
4
+ * and crypto are pulled in only once a file actually looks like a compound file.
5
+ *
6
+ * @remarks
7
+ * This exists because **registration must not be async**. `WorkbookIO.install(plugin)` is
8
+ * fire-and-forget by design (`install(IOPlugin);` with no `await` is the documented usage), so a
9
+ * `register` that awaits a dynamic import before calling `registerEncryption` loses the race
10
+ * against an immediately following read — and the failure is silent and severe: the envelope is
11
+ * never consulted, the encrypted container is handed to a format handler as-is, and the user is
12
+ * told their file is corrupt.
13
+ *
14
+ * Deferring the import into `detect` keeps the lazy-loading benefit while making registration
15
+ * itself synchronous.
16
+ */
17
+ export declare const LazyOffCryptoEncryption: IWorkbookIO.EncryptionType;
18
+ //# sourceMappingURL=LazyOffCryptoEncryption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LazyOffCryptoEncryption.d.ts","sourceRoot":"","sources":["../../../../src/offcrypto/LazyOffCryptoEncryption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAqBhD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,cAgBjD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { IWorkbookIO } from '@sheetxl/sdk';
2
+ /**
3
+ * The MS-OFFCRYPTO encryption envelope: a CFB container holding an `EncryptionInfo` descriptor and
4
+ * the encrypted payload.
5
+ *
6
+ * @remarks
7
+ * Registered as a format-independent {@link IWorkbookIO.EncryptionType}, so it serves **every**
8
+ * format — the payload is opaque bytes, and nothing about the container assumes a zip inside. A
9
+ * password-protected `.xlsx` and a password-protected `.sxl` are the same file structure.
10
+ *
11
+ * Only **agile** encryption (Office 2010+) is implemented. Older schemes are detected and reported
12
+ * by name rather than surfacing as a corrupt file — see `describeScheme`.
13
+ */
14
+ export declare const OffCryptoEncryption: IWorkbookIO.EncryptionType;
15
+ //# sourceMappingURL=OffCryptoEncryption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OffCryptoEncryption.d.ts","sourceRoot":"","sources":["../../../../src/offcrypto/OffCryptoEncryption.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AA0DhD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,cAgE7C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './EncryptionInfo';
2
+ export * from './AgileCrypto';
3
+ export * from './OffCryptoEncryption';
4
+ export * from './LazyOffCryptoEncryption';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/offcrypto/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { IWorkbook, ISheet } from '@sheetxl/sdk';
2
+ /** What a cell's `<f>` turned out to be. */
3
+ export type Unwrapped =
4
+ /** Not a wrapper — use the text as-is. */
5
+ {
6
+ kind: 'none';
7
+ }
8
+ /** A wrapped formula; `formula` is the original text, without a leading `=`. */
9
+ | {
10
+ kind: 'formula';
11
+ formula: string;
12
+ }
13
+ /**
14
+ * A cell the original spilled INTO. It has no formula of its own and its cached value belongs to
15
+ * the anchor's result, so BOTH must be dropped — leaving the value behind would block the
16
+ * restored anchor from spilling and turn it into `#SPILL!`.
17
+ */
18
+ | {
19
+ kind: 'spilled';
20
+ };
21
+ /** A wrapped cell found during parsing, resolved later by {@link applyDummyFunctionUnwrap}. */
22
+ export interface DummyWrapRecord {
23
+ /** Identity of the sheet's parse-time JSON; the reader maps it to the constructed sheet. */
24
+ sheet: object;
25
+ rowIndex: number;
26
+ colIndex: number;
27
+ /** The original formula text, or `null` when this cell is a spilled-into placeholder. */
28
+ formula: string | null;
29
+ }
30
+ /**
31
+ * Classifies a raw `<f>` text.
32
+ *
33
+ * @param text The formula as stored, with no leading `=`.
34
+ */
35
+ export declare const unwrapDummyFunction: (text: string) => Unwrapped;
36
+ /**
37
+ * The function names called by `text`, upper-cased and stripped of `_xlfn.`/`_xlws.`.
38
+ *
39
+ * Scans rather than parses: string literals are skipped so a `")"` or `"SUM("` inside quoted text
40
+ * cannot be mistaken for a call, which is the whole reason this is not a regex.
41
+ */
42
+ export declare const extractFunctionNames: (text: string) => string[];
43
+ /**
44
+ * Restores the original formula for every wrapper whose functions this workbook actually has.
45
+ *
46
+ * Runs after the workbook is constructed, because that is the first moment the function registry
47
+ * exists — and the registry is the whole question. Unwrapping a formula we cannot evaluate would
48
+ * replace a correct cached value with `#NAME?`, which is worse than leaving the wrapper alone: the
49
+ * wrapper at least still shows the right answer. So a wrapper naming anything unknown (a Sheets
50
+ * function we do not implement, a UDF this session has not registered) is left exactly as it was.
51
+ *
52
+ * A spilled block is all-or-nothing. The placeholders are claimed by flood fill from the anchor —
53
+ * spill blocks are contiguous, so a placeholder connected to a resolvable anchor belongs to it —
54
+ * and are cleared BEFORE the anchor's formula is restored, since the restored formula needs those
55
+ * cells free to spill into. Placeholders of an unresolved anchor keep their values.
56
+ */
57
+ export declare const applyDummyFunctionUnwrap: (workbook: IWorkbook, records: DummyWrapRecord[], sheetsByRef: Map<object, ISheet>) => void;
58
+ //# sourceMappingURL=DummyFunctionUnwrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DummyFunctionUnwrap.d.ts","sourceRoot":"","sources":["../../../../src/reader/DummyFunctionUnwrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAoB3D,4CAA4C;AAC5C,MAAM,MAAM,SAAS;AACnB,0CAA0C;AACxC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;AAClB,gFAAgF;GAC9E;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE;AACtC;;;;GAIG;GACD;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAKxB,+FAA+F;AAC/F,MAAM,WAAW,eAAe;IAC9B,4FAA4F;IAC5F,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAoBD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,KAAG,SAwBlD,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,MAAM,EA6BzD,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,SAAS,EACnB,SAAS,eAAe,EAAE,EAC1B,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC/B,IAqEF,CAAA"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Lightweight phase profiler for the XLSX reader. Captures wall-clock time and JS heap usage at
3
+ * named checkpoints so we can see *where* a large read spends time and memory.
4
+ *
5
+ * @remarks
6
+ * Heap numbers are sampled, not GC-fenced — deltas between marks are indicative (allocation
7
+ * pressure between phases), not exact retained sizes. For a true peak use the browser DevTools
8
+ * allocation timeline; this is for cheap, in-band phase attribution (`readXLSX({ profile: true })`).
9
+ *
10
+ * Zero cost when not enabled: the reader only constructs one when `options.profile` is set.
11
+ */
12
+ export declare class ReaderProfiler {
13
+ private readonly _sink?;
14
+ private readonly _t0;
15
+ private _tPrev;
16
+ private _heapPrev;
17
+ private readonly _samples;
18
+ constructor(_sink?: ReaderProfiler.Sink | undefined);
19
+ /** Record a checkpoint with the time/heap delta since the previous mark. */
20
+ mark(label: string): void;
21
+ /** All samples captured so far. */
22
+ samples(): readonly ReaderProfiler.Sample[];
23
+ /** Pretty rows for `console.table` (bytes shown as MB). */
24
+ toTable(): Record<string, string | number>[];
25
+ }
26
+ export declare namespace ReaderProfiler {
27
+ /** A single phase checkpoint. */
28
+ interface Sample {
29
+ /** Checkpoint name (e.g. `'shared-strings'`). */
30
+ label: string;
31
+ /** Milliseconds since the profiler was created. */
32
+ tMs: number;
33
+ /** Milliseconds since the previous mark. */
34
+ dtMs: number;
35
+ /** JS heap used at this mark, if measurable (browser `performance.memory` / node `heapUsed`). */
36
+ heapBytes?: number;
37
+ /** Heap delta since the previous mark, if measurable. */
38
+ dHeapBytes?: number;
39
+ /** Resident set size (node only), if measurable. */
40
+ rssBytes?: number;
41
+ }
42
+ /** Per-mark callback. When `profile: true` the reader logs a `console.table` at the end instead. */
43
+ type Sink = (sample: Sample) => void;
44
+ }
45
+ //# sourceMappingURL=ReaderProfiler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReaderProfiler.d.ts","sourceRoot":"","sources":["../../../../src/reader/ReaderProfiler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,qBAAa,cAAc;IAMb,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC;IALnC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAC7B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+B;gBAE3B,KAAK,CAAC,EAAE,cAAc,CAAC,IAAI,YAAA;IAMxD,4EAA4E;IAC5E,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAiBzB,mCAAmC;IACnC,OAAO,IAAI,SAAS,cAAc,CAAC,MAAM,EAAE;IAI3C,2DAA2D;IAC3D,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAAE;CAU7C;AAED,yBAAiB,cAAc,CAAC;IAC9B,iCAAiC;IACjC,UAAiB,MAAM;QACrB,iDAAiD;QACjD,KAAK,EAAE,MAAM,CAAC;QACd,mDAAmD;QACnD,GAAG,EAAE,MAAM,CAAC;QACZ,4CAA4C;QAC5C,IAAI,EAAE,MAAM,CAAC;QACb,iGAAiG;QACjG,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,yDAAyD;QACzD,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,oDAAoD;QACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAED,oGAAoG;IACpG,KAAY,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C"}
@@ -0,0 +1,66 @@
1
+ import { DOMTransformer, TransformerOptions } from './dom';
2
+ /**
3
+ * Arc2D angles are skewed, OOXML aren't ... so we need to unskew them.
4
+ *
5
+ * a = height/width of bounding box
6
+ * angle_ooxml = ATAN(a * TAN(angle_arc2d))
7
+ *
8
+ * Furthermore ooxml angle starts at the X-axis and increases clock-wise,
9
+ * where as Arc2D api states
10
+ * "45 degrees always falls on the line from the center of the ellipse to the upper right corner of the framing rectangle"
11
+ * so we need to reverse it
12
+ *
13
+ * AWT: OOXML:
14
+ * |90/-270 |270/-90 (16200000)
15
+ * | |
16
+ * +/-180-----------0 +/-180-----------0
17
+ * | (10800000) |
18
+ * |270/-90 |90/-270 (5400000)
19
+ *
20
+ * Furthermore ooxml angle is degree * 60000
21
+ *
22
+ * @see
23
+ * <a href="http://www.onlinemathe.de/forum/Problem-bei-Winkelberechnungen-einer-Ellipse">unskew angle</a>
24
+ **/
25
+ export declare const convertOoxml2AwtAngle: (ooAngle: number, width: number, height: number) => number;
26
+ export interface DomParser {
27
+ parseFromString(xmlSource: string, mimeType?: string): Document;
28
+ }
29
+ export interface FileLookup {
30
+ (location: string): any;
31
+ }
32
+ export interface OOXMLRelationShip {
33
+ target: string;
34
+ type?: string;
35
+ targetMode?: string;
36
+ }
37
+ export declare const readAsBinary: (location: string, getFile: FileLookup, onWrite?: (buffer: ArrayBuffer, location: string) => any, options?: TransformerOptions | null) => any;
38
+ export declare const readAsJSON: (location: string, getFile: FileLookup, domParser: DomParser, domTransformer: DOMTransformer, options?: TransformerOptions | null) => any;
39
+ export declare const parseRels: (location: string, getFile: FileLookup, domParser: DomParser, domTransformer: DOMTransformer, options?: TransformerOptions | null) => Map<string, OOXMLRelationShip> | null;
40
+ export declare const readAsJSONs: (dirKey: string, directory: Record<string, any>, getFile: FileLookup, domParser: DomParser, domTransformer: DOMTransformer, options?: TransformerOptions | null) => Map<string, any>;
41
+ export declare const resolveRelatives: (path: string) => string;
42
+ export declare const uint8ArrayToReader: (uint8Array: Uint8Array) => ReadableStreamDefaultReader<Uint8Array>;
43
+ /**
44
+ * Create a reader stream from a 'bufferLike' (ArrayBuffer or Uint8Array).
45
+ *
46
+ * @param bufferLike - The buffer-like object to convert to a stream.
47
+ * @param chunkSize - the chunk size for reading the buffer-like object. Default Value 8mb
48
+ * @returns A Promise<ReadableStreamDefaultReader> that reads the buffer-like object.
49
+ */
50
+ export declare const arrayBufferToStringStream: (bufferLike: ArrayBuffer | Uint8Array, chunkSize?: number) => Promise<ReadableStreamDefaultReader<string>>;
51
+ /**
52
+ * Find color for theme index.
53
+ *
54
+ * @remarks
55
+ * Even though theme layout is (usually) dk1 lt1 dk2 lt2, index id is lt1 dk1 lt2 dk2
56
+ */
57
+ export declare const ThemeColorIndexToKey: readonly string[];
58
+ /**
59
+ * Slightly different than drawML. Rationalize.
60
+ */
61
+ export declare const readColorSpreadsheetML: (getAttribute: (name: string) => string, auto?: string) => string | undefined;
62
+ /**
63
+ * If the text has a leading and trailing curly braces, remove them.
64
+ */
65
+ export declare const removeCurlyBraces: (text: string) => string;
66
+ //# sourceMappingURL=ReaderUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReaderUtils.d.ts","sourceRoot":"","sources":["../../../../src/reader/ReaderUtils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAGrE;;;;;;;;;;;;;;;;;;;;;;IAsBI;AACJ,eAAO,MAAM,qBAAqB,GAChC,SAAS,MAAM,EACf,OAAO,MAAM,EACb,QAAQ,MAAM,KACb,MAyCF,CAAA;AAUD,MAAM,WAAW,SAAS;IACxB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CACjE;AAED,MAAM,WAAW,UAAU;IAEzB,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,GACvB,UAAU,MAAM,EAChB,SAAS,UAAU,EACnB,UAAU,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ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0,0 +1,11 @@
1
+ import { IWorkbook } from '@sheetxl/sdk';
2
+ import { ReadXLSXOptions } from '../Types';
3
+ /**
4
+ * Creates a new workbook with values imported from an XLSX.
5
+ *
6
+ * @param buffer The ArrayBuffer to import.
7
+ * @param options Import options.
8
+ * @returns A Promise for an IWorkbook
9
+ */
10
+ export declare const readXLSX: (buffer: ArrayBuffer, options?: ReadXLSXOptions) => Promise<IWorkbook>;
11
+ //# sourceMappingURL=XLSXReader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XLSXReader.d.ts","sourceRoot":"","sources":["../../../../src/reader/XLSXReader.ts"],"names":[],"mappings":"AAEA,OAAO,EAEQ,KAAK,SAAS,EAE5B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAkChD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GACnB,QAAQ,WAAW,EACnB,UAAU,eAAe,KACxB,OAAO,CAAC,SAAS,CA6wBnB,CAAA"}
@@ -0,0 +1,62 @@
1
+ import { FileEntry } from '@zip.js/zip.js';
2
+ export interface RawEntry {
3
+ /** Still-compressed bytes, exactly `entry.compressedSize` long. */
4
+ readonly data: Uint8Array;
5
+ readonly compressionMethod: number;
6
+ /** CRC32 of the *uncompressed* content. */
7
+ readonly signature: number;
8
+ }
9
+ export declare class ZipReader {
10
+ private readonly zip;
11
+ private readonly entries;
12
+ private readonly buffers;
13
+ /** Kept only for {@link getRawEntry}'s local-header slicing — see its doc comment. */
14
+ private readonly rawBuffer;
15
+ private constructor();
16
+ /** Zip entry names have no leading slash; OPC part names (`/xl/…`) do. */
17
+ private static normalize;
18
+ static create(input: ArrayBuffer | Uint8Array | Blob): Promise<ZipReader>;
19
+ /** All entry names (files only), no leading slash. */
20
+ getNames(): string[];
21
+ has(name: string): boolean;
22
+ /** The uncompressed size of an entry from the central directory, or 0 if unknown. */
23
+ uncompressedSize(name: string): number;
24
+ /** Decompress a single entry to a buffer (async). Caches the result. */
25
+ getBuffer(name: string): Promise<Uint8Array | null>;
26
+ /**
27
+ * Eagerly decompress every entry for which `include` returns true into the
28
+ * synchronous buffer cache. The excluded (streamed) parts are left out so they
29
+ * never materialize as a full buffer.
30
+ */
31
+ prefetch(include: (name: string, entry: FileEntry) => boolean): Promise<void>;
32
+ /** Synchronous access to a pre-decompressed entry (see {@link prefetch}). */
33
+ getEntry(name: string): Uint8Array | null;
34
+ /**
35
+ * Stream a single entry's decompressed bytes, decoded as UTF-8 text, as a
36
+ * reader suitable for `SaxParser.parseStream`. The full part is never held in
37
+ * memory — chunks flow through and are GC'd as the SAX parser consumes them.
38
+ *
39
+ * @param name The entry name.
40
+ * @param onBytes Optional progress hook, called with the number of decompressed bytes in each
41
+ * chunk as it is pulled (before decoding). Sum it against {@link uncompressedSize} for a
42
+ * stream-size-based progress measure.
43
+ */
44
+ getTextStream(name: string, onBytes?: (delta: number) => void): Promise<ReadableStreamDefaultReader<string> | null>;
45
+ /**
46
+ * The entry's still-compressed bytes, read directly out of the original buffer — never inflated,
47
+ * never re-deflated on a pass-through write. `null` whenever anything makes that unsafe, so the
48
+ * caller can fall back to {@link getBuffer}/{@link getEntry} plus normal compress-on-write:
49
+ * a `Blob` source (no synchronous bytes to slice), an encrypted entry, or a local header that
50
+ * doesn't parse where the central directory says it should.
51
+ *
52
+ * @remarks
53
+ * `entry.compressedSize`/`compressionMethod`/`signature` come from the *central directory*, which
54
+ * zip.js has already resolved (Zip64 extra fields included) — those are trusted as-is. Only the
55
+ * local header's own filename/extra-field lengths are read here, since the zip spec allows those
56
+ * two (and only those two) to legitimately differ from the central directory's copy; they're what
57
+ * locates where the compressed data actually starts.
58
+ */
59
+ getRawEntry(name: string): RawEntry | null;
60
+ close(): Promise<void>;
61
+ }
62
+ //# sourceMappingURL=ZipReader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZipReader.d.ts","sourceRoot":"","sources":["../../../../src/reader/ZipReader.ts"],"names":[],"mappings":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A2B,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IA6BtD;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI;IAqBpC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B"}
@@ -0,0 +1,22 @@
1
+ import { TransformerOptions } from './Types';
2
+ import { Visitor } from './Visitor';
3
+ import { ExecutionContext } from './ExecutionContext';
4
+ interface VisitedRecord {
5
+ visitor: Visitor;
6
+ context: ExecutionContext;
7
+ elemParent: Element;
8
+ jsonParent: any;
9
+ }
10
+ export declare class DOMTransformer {
11
+ private visitorsByXmlTagName;
12
+ private scopedVisitorsByXmlTagName;
13
+ private visitorParamsState;
14
+ constructor();
15
+ registerVisitor(nodeType: string, visitor: Visitor | null, path?: string | null): void;
16
+ getVisitorParamsState(): Map<string, any>;
17
+ transform(xmlRootDoc: Document, location: string, options?: TransformerOptions): any;
18
+ protected _walkScoped(elemName: string, context: ExecutionContext, visited: VisitedRecord[], elemParent: Element, jsonParent: any, location: string, options: TransformerOptions): void;
19
+ protected _doWalk(visitor: Visitor | null | undefined, context: ExecutionContext, visited: VisitedRecord[], elemParent: Element, jsonParent: any, location: string, options: TransformerOptions): any;
20
+ }
21
+ export default DOMTransformer;
22
+ //# sourceMappingURL=DOMTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DOMTransformer.d.ts","sourceRoot":"","sources":["../../../../../src/reader/dom/DOMTransformer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAetD,UAAU,aAAa;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,GAAG,CAAS;CACzB;AAED,qBAAa,cAAc;IACzB,OAAO,CAAC,oBAAoB,CAAkC;IAC9D,OAAO,CAAC,0BAA0B,CAA6C;IAC/E,OAAO,CAAC,kBAAkB,CAAgC;;IA+H1D,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,IAAI,GAAE,MAAM,GAAG,IAAS,GAAG,IAAI;IAkC1F,qBAAqB,IAAI,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAiBzC,SAAS,CACP,UAAU,EAAE,QAAQ,EACpB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,kBAA4C,GACpD,GAAG;IAgCN,SAAS,CAAC,WAAW,CACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,aAAa,EAAE,EACxB,UAAU,EAAE,OAAO,EACnB,UAAU,EAAE,GAAG,EACf,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,kBAAkB,GAC1B,IAAI;IAyCP,SAAS,CAAC,OAAO,CACf,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EACnC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,aAAa,EAAE,EACxB,UAAU,EAAE,OAAO,EACnB,UAAU,EAAE,GAAG,EACf,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,kBAAkB,GAC1B,GAAG;CAgDP;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Visitor } from './Visitor';
2
+ import { ExecutionContext } from './ExecutionContext';
3
+ export declare class DefaultVisitor implements Visitor {
4
+ private jsonKey;
5
+ constructor(jsonKey: string);
6
+ visit(_context: ExecutionContext, _elemParent: Element, jsonParent: any): any;
7
+ }
8
+ //# sourceMappingURL=DefaultVisitor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultVisitor.d.ts","sourceRoot":"","sources":["../../../../../src/reader/dom/DefaultVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,qBAAa,cAAe,YAAW,OAAO;IAC5C,OAAO,CAAC,OAAO,CAAS;gBAEZ,OAAO,EAAE,MAAM;IAI3B,KAAK,CAAC,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,GAAW,GAAG;CAKtF"}
@@ -0,0 +1,78 @@
1
+ import { IComment } from '@sheetxl/sdk';
2
+ import { RelationShipType, TransformerOptions } from './Types';
3
+ export interface VisitorParamsContainer {
4
+ getVisitorParamsState(): Map<string, any>;
5
+ }
6
+ type ValueMutator = (value: any) => any;
7
+ /**
8
+ * Used by visitors for context lookup.
9
+ *
10
+ * These are stackable and have a reference to their parent context.
11
+ *
12
+ */
13
+ export declare class ExecutionContext {
14
+ private _getRef?;
15
+ private _getRefs?;
16
+ private _fileLocation;
17
+ private jsonRoot;
18
+ private elemRoot;
19
+ private currentPath;
20
+ private sharedShared;
21
+ protected _parent: ExecutionContext | null;
22
+ private _onWarning?;
23
+ private _addPerson?;
24
+ private _serializeElement?;
25
+ constructor(parent: ExecutionContext | null, sharedState: VisitorParamsContainer, currentPath: string, elemRoot: Element, jsonRoot: any, fileLocation?: string | null, options?: TransformerOptions);
26
+ getRef(relId: string, asResource?: boolean): any;
27
+ getRelationships(): Map<string, RelationShipType>;
28
+ getPath(): string;
29
+ /** The OPC path of the file currently being read (e.g. "xl/drawings/drawing1.xml"). */
30
+ getFileLocation(): string;
31
+ getElemRoot(): Element;
32
+ getJsonRoot(): any;
33
+ warn(message: string): void;
34
+ /** Serializes a parsed DOM element back to an XML string, verbatim. Returns null if unavailable. */
35
+ serializeElement(elem: Element): string | null;
36
+ addPerson(person: string | Partial<IComment.PersonJSON>): IComment.PersonJSON | null;
37
+ getVisitorParamsState<T = any>(): Map<string, T>;
38
+ /**
39
+ * Evaluates a path expression against an XML element and returns matching elements.
40
+ *
41
+ * Supports a simple path syntax with wildcards:
42
+ * - extLst / * / x14:table - match extLst, any child, then x14:table
43
+ * - * / tableSlicerCache - recursive descent: find tableSlicerCache at any depth
44
+ * - ** / tableSlicerCache - explicit recursive descent syntax
45
+ * - a / b / c - direct path traversal
46
+ * - Empty segments and current directory are skipped
47
+ *
48
+ * @param path - Path expression with slash delimiters and asterisk wildcards
49
+ * @param element - Starting element for evaluation
50
+ * @returns Single Element if one match, NodeList if multiple, null if none
51
+ */
52
+ evaluate(path: string, element: Element): Element | NodeList | null;
53
+ /**
54
+ * Helper method to check if an element matches a given name (with or without namespace).
55
+ * @private
56
+ */
57
+ private _matchesElementName;
58
+ /**
59
+ * Recursively finds all descendants matching the given element name.
60
+ * @private
61
+ */
62
+ private _findDescendants;
63
+ getFromPath(obj: any, path: string): any;
64
+ setToPath(obj: any, path: string, value: any): any;
65
+ getValAttrAsString(xpathExpr: string, elemParent: Element): string | null;
66
+ getValAttrAsBoolean(xpathExpr: string, elemParent: Element, defaultValue?: boolean): boolean | null;
67
+ getValAttrAsInteger(xpathExpr: string, elemParent: Element): number | null;
68
+ getValAttrAsFloat(xpathExpr: string, elemParent: Element): number | null;
69
+ get BOOLEAN_COPY(): (value: any) => boolean | null;
70
+ get INT_COPY(): (value: any) => number | null;
71
+ get FLOAT_COPY(): (value: any) => number | null;
72
+ /**
73
+ * Copies a value to the jsonParent if the attribute exists.
74
+ */
75
+ copyFromAttribute(elem: Element, attrName: string, jsonParent: any, jsonPath?: string, mutator?: ValueMutator | ValueMutator[] | null): void;
76
+ }
77
+ export {};
78
+ //# sourceMappingURL=ExecutionContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExecutionContext.d.ts","sourceRoot":"","sources":["../../../../../src/reader/dom/ExecutionContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,C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OAAO,EACb,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,GAAG,EACf,QAAQ,GAAE,MAAe,EACzB,OAAO,GAAE,YAAY,GAAG,YAAY,EAAE,GAAG,IAAW,GACnD,IAAI;CAsBR"}
@@ -0,0 +1,17 @@
1
+ export declare const EMU_PER_POINT: number;
2
+ export declare const EMU_PER_PIXEL: number;
3
+ export declare const toPoints: (emu: string | null) => number | null;
4
+ export declare const toPixels: (emu: string | null) => number | null;
5
+ /**
6
+ * Converts a value of type FixedPoint to a movable point
7
+ *
8
+ * @param fixedPoint Value in fixed point notation
9
+ * @returns movable point (double)
10
+ *
11
+ * @see <a href="http://msdn.microsoft.com/en-us/library/dd910765(v=office.12).aspx">[MS-OSHARED] - 2.2.1.6 FixedPoint</a>
12
+ */
13
+ export declare const fixedPointToDouble: (fixedPoint: number) => number;
14
+ export declare const parsePercentage: (percent: string) => number;
15
+ export declare const parseAngle: (angle: string) => number;
16
+ export declare const parseAsBoolean: (value: string) => boolean;
17
+ //# sourceMappingURL=NumberUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberUtils.d.ts","sourceRoot":"","sources":["../../../../../src/reader/dom/NumberUtils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,EAAE,MAAc,CAAC;AAC3C,eAAO,MAAM,aAAa,EAAE,MAAa,CAAC;AAE1C,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,GAAG,IAAI,KAAG,MAAM,GAAG,IAKtD,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,GAAG,IAAI,KAAG,MAAM,GAAG,IAKtD,CAAA;AAGD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,YAAY,MAAM,KAAG,MAIvD,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAEjD,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MAE1C,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,OAE9C,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { IComment } from '@sheetxl/sdk';
2
+ export interface RelationShipType {
3
+ target?: string;
4
+ type?: string;
5
+ }
6
+ export declare const RelTypes: {
7
+ readonly Comments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
8
+ readonly ThreadedComments: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
9
+ };
10
+ export type RelTypes = typeof RelTypes[keyof typeof RelTypes];
11
+ export interface PeopleType {
12
+ author: string;
13
+ }
14
+ export interface TransformerOptions {
15
+ paramMap?: Map<string, any>;
16
+ getRef?: (relId: string, refLocation: string, asBinary: boolean, parsedRefs?: Map<string, Map<string, RelationShipType>>) => {
17
+ location: string;
18
+ data: any;
19
+ };
20
+ getRefs?: (refLocation: string, parsedRefs?: Map<string, Map<string, RelationShipType>>) => Map<string, RelationShipType>;
21
+ parsedRefs?: Map<string, any>;
22
+ onWarning?: (message: string) => void;
23
+ addPerson?: (person: Partial<IComment.PersonJSON>) => IComment.PersonJSON;
24
+ /** Serializes a parsed DOM element back to an XML string, verbatim. Used to capture unmodeled content. */
25
+ serializeElement?: (elem: Element) => string;
26
+ }
27
+ //# sourceMappingURL=Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../../src/reader/dom/Types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAG7C,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAE9D,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE5B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,KAAK;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,CAAA;KAAE,CAAC;IAE7J,OAAO,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,KAAK,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAE1H,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE9B,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,QAAQ,CAAC,UAAU,CAAC;IAE1E,0GAA0G;IAC1G,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,MAAM,CAAC;CAC9C"}
@@ -0,0 +1,10 @@
1
+ export interface VisitContext {
2
+ getXmlRootDoc(): Document;
3
+ getXmlContainerElement(): Element;
4
+ getJsonOutputRootObject(): any;
5
+ getJsonOutputContainerNode(): any;
6
+ getVisitorParamsState(): Map<string, any>;
7
+ getFromPath(path: string, obj: any): any;
8
+ setToPath(path: string, value: any, obj: any): void;
9
+ }
10
+ //# sourceMappingURL=VisitContext.d.ts.map