lambda-live-debugger 1.11.3 → 1.11.4

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 (1352) hide show
  1. package/dist/extension/extension.zip +0 -0
  2. package/dist/extension/nodejs/node_modules/interceptor.js +1313 -737
  3. package/dist/extension/nodejs/node_modules/interceptor.js.map +4 -4
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +347 -309
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +73 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +108 -108
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +230 -1
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +265 -1
  9. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +15 -11
  10. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +7 -1
  11. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  12. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +15 -1
  13. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +19 -1
  14. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sso/package.json +37 -37
  15. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
  16. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -52
  17. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +47 -52
  18. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -6
  19. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -6
  20. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  21. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +1 -2
  22. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
  23. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/package.json +18 -18
  24. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-env/package.json +11 -11
  25. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-http/package.json +16 -16
  26. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-ini/package.json +20 -20
  27. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-node/README.md +3 -3
  28. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +8 -2
  29. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +8 -2
  30. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-node/package.json +18 -18
  31. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-process/package.json +12 -12
  32. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-sso/package.json +14 -14
  33. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-web-identity/package.json +13 -13
  34. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/middleware-host-header/package.json +9 -9
  35. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/middleware-logger/package.json +9 -9
  36. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/middleware-recursion-detection/package.json +9 -9
  37. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/middleware-user-agent/package.json +12 -12
  38. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  39. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  40. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  41. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  42. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  43. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  44. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  45. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/region-config-resolver/package.json +10 -10
  46. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/token-providers/package.json +11 -11
  47. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/types/package.json +7 -7
  49. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  50. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  51. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  52. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  53. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -7
  54. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-user-agent-node/package.json +11 -11
  55. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/xml-builder/package.json +7 -7
  56. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/abort-controller/package.json +3 -3
  57. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/config-resolver/package.json +6 -6
  58. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  59. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
  60. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  61. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +23 -7
  62. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  63. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  64. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  65. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +23 -7
  66. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  67. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  68. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/core/package.json +11 -11
  69. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  70. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  71. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/hash-node/package.json +3 -3
  72. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/invalid-dependency/package.json +3 -3
  73. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/middleware-content-length/package.json +4 -4
  74. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  75. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/middleware-retry/package.json +12 -12
  76. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/middleware-serde/package.json +4 -4
  77. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/middleware-stack/package.json +3 -3
  78. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/node-config-provider/package.json +5 -5
  79. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/node-http-handler/package.json +6 -6
  80. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/property-provider/package.json +3 -3
  81. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/protocol-http/package.json +3 -3
  82. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/querystring-builder/package.json +3 -3
  83. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/querystring-parser/package.json +3 -3
  84. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/service-error-classification/package.json +3 -3
  85. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/signature-v4/package.json +5 -5
  86. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
  87. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
  88. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
  89. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
  90. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/smithy-client/package.json +11 -11
  91. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  92. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  93. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/types/package.json +2 -2
  94. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/url-parser/package.json +4 -4
  95. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  96. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  97. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-endpoints/package.json +4 -4
  98. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-middleware/package.json +3 -3
  99. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-retry/package.json +4 -4
  100. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  101. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  102. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  103. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  104. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  105. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  106. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  107. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  108. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  109. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  110. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  111. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  112. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  113. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  114. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  115. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  116. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  117. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  118. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  119. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  120. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  121. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  122. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  123. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  124. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-stream/package.json +5 -5
  125. package/node_modules/@aws-sdk/client-cloudformation/package.json +39 -39
  126. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js +34 -31
  127. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/CognitoIdentity.js +5 -1
  128. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/schemas/schemas_0.js +28 -28
  129. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/CognitoIdentity.d.ts +8 -1
  130. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/CognitoIdentity.d.ts +12 -1
  131. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +15 -11
  132. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +7 -1
  133. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  134. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +15 -1
  135. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +19 -1
  136. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso/package.json +37 -37
  137. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
  138. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -52
  139. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +47 -52
  140. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -6
  141. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -6
  142. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  143. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +1 -2
  144. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
  145. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/package.json +18 -18
  146. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-env/package.json +11 -11
  147. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-http/package.json +16 -16
  148. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-ini/package.json +20 -20
  149. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node/README.md +3 -3
  150. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +8 -2
  151. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +8 -2
  152. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node/package.json +18 -18
  153. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-process/package.json +12 -12
  154. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-sso/package.json +14 -14
  155. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-web-identity/package.json +13 -13
  156. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-host-header/package.json +9 -9
  157. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-logger/package.json +9 -9
  158. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-recursion-detection/package.json +9 -9
  159. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-user-agent/package.json +12 -12
  160. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  161. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  162. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  163. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  164. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  165. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  166. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  167. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/region-config-resolver/package.json +10 -10
  168. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/token-providers/package.json +11 -11
  169. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  170. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/types/package.json +7 -7
  171. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  172. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  173. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  174. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  175. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -7
  176. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-node/package.json +11 -11
  177. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/xml-builder/package.json +7 -7
  178. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/abort-controller/package.json +3 -3
  179. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/config-resolver/package.json +6 -6
  180. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  181. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
  182. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  183. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +23 -7
  184. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  185. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  186. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  187. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +23 -7
  188. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  189. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  190. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/core/package.json +11 -11
  191. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  192. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  193. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/hash-node/package.json +3 -3
  194. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/invalid-dependency/package.json +3 -3
  195. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/middleware-content-length/package.json +4 -4
  196. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  197. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/middleware-retry/package.json +12 -12
  198. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/middleware-serde/package.json +4 -4
  199. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/middleware-stack/package.json +3 -3
  200. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/node-config-provider/package.json +5 -5
  201. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/node-http-handler/package.json +6 -6
  202. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/property-provider/package.json +3 -3
  203. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/protocol-http/package.json +3 -3
  204. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/querystring-builder/package.json +3 -3
  205. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/querystring-parser/package.json +3 -3
  206. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/service-error-classification/package.json +3 -3
  207. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/signature-v4/package.json +5 -5
  208. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
  209. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
  210. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
  211. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
  212. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/smithy-client/package.json +11 -11
  213. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  214. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  215. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/types/package.json +2 -2
  216. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/url-parser/package.json +4 -4
  217. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  218. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  219. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-endpoints/package.json +4 -4
  220. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-middleware/package.json +3 -3
  221. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-retry/package.json +4 -4
  222. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  223. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  224. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  225. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  226. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  227. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  228. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  229. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  230. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  231. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  232. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  233. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  234. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  235. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  236. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  237. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  238. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  239. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  240. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  241. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  242. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  243. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  244. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  245. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  246. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream/package.json +5 -5
  247. package/node_modules/@aws-sdk/client-cognito-identity/package.json +39 -39
  248. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +450 -408
  249. package/node_modules/@aws-sdk/client-iam/dist-es/IAM.js +81 -1
  250. package/node_modules/@aws-sdk/client-iam/dist-es/schemas/schemas_0.js +239 -239
  251. package/node_modules/@aws-sdk/client-iam/dist-types/IAM.d.ts +264 -1
  252. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/IAM.d.ts +281 -1
  253. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +15 -11
  254. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +7 -1
  255. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  256. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +15 -1
  257. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +19 -1
  258. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso/package.json +37 -37
  259. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
  260. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -52
  261. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +47 -52
  262. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -6
  263. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -6
  264. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  265. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +1 -2
  266. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
  267. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/package.json +18 -18
  268. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-env/package.json +11 -11
  269. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-http/package.json +16 -16
  270. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-ini/package.json +20 -20
  271. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-node/README.md +3 -3
  272. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +8 -2
  273. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +8 -2
  274. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-node/package.json +18 -18
  275. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-process/package.json +12 -12
  276. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-sso/package.json +14 -14
  277. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-web-identity/package.json +13 -13
  278. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-host-header/package.json +9 -9
  279. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-logger/package.json +9 -9
  280. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-recursion-detection/package.json +9 -9
  281. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-user-agent/package.json +12 -12
  282. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  283. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  284. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  285. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  286. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  287. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  288. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  289. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/region-config-resolver/package.json +10 -10
  290. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/token-providers/package.json +11 -11
  291. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  292. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/types/package.json +7 -7
  293. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  294. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  295. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  296. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  297. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -7
  298. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-node/package.json +11 -11
  299. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/xml-builder/package.json +7 -7
  300. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/abort-controller/package.json +3 -3
  301. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/config-resolver/package.json +6 -6
  302. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  303. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
  304. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  305. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +23 -7
  306. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  307. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  308. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  309. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +23 -7
  310. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  311. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  312. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/core/package.json +11 -11
  313. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  314. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  315. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/hash-node/package.json +3 -3
  316. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/invalid-dependency/package.json +3 -3
  317. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-content-length/package.json +4 -4
  318. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  319. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-retry/package.json +12 -12
  320. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-serde/package.json +4 -4
  321. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-stack/package.json +3 -3
  322. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/node-config-provider/package.json +5 -5
  323. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/node-http-handler/package.json +6 -6
  324. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/property-provider/package.json +3 -3
  325. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/protocol-http/package.json +3 -3
  326. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/querystring-builder/package.json +3 -3
  327. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/querystring-parser/package.json +3 -3
  328. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/service-error-classification/package.json +3 -3
  329. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/signature-v4/package.json +5 -5
  330. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
  331. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
  332. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
  333. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
  334. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/smithy-client/package.json +11 -11
  335. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  336. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  337. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/types/package.json +2 -2
  338. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/url-parser/package.json +4 -4
  339. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  340. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  341. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-endpoints/package.json +4 -4
  342. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-middleware/package.json +3 -3
  343. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-retry/package.json +4 -4
  344. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  345. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  346. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  347. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  348. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  349. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  350. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  351. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  352. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  353. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  354. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  355. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  356. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  357. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  358. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  359. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  360. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  361. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  362. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  363. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  364. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  365. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  366. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  367. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  368. package/node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/package.json +5 -5
  369. package/node_modules/@aws-sdk/client-iam/package.json +39 -39
  370. package/node_modules/@aws-sdk/client-iot/dist-cjs/index.js +516 -450
  371. package/node_modules/@aws-sdk/client-iot/dist-es/IoT.js +131 -1
  372. package/node_modules/@aws-sdk/client-iot/dist-es/schemas/schemas_0.js +321 -321
  373. package/node_modules/@aws-sdk/client-iot/dist-types/IoT.d.ts +449 -1
  374. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/IoT.d.ts +453 -1
  375. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +15 -11
  376. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +7 -1
  377. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  378. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +15 -1
  379. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +19 -1
  380. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/client-sso/package.json +37 -37
  381. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
  382. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -52
  383. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +47 -52
  384. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -6
  385. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -6
  386. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  387. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +1 -2
  388. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
  389. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/package.json +18 -18
  390. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-env/package.json +11 -11
  391. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-http/package.json +16 -16
  392. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-ini/package.json +20 -20
  393. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-node/README.md +3 -3
  394. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +8 -2
  395. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +8 -2
  396. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-node/package.json +18 -18
  397. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-process/package.json +12 -12
  398. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-sso/package.json +14 -14
  399. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-web-identity/package.json +13 -13
  400. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/middleware-host-header/package.json +9 -9
  401. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/middleware-logger/package.json +9 -9
  402. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/middleware-recursion-detection/package.json +9 -9
  403. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/middleware-user-agent/package.json +12 -12
  404. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  405. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  406. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  407. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  408. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  409. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  410. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  411. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/region-config-resolver/package.json +10 -10
  412. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/token-providers/package.json +11 -11
  413. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  414. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/types/package.json +7 -7
  415. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  416. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  417. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  418. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  419. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -7
  420. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/util-user-agent-node/package.json +11 -11
  421. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/xml-builder/package.json +7 -7
  422. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/abort-controller/package.json +3 -3
  423. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/config-resolver/package.json +6 -6
  424. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  425. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
  426. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  427. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +23 -7
  428. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  429. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  430. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  431. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +23 -7
  432. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  433. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  434. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/core/package.json +11 -11
  435. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  436. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  437. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/hash-node/package.json +3 -3
  438. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/invalid-dependency/package.json +3 -3
  439. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/middleware-content-length/package.json +4 -4
  440. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  441. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/middleware-retry/package.json +12 -12
  442. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/middleware-serde/package.json +4 -4
  443. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/middleware-stack/package.json +3 -3
  444. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/node-config-provider/package.json +5 -5
  445. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/node-http-handler/package.json +6 -6
  446. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/property-provider/package.json +3 -3
  447. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/protocol-http/package.json +3 -3
  448. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/querystring-builder/package.json +3 -3
  449. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/querystring-parser/package.json +3 -3
  450. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/service-error-classification/package.json +3 -3
  451. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/signature-v4/package.json +5 -5
  452. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
  453. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
  454. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
  455. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
  456. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/smithy-client/package.json +11 -11
  457. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  458. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  459. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/types/package.json +2 -2
  460. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/url-parser/package.json +4 -4
  461. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  462. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  463. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-endpoints/package.json +4 -4
  464. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-middleware/package.json +3 -3
  465. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-retry/package.json +4 -4
  466. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  467. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  468. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  469. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  470. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  471. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  472. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  473. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  474. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  475. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  476. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  477. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  478. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  479. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  480. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  481. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  482. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  483. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  484. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  485. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  486. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  487. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  488. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  489. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  490. package/node_modules/@aws-sdk/client-iot/node_modules/@smithy/util-stream/package.json +5 -5
  491. package/node_modules/@aws-sdk/client-iot/package.json +38 -38
  492. package/node_modules/@aws-sdk/client-iot-data-plane/dist-cjs/index.js +15 -12
  493. package/node_modules/@aws-sdk/client-iot-data-plane/dist-es/IoTDataPlane.js +5 -1
  494. package/node_modules/@aws-sdk/client-iot-data-plane/dist-es/schemas/schemas_0.js +9 -9
  495. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/IoTDataPlane.d.ts +8 -1
  496. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/ts3.4/IoTDataPlane.d.ts +12 -1
  497. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +15 -11
  498. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +7 -1
  499. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  500. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +15 -1
  501. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +19 -1
  502. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/client-sso/package.json +37 -37
  503. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
  504. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -52
  505. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +47 -52
  506. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -6
  507. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -6
  508. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  509. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +1 -2
  510. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
  511. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/package.json +18 -18
  512. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-env/package.json +11 -11
  513. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-http/package.json +16 -16
  514. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-ini/package.json +20 -20
  515. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-node/README.md +3 -3
  516. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +8 -2
  517. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +8 -2
  518. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-node/package.json +18 -18
  519. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-process/package.json +12 -12
  520. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-sso/package.json +14 -14
  521. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-web-identity/package.json +13 -13
  522. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/middleware-host-header/package.json +9 -9
  523. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/middleware-logger/package.json +9 -9
  524. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/middleware-recursion-detection/package.json +9 -9
  525. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/middleware-user-agent/package.json +12 -12
  526. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  527. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  528. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  529. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  530. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  531. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  532. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  533. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/region-config-resolver/package.json +10 -10
  534. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/token-providers/package.json +11 -11
  535. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  536. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/types/package.json +7 -7
  537. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  538. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  539. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  540. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  541. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -7
  542. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/util-user-agent-node/package.json +11 -11
  543. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/xml-builder/package.json +7 -7
  544. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/abort-controller/package.json +3 -3
  545. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/config-resolver/package.json +6 -6
  546. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  547. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
  548. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  549. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +23 -7
  550. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  551. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  552. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  553. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +23 -7
  554. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  555. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  556. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/core/package.json +11 -11
  557. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  558. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  559. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/hash-node/package.json +3 -3
  560. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/invalid-dependency/package.json +3 -3
  561. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/middleware-content-length/package.json +4 -4
  562. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  563. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/middleware-retry/package.json +12 -12
  564. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/middleware-serde/package.json +4 -4
  565. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/middleware-stack/package.json +3 -3
  566. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/node-config-provider/package.json +5 -5
  567. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/node-http-handler/package.json +6 -6
  568. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/property-provider/package.json +3 -3
  569. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/protocol-http/package.json +3 -3
  570. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/querystring-builder/package.json +3 -3
  571. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/querystring-parser/package.json +3 -3
  572. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/service-error-classification/package.json +3 -3
  573. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/signature-v4/package.json +5 -5
  574. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
  575. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
  576. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
  577. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
  578. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/smithy-client/package.json +11 -11
  579. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  580. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  581. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/types/package.json +2 -2
  582. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/url-parser/package.json +4 -4
  583. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  584. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  585. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-endpoints/package.json +4 -4
  586. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-middleware/package.json +3 -3
  587. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-retry/package.json +4 -4
  588. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  589. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  590. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  591. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  592. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  593. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  594. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  595. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  596. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  597. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  598. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  599. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  600. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  601. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  602. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  603. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  604. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  605. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  606. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  607. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  608. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  609. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  610. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  611. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  612. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@smithy/util-stream/package.json +5 -5
  613. package/node_modules/@aws-sdk/client-iot-data-plane/package.json +39 -39
  614. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +346 -305
  615. package/node_modules/@aws-sdk/client-lambda/dist-es/Lambda.js +49 -1
  616. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +7 -0
  617. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +162 -156
  618. package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +150 -1
  619. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +8 -2
  620. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +4 -1
  621. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +4 -1
  622. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  623. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +4 -1
  624. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +8 -2
  625. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +15 -0
  626. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +28 -2
  627. package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +1 -0
  628. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +173 -1
  629. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +9 -0
  630. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +7 -0
  631. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  632. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +15 -11
  633. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +7 -1
  634. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  635. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +15 -1
  636. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +19 -1
  637. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sso/package.json +37 -37
  638. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
  639. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -52
  640. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +47 -52
  641. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -6
  642. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -6
  643. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  644. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +1 -2
  645. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
  646. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/package.json +18 -18
  647. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-env/package.json +11 -11
  648. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-http/package.json +16 -16
  649. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-ini/package.json +20 -20
  650. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-node/README.md +3 -3
  651. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +8 -2
  652. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +8 -2
  653. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-node/package.json +18 -18
  654. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-process/package.json +12 -12
  655. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-sso/package.json +14 -14
  656. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-web-identity/package.json +13 -13
  657. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-host-header/package.json +9 -9
  658. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-logger/package.json +9 -9
  659. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-recursion-detection/package.json +9 -9
  660. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-user-agent/package.json +12 -12
  661. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  662. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  663. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  664. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  665. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  666. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  667. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  668. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/region-config-resolver/package.json +10 -10
  669. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/token-providers/package.json +11 -11
  670. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  671. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/types/package.json +7 -7
  672. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  673. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  674. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  675. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  676. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -7
  677. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-user-agent-node/package.json +11 -11
  678. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/xml-builder/package.json +7 -7
  679. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/abort-controller/package.json +3 -3
  680. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/config-resolver/package.json +6 -6
  681. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  682. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
  683. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  684. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +23 -7
  685. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  686. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  687. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  688. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +23 -7
  689. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  690. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  691. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/package.json +11 -11
  692. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  693. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  694. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/hash-node/package.json +3 -3
  695. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/invalid-dependency/package.json +3 -3
  696. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/middleware-content-length/package.json +4 -4
  697. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  698. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/middleware-retry/package.json +12 -12
  699. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/middleware-serde/package.json +4 -4
  700. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/middleware-stack/package.json +3 -3
  701. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/node-config-provider/package.json +5 -5
  702. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/node-http-handler/package.json +6 -6
  703. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/property-provider/package.json +3 -3
  704. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/protocol-http/package.json +3 -3
  705. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/querystring-builder/package.json +3 -3
  706. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/querystring-parser/package.json +3 -3
  707. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/service-error-classification/package.json +3 -3
  708. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/signature-v4/package.json +5 -5
  709. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
  710. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
  711. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
  712. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
  713. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/smithy-client/package.json +11 -11
  714. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  715. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  716. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/types/package.json +2 -2
  717. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/url-parser/package.json +4 -4
  718. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  719. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  720. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-endpoints/package.json +4 -4
  721. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-middleware/package.json +3 -3
  722. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-retry/package.json +4 -4
  723. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  724. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  725. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  726. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  727. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  728. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  729. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  730. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  731. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  732. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  733. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  734. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  735. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  736. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  737. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  738. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  739. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  740. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  741. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  742. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  743. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  744. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  745. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  746. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  747. package/node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-stream/package.json +5 -5
  748. package/node_modules/@aws-sdk/client-lambda/package.json +43 -43
  749. package/node_modules/@aws-sdk/client-s3/README.md +7 -0
  750. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +423 -330
  751. package/node_modules/@aws-sdk/client-s3/dist-es/S3.js +23 -1
  752. package/node_modules/@aws-sdk/client-s3/dist-es/commands/UpdateObjectEncryptionCommand.js +28 -0
  753. package/node_modules/@aws-sdk/client-s3/dist-es/commands/index.js +1 -0
  754. package/node_modules/@aws-sdk/client-s3/dist-es/models/errors.js +12 -0
  755. package/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js +262 -224
  756. package/node_modules/@aws-sdk/client-s3/dist-types/S3.d.ts +61 -1
  757. package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +3 -2
  758. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -2
  759. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +25 -15
  760. package/node_modules/@aws-sdk/client-s3/dist-types/commands/UpdateObjectEncryptionCommand.d.ts +259 -0
  761. package/node_modules/@aws-sdk/client-s3/dist-types/commands/index.d.ts +1 -0
  762. package/node_modules/@aws-sdk/client-s3/dist-types/models/errors.d.ts +16 -15
  763. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +23 -23
  764. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +186 -3
  765. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +1 -1
  766. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +1 -1
  767. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +1 -1
  768. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts +2 -1
  769. package/node_modules/@aws-sdk/client-s3/dist-types/schemas/schemas_0.d.ts +6 -0
  770. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3.d.ts +88 -1
  771. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +6 -0
  772. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/UpdateObjectEncryptionCommand.d.ts +51 -0
  773. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/index.d.ts +1 -0
  774. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/errors.d.ts +5 -0
  775. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +34 -0
  776. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  777. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  778. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  779. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -3
  780. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
  781. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +15 -11
  782. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +7 -1
  783. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  784. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +15 -1
  785. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +19 -1
  786. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso/package.json +37 -37
  787. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
  788. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -52
  789. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +47 -52
  790. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -6
  791. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -6
  792. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  793. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +1 -2
  794. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
  795. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/package.json +18 -18
  796. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-env/package.json +11 -11
  797. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-http/package.json +16 -16
  798. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-ini/package.json +20 -20
  799. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/README.md +3 -3
  800. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +8 -2
  801. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +8 -2
  802. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/package.json +18 -18
  803. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-process/package.json +12 -12
  804. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-sso/package.json +14 -14
  805. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-web-identity/package.json +13 -13
  806. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-host-header/package.json +9 -9
  807. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-logger/package.json +9 -9
  808. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-recursion-detection/package.json +9 -9
  809. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/package.json +17 -17
  810. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-user-agent/package.json +12 -12
  811. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  812. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  813. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  814. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  815. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  816. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  817. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  818. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/region-config-resolver/package.json +10 -10
  819. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/package.json +9 -9
  820. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/token-providers/package.json +11 -11
  821. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  822. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/types/package.json +7 -7
  823. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-arn-parser/package.json +7 -7
  824. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  825. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  826. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  827. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  828. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -7
  829. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-node/package.json +11 -11
  830. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/xml-builder/package.json +7 -7
  831. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/abort-controller/package.json +3 -3
  832. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/config-resolver/package.json +6 -6
  833. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  834. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
  835. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  836. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +23 -7
  837. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  838. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  839. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  840. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +23 -7
  841. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  842. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  843. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/package.json +11 -11
  844. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  845. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  846. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/hash-node/package.json +3 -3
  847. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/invalid-dependency/package.json +3 -3
  848. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/middleware-content-length/package.json +4 -4
  849. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  850. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/middleware-retry/package.json +12 -12
  851. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/middleware-serde/package.json +4 -4
  852. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/middleware-stack/package.json +3 -3
  853. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-config-provider/package.json +5 -5
  854. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/package.json +6 -6
  855. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/property-provider/package.json +3 -3
  856. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/protocol-http/package.json +3 -3
  857. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/querystring-builder/package.json +3 -3
  858. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/querystring-parser/package.json +3 -3
  859. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/service-error-classification/package.json +3 -3
  860. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/package.json +5 -5
  861. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
  862. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
  863. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
  864. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
  865. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/smithy-client/package.json +11 -11
  866. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  867. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  868. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/types/package.json +2 -2
  869. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/url-parser/package.json +4 -4
  870. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  871. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  872. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-endpoints/package.json +4 -4
  873. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-middleware/package.json +3 -3
  874. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/package.json +4 -4
  875. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  876. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  877. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  878. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  879. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  880. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  881. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  882. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  883. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  884. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  885. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  886. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  887. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  888. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  889. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  890. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  891. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  892. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  893. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  894. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  895. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  896. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  897. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  898. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  899. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-stream/package.json +5 -5
  900. package/node_modules/@aws-sdk/client-s3/package.json +54 -54
  901. package/node_modules/@aws-sdk/crc64-nvme/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  902. package/node_modules/@aws-sdk/crc64-nvme/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  903. package/node_modules/@aws-sdk/crc64-nvme/node_modules/@smithy/types/package.json +2 -2
  904. package/node_modules/@aws-sdk/crc64-nvme/package.json +5 -5
  905. package/node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  906. package/node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@aws-sdk/types/package.json +7 -7
  907. package/node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@smithy/property-provider/package.json +3 -3
  908. package/node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  909. package/node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  910. package/node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@smithy/types/package.json +2 -2
  911. package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +10 -10
  912. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
  913. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -52
  914. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +47 -52
  915. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -6
  916. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -6
  917. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  918. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +1 -2
  919. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
  920. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/package.json +18 -18
  921. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/middleware-host-header/package.json +9 -9
  922. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/middleware-logger/package.json +9 -9
  923. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/middleware-recursion-detection/package.json +9 -9
  924. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/middleware-user-agent/package.json +12 -12
  925. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  926. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  927. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  928. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  929. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  930. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  931. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  932. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/region-config-resolver/package.json +10 -10
  933. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  934. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/types/package.json +7 -7
  935. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  936. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  937. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  938. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  939. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -7
  940. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/util-user-agent-node/package.json +11 -11
  941. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/xml-builder/package.json +7 -7
  942. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/abort-controller/package.json +3 -3
  943. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/config-resolver/package.json +6 -6
  944. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  945. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
  946. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  947. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +23 -7
  948. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  949. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  950. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  951. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +23 -7
  952. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  953. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  954. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/core/package.json +11 -11
  955. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  956. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  957. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/hash-node/package.json +3 -3
  958. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/invalid-dependency/package.json +3 -3
  959. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/middleware-content-length/package.json +4 -4
  960. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  961. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/middleware-retry/package.json +12 -12
  962. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/middleware-serde/package.json +4 -4
  963. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/middleware-stack/package.json +3 -3
  964. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/node-config-provider/package.json +5 -5
  965. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/node-http-handler/package.json +6 -6
  966. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/property-provider/package.json +3 -3
  967. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/protocol-http/package.json +3 -3
  968. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/querystring-builder/package.json +3 -3
  969. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/querystring-parser/package.json +3 -3
  970. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/service-error-classification/package.json +3 -3
  971. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/signature-v4/package.json +5 -5
  972. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
  973. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
  974. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
  975. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
  976. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/smithy-client/package.json +11 -11
  977. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  978. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  979. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/types/package.json +2 -2
  980. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/url-parser/package.json +4 -4
  981. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  982. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  983. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-endpoints/package.json +4 -4
  984. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-middleware/package.json +3 -3
  985. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-retry/package.json +4 -4
  986. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  987. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  988. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  989. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  990. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  991. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  992. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  993. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  994. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  995. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  996. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  997. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  998. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  999. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  1000. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  1001. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  1002. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  1003. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  1004. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  1005. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  1006. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  1007. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  1008. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  1009. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  1010. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@smithy/util-stream/package.json +5 -5
  1011. package/node_modules/@aws-sdk/credential-provider-login/package.json +14 -14
  1012. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +15 -11
  1013. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +7 -1
  1014. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  1015. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +15 -1
  1016. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +19 -1
  1017. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso/package.json +37 -37
  1018. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
  1019. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -52
  1020. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +47 -52
  1021. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -6
  1022. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -6
  1023. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  1024. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +1 -2
  1025. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
  1026. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/package.json +18 -18
  1027. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-env/package.json +11 -11
  1028. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-http/package.json +16 -16
  1029. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini/package.json +20 -20
  1030. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-node/README.md +3 -3
  1031. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +8 -2
  1032. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +8 -2
  1033. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-node/package.json +18 -18
  1034. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-process/package.json +12 -12
  1035. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-sso/package.json +14 -14
  1036. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-web-identity/package.json +13 -13
  1037. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-host-header/package.json +9 -9
  1038. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-logger/package.json +9 -9
  1039. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-recursion-detection/package.json +9 -9
  1040. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-user-agent/package.json +12 -12
  1041. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  1042. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  1043. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  1044. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  1045. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  1046. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  1047. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  1048. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/region-config-resolver/package.json +10 -10
  1049. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/token-providers/package.json +11 -11
  1050. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  1051. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/types/package.json +7 -7
  1052. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  1053. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  1054. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  1055. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  1056. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -7
  1057. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-node/package.json +11 -11
  1058. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/xml-builder/package.json +7 -7
  1059. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/abort-controller/package.json +3 -3
  1060. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/config-resolver/package.json +6 -6
  1061. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  1062. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
  1063. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  1064. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +23 -7
  1065. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  1066. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  1067. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  1068. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +23 -7
  1069. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  1070. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  1071. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/core/package.json +11 -11
  1072. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  1073. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  1074. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/hash-node/package.json +3 -3
  1075. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/invalid-dependency/package.json +3 -3
  1076. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/middleware-content-length/package.json +4 -4
  1077. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  1078. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/middleware-retry/package.json +12 -12
  1079. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/middleware-serde/package.json +4 -4
  1080. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/middleware-stack/package.json +3 -3
  1081. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/node-config-provider/package.json +5 -5
  1082. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/node-http-handler/package.json +6 -6
  1083. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/property-provider/package.json +3 -3
  1084. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/protocol-http/package.json +3 -3
  1085. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/querystring-builder/package.json +3 -3
  1086. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/querystring-parser/package.json +3 -3
  1087. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/service-error-classification/package.json +3 -3
  1088. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/signature-v4/package.json +5 -5
  1089. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
  1090. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
  1091. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
  1092. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
  1093. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/smithy-client/package.json +11 -11
  1094. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1095. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1096. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/types/package.json +2 -2
  1097. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/url-parser/package.json +4 -4
  1098. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  1099. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  1100. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-endpoints/package.json +4 -4
  1101. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-middleware/package.json +3 -3
  1102. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-retry/package.json +4 -4
  1103. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  1104. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  1105. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  1106. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  1107. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  1108. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  1109. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  1110. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  1111. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  1112. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  1113. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  1114. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  1115. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  1116. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  1117. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  1118. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  1119. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  1120. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  1121. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  1122. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  1123. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  1124. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  1125. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  1126. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  1127. package/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-stream/package.json +5 -5
  1128. package/node_modules/@aws-sdk/credential-providers/package.json +24 -24
  1129. package/node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  1130. package/node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@aws-sdk/types/package.json +7 -7
  1131. package/node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@aws-sdk/util-arn-parser/package.json +7 -7
  1132. package/node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/node-config-provider/package.json +5 -5
  1133. package/node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/property-provider/package.json +3 -3
  1134. package/node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/protocol-http/package.json +3 -3
  1135. package/node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1136. package/node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1137. package/node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/types/package.json +2 -2
  1138. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +11 -11
  1139. package/node_modules/@aws-sdk/middleware-expect-continue/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  1140. package/node_modules/@aws-sdk/middleware-expect-continue/node_modules/@aws-sdk/types/package.json +7 -7
  1141. package/node_modules/@aws-sdk/middleware-expect-continue/node_modules/@smithy/protocol-http/package.json +3 -3
  1142. package/node_modules/@aws-sdk/middleware-expect-continue/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1143. package/node_modules/@aws-sdk/middleware-expect-continue/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1144. package/node_modules/@aws-sdk/middleware-expect-continue/node_modules/@smithy/types/package.json +2 -2
  1145. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +9 -9
  1146. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
  1147. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -52
  1148. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +47 -52
  1149. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -6
  1150. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -6
  1151. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  1152. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +1 -2
  1153. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
  1154. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/package.json +18 -18
  1155. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  1156. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/types/package.json +7 -7
  1157. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/xml-builder/package.json +7 -7
  1158. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/abort-controller/package.json +3 -3
  1159. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  1160. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
  1161. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  1162. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +23 -7
  1163. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  1164. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
  1165. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  1166. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +23 -7
  1167. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  1168. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  1169. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/core/package.json +11 -11
  1170. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  1171. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  1172. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/middleware-serde/package.json +4 -4
  1173. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/middleware-stack/package.json +3 -3
  1174. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/node-config-provider/package.json +5 -5
  1175. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/node-http-handler/package.json +6 -6
  1176. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/property-provider/package.json +3 -3
  1177. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/protocol-http/package.json +3 -3
  1178. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/querystring-builder/package.json +3 -3
  1179. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/querystring-parser/package.json +3 -3
  1180. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/signature-v4/package.json +5 -5
  1181. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
  1182. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
  1183. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
  1184. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
  1185. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/smithy-client/package.json +11 -11
  1186. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1187. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1188. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/types/package.json +2 -2
  1189. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/url-parser/package.json +4 -4
  1190. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-middleware/package.json +3 -3
  1191. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  1192. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  1193. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  1194. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  1195. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  1196. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  1197. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  1198. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  1199. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  1200. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  1201. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  1202. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  1203. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  1204. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  1205. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  1206. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  1207. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  1208. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  1209. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  1210. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  1211. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  1212. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  1213. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  1214. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  1215. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/util-stream/package.json +5 -5
  1216. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +15 -15
  1217. package/node_modules/@aws-sdk/middleware-location-constraint/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  1218. package/node_modules/@aws-sdk/middleware-location-constraint/node_modules/@aws-sdk/types/package.json +7 -7
  1219. package/node_modules/@aws-sdk/middleware-location-constraint/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1220. package/node_modules/@aws-sdk/middleware-location-constraint/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1221. package/node_modules/@aws-sdk/middleware-location-constraint/node_modules/@smithy/types/package.json +2 -2
  1222. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +8 -8
  1223. package/node_modules/@aws-sdk/middleware-ssec/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
  1224. package/node_modules/@aws-sdk/middleware-ssec/node_modules/@aws-sdk/types/package.json +7 -7
  1225. package/node_modules/@aws-sdk/middleware-ssec/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1226. package/node_modules/@aws-sdk/middleware-ssec/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1227. package/node_modules/@aws-sdk/middleware-ssec/node_modules/@smithy/types/package.json +2 -2
  1228. package/node_modules/@aws-sdk/middleware-ssec/package.json +8 -8
  1229. package/node_modules/@inquirer/ansi/package.json +26 -26
  1230. package/node_modules/@inquirer/checkbox/package.json +21 -22
  1231. package/node_modules/@inquirer/confirm/package.json +19 -20
  1232. package/node_modules/@inquirer/core/package.json +18 -19
  1233. package/node_modules/@inquirer/editor/package.json +20 -21
  1234. package/node_modules/@inquirer/expand/package.json +19 -20
  1235. package/node_modules/@inquirer/external-editor/package.json +31 -31
  1236. package/node_modules/@inquirer/figures/package.json +16 -16
  1237. package/node_modules/@inquirer/input/package.json +19 -20
  1238. package/node_modules/@inquirer/number/package.json +19 -20
  1239. package/node_modules/@inquirer/password/package.json +20 -21
  1240. package/node_modules/@inquirer/prompts/package.json +29 -30
  1241. package/node_modules/@inquirer/rawlist/README.md +4 -1
  1242. package/node_modules/@inquirer/rawlist/dist/index.d.ts +7 -1
  1243. package/node_modules/@inquirer/rawlist/dist/index.js +14 -3
  1244. package/node_modules/@inquirer/rawlist/package.json +19 -20
  1245. package/node_modules/@inquirer/search/README.md +2 -1
  1246. package/node_modules/@inquirer/search/dist/index.d.ts +1 -0
  1247. package/node_modules/@inquirer/search/dist/index.js +11 -4
  1248. package/node_modules/@inquirer/search/package.json +20 -21
  1249. package/node_modules/@inquirer/select/package.json +21 -22
  1250. package/node_modules/@inquirer/type/package.json +16 -16
  1251. package/node_modules/@smithy/eventstream-codec/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1252. package/node_modules/@smithy/eventstream-codec/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1253. package/node_modules/@smithy/eventstream-codec/node_modules/@smithy/types/package.json +2 -2
  1254. package/node_modules/@smithy/eventstream-codec/package.json +3 -3
  1255. package/node_modules/@smithy/eventstream-serde-browser/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1256. package/node_modules/@smithy/eventstream-serde-browser/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1257. package/node_modules/@smithy/eventstream-serde-browser/node_modules/@smithy/types/package.json +2 -2
  1258. package/node_modules/@smithy/eventstream-serde-browser/package.json +4 -4
  1259. package/node_modules/@smithy/eventstream-serde-config-resolver/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1260. package/node_modules/@smithy/eventstream-serde-config-resolver/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1261. package/node_modules/@smithy/eventstream-serde-config-resolver/node_modules/@smithy/types/package.json +2 -2
  1262. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +3 -3
  1263. package/node_modules/@smithy/eventstream-serde-node/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1264. package/node_modules/@smithy/eventstream-serde-node/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1265. package/node_modules/@smithy/eventstream-serde-node/node_modules/@smithy/types/package.json +2 -2
  1266. package/node_modules/@smithy/eventstream-serde-node/package.json +4 -4
  1267. package/node_modules/@smithy/eventstream-serde-universal/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1268. package/node_modules/@smithy/eventstream-serde-universal/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1269. package/node_modules/@smithy/eventstream-serde-universal/node_modules/@smithy/types/package.json +2 -2
  1270. package/node_modules/@smithy/eventstream-serde-universal/package.json +4 -4
  1271. package/node_modules/@smithy/hash-blob-browser/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1272. package/node_modules/@smithy/hash-blob-browser/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1273. package/node_modules/@smithy/hash-blob-browser/node_modules/@smithy/types/package.json +2 -2
  1274. package/node_modules/@smithy/hash-blob-browser/package.json +3 -3
  1275. package/node_modules/@smithy/hash-stream-node/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1276. package/node_modules/@smithy/hash-stream-node/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1277. package/node_modules/@smithy/hash-stream-node/node_modules/@smithy/types/package.json +2 -2
  1278. package/node_modules/@smithy/hash-stream-node/package.json +3 -3
  1279. package/node_modules/@smithy/md5-js/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1280. package/node_modules/@smithy/md5-js/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1281. package/node_modules/@smithy/md5-js/node_modules/@smithy/types/package.json +2 -2
  1282. package/node_modules/@smithy/md5-js/package.json +3 -3
  1283. package/node_modules/@smithy/shared-ini-file-loader/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1284. package/node_modules/@smithy/shared-ini-file-loader/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1285. package/node_modules/@smithy/shared-ini-file-loader/node_modules/@smithy/types/package.json +2 -2
  1286. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  1287. package/node_modules/@smithy/util-waiter/node_modules/@smithy/abort-controller/package.json +3 -3
  1288. package/node_modules/@smithy/util-waiter/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  1289. package/node_modules/@smithy/util-waiter/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  1290. package/node_modules/@smithy/util-waiter/node_modules/@smithy/types/package.json +2 -2
  1291. package/node_modules/@smithy/util-waiter/package.json +4 -4
  1292. package/node_modules/@types/node/README.md +1 -1
  1293. package/node_modules/@types/node/fs/promises.d.ts +14 -1
  1294. package/node_modules/@types/node/fs.d.ts +3 -3
  1295. package/node_modules/@types/node/http.d.ts +9 -0
  1296. package/node_modules/@types/node/package.json +2 -2
  1297. package/node_modules/@types/node/process.d.ts +61 -2
  1298. package/node_modules/@types/node/sqlite.d.ts +16 -0
  1299. package/node_modules/@types/node/vm.d.ts +42 -14
  1300. package/node_modules/@types/node/worker_threads.d.ts +3 -0
  1301. package/node_modules/commander/Readme.md +82 -65
  1302. package/node_modules/commander/package-support.json +4 -1
  1303. package/node_modules/commander/package.json +1 -1
  1304. package/node_modules/fast-xml-parser/CHANGELOG.md +4 -0
  1305. package/node_modules/fast-xml-parser/README.md +1 -1
  1306. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  1307. package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  1308. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  1309. package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  1310. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  1311. package/node_modules/fast-xml-parser/package.json +1 -1
  1312. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +12 -2
  1313. package/node_modules/iconv-lite/lib/index.d.ts +68 -70
  1314. package/node_modules/iconv-lite/lib/index.js +39 -40
  1315. package/node_modules/iconv-lite/package.json +6 -1
  1316. package/node_modules/inquirer/dist/types.d.ts +12 -11
  1317. package/node_modules/inquirer/dist/ui/prompt.js +9 -1
  1318. package/node_modules/inquirer/dist/ui/skipped-renderer.d.ts +13 -0
  1319. package/node_modules/inquirer/dist/ui/skipped-renderer.js +57 -0
  1320. package/node_modules/inquirer/package.json +19 -20
  1321. package/package.json +23 -23
  1322. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
  1323. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
  1324. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
  1325. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
  1326. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
  1327. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
  1328. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
  1329. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
  1330. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
  1331. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
  1332. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
  1333. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
  1334. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
  1335. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
  1336. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
  1337. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
  1338. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
  1339. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
  1340. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
  1341. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
  1342. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
  1343. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
  1344. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
  1345. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
  1346. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
  1347. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
  1348. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
  1349. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
  1350. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
  1351. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
  1352. package/node_modules/iconv-lite/Changelog.md +0 -241
