@qqbrowser/openclaw-qbot 0.10.11 → 0.10.15

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 (878) hide show
  1. package/dist/build-info.json +3 -3
  2. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  3. package/dist/canvas-host/a2ui/a2ui.bundle.js +67 -57
  4. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
  5. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/bdd.js +2 -2
  6. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/endpointResolver.js +5 -5
  7. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +46 -50
  8. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/BedrockRuntimeServiceException.js +3 -3
  9. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.browser.js +16 -18
  10. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.js +21 -26
  11. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.native.js +2 -2
  12. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.shared.js +9 -10
  13. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/schemas/schemas_0.js +7 -4
  14. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntime.js +1 -1
  15. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntimeClient.js +7 -10
  16. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  17. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ApplyGuardrailCommand.js +2 -2
  18. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseCommand.js +2 -2
  19. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseStreamCommand.js +2 -2
  20. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/CountTokensCommand.js +2 -2
  21. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/GetAsyncInvokeCommand.js +2 -2
  22. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelCommand.js +2 -2
  23. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -2
  24. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithResponseStreamCommand.js +2 -2
  25. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ListAsyncInvokesCommand.js +2 -2
  26. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/StartAsyncInvokeCommand.js +2 -2
  27. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/endpoint/bdd.js +1 -1
  28. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/endpoint/endpointResolver.js +2 -2
  29. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/BedrockRuntimeServiceException.js +1 -1
  30. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/enums.js +1 -0
  31. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.browser.js +6 -8
  32. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.js +6 -11
  33. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.native.js +1 -1
  34. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.shared.js +3 -4
  35. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeExtensions.js +3 -3
  36. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js +7 -4
  37. package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +13 -46
  38. package/node_modules/@aws-sdk/core/dist-cjs/index.js +67 -55
  39. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -2
  40. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +595 -0
  41. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +717 -2
  42. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +588 -0
  43. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +7 -7
  44. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +54 -39
  45. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +59 -0
  46. package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
  47. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +1 -1
  48. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.browser.js +36 -0
  49. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +26 -4
  50. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.native.js +37 -0
  51. package/node_modules/@aws-sdk/{middleware-host-header/dist-es/index.js → core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js} +1 -1
  52. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.js +3 -0
  53. package/node_modules/@aws-sdk/{middleware-recursion-detection/dist-es → core/dist-es/submodules/client/middleware-recursion-detection}/recursionDetectionMiddleware.js +1 -1
  54. package/node_modules/@aws-sdk/{middleware-user-agent/dist-es → core/dist-es/submodules/client/middleware-user-agent}/check-features.js +2 -2
  55. package/node_modules/@aws-sdk/{middleware-user-agent/dist-es → core/dist-es/submodules/client/middleware-user-agent}/user-agent-middleware.js +2 -2
  56. package/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/awsRegionConfig.js +2 -0
  57. package/node_modules/@aws-sdk/{region-config-resolver/dist-es/regionConfig → core/dist-es/submodules/client/region-config-resolver}/stsRegionDefaultResolver.js +1 -2
  58. package/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js +1 -1
  59. package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/aws.js +1 -1
  60. package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/lib/aws/isVirtualHostableS3Bucket.js +1 -1
  61. package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/lib/aws/partition.js +1 -1
  62. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js +1 -0
  63. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/isIpAddress.js +1 -0
  64. package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/resolveDefaultAwsRegionalEndpointsConfig.js +1 -1
  65. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveEndpoint.js +1 -0
  66. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/types/EndpointError.js +1 -0
  67. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.browser.js +1 -0
  68. package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/getTypeScriptUserAgentPair.js +1 -1
  69. package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/nodeAppIdConfigOptions.js +1 -1
  70. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +1 -1
  71. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +1 -1
  72. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js +1 -1
  73. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -1
  74. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +1 -1
  75. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +1 -1
  76. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js +2 -2
  77. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +7 -6
  78. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  79. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +1 -1
  80. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -2
  81. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js +1 -1
  82. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
  83. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +26 -11
  84. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +1 -1
  85. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -3
  86. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +1 -1
  87. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +2 -2
  88. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -3
  89. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +1 -1
  90. package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +2 -0
  91. package/node_modules/@aws-sdk/{util-format-url/dist-es/index.js → core/dist-es/submodules/util/util-format-url/format-url.js} +1 -1
  92. package/node_modules/@aws-sdk/core/package.json +39 -17
  93. package/node_modules/@aws-sdk/core/util.js +5 -0
  94. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +2 -2
  95. package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +1 -1
  96. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  97. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +2 -2
  98. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +2 -2
  99. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +15 -9
  100. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +10 -10
  101. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +7 -5
  102. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js +1 -1
  103. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.browser.js +1 -1
  104. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +13 -7
  105. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js +4 -4
  106. package/node_modules/@aws-sdk/credential-provider-http/package.json +18 -12
  107. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +9 -10
  108. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +1 -1
  109. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -2
  110. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +1 -1
  111. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
  112. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -14
  113. package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +14 -15
  114. package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +2 -3
  115. package/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js +1 -2
  116. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -8
  117. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +19 -9
  118. package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +1 -2
  119. package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +1 -1
  120. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +12 -1
  121. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -12
  122. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +7 -8
  123. package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +1 -1
  124. package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +1 -2
  125. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -6
  126. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +16 -17
  127. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +1 -2
  128. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +2 -3
  129. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js +1 -1
  130. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -8
  131. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +3 -4
  132. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +1 -34
  133. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -2
  134. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -7
  135. package/node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js +2 -2
  136. package/node_modules/@aws-sdk/eventstream-handler-node/dist-es/EventStreamPayloadHandler.js +1 -1
  137. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -5
  138. package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +3 -3
  139. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +1 -1
  140. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +1 -1
  141. package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
  142. package/node_modules/@aws-sdk/middleware-websocket/dist-cjs/index.js +13 -15
  143. package/node_modules/@aws-sdk/middleware-websocket/dist-es/WebSocketFetchHandler.js +5 -5
  144. package/node_modules/@aws-sdk/middleware-websocket/dist-es/WebsocketSignatureV4.js +1 -1
  145. package/node_modules/@aws-sdk/middleware-websocket/dist-es/middlewares/websocketEndpointMiddleware.js +1 -1
  146. package/node_modules/@aws-sdk/middleware-websocket/dist-es/ws-eventstream/EventSigningTransformStream.js +1 -1
  147. package/node_modules/@aws-sdk/middleware-websocket/dist-es/ws-eventstream/EventStreamPayloadHandler.js +1 -1
  148. package/node_modules/@aws-sdk/middleware-websocket/package.json +7 -12
  149. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +524 -63
  150. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +458 -60
  151. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +403 -60
  152. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +597 -60
  153. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +831 -58
  154. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentity.js +1 -1
  155. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +6 -9
  156. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +1 -1
  157. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -2
  158. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -2
  159. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +1 -1
  160. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
  161. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -1
  162. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +5 -7
  163. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +5 -10
  164. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +3 -4
  165. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeExtensions.js +3 -3
  166. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +1 -1
  167. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js +6 -9
  168. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +1 -1
  169. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -2
  170. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +1 -1
  171. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +2 -2
  172. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -1
  173. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +5 -7
  174. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +5 -10
  175. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +3 -4
  176. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js +3 -3
  177. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js +1 -1
  178. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js +6 -9
  179. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +1 -1
  180. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -2
  181. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +1 -1
  182. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +2 -2
  183. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -1
  184. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +5 -7
  185. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +5 -10
  186. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js +3 -4
  187. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js +3 -3
  188. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js +1 -1
  189. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +6 -9
  190. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -1
  191. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -2
  192. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +1 -1
  193. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
  194. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -1
  195. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +5 -7
  196. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +5 -10
  197. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +3 -4
  198. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js +3 -3
  199. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js +1 -1
  200. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +6 -9
  201. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +5 -10
  202. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -2
  203. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
  204. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -7
  205. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +1 -1
  206. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js +2 -2
  207. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -1
  208. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +5 -7
  209. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +5 -10
  210. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +3 -4
  211. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js +3 -3
  212. package/node_modules/@aws-sdk/nested-clients/package.json +8 -37
  213. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +38 -2
  214. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +2 -2
  215. package/node_modules/@aws-sdk/{middleware-sdk-s3/dist-es/s3-express/classes/SignatureV4S3Express.js → signature-v4-multi-region/dist-es/SignatureV4SignWithCredentials.js} +5 -10
  216. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/index.js +3 -2
  217. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -6
  218. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +18 -19
  219. package/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +1 -1
  220. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +1 -2
  221. package/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +1 -1
  222. package/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +1 -1
  223. package/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +1 -1
  224. package/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +1 -1
  225. package/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +1 -1
  226. package/node_modules/@aws-sdk/token-providers/package.json +6 -7
  227. package/node_modules/@aws-sdk/types/package.json +2 -2
  228. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +60 -0
  229. package/node_modules/@aws-sdk/xml-builder/package.json +6 -6
  230. package/node_modules/@babel/runtime/package.json +1 -1
  231. package/node_modules/@cacheable/memory/package.json +2 -6
  232. package/node_modules/@clack/core/dist/index.mjs +9 -9
  233. package/node_modules/@clack/core/package.json +2 -1
  234. package/node_modules/@clack/prompts/dist/index.mjs +122 -121
  235. package/node_modules/@clack/prompts/package.json +2 -2
  236. package/node_modules/@grammyjs/types/package.json +1 -1
  237. package/node_modules/@nodable/entities/package.json +1 -1
  238. package/node_modules/@nodable/entities/src/EntityDecoder.js +1 -1
  239. package/node_modules/@nodable/entities/src/entities.js +0 -18
  240. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +440 -73
  241. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +71 -12
  242. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +298 -35
  243. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +1 -12
  244. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +1 -12
  245. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +1 -12
  246. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +1 -12
  247. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +1 -12
  248. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +78 -13
  249. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +1 -12
  250. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +1 -12
  251. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +1 -12
  252. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +1 -12
  253. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +2 -13
  254. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +440 -73
  255. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +71 -12
  256. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +298 -35
  257. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +1 -12
  258. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +1 -12
  259. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +1 -12
  260. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +1 -12
  261. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +1 -12
  262. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +78 -13
  263. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +1 -12
  264. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +1 -12
  265. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +1 -12
  266. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +1 -12
  267. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +2 -13
  268. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +469 -97
  269. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +72 -13
  270. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +307 -43
  271. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +1 -12
  272. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +1 -12
  273. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +1 -12
  274. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +1 -12
  275. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +1 -12
  276. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +81 -16
  277. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +1 -12
  278. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +1 -12
  279. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +1 -12
  280. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +1 -12
  281. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +2 -13
  282. package/node_modules/@opentelemetry/semantic-conventions/package.json +2 -2
  283. package/node_modules/@protobufjs/eventemitter/index.js +17 -7
  284. package/node_modules/@protobufjs/eventemitter/package.json +2 -2
  285. package/node_modules/@protobufjs/fetch/index.js +4 -7
  286. package/node_modules/@protobufjs/fetch/package.json +7 -5
  287. package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
  288. package/node_modules/@protobufjs/inquire/index.js +1 -0
  289. package/node_modules/@protobufjs/inquire/package.json +1 -1
  290. package/node_modules/@slack/bolt/dist/App.js +8 -12
  291. package/node_modules/@slack/bolt/dist/context/index.js +7 -7
  292. package/node_modules/@slack/bolt/dist/index.js +16 -16
  293. package/node_modules/@slack/bolt/dist/receivers/AwsLambdaReceiver.js +2 -0
  294. package/node_modules/@slack/bolt/dist/receivers/ExpressReceiver.js +8 -1
  295. package/node_modules/@slack/bolt/dist/receivers/HTTPReceiver.js +4 -2
  296. package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.js +1 -1
  297. package/node_modules/@slack/bolt/dist/receivers/verify-request.js +3 -0
  298. package/node_modules/@slack/bolt/dist/receivers/verify-signing-secret.js +12 -0
  299. package/node_modules/@slack/bolt/dist/types/actions/index.js +1 -1
  300. package/node_modules/@slack/bolt/dist/types/index.js +3 -3
  301. package/node_modules/@slack/bolt/package.json +4 -4
  302. package/node_modules/@slack/web-api/dist/file-upload.js +4 -2
  303. package/node_modules/@slack/web-api/package.json +2 -2
  304. package/node_modules/@smithy/core/cbor.js +0 -1
  305. package/node_modules/@smithy/core/checksum.js +1 -1
  306. package/node_modules/@smithy/core/client.js +0 -1
  307. package/node_modules/@smithy/core/config.js +1 -1
  308. package/node_modules/@smithy/core/dist-cjs/index.js +3 -4
  309. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -1
  310. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +3 -11
  311. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
  312. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +2 -2
  313. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +2 -2
  314. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +9 -40
  315. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +9 -40
  316. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +12 -142
  317. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +39 -22
  318. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +39 -22
  319. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +7 -9
  320. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +128 -176
  321. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +183 -87
  322. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +128 -176
  323. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +184 -0
  324. package/node_modules/@smithy/core/dist-es/index.js +6 -6
  325. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
  326. package/node_modules/@smithy/core/dist-es/submodules/client/index.js +2 -2
  327. package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js +1 -1
  328. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.browser.js +2 -2
  329. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +2 -2
  330. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.js +1 -1
  331. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +1 -1
  332. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/index.js +1 -1
  333. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -1
  334. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -2
  335. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
  336. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +5 -5
  337. package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
  338. package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
  339. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +19 -6
  340. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +4 -5
  341. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -1
  342. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js +4 -5
  343. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js +3 -0
  344. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +9 -5
  345. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +3 -4
  346. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +1 -2
  347. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +12 -7
  348. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +9 -5
  349. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +10 -3
  350. package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +1 -1
  351. package/node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase64.browser.js +1 -1
  352. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/blob/Uint8ArrayBlobAdapter.js +19 -21
  353. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/createChecksumStream.browser.js +1 -1
  354. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.browser.js +2 -2
  355. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js +1 -1
  356. package/node_modules/{@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js → @smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.browser.js} +1 -1
  357. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +9 -0
  358. package/node_modules/@smithy/core/dist-es/submodules/{protocols/url-parser → transport}/parseUrl.js +1 -1
  359. package/node_modules/@smithy/core/dist-es/submodules/{endpoints → transport}/toEndpointV1.js +1 -1
  360. package/node_modules/@smithy/core/endpoints.js +0 -1
  361. package/node_modules/@smithy/core/event-streams.js +0 -1
  362. package/node_modules/@smithy/core/package.json +20 -11
  363. package/node_modules/@smithy/core/protocols.js +0 -1
  364. package/node_modules/@smithy/core/retry.js +1 -1
  365. package/node_modules/@smithy/core/schema.js +0 -1
  366. package/node_modules/@smithy/core/serde.js +0 -1
  367. package/node_modules/@smithy/core/transport.js +5 -0
  368. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +14 -13
  369. package/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +14 -13
  370. package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
  371. package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
  372. package/node_modules/@smithy/node-http-handler/package.json +4 -4
  373. package/node_modules/@smithy/signature-v4/package.json +3 -3
  374. package/node_modules/@smithy/types/package.json +1 -1
  375. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +65 -7
  376. package/node_modules/@smithy/util-utf8/dist-es/index.js +3 -1
  377. package/node_modules/@smithy/util-utf8/package.json +33 -9
  378. package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/dist/index.js +10 -5
  379. package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/package.json +1 -1
  380. package/node_modules/axios/dist/axios.js +81 -53
  381. package/node_modules/axios/dist/axios.min.js +2 -2
  382. package/node_modules/axios/dist/browser/axios.cjs +96 -64
  383. package/node_modules/axios/dist/esm/axios.js +96 -64
  384. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  385. package/node_modules/axios/dist/node/axios.cjs +206 -85
  386. package/node_modules/axios/index.d.cts +1 -1
  387. package/node_modules/axios/lib/adapters/fetch.js +6 -2
  388. package/node_modules/axios/lib/adapters/http.js +139 -29
  389. package/node_modules/axios/lib/adapters/xhr.js +2 -1
  390. package/node_modules/axios/lib/core/AxiosHeaders.js +1 -33
  391. package/node_modules/axios/lib/env/data.js +1 -1
  392. package/node_modules/axios/lib/helpers/composeSignals.js +48 -47
  393. package/node_modules/axios/lib/helpers/formDataToJSON.js +1 -1
  394. package/node_modules/axios/lib/helpers/fromDataURI.js +18 -5
  395. package/node_modules/axios/lib/helpers/progressEventReducer.js +3 -0
  396. package/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
  397. package/node_modules/axios/lib/utils.js +8 -7
  398. package/node_modules/axios/node_modules/agent-base/dist/src/index.js +203 -0
  399. package/node_modules/axios/node_modules/agent-base/dist/src/promisify.js +18 -0
  400. package/node_modules/axios/node_modules/agent-base/package.json +64 -0
  401. package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js +177 -0
  402. package/node_modules/axios/node_modules/https-proxy-agent/dist/index.js +14 -0
  403. package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  404. package/node_modules/axios/node_modules/https-proxy-agent/package.json +56 -0
  405. package/node_modules/axios/package.json +3 -1
  406. package/node_modules/discord-api-types/package.json +8 -8
  407. package/node_modules/discord-api-types/payloads/v10/oauth2.js +7 -0
  408. package/node_modules/discord-api-types/payloads/v9/oauth2.js +7 -0
  409. package/node_modules/discord-api-types/rest/v10/index.js +3 -2
  410. package/node_modules/discord-api-types/rest/v9/index.js +3 -2
  411. package/node_modules/es-object-atoms/package.json +6 -7
  412. package/node_modules/es-object-atoms/tsconfig.json +1 -0
  413. package/node_modules/eventsource-parser/dist/index.cjs +21 -10
  414. package/node_modules/eventsource-parser/dist/index.d.cts +33 -10
  415. package/node_modules/eventsource-parser/dist/index.js +21 -10
  416. package/node_modules/eventsource-parser/dist/stream.cjs +4 -3
  417. package/node_modules/eventsource-parser/dist/stream.d.cts +16 -3
  418. package/node_modules/eventsource-parser/dist/stream.js +4 -3
  419. package/node_modules/eventsource-parser/package.json +8 -8
  420. package/node_modules/express-rate-limit/dist/index.cjs +1 -1
  421. package/node_modules/express-rate-limit/dist/index.mjs +1 -1
  422. package/node_modules/express-rate-limit/package.json +9 -9
  423. package/node_modules/fast-wrap-ansi/lib/main.js +0 -1
  424. package/node_modules/fast-wrap-ansi/package.json +10 -10
  425. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
  426. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  427. package/node_modules/fast-xml-parser/lib/fxp.d.cts +1 -0
  428. package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  429. package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  430. package/node_modules/fast-xml-parser/package.json +2 -4
  431. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +1 -1
  432. package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +4 -0
  433. package/node_modules/grammy/out/bot.js +1 -0
  434. package/node_modules/grammy/out/context.js +236 -74
  435. package/node_modules/grammy/out/convenience/constants.js +1 -0
  436. package/node_modules/grammy/out/convenience/frameworks.js +21 -17
  437. package/node_modules/grammy/out/core/api.js +280 -141
  438. package/node_modules/grammy/out/filter.js +5 -1
  439. package/node_modules/grammy/out/web.mjs +191 -61
  440. package/node_modules/grammy/package.json +2 -2
  441. package/node_modules/hasown/package.json +4 -5
  442. package/node_modules/linkify-it/build/index.cjs.js +99 -94
  443. package/node_modules/linkify-it/index.mjs +99 -94
  444. package/node_modules/linkify-it/package.json +11 -1
  445. package/node_modules/lru-cache/dist/commonjs/browser/index.js +81 -41
  446. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +1 -1
  447. package/node_modules/lru-cache/dist/commonjs/browser/perf.js +1 -2
  448. package/node_modules/lru-cache/dist/commonjs/index.js +81 -41
  449. package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
  450. package/node_modules/lru-cache/dist/commonjs/node/index.js +81 -41
  451. package/node_modules/lru-cache/dist/commonjs/node/index.min.js +1 -1
  452. package/node_modules/lru-cache/dist/commonjs/node/perf.js +1 -2
  453. package/node_modules/lru-cache/dist/commonjs/perf.js +1 -2
  454. package/node_modules/lru-cache/dist/esm/browser/index.js +81 -41
  455. package/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
  456. package/node_modules/lru-cache/dist/esm/browser/perf.js +1 -2
  457. package/node_modules/lru-cache/dist/esm/index.js +81 -41
  458. package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
  459. package/node_modules/lru-cache/dist/esm/node/index.js +81 -41
  460. package/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
  461. package/node_modules/lru-cache/dist/esm/node/perf.js +1 -2
  462. package/node_modules/lru-cache/dist/esm/perf.js +1 -2
  463. package/node_modules/lru-cache/package.json +8 -8
  464. package/node_modules/markdown-it/dist/index.cjs.js +111 -31
  465. package/node_modules/markdown-it/dist/markdown-it.js +117 -31
  466. package/node_modules/markdown-it/dist/markdown-it.min.js +2 -2
  467. package/node_modules/markdown-it/lib/common/utils.mjs +30 -1
  468. package/node_modules/markdown-it/lib/index.mjs +1 -1
  469. package/node_modules/markdown-it/lib/rules_block/heading.mjs +2 -2
  470. package/node_modules/markdown-it/lib/rules_block/html_block.mjs +12 -1
  471. package/node_modules/markdown-it/lib/rules_block/lheading.mjs +4 -1
  472. package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +3 -1
  473. package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +37 -21
  474. package/node_modules/markdown-it/lib/rules_inline/entity.mjs +2 -2
  475. package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +37 -6
  476. package/node_modules/markdown-it/package.json +14 -3
  477. package/node_modules/protobufjs/dist/light/protobuf.js +354 -234
  478. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  479. package/node_modules/protobufjs/dist/minimal/protobuf.js +75 -29
  480. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  481. package/node_modules/protobufjs/dist/protobuf.js +425 -286
  482. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  483. package/node_modules/protobufjs/ext/descriptor/index.js +7 -2
  484. package/node_modules/protobufjs/package.json +8 -5
  485. package/node_modules/protobufjs/src/converter.js +17 -10
  486. package/node_modules/protobufjs/src/encoder.js +8 -5
  487. package/node_modules/protobufjs/src/enum.js +2 -2
  488. package/node_modules/protobufjs/src/field.js +1 -1
  489. package/node_modules/protobufjs/src/namespace.js +10 -4
  490. package/node_modules/protobufjs/src/object.js +6 -6
  491. package/node_modules/protobufjs/src/parse.js +49 -30
  492. package/node_modules/protobufjs/src/root.js +18 -10
  493. package/node_modules/protobufjs/src/roots.js +1 -1
  494. package/node_modules/protobufjs/src/service.js +4 -2
  495. package/node_modules/protobufjs/src/type.js +12 -7
  496. package/node_modules/protobufjs/src/util/fs.js +11 -0
  497. package/node_modules/protobufjs/src/util/minimal.js +42 -9
  498. package/node_modules/protobufjs/src/util/patterns.js +0 -1
  499. package/node_modules/protobufjs/src/util.js +19 -4
  500. package/node_modules/protobufjs/src/wrappers.js +11 -7
  501. package/node_modules/protobufjs/src/writer.js +11 -9
  502. package/node_modules/qs/dist/qs.js +15 -15
  503. package/node_modules/qs/eslint.config.mjs +1 -0
  504. package/node_modules/qs/lib/parse.js +52 -22
  505. package/node_modules/qs/lib/stringify.js +11 -4
  506. package/node_modules/qs/package.json +2 -2
  507. package/node_modules/semver/classes/range.js +7 -0
  508. package/node_modules/semver/package.json +1 -1
  509. package/node_modules/semver/ranges/subset.js +2 -2
  510. package/node_modules/shell-quote/package.json +5 -6
  511. package/node_modules/shell-quote/quote.js +43 -1
  512. package/node_modules/thread-stream/.claude/settings.local.json +15 -0
  513. package/node_modules/thread-stream/CLAUDE.md +64 -0
  514. package/node_modules/thread-stream/index.js +41 -13
  515. package/node_modules/thread-stream/lib/indexes.js +3 -1
  516. package/node_modules/thread-stream/lib/worker.js +20 -8
  517. package/node_modules/thread-stream/package.json +1 -1
  518. package/node_modules/type-is/index.js +8 -18
  519. package/node_modules/type-is/node_modules/content-type/dist/index.js +170 -0
  520. package/node_modules/type-is/node_modules/content-type/package.json +52 -0
  521. package/node_modules/type-is/package.json +9 -5
  522. package/node_modules/undici/lib/api/api-request.js +1 -1
  523. package/node_modules/undici/lib/cache/sqlite-cache-store.js +3 -3
  524. package/node_modules/undici/lib/core/connect.js +16 -0
  525. package/node_modules/undici/lib/core/request.js +17 -2
  526. package/node_modules/undici/lib/core/socks5-client.js +10 -5
  527. package/node_modules/undici/lib/core/socks5-utils.js +17 -22
  528. package/node_modules/undici/lib/dispatcher/client-h1.js +64 -20
  529. package/node_modules/undici/lib/dispatcher/client.js +6 -2
  530. package/node_modules/undici/lib/dispatcher/h2c-client.js +1 -1
  531. package/node_modules/undici/lib/global.js +10 -1
  532. package/node_modules/undici/lib/mock/mock-call-history.js +15 -15
  533. package/node_modules/undici/lib/util/cache.js +8 -7
  534. package/node_modules/undici/lib/web/fetch/formdata-parser.js +17 -6
  535. package/node_modules/undici/lib/web/fetch/index.js +5 -2
  536. package/node_modules/undici/lib/web/webidl/index.js +5 -5
  537. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +1 -7
  538. package/node_modules/undici/package.json +1 -1
  539. package/node_modules/ws/lib/receiver.js +54 -0
  540. package/node_modules/ws/lib/sender.js +6 -1
  541. package/node_modules/ws/lib/websocket-server.js +8 -0
  542. package/node_modules/ws/lib/websocket.js +14 -0
  543. package/node_modules/ws/package.json +1 -1
  544. package/package.json +1 -1
  545. package/skills/qqbrowser-playbook/SKILL.md +330 -0
  546. package/skills/qqbrowser-skill/SKILL.md +355 -160
  547. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
  548. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
  549. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/package.json +0 -66
  550. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  551. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  552. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
  553. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  554. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  555. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  556. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
  557. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
  558. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
  559. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
  560. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
  561. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/package.json +0 -66
  562. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttpTypes.js +0 -2
  563. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +0 -157
  564. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js +0 -2
  565. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +0 -16
  566. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +0 -81
  567. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +0 -8
  568. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +0 -11
  569. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +0 -10
  570. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -4
  571. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +0 -5
  572. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +0 -7
  573. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +0 -7
  574. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +0 -8
  575. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +0 -70
  576. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +0 -41
  577. package/node_modules/@aws-sdk/middleware-host-header/package.json +0 -59
  578. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +0 -48
  579. package/node_modules/@aws-sdk/middleware-logger/dist-es/index.js +0 -1
  580. package/node_modules/@aws-sdk/middleware-logger/package.json +0 -59
  581. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +0 -29
  582. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +0 -33
  583. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.native.js +0 -5
  584. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +0 -2
  585. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +0 -63
  586. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +0 -581
  587. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.browser.js +0 -11
  588. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.js +0 -7
  589. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/bucket-endpoint-middleware.js +0 -36
  590. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/check-content-length-header.js +0 -32
  591. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +0 -9
  592. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/protocol/S3RestXmlProtocol.js +0 -25
  593. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-endpoint-middleware.js +0 -41
  594. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-middleware.js +0 -42
  595. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-expires-middleware.js +0 -33
  596. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCache.js +0 -39
  597. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCacheEntry.js +0 -14
  598. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityProviderImpl.js +0 -49
  599. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/constants.js +0 -13
  600. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressHttpSigningMiddleware.js +0 -38
  601. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressMiddleware.js +0 -41
  602. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/signS3Express.js +0 -7
  603. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/index.js +0 -7
  604. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentity.js +0 -1
  605. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentityProvider.js +0 -1
  606. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3Configuration.js +0 -17
  607. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/throw-200-exceptions.js +0 -51
  608. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.browser.js +0 -8
  609. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.js +0 -4
  610. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/validate-bucket-name.js +0 -25
  611. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +0 -79
  612. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +0 -194
  613. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js +0 -2
  614. package/node_modules/@aws-sdk/middleware-user-agent/package.json +0 -63
  615. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +0 -60
  616. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +0 -100
  617. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +0 -18
  618. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +0 -12
  619. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/errors.js +0 -121
  620. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.browser.js +0 -38
  621. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.js +0 -54
  622. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.native.js +0 -15
  623. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +0 -50
  624. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +0 -110
  625. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +0 -56
  626. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/bdd.js +0 -90
  627. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +0 -18
  628. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +0 -12
  629. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +0 -64
  630. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.browser.js +0 -39
  631. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js +0 -54
  632. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.native.js +0 -15
  633. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +0 -49
  634. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +0 -125
  635. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +0 -56
  636. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/bdd.js +0 -80
  637. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +0 -18
  638. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js +0 -12
  639. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js +0 -56
  640. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.browser.js +0 -38
  641. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js +0 -54
  642. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.native.js +0 -15
  643. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.shared.js +0 -49
  644. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js +0 -90
  645. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +0 -56
  646. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +0 -80
  647. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +0 -18
  648. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +0 -12
  649. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +0 -195
  650. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.browser.js +0 -38
  651. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +0 -54
  652. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.native.js +0 -15
  653. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +0 -49
  654. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +0 -140
  655. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +0 -55
  656. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js +0 -43
  657. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +0 -144
  658. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +0 -19
  659. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/bdd.js +0 -150
  660. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +0 -18
  661. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +0 -12
  662. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +0 -96
  663. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.browser.js +0 -39
  664. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +0 -74
  665. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.native.js +0 -15
  666. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +0 -57
  667. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js +0 -13
  668. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +0 -195
  669. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +0 -38
  670. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js +0 -20
  671. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.native.js +0 -6
  672. package/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +0 -3
  673. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/awsRegionConfig.js +0 -2
  674. package/node_modules/@aws-sdk/region-config-resolver/package.json +0 -62
  675. package/node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js +0 -27
  676. package/node_modules/@aws-sdk/util-arn-parser/package.json +0 -55
  677. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +0 -406
  678. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -267
  679. package/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +0 -6
  680. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +0 -3
  681. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -267
  682. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +0 -1
  683. package/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +0 -1
  684. package/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +0 -1
  685. package/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +0 -6
  686. package/node_modules/@aws-sdk/util-endpoints/package.json +0 -60
  687. package/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js +0 -34
  688. package/node_modules/@aws-sdk/util-format-url/package.json +0 -56
  689. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/configurations.js +0 -2
  690. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +0 -57
  691. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +0 -58
  692. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.native.js +0 -22
  693. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +0 -55
  694. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +0 -185
  695. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js +0 -2
  696. package/node_modules/@aws-sdk/util-user-agent-node/package.json +0 -69
  697. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +0 -22
  698. package/node_modules/@smithy/config-resolver/dist-es/index.js +0 -1
  699. package/node_modules/@smithy/config-resolver/package.json +0 -41
  700. package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +0 -6
  701. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -21
  702. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +0 -21
  703. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -46
  704. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +0 -6
  705. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +0 -24
  706. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +0 -19
  707. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +0 -27
  708. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +0 -5
  709. package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +0 -10
  710. package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +0 -44
  711. package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +0 -5
  712. package/node_modules/@smithy/core/dist-cjs/setFeature.js +0 -14
  713. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +0 -18
  714. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +0 -38
  715. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +0 -15
  716. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +0 -6
  717. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +0 -9
  718. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +0 -6
  719. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +0 -61
  720. package/node_modules/@smithy/core/dist-es/request-builder/requestBuilder.js +0 -1
  721. package/node_modules/@smithy/core/dist-es/submodules/client/util-middleware/getSmithyContext.js +0 -2
  722. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/TestVectors.fixture.js +0 -146
  723. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/vectorTypes.fixture.js +0 -1
  724. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +0 -2
  725. package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +0 -11
  726. package/node_modules/@smithy/eventstream-codec/dist-es/index.js +0 -1
  727. package/node_modules/@smithy/eventstream-codec/package.json +0 -44
  728. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/index.js +0 -9
  729. package/node_modules/@smithy/eventstream-serde-browser/dist-es/index.js +0 -3
  730. package/node_modules/@smithy/eventstream-serde-browser/package.json +0 -44
  731. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +0 -5
  732. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js +0 -1
  733. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +0 -44
  734. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js +0 -6
  735. package/node_modules/@smithy/eventstream-serde-node/dist-es/index.js +0 -1
  736. package/node_modules/@smithy/eventstream-serde-node/package.json +0 -44
  737. package/node_modules/@smithy/hash-node/dist-cjs/index.js +0 -5
  738. package/node_modules/@smithy/hash-node/dist-es/index.js +0 -1
  739. package/node_modules/@smithy/hash-node/package.json +0 -41
  740. package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +0 -6
  741. package/node_modules/@smithy/invalid-dependency/dist-es/index.js +0 -1
  742. package/node_modules/@smithy/invalid-dependency/package.json +0 -41
  743. package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +0 -7
  744. package/node_modules/@smithy/middleware-content-length/dist-es/index.js +0 -1
  745. package/node_modules/@smithy/middleware-content-length/package.json +0 -41
  746. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +0 -12
  747. package/node_modules/@smithy/middleware-endpoint/dist-es/index.js +0 -1
  748. package/node_modules/@smithy/middleware-endpoint/package.json +0 -41
  749. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +0 -22
  750. package/node_modules/@smithy/middleware-retry/dist-es/index.js +0 -1
  751. package/node_modules/@smithy/middleware-retry/package.json +0 -41
  752. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +0 -9
  753. package/node_modules/@smithy/middleware-serde/dist-es/index.js +0 -1
  754. package/node_modules/@smithy/middleware-serde/package.json +0 -41
  755. package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +0 -5
  756. package/node_modules/@smithy/middleware-stack/dist-es/index.js +0 -1
  757. package/node_modules/@smithy/middleware-stack/package.json +0 -43
  758. package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +0 -5
  759. package/node_modules/@smithy/node-config-provider/dist-es/index.js +0 -1
  760. package/node_modules/@smithy/node-config-provider/package.json +0 -43
  761. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +0 -21
  762. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +0 -88
  763. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -21
  764. package/node_modules/@smithy/property-provider/dist-cjs/index.js +0 -10
  765. package/node_modules/@smithy/property-provider/dist-es/index.js +0 -1
  766. package/node_modules/@smithy/property-provider/package.json +0 -41
  767. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +0 -11
  768. package/node_modules/@smithy/protocol-http/dist-es/index.js +0 -1
  769. package/node_modules/@smithy/protocol-http/package.json +0 -42
  770. package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +0 -5
  771. package/node_modules/@smithy/querystring-builder/dist-es/index.js +0 -1
  772. package/node_modules/@smithy/querystring-builder/package.json +0 -41
  773. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +0 -16
  774. package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +0 -1
  775. package/node_modules/@smithy/shared-ini-file-loader/package.json +0 -41
  776. package/node_modules/@smithy/signature-v4/dist-es/suite.fixture.js +0 -399
  777. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +0 -75
  778. package/node_modules/@smithy/smithy-client/dist-es/index.js +0 -3
  779. package/node_modules/@smithy/smithy-client/package.json +0 -42
  780. package/node_modules/@smithy/url-parser/dist-cjs/index.js +0 -5
  781. package/node_modules/@smithy/url-parser/dist-es/index.js +0 -1
  782. package/node_modules/@smithy/url-parser/package.json +0 -41
  783. package/node_modules/@smithy/util-base64/dist-cjs/index.js +0 -6
  784. package/node_modules/@smithy/util-base64/dist-es/index.js +0 -1
  785. package/node_modules/@smithy/util-base64/package.json +0 -42
  786. package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +0 -5
  787. package/node_modules/@smithy/util-body-length-browser/dist-es/index.js +0 -1
  788. package/node_modules/@smithy/util-body-length-browser/package.json +0 -42
  789. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +0 -5
  790. package/node_modules/@smithy/util-body-length-node/dist-es/index.js +0 -1
  791. package/node_modules/@smithy/util-body-length-node/package.json +0 -42
  792. package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +0 -7
  793. package/node_modules/@smithy/util-config-provider/dist-es/index.js +0 -1
  794. package/node_modules/@smithy/util-config-provider/package.json +0 -43
  795. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +0 -5
  796. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/index.js +0 -1
  797. package/node_modules/@smithy/util-defaults-mode-browser/package.json +0 -41
  798. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +0 -5
  799. package/node_modules/@smithy/util-defaults-mode-node/dist-es/index.js +0 -1
  800. package/node_modules/@smithy/util-defaults-mode-node/package.json +0 -41
  801. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +0 -12
  802. package/node_modules/@smithy/util-endpoints/dist-es/index.js +0 -1
  803. package/node_modules/@smithy/util-endpoints/package.json +0 -45
  804. package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +0 -6
  805. package/node_modules/@smithy/util-hex-encoding/dist-es/index.js +0 -1
  806. package/node_modules/@smithy/util-hex-encoding/package.json +0 -42
  807. package/node_modules/@smithy/util-middleware/dist-cjs/index.js +0 -6
  808. package/node_modules/@smithy/util-middleware/dist-es/index.js +0 -1
  809. package/node_modules/@smithy/util-middleware/package.json +0 -46
  810. package/node_modules/@smithy/util-retry/dist-cjs/index.js +0 -21
  811. package/node_modules/@smithy/util-retry/dist-es/index.js +0 -1
  812. package/node_modules/@smithy/util-retry/package.json +0 -46
  813. package/node_modules/@smithy/util-stream/dist-cjs/index.js +0 -14
  814. package/node_modules/@smithy/util-stream/dist-es/index.js +0 -1
  815. package/node_modules/@smithy/util-stream/package.json +0 -43
  816. package/node_modules/shell-quote/print.py +0 -3
  817. /package/node_modules/@aws-sdk/{middleware-logger/dist-es → core/dist-es/submodules/client/middleware-logger}/loggerMiddleware.js +0 -0
  818. /package/node_modules/@aws-sdk/{middleware-recursion-detection/dist-es → core/dist-es/submodules/client/middleware-recursion-detection}/configuration.js +0 -0
  819. /package/node_modules/@aws-sdk/{middleware-recursion-detection/dist-es → core/dist-es/submodules/client/middleware-recursion-detection}/getRecursionDetectionPlugin.js +0 -0
  820. /package/node_modules/@aws-sdk/{middleware-recursion-detection/dist-es → core/dist-es/submodules/client/middleware-recursion-detection}/recursionDetectionMiddleware.browser.js +0 -0
  821. /package/node_modules/@aws-sdk/{middleware-recursion-detection/dist-es → core/dist-es/submodules/client/middleware-recursion-detection}/recursionDetectionMiddleware.native.js +0 -0
  822. /package/node_modules/@aws-sdk/{middleware-user-agent/dist-es → core/dist-es/submodules/client/middleware-user-agent}/configurations.js +0 -0
  823. /package/node_modules/@aws-sdk/{middleware-user-agent/dist-es → core/dist-es/submodules/client/middleware-user-agent}/constants.js +0 -0
  824. /package/node_modules/@aws-sdk/{middleware-user-agent/dist-es → core/dist-es/submodules/client/middleware-user-agent}/encode-features.js +0 -0
  825. /package/node_modules/@aws-sdk/{region-config-resolver/dist-es/extensions/index.js → core/dist-es/submodules/client/region-config-resolver/extensions.js} +0 -0
  826. /package/node_modules/@aws-sdk/{region-config-resolver/dist-es/regionConfig → core/dist-es/submodules/client/region-config-resolver}/stsRegionDefaultResolver.browser.js +0 -0
  827. /package/node_modules/@aws-sdk/{region-config-resolver/dist-es/regionConfig → core/dist-es/submodules/client/region-config-resolver}/stsRegionDefaultResolver.native.js +0 -0
  828. /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/lib/aws/parseArn.js +0 -0
  829. /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/types/EndpointRuleObject.js +0 -0
  830. /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/types/ErrorRuleObject.js +0 -0
  831. /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/types/RuleSetObject.js +0 -0
  832. /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/types/TreeRuleObject.js +0 -0
  833. /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/types/shared.js +0 -0
  834. /package/node_modules/@aws-sdk/{util-user-agent-browser/dist-es → core/dist-es/submodules/client/util-user-agent-browser}/configurations.js +0 -0
  835. /package/node_modules/@aws-sdk/{util-user-agent-browser/dist-es → core/dist-es/submodules/client/util-user-agent-browser}/createUserAgentStringParsingProvider.js +0 -0
  836. /package/node_modules/@aws-sdk/{util-user-agent-browser/dist-es/index.js → core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js} +0 -0
  837. /package/node_modules/@aws-sdk/{util-user-agent-browser/dist-es/index.native.js → core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.native.js} +0 -0
  838. /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/crt-availability.js +0 -0
  839. /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/defaultUserAgent.js +0 -0
  840. /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/getNodeModulesParentDirs.js +0 -0
  841. /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/getRuntimeUserAgentPair.js +0 -0
  842. /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/getSanitizedDevTypeScriptVersion.js +0 -0
  843. /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/getSanitizedTypeScriptVersion.js +0 -0
  844. /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/is-crt-available.js +0 -0
  845. /package/node_modules/@aws-sdk/{util-arn-parser/dist-es/index.js → core/dist-es/submodules/util/util-arn-parser/arn.js} +0 -0
  846. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -0
  847. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemePlugin.js +0 -0
  848. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/httpAuthSchemeMiddleware.js +0 -0
  849. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/index.js +0 -0
  850. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/resolveAuthOptions.js +0 -0
  851. /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/getHttpSigningMiddleware.js +0 -0
  852. /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/httpSigningMiddleware.js +0 -0
  853. /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/index.js +0 -0
  854. /package/node_modules/@smithy/core/dist-es/{pagination → legacy-root-exports/pagination}/createPaginator.js +0 -0
  855. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/DefaultIdentityProviderConfig.js +0 -0
  856. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpApiKeyAuth.js +0 -0
  857. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpBearerAuth.js +0 -0
  858. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/index.js +0 -0
  859. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/noAuth.js +0 -0
  860. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/index.js +0 -0
  861. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/memoizeIdentityProvider.js +0 -0
  862. /package/node_modules/@smithy/core/dist-es/{getSmithyContext.js → submodules/transport/getSmithyContext.js} +0 -0
  863. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpRequest.js +0 -0
  864. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpResponse.js +0 -0
  865. /package/node_modules/@smithy/core/dist-es/submodules/{endpoints/util-endpoints/lib → transport}/isValidHostLabel.js +0 -0
  866. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/isValidHostname.js +0 -0
  867. /package/node_modules/@smithy/core/dist-es/submodules/{client/util-middleware → transport}/normalizeProvider.js +0 -0
  868. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/querystring-parser → transport}/parseQueryString.js +0 -0
  869. /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-cjs/fromUtf8.browser.js +0 -0
  870. /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-cjs/fromUtf8.js +0 -0
  871. /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-cjs/toUint8Array.js +0 -0
  872. /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-cjs/toUtf8.browser.js +0 -0
  873. /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-cjs/toUtf8.js +0 -0
  874. /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-es/fromUtf8.browser.js +0 -0
  875. /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-es/fromUtf8.js +0 -0
  876. /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-es/toUint8Array.js +0 -0
  877. /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-es/toUtf8.browser.js +0 -0
  878. /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-es/toUtf8.js +0 -0
