@depup/sentry__server-utils 10.70.0-depup.0 → 10.72.0-depup.0

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 (577) hide show
  1. package/README.md +4 -6
  2. package/build/THIRD-PARTY-LICENSES.txt +976 -0
  3. package/build/cjs/_virtual/_commonjsHelpers.js +8 -0
  4. package/build/cjs/_virtual/_commonjsHelpers.js.map +1 -0
  5. package/build/cjs/_virtual/array-set.js +6 -0
  6. package/build/cjs/_virtual/array-set.js.map +1 -0
  7. package/build/cjs/_virtual/astring.js +6 -0
  8. package/build/cjs/_virtual/astring.js.map +1 -0
  9. package/build/cjs/_virtual/base64-vlq.js +6 -0
  10. package/build/cjs/_virtual/base64-vlq.js.map +1 -0
  11. package/build/cjs/_virtual/base64.js +6 -0
  12. package/build/cjs/_virtual/base64.js.map +1 -0
  13. package/build/cjs/_virtual/binary-search.js +6 -0
  14. package/build/cjs/_virtual/binary-search.js.map +1 -0
  15. package/build/cjs/_virtual/chunk-D6vf50IK.js +6 -0
  16. package/build/cjs/_virtual/chunk-D6vf50IK.js.map +1 -0
  17. package/build/cjs/_virtual/instrumentation-serde-BFky_HG6.js +6 -0
  18. package/build/cjs/_virtual/instrumentation-serde-BFky_HG6.js.map +1 -0
  19. package/build/cjs/_virtual/mapping-list.js +6 -0
  20. package/build/cjs/_virtual/mapping-list.js.map +1 -0
  21. package/build/cjs/_virtual/meriyah.js +6 -0
  22. package/build/cjs/_virtual/meriyah.js.map +1 -0
  23. package/build/cjs/_virtual/node.js +6 -0
  24. package/build/cjs/_virtual/node.js.map +1 -0
  25. package/build/cjs/_virtual/quick-sort.js +6 -0
  26. package/build/cjs/_virtual/quick-sort.js.map +1 -0
  27. package/build/cjs/_virtual/source-map-consumer.js +6 -0
  28. package/build/cjs/_virtual/source-map-consumer.js.map +1 -0
  29. package/build/cjs/_virtual/source-map-generator.js +6 -0
  30. package/build/cjs/_virtual/source-map-generator.js.map +1 -0
  31. package/build/cjs/_virtual/source-map.js +6 -0
  32. package/build/cjs/_virtual/source-map.js.map +1 -0
  33. package/build/cjs/_virtual/source-node.js +6 -0
  34. package/build/cjs/_virtual/source-node.js.map +1 -0
  35. package/build/cjs/_virtual/transforms.js +6 -0
  36. package/build/cjs/_virtual/transforms.js.map +1 -0
  37. package/build/cjs/_virtual/util.js +6 -0
  38. package/build/cjs/_virtual/util.js.map +1 -0
  39. package/build/cjs/debug-build.js.map +1 -1
  40. package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -1
  41. package/build/cjs/graphql/index.js +15 -2
  42. package/build/cjs/graphql/index.js.map +1 -1
  43. package/build/cjs/graphql/utils.js.map +1 -1
  44. package/build/cjs/integrations/tracing-channel/amqplib.js +24 -11
  45. package/build/cjs/integrations/tracing-channel/amqplib.js.map +1 -1
  46. package/build/cjs/integrations/tracing-channel/anthropic.js +15 -2
  47. package/build/cjs/integrations/tracing-channel/anthropic.js.map +1 -1
  48. package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js.map +1 -1
  49. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js +15 -2
  50. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js.map +1 -1
  51. package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -1
  52. package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -1
  53. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -1
  54. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -1
  55. package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -1
  56. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -1
  57. package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -1
  58. package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -1
  59. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -1
  60. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -1
  61. package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -1
  62. package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js.map +1 -1
  63. package/build/cjs/integrations/tracing-channel/dataloader.js +17 -4
  64. package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -1
  65. package/build/cjs/integrations/tracing-channel/express/index.js +15 -2
  66. package/build/cjs/integrations/tracing-channel/express/index.js.map +1 -1
  67. package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -1
  68. package/build/cjs/integrations/tracing-channel/express/route.js.map +1 -1
  69. package/build/cjs/integrations/tracing-channel/fastify/errors.js +14 -1
  70. package/build/cjs/integrations/tracing-channel/fastify/errors.js.map +1 -1
  71. package/build/cjs/integrations/tracing-channel/fastify/index.js.map +1 -1
  72. package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js +14 -1
  73. package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
  74. package/build/cjs/integrations/tracing-channel/fastify/utils.js.map +1 -1
  75. package/build/cjs/integrations/tracing-channel/firebase/firestore.js +14 -1
  76. package/build/cjs/integrations/tracing-channel/firebase/firestore.js.map +1 -1
  77. package/build/cjs/integrations/tracing-channel/firebase/functions.js.map +1 -1
  78. package/build/cjs/integrations/tracing-channel/firebase/index.js +14 -1
  79. package/build/cjs/integrations/tracing-channel/firebase/index.js.map +1 -1
  80. package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js +15 -2
  81. package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js.map +1 -1
  82. package/build/cjs/integrations/tracing-channel/generic-pool.js +15 -2
  83. package/build/cjs/integrations/tracing-channel/generic-pool.js.map +1 -1
  84. package/build/cjs/integrations/tracing-channel/google-genai.js +15 -2
  85. package/build/cjs/integrations/tracing-channel/google-genai.js.map +1 -1
  86. package/build/cjs/integrations/tracing-channel/graphql/constants.js.map +1 -1
  87. package/build/cjs/integrations/tracing-channel/graphql/index.js +17 -4
  88. package/build/cjs/integrations/tracing-channel/graphql/index.js.map +1 -1
  89. package/build/cjs/integrations/tracing-channel/graphql/resolvers.js.map +1 -1
  90. package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -1
  91. package/build/cjs/integrations/tracing-channel/hapi-types.js.map +1 -1
  92. package/build/cjs/integrations/tracing-channel/hapi-utils.js.map +1 -1
  93. package/build/cjs/integrations/tracing-channel/hapi.js +16 -3
  94. package/build/cjs/integrations/tracing-channel/hapi.js.map +1 -1
  95. package/build/cjs/integrations/tracing-channel/ioredis.js +16 -3
  96. package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
  97. package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js.map +1 -1
  98. package/build/cjs/integrations/tracing-channel/kafkajs/index.js +16 -3
  99. package/build/cjs/integrations/tracing-channel/kafkajs/index.js.map +1 -1
  100. package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js.map +1 -1
  101. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js.map +1 -1
  102. package/build/cjs/integrations/tracing-channel/knex.js +16 -3
  103. package/build/cjs/integrations/tracing-channel/knex.js.map +1 -1
  104. package/build/cjs/integrations/tracing-channel/koa.js +15 -2
  105. package/build/cjs/integrations/tracing-channel/koa.js.map +1 -1
  106. package/build/cjs/integrations/tracing-channel/langchain.js +17 -5
  107. package/build/cjs/integrations/tracing-channel/langchain.js.map +1 -1
  108. package/build/cjs/integrations/tracing-channel/langgraph.js +16 -3
  109. package/build/cjs/integrations/tracing-channel/langgraph.js.map +1 -1
  110. package/build/cjs/integrations/tracing-channel/lru-memoizer.js +15 -2
  111. package/build/cjs/integrations/tracing-channel/lru-memoizer.js.map +1 -1
  112. package/build/cjs/integrations/tracing-channel/mongodb.js +17 -4
  113. package/build/cjs/integrations/tracing-channel/mongodb.js.map +1 -1
  114. package/build/cjs/integrations/tracing-channel/mongoose.js +17 -4
  115. package/build/cjs/integrations/tracing-channel/mongoose.js.map +1 -1
  116. package/build/cjs/integrations/tracing-channel/mysql.js +15 -2
  117. package/build/cjs/integrations/tracing-channel/mysql.js.map +1 -1
  118. package/build/cjs/integrations/tracing-channel/mysql2.js +16 -3
  119. package/build/cjs/integrations/tracing-channel/mysql2.js.map +1 -1
  120. package/build/cjs/integrations/tracing-channel/openai.js +15 -2
  121. package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
  122. package/build/cjs/integrations/tracing-channel/postgres-js.js +18 -5
  123. package/build/cjs/integrations/tracing-channel/postgres-js.js.map +1 -1
  124. package/build/cjs/integrations/tracing-channel/postgres.js +15 -2
  125. package/build/cjs/integrations/tracing-channel/postgres.js.map +1 -1
  126. package/build/cjs/integrations/tracing-channel/redis.js +18 -5
  127. package/build/cjs/integrations/tracing-channel/redis.js.map +1 -1
  128. package/build/cjs/integrations/tracing-channel/tedious.js +16 -3
  129. package/build/cjs/integrations/tracing-channel/tedious.js.map +1 -1
  130. package/build/cjs/integrations/tracing-channel/vercel-ai.js +15 -2
  131. package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +1 -1
  132. package/build/cjs/mongodb/mongodb-span.js.map +1 -1
  133. package/build/cjs/mongoose/index.js +15 -2
  134. package/build/cjs/mongoose/index.js.map +1 -1
  135. package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +1 -1
  136. package/build/cjs/mongoose/mongoose-legacy-span.js.map +1 -1
  137. package/build/cjs/mysql2/index.js +15 -2
  138. package/build/cjs/mysql2/index.js.map +1 -1
  139. package/build/cjs/mysql2/mysql2-dc-subscriber.js.map +1 -1
  140. package/build/cjs/orchestrion/bundler/esbuild.js +2 -6
  141. package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
  142. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  143. package/build/cjs/orchestrion/bundler/rollup.js +2 -6
  144. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  145. package/build/cjs/orchestrion/bundler/subscribeInjection.js +3 -2
  146. package/build/cjs/orchestrion/bundler/subscribeInjection.js.map +1 -1
  147. package/build/cjs/orchestrion/bundler/vite.js +2 -6
  148. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  149. package/build/cjs/orchestrion/bundler/webpack-loader.js +8 -0
  150. package/build/cjs/orchestrion/bundler/webpack-loader.js.map +1 -0
  151. package/build/cjs/orchestrion/bundler/webpack.js +29 -16
  152. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
  153. package/build/cjs/orchestrion/channels.js.map +1 -1
  154. package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
  155. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  156. package/build/cjs/orchestrion/config/aws-sdk.js.map +1 -1
  157. package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
  158. package/build/cjs/orchestrion/config/dataloader.js.map +1 -1
  159. package/build/cjs/orchestrion/config/express.js.map +1 -1
  160. package/build/cjs/orchestrion/config/firebase.js.map +1 -1
  161. package/build/cjs/orchestrion/config/generic-pool.js.map +1 -1
  162. package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
  163. package/build/cjs/orchestrion/config/graphql.js.map +1 -1
  164. package/build/cjs/orchestrion/config/hapi.js.map +1 -1
  165. package/build/cjs/orchestrion/config/index.js.map +1 -1
  166. package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
  167. package/build/cjs/orchestrion/config/kafkajs.js.map +1 -1
  168. package/build/cjs/orchestrion/config/knex.js.map +1 -1
  169. package/build/cjs/orchestrion/config/koa.js.map +1 -1
  170. package/build/cjs/orchestrion/config/langchain.js.map +1 -1
  171. package/build/cjs/orchestrion/config/langgraph.js.map +1 -1
  172. package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
  173. package/build/cjs/orchestrion/config/mongodb.js.map +1 -1
  174. package/build/cjs/orchestrion/config/mongoose.js.map +1 -1
  175. package/build/cjs/orchestrion/config/mysql.js.map +1 -1
  176. package/build/cjs/orchestrion/config/mysql2.js.map +1 -1
  177. package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
  178. package/build/cjs/orchestrion/config/openai.js +4 -4
  179. package/build/cjs/orchestrion/config/openai.js.map +1 -1
  180. package/build/cjs/orchestrion/config/pg.js.map +1 -1
  181. package/build/cjs/orchestrion/config/postgres.js.map +1 -1
  182. package/build/cjs/orchestrion/config/redis.js.map +1 -1
  183. package/build/cjs/orchestrion/config/remix.js.map +1 -1
  184. package/build/cjs/orchestrion/config/subscribe-injection.js.map +1 -1
  185. package/build/cjs/orchestrion/config/tedious.js.map +1 -1
  186. package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
  187. package/build/cjs/orchestrion/detect.js.map +1 -1
  188. package/build/cjs/orchestrion/index.js.map +1 -1
  189. package/build/cjs/orchestrion/registerChannelIntegration.js.map +1 -1
  190. package/build/cjs/orchestrion/runtime/hook.js +17 -0
  191. package/build/cjs/orchestrion/runtime/hook.js.map +1 -0
  192. package/build/cjs/orchestrion/runtime/register.js +45 -38
  193. package/build/cjs/orchestrion/runtime/register.js.map +1 -1
  194. package/build/cjs/prisma/global.js.map +1 -1
  195. package/build/cjs/prisma/index.js.map +1 -1
  196. package/build/cjs/prisma/tracing-helper.js.map +1 -1
  197. package/build/cjs/redis/index.js +15 -2
  198. package/build/cjs/redis/index.js.map +1 -1
  199. package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
  200. package/build/cjs/redis/redis-statement-serializer.js.map +1 -1
  201. package/build/cjs/tracing-channel.js.map +1 -1
  202. package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js +8 -0
  203. package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +1 -0
  204. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js +12 -0
  205. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -0
  206. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js +83 -0
  207. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -0
  208. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js +314 -0
  209. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -0
  210. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js +406 -0
  211. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -0
  212. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/chunk-D6vf50IK.js +33 -0
  213. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/chunk-D6vf50IK.js.map +1 -0
  214. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/instrumentation-serde-BFky_HG6.js +66 -0
  215. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/instrumentation-serde-BFky_HG6.js.map +1 -0
  216. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/webpack-loader.js +90 -0
  217. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/webpack-loader.js.map +1 -0
  218. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js +219 -0
  219. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -0
  220. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +98 -0
  221. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -0
  222. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +29 -0
  223. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -0
  224. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js +1069 -0
  225. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -0
  226. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +14 -0
  227. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -0
  228. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +75 -0
  229. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -0
  230. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js +166 -0
  231. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js.map +1 -0
  232. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js +88 -0
  233. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js.map +1 -0
  234. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +15 -0
  235. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +1 -0
  236. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +30 -0
  237. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +1 -0
  238. package/build/cjs/vendored/astring/dist/astring.js +1068 -0
  239. package/build/cjs/vendored/astring/dist/astring.js.map +1 -0
  240. package/build/cjs/vendored/debug/src/common.js +178 -0
  241. package/build/cjs/vendored/debug/src/common.js.map +1 -0
  242. package/build/cjs/vendored/debug/src/node.js +186 -0
  243. package/build/cjs/vendored/debug/src/node.js.map +1 -0
  244. package/build/cjs/vendored/esquery/dist/esquery.esm.min.js +847 -0
  245. package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +1 -0
  246. package/build/cjs/vendored/has-flag/index.js +11 -0
  247. package/build/cjs/vendored/has-flag/index.js.map +1 -0
  248. package/build/cjs/vendored/meriyah/dist/meriyah.js +9192 -0
  249. package/build/cjs/vendored/meriyah/dist/meriyah.js.map +1 -0
  250. package/build/cjs/vendored/meriyah/dist/meriyah2.js +9209 -0
  251. package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +1 -0
  252. package/build/cjs/vendored/module-details-from-path/index.js +44 -0
  253. package/build/cjs/vendored/module-details-from-path/index.js.map +1 -0
  254. package/build/cjs/vendored/ms/index.js +115 -0
  255. package/build/cjs/vendored/ms/index.js.map +1 -0
  256. package/build/cjs/vendored/semifies/index.js +111 -0
  257. package/build/cjs/vendored/semifies/index.js.map +1 -0
  258. package/build/cjs/vendored/source-map/lib/array-set.js +73 -0
  259. package/build/cjs/vendored/source-map/lib/array-set.js.map +1 -0
  260. package/build/cjs/vendored/source-map/lib/base64-vlq.js +57 -0
  261. package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +1 -0
  262. package/build/cjs/vendored/source-map/lib/base64.js +42 -0
  263. package/build/cjs/vendored/source-map/lib/base64.js.map +1 -0
  264. package/build/cjs/vendored/source-map/lib/binary-search.js +55 -0
  265. package/build/cjs/vendored/source-map/lib/binary-search.js.map +1 -0
  266. package/build/cjs/vendored/source-map/lib/mapping-list.js +42 -0
  267. package/build/cjs/vendored/source-map/lib/mapping-list.js.map +1 -0
  268. package/build/cjs/vendored/source-map/lib/quick-sort.js +36 -0
  269. package/build/cjs/vendored/source-map/lib/quick-sort.js.map +1 -0
  270. package/build/cjs/vendored/source-map/lib/source-map-consumer.js +612 -0
  271. package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +1 -0
  272. package/build/cjs/vendored/source-map/lib/source-map-generator.js +285 -0
  273. package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +1 -0
  274. package/build/cjs/vendored/source-map/lib/source-node.js +270 -0
  275. package/build/cjs/vendored/source-map/lib/source-node.js.map +1 -0
  276. package/build/cjs/vendored/source-map/lib/util.js +300 -0
  277. package/build/cjs/vendored/source-map/lib/util.js.map +1 -0
  278. package/build/cjs/vendored/source-map/source-map.js +16 -0
  279. package/build/cjs/vendored/source-map/source-map.js.map +1 -0
  280. package/build/cjs/vendored/supports-color/index.js +104 -0
  281. package/build/cjs/vendored/supports-color/index.js.map +1 -0
  282. package/build/cjs/vercel-ai/index.js +15 -2
  283. package/build/cjs/vercel-ai/index.js.map +1 -1
  284. package/build/cjs/vercel-ai/util.js.map +1 -1
  285. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  286. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  287. package/build/esm/_virtual/_commonjsHelpers.js +6 -0
  288. package/build/esm/_virtual/_commonjsHelpers.js.map +1 -0
  289. package/build/esm/_virtual/array-set.js +4 -0
  290. package/build/esm/_virtual/array-set.js.map +1 -0
  291. package/build/esm/_virtual/astring.js +4 -0
  292. package/build/esm/_virtual/astring.js.map +1 -0
  293. package/build/esm/_virtual/base64-vlq.js +4 -0
  294. package/build/esm/_virtual/base64-vlq.js.map +1 -0
  295. package/build/esm/_virtual/base64.js +4 -0
  296. package/build/esm/_virtual/base64.js.map +1 -0
  297. package/build/esm/_virtual/binary-search.js +4 -0
  298. package/build/esm/_virtual/binary-search.js.map +1 -0
  299. package/build/esm/_virtual/chunk-D6vf50IK.js +4 -0
  300. package/build/esm/_virtual/chunk-D6vf50IK.js.map +1 -0
  301. package/build/esm/_virtual/instrumentation-serde-BFky_HG6.js +4 -0
  302. package/build/esm/_virtual/instrumentation-serde-BFky_HG6.js.map +1 -0
  303. package/build/esm/_virtual/mapping-list.js +4 -0
  304. package/build/esm/_virtual/mapping-list.js.map +1 -0
  305. package/build/esm/_virtual/meriyah.js +4 -0
  306. package/build/esm/_virtual/meriyah.js.map +1 -0
  307. package/build/esm/_virtual/node.js +4 -0
  308. package/build/esm/_virtual/node.js.map +1 -0
  309. package/build/esm/_virtual/quick-sort.js +4 -0
  310. package/build/esm/_virtual/quick-sort.js.map +1 -0
  311. package/build/esm/_virtual/source-map-consumer.js +4 -0
  312. package/build/esm/_virtual/source-map-consumer.js.map +1 -0
  313. package/build/esm/_virtual/source-map-generator.js +4 -0
  314. package/build/esm/_virtual/source-map-generator.js.map +1 -0
  315. package/build/esm/_virtual/source-map.js +4 -0
  316. package/build/esm/_virtual/source-map.js.map +1 -0
  317. package/build/esm/_virtual/source-node.js +4 -0
  318. package/build/esm/_virtual/source-node.js.map +1 -0
  319. package/build/esm/_virtual/transforms.js +4 -0
  320. package/build/esm/_virtual/transforms.js.map +1 -0
  321. package/build/esm/_virtual/util.js +4 -0
  322. package/build/esm/_virtual/util.js.map +1 -0
  323. package/build/esm/debug-build.js.map +1 -1
  324. package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -1
  325. package/build/esm/graphql/index.js.map +1 -1
  326. package/build/esm/graphql/utils.js.map +1 -1
  327. package/build/esm/integrations/tracing-channel/amqplib.js.map +1 -1
  328. package/build/esm/integrations/tracing-channel/anthropic.js.map +1 -1
  329. package/build/esm/integrations/tracing-channel/aws-sdk/constants.js.map +1 -1
  330. package/build/esm/integrations/tracing-channel/aws-sdk/index.js.map +1 -1
  331. package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -1
  332. package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -1
  333. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -1
  334. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -1
  335. package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -1
  336. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -1
  337. package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -1
  338. package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -1
  339. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -1
  340. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -1
  341. package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -1
  342. package/build/esm/integrations/tracing-channel/aws-sdk/utils.js.map +1 -1
  343. package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -1
  344. package/build/esm/integrations/tracing-channel/express/index.js.map +1 -1
  345. package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -1
  346. package/build/esm/integrations/tracing-channel/express/route.js.map +1 -1
  347. package/build/esm/integrations/tracing-channel/fastify/errors.js.map +1 -1
  348. package/build/esm/integrations/tracing-channel/fastify/index.js.map +1 -1
  349. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
  350. package/build/esm/integrations/tracing-channel/fastify/utils.js.map +1 -1
  351. package/build/esm/integrations/tracing-channel/firebase/firestore.js.map +1 -1
  352. package/build/esm/integrations/tracing-channel/firebase/functions.js.map +1 -1
  353. package/build/esm/integrations/tracing-channel/firebase/index.js.map +1 -1
  354. package/build/esm/integrations/tracing-channel/firebase/instrumentation.js.map +1 -1
  355. package/build/esm/integrations/tracing-channel/generic-pool.js.map +1 -1
  356. package/build/esm/integrations/tracing-channel/google-genai.js.map +1 -1
  357. package/build/esm/integrations/tracing-channel/graphql/constants.js.map +1 -1
  358. package/build/esm/integrations/tracing-channel/graphql/index.js.map +1 -1
  359. package/build/esm/integrations/tracing-channel/graphql/resolvers.js.map +1 -1
  360. package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -1
  361. package/build/esm/integrations/tracing-channel/hapi-types.js.map +1 -1
  362. package/build/esm/integrations/tracing-channel/hapi-utils.js.map +1 -1
  363. package/build/esm/integrations/tracing-channel/hapi.js.map +1 -1
  364. package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
  365. package/build/esm/integrations/tracing-channel/kafkajs/consumer.js.map +1 -1
  366. package/build/esm/integrations/tracing-channel/kafkajs/index.js.map +1 -1
  367. package/build/esm/integrations/tracing-channel/kafkajs/semconv.js.map +1 -1
  368. package/build/esm/integrations/tracing-channel/kafkajs/spans.js.map +1 -1
  369. package/build/esm/integrations/tracing-channel/knex.js.map +1 -1
  370. package/build/esm/integrations/tracing-channel/koa.js.map +1 -1
  371. package/build/esm/integrations/tracing-channel/langchain.js +1 -2
  372. package/build/esm/integrations/tracing-channel/langchain.js.map +1 -1
  373. package/build/esm/integrations/tracing-channel/langgraph.js.map +1 -1
  374. package/build/esm/integrations/tracing-channel/lru-memoizer.js.map +1 -1
  375. package/build/esm/integrations/tracing-channel/mongodb.js.map +1 -1
  376. package/build/esm/integrations/tracing-channel/mongoose.js.map +1 -1
  377. package/build/esm/integrations/tracing-channel/mysql.js.map +1 -1
  378. package/build/esm/integrations/tracing-channel/mysql2.js.map +1 -1
  379. package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
  380. package/build/esm/integrations/tracing-channel/postgres-js.js.map +1 -1
  381. package/build/esm/integrations/tracing-channel/postgres.js.map +1 -1
  382. package/build/esm/integrations/tracing-channel/redis.js.map +1 -1
  383. package/build/esm/integrations/tracing-channel/tedious.js.map +1 -1
  384. package/build/esm/integrations/tracing-channel/vercel-ai.js.map +1 -1
  385. package/build/esm/mongodb/mongodb-span.js.map +1 -1
  386. package/build/esm/mongoose/index.js.map +1 -1
  387. package/build/esm/mongoose/mongoose-dc-subscriber.js.map +1 -1
  388. package/build/esm/mongoose/mongoose-legacy-span.js.map +1 -1
  389. package/build/esm/mysql2/index.js.map +1 -1
  390. package/build/esm/mysql2/mysql2-dc-subscriber.js.map +1 -1
  391. package/build/esm/orchestrion/bundler/esbuild.js +2 -2
  392. package/build/esm/orchestrion/bundler/esbuild.js.map +1 -1
  393. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  394. package/build/esm/orchestrion/bundler/rollup.js +2 -2
  395. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  396. package/build/esm/orchestrion/bundler/subscribeInjection.js +3 -2
  397. package/build/esm/orchestrion/bundler/subscribeInjection.js.map +1 -1
  398. package/build/esm/orchestrion/bundler/vite.js +2 -2
  399. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  400. package/build/esm/orchestrion/bundler/webpack-loader.js +6 -0
  401. package/build/esm/orchestrion/bundler/webpack-loader.js.map +1 -0
  402. package/build/esm/orchestrion/bundler/webpack.js +25 -8
  403. package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
  404. package/build/esm/orchestrion/channels.js.map +1 -1
  405. package/build/esm/orchestrion/config/amqplib.js.map +1 -1
  406. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  407. package/build/esm/orchestrion/config/aws-sdk.js.map +1 -1
  408. package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
  409. package/build/esm/orchestrion/config/dataloader.js.map +1 -1
  410. package/build/esm/orchestrion/config/express.js.map +1 -1
  411. package/build/esm/orchestrion/config/firebase.js.map +1 -1
  412. package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
  413. package/build/esm/orchestrion/config/google-genai.js.map +1 -1
  414. package/build/esm/orchestrion/config/graphql.js.map +1 -1
  415. package/build/esm/orchestrion/config/hapi.js.map +1 -1
  416. package/build/esm/orchestrion/config/index.js.map +1 -1
  417. package/build/esm/orchestrion/config/ioredis.js.map +1 -1
  418. package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
  419. package/build/esm/orchestrion/config/knex.js.map +1 -1
  420. package/build/esm/orchestrion/config/koa.js.map +1 -1
  421. package/build/esm/orchestrion/config/langchain.js.map +1 -1
  422. package/build/esm/orchestrion/config/langgraph.js.map +1 -1
  423. package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
  424. package/build/esm/orchestrion/config/mongodb.js.map +1 -1
  425. package/build/esm/orchestrion/config/mongoose.js.map +1 -1
  426. package/build/esm/orchestrion/config/mysql.js.map +1 -1
  427. package/build/esm/orchestrion/config/mysql2.js.map +1 -1
  428. package/build/esm/orchestrion/config/nestjs.js.map +1 -1
  429. package/build/esm/orchestrion/config/openai.js +4 -4
  430. package/build/esm/orchestrion/config/openai.js.map +1 -1
  431. package/build/esm/orchestrion/config/pg.js.map +1 -1
  432. package/build/esm/orchestrion/config/postgres.js.map +1 -1
  433. package/build/esm/orchestrion/config/redis.js.map +1 -1
  434. package/build/esm/orchestrion/config/remix.js.map +1 -1
  435. package/build/esm/orchestrion/config/subscribe-injection.js.map +1 -1
  436. package/build/esm/orchestrion/config/tedious.js.map +1 -1
  437. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
  438. package/build/esm/orchestrion/detect.js.map +1 -1
  439. package/build/esm/orchestrion/index.js.map +1 -1
  440. package/build/esm/orchestrion/registerChannelIntegration.js.map +1 -1
  441. package/build/esm/orchestrion/runtime/hook.js +8 -0
  442. package/build/esm/orchestrion/runtime/hook.js.map +1 -0
  443. package/build/esm/orchestrion/runtime/register.js +33 -40
  444. package/build/esm/orchestrion/runtime/register.js.map +1 -1
  445. package/build/esm/package.json +1 -1
  446. package/build/esm/prisma/global.js.map +1 -1
  447. package/build/esm/prisma/index.js.map +1 -1
  448. package/build/esm/prisma/tracing-helper.js.map +1 -1
  449. package/build/esm/redis/index.js.map +1 -1
  450. package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
  451. package/build/esm/redis/redis-statement-serializer.js.map +1 -1
  452. package/build/esm/tracing-channel.js.map +1 -1
  453. package/build/esm/vendored/@apm-js-collab/code-transformer/index.js +6 -0
  454. package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -0
  455. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js +10 -0
  456. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -0
  457. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js +81 -0
  458. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -0
  459. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js +312 -0
  460. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -0
  461. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js +404 -0
  462. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -0
  463. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/chunk-D6vf50IK.js +33 -0
  464. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/chunk-D6vf50IK.js.map +1 -0
  465. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/instrumentation-serde-BFky_HG6.js +66 -0
  466. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/instrumentation-serde-BFky_HG6.js.map +1 -0
  467. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/webpack-loader.js +88 -0
  468. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/webpack-loader.js.map +1 -0
  469. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js +213 -0
  470. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -0
  471. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +96 -0
  472. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -0
  473. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +27 -0
  474. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -0
  475. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js +1067 -0
  476. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -0
  477. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +12 -0
  478. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -0
  479. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +72 -0
  480. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -0
  481. package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js +157 -0
  482. package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js.map +1 -0
  483. package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js +86 -0
  484. package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js.map +1 -0
  485. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +13 -0
  486. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +1 -0
  487. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +27 -0
  488. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +1 -0
  489. package/build/esm/vendored/astring/dist/astring.js +1066 -0
  490. package/build/esm/vendored/astring/dist/astring.js.map +1 -0
  491. package/build/esm/vendored/debug/src/common.js +176 -0
  492. package/build/esm/vendored/debug/src/common.js.map +1 -0
  493. package/build/esm/vendored/debug/src/node.js +183 -0
  494. package/build/esm/vendored/debug/src/node.js.map +1 -0
  495. package/build/esm/vendored/esquery/dist/esquery.esm.min.js +845 -0
  496. package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +1 -0
  497. package/build/esm/vendored/has-flag/index.js +9 -0
  498. package/build/esm/vendored/has-flag/index.js.map +1 -0
  499. package/build/esm/vendored/meriyah/dist/meriyah.js +9190 -0
  500. package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -0
  501. package/build/esm/vendored/meriyah/dist/meriyah2.js +9207 -0
  502. package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -0
  503. package/build/esm/vendored/module-details-from-path/index.js +41 -0
  504. package/build/esm/vendored/module-details-from-path/index.js.map +1 -0
  505. package/build/esm/vendored/ms/index.js +113 -0
  506. package/build/esm/vendored/ms/index.js.map +1 -0
  507. package/build/esm/vendored/semifies/index.js +109 -0
  508. package/build/esm/vendored/semifies/index.js.map +1 -0
  509. package/build/esm/vendored/source-map/lib/array-set.js +71 -0
  510. package/build/esm/vendored/source-map/lib/array-set.js.map +1 -0
  511. package/build/esm/vendored/source-map/lib/base64-vlq.js +55 -0
  512. package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -0
  513. package/build/esm/vendored/source-map/lib/base64.js +40 -0
  514. package/build/esm/vendored/source-map/lib/base64.js.map +1 -0
  515. package/build/esm/vendored/source-map/lib/binary-search.js +55 -0
  516. package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -0
  517. package/build/esm/vendored/source-map/lib/mapping-list.js +40 -0
  518. package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -0
  519. package/build/esm/vendored/source-map/lib/quick-sort.js +34 -0
  520. package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -0
  521. package/build/esm/vendored/source-map/lib/source-map-consumer.js +610 -0
  522. package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -0
  523. package/build/esm/vendored/source-map/lib/source-map-generator.js +283 -0
  524. package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -0
  525. package/build/esm/vendored/source-map/lib/source-node.js +268 -0
  526. package/build/esm/vendored/source-map/lib/source-node.js.map +1 -0
  527. package/build/esm/vendored/source-map/lib/util.js +300 -0
  528. package/build/esm/vendored/source-map/lib/util.js.map +1 -0
  529. package/build/esm/vendored/source-map/source-map.js +14 -0
  530. package/build/esm/vendored/source-map/source-map.js.map +1 -0
  531. package/build/esm/vendored/supports-color/index.js +102 -0
  532. package/build/esm/vendored/supports-color/index.js.map +1 -0
  533. package/build/esm/vercel-ai/index.js.map +1 -1
  534. package/build/esm/vercel-ai/util.js.map +1 -1
  535. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  536. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  537. package/build/types/orchestrion/apmTypes.d.ts +169 -0
  538. package/build/types/orchestrion/apmTypes.d.ts.map +1 -0
  539. package/build/types/orchestrion/bundler/esbuild.d.ts +2 -2
  540. package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -1
  541. package/build/types/orchestrion/bundler/options.d.ts +1 -1
  542. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  543. package/build/types/orchestrion/bundler/rollup.d.ts +2 -2
  544. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
  545. package/build/types/orchestrion/bundler/subscribeInjection.d.ts.map +1 -1
  546. package/build/types/orchestrion/bundler/vite.d.ts +2 -2
  547. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  548. package/build/types/orchestrion/bundler/webpack-loader.d.ts +3 -0
  549. package/build/types/orchestrion/bundler/webpack-loader.d.ts.map +1 -0
  550. package/build/types/orchestrion/bundler/webpack.d.ts +21 -10
  551. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
  552. package/build/types/orchestrion/config/aws-sdk.d.ts +1 -1
  553. package/build/types/orchestrion/config/aws-sdk.d.ts.map +1 -1
  554. package/build/types/orchestrion/config/koa.d.ts +1 -1
  555. package/build/types/orchestrion/config/koa.d.ts.map +1 -1
  556. package/build/types/orchestrion/config/langgraph.d.ts +2 -2
  557. package/build/types/orchestrion/config/subscribe-injection.d.ts +1 -1
  558. package/build/types/orchestrion/config/subscribe-injection.d.ts.map +1 -1
  559. package/build/types/orchestrion/index.d.ts +1 -1
  560. package/build/types/orchestrion/index.d.ts.map +1 -1
  561. package/build/types/orchestrion/runtime/register.d.ts +3 -7
  562. package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
  563. package/build/types-ts3.8/orchestrion/apmTypes.d.ts +169 -0
  564. package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +2 -2
  565. package/build/types-ts3.8/orchestrion/bundler/options.d.ts +1 -1
  566. package/build/types-ts3.8/orchestrion/bundler/rollup.d.ts +2 -2
  567. package/build/types-ts3.8/orchestrion/bundler/vite.d.ts +2 -2
  568. package/build/types-ts3.8/orchestrion/bundler/webpack-loader.d.ts +3 -0
  569. package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +21 -10
  570. package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +1 -1
  571. package/build/types-ts3.8/orchestrion/config/koa.d.ts +1 -1
  572. package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +2 -2
  573. package/build/types-ts3.8/orchestrion/config/subscribe-injection.d.ts +1 -1
  574. package/build/types-ts3.8/orchestrion/index.d.ts +1 -1
  575. package/build/types-ts3.8/orchestrion/runtime/register.d.ts +3 -7
  576. package/changes.json +3 -11
  577. package/package.json +17 -18