@@ -1 +1 @@
1
- {"version":3,"file":"./lib/fxparser.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAmB,UAAID,IAEvBD,EAAgB,UAAIC,GACrB,CATD,CASGK,MAAM,I,mBCRT,IAAIC,EAAsB,CCA1BA,EAAwB,CAACL,EAASM,KACjC,IAAI,IAAIC,KAAOD,EACXD,EAAoBG,EAAEF,EAAYC,KAASF,EAAoBG,EAAER,EAASO,IAC5EE,OAAOC,eAAeV,EAASO,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDF,EAAwB,CAACQ,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFT,EAAyBL,IACH,oBAAXkB,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeV,EAASkB,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeV,EAAS,aAAc,CAAEoB,OAAO,GAAO,G,mCCJvD,IAAMC,EAAiB,CAC1BC,eAAe,EACfC,oBAAqB,KACrBC,qBAAqB,EACrBC,aAAc,QACdC,kBAAkB,EAClBC,gBAAgB,EAChBC,wBAAwB,EAExBC,eAAe,EACfC,qBAAqB,EACrBC,YAAY,EACZC,eAAe,EACfC,mBAAoB,CAClBC,KAAK,EACLC,cAAc,EACdC,WAAW,GAEbC,kBAAmB,SAASC,EAASC,GACnC,OAAOA,CACT,EACAC,wBAAyB,SAASC,EAAUF,GAC1C,OAAOA,CACT,EACAG,UAAW,GACXC,sBAAsB,EACtBC,QAAS,WAAF,O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AAI1K,EAAiB5I,KAAK6I,SACnDyK,EAAiB7J,oBAAoBzJ,KAAK8K,kBAC1C,IAAMyI,EAAgBD,EAAiB5J,SAASnE,GAChD,OAAGvF,KAAK6I,QAAQ3H,oBAAmCgE,IAAlBqO,EAAoCA,EACzD9D,EAAS8D,EAAevT,KAAK6I,QAC7C,EAEAnE,EAKA8O,UAAA,SAAUrT,EAAKa,GACX,IAA2B,IAAxBA,EAAMkF,QAAQ,KACb,MAAM,IAAIR,MAAM,+BACd,IAAyB,IAAtBvF,EAAI+F,QAAQ,OAAqC,IAAtB/F,EAAI+F,QAAQ,KAC5C,MAAM,IAAIR,MAAM,wEACd,GAAa,MAAV1E,EACL,MAAM,IAAI0E,MAAM,6CAEhB1F,KAAK8K,iBAAiB3K,GAAOa,CAErC,EAEAmR,EAUOhN,kBAAP,WACI,OAAOZ,EAAQY,mBACnB,EAACgN,CAAA,CA/DyB,G","sources":["webpack://XMLParser/webpack/universalModuleDefinition","webpack://XMLParser/webpack/bootstrap","webpack://XMLParser/webpack/runtime/define property getters","webpack://XMLParser/webpack/runtime/hasOwnProperty shorthand","webpack://XMLParser/webpack/runtime/make namespace object","webpack://XMLParser/./src/xmlparser/OptionsBuilder.js","webpack://XMLParser/./src/util.js","webpack://XMLParser/./src/xmlparser/xmlNode.js","webpack://XMLParser/./src/xmlparser/DocTypeReader.js","webpack://XMLParser/./node_modules/strnum/strnum.js","webpack://XMLParser/./src/xmlparser/OrderedObjParser.js","webpack://XMLParser/./src/ignoreAttributes.js","webpack://XMLParser/./src/xmlparser/node2json.js","webpack://XMLParser/./src/validator.js","webpack://XMLParser/./src/xmlparser/XMLParser.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"XMLParser\"] = factory();\n\telse\n\t\troot[\"XMLParser\"] = factory();\n})(this, () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\nexport const defaultOptions = {\n preserveOrder: false,\n attributeNamePrefix: '@_',\n attributesGroupName: false,\n textNodeName: '#text',\n ignoreAttributes: true,\n removeNSPrefix: false, // remove NS from tag name or attribute name if true\n allowBooleanAttributes: false, //a tag can have attributes without any value\n //ignoreRootElement : false,\n parseTagValue: true,\n parseAttributeValue: false,\n trimValues: true, //Trim string values of tag and attributes\n cdataPropName: false,\n numberParseOptions: {\n hex: true,\n leadingZeros: true,\n eNotation: true\n },\n tagValueProcessor: function(tagName, val) {\n return val;\n },\n attributeValueProcessor: function(attrName, val) {\n return val;\n },\n stopNodes: [], //nested tags will not be parsed even for errors\n alwaysCreateTextNode: false,\n isArray: () => false,\n commentPropName: false,\n unpairedTags: [],\n processEntities: true,\n htmlEntities: false,\n ignoreDeclaration: false,\n ignorePiTags: false,\n transformTagName: false,\n transformAttributeName: false,\n updateTag: function(tagName, jPath, attrs){\n return tagName\n },\n // skipEmptyListItem: false\n captureMetaData: false,\n};\n \nexport const buildOptions = function(options) {\n return Object.assign({}, defaultOptions, options);\n};\n","'use strict';\n\nconst nameStartChar = ':A-Za-z_\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD';\nconst nameChar = nameStartChar + '\\\\-.\\\\d\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040';\nexport const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*';\nconst regexName = new RegExp('^' + nameRegexp + '$');\n\nexport function getAllMatches(string, regex) {\n const matches = [];\n let match = regex.exec(string);\n while (match) {\n const allmatches = [];\n allmatches.startIndex = regex.lastIndex - match[0].length;\n const len = match.length;\n for (let index = 0; index < len; index++) {\n allmatches.push(match[index]);\n }\n matches.push(allmatches);\n match = regex.exec(string);\n }\n return matches;\n}\n\nexport const isName = function(string) {\n const match = regexName.exec(string);\n return !(match === null || typeof match === 'undefined');\n}\n\nexport function isExist(v) {\n return typeof v !== 'undefined';\n}\n\nexport function isEmptyObject(obj) {\n return Object.keys(obj).length === 0;\n}\n\n/**\n * Copy all the properties of a into b.\n * @param {*} target\n * @param {*} a\n */\nexport function merge(target, a, arrayMode) {\n if (a) {\n const keys = Object.keys(a); // will return an array of own properties\n const len = keys.length; //don't make it inline\n for (let i = 0; i < len; i++) {\n if (arrayMode === 'strict') {\n target[keys[i]] = [ a[keys[i]] ];\n } else {\n target[keys[i]] = a[keys[i]];\n }\n }\n }\n}\n/* exports.merge =function (b,a){\n return Object.assign(b,a);\n} */\n\nexport function getValue(v) {\n if (exports.isExist(v)) {\n return v;\n } else {\n return '';\n }\n}\n\n// const fakeCall = function(a) {return a;};\n// const fakeCallNoReturn = function() {};","'use strict';\n\nlet METADATA_SYMBOL;\n\nif (typeof Symbol !== \"function\") {\n METADATA_SYMBOL = \"@@xmlMetadata\";\n} else {\n METADATA_SYMBOL = Symbol(\"XML Node Metadata\");\n}\n\nexport default class XmlNode{\n constructor(tagname) {\n this.tagname = tagname;\n this.child = []; //nested tags, text, cdata, comments in order\n this[\":@\"] = {}; //attributes map\n }\n add(key,val){\n // this.child.push( {name : key, val: val, isCdata: isCdata });\n if(key === \"__proto__\") key = \"#__proto__\";\n this.child.push( {[key]: val });\n }\n addChild(node, startIndex) {\n if(node.tagname === \"__proto__\") node.tagname = \"#__proto__\";\n if(node[\":@\"] && Object.keys(node[\":@\"]).length > 0){\n this.child.push( { [node.tagname]: node.child, [\":@\"]: node[\":@\"] });\n }else{\n this.child.push( { [node.tagname]: node.child });\n }\n // if requested, add the startIndex\n if (startIndex !== undefined) {\n // Note: for now we just overwrite the metadata. If we had more complex metadata,\n // we might need to do an object append here: metadata = { ...metadata, startIndex }\n this.child[this.child.length - 1][METADATA_SYMBOL] = { startIndex };\n }\n }\n /** symbol used for metadata */\n static getMetaDataSymbol() {\n return METADATA_SYMBOL;\n }\n}\n","import {isName} from '../util.js';\n\nexport default class DocTypeReader{\n constructor(processEntities){\n this.suppressValidationErr = !processEntities;\n }\n \n readDocType(xmlData, i){\n \n const entities = {};\n if( xmlData[i + 3] === 'O' &&\n xmlData[i + 4] === 'C' &&\n xmlData[i + 5] === 'T' &&\n xmlData[i + 6] === 'Y' &&\n xmlData[i + 7] === 'P' &&\n xmlData[i + 8] === 'E')\n { \n i = i+9;\n let angleBracketsCount = 1;\n let hasBody = false, comment = false;\n let exp = \"\";\n for(;i<xmlData.length;i++){\n if (xmlData[i] === '<' && !comment) { //Determine the tag type\n if( hasBody && hasSeq(xmlData, \"!ENTITY\",i)){\n i += 7; \n let entityName, val;\n [entityName, val,i] = this.readEntityExp(xmlData,i+1,this.suppressValidationErr);\n if(val.indexOf(\"&\") === -1) //Parameter entities are not supported\n entities[ entityName ] = {\n regx : RegExp( `&${entityName};`,\"g\"),\n val: val\n };\n }\n else if( hasBody && hasSeq(xmlData, \"!ELEMENT\",i)) {\n i += 8;//Not supported\n const {index} = this.readElementExp(xmlData,i+1);\n i = index;\n }else if( hasBody && hasSeq(xmlData, \"!ATTLIST\",i)){\n i += 8;//Not supported\n // const {index} = this.readAttlistExp(xmlData,i+1);\n // i = index;\n }else if( hasBody && hasSeq(xmlData, \"!NOTATION\",i)) {\n i += 9;//Not supported\n const {index} = this.readNotationExp(xmlData,i+1,this.suppressValidationErr);\n i = index;\n }else if( hasSeq(xmlData, \"!--\",i) ) comment = true;\n else throw new Error(`Invalid DOCTYPE`);\n\n angleBracketsCount++;\n exp = \"\";\n } else if (xmlData[i] === '>') { //Read tag content\n if(comment){\n if( xmlData[i - 1] === \"-\" && xmlData[i - 2] === \"-\"){\n comment = false;\n angleBracketsCount--;\n }\n }else{\n angleBracketsCount--;\n }\n if (angleBracketsCount === 0) {\n break;\n }\n }else if( xmlData[i] === '['){\n hasBody = true;\n }else{\n exp += xmlData[i];\n }\n }\n if(angleBracketsCount !== 0){\n throw new Error(`Unclosed DOCTYPE`);\n }\n }else{\n throw new Error(`Invalid Tag instead of DOCTYPE`);\n }\n return {entities, i};\n }\n readEntityExp(xmlData, i) { \n //External entities are not supported\n // <!ENTITY ext SYSTEM \"http://normal-website.com\" >\n\n //Parameter entities are not supported\n // <!ENTITY entityname \"&anotherElement;\">\n\n //Internal entities are supported\n // <!ENTITY entityname \"replacement text\">\n\n // Skip leading whitespace after <!ENTITY\n i = skipWhitespace(xmlData, i);\n\n // Read entity name\n let entityName = \"\";\n while (i < xmlData.length && !/\\s/.test(xmlData[i]) && xmlData[i] !== '\"' && xmlData[i] !== \"'\") {\n entityName += xmlData[i];\n i++;\n }\n validateEntityName(entityName);\n\n // Skip whitespace after entity name\n i = skipWhitespace(xmlData, i);\n\n // Check for unsupported constructs (external entities or parameter entities)\n if(!this.suppressValidationErr){\n if (xmlData.substring(i, i + 6).toUpperCase() === \"SYSTEM\") {\n throw new Error(\"External entities are not supported\");\n }else if (xmlData[i] === \"%\") {\n throw new Error(\"Parameter entities are not supported\");\n }\n }\n\n // Read entity value (internal entity)\n let entityValue = \"\";\n [i, entityValue] = this.readIdentifierVal(xmlData, i, \"entity\");\n i--;\n return [entityName, entityValue, i ];\n }\n\n readNotationExp(xmlData, i) {\n // Skip leading whitespace after <!NOTATION\n i = skipWhitespace(xmlData, i);\n\n // Read notation name\n let notationName = \"\";\n while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n notationName += xmlData[i];\n i++;\n }\n !this.suppressValidationErr && validateEntityName(notationName);\n\n // Skip whitespace after notation name\n i = skipWhitespace(xmlData, i);\n\n // Check identifier type (SYSTEM or PUBLIC)\n const identifierType = xmlData.substring(i, i + 6).toUpperCase();\n if (!this.suppressValidationErr && identifierType !== \"SYSTEM\" && identifierType !== \"PUBLIC\") {\n throw new Error(`Expected SYSTEM or PUBLIC, found \"${identifierType}\"`);\n }\n i += identifierType.length;\n\n // Skip whitespace after identifier type\n i = skipWhitespace(xmlData, i);\n\n // Read public identifier (if PUBLIC)\n let publicIdentifier = null;\n let systemIdentifier = null;\n\n if (identifierType === \"PUBLIC\") {\n [i, publicIdentifier ] = this.readIdentifierVal(xmlData, i, \"publicIdentifier\");\n\n // Skip whitespace after public identifier\n i = skipWhitespace(xmlData, i);\n\n // Optionally read system identifier\n if (xmlData[i] === '\"' || xmlData[i] === \"'\") {\n [i, systemIdentifier ] = this.readIdentifierVal(xmlData, i,\"systemIdentifier\");\n }\n } else if (identifierType === \"SYSTEM\") {\n // Read system identifier (mandatory for SYSTEM)\n [i, systemIdentifier ] = this.readIdentifierVal(xmlData, i, \"systemIdentifier\");\n\n if (!this.suppressValidationErr && !systemIdentifier) {\n throw new Error(\"Missing mandatory system identifier for SYSTEM notation\");\n }\n }\n \n return {notationName, publicIdentifier, systemIdentifier, index: --i};\n }\n\n readIdentifierVal(xmlData, i, type) {\n let identifierVal = \"\";\n const startChar = xmlData[i];\n if (startChar !== '\"' && startChar !== \"'\") {\n throw new Error(`Expected quoted string, found \"${startChar}\"`);\n }\n i++;\n\n while (i < xmlData.length && xmlData[i] !== startChar) {\n identifierVal += xmlData[i];\n i++;\n }\n\n if (xmlData[i] !== startChar) {\n throw new Error(`Unterminated ${type} value`);\n }\n i++;\n return [i, identifierVal];\n }\n\n readElementExp(xmlData, i) {\n // <!ELEMENT br EMPTY>\n // <!ELEMENT div ANY>\n // <!ELEMENT title (#PCDATA)>\n // <!ELEMENT book (title, author+)>\n // <!ELEMENT name (content-model)>\n \n // Skip leading whitespace after <!ELEMENT\n i = skipWhitespace(xmlData, i);\n\n // Read element name\n let elementName = \"\";\n while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n elementName += xmlData[i];\n i++;\n }\n\n // Validate element name\n if (!this.suppressValidationErr && !isName(elementName)) {\n throw new Error(`Invalid element name: \"${elementName}\"`);\n }\n\n // Skip whitespace after element name\n i = skipWhitespace(xmlData, i);\n let contentModel = \"\";\n // Expect '(' to start content model\n if(xmlData[i] === \"E\" && hasSeq(xmlData, \"MPTY\",i)) i+=4;\n else if(xmlData[i] === \"A\" && hasSeq(xmlData, \"NY\",i)) i+=2;\n else if (xmlData[i] === \"(\") {\n i++; // Move past '('\n\n // Read content model\n while (i < xmlData.length && xmlData[i] !== \")\") {\n contentModel += xmlData[i];\n i++;\n }\n if (xmlData[i] !== \")\") {\n throw new Error(\"Unterminated content model\");\n }\n\n }else if(!this.suppressValidationErr){\n throw new Error(`Invalid Element Expression, found \"${xmlData[i]}\"`);\n }\n \n return {\n elementName,\n contentModel: contentModel.trim(),\n index: i\n };\n }\n\n readAttlistExp(xmlData, i) {\n // Skip leading whitespace after <!ATTLIST\n i = skipWhitespace(xmlData, i);\n\n // Read element name\n let elementName = \"\";\n while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n elementName += xmlData[i];\n i++;\n }\n\n // Validate element name\n validateEntityName(elementName)\n\n // Skip whitespace after element name\n i = skipWhitespace(xmlData, i);\n\n // Read attribute name\n let attributeName = \"\";\n while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n attributeName += xmlData[i];\n i++;\n }\n\n // Validate attribute name\n if (!validateEntityName(attributeName)) {\n throw new Error(`Invalid attribute name: \"${attributeName}\"`);\n }\n\n // Skip whitespace after attribute name\n i = skipWhitespace(xmlData, i);\n\n // Read attribute type\n let attributeType = \"\";\n if (xmlData.substring(i, i + 8).toUpperCase() === \"NOTATION\") {\n attributeType = \"NOTATION\";\n i += 8; // Move past \"NOTATION\"\n\n // Skip whitespace after \"NOTATION\"\n i = skipWhitespace(xmlData, i);\n\n // Expect '(' to start the list of notations\n if (xmlData[i] !== \"(\") {\n throw new Error(`Expected '(', found \"${xmlData[i]}\"`);\n }\n i++; // Move past '('\n\n // Read the list of allowed notations\n let allowedNotations = [];\n while (i < xmlData.length && xmlData[i] !== \")\") {\n let notation = \"\";\n while (i < xmlData.length && xmlData[i] !== \"|\" && xmlData[i] !== \")\") {\n notation += xmlData[i];\n i++;\n }\n\n // Validate notation name\n notation = notation.trim();\n if (!validateEntityName(notation)) {\n throw new Error(`Invalid notation name: \"${notation}\"`);\n }\n\n allowedNotations.push(notation);\n\n // Skip '|' separator or exit loop\n if (xmlData[i] === \"|\") {\n i++; // Move past '|'\n i = skipWhitespace(xmlData, i); // Skip optional whitespace after '|'\n }\n }\n\n if (xmlData[i] !== \")\") {\n throw new Error(\"Unterminated list of notations\");\n }\n i++; // Move past ')'\n\n // Store the allowed notations as part of the attribute type\n attributeType += \" (\" + allowedNotations.join(\"|\") + \")\";\n } else {\n // Handle simple types (e.g., CDATA, ID, IDREF, etc.)\n while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n attributeType += xmlData[i];\n i++;\n }\n\n // Validate simple attribute type\n const validTypes = [\"CDATA\", \"ID\", \"IDREF\", \"IDREFS\", \"ENTITY\", \"ENTITIES\", \"NMTOKEN\", \"NMTOKENS\"];\n if (!this.suppressValidationErr && !validTypes.includes(attributeType.toUpperCase())) {\n throw new Error(`Invalid attribute type: \"${attributeType}\"`);\n }\n }\n\n // Skip whitespace after attribute type\n i = skipWhitespace(xmlData, i);\n\n // Read default value\n let defaultValue = \"\";\n if (xmlData.substring(i, i + 8).toUpperCase() === \"#REQUIRED\") {\n defaultValue = \"#REQUIRED\";\n i += 8;\n } else if (xmlData.substring(i, i + 7).toUpperCase() === \"#IMPLIED\") {\n defaultValue = \"#IMPLIED\";\n i += 7;\n } else {\n [i, defaultValue] = this.readIdentifierVal(xmlData, i, \"ATTLIST\");\n }\n\n return {\n elementName,\n attributeName,\n attributeType,\n defaultValue,\n index: i\n }\n }\n}\n\n\n\nconst skipWhitespace = (data, index) => {\n while (index < data.length && /\\s/.test(data[index])) {\n index++;\n }\n return index;\n};\n\n\n\nfunction hasSeq(data, seq,i){\n for(let j=0;j<seq.length;j++){\n if(seq[j]!==data[i+j+1]) return false;\n }\n return true;\n}\n\nfunction validateEntityName(name){\n if (isName(name))\n\t return name;\n else\n throw new Error(`Invalid entity name ${name}`);\n}\n","const hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;\nconst numRegex = /^([\\-\\+])?(0*)([0-9]*(\\.[0-9]*)?)$/;\n// const octRegex = /^0x[a-z0-9]+/;\n// const binRegex = /0x[a-z0-9]+/;\n\n \nconst consider = {\n hex : true,\n // oct: false,\n leadingZeros: true,\n decimalPoint: \"\\.\",\n eNotation: true,\n //skipLike: /regex/\n};\n\nexport default function toNumber(str, options = {}){\n options = Object.assign({}, consider, options );\n if(!str || typeof str !== \"string\" ) return str;\n \n let trimmedStr = str.trim();\n \n if(options.skipLike !== undefined && options.skipLike.test(trimmedStr)) return str;\n else if(str===\"0\") return 0;\n else if (options.hex && hexRegex.test(trimmedStr)) {\n return parse_int(trimmedStr, 16);\n // }else if (options.oct && octRegex.test(str)) {\n // return Number.parseInt(val, 8);\n }else if (trimmedStr.search(/.+[eE].+/)!== -1) { //eNotation\n return resolveEnotation(str,trimmedStr,options);\n // }else if (options.parseBin && binRegex.test(str)) {\n // return Number.parseInt(val, 2);\n }else{\n //separate negative sign, leading zeros, and rest number\n const match = numRegex.exec(trimmedStr);\n // +00.123 => [ , '+', '00', '.123', ..\n if(match){\n const sign = match[1] || \"\";\n const leadingZeros = match[2];\n let numTrimmedByZeros = trimZeros(match[3]); //complete num without leading zeros\n const decimalAdjacentToLeadingZeros = sign ? // 0., -00., 000.\n str[leadingZeros.length+1] === \".\" \n : str[leadingZeros.length] === \".\";\n\n //trim ending zeros for floating number\n if(!options.leadingZeros //leading zeros are not allowed\n && (leadingZeros.length > 1 \n || (leadingZeros.length === 1 && !decimalAdjacentToLeadingZeros))){\n // 00, 00.3, +03.24, 03, 03.24\n return str;\n }\n else{//no leading zeros or leading zeros are allowed\n const num = Number(trimmedStr);\n const parsedStr = String(num);\n\n if( num === 0 || num === -0) return num;\n if(parsedStr.search(/[eE]/) !== -1){ //given number is long and parsed to eNotation\n if(options.eNotation) return num;\n else return str;\n }else if(trimmedStr.indexOf(\".\") !== -1){ //floating number\n if(parsedStr === \"0\") return num; //0.0\n else if(parsedStr === numTrimmedByZeros) return num; //0.456. 0.79000\n else if( parsedStr === `${sign}${numTrimmedByZeros}`) return num;\n else return str;\n }\n \n let n = leadingZeros? numTrimmedByZeros : trimmedStr;\n if(leadingZeros){\n // -009 => -9\n return (n === parsedStr) || (sign+n === parsedStr) ? num : str\n }else {\n // +9\n return (n === parsedStr) || (n === sign+parsedStr) ? num : str\n }\n }\n }else{ //non-numeric string\n return str;\n }\n }\n}\n\nconst eNotationRegx = /^([-+])?(0*)(\\d*(\\.\\d*)?[eE][-\\+]?\\d+)$/;\nfunction resolveEnotation(str,trimmedStr,options){\n if(!options.eNotation) return str;\n const notation = trimmedStr.match(eNotationRegx); \n if(notation){\n let sign = notation[1] || \"\";\n const eChar = notation[3].indexOf(\"e\") === -1 ? \"E\" : \"e\";\n const leadingZeros = notation[2];\n const eAdjacentToLeadingZeros = sign ? // 0E.\n str[leadingZeros.length+1] === eChar \n : str[leadingZeros.length] === eChar;\n\n if(leadingZeros.length > 1 && eAdjacentToLeadingZeros) return str;\n else if(leadingZeros.length === 1 \n && (notation[3].startsWith(`.${eChar}`) || notation[3][0] === eChar)){\n return Number(trimmedStr);\n }else if(options.leadingZeros && !eAdjacentToLeadingZeros){ //accept with leading zeros\n //remove leading 0s\n trimmedStr = (notation[1] || \"\") + notation[3];\n return Number(trimmedStr);\n }else return str;\n }else{\n return str;\n }\n}\n\n/**\n * \n * @param {string} numStr without leading zeros\n * @returns \n */\nfunction trimZeros(numStr){\n if(numStr && numStr.indexOf(\".\") !== -1){//float\n numStr = numStr.replace(/0+$/, \"\"); //remove ending zeros\n if(numStr === \".\") numStr = \"0\";\n else if(numStr[0] === \".\") numStr = \"0\"+numStr;\n else if(numStr[numStr.length-1] === \".\") numStr = numStr.substring(0,numStr.length-1);\n return numStr;\n }\n return numStr;\n}\n\nfunction parse_int(numStr, base){\n //polyfill\n if(parseInt) return parseInt(numStr, base);\n else if(Number.parseInt) return Number.parseInt(numStr, base);\n else if(window && window.parseInt) return window.parseInt(numStr, base);\n else throw new Error(\"parseInt, Number.parseInt, window.parseInt are not supported\")\n}","'use strict';\n///@ts-check\n\nimport {getAllMatches, isExist} from '../util.js';\nimport xmlNode from './xmlNode.js';\nimport DocTypeReader from './DocTypeReader.js';\nimport toNumber from \"strnum\";\nimport getIgnoreAttributesFn from \"../ignoreAttributes.js\";\n\n// const regx =\n// '<((!\\\\[CDATA\\\\[([\\\\s\\\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\\\/)(NAME)\\\\s*>))([^<]*)'\n// .replace(/NAME/g, util.nameRegexp);\n\n//const tagsRegx = new RegExp(\"<(\\\\/?[\\\\w:\\\\-\\._]+)([^>]*)>(\\\\s*\"+cdataRegx+\")*([^<]+)?\",\"g\");\n//const tagsRegx = new RegExp(\"<(\\\\/?)((\\\\w*:)?([\\\\w:\\\\-\\._]+))([^>]*)>([^<]*)(\"+cdataRegx+\"([^<]*))*([^<]+)?\",\"g\");\n\nexport default class OrderedObjParser{\n constructor(options){\n this.options = options;\n this.currentNode = null;\n this.tagsNodeStack = [];\n this.docTypeEntities = {};\n this.lastEntities = {\n \"apos\" : { regex: /&(apos|#39|#x27);/g, val : \"'\"},\n \"gt\" : { regex: /&(gt|#62|#x3E);/g, val : \">\"},\n \"lt\" : { regex: /&(lt|#60|#x3C);/g, val : \"<\"},\n \"quot\" : { regex: /&(quot|#34|#x22);/g, val : \"\\\"\"},\n };\n this.ampEntity = { regex: /&(amp|#38|#x26);/g, val : \"&\"};\n this.htmlEntities = {\n \"space\": { regex: /&(nbsp|#160);/g, val: \" \" },\n // \"lt\" : { regex: /&(lt|#60);/g, val: \"<\" },\n // \"gt\" : { regex: /&(gt|#62);/g, val: \">\" },\n // \"amp\" : { regex: /&(amp|#38);/g, val: \"&\" },\n // \"quot\" : { regex: /&(quot|#34);/g, val: \"\\\"\" },\n // \"apos\" : { regex: /&(apos|#39);/g, val: \"'\" },\n \"cent\" : { regex: /&(cent|#162);/g, val: \"¢\" },\n \"pound\" : { regex: /&(pound|#163);/g, val: \"£\" },\n \"yen\" : { regex: /&(yen|#165);/g, val: \"¥\" },\n \"euro\" : { regex: /&(euro|#8364);/g, val: \"€\" },\n \"copyright\" : { regex: /&(copy|#169);/g, val: \"©\" },\n \"reg\" : { regex: /&(reg|#174);/g, val: \"®\" },\n \"inr\" : { regex: /&(inr|#8377);/g, val: \"₹\" },\n \"num_dec\": { regex: /&#([0-9]{1,7});/g, val : (_, str) => String.fromCodePoint(Number.parseInt(str, 10)) },\n \"num_hex\": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => String.fromCodePoint(Number.parseInt(str, 16)) },\n };\n this.addExternalEntities = addExternalEntities;\n this.parseXml = parseXml;\n this.parseTextData = parseTextData;\n this.resolveNameSpace = resolveNameSpace;\n this.buildAttributesMap = buildAttributesMap;\n this.isItStopNode = isItStopNode;\n this.replaceEntitiesValue = replaceEntitiesValue;\n this.readStopNodeData = readStopNodeData;\n this.saveTextToParentTag = saveTextToParentTag;\n this.addChild = addChild;\n this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes)\n\n if(this.options.stopNodes && this.options.stopNodes.length > 0){\n this.stopNodesExact = new Set();\n this.stopNodesWildcard = new Set();\n for(let i = 0; i < this.options.stopNodes.length; i++){\n const stopNodeExp = this.options.stopNodes[i];\n if(typeof stopNodeExp !== 'string') continue;\n if(stopNodeExp.startsWith(\"*.\")){\n this.stopNodesWildcard.add(stopNodeExp.substring(2));\n }else{\n this.stopNodesExact.add(stopNodeExp);\n }\n }\n }\n }\n\n}\n\nfunction addExternalEntities(externalEntities){\n const entKeys = Object.keys(externalEntities);\n for (let i = 0; i < entKeys.length; i++) {\n const ent = entKeys[i];\n this.lastEntities[ent] = {\n regex: new RegExp(\"&\"+ent+\";\",\"g\"),\n val : externalEntities[ent]\n }\n }\n}\n\n/**\n * @param {string} val\n * @param {string} tagName\n * @param {string} jPath\n * @param {boolean} dontTrim\n * @param {boolean} hasAttributes\n * @param {boolean} isLeafNode\n * @param {boolean} escapeEntities\n */\nfunction parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {\n if (val !== undefined) {\n if (this.options.trimValues && !dontTrim) {\n val = val.trim();\n }\n if(val.length > 0){\n if(!escapeEntities) val = this.replaceEntitiesValue(val);\n \n const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);\n if(newval === null || newval === undefined){\n //don't parse\n return val;\n }else if(typeof newval !== typeof val || newval !== val){\n //overwrite\n return newval;\n }else if(this.options.trimValues){\n return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);\n }else{\n const trimmedVal = val.trim();\n if(trimmedVal === val){\n return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);\n }else{\n return val;\n }\n }\n }\n }\n}\n\nfunction resolveNameSpace(tagname) {\n if (this.options.removeNSPrefix) {\n const tags = tagname.split(':');\n const prefix = tagname.charAt(0) === '/' ? '/' : '';\n if (tags[0] === 'xmlns') {\n return '';\n }\n if (tags.length === 2) {\n tagname = prefix + tags[1];\n }\n }\n return tagname;\n}\n\n//TODO: change regex to capture NS\n//const attrsRegx = new RegExp(\"([\\\\w\\\\-\\\\.\\\\:]+)\\\\s*=\\\\s*(['\\\"])((.|\\n)*?)\\\\2\",\"gm\");\nconst attrsRegx = new RegExp('([^\\\\s=]+)\\\\s*(=\\\\s*([\\'\"])([\\\\s\\\\S]*?)\\\\3)?', 'gm');\n\nfunction buildAttributesMap(attrStr, jPath) {\n if (this.options.ignoreAttributes !== true && typeof attrStr === 'string') {\n // attrStr = attrStr.replace(/\\r?\\n/g, ' ');\n //attrStr = attrStr || attrStr.trim();\n\n const matches = getAllMatches(attrStr, attrsRegx);\n const len = matches.length; //don't make it inline\n const attrs = {};\n for (let i = 0; i < len; i++) {\n const attrName = this.resolveNameSpace(matches[i][1]);\n if (this.ignoreAttributesFn(attrName, jPath)) {\n continue\n }\n let oldVal = matches[i][4];\n let aName = this.options.attributeNamePrefix + attrName;\n if (attrName.length) {\n if (this.options.transformAttributeName) {\n aName = this.options.transformAttributeName(aName);\n }\n if(aName === \"__proto__\") aName = \"#__proto__\";\n if (oldVal !== undefined) {\n if (this.options.trimValues) {\n oldVal = oldVal.trim();\n }\n oldVal = this.replaceEntitiesValue(oldVal);\n const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);\n if(newVal === null || newVal === undefined){\n //don't parse\n attrs[aName] = oldVal;\n }else if(typeof newVal !== typeof oldVal || newVal !== oldVal){\n //overwrite\n attrs[aName] = newVal;\n }else{\n //parse\n attrs[aName] = parseValue(\n oldVal,\n this.options.parseAttributeValue,\n this.options.numberParseOptions\n );\n }\n } else if (this.options.allowBooleanAttributes) {\n attrs[aName] = true;\n }\n }\n }\n if (!Object.keys(attrs).length) {\n return;\n }\n if (this.options.attributesGroupName) {\n const attrCollection = {};\n attrCollection[this.options.attributesGroupName] = attrs;\n return attrCollection;\n }\n return attrs\n }\n}\n\nconst parseXml = function(xmlData) {\n xmlData = xmlData.replace(/\\r\\n?/g, \"\\n\"); //TODO: remove this line\n const xmlObj = new xmlNode('!xml');\n let currentNode = xmlObj;\n let textData = \"\";\n let jPath = \"\";\n const docTypeReader = new DocTypeReader(this.options.processEntities);\n for(let i=0; i< xmlData.length; i++){//for each char in XML data\n const ch = xmlData[i];\n if(ch === '<'){\n // const nextIndex = i+1;\n // const _2ndChar = xmlData[nextIndex];\n if( xmlData[i+1] === '/') {//Closing Tag\n const closeIndex = findClosingIndex(xmlData, \">\", i, \"Closing Tag is not closed.\")\n let tagName = xmlData.substring(i+2,closeIndex).trim();\n\n if(this.options.removeNSPrefix){\n const colonIndex = tagName.indexOf(\":\");\n if(colonIndex !== -1){\n tagName = tagName.substr(colonIndex+1);\n }\n }\n\n if(this.options.transformTagName) {\n tagName = this.options.transformTagName(tagName);\n }\n\n if(currentNode){\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n }\n\n //check if last tag of nested tag was unpaired tag\n const lastTagName = jPath.substring(jPath.lastIndexOf(\".\")+1);\n if(tagName && this.options.unpairedTags.indexOf(tagName) !== -1 ){\n throw new Error(`Unpaired tag can not be used as closing tag: </${tagName}>`);\n }\n let propIndex = 0\n if(lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1 ){\n propIndex = jPath.lastIndexOf('.', jPath.lastIndexOf('.')-1)\n this.tagsNodeStack.pop();\n }else{\n propIndex = jPath.lastIndexOf(\".\");\n }\n jPath = jPath.substring(0, propIndex);\n\n currentNode = this.tagsNodeStack.pop();//avoid recursion, set the parent tag scope\n textData = \"\";\n i = closeIndex;\n } else if( xmlData[i+1] === '?') {\n\n let tagData = readTagExp(xmlData,i, false, \"?>\");\n if(!tagData) throw new Error(\"Pi Tag is not closed.\");\n\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n if( (this.options.ignoreDeclaration && tagData.tagName === \"?xml\") || this.options.ignorePiTags){\n //do nothing\n }else{\n \n const childNode = new xmlNode(tagData.tagName);\n childNode.add(this.options.textNodeName, \"\");\n \n if(tagData.tagName !== tagData.tagExp && tagData.attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagData.tagExp, jPath);\n }\n this.addChild(currentNode, childNode, jPath, i);\n }\n\n\n i = tagData.closeIndex + 1;\n } else if(xmlData.substr(i + 1, 3) === '!--') {\n const endIndex = findClosingIndex(xmlData, \"-->\", i+4, \"Comment is not closed.\")\n if(this.options.commentPropName){\n const comment = xmlData.substring(i + 4, endIndex - 2);\n\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n\n currentNode.add(this.options.commentPropName, [ { [this.options.textNodeName] : comment } ]);\n }\n i = endIndex;\n } else if( xmlData.substr(i + 1, 2) === '!D') {\n const result = docTypeReader.readDocType(xmlData, i);\n this.docTypeEntities = result.entities;\n i = result.i;\n }else if(xmlData.substr(i + 1, 2) === '![') {\n const closeIndex = findClosingIndex(xmlData, \"]]>\", i, \"CDATA is not closed.\") - 2;\n const tagExp = xmlData.substring(i + 9,closeIndex);\n\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n\n let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);\n if(val == undefined) val = \"\";\n\n //cdata should be set even if it is 0 length string\n if(this.options.cdataPropName){\n currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]);\n }else{\n currentNode.add(this.options.textNodeName, val);\n }\n \n i = closeIndex + 2;\n }else {//Opening tag\n let result = readTagExp(xmlData,i, this.options.removeNSPrefix);\n let tagName= result.tagName;\n const rawTagName = result.rawTagName;\n let tagExp = result.tagExp;\n let attrExpPresent = result.attrExpPresent;\n let closeIndex = result.closeIndex;\n\n if (this.options.transformTagName) {\n //console.log(tagExp, tagName)\n const newTagName = this.options.transformTagName(tagName);\n if(tagExp === tagName) {\n tagExp = newTagName\n }\n tagName = newTagName;\n }\n \n //save text as child node\n if (currentNode && textData) {\n if(currentNode.tagname !== '!xml'){\n //when nested tag is found\n textData = this.saveTextToParentTag(textData, currentNode, jPath, false);\n }\n }\n\n //check if last tag was unpaired tag\n const lastTag = currentNode;\n if(lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1 ){\n currentNode = this.tagsNodeStack.pop();\n jPath = jPath.substring(0, jPath.lastIndexOf(\".\"));\n }\n if(tagName !== xmlObj.tagname){\n jPath += jPath ? \".\" + tagName : tagName;\n }\n const startIndex = i;\n if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, jPath, tagName)) {\n let tagContent = \"\";\n //self-closing tag\n if(tagExp.length > 0 && tagExp.lastIndexOf(\"/\") === tagExp.length - 1){\n if(tagName[tagName.length - 1] === \"/\"){ //remove trailing '/'\n tagName = tagName.substr(0, tagName.length - 1);\n jPath = jPath.substr(0, jPath.length - 1);\n tagExp = tagName;\n }else{\n tagExp = tagExp.substr(0, tagExp.length - 1);\n }\n i = result.closeIndex;\n }\n //unpaired tag\n else if(this.options.unpairedTags.indexOf(tagName) !== -1){\n \n i = result.closeIndex;\n }\n //normal tag\n else{\n //read until closing tag is found\n const result = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);\n if(!result) throw new Error(`Unexpected end of ${rawTagName}`);\n i = result.i;\n tagContent = result.tagContent;\n }\n\n const childNode = new xmlNode(tagName);\n\n if(tagName !== tagExp && attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath\n );\n }\n if(tagContent) {\n tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);\n }\n \n jPath = jPath.substr(0, jPath.lastIndexOf(\".\"));\n childNode.add(this.options.textNodeName, tagContent);\n \n this.addChild(currentNode, childNode, jPath, startIndex);\n }else{\n //selfClosing tag\n if(tagExp.length > 0 && tagExp.lastIndexOf(\"/\") === tagExp.length - 1){\n if(tagName[tagName.length - 1] === \"/\"){ //remove trailing '/'\n tagName = tagName.substr(0, tagName.length - 1);\n jPath = jPath.substr(0, jPath.length - 1);\n tagExp = tagName;\n }else{\n tagExp = tagExp.substr(0, tagExp.length - 1);\n }\n \n if(this.options.transformTagName) {\n const newTagName = this.options.transformTagName(tagName);\n if(tagExp === tagName) {\n tagExp = newTagName\n }\n tagName = newTagName;\n }\n\n const childNode = new xmlNode(tagName);\n if(tagName !== tagExp && attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath);\n }\n this.addChild(currentNode, childNode, jPath, startIndex);\n jPath = jPath.substr(0, jPath.lastIndexOf(\".\"));\n }\n //opening tag\n else{\n const childNode = new xmlNode( tagName);\n this.tagsNodeStack.push(currentNode);\n \n if(tagName !== tagExp && attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath);\n }\n this.addChild(currentNode, childNode, jPath, startIndex);\n currentNode = childNode;\n }\n textData = \"\";\n i = closeIndex;\n }\n }\n }else{\n textData += xmlData[i];\n }\n }\n return xmlObj.child;\n}\n\nfunction addChild(currentNode, childNode, jPath, startIndex){\n // unset startIndex if not requested\n if (!this.options.captureMetaData) startIndex = undefined;\n const result = this.options.updateTag(childNode.tagname, jPath, childNode[\":@\"])\n if(result === false){\n //do nothing\n } else if(typeof result === \"string\"){\n childNode.tagname = result\n currentNode.addChild(childNode, startIndex);\n }else{\n currentNode.addChild(childNode, startIndex);\n }\n}\n\nconst replaceEntitiesValue = function(val){\n\n if(this.options.processEntities){\n for(let entityName in this.docTypeEntities){\n const entity = this.docTypeEntities[entityName];\n val = val.replace( entity.regx, entity.val);\n }\n for(let entityName in this.lastEntities){\n const entity = this.lastEntities[entityName];\n val = val.replace( entity.regex, entity.val);\n }\n if(this.options.htmlEntities){\n for(let entityName in this.htmlEntities){\n const entity = this.htmlEntities[entityName];\n val = val.replace( entity.regex, entity.val);\n }\n }\n val = val.replace( this.ampEntity.regex, this.ampEntity.val);\n }\n return val;\n}\nfunction saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {\n if (textData) { //store previously collected data as textNode\n if(isLeafNode === undefined) isLeafNode = currentNode.child.length === 0\n \n textData = this.parseTextData(textData,\n currentNode.tagname,\n jPath,\n false,\n currentNode[\":@\"] ? Object.keys(currentNode[\":@\"]).length !== 0 : false,\n isLeafNode);\n\n if (textData !== undefined && textData !== \"\")\n currentNode.add(this.options.textNodeName, textData);\n textData = \"\";\n }\n return textData;\n}\n\n//TODO: use jPath to simplify the logic\n/**\n * @param {Set} stopNodesExact\n * @param {Set} stopNodesWildcard\n * @param {string} jPath\n * @param {string} currentTagName\n */\nfunction isItStopNode(stopNodesExact, stopNodesWildcard, jPath, currentTagName){\n if(stopNodesWildcard && stopNodesWildcard.has(currentTagName)) return true;\n if(stopNodesExact && stopNodesExact.has(jPath)) return true;\n return false;\n}\n\n/**\n * Returns the tag Expression and where it is ending handling single-double quotes situation\n * @param {string} xmlData \n * @param {number} i starting index\n * @returns \n */\nfunction tagExpWithClosingIndex(xmlData, i, closingChar = \">\"){\n let attrBoundary;\n let tagExp = \"\";\n for (let index = i; index < xmlData.length; index++) {\n let ch = xmlData[index];\n if (attrBoundary) {\n if (ch === attrBoundary) attrBoundary = \"\";//reset\n } else if (ch === '\"' || ch === \"'\") {\n attrBoundary = ch;\n } else if (ch === closingChar[0]) {\n if(closingChar[1]){\n if(xmlData[index + 1] === closingChar[1]){\n return {\n data: tagExp,\n index: index\n }\n }\n }else{\n return {\n data: tagExp,\n index: index\n }\n }\n } else if (ch === '\\t') {\n ch = \" \"\n }\n tagExp += ch;\n }\n}\n\nfunction findClosingIndex(xmlData, str, i, errMsg){\n const closingIndex = xmlData.indexOf(str, i);\n if(closingIndex === -1){\n throw new Error(errMsg)\n }else{\n return closingIndex + str.length - 1;\n }\n}\n\nfunction readTagExp(xmlData,i, removeNSPrefix, closingChar = \">\"){\n const result = tagExpWithClosingIndex(xmlData, i+1, closingChar);\n if(!result) return;\n let tagExp = result.data;\n const closeIndex = result.index;\n const separatorIndex = tagExp.search(/\\s/);\n let tagName = tagExp;\n let attrExpPresent = true;\n if(separatorIndex !== -1){//separate tag name and attributes expression\n tagName = tagExp.substring(0, separatorIndex);\n tagExp = tagExp.substring(separatorIndex + 1).trimStart();\n }\n\n const rawTagName = tagName;\n if(removeNSPrefix){\n const colonIndex = tagName.indexOf(\":\");\n if(colonIndex !== -1){\n tagName = tagName.substr(colonIndex+1);\n attrExpPresent = tagName !== result.data.substr(colonIndex + 1);\n }\n }\n\n return {\n tagName: tagName,\n tagExp: tagExp,\n closeIndex: closeIndex,\n attrExpPresent: attrExpPresent,\n rawTagName: rawTagName,\n }\n}\n/**\n * find paired tag for a stop node\n * @param {string} xmlData \n * @param {string} tagName \n * @param {number} i \n */\nfunction readStopNodeData(xmlData, tagName, i){\n const startIndex = i;\n // Starting at 1 since we already have an open tag\n let openTagCount = 1;\n\n for (; i < xmlData.length; i++) {\n if( xmlData[i] === \"<\"){ \n if (xmlData[i+1] === \"/\") {//close tag\n const closeIndex = findClosingIndex(xmlData, \">\", i, `${tagName} is not closed`);\n let closeTagName = xmlData.substring(i+2,closeIndex).trim();\n if(closeTagName === tagName){\n openTagCount--;\n if (openTagCount === 0) {\n return {\n tagContent: xmlData.substring(startIndex, i),\n i : closeIndex\n }\n }\n }\n i=closeIndex;\n } else if(xmlData[i+1] === '?') { \n const closeIndex = findClosingIndex(xmlData, \"?>\", i+1, \"StopNode is not closed.\")\n i=closeIndex;\n } else if(xmlData.substr(i + 1, 3) === '!--') { \n const closeIndex = findClosingIndex(xmlData, \"-->\", i+3, \"StopNode is not closed.\")\n i=closeIndex;\n } else if(xmlData.substr(i + 1, 2) === '![') { \n const closeIndex = findClosingIndex(xmlData, \"]]>\", i, \"StopNode is not closed.\") - 2;\n i=closeIndex;\n } else {\n const tagData = readTagExp(xmlData, i, '>')\n\n if (tagData) {\n const openTagName = tagData && tagData.tagName;\n if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length-1] !== \"/\") {\n openTagCount++;\n }\n i=tagData.closeIndex;\n }\n }\n }\n }//end for loop\n}\n\nfunction parseValue(val, shouldParse, options) {\n if (shouldParse && typeof val === 'string') {\n //console.log(options)\n const newval = val.trim();\n if(newval === 'true' ) return true;\n else if(newval === 'false' ) return false;\n else return toNumber(val, options);\n } else {\n if (isExist(val)) {\n return val;\n } else {\n return '';\n }\n }\n}\n","export default function getIgnoreAttributesFn(ignoreAttributes) {\n if (typeof ignoreAttributes === 'function') {\n return ignoreAttributes\n }\n if (Array.isArray(ignoreAttributes)) {\n return (attrName) => {\n for (const pattern of ignoreAttributes) {\n if (typeof pattern === 'string' && attrName === pattern) {\n return true\n }\n if (pattern instanceof RegExp && pattern.test(attrName)) {\n return true\n }\n }\n }\n }\n return () => false\n}","'use strict';\n\nimport XmlNode from './xmlNode.js';\n\nconst METADATA_SYMBOL = XmlNode.getMetaDataSymbol();\n\n/**\n * \n * @param {array} node \n * @param {any} options \n * @returns \n */\nexport default function prettify(node, options){\n return compress( node, options);\n}\n\n/**\n * \n * @param {array} arr \n * @param {object} options \n * @param {string} jPath \n * @returns object\n */\nfunction compress(arr, options, jPath){\n let text;\n const compressedObj = {};\n for (let i = 0; i < arr.length; i++) {\n const tagObj = arr[i];\n const property = propName(tagObj);\n let newJpath = \"\";\n if(jPath === undefined) newJpath = property;\n else newJpath = jPath + \".\" + property;\n\n if(property === options.textNodeName){\n if(text === undefined) text = tagObj[property];\n else text += \"\" + tagObj[property];\n }else if(property === undefined){\n continue;\n }else if(tagObj[property]){\n \n let val = compress(tagObj[property], options, newJpath);\n const isLeaf = isLeafTag(val, options);\n if (tagObj[METADATA_SYMBOL] !== undefined) {\n val[METADATA_SYMBOL] = tagObj[METADATA_SYMBOL]; // copy over metadata\n }\n\n if(tagObj[\":@\"]){\n assignAttributes( val, tagObj[\":@\"], newJpath, options);\n }else if(Object.keys(val).length === 1 && val[options.textNodeName] !== undefined && !options.alwaysCreateTextNode){\n val = val[options.textNodeName];\n }else if(Object.keys(val).length === 0){\n if(options.alwaysCreateTextNode) val[options.textNodeName] = \"\";\n else val = \"\";\n }\n\n if(compressedObj[property] !== undefined && compressedObj.hasOwnProperty(property)) {\n if(!Array.isArray(compressedObj[property])) {\n compressedObj[property] = [ compressedObj[property] ];\n }\n compressedObj[property].push(val);\n }else{\n //TODO: if a node is not an array, then check if it should be an array\n //also determine if it is a leaf node\n if (options.isArray(property, newJpath, isLeaf )) {\n compressedObj[property] = [val];\n }else{\n compressedObj[property] = val;\n }\n }\n }\n \n }\n // if(text && text.length > 0) compressedObj[options.textNodeName] = text;\n if(typeof text === \"string\"){\n if(text.length > 0) compressedObj[options.textNodeName] = text;\n }else if(text !== undefined) compressedObj[options.textNodeName] = text;\n return compressedObj;\n}\n\nfunction propName(obj){\n const keys = Object.keys(obj);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if(key !== \":@\") return key;\n }\n}\n\nfunction assignAttributes(obj, attrMap, jpath, options){\n if (attrMap) {\n const keys = Object.keys(attrMap);\n const len = keys.length; //don't make it inline\n for (let i = 0; i < len; i++) {\n const atrrName = keys[i];\n if (options.isArray(atrrName, jpath + \".\" + atrrName, true, true)) {\n obj[atrrName] = [ attrMap[atrrName] ];\n } else {\n obj[atrrName] = attrMap[atrrName];\n }\n }\n }\n}\n\nfunction isLeafTag(obj, options){\n const { textNodeName } = options;\n const propCount = Object.keys(obj).length;\n \n if (propCount === 0) {\n return true;\n }\n\n if (\n propCount === 1 &&\n (obj[textNodeName] || typeof obj[textNodeName] === \"boolean\" || obj[textNodeName] === 0)\n ) {\n return true;\n }\n\n return false;\n}\n","'use strict';\n\nimport {getAllMatches, isName} from './util.js';\n\nconst defaultOptions = {\n allowBooleanAttributes: false, //A tag can have attributes without any value\n unpairedTags: []\n};\n\n//const tagsPattern = new RegExp(\"<\\\\/?([\\\\w:\\\\-_\\.]+)\\\\s*\\/?>\",\"g\");\nexport function validate(xmlData, options) {\n options = Object.assign({}, defaultOptions, options);\n\n //xmlData = xmlData.replace(/(\\r\\n|\\n|\\r)/gm,\"\");//make it single line\n //xmlData = xmlData.replace(/(^\\s*<\\?xml.*?\\?>)/g,\"\");//Remove XML starting tag\n //xmlData = xmlData.replace(/(<!DOCTYPE[\\s\\w\\\"\\.\\/\\-\\:]+(\\[.*\\])*\\s*>)/g,\"\");//Remove DOCTYPE\n const tags = [];\n let tagFound = false;\n\n //indicates that the root tag has been closed (aka. depth 0 has been reached)\n let reachedRoot = false;\n\n if (xmlData[0] === '\\ufeff') {\n // check for byte order mark (BOM)\n xmlData = xmlData.substr(1);\n }\n \n for (let i = 0; i < xmlData.length; i++) {\n\n if (xmlData[i] === '<' && xmlData[i+1] === '?') {\n i+=2;\n i = readPI(xmlData,i);\n if (i.err) return i;\n }else if (xmlData[i] === '<') {\n //starting of tag\n //read until you reach to '>' avoiding any '>' in attribute value\n let tagStartPos = i;\n i++;\n \n if (xmlData[i] === '!') {\n i = readCommentAndCDATA(xmlData, i);\n continue;\n } else {\n let closingTag = false;\n if (xmlData[i] === '/') {\n //closing tag\n closingTag = true;\n i++;\n }\n //read tagname\n let tagName = '';\n for (; i < xmlData.length &&\n xmlData[i] !== '>' &&\n xmlData[i] !== ' ' &&\n xmlData[i] !== '\\t' &&\n xmlData[i] !== '\\n' &&\n xmlData[i] !== '\\r'; i++\n ) {\n tagName += xmlData[i];\n }\n tagName = tagName.trim();\n //console.log(tagName);\n\n if (tagName[tagName.length - 1] === '/') {\n //self closing tag without attributes\n tagName = tagName.substring(0, tagName.length - 1);\n //continue;\n i--;\n }\n if (!validateTagName(tagName)) {\n let msg;\n if (tagName.trim().length === 0) {\n msg = \"Invalid space after '<'.\";\n } else {\n msg = \"Tag '\"+tagName+\"' is an invalid name.\";\n }\n return getErrorObject('InvalidTag', msg, getLineNumberForPosition(xmlData, i));\n }\n\n const result = readAttributeStr(xmlData, i);\n if (result === false) {\n return getErrorObject('InvalidAttr', \"Attributes for '\"+tagName+\"' have open quote.\", getLineNumberForPosition(xmlData, i));\n }\n let attrStr = result.value;\n i = result.index;\n\n if (attrStr[attrStr.length - 1] === '/') {\n //self closing tag\n const attrStrStart = i - attrStr.length;\n attrStr = attrStr.substring(0, attrStr.length - 1);\n const isValid = validateAttributeString(attrStr, options);\n if (isValid === true) {\n tagFound = true;\n //continue; //text may presents after self closing tag\n } else {\n //the result from the nested function returns the position of the error within the attribute\n //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute\n //this gives us the absolute index in the entire xml, which we can use to find the line at last\n return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));\n }\n } else if (closingTag) {\n if (!result.tagClosed) {\n return getErrorObject('InvalidTag', \"Closing tag '\"+tagName+\"' doesn't have proper closing.\", getLineNumberForPosition(xmlData, i));\n } else if (attrStr.trim().length > 0) {\n return getErrorObject('InvalidTag', \"Closing tag '\"+tagName+\"' can't have attributes or invalid starting.\", getLineNumberForPosition(xmlData, tagStartPos));\n } else if (tags.length === 0) {\n return getErrorObject('InvalidTag', \"Closing tag '\"+tagName+\"' has not been opened.\", getLineNumberForPosition(xmlData, tagStartPos));\n } else {\n const otg = tags.pop();\n if (tagName !== otg.tagName) {\n let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);\n return getErrorObject('InvalidTag',\n \"Expected closing tag '\"+otg.tagName+\"' (opened in line \"+openPos.line+\", col \"+openPos.col+\") instead of closing tag '\"+tagName+\"'.\",\n getLineNumberForPosition(xmlData, tagStartPos));\n }\n\n //when there are no more tags, we reached the root level.\n if (tags.length == 0) {\n reachedRoot = true;\n }\n }\n } else {\n const isValid = validateAttributeString(attrStr, options);\n if (isValid !== true) {\n //the result from the nested function returns the position of the error within the attribute\n //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute\n //this gives us the absolute index in the entire xml, which we can use to find the line at last\n return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line));\n }\n\n //if the root level has been reached before ...\n if (reachedRoot === true) {\n return getErrorObject('InvalidXml', 'Multiple possible root nodes found.', getLineNumberForPosition(xmlData, i));\n } else if(options.unpairedTags.indexOf(tagName) !== -1){\n //don't push into stack\n } else {\n tags.push({tagName, tagStartPos});\n }\n tagFound = true;\n }\n\n //skip tag text value\n //It may include comments and CDATA value\n for (i++; i < xmlData.length; i++) {\n if (xmlData[i] === '<') {\n if (xmlData[i + 1] === '!') {\n //comment or CADATA\n i++;\n i = readCommentAndCDATA(xmlData, i);\n continue;\n } else if (xmlData[i+1] === '?') {\n i = readPI(xmlData, ++i);\n if (i.err) return i;\n } else{\n break;\n }\n } else if (xmlData[i] === '&') {\n const afterAmp = validateAmpersand(xmlData, i);\n if (afterAmp == -1)\n return getErrorObject('InvalidChar', \"char '&' is not expected.\", getLineNumberForPosition(xmlData, i));\n i = afterAmp;\n }else{\n if (reachedRoot === true && !isWhiteSpace(xmlData[i])) {\n return getErrorObject('InvalidXml', \"Extra text at the end\", getLineNumberForPosition(xmlData, i));\n }\n }\n } //end of reading tag text value\n if (xmlData[i] === '<') {\n i--;\n }\n }\n } else {\n if ( isWhiteSpace(xmlData[i])) {\n continue;\n }\n return getErrorObject('InvalidChar', \"char '\"+xmlData[i]+\"' is not expected.\", getLineNumberForPosition(xmlData, i));\n }\n }\n\n if (!tagFound) {\n return getErrorObject('InvalidXml', 'Start tag expected.', 1);\n }else if (tags.length == 1) {\n return getErrorObject('InvalidTag', \"Unclosed tag '\"+tags[0].tagName+\"'.\", getLineNumberForPosition(xmlData, tags[0].tagStartPos));\n }else if (tags.length > 0) {\n return getErrorObject('InvalidXml', \"Invalid '\"+\n JSON.stringify(tags.map(t => t.tagName), null, 4).replace(/\\r?\\n/g, '')+\n \"' found.\", {line: 1, col: 1});\n }\n\n return true;\n};\n\nfunction isWhiteSpace(char){\n return char === ' ' || char === '\\t' || char === '\\n' || char === '\\r';\n}\n/**\n * Read Processing insstructions and skip\n * @param {*} xmlData\n * @param {*} i\n */\nfunction readPI(xmlData, i) {\n const start = i;\n for (; i < xmlData.length; i++) {\n if (xmlData[i] == '?' || xmlData[i] == ' ') {\n //tagname\n const tagname = xmlData.substr(start, i - start);\n if (i > 5 && tagname === 'xml') {\n return getErrorObject('InvalidXml', 'XML declaration allowed only at the start of the document.', getLineNumberForPosition(xmlData, i));\n } else if (xmlData[i] == '?' && xmlData[i + 1] == '>') {\n //check if valid attribut string\n i++;\n break;\n } else {\n continue;\n }\n }\n }\n return i;\n}\n\nfunction readCommentAndCDATA(xmlData, i) {\n if (xmlData.length > i + 5 && xmlData[i + 1] === '-' && xmlData[i + 2] === '-') {\n //comment\n for (i += 3; i < xmlData.length; i++) {\n if (xmlData[i] === '-' && xmlData[i + 1] === '-' && xmlData[i + 2] === '>') {\n i += 2;\n break;\n }\n }\n } else if (\n xmlData.length > i + 8 &&\n xmlData[i + 1] === 'D' &&\n xmlData[i + 2] === 'O' &&\n xmlData[i + 3] === 'C' &&\n xmlData[i + 4] === 'T' &&\n xmlData[i + 5] === 'Y' &&\n xmlData[i + 6] === 'P' &&\n xmlData[i + 7] === 'E'\n ) {\n let angleBracketsCount = 1;\n for (i += 8; i < xmlData.length; i++) {\n if (xmlData[i] === '<') {\n angleBracketsCount++;\n } else if (xmlData[i] === '>') {\n angleBracketsCount--;\n if (angleBracketsCount === 0) {\n break;\n }\n }\n }\n } else if (\n xmlData.length > i + 9 &&\n xmlData[i + 1] === '[' &&\n xmlData[i + 2] === 'C' &&\n xmlData[i + 3] === 'D' &&\n xmlData[i + 4] === 'A' &&\n xmlData[i + 5] === 'T' &&\n xmlData[i + 6] === 'A' &&\n xmlData[i + 7] === '['\n ) {\n for (i += 8; i < xmlData.length; i++) {\n if (xmlData[i] === ']' && xmlData[i + 1] === ']' && xmlData[i + 2] === '>') {\n i += 2;\n break;\n }\n }\n }\n\n return i;\n}\n\nconst doubleQuote = '\"';\nconst singleQuote = \"'\";\n\n/**\n * Keep reading xmlData until '<' is found outside the attribute value.\n * @param {string} xmlData\n * @param {number} i\n */\nfunction readAttributeStr(xmlData, i) {\n let attrStr = '';\n let startChar = '';\n let tagClosed = false;\n for (; i < xmlData.length; i++) {\n if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) {\n if (startChar === '') {\n startChar = xmlData[i];\n } else if (startChar !== xmlData[i]) {\n //if vaue is enclosed with double quote then single quotes are allowed inside the value and vice versa\n } else {\n startChar = '';\n }\n } else if (xmlData[i] === '>') {\n if (startChar === '') {\n tagClosed = true;\n break;\n }\n }\n attrStr += xmlData[i];\n }\n if (startChar !== '') {\n return false;\n }\n\n return {\n value: attrStr,\n index: i,\n tagClosed: tagClosed\n };\n}\n\n/**\n * Select all the attributes whether valid or invalid.\n */\nconst validAttrStrRegxp = new RegExp('(\\\\s*)([^\\\\s=]+)(\\\\s*=)?(\\\\s*([\\'\"])(([\\\\s\\\\S])*?)\\\\5)?', 'g');\n\n//attr, =\"sd\", a=\"amit's\", a=\"sd\"b=\"saf\", ab cd=\"\"\n\nfunction validateAttributeString(attrStr, options) {\n //console.log(\"start:\"+attrStr+\":end\");\n\n //if(attrStr.trim().length === 0) return true; //empty string\n\n const matches = getAllMatches(attrStr, validAttrStrRegxp);\n const attrNames = {};\n\n for (let i = 0; i < matches.length; i++) {\n if (matches[i][1].length === 0) {\n //nospace before attribute name: a=\"sd\"b=\"saf\"\n return getErrorObject('InvalidAttr', \"Attribute '\"+matches[i][2]+\"' has no space in starting.\", getPositionFromMatch(matches[i]))\n } else if (matches[i][3] !== undefined && matches[i][4] === undefined) {\n return getErrorObject('InvalidAttr', \"Attribute '\"+matches[i][2]+\"' is without value.\", getPositionFromMatch(matches[i]));\n } else if (matches[i][3] === undefined && !options.allowBooleanAttributes) {\n //independent attribute: ab\n return getErrorObject('InvalidAttr', \"boolean attribute '\"+matches[i][2]+\"' is not allowed.\", getPositionFromMatch(matches[i]));\n }\n /* else if(matches[i][6] === undefined){//attribute without value: ab=\n return { err: { code:\"InvalidAttr\",msg:\"attribute \" + matches[i][2] + \" has no value assigned.\"}};\n } */\n const attrName = matches[i][2];\n if (!validateAttrName(attrName)) {\n return getErrorObject('InvalidAttr', \"Attribute '\"+attrName+\"' is an invalid name.\", getPositionFromMatch(matches[i]));\n }\n if (!attrNames.hasOwnProperty(attrName)) {\n //check for duplicate attribute.\n attrNames[attrName] = 1;\n } else {\n return getErrorObject('InvalidAttr', \"Attribute '\"+attrName+\"' is repeated.\", getPositionFromMatch(matches[i]));\n }\n }\n\n return true;\n}\n\nfunction validateNumberAmpersand(xmlData, i) {\n let re = /\\d/;\n if (xmlData[i] === 'x') {\n i++;\n re = /[\\da-fA-F]/;\n }\n for (; i < xmlData.length; i++) {\n if (xmlData[i] === ';')\n return i;\n if (!xmlData[i].match(re))\n break;\n }\n return -1;\n}\n\nfunction validateAmpersand(xmlData, i) {\n // https://www.w3.org/TR/xml/#dt-charref\n i++;\n if (xmlData[i] === ';')\n return -1;\n if (xmlData[i] === '#') {\n i++;\n return validateNumberAmpersand(xmlData, i);\n }\n let count = 0;\n for (; i < xmlData.length; i++, count++) {\n if (xmlData[i].match(/\\w/) && count < 20)\n continue;\n if (xmlData[i] === ';')\n break;\n return -1;\n }\n return i;\n}\n\nfunction getErrorObject(code, message, lineNumber) {\n return {\n err: {\n code: code,\n msg: message,\n line: lineNumber.line || lineNumber,\n col: lineNumber.col,\n },\n };\n}\n\nfunction validateAttrName(attrName) {\n return isName(attrName);\n}\n\n// const startsWithXML = /^xml/i;\n\nfunction validateTagName(tagname) {\n return isName(tagname) /* && !tagname.match(startsWithXML) */;\n}\n\n//this function returns the line number for the character at the given index\nfunction getLineNumberForPosition(xmlData, index) {\n const lines = xmlData.substring(0, index).split(/\\r?\\n/);\n return {\n line: lines.length,\n\n // column number is last line's length + 1, because column numbering starts at 1:\n col: lines[lines.length - 1].length + 1\n };\n}\n\n//this function returns the position of the first character of match within attrStr\nfunction getPositionFromMatch(match) {\n return match.startIndex + match[1].length;\n}\n","import { buildOptions} from './OptionsBuilder.js';\nimport OrderedObjParser from './OrderedObjParser.js';\nimport prettify from './node2json.js';\nimport {validate} from \"../validator.js\";\nimport XmlNode from './xmlNode.js';\n\nexport default class XMLParser{\n \n constructor(options){\n this.externalEntities = {};\n this.options = buildOptions(options);\n \n }\n /**\n * Parse XML dats to JS object \n * @param {string|Uint8Array} xmlData \n * @param {boolean|Object} validationOption \n */\n parse(xmlData,validationOption){\n if(typeof xmlData !== \"string\" && xmlData.toString){\n xmlData = xmlData.toString();\n }else if(typeof xmlData !== \"string\"){\n throw new Error(\"XML data is accepted in String or Bytes[] form.\")\n }\n \n if( validationOption){\n if(validationOption === true) validationOption = {}; //validate with default options\n \n const result = validate(xmlData, validationOption);\n if (result !== true) {\n throw Error( `${result.err.msg}:${result.err.line}:${result.err.col}` )\n }\n }\n const orderedObjParser = new OrderedObjParser(this.options);\n orderedObjParser.addExternalEntities(this.externalEntities);\n const orderedResult = orderedObjParser.parseXml(xmlData);\n if(this.options.preserveOrder || orderedResult === undefined) return orderedResult;\n else return prettify(orderedResult, this.options);\n }\n\n /**\n * Add Entity which is not by default supported by this library\n * @param {string} key \n * @param {string} value \n */\n addEntity(key, value){\n if(value.indexOf(\"&\") !== -1){\n throw new Error(\"Entity value can't have '&'\")\n }else if(key.indexOf(\"&\") !== -1 || key.indexOf(\";\") !== -1){\n throw new Error(\"An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'\")\n }else if(value === \"&\"){\n throw new Error(\"An entity with value '&' is not permitted\");\n }else{\n this.externalEntities[key] = value;\n }\n }\n\n /**\n * Returns a Symbol that can be used to access the metadata\n * property on a node.\n * \n * If Symbol is not available in the environment, an ordinary property is used\n * and the name of the property is here returned.\n * \n * The XMLMetaData property is only present when `captureMetaData`\n * is true in the options.\n */\n static getMetaDataSymbol() {\n return XmlNode.getMetaDataSymbol();\n }\n}\n"],"names":["root","factory","exports","module","define","amd","this","__webpack_require__","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","defaultOptions","preserveOrder","attributeNamePrefix","attributesGroupName","textNodeName","ignoreAttributes","removeNSPrefix","allowBooleanAttributes","parseTagValue","parseAttributeValue","trimValues","cdataPropName","numberParseOptions","hex","leadingZeros","eNotation","tagValueProcessor","tagName","val","attributeValueProcessor","attrName","stopNodes","alwaysCreateTextNode","isArray","commentPropName","unpairedTags","processEntities","htmlEntities","ignoreDeclaration","ignorePiTags","transformTagName","transformAttributeName","updateTag","jPath","attrs","captureMetaData","nameStartChar","regexName","RegExp","getAllMatches","string","regex","matches","match","exec","allmatches","startIndex","lastIndex","length","len","index","push","METADATA_SYMBOL","isName","XmlNode","tagname","child","_proto","add","_this$child$push","addChild","node","_this$child$push2","_this$child$push3","keys","undefined","getMetaDataSymbol","DocTypeReader","suppressValidationErr","readDocType","xmlData","i","entities","Error","angleBracketsCount","hasBody","comment","hasSeq","entityName","_this$readEntityExp","readEntityExp","indexOf","regx","readElementExp","readNotationExp","skipWhitespace","test","validateEntityName","substring","toUpperCase","_this$readIdentifierV","readIdentifierVal","notationName","identifierType","publicIdentifier","systemIdentifier","_this$readIdentifierV2","_this$readIdentifierV3","_this$readIdentifierV4","type","identifierVal","startChar","elementName","contentModel","trim","readAttlistExp","attributeName","attributeType","allowedNotations","notation","join","includes","defaultValue","_this$readIdentifierV5","data","seq","j","name","hexRegex","numRegex","consider","decimalPoint","eNotationRegx","OrderedObjParser","options","currentNode","tagsNodeStack","docTypeEntities","lastEntities","ampEntity","_","str","String","fromCodePoint","Number","parseInt","addExternalEntities","parseXml","parseTextData","resolveNameSpace","buildAttributesMap","isItStopNode","replaceEntitiesValue","readStopNodeData","saveTextToParentTag","ignoreAttributesFn","Array","_step","_iterator","_createForOfIteratorHelperLoose","done","pattern","stopNodesExact","Set","stopNodesWildcard","stopNodeExp","startsWith","externalEntities","entKeys","ent","dontTrim","hasAttributes","isLeafNode","escapeEntities","newval","parseValue","tags","split","prefix","charAt","attrsRegx","attrStr","oldVal","aName","newVal","attrCollection","replace","xmlObj","xmlNode","textData","docTypeReader","closeIndex","findClosingIndex","colonIndex","substr","lastTagName","lastIndexOf","propIndex","pop","tagData","readTagExp","childNode","tagExp","attrExpPresent","endIndex","_ref","result","_ref2","rawTagName","newTagName","lastTag","tagContent","entity","currentTagName","has","errMsg","closingIndex","closingChar","attrBoundary","ch","tagExpWithClosingIndex","separatorIndex","search","trimStart","openTagCount","shouldParse","assign","trimmedStr","skipLike","numStr","window","parse_int","sign","eChar","eAdjacentToLeadingZeros","resolveEnotation","numTrimmedByZeros","decimalAdjacentToLeadingZeros","num","parsedStr","n","toNumber","prettify","compress","arr","text","compressedObj","newJpath","tagObj","property","propName","isLeaf","isLeafTag","assignAttributes","attrMap","jpath","atrrName","propCount","isWhiteSpace","char","readPI","start","getErrorObject","getLineNumberForPosition","readCommentAndCDATA","readAttributeStr","tagClosed","validAttrStrRegxp","validateAttributeString","attrNames","getPositionFromMatch","validateAttrName","validateAmpersand","re","validateNumberAmpersand","count","code","message","lineNumber","err","msg","line","col","lines","XMLParser","buildOptions","parse","validationOption","toString","tagFound","reachedRoot","tagStartPos","closingTag","attrStrStart","isValid","otg","openPos","afterAmp","JSON","stringify","map","t","validate","orderedObjParser","orderedResult","addEntity"],"sourceRoot":""}
1
+ {"version":3,"file":"./lib/fxparser.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAmB,UAAID,IAEvBD,EAAgB,UAAIC,GACrB,CATD,CASGK,MAAM,I,mBCRT,IAAIC,EAAsB,CCA1BA,EAAwB,CAACL,EAASM,KACjC,IAAI,IAAIC,KAAOD,EACXD,EAAoBG,EAAEF,EAAYC,KAASF,EAAoBG,EAAER,EAASO,IAC5EE,OAAOC,eAAeV,EAASO,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDF,EAAwB,CAACQ,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFT,EAAyBL,IACH,oBAAXkB,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeV,EAASkB,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeV,EAAS,aAAc,CAAEoB,OAAO,GAAO,G,mCCJvD,IAAMC,EAAiB,CAC1BC,eAAe,EACfC,oBAAqB,KACrBC,qBAAqB,EACrBC,a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AAGwH,gBAC/GxH,EAAKnH,OAAS,IACb8M,EAAe,aAAc,YAChCoC,KAAKC,UAAUhI,EAAKiI,KAAI,SAAAC,GAAC,OAAIA,EAAEpR,OAAO,IAAG,KAAM,GAAG4J,QAAQ,SAAU,IACpE,WAAY,CAACoG,KAAM,EAAGC,IAAK,IAN1BpB,EAAe,aAAc,sBAAuB,EAU/D,CClK2BwC,CAAShO,EAASiN,GACjC,IAAe,IAAXtF,EACF,MAAMxH,MAAUwH,EAAO8E,IAAIC,IAAG,IAAI/E,EAAO8E,IAAIE,KAAI,IAAIhF,EAAO8E,IAAIG,IAEpE,CACF,IAAMqB,EAAmB,IAAI5K,EAAiB5I,KAAK6I,SACnD2K,EAAiBlK,oBAAoBtJ,KAAK2K,kBAC1C,IAAM8I,EAAgBD,EAAiBjK,SAAShE,GAChD,OAAGvF,KAAK6I,QAAQ3H,oBAAmCgE,IAAlBuO,EAAoCA,EACzD9D,EAAS8D,EAAezT,KAAK6I,QAC7C,EAEAnE,EAKAgP,UAAA,SAAUvT,EAAKa,GACX,IAA2B,IAAxBA,EAAMkF,QAAQ,KACb,MAAM,IAAIR,MAAM,+BACd,IAAyB,IAAtBvF,EAAI+F,QAAQ,OAAqC,IAAtB/F,EAAI+F,QAAQ,KAC5C,MAAM,IAAIR,MAAM,wEACd,GAAa,MAAV1E,EACL,MAAM,IAAI0E,MAAM,6CAEhB1F,KAAK2K,iBAAiBxK,GAAOa,CAErC,EAEAqR,EAUOlN,kBAAP,WACI,OAAOZ,EAAQY,mBACnB,EAACkN,CAAA,CA/DyB,G","sources":["webpack://XMLParser/webpack/universalModuleDefinition","webpack://XMLParser/webpack/bootstrap","webpack://XMLParser/webpack/runtime/define property getters","webpack://XMLParser/webpack/runtime/hasOwnProperty shorthand","webpack://XMLParser/webpack/runtime/make namespace object","webpack://XMLParser/./src/xmlparser/OptionsBuilder.js","webpack://XMLParser/./src/util.js","webpack://XMLParser/./src/xmlparser/xmlNode.js","webpack://XMLParser/./src/xmlparser/DocTypeReader.js","webpack://XMLParser/./node_modules/strnum/strnum.js","webpack://XMLParser/./src/xmlparser/OrderedObjParser.js","webpack://XMLParser/./src/ignoreAttributes.js","webpack://XMLParser/./src/xmlparser/node2json.js","webpack://XMLParser/./src/validator.js","webpack://XMLParser/./src/xmlparser/XMLParser.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"XMLParser\"] = factory();\n\telse\n\t\troot[\"XMLParser\"] = factory();\n})(this, () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\nexport const defaultOptions = {\n preserveOrder: false,\n attributeNamePrefix: '@_',\n attributesGroupName: false,\n textNodeName: '#text',\n ignoreAttributes: true,\n removeNSPrefix: false, // remove NS from tag name or attribute name if true\n allowBooleanAttributes: false, //a tag can have attributes without any value\n //ignoreRootElement : false,\n parseTagValue: true,\n parseAttributeValue: false,\n trimValues: true, //Trim string values of tag and attributes\n cdataPropName: false,\n numberParseOptions: {\n hex: true,\n leadingZeros: true,\n eNotation: true\n },\n tagValueProcessor: function(tagName, val) {\n return val;\n },\n attributeValueProcessor: function(attrName, val) {\n return val;\n },\n stopNodes: [], //nested tags will not be parsed even for errors\n alwaysCreateTextNode: false,\n isArray: () => false,\n commentPropName: false,\n unpairedTags: [],\n processEntities: true,\n htmlEntities: false,\n ignoreDeclaration: false,\n ignorePiTags: false,\n transformTagName: false,\n transformAttributeName: false,\n updateTag: function(tagName, jPath, attrs){\n return tagName\n },\n // skipEmptyListItem: false\n captureMetaData: false,\n};\n \nexport const buildOptions = function(options) {\n return Object.assign({}, defaultOptions, options);\n};\n","'use strict';\n\nconst nameStartChar = ':A-Za-z_\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD';\nconst nameChar = nameStartChar + '\\\\-.\\\\d\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040';\nexport const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*';\nconst regexName = new RegExp('^' + nameRegexp + '$');\n\nexport function getAllMatches(string, regex) {\n const matches = [];\n let match = regex.exec(string);\n while (match) {\n const allmatches = [];\n allmatches.startIndex = regex.lastIndex - match[0].length;\n const len = match.length;\n for (let index = 0; index < len; index++) {\n allmatches.push(match[index]);\n }\n matches.push(allmatches);\n match = regex.exec(string);\n }\n return matches;\n}\n\nexport const isName = function(string) {\n const match = regexName.exec(string);\n return !(match === null || typeof match === 'undefined');\n}\n\nexport function isExist(v) {\n return typeof v !== 'undefined';\n}\n\nexport function isEmptyObject(obj) {\n return Object.keys(obj).length === 0;\n}\n\n/**\n * Copy all the properties of a into b.\n * @param {*} target\n * @param {*} a\n */\nexport function merge(target, a, arrayMode) {\n if (a) {\n const keys = Object.keys(a); // will return an array of own properties\n const len = keys.length; //don't make it inline\n for (let i = 0; i < len; i++) {\n if (arrayMode === 'strict') {\n target[keys[i]] = [ a[keys[i]] ];\n } else {\n target[keys[i]] = a[keys[i]];\n }\n }\n }\n}\n/* exports.merge =function (b,a){\n return Object.assign(b,a);\n} */\n\nexport function getValue(v) {\n if (exports.isExist(v)) {\n return v;\n } else {\n return '';\n }\n}\n\n// const fakeCall = function(a) {return a;};\n// const fakeCallNoReturn = function() {};","'use strict';\n\nlet METADATA_SYMBOL;\n\nif (typeof Symbol !== \"function\") {\n METADATA_SYMBOL = \"@@xmlMetadata\";\n} else {\n METADATA_SYMBOL = Symbol(\"XML Node Metadata\");\n}\n\nexport default class XmlNode{\n constructor(tagname) {\n this.tagname = tagname;\n this.child = []; //nested tags, text, cdata, comments in order\n this[\":@\"] = {}; //attributes map\n }\n add(key,val){\n // this.child.push( {name : key, val: val, isCdata: isCdata });\n if(key === \"__proto__\") key = \"#__proto__\";\n this.child.push( {[key]: val });\n }\n addChild(node, startIndex) {\n if(node.tagname === \"__proto__\") node.tagname = \"#__proto__\";\n if(node[\":@\"] && Object.keys(node[\":@\"]).length > 0){\n this.child.push( { [node.tagname]: node.child, [\":@\"]: node[\":@\"] });\n }else{\n this.child.push( { [node.tagname]: node.child });\n }\n // if requested, add the startIndex\n if (startIndex !== undefined) {\n // Note: for now we just overwrite the metadata. If we had more complex metadata,\n // we might need to do an object append here: metadata = { ...metadata, startIndex }\n this.child[this.child.length - 1][METADATA_SYMBOL] = { startIndex };\n }\n }\n /** symbol used for metadata */\n static getMetaDataSymbol() {\n return METADATA_SYMBOL;\n }\n}\n","import {isName} from '../util.js';\n\nexport default class DocTypeReader{\n constructor(processEntities){\n this.suppressValidationErr = !processEntities;\n }\n \n readDocType(xmlData, i){\n \n const entities = {};\n if( xmlData[i + 3] === 'O' &&\n xmlData[i + 4] === 'C' &&\n xmlData[i + 5] === 'T' &&\n xmlData[i + 6] === 'Y' &&\n xmlData[i + 7] === 'P' &&\n xmlData[i + 8] === 'E')\n { \n i = i+9;\n let angleBracketsCount = 1;\n let hasBody = false, comment = false;\n let exp = \"\";\n for(;i<xmlData.length;i++){\n if (xmlData[i] === '<' && !comment) { //Determine the tag type\n if( hasBody && hasSeq(xmlData, \"!ENTITY\",i)){\n i += 7; \n let entityName, val;\n [entityName, val,i] = this.readEntityExp(xmlData,i+1,this.suppressValidationErr);\n if(val.indexOf(\"&\") === -1) //Parameter entities are not supported\n entities[ entityName ] = {\n regx : RegExp( `&${entityName};`,\"g\"),\n val: val\n };\n }\n else if( hasBody && hasSeq(xmlData, \"!ELEMENT\",i)) {\n i += 8;//Not supported\n const {index} = this.readElementExp(xmlData,i+1);\n i = index;\n }else if( hasBody && hasSeq(xmlData, \"!ATTLIST\",i)){\n i += 8;//Not supported\n // const {index} = this.readAttlistExp(xmlData,i+1);\n // i = index;\n }else if( hasBody && hasSeq(xmlData, \"!NOTATION\",i)) {\n i += 9;//Not supported\n const {index} = this.readNotationExp(xmlData,i+1,this.suppressValidationErr);\n i = index;\n }else if( hasSeq(xmlData, \"!--\",i) ) comment = true;\n else throw new Error(`Invalid DOCTYPE`);\n\n angleBracketsCount++;\n exp = \"\";\n } else if (xmlData[i] === '>') { //Read tag content\n if(comment){\n if( xmlData[i - 1] === \"-\" && xmlData[i - 2] === \"-\"){\n comment = false;\n angleBracketsCount--;\n }\n }else{\n angleBracketsCount--;\n }\n if (angleBracketsCount === 0) {\n break;\n }\n }else if( xmlData[i] === '['){\n hasBody = true;\n }else{\n exp += xmlData[i];\n }\n }\n if(angleBracketsCount !== 0){\n throw new Error(`Unclosed DOCTYPE`);\n }\n }else{\n throw new Error(`Invalid Tag instead of DOCTYPE`);\n }\n return {entities, i};\n }\n readEntityExp(xmlData, i) { \n //External entities are not supported\n // <!ENTITY ext SYSTEM \"http://normal-website.com\" >\n\n //Parameter entities are not supported\n // <!ENTITY entityname \"&anotherElement;\">\n\n //Internal entities are supported\n // <!ENTITY entityname \"replacement text\">\n\n // Skip leading whitespace after <!ENTITY\n i = skipWhitespace(xmlData, i);\n\n // Read entity name\n let entityName = \"\";\n while (i < xmlData.length && !/\\s/.test(xmlData[i]) && xmlData[i] !== '\"' && xmlData[i] !== \"'\") {\n entityName += xmlData[i];\n i++;\n }\n validateEntityName(entityName);\n\n // Skip whitespace after entity name\n i = skipWhitespace(xmlData, i);\n\n // Check for unsupported constructs (external entities or parameter entities)\n if(!this.suppressValidationErr){\n if (xmlData.substring(i, i + 6).toUpperCase() === \"SYSTEM\") {\n throw new Error(\"External entities are not supported\");\n }else if (xmlData[i] === \"%\") {\n throw new Error(\"Parameter entities are not supported\");\n }\n }\n\n // Read entity value (internal entity)\n let entityValue = \"\";\n [i, entityValue] = this.readIdentifierVal(xmlData, i, \"entity\");\n i--;\n return [entityName, entityValue, i ];\n }\n\n readNotationExp(xmlData, i) {\n // Skip leading whitespace after <!NOTATION\n i = skipWhitespace(xmlData, i);\n\n // Read notation name\n let notationName = \"\";\n while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n notationName += xmlData[i];\n i++;\n }\n !this.suppressValidationErr && validateEntityName(notationName);\n\n // Skip whitespace after notation name\n i = skipWhitespace(xmlData, i);\n\n // Check identifier type (SYSTEM or PUBLIC)\n const identifierType = xmlData.substring(i, i + 6).toUpperCase();\n if (!this.suppressValidationErr && identifierType !== \"SYSTEM\" && identifierType !== \"PUBLIC\") {\n throw new Error(`Expected SYSTEM or PUBLIC, found \"${identifierType}\"`);\n }\n i += identifierType.length;\n\n // Skip whitespace after identifier type\n i = skipWhitespace(xmlData, i);\n\n // Read public identifier (if PUBLIC)\n let publicIdentifier = null;\n let systemIdentifier = null;\n\n if (identifierType === \"PUBLIC\") {\n [i, publicIdentifier ] = this.readIdentifierVal(xmlData, i, \"publicIdentifier\");\n\n // Skip whitespace after public identifier\n i = skipWhitespace(xmlData, i);\n\n // Optionally read system identifier\n if (xmlData[i] === '\"' || xmlData[i] === \"'\") {\n [i, systemIdentifier ] = this.readIdentifierVal(xmlData, i,\"systemIdentifier\");\n }\n } else if (identifierType === \"SYSTEM\") {\n // Read system identifier (mandatory for SYSTEM)\n [i, systemIdentifier ] = this.readIdentifierVal(xmlData, i, \"systemIdentifier\");\n\n if (!this.suppressValidationErr && !systemIdentifier) {\n throw new Error(\"Missing mandatory system identifier for SYSTEM notation\");\n }\n }\n \n return {notationName, publicIdentifier, systemIdentifier, index: --i};\n }\n\n readIdentifierVal(xmlData, i, type) {\n let identifierVal = \"\";\n const startChar = xmlData[i];\n if (startChar !== '\"' && startChar !== \"'\") {\n throw new Error(`Expected quoted string, found \"${startChar}\"`);\n }\n i++;\n\n while (i < xmlData.length && xmlData[i] !== startChar) {\n identifierVal += xmlData[i];\n i++;\n }\n\n if (xmlData[i] !== startChar) {\n throw new Error(`Unterminated ${type} value`);\n }\n i++;\n return [i, identifierVal];\n }\n\n readElementExp(xmlData, i) {\n // <!ELEMENT br EMPTY>\n // <!ELEMENT div ANY>\n // <!ELEMENT title (#PCDATA)>\n // <!ELEMENT book (title, author+)>\n // <!ELEMENT name (content-model)>\n \n // Skip leading whitespace after <!ELEMENT\n i = skipWhitespace(xmlData, i);\n\n // Read element name\n let elementName = \"\";\n while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n elementName += xmlData[i];\n i++;\n }\n\n // Validate element name\n if (!this.suppressValidationErr && !isName(elementName)) {\n throw new Error(`Invalid element name: \"${elementName}\"`);\n }\n\n // Skip whitespace after element name\n i = skipWhitespace(xmlData, i);\n let contentModel = \"\";\n // Expect '(' to start content model\n if(xmlData[i] === \"E\" && hasSeq(xmlData, \"MPTY\",i)) i+=4;\n else if(xmlData[i] === \"A\" && hasSeq(xmlData, \"NY\",i)) i+=2;\n else if (xmlData[i] === \"(\") {\n i++; // Move past '('\n\n // Read content model\n while (i < xmlData.length && xmlData[i] !== \")\") {\n contentModel += xmlData[i];\n i++;\n }\n if (xmlData[i] !== \")\") {\n throw new Error(\"Unterminated content model\");\n }\n\n }else if(!this.suppressValidationErr){\n throw new Error(`Invalid Element Expression, found \"${xmlData[i]}\"`);\n }\n \n return {\n elementName,\n contentModel: contentModel.trim(),\n index: i\n };\n }\n\n readAttlistExp(xmlData, i) {\n // Skip leading whitespace after <!ATTLIST\n i = skipWhitespace(xmlData, i);\n\n // Read element name\n let elementName = \"\";\n while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n elementName += xmlData[i];\n i++;\n }\n\n // Validate element name\n validateEntityName(elementName)\n\n // Skip whitespace after element name\n i = skipWhitespace(xmlData, i);\n\n // Read attribute name\n let attributeName = \"\";\n while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n attributeName += xmlData[i];\n i++;\n }\n\n // Validate attribute name\n if (!validateEntityName(attributeName)) {\n throw new Error(`Invalid attribute name: \"${attributeName}\"`);\n }\n\n // Skip whitespace after attribute name\n i = skipWhitespace(xmlData, i);\n\n // Read attribute type\n let attributeType = \"\";\n if (xmlData.substring(i, i + 8).toUpperCase() === \"NOTATION\") {\n attributeType = \"NOTATION\";\n i += 8; // Move past \"NOTATION\"\n\n // Skip whitespace after \"NOTATION\"\n i = skipWhitespace(xmlData, i);\n\n // Expect '(' to start the list of notations\n if (xmlData[i] !== \"(\") {\n throw new Error(`Expected '(', found \"${xmlData[i]}\"`);\n }\n i++; // Move past '('\n\n // Read the list of allowed notations\n let allowedNotations = [];\n while (i < xmlData.length && xmlData[i] !== \")\") {\n let notation = \"\";\n while (i < xmlData.length && xmlData[i] !== \"|\" && xmlData[i] !== \")\") {\n notation += xmlData[i];\n i++;\n }\n\n // Validate notation name\n notation = notation.trim();\n if (!validateEntityName(notation)) {\n throw new Error(`Invalid notation name: \"${notation}\"`);\n }\n\n allowedNotations.push(notation);\n\n // Skip '|' separator or exit loop\n if (xmlData[i] === \"|\") {\n i++; // Move past '|'\n i = skipWhitespace(xmlData, i); // Skip optional whitespace after '|'\n }\n }\n\n if (xmlData[i] !== \")\") {\n throw new Error(\"Unterminated list of notations\");\n }\n i++; // Move past ')'\n\n // Store the allowed notations as part of the attribute type\n attributeType += \" (\" + allowedNotations.join(\"|\") + \")\";\n } else {\n // Handle simple types (e.g., CDATA, ID, IDREF, etc.)\n while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n attributeType += xmlData[i];\n i++;\n }\n\n // Validate simple attribute type\n const validTypes = [\"CDATA\", \"ID\", \"IDREF\", \"IDREFS\", \"ENTITY\", \"ENTITIES\", \"NMTOKEN\", \"NMTOKENS\"];\n if (!this.suppressValidationErr && !validTypes.includes(attributeType.toUpperCase())) {\n throw new Error(`Invalid attribute type: \"${attributeType}\"`);\n }\n }\n\n // Skip whitespace after attribute type\n i = skipWhitespace(xmlData, i);\n\n // Read default value\n let defaultValue = \"\";\n if (xmlData.substring(i, i + 8).toUpperCase() === \"#REQUIRED\") {\n defaultValue = \"#REQUIRED\";\n i += 8;\n } else if (xmlData.substring(i, i + 7).toUpperCase() === \"#IMPLIED\") {\n defaultValue = \"#IMPLIED\";\n i += 7;\n } else {\n [i, defaultValue] = this.readIdentifierVal(xmlData, i, \"ATTLIST\");\n }\n\n return {\n elementName,\n attributeName,\n attributeType,\n defaultValue,\n index: i\n }\n }\n}\n\n\n\nconst skipWhitespace = (data, index) => {\n while (index < data.length && /\\s/.test(data[index])) {\n index++;\n }\n return index;\n};\n\n\n\nfunction hasSeq(data, seq,i){\n for(let j=0;j<seq.length;j++){\n if(seq[j]!==data[i+j+1]) return false;\n }\n return true;\n}\n\nfunction validateEntityName(name){\n if (isName(name))\n\t return name;\n else\n throw new Error(`Invalid entity name ${name}`);\n}\n","const hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;\nconst numRegex = /^([\\-\\+])?(0*)([0-9]*(\\.[0-9]*)?)$/;\n// const octRegex = /^0x[a-z0-9]+/;\n// const binRegex = /0x[a-z0-9]+/;\n\n \nconst consider = {\n hex : true,\n // oct: false,\n leadingZeros: true,\n decimalPoint: \"\\.\",\n eNotation: true,\n //skipLike: /regex/\n};\n\nexport default function toNumber(str, options = {}){\n options = Object.assign({}, consider, options );\n if(!str || typeof str !== \"string\" ) return str;\n \n let trimmedStr = str.trim();\n \n if(options.skipLike !== undefined && options.skipLike.test(trimmedStr)) return str;\n else if(str===\"0\") return 0;\n else if (options.hex && hexRegex.test(trimmedStr)) {\n return parse_int(trimmedStr, 16);\n // }else if (options.oct && octRegex.test(str)) {\n // return Number.parseInt(val, 8);\n }else if (trimmedStr.search(/.+[eE].+/)!== -1) { //eNotation\n return resolveEnotation(str,trimmedStr,options);\n // }else if (options.parseBin && binRegex.test(str)) {\n // return Number.parseInt(val, 2);\n }else{\n //separate negative sign, leading zeros, and rest number\n const match = numRegex.exec(trimmedStr);\n // +00.123 => [ , '+', '00', '.123', ..\n if(match){\n const sign = match[1] || \"\";\n const leadingZeros = match[2];\n let numTrimmedByZeros = trimZeros(match[3]); //complete num without leading zeros\n const decimalAdjacentToLeadingZeros = sign ? // 0., -00., 000.\n str[leadingZeros.length+1] === \".\" \n : str[leadingZeros.length] === \".\";\n\n //trim ending zeros for floating number\n if(!options.leadingZeros //leading zeros are not allowed\n && (leadingZeros.length > 1 \n || (leadingZeros.length === 1 && !decimalAdjacentToLeadingZeros))){\n // 00, 00.3, +03.24, 03, 03.24\n return str;\n }\n else{//no leading zeros or leading zeros are allowed\n const num = Number(trimmedStr);\n const parsedStr = String(num);\n\n if( num === 0 || num === -0) return num;\n if(parsedStr.search(/[eE]/) !== -1){ //given number is long and parsed to eNotation\n if(options.eNotation) return num;\n else return str;\n }else if(trimmedStr.indexOf(\".\") !== -1){ //floating number\n if(parsedStr === \"0\") return num; //0.0\n else if(parsedStr === numTrimmedByZeros) return num; //0.456. 0.79000\n else if( parsedStr === `${sign}${numTrimmedByZeros}`) return num;\n else return str;\n }\n \n let n = leadingZeros? numTrimmedByZeros : trimmedStr;\n if(leadingZeros){\n // -009 => -9\n return (n === parsedStr) || (sign+n === parsedStr) ? num : str\n }else {\n // +9\n return (n === parsedStr) || (n === sign+parsedStr) ? num : str\n }\n }\n }else{ //non-numeric string\n return str;\n }\n }\n}\n\nconst eNotationRegx = /^([-+])?(0*)(\\d*(\\.\\d*)?[eE][-\\+]?\\d+)$/;\nfunction resolveEnotation(str,trimmedStr,options){\n if(!options.eNotation) return str;\n const notation = trimmedStr.match(eNotationRegx); \n if(notation){\n let sign = notation[1] || \"\";\n const eChar = notation[3].indexOf(\"e\") === -1 ? \"E\" : \"e\";\n const leadingZeros = notation[2];\n const eAdjacentToLeadingZeros = sign ? // 0E.\n str[leadingZeros.length+1] === eChar \n : str[leadingZeros.length] === eChar;\n\n if(leadingZeros.length > 1 && eAdjacentToLeadingZeros) return str;\n else if(leadingZeros.length === 1 \n && (notation[3].startsWith(`.${eChar}`) || notation[3][0] === eChar)){\n return Number(trimmedStr);\n }else if(options.leadingZeros && !eAdjacentToLeadingZeros){ //accept with leading zeros\n //remove leading 0s\n trimmedStr = (notation[1] || \"\") + notation[3];\n return Number(trimmedStr);\n }else return str;\n }else{\n return str;\n }\n}\n\n/**\n * \n * @param {string} numStr without leading zeros\n * @returns \n */\nfunction trimZeros(numStr){\n if(numStr && numStr.indexOf(\".\") !== -1){//float\n numStr = numStr.replace(/0+$/, \"\"); //remove ending zeros\n if(numStr === \".\") numStr = \"0\";\n else if(numStr[0] === \".\") numStr = \"0\"+numStr;\n else if(numStr[numStr.length-1] === \".\") numStr = numStr.substring(0,numStr.length-1);\n return numStr;\n }\n return numStr;\n}\n\nfunction parse_int(numStr, base){\n //polyfill\n if(parseInt) return parseInt(numStr, base);\n else if(Number.parseInt) return Number.parseInt(numStr, base);\n else if(window && window.parseInt) return window.parseInt(numStr, base);\n else throw new Error(\"parseInt, Number.parseInt, window.parseInt are not supported\")\n}","'use strict';\n///@ts-check\n\nimport {getAllMatches, isExist} from '../util.js';\nimport xmlNode from './xmlNode.js';\nimport DocTypeReader from './DocTypeReader.js';\nimport toNumber from \"strnum\";\nimport getIgnoreAttributesFn from \"../ignoreAttributes.js\";\n\n// const regx =\n// '<((!\\\\[CDATA\\\\[([\\\\s\\\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\\\/)(NAME)\\\\s*>))([^<]*)'\n// .replace(/NAME/g, util.nameRegexp);\n\n//const tagsRegx = new RegExp(\"<(\\\\/?[\\\\w:\\\\-\\._]+)([^>]*)>(\\\\s*\"+cdataRegx+\")*([^<]+)?\",\"g\");\n//const tagsRegx = new RegExp(\"<(\\\\/?)((\\\\w*:)?([\\\\w:\\\\-\\._]+))([^>]*)>([^<]*)(\"+cdataRegx+\"([^<]*))*([^<]+)?\",\"g\");\n\nexport default class OrderedObjParser{\n constructor(options){\n this.options = options;\n this.currentNode = null;\n this.tagsNodeStack = [];\n this.docTypeEntities = {};\n this.lastEntities = {\n \"apos\" : { regex: /&(apos|#39|#x27);/g, val : \"'\"},\n \"gt\" : { regex: /&(gt|#62|#x3E);/g, val : \">\"},\n \"lt\" : { regex: /&(lt|#60|#x3C);/g, val : \"<\"},\n \"quot\" : { regex: /&(quot|#34|#x22);/g, val : \"\\\"\"},\n };\n this.ampEntity = { regex: /&(amp|#38|#x26);/g, val : \"&\"};\n this.htmlEntities = {\n \"space\": { regex: /&(nbsp|#160);/g, val: \" \" },\n // \"lt\" : { regex: /&(lt|#60);/g, val: \"<\" },\n // \"gt\" : { regex: /&(gt|#62);/g, val: \">\" },\n // \"amp\" : { regex: /&(amp|#38);/g, val: \"&\" },\n // \"quot\" : { regex: /&(quot|#34);/g, val: \"\\\"\" },\n // \"apos\" : { regex: /&(apos|#39);/g, val: \"'\" },\n \"cent\" : { regex: /&(cent|#162);/g, val: \"¢\" },\n \"pound\" : { regex: /&(pound|#163);/g, val: \"£\" },\n \"yen\" : { regex: /&(yen|#165);/g, val: \"¥\" },\n \"euro\" : { regex: /&(euro|#8364);/g, val: \"€\" },\n \"copyright\" : { regex: /&(copy|#169);/g, val: \"©\" },\n \"reg\" : { regex: /&(reg|#174);/g, val: \"®\" },\n \"inr\" : { regex: /&(inr|#8377);/g, val: \"₹\" },\n \"num_dec\": { regex: /&#([0-9]{1,7});/g, val : (_, str) => fromCodePoint(str, 10, \"&#\") },\n \"num_hex\": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => fromCodePoint(str, 16, \"&#x\") },\n };\n this.addExternalEntities = addExternalEntities;\n this.parseXml = parseXml;\n this.parseTextData = parseTextData;\n this.resolveNameSpace = resolveNameSpace;\n this.buildAttributesMap = buildAttributesMap;\n this.isItStopNode = isItStopNode;\n this.replaceEntitiesValue = replaceEntitiesValue;\n this.readStopNodeData = readStopNodeData;\n this.saveTextToParentTag = saveTextToParentTag;\n this.addChild = addChild;\n this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes)\n\n if(this.options.stopNodes && this.options.stopNodes.length > 0){\n this.stopNodesExact = new Set();\n this.stopNodesWildcard = new Set();\n for(let i = 0; i < this.options.stopNodes.length; i++){\n const stopNodeExp = this.options.stopNodes[i];\n if(typeof stopNodeExp !== 'string') continue;\n if(stopNodeExp.startsWith(\"*.\")){\n this.stopNodesWildcard.add(stopNodeExp.substring(2));\n }else{\n this.stopNodesExact.add(stopNodeExp);\n }\n }\n }\n }\n\n}\n\nfunction addExternalEntities(externalEntities){\n const entKeys = Object.keys(externalEntities);\n for (let i = 0; i < entKeys.length; i++) {\n const ent = entKeys[i];\n this.lastEntities[ent] = {\n regex: new RegExp(\"&\"+ent+\";\",\"g\"),\n val : externalEntities[ent]\n }\n }\n}\n\n/**\n * @param {string} val\n * @param {string} tagName\n * @param {string} jPath\n * @param {boolean} dontTrim\n * @param {boolean} hasAttributes\n * @param {boolean} isLeafNode\n * @param {boolean} escapeEntities\n */\nfunction parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {\n if (val !== undefined) {\n if (this.options.trimValues && !dontTrim) {\n val = val.trim();\n }\n if(val.length > 0){\n if(!escapeEntities) val = this.replaceEntitiesValue(val);\n \n const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);\n if(newval === null || newval === undefined){\n //don't parse\n return val;\n }else if(typeof newval !== typeof val || newval !== val){\n //overwrite\n return newval;\n }else if(this.options.trimValues){\n return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);\n }else{\n const trimmedVal = val.trim();\n if(trimmedVal === val){\n return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);\n }else{\n return val;\n }\n }\n }\n }\n}\n\nfunction resolveNameSpace(tagname) {\n if (this.options.removeNSPrefix) {\n const tags = tagname.split(':');\n const prefix = tagname.charAt(0) === '/' ? '/' : '';\n if (tags[0] === 'xmlns') {\n return '';\n }\n if (tags.length === 2) {\n tagname = prefix + tags[1];\n }\n }\n return tagname;\n}\n\n//TODO: change regex to capture NS\n//const attrsRegx = new RegExp(\"([\\\\w\\\\-\\\\.\\\\:]+)\\\\s*=\\\\s*(['\\\"])((.|\\n)*?)\\\\2\",\"gm\");\nconst attrsRegx = new RegExp('([^\\\\s=]+)\\\\s*(=\\\\s*([\\'\"])([\\\\s\\\\S]*?)\\\\3)?', 'gm');\n\nfunction buildAttributesMap(attrStr, jPath) {\n if (this.options.ignoreAttributes !== true && typeof attrStr === 'string') {\n // attrStr = attrStr.replace(/\\r?\\n/g, ' ');\n //attrStr = attrStr || attrStr.trim();\n\n const matches = getAllMatches(attrStr, attrsRegx);\n const len = matches.length; //don't make it inline\n const attrs = {};\n for (let i = 0; i < len; i++) {\n const attrName = this.resolveNameSpace(matches[i][1]);\n if (this.ignoreAttributesFn(attrName, jPath)) {\n continue\n }\n let oldVal = matches[i][4];\n let aName = this.options.attributeNamePrefix + attrName;\n if (attrName.length) {\n if (this.options.transformAttributeName) {\n aName = this.options.transformAttributeName(aName);\n }\n if(aName === \"__proto__\") aName = \"#__proto__\";\n if (oldVal !== undefined) {\n if (this.options.trimValues) {\n oldVal = oldVal.trim();\n }\n oldVal = this.replaceEntitiesValue(oldVal);\n const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);\n if(newVal === null || newVal === undefined){\n //don't parse\n attrs[aName] = oldVal;\n }else if(typeof newVal !== typeof oldVal || newVal !== oldVal){\n //overwrite\n attrs[aName] = newVal;\n }else{\n //parse\n attrs[aName] = parseValue(\n oldVal,\n this.options.parseAttributeValue,\n this.options.numberParseOptions\n );\n }\n } else if (this.options.allowBooleanAttributes) {\n attrs[aName] = true;\n }\n }\n }\n if (!Object.keys(attrs).length) {\n return;\n }\n if (this.options.attributesGroupName) {\n const attrCollection = {};\n attrCollection[this.options.attributesGroupName] = attrs;\n return attrCollection;\n }\n return attrs\n }\n}\n\nconst parseXml = function(xmlData) {\n xmlData = xmlData.replace(/\\r\\n?/g, \"\\n\"); //TODO: remove this line\n const xmlObj = new xmlNode('!xml');\n let currentNode = xmlObj;\n let textData = \"\";\n let jPath = \"\";\n const docTypeReader = new DocTypeReader(this.options.processEntities);\n for(let i=0; i< xmlData.length; i++){//for each char in XML data\n const ch = xmlData[i];\n if(ch === '<'){\n // const nextIndex = i+1;\n // const _2ndChar = xmlData[nextIndex];\n if( xmlData[i+1] === '/') {//Closing Tag\n const closeIndex = findClosingIndex(xmlData, \">\", i, \"Closing Tag is not closed.\")\n let tagName = xmlData.substring(i+2,closeIndex).trim();\n\n if(this.options.removeNSPrefix){\n const colonIndex = tagName.indexOf(\":\");\n if(colonIndex !== -1){\n tagName = tagName.substr(colonIndex+1);\n }\n }\n\n if(this.options.transformTagName) {\n tagName = this.options.transformTagName(tagName);\n }\n\n if(currentNode){\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n }\n\n //check if last tag of nested tag was unpaired tag\n const lastTagName = jPath.substring(jPath.lastIndexOf(\".\")+1);\n if(tagName && this.options.unpairedTags.indexOf(tagName) !== -1 ){\n throw new Error(`Unpaired tag can not be used as closing tag: </${tagName}>`);\n }\n let propIndex = 0\n if(lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1 ){\n propIndex = jPath.lastIndexOf('.', jPath.lastIndexOf('.')-1)\n this.tagsNodeStack.pop();\n }else{\n propIndex = jPath.lastIndexOf(\".\");\n }\n jPath = jPath.substring(0, propIndex);\n\n currentNode = this.tagsNodeStack.pop();//avoid recursion, set the parent tag scope\n textData = \"\";\n i = closeIndex;\n } else if( xmlData[i+1] === '?') {\n\n let tagData = readTagExp(xmlData,i, false, \"?>\");\n if(!tagData) throw new Error(\"Pi Tag is not closed.\");\n\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n if( (this.options.ignoreDeclaration && tagData.tagName === \"?xml\") || this.options.ignorePiTags){\n //do nothing\n }else{\n \n const childNode = new xmlNode(tagData.tagName);\n childNode.add(this.options.textNodeName, \"\");\n \n if(tagData.tagName !== tagData.tagExp && tagData.attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagData.tagExp, jPath);\n }\n this.addChild(currentNode, childNode, jPath, i);\n }\n\n\n i = tagData.closeIndex + 1;\n } else if(xmlData.substr(i + 1, 3) === '!--') {\n const endIndex = findClosingIndex(xmlData, \"-->\", i+4, \"Comment is not closed.\")\n if(this.options.commentPropName){\n const comment = xmlData.substring(i + 4, endIndex - 2);\n\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n\n currentNode.add(this.options.commentPropName, [ { [this.options.textNodeName] : comment } ]);\n }\n i = endIndex;\n } else if( xmlData.substr(i + 1, 2) === '!D') {\n const result = docTypeReader.readDocType(xmlData, i);\n this.docTypeEntities = result.entities;\n i = result.i;\n }else if(xmlData.substr(i + 1, 2) === '![') {\n const closeIndex = findClosingIndex(xmlData, \"]]>\", i, \"CDATA is not closed.\") - 2;\n const tagExp = xmlData.substring(i + 9,closeIndex);\n\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n\n let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);\n if(val == undefined) val = \"\";\n\n //cdata should be set even if it is 0 length string\n if(this.options.cdataPropName){\n currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]);\n }else{\n currentNode.add(this.options.textNodeName, val);\n }\n \n i = closeIndex + 2;\n }else {//Opening tag\n let result = readTagExp(xmlData,i, this.options.removeNSPrefix);\n let tagName= result.tagName;\n const rawTagName = result.rawTagName;\n let tagExp = result.tagExp;\n let attrExpPresent = result.attrExpPresent;\n let closeIndex = result.closeIndex;\n\n if (this.options.transformTagName) {\n //console.log(tagExp, tagName)\n const newTagName = this.options.transformTagName(tagName);\n if(tagExp === tagName) {\n tagExp = newTagName\n }\n tagName = newTagName;\n }\n \n //save text as child node\n if (currentNode && textData) {\n if(currentNode.tagname !== '!xml'){\n //when nested tag is found\n textData = this.saveTextToParentTag(textData, currentNode, jPath, false);\n }\n }\n\n //check if last tag was unpaired tag\n const lastTag = currentNode;\n if(lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1 ){\n currentNode = this.tagsNodeStack.pop();\n jPath = jPath.substring(0, jPath.lastIndexOf(\".\"));\n }\n if(tagName !== xmlObj.tagname){\n jPath += jPath ? \".\" + tagName : tagName;\n }\n const startIndex = i;\n if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, jPath, tagName)) {\n let tagContent = \"\";\n //self-closing tag\n if(tagExp.length > 0 && tagExp.lastIndexOf(\"/\") === tagExp.length - 1){\n if(tagName[tagName.length - 1] === \"/\"){ //remove trailing '/'\n tagName = tagName.substr(0, tagName.length - 1);\n jPath = jPath.substr(0, jPath.length - 1);\n tagExp = tagName;\n }else{\n tagExp = tagExp.substr(0, tagExp.length - 1);\n }\n i = result.closeIndex;\n }\n //unpaired tag\n else if(this.options.unpairedTags.indexOf(tagName) !== -1){\n \n i = result.closeIndex;\n }\n //normal tag\n else{\n //read until closing tag is found\n const result = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);\n if(!result) throw new Error(`Unexpected end of ${rawTagName}`);\n i = result.i;\n tagContent = result.tagContent;\n }\n\n const childNode = new xmlNode(tagName);\n\n if(tagName !== tagExp && attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath\n );\n }\n if(tagContent) {\n tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);\n }\n \n jPath = jPath.substr(0, jPath.lastIndexOf(\".\"));\n childNode.add(this.options.textNodeName, tagContent);\n \n this.addChild(currentNode, childNode, jPath, startIndex);\n }else{\n //selfClosing tag\n if(tagExp.length > 0 && tagExp.lastIndexOf(\"/\") === tagExp.length - 1){\n if(tagName[tagName.length - 1] === \"/\"){ //remove trailing '/'\n tagName = tagName.substr(0, tagName.length - 1);\n jPath = jPath.substr(0, jPath.length - 1);\n tagExp = tagName;\n }else{\n tagExp = tagExp.substr(0, tagExp.length - 1);\n }\n \n if(this.options.transformTagName) {\n const newTagName = this.options.transformTagName(tagName);\n if(tagExp === tagName) {\n tagExp = newTagName\n }\n tagName = newTagName;\n }\n\n const childNode = new xmlNode(tagName);\n if(tagName !== tagExp && attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath);\n }\n this.addChild(currentNode, childNode, jPath, startIndex);\n jPath = jPath.substr(0, jPath.lastIndexOf(\".\"));\n }\n //opening tag\n else{\n const childNode = new xmlNode( tagName);\n this.tagsNodeStack.push(currentNode);\n \n if(tagName !== tagExp && attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath);\n }\n this.addChild(currentNode, childNode, jPath, startIndex);\n currentNode = childNode;\n }\n textData = \"\";\n i = closeIndex;\n }\n }\n }else{\n textData += xmlData[i];\n }\n }\n return xmlObj.child;\n}\n\nfunction addChild(currentNode, childNode, jPath, startIndex){\n // unset startIndex if not requested\n if (!this.options.captureMetaData) startIndex = undefined;\n const result = this.options.updateTag(childNode.tagname, jPath, childNode[\":@\"])\n if(result === false){\n //do nothing\n } else if(typeof result === \"string\"){\n childNode.tagname = result\n currentNode.addChild(childNode, startIndex);\n }else{\n currentNode.addChild(childNode, startIndex);\n }\n}\n\nconst replaceEntitiesValue = function(val){\n\n if(this.options.processEntities){\n for(let entityName in this.docTypeEntities){\n const entity = this.docTypeEntities[entityName];\n val = val.replace( entity.regx, entity.val);\n }\n for(let entityName in this.lastEntities){\n const entity = this.lastEntities[entityName];\n val = val.replace( entity.regex, entity.val);\n }\n if(this.options.htmlEntities){\n for(let entityName in this.htmlEntities){\n const entity = this.htmlEntities[entityName];\n val = val.replace( entity.regex, entity.val);\n }\n }\n val = val.replace( this.ampEntity.regex, this.ampEntity.val);\n }\n return val;\n}\nfunction saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {\n if (textData) { //store previously collected data as textNode\n if(isLeafNode === undefined) isLeafNode = currentNode.child.length === 0\n \n textData = this.parseTextData(textData,\n currentNode.tagname,\n jPath,\n false,\n currentNode[\":@\"] ? Object.keys(currentNode[\":@\"]).length !== 0 : false,\n isLeafNode);\n\n if (textData !== undefined && textData !== \"\")\n currentNode.add(this.options.textNodeName, textData);\n textData = \"\";\n }\n return textData;\n}\n\n//TODO: use jPath to simplify the logic\n/**\n * @param {Set} stopNodesExact\n * @param {Set} stopNodesWildcard\n * @param {string} jPath\n * @param {string} currentTagName\n */\nfunction isItStopNode(stopNodesExact, stopNodesWildcard, jPath, currentTagName){\n if(stopNodesWildcard && stopNodesWildcard.has(currentTagName)) return true;\n if(stopNodesExact && stopNodesExact.has(jPath)) return true;\n return false;\n}\n\n/**\n * Returns the tag Expression and where it is ending handling single-double quotes situation\n * @param {string} xmlData \n * @param {number} i starting index\n * @returns \n */\nfunction tagExpWithClosingIndex(xmlData, i, closingChar = \">\"){\n let attrBoundary;\n let tagExp = \"\";\n for (let index = i; index < xmlData.length; index++) {\n let ch = xmlData[index];\n if (attrBoundary) {\n if (ch === attrBoundary) attrBoundary = \"\";//reset\n } else if (ch === '\"' || ch === \"'\") {\n attrBoundary = ch;\n } else if (ch === closingChar[0]) {\n if(closingChar[1]){\n if(xmlData[index + 1] === closingChar[1]){\n return {\n data: tagExp,\n index: index\n }\n }\n }else{\n return {\n data: tagExp,\n index: index\n }\n }\n } else if (ch === '\\t') {\n ch = \" \"\n }\n tagExp += ch;\n }\n}\n\nfunction findClosingIndex(xmlData, str, i, errMsg){\n const closingIndex = xmlData.indexOf(str, i);\n if(closingIndex === -1){\n throw new Error(errMsg)\n }else{\n return closingIndex + str.length - 1;\n }\n}\n\nfunction readTagExp(xmlData,i, removeNSPrefix, closingChar = \">\"){\n const result = tagExpWithClosingIndex(xmlData, i+1, closingChar);\n if(!result) return;\n let tagExp = result.data;\n const closeIndex = result.index;\n const separatorIndex = tagExp.search(/\\s/);\n let tagName = tagExp;\n let attrExpPresent = true;\n if(separatorIndex !== -1){//separate tag name and attributes expression\n tagName = tagExp.substring(0, separatorIndex);\n tagExp = tagExp.substring(separatorIndex + 1).trimStart();\n }\n\n const rawTagName = tagName;\n if(removeNSPrefix){\n const colonIndex = tagName.indexOf(\":\");\n if(colonIndex !== -1){\n tagName = tagName.substr(colonIndex+1);\n attrExpPresent = tagName !== result.data.substr(colonIndex + 1);\n }\n }\n\n return {\n tagName: tagName,\n tagExp: tagExp,\n closeIndex: closeIndex,\n attrExpPresent: attrExpPresent,\n rawTagName: rawTagName,\n }\n}\n/**\n * find paired tag for a stop node\n * @param {string} xmlData \n * @param {string} tagName \n * @param {number} i \n */\nfunction readStopNodeData(xmlData, tagName, i){\n const startIndex = i;\n // Starting at 1 since we already have an open tag\n let openTagCount = 1;\n\n for (; i < xmlData.length; i++) {\n if( xmlData[i] === \"<\"){ \n if (xmlData[i+1] === \"/\") {//close tag\n const closeIndex = findClosingIndex(xmlData, \">\", i, `${tagName} is not closed`);\n let closeTagName = xmlData.substring(i+2,closeIndex).trim();\n if(closeTagName === tagName){\n openTagCount--;\n if (openTagCount === 0) {\n return {\n tagContent: xmlData.substring(startIndex, i),\n i : closeIndex\n }\n }\n }\n i=closeIndex;\n } else if(xmlData[i+1] === '?') { \n const closeIndex = findClosingIndex(xmlData, \"?>\", i+1, \"StopNode is not closed.\")\n i=closeIndex;\n } else if(xmlData.substr(i + 1, 3) === '!--') { \n const closeIndex = findClosingIndex(xmlData, \"-->\", i+3, \"StopNode is not closed.\")\n i=closeIndex;\n } else if(xmlData.substr(i + 1, 2) === '![') { \n const closeIndex = findClosingIndex(xmlData, \"]]>\", i, \"StopNode is not closed.\") - 2;\n i=closeIndex;\n } else {\n const tagData = readTagExp(xmlData, i, '>')\n\n if (tagData) {\n const openTagName = tagData && tagData.tagName;\n if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length-1] !== \"/\") {\n openTagCount++;\n }\n i=tagData.closeIndex;\n }\n }\n }\n }//end for loop\n}\n\nfunction parseValue(val, shouldParse, options) {\n if (shouldParse && typeof val === 'string') {\n //console.log(options)\n const newval = val.trim();\n if(newval === 'true' ) return true;\n else if(newval === 'false' ) return false;\n else return toNumber(val, options);\n } else {\n if (isExist(val)) {\n return val;\n } else {\n return '';\n }\n }\n}\n\nfunction fromCodePoint(str, base, prefix){\n const codePoint = Number.parseInt(str, base);\n\n if (codePoint >= 0 && codePoint <= 0x10FFFF) {\n return String.fromCodePoint(codePoint);\n } else {\n return prefix +str + \";\";\n }\n}","export default function getIgnoreAttributesFn(ignoreAttributes) {\n if (typeof ignoreAttributes === 'function') {\n return ignoreAttributes\n }\n if (Array.isArray(ignoreAttributes)) {\n return (attrName) => {\n for (const pattern of ignoreAttributes) {\n if (typeof pattern === 'string' && attrName === pattern) {\n return true\n }\n if (pattern instanceof RegExp && pattern.test(attrName)) {\n return true\n }\n }\n }\n }\n return () => false\n}","'use strict';\n\nimport XmlNode from './xmlNode.js';\n\nconst METADATA_SYMBOL = XmlNode.getMetaDataSymbol();\n\n/**\n * \n * @param {array} node \n * @param {any} options \n * @returns \n */\nexport default function prettify(node, options){\n return compress( node, options);\n}\n\n/**\n * \n * @param {array} arr \n * @param {object} options \n * @param {string} jPath \n * @returns object\n */\nfunction compress(arr, options, jPath){\n let text;\n const compressedObj = {};\n for (let i = 0; i < arr.length; i++) {\n const tagObj = arr[i];\n const property = propName(tagObj);\n let newJpath = \"\";\n if(jPath === undefined) newJpath = property;\n else newJpath = jPath + \".\" + property;\n\n if(property === options.textNodeName){\n if(text === undefined) text = tagObj[property];\n else text += \"\" + tagObj[property];\n }else if(property === undefined){\n continue;\n }else if(tagObj[property]){\n \n let val = compress(tagObj[property], options, newJpath);\n const isLeaf = isLeafTag(val, options);\n if (tagObj[METADATA_SYMBOL] !== undefined) {\n val[METADATA_SYMBOL] = tagObj[METADATA_SYMBOL]; // copy over metadata\n }\n\n if(tagObj[\":@\"]){\n assignAttributes( val, tagObj[\":@\"], newJpath, options);\n }else if(Object.keys(val).length === 1 && val[options.textNodeName] !== undefined && !options.alwaysCreateTextNode){\n val = val[options.textNodeName];\n }else if(Object.keys(val).length === 0){\n if(options.alwaysCreateTextNode) val[options.textNodeName] = \"\";\n else val = \"\";\n }\n\n if(compressedObj[property] !== undefined && compressedObj.hasOwnProperty(property)) {\n if(!Array.isArray(compressedObj[property])) {\n compressedObj[property] = [ compressedObj[property] ];\n }\n compressedObj[property].push(val);\n }else{\n //TODO: if a node is not an array, then check if it should be an array\n //also determine if it is a leaf node\n if (options.isArray(property, newJpath, isLeaf )) {\n compressedObj[property] = [val];\n }else{\n compressedObj[property] = val;\n }\n }\n }\n \n }\n // if(text && text.length > 0) compressedObj[options.textNodeName] = text;\n if(typeof text === \"string\"){\n if(text.length > 0) compressedObj[options.textNodeName] = text;\n }else if(text !== undefined) compressedObj[options.textNodeName] = text;\n return compressedObj;\n}\n\nfunction propName(obj){\n const keys = Object.keys(obj);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if(key !== \":@\") return key;\n }\n}\n\nfunction assignAttributes(obj, attrMap, jpath, options){\n if (attrMap) {\n const keys = Object.keys(attrMap);\n const len = keys.length; //don't make it inline\n for (let i = 0; i < len; i++) {\n const atrrName = keys[i];\n if (options.isArray(atrrName, jpath + \".\" + atrrName, true, true)) {\n obj[atrrName] = [ attrMap[atrrName] ];\n } else {\n obj[atrrName] = attrMap[atrrName];\n }\n }\n }\n}\n\nfunction isLeafTag(obj, options){\n const { textNodeName } = options;\n const propCount = Object.keys(obj).length;\n \n if (propCount === 0) {\n return true;\n }\n\n if (\n propCount === 1 &&\n (obj[textNodeName] || typeof obj[textNodeName] === \"boolean\" || obj[textNodeName] === 0)\n ) {\n return true;\n }\n\n return false;\n}\n","'use strict';\n\nimport {getAllMatches, isName} from './util.js';\n\nconst defaultOptions = {\n allowBooleanAttributes: false, //A tag can have attributes without any value\n unpairedTags: []\n};\n\n//const tagsPattern = new RegExp(\"<\\\\/?([\\\\w:\\\\-_\\.]+)\\\\s*\\/?>\",\"g\");\nexport function validate(xmlData, options) {\n options = Object.assign({}, defaultOptions, options);\n\n //xmlData = xmlData.replace(/(\\r\\n|\\n|\\r)/gm,\"\");//make it single line\n //xmlData = xmlData.replace(/(^\\s*<\\?xml.*?\\?>)/g,\"\");//Remove XML starting tag\n //xmlData = xmlData.replace(/(<!DOCTYPE[\\s\\w\\\"\\.\\/\\-\\:]+(\\[.*\\])*\\s*>)/g,\"\");//Remove DOCTYPE\n const tags = [];\n let tagFound = false;\n\n //indicates that the root tag has been closed (aka. depth 0 has been reached)\n let reachedRoot = false;\n\n if (xmlData[0] === '\\ufeff') {\n // check for byte order mark (BOM)\n xmlData = xmlData.substr(1);\n }\n \n for (let i = 0; i < xmlData.length; i++) {\n\n if (xmlData[i] === '<' && xmlData[i+1] === '?') {\n i+=2;\n i = readPI(xmlData,i);\n if (i.err) return i;\n }else if (xmlData[i] === '<') {\n //starting of tag\n //read until you reach to '>' avoiding any '>' in attribute value\n let tagStartPos = i;\n i++;\n \n if (xmlData[i] === '!') {\n i = readCommentAndCDATA(xmlData, i);\n continue;\n } else {\n let closingTag = false;\n if (xmlData[i] === '/') {\n //closing tag\n closingTag = true;\n i++;\n }\n //read tagname\n let tagName = '';\n for (; i < xmlData.length &&\n xmlData[i] !== '>' &&\n xmlData[i] !== ' ' &&\n xmlData[i] !== '\\t' &&\n xmlData[i] !== '\\n' &&\n xmlData[i] !== '\\r'; i++\n ) {\n tagName += xmlData[i];\n }\n tagName = tagName.trim();\n //console.log(tagName);\n\n if (tagName[tagName.length - 1] === '/') {\n //self closing tag without attributes\n tagName = tagName.substring(0, tagName.length - 1);\n //continue;\n i--;\n }\n if (!validateTagName(tagName)) {\n let msg;\n if (tagName.trim().length === 0) {\n msg = \"Invalid space after '<'.\";\n } else {\n msg = \"Tag '\"+tagName+\"' is an invalid name.\";\n }\n return getErrorObject('InvalidTag', msg, getLineNumberForPosition(xmlData, i));\n }\n\n const result = readAttributeStr(xmlData, i);\n if (result === false) {\n return getErrorObject('InvalidAttr', \"Attributes for '\"+tagName+\"' have open quote.\", getLineNumberForPosition(xmlData, i));\n }\n let attrStr = result.value;\n i = result.index;\n\n if (attrStr[attrStr.length - 1] === '/') {\n //self closing tag\n const attrStrStart = i - attrStr.length;\n attrStr = attrStr.substring(0, attrStr.length - 1);\n const isValid = validateAttributeString(attrStr, options);\n if (isValid === true) {\n tagFound = true;\n //continue; //text may presents after self closing tag\n } else {\n //the result from the nested function returns the position of the error within the attribute\n //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute\n //this gives us the absolute index in the entire xml, which we can use to find the line at last\n return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));\n }\n } else if (closingTag) {\n if (!result.tagClosed) {\n return getErrorObject('InvalidTag', \"Closing tag '\"+tagName+\"' doesn't have proper closing.\", getLineNumberForPosition(xmlData, i));\n } else if (attrStr.trim().length > 0) {\n return getErrorObject('InvalidTag', \"Closing tag '\"+tagName+\"' can't have attributes or invalid starting.\", getLineNumberForPosition(xmlData, tagStartPos));\n } else if (tags.length === 0) {\n return getErrorObject('InvalidTag', \"Closing tag '\"+tagName+\"' has not been opened.\", getLineNumberForPosition(xmlData, tagStartPos));\n } else {\n const otg = tags.pop();\n if (tagName !== otg.tagName) {\n let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);\n return getErrorObject('InvalidTag',\n \"Expected closing tag '\"+otg.tagName+\"' (opened in line \"+openPos.line+\", col \"+openPos.col+\") instead of closing tag '\"+tagName+\"'.\",\n getLineNumberForPosition(xmlData, tagStartPos));\n }\n\n //when there are no more tags, we reached the root level.\n if (tags.length == 0) {\n reachedRoot = true;\n }\n }\n } else {\n const isValid = validateAttributeString(attrStr, options);\n if (isValid !== true) {\n //the result from the nested function returns the position of the error within the attribute\n //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute\n //this gives us the absolute index in the entire xml, which we can use to find the line at last\n return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line));\n }\n\n //if the root level has been reached before ...\n if (reachedRoot === true) {\n return getErrorObject('InvalidXml', 'Multiple possible root nodes found.', getLineNumberForPosition(xmlData, i));\n } else if(options.unpairedTags.indexOf(tagName) !== -1){\n //don't push into stack\n } else {\n tags.push({tagName, tagStartPos});\n }\n tagFound = true;\n }\n\n //skip tag text value\n //It may include comments and CDATA value\n for (i++; i < xmlData.length; i++) {\n if (xmlData[i] === '<') {\n if (xmlData[i + 1] === '!') {\n //comment or CADATA\n i++;\n i = readCommentAndCDATA(xmlData, i);\n continue;\n } else if (xmlData[i+1] === '?') {\n i = readPI(xmlData, ++i);\n if (i.err) return i;\n } else{\n break;\n }\n } else if (xmlData[i] === '&') {\n const afterAmp = validateAmpersand(xmlData, i);\n if (afterAmp == -1)\n return getErrorObject('InvalidChar', \"char '&' is not expected.\", getLineNumberForPosition(xmlData, i));\n i = afterAmp;\n }else{\n if (reachedRoot === true && !isWhiteSpace(xmlData[i])) {\n return getErrorObject('InvalidXml', \"Extra text at the end\", getLineNumberForPosition(xmlData, i));\n }\n }\n } //end of reading tag text value\n if (xmlData[i] === '<') {\n i--;\n }\n }\n } else {\n if ( isWhiteSpace(xmlData[i])) {\n continue;\n }\n return getErrorObject('InvalidChar', \"char '\"+xmlData[i]+\"' is not expected.\", getLineNumberForPosition(xmlData, i));\n }\n }\n\n if (!tagFound) {\n return getErrorObject('InvalidXml', 'Start tag expected.', 1);\n }else if (tags.length == 1) {\n return getErrorObject('InvalidTag', \"Unclosed tag '\"+tags[0].tagName+\"'.\", getLineNumberForPosition(xmlData, tags[0].tagStartPos));\n }else if (tags.length > 0) {\n return getErrorObject('InvalidXml', \"Invalid '\"+\n JSON.stringify(tags.map(t => t.tagName), null, 4).replace(/\\r?\\n/g, '')+\n \"' found.\", {line: 1, col: 1});\n }\n\n return true;\n};\n\nfunction isWhiteSpace(char){\n return char === ' ' || char === '\\t' || char === '\\n' || char === '\\r';\n}\n/**\n * Read Processing insstructions and skip\n * @param {*} xmlData\n * @param {*} i\n */\nfunction readPI(xmlData, i) {\n const start = i;\n for (; i < xmlData.length; i++) {\n if (xmlData[i] == '?' || xmlData[i] == ' ') {\n //tagname\n const tagname = xmlData.substr(start, i - start);\n if (i > 5 && tagname === 'xml') {\n return getErrorObject('InvalidXml', 'XML declaration allowed only at the start of the document.', getLineNumberForPosition(xmlData, i));\n } else if (xmlData[i] == '?' && xmlData[i + 1] == '>') {\n //check if valid attribut string\n i++;\n break;\n } else {\n continue;\n }\n }\n }\n return i;\n}\n\nfunction readCommentAndCDATA(xmlData, i) {\n if (xmlData.length > i + 5 && xmlData[i + 1] === '-' && xmlData[i + 2] === '-') {\n //comment\n for (i += 3; i < xmlData.length; i++) {\n if (xmlData[i] === '-' && xmlData[i + 1] === '-' && xmlData[i + 2] === '>') {\n i += 2;\n break;\n }\n }\n } else if (\n xmlData.length > i + 8 &&\n xmlData[i + 1] === 'D' &&\n xmlData[i + 2] === 'O' &&\n xmlData[i + 3] === 'C' &&\n xmlData[i + 4] === 'T' &&\n xmlData[i + 5] === 'Y' &&\n xmlData[i + 6] === 'P' &&\n xmlData[i + 7] === 'E'\n ) {\n let angleBracketsCount = 1;\n for (i += 8; i < xmlData.length; i++) {\n if (xmlData[i] === '<') {\n angleBracketsCount++;\n } else if (xmlData[i] === '>') {\n angleBracketsCount--;\n if (angleBracketsCount === 0) {\n break;\n }\n }\n }\n } else if (\n xmlData.length > i + 9 &&\n xmlData[i + 1] === '[' &&\n xmlData[i + 2] === 'C' &&\n xmlData[i + 3] === 'D' &&\n xmlData[i + 4] === 'A' &&\n xmlData[i + 5] === 'T' &&\n xmlData[i + 6] === 'A' &&\n xmlData[i + 7] === '['\n ) {\n for (i += 8; i < xmlData.length; i++) {\n if (xmlData[i] === ']' && xmlData[i + 1] === ']' && xmlData[i + 2] === '>') {\n i += 2;\n break;\n }\n }\n }\n\n return i;\n}\n\nconst doubleQuote = '\"';\nconst singleQuote = \"'\";\n\n/**\n * Keep reading xmlData until '<' is found outside the attribute value.\n * @param {string} xmlData\n * @param {number} i\n */\nfunction readAttributeStr(xmlData, i) {\n let attrStr = '';\n let startChar = '';\n let tagClosed = false;\n for (; i < xmlData.length; i++) {\n if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) {\n if (startChar === '') {\n startChar = xmlData[i];\n } else if (startChar !== xmlData[i]) {\n //if vaue is enclosed with double quote then single quotes are allowed inside the value and vice versa\n } else {\n startChar = '';\n }\n } else if (xmlData[i] === '>') {\n if (startChar === '') {\n tagClosed = true;\n break;\n }\n }\n attrStr += xmlData[i];\n }\n if (startChar !== '') {\n return false;\n }\n\n return {\n value: attrStr,\n index: i,\n tagClosed: tagClosed\n };\n}\n\n/**\n * Select all the attributes whether valid or invalid.\n */\nconst validAttrStrRegxp = new RegExp('(\\\\s*)([^\\\\s=]+)(\\\\s*=)?(\\\\s*([\\'\"])(([\\\\s\\\\S])*?)\\\\5)?', 'g');\n\n//attr, =\"sd\", a=\"amit's\", a=\"sd\"b=\"saf\", ab cd=\"\"\n\nfunction validateAttributeString(attrStr, options) {\n //console.log(\"start:\"+attrStr+\":end\");\n\n //if(attrStr.trim().length === 0) return true; //empty string\n\n const matches = getAllMatches(attrStr, validAttrStrRegxp);\n const attrNames = {};\n\n for (let i = 0; i < matches.length; i++) {\n if (matches[i][1].length === 0) {\n //nospace before attribute name: a=\"sd\"b=\"saf\"\n return getErrorObject('InvalidAttr', \"Attribute '\"+matches[i][2]+\"' has no space in starting.\", getPositionFromMatch(matches[i]))\n } else if (matches[i][3] !== undefined && matches[i][4] === undefined) {\n return getErrorObject('InvalidAttr', \"Attribute '\"+matches[i][2]+\"' is without value.\", getPositionFromMatch(matches[i]));\n } else if (matches[i][3] === undefined && !options.allowBooleanAttributes) {\n //independent attribute: ab\n return getErrorObject('InvalidAttr', \"boolean attribute '\"+matches[i][2]+\"' is not allowed.\", getPositionFromMatch(matches[i]));\n }\n /* else if(matches[i][6] === undefined){//attribute without value: ab=\n return { err: { code:\"InvalidAttr\",msg:\"attribute \" + matches[i][2] + \" has no value assigned.\"}};\n } */\n const attrName = matches[i][2];\n if (!validateAttrName(attrName)) {\n return getErrorObject('InvalidAttr', \"Attribute '\"+attrName+\"' is an invalid name.\", getPositionFromMatch(matches[i]));\n }\n if (!attrNames.hasOwnProperty(attrName)) {\n //check for duplicate attribute.\n attrNames[attrName] = 1;\n } else {\n return getErrorObject('InvalidAttr', \"Attribute '\"+attrName+\"' is repeated.\", getPositionFromMatch(matches[i]));\n }\n }\n\n return true;\n}\n\nfunction validateNumberAmpersand(xmlData, i) {\n let re = /\\d/;\n if (xmlData[i] === 'x') {\n i++;\n re = /[\\da-fA-F]/;\n }\n for (; i < xmlData.length; i++) {\n if (xmlData[i] === ';')\n return i;\n if (!xmlData[i].match(re))\n break;\n }\n return -1;\n}\n\nfunction validateAmpersand(xmlData, i) {\n // https://www.w3.org/TR/xml/#dt-charref\n i++;\n if (xmlData[i] === ';')\n return -1;\n if (xmlData[i] === '#') {\n i++;\n return validateNumberAmpersand(xmlData, i);\n }\n let count = 0;\n for (; i < xmlData.length; i++, count++) {\n if (xmlData[i].match(/\\w/) && count < 20)\n continue;\n if (xmlData[i] === ';')\n break;\n return -1;\n }\n return i;\n}\n\nfunction getErrorObject(code, message, lineNumber) {\n return {\n err: {\n code: code,\n msg: message,\n line: lineNumber.line || lineNumber,\n col: lineNumber.col,\n },\n };\n}\n\nfunction validateAttrName(attrName) {\n return isName(attrName);\n}\n\n// const startsWithXML = /^xml/i;\n\nfunction validateTagName(tagname) {\n return isName(tagname) /* && !tagname.match(startsWithXML) */;\n}\n\n//this function returns the line number for the character at the given index\nfunction getLineNumberForPosition(xmlData, index) {\n const lines = xmlData.substring(0, index).split(/\\r?\\n/);\n return {\n line: lines.length,\n\n // column number is last line's length + 1, because column numbering starts at 1:\n col: lines[lines.length - 1].length + 1\n };\n}\n\n//this function returns the position of the first character of match within attrStr\nfunction getPositionFromMatch(match) {\n return match.startIndex + match[1].length;\n}\n","import { buildOptions} from './OptionsBuilder.js';\nimport OrderedObjParser from './OrderedObjParser.js';\nimport prettify from './node2json.js';\nimport {validate} from \"../validator.js\";\nimport XmlNode from './xmlNode.js';\n\nexport default class XMLParser{\n \n constructor(options){\n this.externalEntities = {};\n this.options = buildOptions(options);\n \n }\n /**\n * Parse XML dats to JS object \n * @param {string|Uint8Array} xmlData \n * @param {boolean|Object} validationOption \n */\n parse(xmlData,validationOption){\n if(typeof xmlData !== \"string\" && xmlData.toString){\n xmlData = xmlData.toString();\n }else if(typeof xmlData !== \"string\"){\n throw new Error(\"XML data is accepted in String or Bytes[] form.\")\n }\n \n if( validationOption){\n if(validationOption === true) validationOption = {}; //validate with default options\n \n const result = validate(xmlData, validationOption);\n if (result !== true) {\n throw Error( `${result.err.msg}:${result.err.line}:${result.err.col}` )\n }\n }\n const orderedObjParser = new OrderedObjParser(this.options);\n orderedObjParser.addExternalEntities(this.externalEntities);\n const orderedResult = orderedObjParser.parseXml(xmlData);\n if(this.options.preserveOrder || orderedResult === undefined) return orderedResult;\n else return prettify(orderedResult, this.options);\n }\n\n /**\n * Add Entity which is not by default supported by this library\n * @param {string} key \n * @param {string} value \n */\n addEntity(key, value){\n if(value.indexOf(\"&\") !== -1){\n throw new Error(\"Entity value can't have '&'\")\n }else if(key.indexOf(\"&\") !== -1 || key.indexOf(\";\") !== -1){\n throw new Error(\"An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'\")\n }else if(value === \"&\"){\n throw new Error(\"An entity with value '&' is not permitted\");\n }else{\n this.externalEntities[key] = value;\n }\n }\n\n /**\n * Returns a Symbol that can be used to access the metadata\n * property on a node.\n * \n * If Symbol is not available in the environment, an ordinary property is used\n * and the name of the property is here returned.\n * \n * The XMLMetaData property is only present when `captureMetaData`\n * is true in the options.\n */\n static getMetaDataSymbol() {\n return XmlNode.getMetaDataSymbol();\n }\n}\n"],"names":["root","factory","exports","module","define","amd","this","__webpack_require__","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","defaultOptions","preserveOrder","attributeNamePrefix","attributesGroupName","textNodeName","ignoreAttributes","removeNSPrefix","allowBooleanAttributes","parseTagValue","parseAttributeValue","trimValues","cdataPropName","numberParseOptions","hex","leadingZeros","eNotation","tagValueProcessor","tagName","val","attributeValueProcessor","attrName","stopNodes","alwaysCreateTextNode","isArray","commentPropName","unpairedTags","processEntities","htmlEntities","ignoreDeclaration","ignorePiTags","transformTagName","transformAttributeName","updateTag","jPath","attrs","captureMetaData","nameStartChar","regexName","RegExp","getAllMatches","string","regex","matches","match","exec","allmatches","startIndex","lastIndex","length","len","index","push","METADATA_SYMBOL","isName","XmlNode","tagname","child","_proto","add","_this$child$push","addChild","node","_this$child$push2","_this$child$push3","keys","undefined","getMetaDataSymbol","DocTypeReader","suppressValidationErr","readDocType","xmlData","i","entities","Error","angleBracketsCount","hasBody","comment","hasSeq","entityName","_this$readEntityExp","readEntityExp","indexOf","regx","readElementExp","readNotationExp","skipWhitespace","test","validateEntityName","substring","toUpperCase","_this$readIdentifierV","readIdentifierVal","notationName","identifierType","publicIdentifier","systemIdentifier","_this$readIdentifierV2","_this$readIdentifierV3","_this$readIdentifierV4","type","identifierVal","startChar","elementName","contentModel","trim","readAttlistExp","attributeName","attributeType","allowedNotations","notation","join","includes","defaultValue","_this$readIdentifierV5","data","seq","j","name","hexRegex","numRegex","consider","decimalPoint","eNotationRegx","OrderedObjParser","options","currentNode","tagsNodeStack","docTypeEntities","lastEntities","ampEntity","_","str","fromCodePoint","addExternalEntities","parseXml","parseTextData","resolveNameSpace","buildAttributesMap","isItStopNode","replaceEntitiesValue","readStopNodeData","saveTextToParentTag","ignoreAttributesFn","Array","_step","_iterator","_createForOfIteratorHelperLoose","done","pattern","stopNodesExact","Set","stopNodesWildcard","stopNodeExp","startsWith","externalEntities","entKeys","ent","dontTrim","hasAttributes","isLeafNode","escapeEntities","newval","parseValue","tags","split","prefix","charAt","attrsRegx","attrStr","oldVal","aName","newVal","attrCollection","replace","xmlObj","xmlNode","textData","docTypeReader","closeIndex","findClosingIndex","colonIndex","substr","lastTagName","lastIndexOf","propIndex","pop","tagData","readTagExp","childNode","tagExp","attrExpPresent","endIndex","_ref","result","_ref2","rawTagName","newTagName","lastTag","tagContent","entity","currentTagName","has","errMsg","closingIndex","closingChar","attrBoundary","ch","tagExpWithClosingIndex","separatorIndex","search","trimStart","openTagCount","shouldParse","assign","trimmedStr","skipLike","numStr","parseInt","Number","window","parse_int","sign","eChar","eAdjacentToLeadingZeros","resolveEnotation","numTrimmedByZeros","decimalAdjacentToLeadingZeros","num","parsedStr","String","n","toNumber","base","codePoint","prettify","compress","arr","text","compressedObj","newJpath","tagObj","property","propName","isLeaf","isLeafTag","assignAttributes","attrMap","jpath","atrrName","propCount","isWhiteSpace","char","readPI","start","getErrorObject","getLineNumberForPosition","readCommentAndCDATA","readAttributeStr","tagClosed","validAttrStrRegxp","validateAttributeString","attrNames","getPositionFromMatch","validateAttrName","validateAmpersand","re","validateNumberAmpersand","count","code","message","lineNumber","err","msg","line","col","lines","XMLParser","buildOptions","parse","validationOption","toString","tagFound","reachedRoot","tagStartPos","closingTag","attrStrStart","isValid","otg","openPos","afterAmp","JSON","stringify","map","t","validate","orderedObjParser","orderedResult","addEntity"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-xml-parser",
3
- "version": "5.3.3",
3
+ "version": "5.3.4",
4
4
  "description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
5
5
  "main": "./lib/fxp.cjs",
6
6
  "type": "module",
@@ -41,8 +41,8 @@ export default class OrderedObjParser{
41
41
  "copyright" : { regex: /&(copy|#169);/g, val: "©" },
42
42
  "reg" : { regex: /&(reg|#174);/g, val: "®" },
43
43
  "inr" : { regex: /&(inr|#8377);/g, val: "₹" },
44
- "num_dec": { regex: /&#([0-9]{1,7});/g, val : (_, str) => String.fromCodePoint(Number.parseInt(str, 10)) },
45
- "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => String.fromCodePoint(Number.parseInt(str, 16)) },
44
+ "num_dec": { regex: /&#([0-9]{1,7});/g, val : (_, str) => fromCodePoint(str, 10, "&#") },
45
+ "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => fromCodePoint(str, 16, "&#x") },
46
46
  };
47
47
  this.addExternalEntities = addExternalEntities;
48
48
  this.parseXml = parseXml;
@@ -627,3 +627,13 @@ function parseValue(val, shouldParse, options) {
627
627
  }
628
628
  }
629
629
  }
630
+
631
+ function fromCodePoint(str, base, prefix){
632
+ const codePoint = Number.parseInt(str, base);
633
+
634
+ if (codePoint >= 0 && codePoint <= 0x10FFFF) {
635
+ return String.fromCodePoint(codePoint);
636
+ } else {
637
+ return prefix +str + ";";
638
+ }
639
+ }