@@ -33,6 +33,13 @@ var OAuth2Scopes;
33
33
  * @see {@link https://discord.com/developers/docs/resources/user#get-current-user}
34
34
  */
35
35
  OAuth2Scopes["Identify"] = "identify";
36
+ /**
37
+ * Allows your app to read a user's Nitro subscription type as defined by `premium_type` on the
38
+ * {@link https://docs.discord.com/developers/resources/user#user-object-user-structure | User object} - only available to approved partners
39
+ *
40
+ * @see {@link https://docs.discord.com/developers/resources/user#user-object-user-structure}
41
+ */
42
+ OAuth2Scopes["IdentifyPremium"] = "identify.premium";
36
43
  /**
37
44
  * Allows {@link https://discord.com/developers/docs/resources/user#get-current-user-guilds | `/users/@me/guilds`}
38
45
  * to return basic information about all of a user's guilds
@@ -33,6 +33,13 @@ var OAuth2Scopes;
33
33
  * @see {@link https://discord.com/developers/docs/resources/user#get-current-user}
34
34
  */
35
35
  OAuth2Scopes["Identify"] = "identify";
36
+ /**
37
+ * Allows your app to read a user's Nitro subscription type as defined by `premium_type` on the
38
+ * {@link https://docs.discord.com/developers/resources/user#user-object-user-structure | User object} - only available to approved partners
39
+ *
40
+ * @see {@link https://docs.discord.com/developers/resources/user#user-object-user-structure}
41
+ */
42
+ OAuth2Scopes["IdentifyPremium"] = "identify.premium";
36
43
  /**
37
44
  * Allows {@link https://discord.com/developers/docs/resources/user#get-current-user-guilds | `/users/@me/guilds`}
38
45
  * to return basic information about all of a user's guilds
@@ -525,8 +525,9 @@ exports.Routes = {
525
525
  },
526
526
  /**
527
527
  * Route for:
528
- * - GET `/users/@me/applications/{application.id}/role-connection`
529
- * - PUT `/users/@me/applications/{application.id}/role-connection`
528
+ * - GET `/users/@me/applications/{application.id}/role-connection`
529
+ * - PUT `/users/@me/applications/{application.id}/role-connection`
530
+ * - DELETE `/users/@me/applications/{application.id}/role-connection`
530
531
  */
531
532
  userApplicationRoleConnection(applicationId) {
532
533
  return `/users/@me/applications/${applicationId}/role-connection`;
@@ -532,8 +532,9 @@ exports.Routes = {
532
532
  },
533
533
  /**
534
534
  * Route for:
535
- * - GET `/users/@me/applications/{application.id}/role-connection`
536
- * - PUT `/users/@me/applications/{application.id}/role-connection`
535
+ * - GET `/users/@me/applications/{application.id}/role-connection`
536
+ * - PUT `/users/@me/applications/{application.id}/role-connection`
537
+ * - DELETE `/users/@me/applications/{application.id}/role-connection`
537
538
  */
538
539
  userApplicationRoleConnection(applicationId) {
539
540
  return `/users/@me/applications/${applicationId}/role-connection`;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-object-atoms",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "ES Object-related atoms: Object, ToObject, RequireObjectCoercible",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -46,16 +46,15 @@
46
46
  "es-errors": "^1.3.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@ljharb/eslint-config": "^21.1.1",
50
- "@ljharb/tsconfig": "^0.2.3",
49
+ "@ljharb/eslint-config": "^22.2.3",
50
+ "@ljharb/tsconfig": "^0.3.2",
51
51
  "@types/tape": "^5.8.1",
52
- "auto-changelog": "^2.5.0",
52
+ "auto-changelog": "^2.5.1",
53
53
  "eclint": "^2.8.1",
54
- "encoding": "^0.1.13",
55
- "eslint": "^8.8.0",
54
+ "eslint": "^8.57.1",
56
55
  "evalmd": "^0.0.19",
57
56
  "in-publish": "^2.0.1",
58
- "npmignore": "^0.3.1",
57
+ "npmignore": "^0.3.5",
59
58
  "nyc": "^10.3.2",
60
59
  "safe-publish-latest": "^2.0.0",
61
60
  "tape": "^5.9.0",
@@ -2,5 +2,6 @@
2
2
  "extends": "@ljharb/tsconfig",
3
3
  "compilerOptions": {
4
4
  "target": "es5",
5
+ "ignoreDeprecations": "6.0",
5
6
  },
6
7
  }
@@ -8,29 +8,40 @@ class ParseError extends Error {
8
8
  const LF = 10, CR = 13, SPACE = 32;
9
9
  function noop(_arg) {
10
10
  }
11
- function createParser(callbacks) {
12
- if (typeof callbacks == "function")
11
+ function createParser(config) {
12
+ if (typeof config == "function")
13
13
  throw new TypeError(
14
- "`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
14
+ "`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?"
15
15
  );
16
- const { onEvent = noop, onError = noop, onRetry = noop, onComment } = callbacks, pendingFragments = [];
17
- let isFirstChunk = !0, id, data = "", dataLines = 0, eventType;
16
+ const { onEvent = noop, onError = noop, onRetry = noop, onComment, maxBufferSize } = config, pendingFragments = [];
17
+ let pendingFragmentsLength = 0, isFirstChunk = !0, id, data = "", dataLines = 0, eventType, terminated = !1;
18
18
  function feed(chunk) {
19
+ if (terminated)
20
+ throw new Error(
21
+ "Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing."
22
+ );
19
23
  if (isFirstChunk && (isFirstChunk = !1, chunk.charCodeAt(0) === 239 && chunk.charCodeAt(1) === 187 && chunk.charCodeAt(2) === 191 && (chunk = chunk.slice(3))), pendingFragments.length === 0) {
20
24
  const trailing2 = processLines(chunk);
21
- trailing2 !== "" && pendingFragments.push(trailing2);
25
+ trailing2 !== "" && (pendingFragments.push(trailing2), pendingFragmentsLength = trailing2.length), checkBufferSize();
22
26
  return;
23
27
  }
24
28
  if (chunk.indexOf(`
25
29
  `) === -1 && chunk.indexOf("\r") === -1) {
26
- pendingFragments.push(chunk);
30
+ pendingFragments.push(chunk), pendingFragmentsLength += chunk.length, checkBufferSize();
27
31
  return;
28
32
  }
29
33
  pendingFragments.push(chunk);
30
34
  const input = pendingFragments.join("");
31
- pendingFragments.length = 0;
35
+ pendingFragments.length = 0, pendingFragmentsLength = 0;
32
36
  const trailing = processLines(input);
33
- trailing !== "" && pendingFragments.push(trailing);
37
+ trailing !== "" && (pendingFragments.push(trailing), pendingFragmentsLength = trailing.length), checkBufferSize();
38
+ }
39
+ function checkBufferSize() {
40
+ maxBufferSize !== void 0 && (pendingFragmentsLength + data.length <= maxBufferSize || (terminated = !0, pendingFragments.length = 0, pendingFragmentsLength = 0, id = void 0, data = "", dataLines = 0, eventType = void 0, onError(
41
+ new ParseError(`Buffered data exceeded max buffer size of ${maxBufferSize} characters`, {
42
+ type: "max-buffer-size-exceeded"
43
+ })
44
+ )));
34
45
  }
35
46
  function processLines(chunk) {
36
47
  let searchIndex = 0;
@@ -151,7 +162,7 @@ ${value}`, dataLines++;
151
162
  const incompleteLine = pendingFragments.join("");
152
163
  parseLine(incompleteLine, 0, incompleteLine.length);
153
164
  }
154
- isFirstChunk = !0, id = void 0, data = "", dataLines = 0, eventType = void 0, pendingFragments.length = 0;
165
+ isFirstChunk = !0, id = void 0, data = "", dataLines = 0, eventType = void 0, pendingFragments.length = 0, pendingFragmentsLength = 0, terminated = !1;
155
166
  }
156
167
  return { feed, reset };
157
168
  }
@@ -1,24 +1,22 @@
1
1
  /**
2
2
  * Creates a new EventSource parser.
3
3
  *
4
- * @param callbacks - Callbacks to invoke on different parsing events:
5
- * - `onEvent` when a new event is parsed
6
- * - `onError` when an error occurs
7
- * - `onRetry` when a new reconnection interval has been sent from the server
8
- * - `onComment` when a comment is encountered in the stream
4
+ * @param config - Parser configuration. Accepts callbacks (see {@link ParserCallbacks})
5
+ * and options like `maxBufferSize` (see {@link ParserConfig}).
9
6
  *
10
- * @returns A new EventSource parser, with `parse` and `reset` methods.
7
+ * @returns A new EventSource parser, with `feed` and `reset` methods.
11
8
  * @public
12
9
  */
13
- export declare function createParser(
14
- callbacks: ParserCallbacks,
15
- ): EventSourceParser;
10
+ export declare function createParser(config: ParserConfig): EventSourceParser;
16
11
 
17
12
  /**
18
13
  * The type of error that occurred.
19
14
  * @public
20
15
  */
21
- export declare type ErrorType = "invalid-retry" | "unknown-field";
16
+ export declare type ErrorType =
17
+ | "invalid-retry"
18
+ | "unknown-field"
19
+ | "max-buffer-size-exceeded";
22
20
 
23
21
  /**
24
22
  * A parsed EventSource message event
@@ -143,4 +141,29 @@ export declare interface ParserCallbacks {
143
141
  onError?: ((error: ParseError) => void) | undefined;
144
142
  }
145
143
 
144
+ /**
145
+ * Configuration accepted by {@link createParser}. Extends {@link ParserCallbacks} with
146
+ * additional options that control parser behavior.
147
+ *
148
+ * @public
149
+ */
150
+ export declare interface ParserConfig extends ParserCallbacks {
151
+ /**
152
+ * Maximum number of characters the parser is allowed to buffer across calls to `feed()`.
153
+ *
154
+ * Two unbounded surfaces exist in a streaming SSE parser:
155
+ * - A partial line that has not yet been terminated by `\n`, `\r`, or `\r\n`.
156
+ * - A multi-line event whose terminating blank line has not yet arrived (each `data:`
157
+ * field gets appended to the buffered event).
158
+ *
159
+ * When the combined size of these buffers exceeds `maxBufferSize`, the parser emits a
160
+ * `ParseError` with `type: 'max-buffer-size-exceeded'` to `onError` and becomes
161
+ * terminated — subsequent calls to `feed()` will throw until `reset()` is called.
162
+ * This protects against unbounded memory growth from malformed or malicious streams.
163
+ *
164
+ * @defaultValue `undefined` (unbounded)
165
+ */
166
+ maxBufferSize?: number | undefined;
167
+ }
168
+
146
169
  export {};
@@ -6,29 +6,40 @@ class ParseError extends Error {
6
6
  const LF = 10, CR = 13, SPACE = 32;
7
7
  function noop(_arg) {
8
8
  }
9
- function createParser(callbacks) {
10
- if (typeof callbacks == "function")
9
+ function createParser(config) {
10
+ if (typeof config == "function")
11
11
  throw new TypeError(
12
- "`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
12
+ "`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?"
13
13
  );
14
- const { onEvent = noop, onError = noop, onRetry = noop, onComment } = callbacks, pendingFragments = [];
15
- let isFirstChunk = !0, id, data = "", dataLines = 0, eventType;
14
+ const { onEvent = noop, onError = noop, onRetry = noop, onComment, maxBufferSize } = config, pendingFragments = [];
15
+ let pendingFragmentsLength = 0, isFirstChunk = !0, id, data = "", dataLines = 0, eventType, terminated = !1;
16
16
  function feed(chunk) {
17
+ if (terminated)
18
+ throw new Error(
19
+ "Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing."
20
+ );
17
21
  if (isFirstChunk && (isFirstChunk = !1, chunk.charCodeAt(0) === 239 && chunk.charCodeAt(1) === 187 && chunk.charCodeAt(2) === 191 && (chunk = chunk.slice(3))), pendingFragments.length === 0) {
18
22
  const trailing2 = processLines(chunk);
19
- trailing2 !== "" && pendingFragments.push(trailing2);
23
+ trailing2 !== "" && (pendingFragments.push(trailing2), pendingFragmentsLength = trailing2.length), checkBufferSize();
20
24
  return;
21
25
  }
22
26
  if (chunk.indexOf(`
23
27
  `) === -1 && chunk.indexOf("\r") === -1) {
24
- pendingFragments.push(chunk);
28
+ pendingFragments.push(chunk), pendingFragmentsLength += chunk.length, checkBufferSize();
25
29
  return;
26
30
  }
27
31
  pendingFragments.push(chunk);
28
32
  const input = pendingFragments.join("");
29
- pendingFragments.length = 0;
33
+ pendingFragments.length = 0, pendingFragmentsLength = 0;
30
34
  const trailing = processLines(input);
31
- trailing !== "" && pendingFragments.push(trailing);
35
+ trailing !== "" && (pendingFragments.push(trailing), pendingFragmentsLength = trailing.length), checkBufferSize();
36
+ }
37
+ function checkBufferSize() {
38
+ maxBufferSize !== void 0 && (pendingFragmentsLength + data.length <= maxBufferSize || (terminated = !0, pendingFragments.length = 0, pendingFragmentsLength = 0, id = void 0, data = "", dataLines = 0, eventType = void 0, onError(
39
+ new ParseError(`Buffered data exceeded max buffer size of ${maxBufferSize} characters`, {
40
+ type: "max-buffer-size-exceeded"
41
+ })
42
+ )));
32
43
  }
33
44
  function processLines(chunk) {
34
45
  let searchIndex = 0;
@@ -149,7 +160,7 @@ ${value}`, dataLines++;
149
160
  const incompleteLine = pendingFragments.join("");
150
161
  parseLine(incompleteLine, 0, incompleteLine.length);
151
162
  }
152
- isFirstChunk = !0, id = void 0, data = "", dataLines = 0, eventType = void 0, pendingFragments.length = 0;
163
+ isFirstChunk = !0, id = void 0, data = "", dataLines = 0, eventType = void 0, pendingFragments.length = 0, pendingFragmentsLength = 0, terminated = !1;
153
164
  }
154
165
  return { feed, reset };
155
166
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: !0 });
3
3
  var index = require("./index.cjs");
4
4
  class EventSourceParserStream extends TransformStream {
5
- constructor({ onError, onRetry, onComment } = {}) {
5
+ constructor({ onError, onRetry, onComment, maxBufferSize } = {}) {
6
6
  let parser;
7
7
  super({
8
8
  start(controller) {
@@ -11,10 +11,11 @@ class EventSourceParserStream extends TransformStream {
11
11
  controller.enqueue(event);
12
12
  },
13
13
  onError(error) {
14
- onError === "terminate" ? controller.error(error) : typeof onError == "function" && onError(error);
14
+ typeof onError == "function" && onError(error), (onError === "terminate" || error.type === "max-buffer-size-exceeded") && controller.error(error);
15
15
  },
16
16
  onRetry,
17
- onComment
17
+ onComment,
18
+ maxBufferSize
18
19
  });
19
20
  },
20
21
  transform(chunk) {
@@ -2,7 +2,10 @@
2
2
  * The type of error that occurred.
3
3
  * @public
4
4
  */
5
- export declare type ErrorType = "invalid-retry" | "unknown-field";
5
+ export declare type ErrorType =
6
+ | "invalid-retry"
7
+ | "unknown-field"
8
+ | "max-buffer-size-exceeded";
6
9
 
7
10
  /**
8
11
  * A parsed EventSource message event
@@ -43,7 +46,7 @@ export declare interface EventSourceMessage {
43
46
  * const eventStream =
44
47
  * response.body
45
48
  * .pipeThrough(new TextDecoderStream())
46
- * .pipeThrough(new EventSourceParserStream({terminateOnError: true}))
49
+ * .pipeThrough(new EventSourceParserStream({onError: 'terminate'}))
47
50
  * ```
48
51
  *
49
52
  * @public
@@ -52,7 +55,7 @@ export declare class EventSourceParserStream extends TransformStream<
52
55
  string,
53
56
  EventSourceMessage
54
57
  > {
55
- constructor({ onError, onRetry, onComment }?: StreamOptions);
58
+ constructor({ onError, onRetry, onComment, maxBufferSize }?: StreamOptions);
56
59
  }
57
60
 
58
61
  /**
@@ -116,6 +119,16 @@ export declare interface StreamOptions {
116
119
  * @param comment - The comment encountered in the stream.
117
120
  */
118
121
  onComment?: ((comment: string) => void) | undefined;
122
+ /**
123
+ * Maximum number of characters the parser is allowed to buffer across calls to `feed()`.
124
+ * See {@link ParserConfig.maxBufferSize} for details.
125
+ *
126
+ * When the limit is exceeded, the stream is always errored (regardless of the `onError`
127
+ * setting) since the underlying parser is unrecoverable without a `reset()`.
128
+ *
129
+ * @defaultValue `undefined` (unbounded)
130
+ */
131
+ maxBufferSize?: number | undefined;
119
132
  }
120
133
 
121
134
  export {};
@@ -1,7 +1,7 @@
1
1
  import { createParser } from "./index.js";
2
2
  import { ParseError } from "./index.js";
3
3
  class EventSourceParserStream extends TransformStream {
4
- constructor({ onError, onRetry, onComment } = {}) {
4
+ constructor({ onError, onRetry, onComment, maxBufferSize } = {}) {
5
5
  let parser;
6
6
  super({
7
7
  start(controller) {
@@ -10,10 +10,11 @@ class EventSourceParserStream extends TransformStream {
10
10
  controller.enqueue(event);
11
11
  },
12
12
  onError(error) {
13
- onError === "terminate" ? controller.error(error) : typeof onError == "function" && onError(error);
13
+ typeof onError == "function" && onError(error), (onError === "terminate" || error.type === "max-buffer-size-exceeded") && controller.error(error);
14
14
  },
15
15
  onRetry,
16
- onComment
16
+ onComment,
17
+ maxBufferSize
17
18
  });
18
19
  },
19
20
  transform(chunk) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eventsource-parser",
3
- "version": "3.0.8",
3
+ "version": "3.1.0",
4
4
  "description": "Streaming, source-agnostic EventSource/Server-Sent Events parser",
5
5
  "keywords": [
6
6
  "eventsource",
@@ -63,21 +63,21 @@
63
63
  "test:node": "vitest --reporter=verbose"
64
64
  },
65
65
  "devDependencies": {
66
- "@sanity/pkg-utils": "^10.4.15",
66
+ "@sanity/pkg-utils": "^10.4.18",
67
67
  "@sanity/semantic-release-preset": "^6.0.0",
68
68
  "@sanity/tsconfig": "^2.1.0",
69
69
  "@types/node": "^20.19.0",
70
- "eventsource-encoder": "^1.0.1",
71
- "knip": "^6.4.1",
70
+ "eventsource-encoder": "^1.0.2",
71
+ "knip": "^6.7.0",
72
72
  "mitata": "^1.0.34",
73
- "oxfmt": "^0.45.0",
74
- "oxlint": "^1.60.0",
73
+ "oxfmt": "^0.47.0",
74
+ "oxlint": "^1.62.0",
75
75
  "rimraf": "^6.1.3",
76
76
  "rollup-plugin-visualizer": "^6.0.3",
77
77
  "semantic-release": "^25.0.3",
78
- "terser": "^5.46.1",
78
+ "terser": "^5.46.2",
79
79
  "typescript": "^5.9.3",
80
- "vitest": "^4.1.4"
80
+ "vitest": "^4.1.5"
81
81
  },
82
82
  "browserslist": [
83
83
  "node >= 18",
@@ -36,7 +36,7 @@ function ipKeyGenerator(ip, ipv6Subnet = 56) {
36
36
  if (address.is4()) return address.to4().correctForm();
37
37
  if (ipv6Subnet) {
38
38
  const subnet = new import_ip_address.Address6(`${ip}/${ipv6Subnet}`);
39
- return `${subnet.startAddress().correctForm()}/${ipv6Subnet}`;
39
+ return subnet.networkForm();
40
40
  }
41
41
  }
42
42
  return ip;
@@ -7,7 +7,7 @@ function ipKeyGenerator(ip, ipv6Subnet = 56) {
7
7
  if (address.is4()) return address.to4().correctForm();
8
8
  if (ipv6Subnet) {
9
9
  const subnet = new Address6(`${ip}/${ipv6Subnet}`);
10
- return `${subnet.startAddress().correctForm()}/${ipv6Subnet}`;
10
+ return subnet.networkForm();
11
11
  }
12
12
  }
13
13
  return ip;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-rate-limit",
3
- "version": "8.5.1",
3
+ "version": "8.5.2",
4
4
  "description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.",
5
5
  "author": {
6
6
  "name": "Nathan Friedly",
@@ -84,24 +84,24 @@
84
84
  "@biomejs/biome": "2.4.6",
85
85
  "@express-rate-limit/prettier": "1.1.1",
86
86
  "@express-rate-limit/tsconfig": "1.0.2",
87
- "@jest/globals": "30.3.0",
87
+ "@jest/globals": "30.4.1",
88
88
  "@types/express": "5.0.6",
89
89
  "@types/jest": "30.0.0",
90
- "@types/node": "25.5.0",
90
+ "@types/node": "25.7.0",
91
91
  "@types/supertest": "7.2.0",
92
92
  "del-cli": "7.0.0",
93
93
  "dts-bundle-generator": "8.1.2",
94
- "esbuild": "0.27.4",
94
+ "esbuild": "0.28.0",
95
95
  "express": "5.2.1",
96
96
  "husky": "9.1.7",
97
- "jest": "30.3.0",
98
- "lint-staged": "16.4.0",
99
- "mintlify": "4.2.446",
97
+ "jest": "30.4.2",
98
+ "lint-staged": "17.0.4",
99
+ "mintlify": "4.2.559",
100
100
  "npm-run-all": "4.1.5",
101
- "prettier": "3.8.1",
101
+ "prettier": "3.8.3",
102
102
  "ratelimit-header-parser": "0.1.0",
103
103
  "supertest": "7.2.2",
104
- "ts-jest": "29.4.6",
104
+ "ts-jest": "29.4.9",
105
105
  "ts-node": "10.9.2",
106
106
  "typescript": "5.9.3"
107
107
  },
@@ -216,4 +216,3 @@ export function wrapAnsi(string, columns, options) {
216
216
  .map((line) => exec(line, columns, options))
217
217
  .join('\n');
218
218
  }
219
- //# sourceMappingURL=main.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-wrap-ansi",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "files": [
5
5
  "lib"
6
6
  ],
@@ -33,17 +33,17 @@
33
33
  "test": "vitest run"
34
34
  },
35
35
  "devDependencies": {
36
- "@eslint/js": "^9.32.0",
37
- "@types/node": "^24.2.0",
38
- "eslint": "^9.32.0",
36
+ "@eslint/js": "^10.0.1",
37
+ "@types/node": "^25.8.0",
38
+ "eslint": "^10.4.0",
39
39
  "fast-wrap-ansi-prod": "npm:fast-wrap-ansi@*",
40
40
  "picocolors": "^1.1.1",
41
- "prettier": "^3.6.2",
42
- "tinybench": "^5.0.1",
43
- "typescript": "^5.8.3",
44
- "typescript-eslint": "^8.38.0",
45
- "vitest": "^3.2.4",
46
- "wrap-ansi": "^9.0.2"
41
+ "prettier": "^3.8.3",
42
+ "tinybench": "^6.0.2",
43
+ "typescript": "^6.0.3",
44
+ "typescript-eslint": "^8.59.3",
45
+ "vitest": "^4.1.6",
46
+ "wrap-ansi": "^10.0.0"
47
47
  },
48
48
  "dependencies": {
49
49
  "fast-string-width": "^3.0.2"
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.XMLBuilder=e():t.XMLBuilder=e()}(this,()=>(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>y});class i{constructor(t,e={},i){this.pattern=t,this.separator=e.separator||".",this.segments=this._parse(t),this.data=i,this._hasDeepWildcard=this.segments.some(t=>"deep-wildcard"===t.type),this._hasAttributeCondition=this.segments.some(t=>void 0!==t.attrName),this._hasPositionSelector=this.segments.some(t=>void 0!==t.position)}_parse(t){const e=[];let i=0,s="";for(;i<t.length;)t[i]===this.separator?i+1<t.length&&t[i+1]===this.separator?(s.trim()&&(e.push(this._parseSegment(s.trim())),s=""),e.push({type:"deep-wildcard"}),i+=2):(s.trim()&&e.push(this._parseSegment(s.trim())),s="",i++):(s+=t[i],i++);return s.trim()&&e.push(this._parseSegment(s.trim())),e}_parseSegment(t){const e={type:"tag"};let i=null,s=t;const n=t.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(n&&(s=n[1]+n[3],n[2])){const t=n[2].slice(1,-1);t&&(i=t)}let r,o,a=s;if(s.includes("::")){const e=s.indexOf("::");if(r=s.substring(0,e).trim(),a=s.substring(e+2).trim(),!r)throw new Error(`Invalid namespace in pattern: ${t}`)}let h=null;if(a.includes(":")){const t=a.lastIndexOf(":"),e=a.substring(0,t).trim(),i=a.substring(t+1).trim();["first","last","odd","even"].includes(i)||/^nth\(\d+\)$/.test(i)?(o=e,h=i):o=a}else o=a;if(!o)throw new Error(`Invalid segment pattern: ${t}`);if(e.tag=o,r&&(e.namespace=r),i)if(i.includes("=")){const t=i.indexOf("=");e.attrName=i.substring(0,t).trim(),e.attrValue=i.substring(t+1).trim()}else e.attrName=i.trim();if(h){const t=h.match(/^nth\((\d+)\)$/);t?(e.position="nth",e.positionValue=parseInt(t[1],10)):e.position=h}return e}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}class s{constructor(t){this._matcher=t}get separator(){return this._matcher.separator}getCurrentTag(){const t=this._matcher.path;return t.length>0?t[t.length-1].tag:void 0}getCurrentNamespace(){const t=this._matcher.path;return t.length>0?t[t.length-1].namespace:void 0}getAttrValue(t){const e=this._matcher.path;if(0!==e.length)return e[e.length-1].values?.[t]}hasAttr(t){const e=this._matcher.path;if(0===e.length)return!1;const i=e[e.length-1];return void 0!==i.values&&t in i.values}getPosition(){const t=this._matcher.path;return 0===t.length?-1:t[t.length-1].position??0}getCounter(){const t=this._matcher.path;return 0===t.length?-1:t[t.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(t,e=!0){return this._matcher.toString(t,e)}toArray(){return this._matcher.path.map(t=>t.tag)}matches(t){return this._matcher.matches(t)}matchesAny(t){return t.matchesAny(this._matcher)}}class n{constructor(t={}){this.separator=t.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new s(this)}push(t,e=null,i=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);const s=this.path.length;this.siblingStacks[s]||(this.siblingStacks[s]=new Map);const n=this.siblingStacks[s],r=i?`${i}:${t}`:t,o=n.get(r)||0;let a=0;for(const t of n.values())a+=t;n.set(r,o+1);const h={tag:t,position:a,counter:o};null!=i&&(h.namespace=i),null!=e&&(h.values=e),this.path.push(h)}pop(){if(0===this.path.length)return;this._pathStringCache=null;const t=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),t}updateCurrent(t){if(this.path.length>0){const e=this.path[this.path.length-1];null!=t&&(e.values=t)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(t){if(0!==this.path.length)return this.path[this.path.length-1].values?.[t]}hasAttr(t){if(0===this.path.length)return!1;const e=this.path[this.path.length-1];return void 0!==e.values&&t in e.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(t,e=!0){const i=t||this.separator;if(i===this.separator&&!0===e){if(null!==this._pathStringCache)return this._pathStringCache;const t=this.path.map(t=>t.namespace?`${t.namespace}:${t.tag}`:t.tag).join(i);return this._pathStringCache=t,t}return this.path.map(t=>e&&t.namespace?`${t.namespace}:${t.tag}`:t.tag).join(i)}toArray(){return this.path.map(t=>t.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(t){const e=t.segments;return 0!==e.length&&(t.hasDeepWildcard()?this._matchWithDeepWildcard(e):this._matchSimple(e))}_matchSimple(t){if(this.path.length!==t.length)return!1;for(let e=0;e<t.length;e++)if(!this._matchSegment(t[e],this.path[e],e===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(t){let e=this.path.length-1,i=t.length-1;for(;i>=0&&e>=0;){const s=t[i];if("deep-wildcard"===s.type){if(i--,i<0)return!0;const s=t[i];let n=!1;for(let t=e;t>=0;t--)if(this._matchSegment(s,this.path[t],t===this.path.length-1)){e=t-1,i--,n=!0;break}if(!n)return!1}else{if(!this._matchSegment(s,this.path[e],e===this.path.length-1))return!1;e--,i--}}return i<0}_matchSegment(t,e,i){if("*"!==t.tag&&t.tag!==e.tag)return!1;if(void 0!==t.namespace&&"*"!==t.namespace&&t.namespace!==e.namespace)return!1;if(void 0!==t.attrName){if(!i)return!1;if(!e.values||!(t.attrName in e.values))return!1;if(void 0!==t.attrValue&&String(e.values[t.attrName])!==String(t.attrValue))return!1}if(void 0!==t.position){if(!i)return!1;const s=e.counter??0;if("first"===t.position&&0!==s)return!1;if("odd"===t.position&&s%2!=1)return!1;if("even"===t.position&&s%2!=0)return!1;if("nth"===t.position&&s!==t.positionValue)return!1}return!0}matchesAny(t){return t.matchesAny(this)}snapshot(){return{path:this.path.map(t=>({...t})),siblingStacks:this.siblingStacks.map(t=>new Map(t))}}restore(t){this._pathStringCache=null,this.path=t.path.map(t=>({...t})),this.siblingStacks=t.siblingStacks.map(t=>new Map(t))}readOnly(){return this._view}}function r(t,e){let s="";e.format&&e.indentBy.length>0&&(s="\n");const r=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let t=0;t<e.stopNodes.length;t++){const s=e.stopNodes[t];"string"==typeof s?r.push(new i(s)):s instanceof i&&r.push(s)}return o(t,e,s,new n,r)}function o(t,e,i,s,n){let r="",p=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(null!=t){let i=t.toString();return i=g(i,e),i}return""}for(let d=0;d<t.length;d++){const f=t[d],m=u(f);if(void 0===m)continue;const b=a(f[":@"],e);s.push(m,b);const N=c(s,n);if(m===e.textNodeName){let t=f[m];N||(t=e.tagValueProcessor(m,t),t=g(t,e)),p&&(r+=i),r+=t,p=!1,s.pop();continue}if(m===e.cdataPropName){p&&(r+=i);const t=f[m][0][e.textNodeName];r+=`<![CDATA[${String(t).replace(/\]\]>/g,"]]]]><![CDATA[>")}]]>`,p=!1,s.pop();continue}if(m===e.commentPropName){const t=f[m][0][e.textNodeName];r+=i+`\x3c!--${String(t).replace(/--/g,"- -").replace(/-$/,"- ")}--\x3e`,p=!0,s.pop();continue}if("?"===m[0]){const t=l(f[":@"],e,N),n="?xml"===m?"":i;let o=f[m][0][e.textNodeName];o=0!==o.length?" "+o:"",r+=n+`<${m}${o}${t}?>`,p=!0,s.pop();continue}let y=i;""!==y&&(y+=e.indentBy);const x=i+`<${m}${l(f[":@"],e,N)}`;let A;A=N?h(f[m],e):o(f[m],e,y,s,n),-1!==e.unpairedTags.indexOf(m)?e.suppressUnpairedNode?r+=x+">":r+=x+"/>":A&&0!==A.length||!e.suppressEmptyNode?A&&A.endsWith(">")?r+=x+`>${A}${i}</${m}>`:(r+=x+">",A&&""!==i&&(A.includes("/>")||A.includes("</"))?r+=i+e.indentBy+A+i:r+=A,r+=`</${m}>`):r+=x+"/>",p=!0,s.pop()}return r}function a(t,e){if(!t||e.ignoreAttributes)return null;const i={};let s=!1;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n]=t[n],s=!0);return s?i:null}function h(t,e){if(!Array.isArray(t))return null!=t?t.toString():"";let i="";for(let s=0;s<t.length;s++){const n=t[s],r=u(n);if(r===e.textNodeName)i+=n[r];else if(r===e.cdataPropName)i+=n[r][0][e.textNodeName];else if(r===e.commentPropName)i+=n[r][0][e.textNodeName];else{if(r&&"?"===r[0])continue;if(r){const t=p(n[":@"],e),s=h(n[r],e);s&&0!==s.length?i+=`<${r}${t}>${s}</${r}>`:i+=`<${r}${t}/>`}}}return i}function p(t,e){let i="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];!0===n&&e.suppressBooleanAttributes?i+=` ${s.substr(e.attributeNamePrefix.length)}`:i+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return i}function u(t){const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];if(Object.prototype.hasOwnProperty.call(t,s)&&":@"!==s)return s}}function l(t,e,i){let s="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let r;i?r=t[n]:(r=e.attributeValueProcessor(n,t[n]),r=g(r,e)),!0===r&&e.suppressBooleanAttributes?s+=` ${n.substr(e.attributeNamePrefix.length)}`:s+=` ${n.substr(e.attributeNamePrefix.length)}="${r}"`}return s}function c(t,e){if(!e||0===e.length)return!1;for(let i=0;i<e.length;i++)if(t.matches(e[i]))return!0;return!1}function g(t,e){if(t&&t.length>0&&e.processEntities)for(let i=0;i<e.entities.length;i++){const s=e.entities[i];t=t.replace(s.regex,s.val)}return t}const d={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function f(t){if(this.options=Object.assign({},d,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(t=>"string"==typeof t&&t.startsWith("*.")?".."+t.substring(2):t)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let t=0;t<this.options.stopNodes.length;t++){const e=this.options.stopNodes[t];"string"==typeof e?this.stopNodeExpressions.push(new i(e)):e instanceof i&&this.stopNodeExpressions.push(e)}var e;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(e=this.options.ignoreAttributes)?e:Array.isArray(e)?t=>{for(const i of e){if("string"==typeof i&&t===i)return!0;if(i instanceof RegExp&&i.test(t))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=N),this.processTextOrObjNode=m,this.options.format?(this.indentate=b,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function m(t,e,i,s){const n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){const n=this.buildRawContent(t),r=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(n,e,r,i)}const r=this.j2x(t,i+1,s);return s.pop(),void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,r.attrStr,i,s):this.buildObjectNode(r.val,e,r.attrStr,i)}function b(t){return this.options.indentBy.repeat(t)}function N(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}f.prototype.build=function(t){if(this.options.preserveOrder)return r(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});const e=new n;return this.j2x(t,0,e).val}},f.prototype.j2x=function(t,e,i){let s="",n="";if(this.options.maxNestedTags&&i.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const r=this.options.jPath?i.toString():i,o=this.checkStopNode(i);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(void 0===t[a])this.isAttribute(a)&&(n+="");else if(null===t[a])this.isAttribute(a)||a===this.options.cdataPropName?n+="":"?"===a[0]?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)n+=this.buildTextValNode(t[a],a,"",e,i);else if("object"!=typeof t[a]){const h=this.isAttribute(a);if(h&&!this.ignoreAttributesFn(h,r))s+=this.buildAttrPairStr(h,""+t[a],o);else if(!h)if(a===this.options.textNodeName){let e=this.options.tagValueProcessor(a,""+t[a]);n+=this.replaceEntitiesValue(e)}else{i.push(a);const s=this.checkStopNode(i);if(i.pop(),s){const i=""+t[a];n+=""===i?this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:this.indentate(e)+"<"+a+">"+i+"</"+a+this.tagEndChar}else n+=this.buildTextValNode(t[a],a,"",e,i)}}else if(Array.isArray(t[a])){const s=t[a].length;let r="",o="";for(let h=0;h<s;h++){const s=t[a][h];if(void 0===s);else if(null===s)"?"===a[0]?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if("object"==typeof s)if(this.options.oneListGroup){i.push(a);const t=this.j2x(s,e+1,i);i.pop(),r+=t.val,this.options.attributesGroupName&&s.hasOwnProperty(this.options.attributesGroupName)&&(o+=t.attrStr)}else r+=this.processTextOrObjNode(s,a,e,i);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(a,s);t=this.replaceEntitiesValue(t),r+=t}else{i.push(a);const t=this.checkStopNode(i);if(i.pop(),t){const t=""+s;r+=""===t?this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:this.indentate(e)+"<"+a+">"+t+"</"+a+this.tagEndChar}else r+=this.buildTextValNode(s,a,"",e,i)}}this.options.oneListGroup&&(r=this.buildObjectNode(r,a,o,e)),n+=r}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){const e=Object.keys(t[a]),i=e.length;for(let n=0;n<i;n++)s+=this.buildAttrPairStr(e[n],""+t[a][e[n]],o)}else n+=this.processTextOrObjNode(t[a],a,e,i);return{attrStr:s,val:n}},f.prototype.buildAttrPairStr=function(t,e,i){return i||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},f.prototype.extractAttributes=function(t){if(!t||"object"!=typeof t)return null;const e={};let i=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){const s=t[this.options.attributesGroupName];for(let t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t.startsWith(this.options.attributeNamePrefix)?t.substring(this.options.attributeNamePrefix.length):t]=s[t],i=!0)}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;const n=this.isAttribute(s);n&&(e[n]=t[s],i=!0)}return i?e:null},f.prototype.buildRawContent=function(t){if("string"==typeof t)return t;if("object"!=typeof t||null===t)return String(t);if(void 0!==t[this.options.textNodeName])return t[this.options.textNodeName];let e="";for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;if(this.isAttribute(i))continue;if(this.options.attributesGroupName&&i===this.options.attributesGroupName)continue;const s=t[i];if(i===this.options.textNodeName)e+=s;else if(Array.isArray(s)){for(let t of s)if("string"==typeof t||"number"==typeof t)e+=`<${i}>${t}</${i}>`;else if("object"==typeof t&&null!==t){const s=this.buildRawContent(t),n=this.buildAttributesForStopNode(t);e+=""===s?`<${i}${n}/>`:`<${i}${n}>${s}</${i}>`}}else if("object"==typeof s&&null!==s){const t=this.buildRawContent(s),n=this.buildAttributesForStopNode(s);e+=""===t?`<${i}${n}/>`:`<${i}${n}>${t}</${i}>`}else e+=`<${i}>${s}</${i}>`}return e},f.prototype.buildAttributesForStopNode=function(t){if(!t||"object"!=typeof t)return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){const i=t[this.options.attributesGroupName];for(let t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;const s=t.startsWith(this.options.attributeNamePrefix)?t.substring(this.options.attributeNamePrefix.length):t,n=i[t];!0===n&&this.options.suppressBooleanAttributes?e+=" "+s:e+=" "+s+'="'+n+'"'}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;const s=this.isAttribute(i);if(s){const n=t[i];!0===n&&this.options.suppressBooleanAttributes?e+=" "+s:e+=" "+s+'="'+n+'"'}}return e},f.prototype.buildObjectNode=function(t,e,i,s){if(""===t)return"?"===e[0]?this.indentate(s)+"<"+e+i+"?"+this.tagEndChar:this.indentate(s)+"<"+e+i+this.closeTag(e)+this.tagEndChar;{let n="</"+e+this.tagEndChar,r="";return"?"===e[0]&&(r="?",n=""),!i&&""!==i||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===r.length?this.indentate(s)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(s)+"<"+e+i+r+this.tagEndChar+t+this.indentate(s)+n:this.indentate(s)+"<"+e+i+r+">"+t+n}},f.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},f.prototype.checkStopNode=function(t){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let e=0;e<this.stopNodeExpressions.length;e++)if(t.matches(this.stopNodeExpressions[e]))return!0;return!1},f.prototype.buildTextValNode=function(t,e,i,s,n){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName){const e=String(t).replace(/\]\]>/g,"]]]]><![CDATA[>");return this.indentate(s)+`<![CDATA[${e}]]>`+this.newLine}if(!1!==this.options.commentPropName&&e===this.options.commentPropName){const e=String(t).replace(/--/g,"- -").replace(/-$/,"- ");return this.indentate(s)+`\x3c!--${e}--\x3e`+this.newLine}if("?"===e[0])return this.indentate(s)+"<"+e+i+"?"+this.tagEndChar;{let n=this.options.tagValueProcessor(e,t);return n=this.replaceEntitiesValue(n),""===n?this.indentate(s)+"<"+e+i+this.closeTag(e)+this.tagEndChar:this.indentate(s)+"<"+e+i+">"+n+"</"+e+this.tagEndChar}},f.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const i=this.options.entities[e];t=t.replace(i.regex,i.val)}return t};const y=f;return e})());
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.XMLBuilder=e():t.XMLBuilder=e()}(this,()=>(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>S});class i{constructor(t,e={},i){this.pattern=t,this.separator=e.separator||".",this.segments=this._parse(t),this.data=i,this._hasDeepWildcard=this.segments.some(t=>"deep-wildcard"===t.type),this._hasAttributeCondition=this.segments.some(t=>void 0!==t.attrName),this._hasPositionSelector=this.segments.some(t=>void 0!==t.position)}_parse(t){const e=[];let i=0,s="";for(;i<t.length;)t[i]===this.separator?i+1<t.length&&t[i+1]===this.separator?(s.trim()&&(e.push(this._parseSegment(s.trim())),s=""),e.push({type:"deep-wildcard"}),i+=2):(s.trim()&&e.push(this._parseSegment(s.trim())),s="",i++):(s+=t[i],i++);return s.trim()&&e.push(this._parseSegment(s.trim())),e}_parseSegment(t){const e={type:"tag"};let i=null,s=t;const n=t.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(n&&(s=n[1]+n[3],n[2])){const t=n[2].slice(1,-1);t&&(i=t)}let r,o,a=s;if(s.includes("::")){const e=s.indexOf("::");if(r=s.substring(0,e).trim(),a=s.substring(e+2).trim(),!r)throw new Error(`Invalid namespace in pattern: ${t}`)}let h=null;if(a.includes(":")){const t=a.lastIndexOf(":"),e=a.substring(0,t).trim(),i=a.substring(t+1).trim();["first","last","odd","even"].includes(i)||/^nth\(\d+\)$/.test(i)?(o=e,h=i):o=a}else o=a;if(!o)throw new Error(`Invalid segment pattern: ${t}`);if(e.tag=o,r&&(e.namespace=r),i)if(i.includes("=")){const t=i.indexOf("=");e.attrName=i.substring(0,t).trim(),e.attrValue=i.substring(t+1).trim()}else e.attrName=i.trim();if(h){const t=h.match(/^nth\((\d+)\)$/);t?(e.position="nth",e.positionValue=parseInt(t[1],10)):e.position=h}return e}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}class s{constructor(t){this._matcher=t}get separator(){return this._matcher.separator}getCurrentTag(){const t=this._matcher.path;return t.length>0?t[t.length-1].tag:void 0}getCurrentNamespace(){const t=this._matcher.path;return t.length>0?t[t.length-1].namespace:void 0}getAttrValue(t){const e=this._matcher.path;if(0!==e.length)return e[e.length-1].values?.[t]}hasAttr(t){const e=this._matcher.path;if(0===e.length)return!1;const i=e[e.length-1];return void 0!==i.values&&t in i.values}getPosition(){const t=this._matcher.path;return 0===t.length?-1:t[t.length-1].position??0}getCounter(){const t=this._matcher.path;return 0===t.length?-1:t[t.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(t,e=!0){return this._matcher.toString(t,e)}toArray(){return this._matcher.path.map(t=>t.tag)}matches(t){return this._matcher.matches(t)}matchesAny(t){return t.matchesAny(this._matcher)}}class n{constructor(t={}){this.separator=t.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new s(this)}push(t,e=null,i=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);const s=this.path.length;this.siblingStacks[s]||(this.siblingStacks[s]=new Map);const n=this.siblingStacks[s],r=i?`${i}:${t}`:t,o=n.get(r)||0;let a=0;for(const t of n.values())a+=t;n.set(r,o+1);const h={tag:t,position:a,counter:o};null!=i&&(h.namespace=i),null!=e&&(h.values=e),this.path.push(h)}pop(){if(0===this.path.length)return;this._pathStringCache=null;const t=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),t}updateCurrent(t){if(this.path.length>0){const e=this.path[this.path.length-1];null!=t&&(e.values=t)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(t){if(0!==this.path.length)return this.path[this.path.length-1].values?.[t]}hasAttr(t){if(0===this.path.length)return!1;const e=this.path[this.path.length-1];return void 0!==e.values&&t in e.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(t,e=!0){const i=t||this.separator;if(i===this.separator&&!0===e){if(null!==this._pathStringCache)return this._pathStringCache;const t=this.path.map(t=>t.namespace?`${t.namespace}:${t.tag}`:t.tag).join(i);return this._pathStringCache=t,t}return this.path.map(t=>e&&t.namespace?`${t.namespace}:${t.tag}`:t.tag).join(i)}toArray(){return this.path.map(t=>t.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(t){const e=t.segments;return 0!==e.length&&(t.hasDeepWildcard()?this._matchWithDeepWildcard(e):this._matchSimple(e))}_matchSimple(t){if(this.path.length!==t.length)return!1;for(let e=0;e<t.length;e++)if(!this._matchSegment(t[e],this.path[e],e===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(t){let e=this.path.length-1,i=t.length-1;for(;i>=0&&e>=0;){const s=t[i];if("deep-wildcard"===s.type){if(i--,i<0)return!0;const s=t[i];let n=!1;for(let t=e;t>=0;t--)if(this._matchSegment(s,this.path[t],t===this.path.length-1)){e=t-1,i--,n=!0;break}if(!n)return!1}else{if(!this._matchSegment(s,this.path[e],e===this.path.length-1))return!1;e--,i--}}return i<0}_matchSegment(t,e,i){if("*"!==t.tag&&t.tag!==e.tag)return!1;if(void 0!==t.namespace&&"*"!==t.namespace&&t.namespace!==e.namespace)return!1;if(void 0!==t.attrName){if(!i)return!1;if(!e.values||!(t.attrName in e.values))return!1;if(void 0!==t.attrValue&&String(e.values[t.attrName])!==String(t.attrValue))return!1}if(void 0!==t.position){if(!i)return!1;const s=e.counter??0;if("first"===t.position&&0!==s)return!1;if("odd"===t.position&&s%2!=1)return!1;if("even"===t.position&&s%2!=0)return!1;if("nth"===t.position&&s!==t.positionValue)return!1}return!0}matchesAny(t){return t.matchesAny(this)}snapshot(){return{path:this.path.map(t=>({...t})),siblingStacks:this.siblingStacks.map(t=>new Map(t))}}restore(t){this._pathStringCache=null,this.path=t.path.map(t=>({...t})),this.siblingStacks=t.siblingStacks.map(t=>new Map(t))}readOnly(){return this._view}}function r(t){return String(t).replace(/--/g,"- -").replace(/--/g,"- -").replace(/-$/,"- ")}function o(t){return String(t).replace(/\]\]>/g,"]]]]><![CDATA[>")}function a(t){return String(t).replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function h(t,e){let s="";e.format&&e.indentBy.length>0&&(s="\n");const r=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let t=0;t<e.stopNodes.length;t++){const s=e.stopNodes[t];"string"==typeof s?r.push(new i(s)):s instanceof i&&r.push(s)}return p(t,e,s,new n,r)}function p(t,e,i,s,n){let a="",h=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(null!=t){let i=t.toString();return i=m(i,e),i}return""}for(let c=0;c<t.length;c++){const b=t[c],N=g(b);if(void 0===N)continue;const y=u(b[":@"],e);s.push(N,y);const x=f(s,n);if(N===e.textNodeName){let t=b[N];x||(t=e.tagValueProcessor(N,t),t=m(t,e)),h&&(a+=i),a+=t,h=!1,s.pop();continue}if(N===e.cdataPropName){h&&(a+=i),a+=`<![CDATA[${o(b[N][0][e.textNodeName])}]]>`,h=!1,s.pop();continue}if(N===e.commentPropName){a+=i+`\x3c!--${r(b[N][0][e.textNodeName])}--\x3e`,h=!0,s.pop();continue}if("?"===N[0]){const t=d(b[":@"],e,x),n="?xml"===N?"":i;let r=b[N][0][e.textNodeName];r=0!==r.length?" "+r:"",a+=n+`<${N}${r}${t}?>`,h=!0,s.pop();continue}let A=i;""!==A&&(A+=e.indentBy);const S=i+`<${N}${d(b[":@"],e,x)}`;let P;P=x?l(b[N],e):p(b[N],e,A,s,n),-1!==e.unpairedTags.indexOf(N)?e.suppressUnpairedNode?a+=S+">":a+=S+"/>":P&&0!==P.length||!e.suppressEmptyNode?P&&P.endsWith(">")?a+=S+`>${P}${i}</${N}>`:(a+=S+">",P&&""!==i&&(P.includes("/>")||P.includes("</"))?a+=i+e.indentBy+P+i:a+=P,a+=`</${N}>`):a+=S+"/>",h=!0,s.pop()}return a}function u(t,e){if(!t||e.ignoreAttributes)return null;const i={};let s=!1;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n]=a(t[n]),s=!0);return s?i:null}function l(t,e){if(!Array.isArray(t))return null!=t?t.toString():"";let i="";for(let s=0;s<t.length;s++){const n=t[s],r=g(n);if(r===e.textNodeName)i+=n[r];else if(r===e.cdataPropName)i+=n[r][0][e.textNodeName];else if(r===e.commentPropName)i+=n[r][0][e.textNodeName];else{if(r&&"?"===r[0])continue;if(r){const t=c(n[":@"],e),s=l(n[r],e);s&&0!==s.length?i+=`<${r}${t}>${s}</${r}>`:i+=`<${r}${t}/>`}}}return i}function c(t,e){let i="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];!0===n&&e.suppressBooleanAttributes?i+=` ${s.substr(e.attributeNamePrefix.length)}`:i+=` ${s.substr(e.attributeNamePrefix.length)}="${a(n)}"`}return i}function g(t){const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];if(Object.prototype.hasOwnProperty.call(t,s)&&":@"!==s)return s}}function d(t,e,i){let s="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let r;i?r=t[n]:(r=e.attributeValueProcessor(n,t[n]),r=m(r,e)),!0===r&&e.suppressBooleanAttributes?s+=` ${n.substr(e.attributeNamePrefix.length)}`:s+=` ${n.substr(e.attributeNamePrefix.length)}="${a(r)}"`}return s}function f(t,e){if(!e||0===e.length)return!1;for(let i=0;i<e.length;i++)if(t.matches(e[i]))return!0;return!1}function m(t,e){if(t&&t.length>0&&e.processEntities)for(let i=0;i<e.entities.length;i++){const s=e.entities[i];t=t.replace(s.regex,s.val)}return t}const b={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function N(t){if(this.options=Object.assign({},b,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(t=>"string"==typeof t&&t.startsWith("*.")?".."+t.substring(2):t)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let t=0;t<this.options.stopNodes.length;t++){const e=this.options.stopNodes[t];"string"==typeof e?this.stopNodeExpressions.push(new i(e)):e instanceof i&&this.stopNodeExpressions.push(e)}var e;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(e=this.options.ignoreAttributes)?e:Array.isArray(e)?t=>{for(const i of e){if("string"==typeof i&&t===i)return!0;if(i instanceof RegExp&&i.test(t))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=A),this.processTextOrObjNode=y,this.options.format?(this.indentate=x,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function y(t,e,i,s){const n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){const n=this.buildRawContent(t),r=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(n,e,r,i)}const r=this.j2x(t,i+1,s);return s.pop(),void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,r.attrStr,i,s):this.buildObjectNode(r.val,e,r.attrStr,i)}function x(t){return this.options.indentBy.repeat(t)}function A(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}N.prototype.build=function(t){if(this.options.preserveOrder)return h(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});const e=new n;return this.j2x(t,0,e).val}},N.prototype.j2x=function(t,e,i){let s="",n="";if(this.options.maxNestedTags&&i.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const r=this.options.jPath?i.toString():i,o=this.checkStopNode(i);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(void 0===t[a])this.isAttribute(a)&&(n+="");else if(null===t[a])this.isAttribute(a)||a===this.options.cdataPropName||a===this.options.commentPropName?n+="":"?"===a[0]?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)n+=this.buildTextValNode(t[a],a,"",e,i);else if("object"!=typeof t[a]){const h=this.isAttribute(a);if(h&&!this.ignoreAttributesFn(h,r))s+=this.buildAttrPairStr(h,""+t[a],o);else if(!h)if(a===this.options.textNodeName){let e=this.options.tagValueProcessor(a,""+t[a]);n+=this.replaceEntitiesValue(e)}else{i.push(a);const s=this.checkStopNode(i);if(i.pop(),s){const i=""+t[a];n+=""===i?this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:this.indentate(e)+"<"+a+">"+i+"</"+a+this.tagEndChar}else n+=this.buildTextValNode(t[a],a,"",e,i)}}else if(Array.isArray(t[a])){const s=t[a].length;let r="",o="";for(let h=0;h<s;h++){const s=t[a][h];if(void 0===s);else if(null===s)"?"===a[0]?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if("object"==typeof s)if(this.options.oneListGroup){i.push(a);const t=this.j2x(s,e+1,i);i.pop(),r+=t.val,this.options.attributesGroupName&&s.hasOwnProperty(this.options.attributesGroupName)&&(o+=t.attrStr)}else r+=this.processTextOrObjNode(s,a,e,i);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(a,s);t=this.replaceEntitiesValue(t),r+=t}else{i.push(a);const t=this.checkStopNode(i);if(i.pop(),t){const t=""+s;r+=""===t?this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:this.indentate(e)+"<"+a+">"+t+"</"+a+this.tagEndChar}else r+=this.buildTextValNode(s,a,"",e,i)}}this.options.oneListGroup&&(r=this.buildObjectNode(r,a,o,e)),n+=r}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){const e=Object.keys(t[a]),i=e.length;for(let n=0;n<i;n++)s+=this.buildAttrPairStr(e[n],""+t[a][e[n]],o)}else n+=this.processTextOrObjNode(t[a],a,e,i);return{attrStr:s,val:n}},N.prototype.buildAttrPairStr=function(t,e,i){return i||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+a(e)+'"'},N.prototype.extractAttributes=function(t){if(!t||"object"!=typeof t)return null;const e={};let i=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){const s=t[this.options.attributesGroupName];for(let t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t.startsWith(this.options.attributeNamePrefix)?t.substring(this.options.attributeNamePrefix.length):t]=a(s[t]),i=!0)}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;const n=this.isAttribute(s);n&&(e[n]=a(t[s]),i=!0)}return i?e:null},N.prototype.buildRawContent=function(t){if("string"==typeof t)return t;if("object"!=typeof t||null===t)return String(t);if(void 0!==t[this.options.textNodeName])return t[this.options.textNodeName];let e="";for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;if(this.isAttribute(i))continue;if(this.options.attributesGroupName&&i===this.options.attributesGroupName)continue;const s=t[i];if(i===this.options.textNodeName)e+=s;else if(Array.isArray(s)){for(let t of s)if("string"==typeof t||"number"==typeof t)e+=`<${i}>${t}</${i}>`;else if("object"==typeof t&&null!==t){const s=this.buildRawContent(t),n=this.buildAttributesForStopNode(t);e+=""===s?`<${i}${n}/>`:`<${i}${n}>${s}</${i}>`}}else if("object"==typeof s&&null!==s){const t=this.buildRawContent(s),n=this.buildAttributesForStopNode(s);e+=""===t?`<${i}${n}/>`:`<${i}${n}>${t}</${i}>`}else e+=`<${i}>${s}</${i}>`}return e},N.prototype.buildAttributesForStopNode=function(t){if(!t||"object"!=typeof t)return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){const i=t[this.options.attributesGroupName];for(let t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;const s=t.startsWith(this.options.attributeNamePrefix)?t.substring(this.options.attributeNamePrefix.length):t,n=i[t];!0===n&&this.options.suppressBooleanAttributes?e+=" "+s:e+=" "+s+'="'+n+'"'}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;const s=this.isAttribute(i);if(s){const n=t[i];!0===n&&this.options.suppressBooleanAttributes?e+=" "+s:e+=" "+s+'="'+n+'"'}}return e},N.prototype.buildObjectNode=function(t,e,i,s){if(""===t)return"?"===e[0]?this.indentate(s)+"<"+e+i+"?"+this.tagEndChar:this.indentate(s)+"<"+e+i+this.closeTag(e)+this.tagEndChar;{let n="</"+e+this.tagEndChar,r="";return"?"===e[0]&&(r="?",n=""),!i&&""!==i||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===r.length?this.indentate(s)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(s)+"<"+e+i+r+this.tagEndChar+t+this.indentate(s)+n:this.indentate(s)+"<"+e+i+r+">"+t+n}},N.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},N.prototype.checkStopNode=function(t){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let e=0;e<this.stopNodeExpressions.length;e++)if(t.matches(this.stopNodeExpressions[e]))return!0;return!1},N.prototype.buildTextValNode=function(t,e,i,s,n){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName){const e=o(t);return this.indentate(s)+`<![CDATA[${e}]]>`+this.newLine}if(!1!==this.options.commentPropName&&e===this.options.commentPropName){const e=r(t);return this.indentate(s)+`\x3c!--${e}--\x3e`+this.newLine}if("?"===e[0])return this.indentate(s)+"<"+e+i+"?"+this.tagEndChar;{let n=this.options.tagValueProcessor(e,t);return n=this.replaceEntitiesValue(n),""===n?this.indentate(s)+"<"+e+i+this.closeTag(e)+this.tagEndChar:this.indentate(s)+"<"+e+i+">"+n+"</"+e+this.tagEndChar}},N.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const i=this.options.entities[e];t=t.replace(i.regex,i.val)}return t};const S=N;return e})());
2
2
  //# sourceMappingURL=fxbuilder.min.js.map