@@ -0,0 +1,1069 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const coreDC9TN3Ev = require('./core-dC9TN3Ev.js');
4
+
5
+ //#region node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
6
+ var comma = ",".charCodeAt(0);
7
+ var semicolon = ";".charCodeAt(0);
8
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
9
+ var intToChar = new Uint8Array(64);
10
+ var charToInt = new Uint8Array(128);
11
+ for (let i = 0; i < chars.length; i++) {
12
+ const c = chars.charCodeAt(i);
13
+ intToChar[i] = c;
14
+ charToInt[c] = i;
15
+ }
16
+ function encodeInteger(builder, num, relative) {
17
+ let delta = num - relative;
18
+ delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
19
+ do {
20
+ let clamped = delta & 31;
21
+ delta >>>= 5;
22
+ if (delta > 0) clamped |= 32;
23
+ builder.write(intToChar[clamped]);
24
+ } while (delta > 0);
25
+ return num;
26
+ }
27
+ var bufLength = 1024 * 16;
28
+ var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
29
+ return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
30
+ } } : { decode(buf) {
31
+ let out = "";
32
+ for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
33
+ return out;
34
+ } };
35
+ var StringWriter = class {
36
+ constructor() {
37
+ this.pos = 0;
38
+ this.out = "";
39
+ this.buffer = new Uint8Array(bufLength);
40
+ }
41
+ write(v) {
42
+ const { buffer } = this;
43
+ buffer[this.pos++] = v;
44
+ if (this.pos === bufLength) {
45
+ this.out += td.decode(buffer);
46
+ this.pos = 0;
47
+ }
48
+ }
49
+ flush() {
50
+ const { buffer, out, pos } = this;
51
+ return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
52
+ }
53
+ };
54
+ function encode(decoded) {
55
+ const writer = new StringWriter();
56
+ let sourcesIndex = 0;
57
+ let sourceLine = 0;
58
+ let sourceColumn = 0;
59
+ let namesIndex = 0;
60
+ for (let i = 0; i < decoded.length; i++) {
61
+ const line = decoded[i];
62
+ if (i > 0) writer.write(semicolon);
63
+ if (line.length === 0) continue;
64
+ let genColumn = 0;
65
+ for (let j = 0; j < line.length; j++) {
66
+ const segment = line[j];
67
+ if (j > 0) writer.write(comma);
68
+ genColumn = encodeInteger(writer, segment[0], genColumn);
69
+ if (segment.length === 1) continue;
70
+ sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
71
+ sourceLine = encodeInteger(writer, segment[2], sourceLine);
72
+ sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
73
+ if (segment.length === 4) continue;
74
+ namesIndex = encodeInteger(writer, segment[4], namesIndex);
75
+ }
76
+ }
77
+ return writer.flush();
78
+ }
79
+ //#endregion
80
+ //#region node_modules/magic-string/dist/magic-string.es.mjs
81
+ var BitSet = class BitSet {
82
+ constructor(arg) {
83
+ this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
84
+ }
85
+ add(n) {
86
+ this.bits[n >> 5] |= 1 << (n & 31);
87
+ }
88
+ has(n) {
89
+ return !!(this.bits[n >> 5] & 1 << (n & 31));
90
+ }
91
+ };
92
+ var Chunk = class Chunk {
93
+ constructor(start, end, content) {
94
+ this.start = start;
95
+ this.end = end;
96
+ this.original = content;
97
+ this.intro = "";
98
+ this.outro = "";
99
+ this.content = content;
100
+ this.storeName = false;
101
+ this.edited = false;
102
+ this.previous = null;
103
+ this.next = null;
104
+ }
105
+ appendLeft(content) {
106
+ this.outro += content;
107
+ }
108
+ appendRight(content) {
109
+ this.intro = this.intro + content;
110
+ }
111
+ clone() {
112
+ const chunk = new Chunk(this.start, this.end, this.original);
113
+ chunk.intro = this.intro;
114
+ chunk.outro = this.outro;
115
+ chunk.content = this.content;
116
+ chunk.storeName = this.storeName;
117
+ chunk.edited = this.edited;
118
+ return chunk;
119
+ }
120
+ contains(index) {
121
+ return this.start < index && index < this.end;
122
+ }
123
+ eachNext(fn) {
124
+ let chunk = this;
125
+ while (chunk) {
126
+ fn(chunk);
127
+ chunk = chunk.next;
128
+ }
129
+ }
130
+ eachPrevious(fn) {
131
+ let chunk = this;
132
+ while (chunk) {
133
+ fn(chunk);
134
+ chunk = chunk.previous;
135
+ }
136
+ }
137
+ edit(content, storeName, contentOnly) {
138
+ this.content = content;
139
+ if (!contentOnly) {
140
+ this.intro = "";
141
+ this.outro = "";
142
+ }
143
+ this.storeName = storeName;
144
+ this.edited = true;
145
+ return this;
146
+ }
147
+ prependLeft(content) {
148
+ this.outro = content + this.outro;
149
+ }
150
+ prependRight(content) {
151
+ this.intro = content + this.intro;
152
+ }
153
+ reset() {
154
+ this.intro = "";
155
+ this.outro = "";
156
+ if (this.edited) {
157
+ this.content = this.original;
158
+ this.storeName = false;
159
+ this.edited = false;
160
+ }
161
+ }
162
+ split(index) {
163
+ const sliceIndex = index - this.start;
164
+ const originalBefore = this.original.slice(0, sliceIndex);
165
+ const originalAfter = this.original.slice(sliceIndex);
166
+ this.original = originalBefore;
167
+ const newChunk = new Chunk(index, this.end, originalAfter);
168
+ newChunk.outro = this.outro;
169
+ this.outro = "";
170
+ this.end = index;
171
+ if (this.edited) {
172
+ newChunk.edit("", false);
173
+ this.content = "";
174
+ } else this.content = originalBefore;
175
+ newChunk.next = this.next;
176
+ if (newChunk.next) newChunk.next.previous = newChunk;
177
+ newChunk.previous = this;
178
+ this.next = newChunk;
179
+ return newChunk;
180
+ }
181
+ toString() {
182
+ return this.intro + this.content + this.outro;
183
+ }
184
+ trimEnd(rx) {
185
+ this.outro = this.outro.replace(rx, "");
186
+ if (this.outro.length) return true;
187
+ const trimmed = this.content.replace(rx, "");
188
+ if (trimmed.length) {
189
+ if (trimmed !== this.content) {
190
+ this.split(this.start + trimmed.length).edit("", void 0, true);
191
+ if (this.edited) this.edit(trimmed, this.storeName, true);
192
+ }
193
+ return true;
194
+ } else {
195
+ this.edit("", void 0, true);
196
+ this.intro = this.intro.replace(rx, "");
197
+ if (this.intro.length) return true;
198
+ }
199
+ }
200
+ trimStart(rx) {
201
+ this.intro = this.intro.replace(rx, "");
202
+ if (this.intro.length) return true;
203
+ const trimmed = this.content.replace(rx, "");
204
+ if (trimmed.length) {
205
+ if (trimmed !== this.content) {
206
+ const newChunk = this.split(this.end - trimmed.length);
207
+ if (this.edited) newChunk.edit(trimmed, this.storeName, true);
208
+ this.edit("", void 0, true);
209
+ }
210
+ return true;
211
+ } else {
212
+ this.edit("", void 0, true);
213
+ this.outro = this.outro.replace(rx, "");
214
+ if (this.outro.length) return true;
215
+ }
216
+ }
217
+ };
218
+ function getBtoa() {
219
+ if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function") return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
220
+ else if (typeof Buffer === "function") return (str) => Buffer.from(str, "utf-8").toString("base64");
221
+ else return () => {
222
+ throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
223
+ };
224
+ }
225
+ var btoa = /*#__PURE__*/ getBtoa();
226
+ var SourceMap = class {
227
+ constructor(properties) {
228
+ this.version = 3;
229
+ this.file = properties.file;
230
+ this.sources = properties.sources;
231
+ this.sourcesContent = properties.sourcesContent;
232
+ this.names = properties.names;
233
+ this.mappings = encode(properties.mappings);
234
+ if (typeof properties.x_google_ignoreList !== "undefined") this.x_google_ignoreList = properties.x_google_ignoreList;
235
+ if (typeof properties.debugId !== "undefined") this.debugId = properties.debugId;
236
+ }
237
+ toString() {
238
+ return JSON.stringify(this);
239
+ }
240
+ toUrl() {
241
+ return "data:application/json;charset=utf-8;base64," + btoa(this.toString());
242
+ }
243
+ };
244
+ function guessIndent(code) {
245
+ const lines = code.split("\n");
246
+ const tabbed = lines.filter((line) => /^\t+/.test(line));
247
+ const spaced = lines.filter((line) => /^ {2,}/.test(line));
248
+ if (tabbed.length === 0 && spaced.length === 0) return null;
249
+ if (tabbed.length >= spaced.length) return " ";
250
+ const min = spaced.reduce((previous, current) => {
251
+ const numSpaces = /^ +/.exec(current)[0].length;
252
+ return Math.min(numSpaces, previous);
253
+ }, Infinity);
254
+ return new Array(min + 1).join(" ");
255
+ }
256
+ function getRelativePath(from, to) {
257
+ const fromParts = from.split(/[/\\]/);
258
+ const toParts = to.split(/[/\\]/);
259
+ fromParts.pop();
260
+ while (fromParts[0] === toParts[0]) {
261
+ fromParts.shift();
262
+ toParts.shift();
263
+ }
264
+ if (fromParts.length) {
265
+ let i = fromParts.length;
266
+ while (i--) fromParts[i] = "..";
267
+ }
268
+ return fromParts.concat(toParts).join("/");
269
+ }
270
+ var toString = Object.prototype.toString;
271
+ function isObject(thing) {
272
+ return toString.call(thing) === "[object Object]";
273
+ }
274
+ function getLocator(source) {
275
+ const originalLines = source.split("\n");
276
+ const lineOffsets = [];
277
+ for (let i = 0, pos = 0; i < originalLines.length; i++) {
278
+ lineOffsets.push(pos);
279
+ pos += originalLines[i].length + 1;
280
+ }
281
+ return function locate(index) {
282
+ let i = 0;
283
+ let j = lineOffsets.length;
284
+ while (i < j) {
285
+ const m = i + j >> 1;
286
+ if (index < lineOffsets[m]) j = m;
287
+ else i = m + 1;
288
+ }
289
+ const line = i - 1;
290
+ return {
291
+ line,
292
+ column: index - lineOffsets[line]
293
+ };
294
+ };
295
+ }
296
+ var wordRegex = /\w/;
297
+ var Mappings = class {
298
+ constructor(hires) {
299
+ this.hires = hires;
300
+ this.generatedCodeLine = 0;
301
+ this.generatedCodeColumn = 0;
302
+ this.raw = [];
303
+ this.rawSegments = this.raw[this.generatedCodeLine] = [];
304
+ this.pending = null;
305
+ }
306
+ addEdit(sourceIndex, content, loc, nameIndex) {
307
+ if (content.length) {
308
+ const contentLengthMinusOne = content.length - 1;
309
+ let contentLineEnd = content.indexOf("\n", 0);
310
+ let previousContentLineEnd = -1;
311
+ while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {
312
+ const segment = [
313
+ this.generatedCodeColumn,
314
+ sourceIndex,
315
+ loc.line,
316
+ loc.column
317
+ ];
318
+ if (nameIndex >= 0) segment.push(nameIndex);
319
+ this.rawSegments.push(segment);
320
+ this.generatedCodeLine += 1;
321
+ this.raw[this.generatedCodeLine] = this.rawSegments = [];
322
+ this.generatedCodeColumn = 0;
323
+ previousContentLineEnd = contentLineEnd;
324
+ contentLineEnd = content.indexOf("\n", contentLineEnd + 1);
325
+ }
326
+ const segment = [
327
+ this.generatedCodeColumn,
328
+ sourceIndex,
329
+ loc.line,
330
+ loc.column
331
+ ];
332
+ if (nameIndex >= 0) segment.push(nameIndex);
333
+ this.rawSegments.push(segment);
334
+ this.advance(content.slice(previousContentLineEnd + 1));
335
+ } else if (this.pending) {
336
+ this.rawSegments.push(this.pending);
337
+ this.advance(content);
338
+ }
339
+ this.pending = null;
340
+ }
341
+ addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) {
342
+ let originalCharIndex = chunk.start;
343
+ let first = true;
344
+ let charInHiresBoundary = false;
345
+ while (originalCharIndex < chunk.end) {
346
+ if (original[originalCharIndex] === "\n") {
347
+ loc.line += 1;
348
+ loc.column = 0;
349
+ this.generatedCodeLine += 1;
350
+ this.raw[this.generatedCodeLine] = this.rawSegments = [];
351
+ this.generatedCodeColumn = 0;
352
+ first = true;
353
+ charInHiresBoundary = false;
354
+ } else {
355
+ if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
356
+ const segment = [
357
+ this.generatedCodeColumn,
358
+ sourceIndex,
359
+ loc.line,
360
+ loc.column
361
+ ];
362
+ if (this.hires === "boundary") if (wordRegex.test(original[originalCharIndex])) {
363
+ if (!charInHiresBoundary) {
364
+ this.rawSegments.push(segment);
365
+ charInHiresBoundary = true;
366
+ }
367
+ } else {
368
+ this.rawSegments.push(segment);
369
+ charInHiresBoundary = false;
370
+ }
371
+ else this.rawSegments.push(segment);
372
+ }
373
+ loc.column += 1;
374
+ this.generatedCodeColumn += 1;
375
+ first = false;
376
+ }
377
+ originalCharIndex += 1;
378
+ }
379
+ this.pending = null;
380
+ }
381
+ advance(str) {
382
+ if (!str) return;
383
+ const lines = str.split("\n");
384
+ if (lines.length > 1) {
385
+ for (let i = 0; i < lines.length - 1; i++) {
386
+ this.generatedCodeLine++;
387
+ this.raw[this.generatedCodeLine] = this.rawSegments = [];
388
+ }
389
+ this.generatedCodeColumn = 0;
390
+ }
391
+ this.generatedCodeColumn += lines[lines.length - 1].length;
392
+ }
393
+ };
394
+ var n = "\n";
395
+ var warned = {
396
+ insertLeft: false,
397
+ insertRight: false,
398
+ storeName: false
399
+ };
400
+ var MagicString = class MagicString {
401
+ constructor(string, options = {}) {
402
+ const chunk = new Chunk(0, string.length, string);
403
+ Object.defineProperties(this, {
404
+ original: {
405
+ writable: true,
406
+ value: string
407
+ },
408
+ outro: {
409
+ writable: true,
410
+ value: ""
411
+ },
412
+ intro: {
413
+ writable: true,
414
+ value: ""
415
+ },
416
+ firstChunk: {
417
+ writable: true,
418
+ value: chunk
419
+ },
420
+ lastChunk: {
421
+ writable: true,
422
+ value: chunk
423
+ },
424
+ lastSearchedChunk: {
425
+ writable: true,
426
+ value: chunk
427
+ },
428
+ byStart: {
429
+ writable: true,
430
+ value: {}
431
+ },
432
+ byEnd: {
433
+ writable: true,
434
+ value: {}
435
+ },
436
+ filename: {
437
+ writable: true,
438
+ value: options.filename
439
+ },
440
+ indentExclusionRanges: {
441
+ writable: true,
442
+ value: options.indentExclusionRanges
443
+ },
444
+ sourcemapLocations: {
445
+ writable: true,
446
+ value: new BitSet()
447
+ },
448
+ storedNames: {
449
+ writable: true,
450
+ value: {}
451
+ },
452
+ indentStr: {
453
+ writable: true,
454
+ value: void 0
455
+ },
456
+ ignoreList: {
457
+ writable: true,
458
+ value: options.ignoreList
459
+ },
460
+ offset: {
461
+ writable: true,
462
+ value: options.offset || 0
463
+ }
464
+ });
465
+ this.byStart[0] = chunk;
466
+ this.byEnd[string.length] = chunk;
467
+ }
468
+ addSourcemapLocation(char) {
469
+ this.sourcemapLocations.add(char);
470
+ }
471
+ append(content) {
472
+ if (typeof content !== "string") throw new TypeError("outro content must be a string");
473
+ this.outro += content;
474
+ return this;
475
+ }
476
+ appendLeft(index, content) {
477
+ index = index + this.offset;
478
+ if (typeof content !== "string") throw new TypeError("inserted content must be a string");
479
+ this._split(index);
480
+ const chunk = this.byEnd[index];
481
+ if (chunk) chunk.appendLeft(content);
482
+ else this.intro += content;
483
+ return this;
484
+ }
485
+ appendRight(index, content) {
486
+ index = index + this.offset;
487
+ if (typeof content !== "string") throw new TypeError("inserted content must be a string");
488
+ this._split(index);
489
+ const chunk = this.byStart[index];
490
+ if (chunk) chunk.appendRight(content);
491
+ else this.outro += content;
492
+ return this;
493
+ }
494
+ clone() {
495
+ const cloned = new MagicString(this.original, {
496
+ filename: this.filename,
497
+ offset: this.offset
498
+ });
499
+ let originalChunk = this.firstChunk;
500
+ let clonedChunk = cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone();
501
+ while (originalChunk) {
502
+ cloned.byStart[clonedChunk.start] = clonedChunk;
503
+ cloned.byEnd[clonedChunk.end] = clonedChunk;
504
+ const nextOriginalChunk = originalChunk.next;
505
+ const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone();
506
+ if (nextClonedChunk) {
507
+ clonedChunk.next = nextClonedChunk;
508
+ nextClonedChunk.previous = clonedChunk;
509
+ clonedChunk = nextClonedChunk;
510
+ }
511
+ originalChunk = nextOriginalChunk;
512
+ }
513
+ cloned.lastChunk = clonedChunk;
514
+ if (this.indentExclusionRanges) cloned.indentExclusionRanges = this.indentExclusionRanges.slice();
515
+ cloned.sourcemapLocations = new BitSet(this.sourcemapLocations);
516
+ cloned.intro = this.intro;
517
+ cloned.outro = this.outro;
518
+ return cloned;
519
+ }
520
+ generateDecodedMap(options) {
521
+ options = options || {};
522
+ const sourceIndex = 0;
523
+ const names = Object.keys(this.storedNames);
524
+ const mappings = new Mappings(options.hires);
525
+ const locate = getLocator(this.original);
526
+ if (this.intro) mappings.advance(this.intro);
527
+ this.firstChunk.eachNext((chunk) => {
528
+ const loc = locate(chunk.start);
529
+ if (chunk.intro.length) mappings.advance(chunk.intro);
530
+ if (chunk.edited) mappings.addEdit(sourceIndex, chunk.content, loc, chunk.storeName ? names.indexOf(chunk.original) : -1);
531
+ else mappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations);
532
+ if (chunk.outro.length) mappings.advance(chunk.outro);
533
+ });
534
+ if (this.outro) mappings.advance(this.outro);
535
+ return {
536
+ file: options.file ? options.file.split(/[/\\]/).pop() : void 0,
537
+ sources: [options.source ? getRelativePath(options.file || "", options.source) : options.file || ""],
538
+ sourcesContent: options.includeContent ? [this.original] : void 0,
539
+ names,
540
+ mappings: mappings.raw,
541
+ x_google_ignoreList: this.ignoreList ? [sourceIndex] : void 0
542
+ };
543
+ }
544
+ generateMap(options) {
545
+ return new SourceMap(this.generateDecodedMap(options));
546
+ }
547
+ _ensureindentStr() {
548
+ if (this.indentStr === void 0) this.indentStr = guessIndent(this.original);
549
+ }
550
+ _getRawIndentString() {
551
+ this._ensureindentStr();
552
+ return this.indentStr;
553
+ }
554
+ getIndentString() {
555
+ this._ensureindentStr();
556
+ return this.indentStr === null ? " " : this.indentStr;
557
+ }
558
+ indent(indentStr, options) {
559
+ const pattern = /^[^\r\n]/gm;
560
+ if (isObject(indentStr)) {
561
+ options = indentStr;
562
+ indentStr = void 0;
563
+ }
564
+ if (indentStr === void 0) {
565
+ this._ensureindentStr();
566
+ indentStr = this.indentStr || " ";
567
+ }
568
+ if (indentStr === "") return this;
569
+ options = options || {};
570
+ const isExcluded = {};
571
+ if (options.exclude) (typeof options.exclude[0] === "number" ? [options.exclude] : options.exclude).forEach((exclusion) => {
572
+ for (let i = exclusion[0]; i < exclusion[1]; i += 1) isExcluded[i] = true;
573
+ });
574
+ let shouldIndentNextCharacter = options.indentStart !== false;
575
+ const replacer = (match) => {
576
+ if (shouldIndentNextCharacter) return `${indentStr}${match}`;
577
+ shouldIndentNextCharacter = true;
578
+ return match;
579
+ };
580
+ this.intro = this.intro.replace(pattern, replacer);
581
+ let charIndex = 0;
582
+ let chunk = this.firstChunk;
583
+ while (chunk) {
584
+ const end = chunk.end;
585
+ if (chunk.edited) {
586
+ if (!isExcluded[charIndex]) {
587
+ chunk.content = chunk.content.replace(pattern, replacer);
588
+ if (chunk.content.length) shouldIndentNextCharacter = chunk.content[chunk.content.length - 1] === "\n";
589
+ }
590
+ } else {
591
+ charIndex = chunk.start;
592
+ while (charIndex < end) {
593
+ if (!isExcluded[charIndex]) {
594
+ const char = this.original[charIndex];
595
+ if (char === "\n") shouldIndentNextCharacter = true;
596
+ else if (char !== "\r" && shouldIndentNextCharacter) {
597
+ shouldIndentNextCharacter = false;
598
+ if (charIndex === chunk.start) chunk.prependRight(indentStr);
599
+ else {
600
+ this._splitChunk(chunk, charIndex);
601
+ chunk = chunk.next;
602
+ chunk.prependRight(indentStr);
603
+ }
604
+ }
605
+ }
606
+ charIndex += 1;
607
+ }
608
+ }
609
+ charIndex = chunk.end;
610
+ chunk = chunk.next;
611
+ }
612
+ this.outro = this.outro.replace(pattern, replacer);
613
+ return this;
614
+ }
615
+ insert() {
616
+ throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)");
617
+ }
618
+ insertLeft(index, content) {
619
+ if (!warned.insertLeft) {
620
+ console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead");
621
+ warned.insertLeft = true;
622
+ }
623
+ return this.appendLeft(index, content);
624
+ }
625
+ insertRight(index, content) {
626
+ if (!warned.insertRight) {
627
+ console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead");
628
+ warned.insertRight = true;
629
+ }
630
+ return this.prependRight(index, content);
631
+ }
632
+ move(start, end, index) {
633
+ start = start + this.offset;
634
+ end = end + this.offset;
635
+ index = index + this.offset;
636
+ if (index >= start && index <= end) throw new Error("Cannot move a selection inside itself");
637
+ this._split(start);
638
+ this._split(end);
639
+ this._split(index);
640
+ const first = this.byStart[start];
641
+ const last = this.byEnd[end];
642
+ const oldLeft = first.previous;
643
+ const oldRight = last.next;
644
+ const newRight = this.byStart[index];
645
+ if (!newRight && last === this.lastChunk) return this;
646
+ const newLeft = newRight ? newRight.previous : this.lastChunk;
647
+ if (oldLeft) oldLeft.next = oldRight;
648
+ if (oldRight) oldRight.previous = oldLeft;
649
+ if (newLeft) newLeft.next = first;
650
+ if (newRight) newRight.previous = last;
651
+ if (!first.previous) this.firstChunk = last.next;
652
+ if (!last.next) {
653
+ this.lastChunk = first.previous;
654
+ this.lastChunk.next = null;
655
+ }
656
+ first.previous = newLeft;
657
+ last.next = newRight || null;
658
+ if (!newLeft) this.firstChunk = first;
659
+ if (!newRight) this.lastChunk = last;
660
+ return this;
661
+ }
662
+ overwrite(start, end, content, options) {
663
+ options = options || {};
664
+ return this.update(start, end, content, {
665
+ ...options,
666
+ overwrite: !options.contentOnly
667
+ });
668
+ }
669
+ update(start, end, content, options) {
670
+ start = start + this.offset;
671
+ end = end + this.offset;
672
+ if (typeof content !== "string") throw new TypeError("replacement content must be a string");
673
+ if (this.original.length !== 0) {
674
+ while (start < 0) start += this.original.length;
675
+ while (end < 0) end += this.original.length;
676
+ }
677
+ if (end > this.original.length) throw new Error("end is out of bounds");
678
+ if (start === end) throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");
679
+ this._split(start);
680
+ this._split(end);
681
+ if (options === true) {
682
+ if (!warned.storeName) {
683
+ console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string");
684
+ warned.storeName = true;
685
+ }
686
+ options = { storeName: true };
687
+ }
688
+ const storeName = options !== void 0 ? options.storeName : false;
689
+ const overwrite = options !== void 0 ? options.overwrite : false;
690
+ if (storeName) {
691
+ const original = this.original.slice(start, end);
692
+ Object.defineProperty(this.storedNames, original, {
693
+ writable: true,
694
+ value: true,
695
+ enumerable: true
696
+ });
697
+ }
698
+ const first = this.byStart[start];
699
+ const last = this.byEnd[end];
700
+ if (first) {
701
+ let chunk = first;
702
+ while (chunk !== last) {
703
+ if (chunk.next !== this.byStart[chunk.end]) throw new Error("Cannot overwrite across a split point");
704
+ chunk = chunk.next;
705
+ chunk.edit("", false);
706
+ }
707
+ first.edit(content, storeName, !overwrite);
708
+ } else {
709
+ const newChunk = new Chunk(start, end, "").edit(content, storeName);
710
+ last.next = newChunk;
711
+ newChunk.previous = last;
712
+ }
713
+ return this;
714
+ }
715
+ prepend(content) {
716
+ if (typeof content !== "string") throw new TypeError("outro content must be a string");
717
+ this.intro = content + this.intro;
718
+ return this;
719
+ }
720
+ prependLeft(index, content) {
721
+ index = index + this.offset;
722
+ if (typeof content !== "string") throw new TypeError("inserted content must be a string");
723
+ this._split(index);
724
+ const chunk = this.byEnd[index];
725
+ if (chunk) chunk.prependLeft(content);
726
+ else this.intro = content + this.intro;
727
+ return this;
728
+ }
729
+ prependRight(index, content) {
730
+ index = index + this.offset;
731
+ if (typeof content !== "string") throw new TypeError("inserted content must be a string");
732
+ this._split(index);
733
+ const chunk = this.byStart[index];
734
+ if (chunk) chunk.prependRight(content);
735
+ else this.outro = content + this.outro;
736
+ return this;
737
+ }
738
+ remove(start, end) {
739
+ start = start + this.offset;
740
+ end = end + this.offset;
741
+ if (this.original.length !== 0) {
742
+ while (start < 0) start += this.original.length;
743
+ while (end < 0) end += this.original.length;
744
+ }
745
+ if (start === end) return this;
746
+ if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds");
747
+ if (start > end) throw new Error("end must be greater than start");
748
+ this._split(start);
749
+ this._split(end);
750
+ let chunk = this.byStart[start];
751
+ while (chunk) {
752
+ chunk.intro = "";
753
+ chunk.outro = "";
754
+ chunk.edit("");
755
+ chunk = end > chunk.end ? this.byStart[chunk.end] : null;
756
+ }
757
+ return this;
758
+ }
759
+ reset(start, end) {
760
+ start = start + this.offset;
761
+ end = end + this.offset;
762
+ if (this.original.length !== 0) {
763
+ while (start < 0) start += this.original.length;
764
+ while (end < 0) end += this.original.length;
765
+ }
766
+ if (start === end) return this;
767
+ if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds");
768
+ if (start > end) throw new Error("end must be greater than start");
769
+ this._split(start);
770
+ this._split(end);
771
+ let chunk = this.byStart[start];
772
+ while (chunk) {
773
+ chunk.reset();
774
+ chunk = end > chunk.end ? this.byStart[chunk.end] : null;
775
+ }
776
+ return this;
777
+ }
778
+ lastChar() {
779
+ if (this.outro.length) return this.outro[this.outro.length - 1];
780
+ let chunk = this.lastChunk;
781
+ do {
782
+ if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1];
783
+ if (chunk.content.length) return chunk.content[chunk.content.length - 1];
784
+ if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1];
785
+ } while (chunk = chunk.previous);
786
+ if (this.intro.length) return this.intro[this.intro.length - 1];
787
+ return "";
788
+ }
789
+ lastLine() {
790
+ let lineIndex = this.outro.lastIndexOf(n);
791
+ if (lineIndex !== -1) return this.outro.substr(lineIndex + 1);
792
+ let lineStr = this.outro;
793
+ let chunk = this.lastChunk;
794
+ do {
795
+ if (chunk.outro.length > 0) {
796
+ lineIndex = chunk.outro.lastIndexOf(n);
797
+ if (lineIndex !== -1) return chunk.outro.substr(lineIndex + 1) + lineStr;
798
+ lineStr = chunk.outro + lineStr;
799
+ }
800
+ if (chunk.content.length > 0) {
801
+ lineIndex = chunk.content.lastIndexOf(n);
802
+ if (lineIndex !== -1) return chunk.content.substr(lineIndex + 1) + lineStr;
803
+ lineStr = chunk.content + lineStr;
804
+ }
805
+ if (chunk.intro.length > 0) {
806
+ lineIndex = chunk.intro.lastIndexOf(n);
807
+ if (lineIndex !== -1) return chunk.intro.substr(lineIndex + 1) + lineStr;
808
+ lineStr = chunk.intro + lineStr;
809
+ }
810
+ } while (chunk = chunk.previous);
811
+ lineIndex = this.intro.lastIndexOf(n);
812
+ if (lineIndex !== -1) return this.intro.substr(lineIndex + 1) + lineStr;
813
+ return this.intro + lineStr;
814
+ }
815
+ slice(start = 0, end = this.original.length - this.offset) {
816
+ start = start + this.offset;
817
+ end = end + this.offset;
818
+ if (this.original.length !== 0) {
819
+ while (start < 0) start += this.original.length;
820
+ while (end < 0) end += this.original.length;
821
+ }
822
+ let result = "";
823
+ let chunk = this.firstChunk;
824
+ while (chunk && (chunk.start > start || chunk.end <= start)) {
825
+ if (chunk.start < end && chunk.end >= end) return result;
826
+ chunk = chunk.next;
827
+ }
828
+ if (chunk && chunk.edited && chunk.start !== start) throw new Error(`Cannot use replaced character ${start} as slice start anchor.`);
829
+ const startChunk = chunk;
830
+ while (chunk) {
831
+ if (chunk.intro && (startChunk !== chunk || chunk.start === start)) result += chunk.intro;
832
+ const containsEnd = chunk.start < end && chunk.end >= end;
833
+ if (containsEnd && chunk.edited && chunk.end !== end) throw new Error(`Cannot use replaced character ${end} as slice end anchor.`);
834
+ const sliceStart = startChunk === chunk ? start - chunk.start : 0;
835
+ const sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length;
836
+ result += chunk.content.slice(sliceStart, sliceEnd);
837
+ if (chunk.outro && (!containsEnd || chunk.end === end)) result += chunk.outro;
838
+ if (containsEnd) break;
839
+ chunk = chunk.next;
840
+ }
841
+ return result;
842
+ }
843
+ snip(start, end) {
844
+ const clone = this.clone();
845
+ clone.remove(0, start);
846
+ clone.remove(end, clone.original.length);
847
+ return clone;
848
+ }
849
+ _split(index) {
850
+ if (this.byStart[index] || this.byEnd[index]) return;
851
+ let chunk = this.lastSearchedChunk;
852
+ let previousChunk = chunk;
853
+ const searchForward = index > chunk.end;
854
+ while (chunk) {
855
+ if (chunk.contains(index)) return this._splitChunk(chunk, index);
856
+ chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
857
+ if (chunk === previousChunk) return;
858
+ previousChunk = chunk;
859
+ }
860
+ }
861
+ _splitChunk(chunk, index) {
862
+ if (chunk.edited && chunk.content.length) {
863
+ const loc = getLocator(this.original)(index);
864
+ throw new Error(`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`);
865
+ }
866
+ const newChunk = chunk.split(index);
867
+ this.byEnd[index] = chunk;
868
+ this.byStart[index] = newChunk;
869
+ this.byEnd[newChunk.end] = newChunk;
870
+ if (chunk === this.lastChunk) this.lastChunk = newChunk;
871
+ this.lastSearchedChunk = chunk;
872
+ return true;
873
+ }
874
+ toString() {
875
+ let str = this.intro;
876
+ let chunk = this.firstChunk;
877
+ while (chunk) {
878
+ str += chunk.toString();
879
+ chunk = chunk.next;
880
+ }
881
+ return str + this.outro;
882
+ }
883
+ isEmpty() {
884
+ let chunk = this.firstChunk;
885
+ do
886
+ if (chunk.intro.length && chunk.intro.trim() || chunk.content.length && chunk.content.trim() || chunk.outro.length && chunk.outro.trim()) return false;
887
+ while (chunk = chunk.next);
888
+ return true;
889
+ }
890
+ length() {
891
+ let chunk = this.firstChunk;
892
+ let length = 0;
893
+ do
894
+ length += chunk.intro.length + chunk.content.length + chunk.outro.length;
895
+ while (chunk = chunk.next);
896
+ return length;
897
+ }
898
+ trimLines() {
899
+ return this.trim("[\\r\\n]");
900
+ }
901
+ trim(charType) {
902
+ return this.trimStart(charType).trimEnd(charType);
903
+ }
904
+ trimEndAborted(charType) {
905
+ const rx = new RegExp((charType || "\\s") + "+$");
906
+ this.outro = this.outro.replace(rx, "");
907
+ if (this.outro.length) return true;
908
+ let chunk = this.lastChunk;
909
+ do {
910
+ const end = chunk.end;
911
+ const aborted = chunk.trimEnd(rx);
912
+ if (chunk.end !== end) {
913
+ if (this.lastChunk === chunk) this.lastChunk = chunk.next;
914
+ this.byEnd[chunk.end] = chunk;
915
+ this.byStart[chunk.next.start] = chunk.next;
916
+ this.byEnd[chunk.next.end] = chunk.next;
917
+ }
918
+ if (aborted) return true;
919
+ chunk = chunk.previous;
920
+ } while (chunk);
921
+ return false;
922
+ }
923
+ trimEnd(charType) {
924
+ this.trimEndAborted(charType);
925
+ return this;
926
+ }
927
+ trimStartAborted(charType) {
928
+ const rx = new RegExp("^" + (charType || "\\s") + "+");
929
+ this.intro = this.intro.replace(rx, "");
930
+ if (this.intro.length) return true;
931
+ let chunk = this.firstChunk;
932
+ do {
933
+ const end = chunk.end;
934
+ const aborted = chunk.trimStart(rx);
935
+ if (chunk.end !== end) {
936
+ if (chunk === this.lastChunk) this.lastChunk = chunk.next;
937
+ this.byEnd[chunk.end] = chunk;
938
+ this.byStart[chunk.next.start] = chunk.next;
939
+ this.byEnd[chunk.next.end] = chunk.next;
940
+ }
941
+ if (aborted) return true;
942
+ chunk = chunk.next;
943
+ } while (chunk);
944
+ return false;
945
+ }
946
+ trimStart(charType) {
947
+ this.trimStartAborted(charType);
948
+ return this;
949
+ }
950
+ hasChanged() {
951
+ return this.original !== this.toString();
952
+ }
953
+ _replaceRegexp(searchValue, replacement) {
954
+ function getReplacement(match, str) {
955
+ if (typeof replacement === "string") return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
956
+ if (i === "$") return "$";
957
+ if (i === "&") return match[0];
958
+ if (+i < match.length) return match[+i];
959
+ return `$${i}`;
960
+ });
961
+ else return replacement(...match, match.index, str, match.groups);
962
+ }
963
+ function matchAll(re, str) {
964
+ let match;
965
+ const matches = [];
966
+ while (match = re.exec(str)) matches.push(match);
967
+ return matches;
968
+ }
969
+ if (searchValue.global) matchAll(searchValue, this.original).forEach((match) => {
970
+ if (match.index != null) {
971
+ const replacement = getReplacement(match, this.original);
972
+ if (replacement !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement);
973
+ }
974
+ });
975
+ else {
976
+ const match = this.original.match(searchValue);
977
+ if (match && match.index != null) {
978
+ const replacement = getReplacement(match, this.original);
979
+ if (replacement !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement);
980
+ }
981
+ }
982
+ return this;
983
+ }
984
+ _replaceString(string, replacement) {
985
+ const { original } = this;
986
+ const index = original.indexOf(string);
987
+ if (index !== -1) {
988
+ if (typeof replacement === "function") replacement = replacement(string, index, original);
989
+ if (string !== replacement) this.overwrite(index, index + string.length, replacement);
990
+ }
991
+ return this;
992
+ }
993
+ replace(searchValue, replacement) {
994
+ if (typeof searchValue === "string") return this._replaceString(searchValue, replacement);
995
+ return this._replaceRegexp(searchValue, replacement);
996
+ }
997
+ _replaceAllString(string, replacement) {
998
+ const { original } = this;
999
+ const stringLength = string.length;
1000
+ for (let index = original.indexOf(string); index !== -1; index = original.indexOf(string, index + stringLength)) {
1001
+ const previous = original.slice(index, index + stringLength);
1002
+ let _replacement = replacement;
1003
+ if (typeof replacement === "function") _replacement = replacement(previous, index, original);
1004
+ if (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement);
1005
+ }
1006
+ return this;
1007
+ }
1008
+ replaceAll(searchValue, replacement) {
1009
+ if (typeof searchValue === "string") return this._replaceAllString(searchValue, replacement);
1010
+ if (!searchValue.global) throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");
1011
+ return this._replaceRegexp(searchValue, replacement);
1012
+ }
1013
+ };
1014
+ //#endregion
1015
+ //#region src/rollup.ts
1016
+ function codeTransformerRollup(options) {
1017
+ const { transform: transformCode, getCodeToInject } = coreDC9TN3Ev.r(options);
1018
+ let sourcemapsEnabled = false;
1019
+ const outputOptions = (inputOptions) => {
1020
+ sourcemapsEnabled = !!inputOptions.sourcemap;
1021
+ };
1022
+ const renderChunk = (code, chunk, _, meta) => {
1023
+ if (!coreDC9TN3Ev.i(chunk.fileName)) return null;
1024
+ if (!chunk.isEntry) return null;
1025
+ if (coreDC9TN3Ev.a(code, chunk.facadeModuleId)) return null;
1026
+ const injectCode = getCodeToInject();
1027
+ if (!injectCode) return null;
1028
+ const ms = meta?.magicString || new MagicString(code, { filename: chunk.fileName });
1029
+ const match = code.match(coreDC9TN3Ev.t)?.[0];
1030
+ if (match) ms.appendLeft(match.length, injectCode);
1031
+ else ms.prepend(injectCode);
1032
+ if (ms?.constructor?.name === "BindingMagicString") return { code: ms };
1033
+ return {
1034
+ code: ms.toString(),
1035
+ map: ms.generateMap({
1036
+ file: chunk.fileName,
1037
+ hires: "boundary"
1038
+ })
1039
+ };
1040
+ };
1041
+ function transformHandler(code, id) {
1042
+ const result = transformCode(code, id, sourcemapsEnabled ? this.getCombinedSourcemap() : void 0);
1043
+ if (!result) return null;
1044
+ return {
1045
+ code: result.code,
1046
+ map: result.map ?? null
1047
+ };
1048
+ }
1049
+ const idFilter = options.transformFilter === void 0 ? /node_modules/ : options.transformFilter;
1050
+ const transform = idFilter === false ? transformHandler : {
1051
+ filter: { id: idFilter },
1052
+ handler: transformHandler
1053
+ };
1054
+ const name = "code-transformer";
1055
+ if (!options.injectDiagnostics) return {
1056
+ name,
1057
+ outputOptions,
1058
+ transform
1059
+ };
1060
+ return {
1061
+ name,
1062
+ outputOptions,
1063
+ transform,
1064
+ renderChunk
1065
+ };
1066
+ }
1067
+
1068
+ exports.t = codeTransformerRollup;
1069
+ //# sourceMappingURL=rollup-OTS4ktWb.js.map