@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.
- package/README.md +4 -6
- package/build/THIRD-PARTY-LICENSES.txt +976 -0
- package/build/cjs/_virtual/_commonjsHelpers.js +8 -0
- package/build/cjs/_virtual/_commonjsHelpers.js.map +1 -0
- package/build/cjs/_virtual/array-set.js +6 -0
- package/build/cjs/_virtual/array-set.js.map +1 -0
- package/build/cjs/_virtual/astring.js +6 -0
- package/build/cjs/_virtual/astring.js.map +1 -0
- package/build/cjs/_virtual/base64-vlq.js +6 -0
- package/build/cjs/_virtual/base64-vlq.js.map +1 -0
- package/build/cjs/_virtual/base64.js +6 -0
- package/build/cjs/_virtual/base64.js.map +1 -0
- package/build/cjs/_virtual/binary-search.js +6 -0
- package/build/cjs/_virtual/binary-search.js.map +1 -0
- package/build/cjs/_virtual/chunk-D6vf50IK.js +6 -0
- package/build/cjs/_virtual/chunk-D6vf50IK.js.map +1 -0
- package/build/cjs/_virtual/instrumentation-serde-BFky_HG6.js +6 -0
- package/build/cjs/_virtual/instrumentation-serde-BFky_HG6.js.map +1 -0
- package/build/cjs/_virtual/mapping-list.js +6 -0
- package/build/cjs/_virtual/mapping-list.js.map +1 -0
- package/build/cjs/_virtual/meriyah.js +6 -0
- package/build/cjs/_virtual/meriyah.js.map +1 -0
- package/build/cjs/_virtual/node.js +6 -0
- package/build/cjs/_virtual/node.js.map +1 -0
- package/build/cjs/_virtual/quick-sort.js +6 -0
- package/build/cjs/_virtual/quick-sort.js.map +1 -0
- package/build/cjs/_virtual/source-map-consumer.js +6 -0
- package/build/cjs/_virtual/source-map-consumer.js.map +1 -0
- package/build/cjs/_virtual/source-map-generator.js +6 -0
- package/build/cjs/_virtual/source-map-generator.js.map +1 -0
- package/build/cjs/_virtual/source-map.js +6 -0
- package/build/cjs/_virtual/source-map.js.map +1 -0
- package/build/cjs/_virtual/source-node.js +6 -0
- package/build/cjs/_virtual/source-node.js.map +1 -0
- package/build/cjs/_virtual/transforms.js +6 -0
- package/build/cjs/_virtual/transforms.js.map +1 -0
- package/build/cjs/_virtual/util.js +6 -0
- package/build/cjs/_virtual/util.js.map +1 -0
- package/build/cjs/debug-build.js.map +1 -1
- package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -1
- package/build/cjs/graphql/index.js +15 -2
- package/build/cjs/graphql/index.js.map +1 -1
- package/build/cjs/graphql/utils.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/amqplib.js +24 -11
- package/build/cjs/integrations/tracing-channel/amqplib.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/anthropic.js +15 -2
- package/build/cjs/integrations/tracing-channel/anthropic.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/index.js +15 -2
- package/build/cjs/integrations/tracing-channel/aws-sdk/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/dataloader.js +17 -4
- package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/express/index.js +15 -2
- package/build/cjs/integrations/tracing-channel/express/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/express/route.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/errors.js +14 -1
- package/build/cjs/integrations/tracing-channel/fastify/errors.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js +14 -1
- package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/utils.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/firebase/firestore.js +14 -1
- package/build/cjs/integrations/tracing-channel/firebase/firestore.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/firebase/functions.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/firebase/index.js +14 -1
- package/build/cjs/integrations/tracing-channel/firebase/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js +15 -2
- package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/generic-pool.js +15 -2
- package/build/cjs/integrations/tracing-channel/generic-pool.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/google-genai.js +15 -2
- package/build/cjs/integrations/tracing-channel/google-genai.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/graphql/constants.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/graphql/index.js +17 -4
- package/build/cjs/integrations/tracing-channel/graphql/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/graphql/resolvers.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/hapi-types.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/hapi-utils.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/hapi.js +16 -3
- package/build/cjs/integrations/tracing-channel/hapi.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/ioredis.js +16 -3
- package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/kafkajs/index.js +16 -3
- package/build/cjs/integrations/tracing-channel/kafkajs/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/kafkajs/spans.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/knex.js +16 -3
- package/build/cjs/integrations/tracing-channel/knex.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/koa.js +15 -2
- package/build/cjs/integrations/tracing-channel/koa.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/langchain.js +17 -5
- package/build/cjs/integrations/tracing-channel/langchain.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/langgraph.js +16 -3
- package/build/cjs/integrations/tracing-channel/langgraph.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/lru-memoizer.js +15 -2
- package/build/cjs/integrations/tracing-channel/lru-memoizer.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/mongodb.js +17 -4
- package/build/cjs/integrations/tracing-channel/mongodb.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/mongoose.js +17 -4
- package/build/cjs/integrations/tracing-channel/mongoose.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/mysql.js +15 -2
- package/build/cjs/integrations/tracing-channel/mysql.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/mysql2.js +16 -3
- package/build/cjs/integrations/tracing-channel/mysql2.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/openai.js +15 -2
- package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/postgres-js.js +18 -5
- package/build/cjs/integrations/tracing-channel/postgres-js.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/postgres.js +15 -2
- package/build/cjs/integrations/tracing-channel/postgres.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/redis.js +18 -5
- package/build/cjs/integrations/tracing-channel/redis.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/tedious.js +16 -3
- package/build/cjs/integrations/tracing-channel/tedious.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/vercel-ai.js +15 -2
- package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +1 -1
- package/build/cjs/mongodb/mongodb-span.js.map +1 -1
- package/build/cjs/mongoose/index.js +15 -2
- package/build/cjs/mongoose/index.js.map +1 -1
- package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +1 -1
- package/build/cjs/mongoose/mongoose-legacy-span.js.map +1 -1
- package/build/cjs/mysql2/index.js +15 -2
- package/build/cjs/mysql2/index.js.map +1 -1
- package/build/cjs/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/cjs/orchestrion/bundler/esbuild.js +2 -6
- package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/cjs/orchestrion/bundler/options.js.map +1 -1
- package/build/cjs/orchestrion/bundler/rollup.js +2 -6
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
- package/build/cjs/orchestrion/bundler/subscribeInjection.js +3 -2
- package/build/cjs/orchestrion/bundler/subscribeInjection.js.map +1 -1
- package/build/cjs/orchestrion/bundler/vite.js +2 -6
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack-loader.js +8 -0
- package/build/cjs/orchestrion/bundler/webpack-loader.js.map +1 -0
- package/build/cjs/orchestrion/bundler/webpack.js +29 -16
- package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
- package/build/cjs/orchestrion/channels.js.map +1 -1
- package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
- package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/cjs/orchestrion/config/aws-sdk.js.map +1 -1
- package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/cjs/orchestrion/config/dataloader.js.map +1 -1
- package/build/cjs/orchestrion/config/express.js.map +1 -1
- package/build/cjs/orchestrion/config/firebase.js.map +1 -1
- package/build/cjs/orchestrion/config/generic-pool.js.map +1 -1
- package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
- package/build/cjs/orchestrion/config/graphql.js.map +1 -1
- package/build/cjs/orchestrion/config/hapi.js.map +1 -1
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
- package/build/cjs/orchestrion/config/kafkajs.js.map +1 -1
- package/build/cjs/orchestrion/config/knex.js.map +1 -1
- package/build/cjs/orchestrion/config/koa.js.map +1 -1
- package/build/cjs/orchestrion/config/langchain.js.map +1 -1
- package/build/cjs/orchestrion/config/langgraph.js.map +1 -1
- package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
- package/build/cjs/orchestrion/config/mongodb.js.map +1 -1
- package/build/cjs/orchestrion/config/mongoose.js.map +1 -1
- package/build/cjs/orchestrion/config/mysql.js.map +1 -1
- package/build/cjs/orchestrion/config/mysql2.js.map +1 -1
- package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
- package/build/cjs/orchestrion/config/openai.js +4 -4
- package/build/cjs/orchestrion/config/openai.js.map +1 -1
- package/build/cjs/orchestrion/config/pg.js.map +1 -1
- package/build/cjs/orchestrion/config/postgres.js.map +1 -1
- package/build/cjs/orchestrion/config/redis.js.map +1 -1
- package/build/cjs/orchestrion/config/remix.js.map +1 -1
- package/build/cjs/orchestrion/config/subscribe-injection.js.map +1 -1
- package/build/cjs/orchestrion/config/tedious.js.map +1 -1
- package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/cjs/orchestrion/detect.js.map +1 -1
- package/build/cjs/orchestrion/index.js.map +1 -1
- package/build/cjs/orchestrion/registerChannelIntegration.js.map +1 -1
- package/build/cjs/orchestrion/runtime/hook.js +17 -0
- package/build/cjs/orchestrion/runtime/hook.js.map +1 -0
- package/build/cjs/orchestrion/runtime/register.js +45 -38
- package/build/cjs/orchestrion/runtime/register.js.map +1 -1
- package/build/cjs/prisma/global.js.map +1 -1
- package/build/cjs/prisma/index.js.map +1 -1
- package/build/cjs/prisma/tracing-helper.js.map +1 -1
- package/build/cjs/redis/index.js +15 -2
- package/build/cjs/redis/index.js.map +1 -1
- package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
- package/build/cjs/redis/redis-statement-serializer.js.map +1 -1
- package/build/cjs/tracing-channel.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js +8 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js +12 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js +83 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js +314 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js +406 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/chunk-D6vf50IK.js +33 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/chunk-D6vf50IK.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/instrumentation-serde-BFky_HG6.js +66 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/instrumentation-serde-BFky_HG6.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/webpack-loader.js +90 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/webpack-loader.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js +219 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +98 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +29 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js +1069 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +14 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +75 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js +166 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js +88 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +15 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +30 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +1 -0
- package/build/cjs/vendored/astring/dist/astring.js +1068 -0
- package/build/cjs/vendored/astring/dist/astring.js.map +1 -0
- package/build/cjs/vendored/debug/src/common.js +178 -0
- package/build/cjs/vendored/debug/src/common.js.map +1 -0
- package/build/cjs/vendored/debug/src/node.js +186 -0
- package/build/cjs/vendored/debug/src/node.js.map +1 -0
- package/build/cjs/vendored/esquery/dist/esquery.esm.min.js +847 -0
- package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +1 -0
- package/build/cjs/vendored/has-flag/index.js +11 -0
- package/build/cjs/vendored/has-flag/index.js.map +1 -0
- package/build/cjs/vendored/meriyah/dist/meriyah.js +9192 -0
- package/build/cjs/vendored/meriyah/dist/meriyah.js.map +1 -0
- package/build/cjs/vendored/meriyah/dist/meriyah2.js +9209 -0
- package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +1 -0
- package/build/cjs/vendored/module-details-from-path/index.js +44 -0
- package/build/cjs/vendored/module-details-from-path/index.js.map +1 -0
- package/build/cjs/vendored/ms/index.js +115 -0
- package/build/cjs/vendored/ms/index.js.map +1 -0
- package/build/cjs/vendored/semifies/index.js +111 -0
- package/build/cjs/vendored/semifies/index.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/array-set.js +73 -0
- package/build/cjs/vendored/source-map/lib/array-set.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/base64-vlq.js +57 -0
- package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/base64.js +42 -0
- package/build/cjs/vendored/source-map/lib/base64.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/binary-search.js +55 -0
- package/build/cjs/vendored/source-map/lib/binary-search.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/mapping-list.js +42 -0
- package/build/cjs/vendored/source-map/lib/mapping-list.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/quick-sort.js +36 -0
- package/build/cjs/vendored/source-map/lib/quick-sort.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/source-map-consumer.js +612 -0
- package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/source-map-generator.js +285 -0
- package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/source-node.js +270 -0
- package/build/cjs/vendored/source-map/lib/source-node.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/util.js +300 -0
- package/build/cjs/vendored/source-map/lib/util.js.map +1 -0
- package/build/cjs/vendored/source-map/source-map.js +16 -0
- package/build/cjs/vendored/source-map/source-map.js.map +1 -0
- package/build/cjs/vendored/supports-color/index.js +104 -0
- package/build/cjs/vendored/supports-color/index.js.map +1 -0
- package/build/cjs/vercel-ai/index.js +15 -2
- package/build/cjs/vercel-ai/index.js.map +1 -1
- package/build/cjs/vercel-ai/util.js.map +1 -1
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/esm/_virtual/_commonjsHelpers.js +6 -0
- package/build/esm/_virtual/_commonjsHelpers.js.map +1 -0
- package/build/esm/_virtual/array-set.js +4 -0
- package/build/esm/_virtual/array-set.js.map +1 -0
- package/build/esm/_virtual/astring.js +4 -0
- package/build/esm/_virtual/astring.js.map +1 -0
- package/build/esm/_virtual/base64-vlq.js +4 -0
- package/build/esm/_virtual/base64-vlq.js.map +1 -0
- package/build/esm/_virtual/base64.js +4 -0
- package/build/esm/_virtual/base64.js.map +1 -0
- package/build/esm/_virtual/binary-search.js +4 -0
- package/build/esm/_virtual/binary-search.js.map +1 -0
- package/build/esm/_virtual/chunk-D6vf50IK.js +4 -0
- package/build/esm/_virtual/chunk-D6vf50IK.js.map +1 -0
- package/build/esm/_virtual/instrumentation-serde-BFky_HG6.js +4 -0
- package/build/esm/_virtual/instrumentation-serde-BFky_HG6.js.map +1 -0
- package/build/esm/_virtual/mapping-list.js +4 -0
- package/build/esm/_virtual/mapping-list.js.map +1 -0
- package/build/esm/_virtual/meriyah.js +4 -0
- package/build/esm/_virtual/meriyah.js.map +1 -0
- package/build/esm/_virtual/node.js +4 -0
- package/build/esm/_virtual/node.js.map +1 -0
- package/build/esm/_virtual/quick-sort.js +4 -0
- package/build/esm/_virtual/quick-sort.js.map +1 -0
- package/build/esm/_virtual/source-map-consumer.js +4 -0
- package/build/esm/_virtual/source-map-consumer.js.map +1 -0
- package/build/esm/_virtual/source-map-generator.js +4 -0
- package/build/esm/_virtual/source-map-generator.js.map +1 -0
- package/build/esm/_virtual/source-map.js +4 -0
- package/build/esm/_virtual/source-map.js.map +1 -0
- package/build/esm/_virtual/source-node.js +4 -0
- package/build/esm/_virtual/source-node.js.map +1 -0
- package/build/esm/_virtual/transforms.js +4 -0
- package/build/esm/_virtual/transforms.js.map +1 -0
- package/build/esm/_virtual/util.js +4 -0
- package/build/esm/_virtual/util.js.map +1 -0
- package/build/esm/debug-build.js.map +1 -1
- package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -1
- package/build/esm/graphql/index.js.map +1 -1
- package/build/esm/graphql/utils.js.map +1 -1
- package/build/esm/integrations/tracing-channel/amqplib.js.map +1 -1
- package/build/esm/integrations/tracing-channel/anthropic.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/constants.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/utils.js.map +1 -1
- package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -1
- package/build/esm/integrations/tracing-channel/express/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing-channel/express/route.js.map +1 -1
- package/build/esm/integrations/tracing-channel/fastify/errors.js.map +1 -1
- package/build/esm/integrations/tracing-channel/fastify/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing-channel/fastify/utils.js.map +1 -1
- package/build/esm/integrations/tracing-channel/firebase/firestore.js.map +1 -1
- package/build/esm/integrations/tracing-channel/firebase/functions.js.map +1 -1
- package/build/esm/integrations/tracing-channel/firebase/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/firebase/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing-channel/generic-pool.js.map +1 -1
- package/build/esm/integrations/tracing-channel/google-genai.js.map +1 -1
- package/build/esm/integrations/tracing-channel/graphql/constants.js.map +1 -1
- package/build/esm/integrations/tracing-channel/graphql/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/graphql/resolvers.js.map +1 -1
- package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -1
- package/build/esm/integrations/tracing-channel/hapi-types.js.map +1 -1
- package/build/esm/integrations/tracing-channel/hapi-utils.js.map +1 -1
- package/build/esm/integrations/tracing-channel/hapi.js.map +1 -1
- package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
- package/build/esm/integrations/tracing-channel/kafkajs/consumer.js.map +1 -1
- package/build/esm/integrations/tracing-channel/kafkajs/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/kafkajs/semconv.js.map +1 -1
- package/build/esm/integrations/tracing-channel/kafkajs/spans.js.map +1 -1
- package/build/esm/integrations/tracing-channel/knex.js.map +1 -1
- package/build/esm/integrations/tracing-channel/koa.js.map +1 -1
- package/build/esm/integrations/tracing-channel/langchain.js +1 -2
- package/build/esm/integrations/tracing-channel/langchain.js.map +1 -1
- package/build/esm/integrations/tracing-channel/langgraph.js.map +1 -1
- package/build/esm/integrations/tracing-channel/lru-memoizer.js.map +1 -1
- package/build/esm/integrations/tracing-channel/mongodb.js.map +1 -1
- package/build/esm/integrations/tracing-channel/mongoose.js.map +1 -1
- package/build/esm/integrations/tracing-channel/mysql.js.map +1 -1
- package/build/esm/integrations/tracing-channel/mysql2.js.map +1 -1
- package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
- package/build/esm/integrations/tracing-channel/postgres-js.js.map +1 -1
- package/build/esm/integrations/tracing-channel/postgres.js.map +1 -1
- package/build/esm/integrations/tracing-channel/redis.js.map +1 -1
- package/build/esm/integrations/tracing-channel/tedious.js.map +1 -1
- package/build/esm/integrations/tracing-channel/vercel-ai.js.map +1 -1
- package/build/esm/mongodb/mongodb-span.js.map +1 -1
- package/build/esm/mongoose/index.js.map +1 -1
- package/build/esm/mongoose/mongoose-dc-subscriber.js.map +1 -1
- package/build/esm/mongoose/mongoose-legacy-span.js.map +1 -1
- package/build/esm/mysql2/index.js.map +1 -1
- package/build/esm/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/esm/orchestrion/bundler/esbuild.js +2 -2
- package/build/esm/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/esm/orchestrion/bundler/options.js.map +1 -1
- package/build/esm/orchestrion/bundler/rollup.js +2 -2
- package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
- package/build/esm/orchestrion/bundler/subscribeInjection.js +3 -2
- package/build/esm/orchestrion/bundler/subscribeInjection.js.map +1 -1
- package/build/esm/orchestrion/bundler/vite.js +2 -2
- package/build/esm/orchestrion/bundler/vite.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack-loader.js +6 -0
- package/build/esm/orchestrion/bundler/webpack-loader.js.map +1 -0
- package/build/esm/orchestrion/bundler/webpack.js +25 -8
- package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
- package/build/esm/orchestrion/channels.js.map +1 -1
- package/build/esm/orchestrion/config/amqplib.js.map +1 -1
- package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/esm/orchestrion/config/aws-sdk.js.map +1 -1
- package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/esm/orchestrion/config/dataloader.js.map +1 -1
- package/build/esm/orchestrion/config/express.js.map +1 -1
- package/build/esm/orchestrion/config/firebase.js.map +1 -1
- package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
- package/build/esm/orchestrion/config/google-genai.js.map +1 -1
- package/build/esm/orchestrion/config/graphql.js.map +1 -1
- package/build/esm/orchestrion/config/hapi.js.map +1 -1
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/ioredis.js.map +1 -1
- package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
- package/build/esm/orchestrion/config/knex.js.map +1 -1
- package/build/esm/orchestrion/config/koa.js.map +1 -1
- package/build/esm/orchestrion/config/langchain.js.map +1 -1
- package/build/esm/orchestrion/config/langgraph.js.map +1 -1
- package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
- package/build/esm/orchestrion/config/mongodb.js.map +1 -1
- package/build/esm/orchestrion/config/mongoose.js.map +1 -1
- package/build/esm/orchestrion/config/mysql.js.map +1 -1
- package/build/esm/orchestrion/config/mysql2.js.map +1 -1
- package/build/esm/orchestrion/config/nestjs.js.map +1 -1
- package/build/esm/orchestrion/config/openai.js +4 -4
- package/build/esm/orchestrion/config/openai.js.map +1 -1
- package/build/esm/orchestrion/config/pg.js.map +1 -1
- package/build/esm/orchestrion/config/postgres.js.map +1 -1
- package/build/esm/orchestrion/config/redis.js.map +1 -1
- package/build/esm/orchestrion/config/remix.js.map +1 -1
- package/build/esm/orchestrion/config/subscribe-injection.js.map +1 -1
- package/build/esm/orchestrion/config/tedious.js.map +1 -1
- package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/esm/orchestrion/detect.js.map +1 -1
- package/build/esm/orchestrion/index.js.map +1 -1
- package/build/esm/orchestrion/registerChannelIntegration.js.map +1 -1
- package/build/esm/orchestrion/runtime/hook.js +8 -0
- package/build/esm/orchestrion/runtime/hook.js.map +1 -0
- package/build/esm/orchestrion/runtime/register.js +33 -40
- package/build/esm/orchestrion/runtime/register.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/prisma/global.js.map +1 -1
- package/build/esm/prisma/index.js.map +1 -1
- package/build/esm/prisma/tracing-helper.js.map +1 -1
- package/build/esm/redis/index.js.map +1 -1
- package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
- package/build/esm/redis/redis-statement-serializer.js.map +1 -1
- package/build/esm/tracing-channel.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/index.js +6 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js +10 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js +81 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js +312 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js +404 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/chunk-D6vf50IK.js +33 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/chunk-D6vf50IK.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/instrumentation-serde-BFky_HG6.js +66 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/instrumentation-serde-BFky_HG6.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/webpack-loader.js +88 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/webpack-loader.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js +213 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +96 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +27 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js +1067 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +12 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +72 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js +157 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js +86 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +13 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +27 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +1 -0
- package/build/esm/vendored/astring/dist/astring.js +1066 -0
- package/build/esm/vendored/astring/dist/astring.js.map +1 -0
- package/build/esm/vendored/debug/src/common.js +176 -0
- package/build/esm/vendored/debug/src/common.js.map +1 -0
- package/build/esm/vendored/debug/src/node.js +183 -0
- package/build/esm/vendored/debug/src/node.js.map +1 -0
- package/build/esm/vendored/esquery/dist/esquery.esm.min.js +845 -0
- package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +1 -0
- package/build/esm/vendored/has-flag/index.js +9 -0
- package/build/esm/vendored/has-flag/index.js.map +1 -0
- package/build/esm/vendored/meriyah/dist/meriyah.js +9190 -0
- package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -0
- package/build/esm/vendored/meriyah/dist/meriyah2.js +9207 -0
- package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -0
- package/build/esm/vendored/module-details-from-path/index.js +41 -0
- package/build/esm/vendored/module-details-from-path/index.js.map +1 -0
- package/build/esm/vendored/ms/index.js +113 -0
- package/build/esm/vendored/ms/index.js.map +1 -0
- package/build/esm/vendored/semifies/index.js +109 -0
- package/build/esm/vendored/semifies/index.js.map +1 -0
- package/build/esm/vendored/source-map/lib/array-set.js +71 -0
- package/build/esm/vendored/source-map/lib/array-set.js.map +1 -0
- package/build/esm/vendored/source-map/lib/base64-vlq.js +55 -0
- package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -0
- package/build/esm/vendored/source-map/lib/base64.js +40 -0
- package/build/esm/vendored/source-map/lib/base64.js.map +1 -0
- package/build/esm/vendored/source-map/lib/binary-search.js +55 -0
- package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -0
- package/build/esm/vendored/source-map/lib/mapping-list.js +40 -0
- package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -0
- package/build/esm/vendored/source-map/lib/quick-sort.js +34 -0
- package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -0
- package/build/esm/vendored/source-map/lib/source-map-consumer.js +610 -0
- package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -0
- package/build/esm/vendored/source-map/lib/source-map-generator.js +283 -0
- package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -0
- package/build/esm/vendored/source-map/lib/source-node.js +268 -0
- package/build/esm/vendored/source-map/lib/source-node.js.map +1 -0
- package/build/esm/vendored/source-map/lib/util.js +300 -0
- package/build/esm/vendored/source-map/lib/util.js.map +1 -0
- package/build/esm/vendored/source-map/source-map.js +14 -0
- package/build/esm/vendored/source-map/source-map.js.map +1 -0
- package/build/esm/vendored/supports-color/index.js +102 -0
- package/build/esm/vendored/supports-color/index.js.map +1 -0
- package/build/esm/vercel-ai/index.js.map +1 -1
- package/build/esm/vercel-ai/util.js.map +1 -1
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/types/orchestrion/apmTypes.d.ts +169 -0
- package/build/types/orchestrion/apmTypes.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/esbuild.d.ts +2 -2
- package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/options.d.ts +1 -1
- package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/rollup.d.ts +2 -2
- package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/subscribeInjection.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/vite.d.ts +2 -2
- package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/webpack-loader.d.ts +3 -0
- package/build/types/orchestrion/bundler/webpack-loader.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/webpack.d.ts +21 -10
- package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
- package/build/types/orchestrion/config/aws-sdk.d.ts +1 -1
- package/build/types/orchestrion/config/aws-sdk.d.ts.map +1 -1
- package/build/types/orchestrion/config/koa.d.ts +1 -1
- package/build/types/orchestrion/config/koa.d.ts.map +1 -1
- package/build/types/orchestrion/config/langgraph.d.ts +2 -2
- package/build/types/orchestrion/config/subscribe-injection.d.ts +1 -1
- package/build/types/orchestrion/config/subscribe-injection.d.ts.map +1 -1
- package/build/types/orchestrion/index.d.ts +1 -1
- package/build/types/orchestrion/index.d.ts.map +1 -1
- package/build/types/orchestrion/runtime/register.d.ts +3 -7
- package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
- package/build/types-ts3.8/orchestrion/apmTypes.d.ts +169 -0
- package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +2 -2
- package/build/types-ts3.8/orchestrion/bundler/options.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/bundler/rollup.d.ts +2 -2
- package/build/types-ts3.8/orchestrion/bundler/vite.d.ts +2 -2
- package/build/types-ts3.8/orchestrion/bundler/webpack-loader.d.ts +3 -0
- package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +21 -10
- package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/config/koa.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +2 -2
- package/build/types-ts3.8/orchestrion/config/subscribe-injection.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/index.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/runtime/register.d.ts +3 -7
- package/changes.json +3 -11
- package/package.json +17 -18
|
@@ -0,0 +1,845 @@
|
|
|
1
|
+
function e(e2, t2) {
|
|
2
|
+
(null == t2 || t2 > e2.length) && (t2 = e2.length);
|
|
3
|
+
for (var r2 = 0, n2 = Array(t2); r2 < t2; r2++) n2[r2] = e2[r2];
|
|
4
|
+
return n2;
|
|
5
|
+
}
|
|
6
|
+
function t(e2, t2) {
|
|
7
|
+
return (function(e3) {
|
|
8
|
+
if (Array.isArray(e3)) return e3;
|
|
9
|
+
})(e2) || (function(e3, t3) {
|
|
10
|
+
var r2 = null == e3 ? null : "undefined" != typeof Symbol && e3[Symbol.iterator] || e3["@@iterator"];
|
|
11
|
+
if (null != r2) {
|
|
12
|
+
var n2, o2, a2, i2, s2 = [], u2 = true, l2 = false;
|
|
13
|
+
try {
|
|
14
|
+
if (a2 = (r2 = r2.call(e3)).next, 0 === t3) ; else for (; !(u2 = (n2 = a2.call(r2)).done) && (s2.push(n2.value), s2.length !== t3); u2 = true) ;
|
|
15
|
+
} catch (e4) {
|
|
16
|
+
l2 = true, o2 = e4;
|
|
17
|
+
} finally {
|
|
18
|
+
try {
|
|
19
|
+
if (!u2 && null != r2.return && (i2 = r2.return(), Object(i2) !== i2)) return;
|
|
20
|
+
} finally {
|
|
21
|
+
if (l2) throw o2;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return s2;
|
|
25
|
+
}
|
|
26
|
+
})(e2, t2) || o(e2, t2) || (function() {
|
|
27
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
28
|
+
})();
|
|
29
|
+
}
|
|
30
|
+
function r(t2) {
|
|
31
|
+
return (function(t3) {
|
|
32
|
+
if (Array.isArray(t3)) return e(t3);
|
|
33
|
+
})(t2) || (function(e2) {
|
|
34
|
+
if ("undefined" != typeof Symbol && null != e2[Symbol.iterator] || null != e2["@@iterator"]) return Array.from(e2);
|
|
35
|
+
})(t2) || o(t2) || (function() {
|
|
36
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
37
|
+
})();
|
|
38
|
+
}
|
|
39
|
+
function n(e2) {
|
|
40
|
+
return (n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e3) {
|
|
41
|
+
return typeof e3;
|
|
42
|
+
} : function(e3) {
|
|
43
|
+
return e3 && "function" == typeof Symbol && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3;
|
|
44
|
+
})(e2);
|
|
45
|
+
}
|
|
46
|
+
function o(t2, r2) {
|
|
47
|
+
if (t2) {
|
|
48
|
+
if ("string" == typeof t2) return e(t2, r2);
|
|
49
|
+
var n2 = {}.toString.call(t2).slice(8, -1);
|
|
50
|
+
return "Object" === n2 && t2.constructor && (n2 = t2.constructor.name), "Map" === n2 || "Set" === n2 ? Array.from(t2) : "Arguments" === n2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? e(t2, r2) : void 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function a(e2, t2) {
|
|
54
|
+
return e2(t2 = { exports: {} }, t2.exports), t2.exports;
|
|
55
|
+
}
|
|
56
|
+
var i = a((function(e2, t2) {
|
|
57
|
+
!(function e3(t3) {
|
|
58
|
+
var r2, n2, o2, a2, i2, s2;
|
|
59
|
+
function u2(e4) {
|
|
60
|
+
var t4, r3, n3 = {};
|
|
61
|
+
for (t4 in e4) e4.hasOwnProperty(t4) && (r3 = e4[t4], n3[t4] = "object" == typeof r3 && null !== r3 ? u2(r3) : r3);
|
|
62
|
+
return n3;
|
|
63
|
+
}
|
|
64
|
+
function l2(e4, t4) {
|
|
65
|
+
this.parent = e4, this.key = t4;
|
|
66
|
+
}
|
|
67
|
+
function c2(e4, t4, r3, n3) {
|
|
68
|
+
this.node = e4, this.path = t4, this.wrap = r3, this.ref = n3;
|
|
69
|
+
}
|
|
70
|
+
function f2() {
|
|
71
|
+
}
|
|
72
|
+
function p2(e4) {
|
|
73
|
+
return null != e4 && ("object" == typeof e4 && "string" == typeof e4.type);
|
|
74
|
+
}
|
|
75
|
+
function h2(e4, t4) {
|
|
76
|
+
return (e4 === r2.ObjectExpression || e4 === r2.ObjectPattern) && "properties" === t4;
|
|
77
|
+
}
|
|
78
|
+
function y2(e4, t4) {
|
|
79
|
+
for (var r3 = e4.length - 1; r3 >= 0; --r3) if (e4[r3].node === t4) return true;
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
function d2(e4, t4) {
|
|
83
|
+
return new f2().traverse(e4, t4);
|
|
84
|
+
}
|
|
85
|
+
function m2(e4, t4) {
|
|
86
|
+
var r3;
|
|
87
|
+
return r3 = (function(e5, t5) {
|
|
88
|
+
var r4, n3, o3, a3;
|
|
89
|
+
for (n3 = e5.length, o3 = 0; n3; ) t5(e5[a3 = o3 + (r4 = n3 >>> 1)]) ? n3 = r4 : (o3 = a3 + 1, n3 -= r4 + 1);
|
|
90
|
+
return o3;
|
|
91
|
+
})(t4, (function(t5) {
|
|
92
|
+
return t5.range[0] > e4.range[0];
|
|
93
|
+
})), e4.extendedRange = [e4.range[0], e4.range[1]], r3 !== t4.length && (e4.extendedRange[1] = t4[r3].range[0]), (r3 -= 1) >= 0 && (e4.extendedRange[0] = t4[r3].range[1]), e4;
|
|
94
|
+
}
|
|
95
|
+
return r2 = { AssignmentExpression: "AssignmentExpression", AssignmentPattern: "AssignmentPattern", ArrayExpression: "ArrayExpression", ArrayPattern: "ArrayPattern", ArrowFunctionExpression: "ArrowFunctionExpression", AwaitExpression: "AwaitExpression", BlockStatement: "BlockStatement", BinaryExpression: "BinaryExpression", BreakStatement: "BreakStatement", CallExpression: "CallExpression", CatchClause: "CatchClause", ChainExpression: "ChainExpression", ClassBody: "ClassBody", ClassDeclaration: "ClassDeclaration", ClassExpression: "ClassExpression", ComprehensionBlock: "ComprehensionBlock", ComprehensionExpression: "ComprehensionExpression", ConditionalExpression: "ConditionalExpression", ContinueStatement: "ContinueStatement", DebuggerStatement: "DebuggerStatement", DirectiveStatement: "DirectiveStatement", DoWhileStatement: "DoWhileStatement", EmptyStatement: "EmptyStatement", ExportAllDeclaration: "ExportAllDeclaration", ExportDefaultDeclaration: "ExportDefaultDeclaration", ExportNamedDeclaration: "ExportNamedDeclaration", ExportSpecifier: "ExportSpecifier", ExpressionStatement: "ExpressionStatement", ForStatement: "ForStatement", ForInStatement: "ForInStatement", ForOfStatement: "ForOfStatement", FunctionDeclaration: "FunctionDeclaration", FunctionExpression: "FunctionExpression", GeneratorExpression: "GeneratorExpression", Identifier: "Identifier", IfStatement: "IfStatement", ImportExpression: "ImportExpression", ImportDeclaration: "ImportDeclaration", ImportDefaultSpecifier: "ImportDefaultSpecifier", ImportNamespaceSpecifier: "ImportNamespaceSpecifier", ImportSpecifier: "ImportSpecifier", Literal: "Literal", LabeledStatement: "LabeledStatement", LogicalExpression: "LogicalExpression", MemberExpression: "MemberExpression", MetaProperty: "MetaProperty", MethodDefinition: "MethodDefinition", ModuleSpecifier: "ModuleSpecifier", NewExpression: "NewExpression", ObjectExpression: "ObjectExpression", ObjectPattern: "ObjectPattern", PrivateIdentifier: "PrivateIdentifier", Program: "Program", Property: "Property", PropertyDefinition: "PropertyDefinition", RestElement: "RestElement", ReturnStatement: "ReturnStatement", SequenceExpression: "SequenceExpression", SpreadElement: "SpreadElement", Super: "Super", SwitchStatement: "SwitchStatement", SwitchCase: "SwitchCase", TaggedTemplateExpression: "TaggedTemplateExpression", TemplateElement: "TemplateElement", TemplateLiteral: "TemplateLiteral", ThisExpression: "ThisExpression", ThrowStatement: "ThrowStatement", TryStatement: "TryStatement", UnaryExpression: "UnaryExpression", UpdateExpression: "UpdateExpression", VariableDeclaration: "VariableDeclaration", VariableDeclarator: "VariableDeclarator", WhileStatement: "WhileStatement", WithStatement: "WithStatement", YieldExpression: "YieldExpression" }, o2 = { AssignmentExpression: ["left", "right"], AssignmentPattern: ["left", "right"], ArrayExpression: ["elements"], ArrayPattern: ["elements"], ArrowFunctionExpression: ["params", "body"], AwaitExpression: ["argument"], BlockStatement: ["body"], BinaryExpression: ["left", "right"], BreakStatement: ["label"], CallExpression: ["callee", "arguments"], CatchClause: ["param", "body"], ChainExpression: ["expression"], ClassBody: ["body"], ClassDeclaration: ["id", "superClass", "body"], ClassExpression: ["id", "superClass", "body"], ComprehensionBlock: ["left", "right"], ComprehensionExpression: ["blocks", "filter", "body"], ConditionalExpression: ["test", "consequent", "alternate"], ContinueStatement: ["label"], DebuggerStatement: [], DirectiveStatement: [], DoWhileStatement: ["body", "test"], EmptyStatement: [], ExportAllDeclaration: ["source"], ExportDefaultDeclaration: ["declaration"], ExportNamedDeclaration: ["declaration", "specifiers", "source"], ExportSpecifier: ["exported", "local"], ExpressionStatement: ["expression"], ForStatement: ["init", "test", "update", "body"], ForInStatement: ["left", "right", "body"], ForOfStatement: ["left", "right", "body"], FunctionDeclaration: ["id", "params", "body"], FunctionExpression: ["id", "params", "body"], GeneratorExpression: ["blocks", "filter", "body"], Identifier: [], IfStatement: ["test", "consequent", "alternate"], ImportExpression: ["source"], ImportDeclaration: ["specifiers", "source"], ImportDefaultSpecifier: ["local"], ImportNamespaceSpecifier: ["local"], ImportSpecifier: ["imported", "local"], Literal: [], LabeledStatement: ["label", "body"], LogicalExpression: ["left", "right"], MemberExpression: ["object", "property"], MetaProperty: ["meta", "property"], MethodDefinition: ["key", "value"], ModuleSpecifier: [], NewExpression: ["callee", "arguments"], ObjectExpression: ["properties"], ObjectPattern: ["properties"], PrivateIdentifier: [], Program: ["body"], Property: ["key", "value"], PropertyDefinition: ["key", "value"], RestElement: ["argument"], ReturnStatement: ["argument"], SequenceExpression: ["expressions"], SpreadElement: ["argument"], Super: [], SwitchStatement: ["discriminant", "cases"], SwitchCase: ["test", "consequent"], TaggedTemplateExpression: ["tag", "quasi"], TemplateElement: [], TemplateLiteral: ["quasis", "expressions"], ThisExpression: [], ThrowStatement: ["argument"], TryStatement: ["block", "handler", "finalizer"], UnaryExpression: ["argument"], UpdateExpression: ["argument"], VariableDeclaration: ["declarations"], VariableDeclarator: ["id", "init"], WhileStatement: ["test", "body"], WithStatement: ["object", "body"], YieldExpression: ["argument"] }, n2 = { Break: a2 = {}, Skip: i2 = {}, Remove: s2 = {} }, l2.prototype.replace = function(e4) {
|
|
96
|
+
this.parent[this.key] = e4;
|
|
97
|
+
}, l2.prototype.remove = function() {
|
|
98
|
+
return Array.isArray(this.parent) ? (this.parent.splice(this.key, 1), true) : (this.replace(null), false);
|
|
99
|
+
}, f2.prototype.path = function() {
|
|
100
|
+
var e4, t4, r3, n3, o3;
|
|
101
|
+
function a3(e5, t5) {
|
|
102
|
+
if (Array.isArray(t5)) for (r3 = 0, n3 = t5.length; r3 < n3; ++r3) e5.push(t5[r3]);
|
|
103
|
+
else e5.push(t5);
|
|
104
|
+
}
|
|
105
|
+
if (!this.__current.path) return null;
|
|
106
|
+
for (o3 = [], e4 = 2, t4 = this.__leavelist.length; e4 < t4; ++e4) a3(o3, this.__leavelist[e4].path);
|
|
107
|
+
return a3(o3, this.__current.path), o3;
|
|
108
|
+
}, f2.prototype.type = function() {
|
|
109
|
+
return this.current().type || this.__current.wrap;
|
|
110
|
+
}, f2.prototype.parents = function() {
|
|
111
|
+
var e4, t4, r3;
|
|
112
|
+
for (r3 = [], e4 = 1, t4 = this.__leavelist.length; e4 < t4; ++e4) r3.push(this.__leavelist[e4].node);
|
|
113
|
+
return r3;
|
|
114
|
+
}, f2.prototype.current = function() {
|
|
115
|
+
return this.__current.node;
|
|
116
|
+
}, f2.prototype.__execute = function(e4, t4) {
|
|
117
|
+
var r3, n3;
|
|
118
|
+
return n3 = void 0, r3 = this.__current, this.__current = t4, this.__state = null, e4 && (n3 = e4.call(this, t4.node, this.__leavelist[this.__leavelist.length - 1].node)), this.__current = r3, n3;
|
|
119
|
+
}, f2.prototype.notify = function(e4) {
|
|
120
|
+
this.__state = e4;
|
|
121
|
+
}, f2.prototype.skip = function() {
|
|
122
|
+
this.notify(i2);
|
|
123
|
+
}, f2.prototype.break = function() {
|
|
124
|
+
this.notify(a2);
|
|
125
|
+
}, f2.prototype.remove = function() {
|
|
126
|
+
this.notify(s2);
|
|
127
|
+
}, f2.prototype.__initialize = function(e4, t4) {
|
|
128
|
+
this.visitor = t4, this.root = e4, this.__worklist = [], this.__leavelist = [], this.__current = null, this.__state = null, this.__fallback = null, "iteration" === t4.fallback ? this.__fallback = Object.keys : "function" == typeof t4.fallback && (this.__fallback = t4.fallback), this.__keys = o2, t4.keys && (this.__keys = Object.assign(Object.create(this.__keys), t4.keys));
|
|
129
|
+
}, f2.prototype.traverse = function(e4, t4) {
|
|
130
|
+
var r3, n3, o3, s3, u3, l3, f3, d3, m3, x2, v2, g2;
|
|
131
|
+
for (this.__initialize(e4, t4), g2 = {}, r3 = this.__worklist, n3 = this.__leavelist, r3.push(new c2(e4, null, null, null)), n3.push(new c2(null, null, null, null)); r3.length; ) if ((o3 = r3.pop()) !== g2) {
|
|
132
|
+
if (o3.node) {
|
|
133
|
+
if (l3 = this.__execute(t4.enter, o3), this.__state === a2 || l3 === a2) return;
|
|
134
|
+
if (r3.push(g2), n3.push(o3), this.__state === i2 || l3 === i2) continue;
|
|
135
|
+
if (u3 = (s3 = o3.node).type || o3.wrap, !(x2 = this.__keys[u3])) {
|
|
136
|
+
if (!this.__fallback) throw new Error("Unknown node type " + u3 + ".");
|
|
137
|
+
x2 = this.__fallback(s3);
|
|
138
|
+
}
|
|
139
|
+
for (d3 = x2.length; (d3 -= 1) >= 0; ) if (v2 = s3[f3 = x2[d3]]) {
|
|
140
|
+
if (Array.isArray(v2)) {
|
|
141
|
+
for (m3 = v2.length; (m3 -= 1) >= 0; ) if (v2[m3] && !y2(n3, v2[m3])) {
|
|
142
|
+
if (h2(u3, x2[d3])) o3 = new c2(v2[m3], [f3, m3], "Property", null);
|
|
143
|
+
else {
|
|
144
|
+
if (!p2(v2[m3])) continue;
|
|
145
|
+
o3 = new c2(v2[m3], [f3, m3], null, null);
|
|
146
|
+
}
|
|
147
|
+
r3.push(o3);
|
|
148
|
+
}
|
|
149
|
+
} else if (p2(v2)) {
|
|
150
|
+
if (y2(n3, v2)) continue;
|
|
151
|
+
r3.push(new c2(v2, f3, null, null));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
} else if (o3 = n3.pop(), l3 = this.__execute(t4.leave, o3), this.__state === a2 || l3 === a2) return;
|
|
156
|
+
}, f2.prototype.replace = function(e4, t4) {
|
|
157
|
+
var r3, n3, o3, u3, f3, y3, d3, m3, x2, v2, g2, A2, E;
|
|
158
|
+
function b(e5) {
|
|
159
|
+
var t5, n4, o4, a3;
|
|
160
|
+
if (e5.ref.remove()) {
|
|
161
|
+
for (n4 = e5.ref.key, a3 = e5.ref.parent, t5 = r3.length; t5--; ) if ((o4 = r3[t5]).ref && o4.ref.parent === a3) {
|
|
162
|
+
if (o4.ref.key < n4) break;
|
|
163
|
+
--o4.ref.key;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
for (this.__initialize(e4, t4), g2 = {}, r3 = this.__worklist, n3 = this.__leavelist, y3 = new c2(e4, null, null, new l2(A2 = { root: e4 }, "root")), r3.push(y3), n3.push(y3); r3.length; ) if ((y3 = r3.pop()) !== g2) {
|
|
168
|
+
if (void 0 !== (f3 = this.__execute(t4.enter, y3)) && f3 !== a2 && f3 !== i2 && f3 !== s2 && (y3.ref.replace(f3), y3.node = f3), this.__state !== s2 && f3 !== s2 || (b(y3), y3.node = null), this.__state === a2 || f3 === a2) return A2.root;
|
|
169
|
+
if ((o3 = y3.node) && (r3.push(g2), n3.push(y3), this.__state !== i2 && f3 !== i2)) {
|
|
170
|
+
if (u3 = o3.type || y3.wrap, !(x2 = this.__keys[u3])) {
|
|
171
|
+
if (!this.__fallback) throw new Error("Unknown node type " + u3 + ".");
|
|
172
|
+
x2 = this.__fallback(o3);
|
|
173
|
+
}
|
|
174
|
+
for (d3 = x2.length; (d3 -= 1) >= 0; ) if (v2 = o3[E = x2[d3]]) if (Array.isArray(v2)) {
|
|
175
|
+
for (m3 = v2.length; (m3 -= 1) >= 0; ) if (v2[m3]) {
|
|
176
|
+
if (h2(u3, x2[d3])) y3 = new c2(v2[m3], [E, m3], "Property", new l2(v2, m3));
|
|
177
|
+
else {
|
|
178
|
+
if (!p2(v2[m3])) continue;
|
|
179
|
+
y3 = new c2(v2[m3], [E, m3], null, new l2(v2, m3));
|
|
180
|
+
}
|
|
181
|
+
r3.push(y3);
|
|
182
|
+
}
|
|
183
|
+
} else p2(v2) && r3.push(new c2(v2, E, null, new l2(o3, E)));
|
|
184
|
+
}
|
|
185
|
+
} else if (y3 = n3.pop(), void 0 !== (f3 = this.__execute(t4.leave, y3)) && f3 !== a2 && f3 !== i2 && f3 !== s2 && y3.ref.replace(f3), this.__state !== s2 && f3 !== s2 || b(y3), this.__state === a2 || f3 === a2) return A2.root;
|
|
186
|
+
return A2.root;
|
|
187
|
+
}, t3.Syntax = r2, t3.traverse = d2, t3.replace = function(e4, t4) {
|
|
188
|
+
return new f2().replace(e4, t4);
|
|
189
|
+
}, t3.attachComments = function(e4, t4, r3) {
|
|
190
|
+
var o3, a3, i3, s3, l3 = [];
|
|
191
|
+
if (!e4.range) throw new Error("attachComments needs range information");
|
|
192
|
+
if (!r3.length) {
|
|
193
|
+
if (t4.length) {
|
|
194
|
+
for (i3 = 0, a3 = t4.length; i3 < a3; i3 += 1) (o3 = u2(t4[i3])).extendedRange = [0, e4.range[0]], l3.push(o3);
|
|
195
|
+
e4.leadingComments = l3;
|
|
196
|
+
}
|
|
197
|
+
return e4;
|
|
198
|
+
}
|
|
199
|
+
for (i3 = 0, a3 = t4.length; i3 < a3; i3 += 1) l3.push(m2(u2(t4[i3]), r3));
|
|
200
|
+
return s3 = 0, d2(e4, { enter: function(e5) {
|
|
201
|
+
for (var t5; s3 < l3.length && !((t5 = l3[s3]).extendedRange[1] > e5.range[0]); ) t5.extendedRange[1] === e5.range[0] ? (e5.leadingComments || (e5.leadingComments = []), e5.leadingComments.push(t5), l3.splice(s3, 1)) : s3 += 1;
|
|
202
|
+
return s3 === l3.length ? n2.Break : l3[s3].extendedRange[0] > e5.range[1] ? n2.Skip : void 0;
|
|
203
|
+
} }), s3 = 0, d2(e4, { leave: function(e5) {
|
|
204
|
+
for (var t5; s3 < l3.length && (t5 = l3[s3], !(e5.range[1] < t5.extendedRange[0])); ) e5.range[1] === t5.extendedRange[0] ? (e5.trailingComments || (e5.trailingComments = []), e5.trailingComments.push(t5), l3.splice(s3, 1)) : s3 += 1;
|
|
205
|
+
return s3 === l3.length ? n2.Break : l3[s3].extendedRange[0] > e5.range[1] ? n2.Skip : void 0;
|
|
206
|
+
} }), e4;
|
|
207
|
+
}, t3.VisitorKeys = o2, t3.VisitorOption = n2, t3.Controller = f2, t3.cloneEnvironment = function() {
|
|
208
|
+
return e3({});
|
|
209
|
+
}, t3;
|
|
210
|
+
})(t2);
|
|
211
|
+
})), s = a((function(e2) {
|
|
212
|
+
e2.exports && (e2.exports = (function() {
|
|
213
|
+
function e3(t2, r2, n2, o2) {
|
|
214
|
+
this.message = t2, this.expected = r2, this.found = n2, this.location = o2, this.name = "SyntaxError", "function" == typeof Error.captureStackTrace && Error.captureStackTrace(this, e3);
|
|
215
|
+
}
|
|
216
|
+
return (function(e4, t2) {
|
|
217
|
+
function r2() {
|
|
218
|
+
this.constructor = e4;
|
|
219
|
+
}
|
|
220
|
+
r2.prototype = t2.prototype, e4.prototype = new r2();
|
|
221
|
+
})(e3, Error), e3.buildMessage = function(e4, t2) {
|
|
222
|
+
var r2 = { literal: function(e5) {
|
|
223
|
+
return '"' + o2(e5.text) + '"';
|
|
224
|
+
}, class: function(e5) {
|
|
225
|
+
var t3, r3 = "";
|
|
226
|
+
for (t3 = 0; t3 < e5.parts.length; t3++) r3 += e5.parts[t3] instanceof Array ? a2(e5.parts[t3][0]) + "-" + a2(e5.parts[t3][1]) : a2(e5.parts[t3]);
|
|
227
|
+
return "[" + (e5.inverted ? "^" : "") + r3 + "]";
|
|
228
|
+
}, any: function(e5) {
|
|
229
|
+
return "any character";
|
|
230
|
+
}, end: function(e5) {
|
|
231
|
+
return "end of input";
|
|
232
|
+
}, other: function(e5) {
|
|
233
|
+
return e5.description;
|
|
234
|
+
} };
|
|
235
|
+
function n2(e5) {
|
|
236
|
+
return e5.charCodeAt(0).toString(16).toUpperCase();
|
|
237
|
+
}
|
|
238
|
+
function o2(e5) {
|
|
239
|
+
return e5.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (function(e6) {
|
|
240
|
+
return "\\x0" + n2(e6);
|
|
241
|
+
})).replace(/[\x10-\x1F\x7F-\x9F]/g, (function(e6) {
|
|
242
|
+
return "\\x" + n2(e6);
|
|
243
|
+
}));
|
|
244
|
+
}
|
|
245
|
+
function a2(e5) {
|
|
246
|
+
return e5.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (function(e6) {
|
|
247
|
+
return "\\x0" + n2(e6);
|
|
248
|
+
})).replace(/[\x10-\x1F\x7F-\x9F]/g, (function(e6) {
|
|
249
|
+
return "\\x" + n2(e6);
|
|
250
|
+
}));
|
|
251
|
+
}
|
|
252
|
+
return "Expected " + (function(e5) {
|
|
253
|
+
var t3, n3, o3, a3 = new Array(e5.length);
|
|
254
|
+
for (t3 = 0; t3 < e5.length; t3++) a3[t3] = (o3 = e5[t3], r2[o3.type](o3));
|
|
255
|
+
if (a3.sort(), a3.length > 0) {
|
|
256
|
+
for (t3 = 1, n3 = 1; t3 < a3.length; t3++) a3[t3 - 1] !== a3[t3] && (a3[n3] = a3[t3], n3++);
|
|
257
|
+
a3.length = n3;
|
|
258
|
+
}
|
|
259
|
+
switch (a3.length) {
|
|
260
|
+
case 1:
|
|
261
|
+
return a3[0];
|
|
262
|
+
case 2:
|
|
263
|
+
return a3[0] + " or " + a3[1];
|
|
264
|
+
default:
|
|
265
|
+
return a3.slice(0, -1).join(", ") + ", or " + a3[a3.length - 1];
|
|
266
|
+
}
|
|
267
|
+
})(e4) + " but " + (function(e5) {
|
|
268
|
+
return e5 ? '"' + o2(e5) + '"' : "end of input";
|
|
269
|
+
})(t2) + " found.";
|
|
270
|
+
}, { SyntaxError: e3, parse: function(t2, r2) {
|
|
271
|
+
r2 = void 0 !== r2 ? r2 : {};
|
|
272
|
+
var n2, o2, a2, i2, s2 = {}, u2 = { start: Ae }, l2 = Ae, c2 = de(" ", false), f2 = /^[^ [\],():#!=><~+.]/, p2 = me([" ", "[", "]", ",", "(", ")", ":", "#", "!", "=", ">", "<", "~", "+", "."], true, false), h2 = de(">", false), y2 = de("~", false), d2 = de("+", false), m2 = de(",", false), x2 = function(e4, t3) {
|
|
273
|
+
return [e4].concat(t3.map((function(e5) {
|
|
274
|
+
return e5[3];
|
|
275
|
+
})));
|
|
276
|
+
}, v2 = de("!", false), g2 = de("*", false), A2 = de("#", false), E = de("[", false), b = de("]", false), S = /^[><!]/, _ = me([">", "<", "!"], false, false), C = de("=", false), P = function(e4) {
|
|
277
|
+
return (e4 || "") + "=";
|
|
278
|
+
}, w = /^[><]/, k = me([">", "<"], false, false), D = de(".", false), I = function(e4, t3, r3) {
|
|
279
|
+
return { type: "attribute", name: e4, operator: t3, value: r3 };
|
|
280
|
+
}, j = de('"', false), T = /^[^\\"]/, F = me(["\\", '"'], true, false), R = de("\\", false), O = { type: "any" }, L = function(e4, t3) {
|
|
281
|
+
return e4 + t3;
|
|
282
|
+
}, M = function(e4) {
|
|
283
|
+
return { type: "literal", value: (t3 = e4.join(""), t3.replace(/\\(.)/g, (function(e5, t4) {
|
|
284
|
+
switch (t4) {
|
|
285
|
+
case "b":
|
|
286
|
+
return "\b";
|
|
287
|
+
case "f":
|
|
288
|
+
return "\f";
|
|
289
|
+
case "n":
|
|
290
|
+
return "\n";
|
|
291
|
+
case "r":
|
|
292
|
+
return "\r";
|
|
293
|
+
case "t":
|
|
294
|
+
return " ";
|
|
295
|
+
case "v":
|
|
296
|
+
return "\v";
|
|
297
|
+
default:
|
|
298
|
+
return t4;
|
|
299
|
+
}
|
|
300
|
+
}))) };
|
|
301
|
+
var t3;
|
|
302
|
+
}, B = de("'", false), U = /^[^\\']/, K = me(["\\", "'"], true, false), N = /^[0-9]/, W = me([["0", "9"]], false, false), V = de("type(", false), q = /^[^ )]/, G = me([" ", ")"], true, false), z = de(")", false), H = /^[imsu]/, Y = me(["i", "m", "s", "u"], false, false), $ = de("/", false), J = /^[^\]\\]/, Q = me(["]", "\\"], true, false), X = /^[^\/\\[]/, Z = me(["/", "\\", "["], true, false), ee = de(":not(", false), te = de(":matches(", false), re = function(e4) {
|
|
303
|
+
return { type: "matches", selectors: e4 };
|
|
304
|
+
}, ne = de(":is(", false), oe = de(":has(", false), ae = de(":first-child", false), ie = de(":last-child", false), se = de(":nth-child(", false), ue = de(":nth-last-child(", false), le = de(":", false), ce = 0, fe = [{ line: 1, column: 1 }], pe = 0, he = [], ye = {};
|
|
305
|
+
if ("startRule" in r2) {
|
|
306
|
+
if (!(r2.startRule in u2)) throw new Error(`Can't start parsing from rule "` + r2.startRule + '".');
|
|
307
|
+
l2 = u2[r2.startRule];
|
|
308
|
+
}
|
|
309
|
+
function de(e4, t3) {
|
|
310
|
+
return { type: "literal", text: e4, ignoreCase: t3 };
|
|
311
|
+
}
|
|
312
|
+
function me(e4, t3, r3) {
|
|
313
|
+
return { type: "class", parts: e4, inverted: t3, ignoreCase: r3 };
|
|
314
|
+
}
|
|
315
|
+
function xe(e4) {
|
|
316
|
+
var r3, n3 = fe[e4];
|
|
317
|
+
if (n3) return n3;
|
|
318
|
+
for (r3 = e4 - 1; !fe[r3]; ) r3--;
|
|
319
|
+
for (n3 = { line: (n3 = fe[r3]).line, column: n3.column }; r3 < e4; ) 10 === t2.charCodeAt(r3) ? (n3.line++, n3.column = 1) : n3.column++, r3++;
|
|
320
|
+
return fe[e4] = n3, n3;
|
|
321
|
+
}
|
|
322
|
+
function ve(e4, t3) {
|
|
323
|
+
var r3 = xe(e4), n3 = xe(t3);
|
|
324
|
+
return { start: { offset: e4, line: r3.line, column: r3.column }, end: { offset: t3, line: n3.line, column: n3.column } };
|
|
325
|
+
}
|
|
326
|
+
function ge(e4) {
|
|
327
|
+
ce < pe || (ce > pe && (pe = ce, he = []), he.push(e4));
|
|
328
|
+
}
|
|
329
|
+
function Ae() {
|
|
330
|
+
var e4, t3, r3, n3, o3 = 36 * ce + 0, a3 = ye[o3];
|
|
331
|
+
return a3 ? (ce = a3.nextPos, a3.result) : (e4 = ce, (t3 = Ee()) !== s2 && (r3 = _e()) !== s2 && Ee() !== s2 ? e4 = t3 = 1 === (n3 = r3).length ? n3[0] : { type: "matches", selectors: n3 } : (ce = e4, e4 = s2), e4 === s2 && (e4 = ce, (t3 = Ee()) !== s2 && (t3 = void 0), e4 = t3), ye[o3] = { nextPos: ce, result: e4 }, e4);
|
|
332
|
+
}
|
|
333
|
+
function Ee() {
|
|
334
|
+
var e4, r3, n3 = 36 * ce + 1, o3 = ye[n3];
|
|
335
|
+
if (o3) return ce = o3.nextPos, o3.result;
|
|
336
|
+
for (e4 = [], 32 === t2.charCodeAt(ce) ? (r3 = " ", ce++) : (r3 = s2, ge(c2)); r3 !== s2; ) e4.push(r3), 32 === t2.charCodeAt(ce) ? (r3 = " ", ce++) : (r3 = s2, ge(c2));
|
|
337
|
+
return ye[n3] = { nextPos: ce, result: e4 }, e4;
|
|
338
|
+
}
|
|
339
|
+
function be() {
|
|
340
|
+
var e4, r3, n3, o3 = 36 * ce + 2, a3 = ye[o3];
|
|
341
|
+
if (a3) return ce = a3.nextPos, a3.result;
|
|
342
|
+
if (r3 = [], f2.test(t2.charAt(ce)) ? (n3 = t2.charAt(ce), ce++) : (n3 = s2, ge(p2)), n3 !== s2) for (; n3 !== s2; ) r3.push(n3), f2.test(t2.charAt(ce)) ? (n3 = t2.charAt(ce), ce++) : (n3 = s2, ge(p2));
|
|
343
|
+
else r3 = s2;
|
|
344
|
+
return r3 !== s2 && (r3 = r3.join("")), e4 = r3, ye[o3] = { nextPos: ce, result: e4 }, e4;
|
|
345
|
+
}
|
|
346
|
+
function Se() {
|
|
347
|
+
var e4, r3, n3, o3 = 36 * ce + 3, a3 = ye[o3];
|
|
348
|
+
return a3 ? (ce = a3.nextPos, a3.result) : (e4 = ce, (r3 = Ee()) !== s2 ? (62 === t2.charCodeAt(ce) ? (n3 = ">", ce++) : (n3 = s2, ge(h2)), n3 !== s2 && Ee() !== s2 ? e4 = r3 = "child" : (ce = e4, e4 = s2)) : (ce = e4, e4 = s2), e4 === s2 && (e4 = ce, (r3 = Ee()) !== s2 ? (126 === t2.charCodeAt(ce) ? (n3 = "~", ce++) : (n3 = s2, ge(y2)), n3 !== s2 && Ee() !== s2 ? e4 = r3 = "sibling" : (ce = e4, e4 = s2)) : (ce = e4, e4 = s2), e4 === s2 && (e4 = ce, (r3 = Ee()) !== s2 ? (43 === t2.charCodeAt(ce) ? (n3 = "+", ce++) : (n3 = s2, ge(d2)), n3 !== s2 && Ee() !== s2 ? e4 = r3 = "adjacent" : (ce = e4, e4 = s2)) : (ce = e4, e4 = s2), e4 === s2 && (e4 = ce, 32 === t2.charCodeAt(ce) ? (r3 = " ", ce++) : (r3 = s2, ge(c2)), r3 !== s2 && (n3 = Ee()) !== s2 ? e4 = r3 = "descendant" : (ce = e4, e4 = s2)))), ye[o3] = { nextPos: ce, result: e4 }, e4);
|
|
349
|
+
}
|
|
350
|
+
function _e() {
|
|
351
|
+
var e4, r3, n3, o3, a3, i3, u3, l3, c3 = 36 * ce + 5, f3 = ye[c3];
|
|
352
|
+
if (f3) return ce = f3.nextPos, f3.result;
|
|
353
|
+
if (e4 = ce, (r3 = Pe()) !== s2) {
|
|
354
|
+
for (n3 = [], o3 = ce, (a3 = Ee()) !== s2 ? (44 === t2.charCodeAt(ce) ? (i3 = ",", ce++) : (i3 = s2, ge(m2)), i3 !== s2 && (u3 = Ee()) !== s2 && (l3 = Pe()) !== s2 ? o3 = a3 = [a3, i3, u3, l3] : (ce = o3, o3 = s2)) : (ce = o3, o3 = s2); o3 !== s2; ) n3.push(o3), o3 = ce, (a3 = Ee()) !== s2 ? (44 === t2.charCodeAt(ce) ? (i3 = ",", ce++) : (i3 = s2, ge(m2)), i3 !== s2 && (u3 = Ee()) !== s2 && (l3 = Pe()) !== s2 ? o3 = a3 = [a3, i3, u3, l3] : (ce = o3, o3 = s2)) : (ce = o3, o3 = s2);
|
|
355
|
+
n3 !== s2 ? e4 = r3 = x2(r3, n3) : (ce = e4, e4 = s2);
|
|
356
|
+
} else ce = e4, e4 = s2;
|
|
357
|
+
return ye[c3] = { nextPos: ce, result: e4 }, e4;
|
|
358
|
+
}
|
|
359
|
+
function Ce() {
|
|
360
|
+
var e4, t3, r3, n3, o3, a3 = 36 * ce + 6, i3 = ye[a3];
|
|
361
|
+
return i3 ? (ce = i3.nextPos, i3.result) : (e4 = ce, (t3 = Se()) === s2 && (t3 = null), t3 !== s2 && (r3 = Pe()) !== s2 ? (o3 = r3, e4 = t3 = (n3 = t3) ? { type: n3, left: { type: "exactNode" }, right: o3 } : o3) : (ce = e4, e4 = s2), ye[a3] = { nextPos: ce, result: e4 }, e4);
|
|
362
|
+
}
|
|
363
|
+
function Pe() {
|
|
364
|
+
var e4, t3, r3, n3, o3, a3, i3, u3 = 36 * ce + 7, l3 = ye[u3];
|
|
365
|
+
if (l3) return ce = l3.nextPos, l3.result;
|
|
366
|
+
if (e4 = ce, (t3 = we()) !== s2) {
|
|
367
|
+
for (r3 = [], n3 = ce, (o3 = Se()) !== s2 && (a3 = we()) !== s2 ? n3 = o3 = [o3, a3] : (ce = n3, n3 = s2); n3 !== s2; ) r3.push(n3), n3 = ce, (o3 = Se()) !== s2 && (a3 = we()) !== s2 ? n3 = o3 = [o3, a3] : (ce = n3, n3 = s2);
|
|
368
|
+
r3 !== s2 ? (i3 = t3, e4 = t3 = r3.reduce((function(e5, t4) {
|
|
369
|
+
return { type: t4[0], left: e5, right: t4[1] };
|
|
370
|
+
}), i3)) : (ce = e4, e4 = s2);
|
|
371
|
+
} else ce = e4, e4 = s2;
|
|
372
|
+
return ye[u3] = { nextPos: ce, result: e4 }, e4;
|
|
373
|
+
}
|
|
374
|
+
function we() {
|
|
375
|
+
var e4, r3, n3, o3, a3, i3, u3, l3 = 36 * ce + 8, c3 = ye[l3];
|
|
376
|
+
if (c3) return ce = c3.nextPos, c3.result;
|
|
377
|
+
if (e4 = ce, 33 === t2.charCodeAt(ce) ? (r3 = "!", ce++) : (r3 = s2, ge(v2)), r3 === s2 && (r3 = null), r3 !== s2) {
|
|
378
|
+
if (n3 = [], (o3 = ke()) !== s2) for (; o3 !== s2; ) n3.push(o3), o3 = ke();
|
|
379
|
+
else n3 = s2;
|
|
380
|
+
n3 !== s2 ? (a3 = r3, u3 = 1 === (i3 = n3).length ? i3[0] : { type: "compound", selectors: i3 }, a3 && (u3.subject = true), e4 = r3 = u3) : (ce = e4, e4 = s2);
|
|
381
|
+
} else ce = e4, e4 = s2;
|
|
382
|
+
return ye[l3] = { nextPos: ce, result: e4 }, e4;
|
|
383
|
+
}
|
|
384
|
+
function ke() {
|
|
385
|
+
var e4, r3 = 36 * ce + 9, n3 = ye[r3];
|
|
386
|
+
return n3 ? (ce = n3.nextPos, n3.result) : ((e4 = (function() {
|
|
387
|
+
var e5, r4, n4 = 36 * ce + 10, o3 = ye[n4];
|
|
388
|
+
return o3 ? (ce = o3.nextPos, o3.result) : (42 === t2.charCodeAt(ce) ? (r4 = "*", ce++) : (r4 = s2, ge(g2)), r4 !== s2 && (r4 = { type: "wildcard", value: r4 }), e5 = r4, ye[n4] = { nextPos: ce, result: e5 }, e5);
|
|
389
|
+
})()) === s2 && (e4 = (function() {
|
|
390
|
+
var e5, r4, n4, o3 = 36 * ce + 11, a3 = ye[o3];
|
|
391
|
+
return a3 ? (ce = a3.nextPos, a3.result) : (e5 = ce, 35 === t2.charCodeAt(ce) ? (r4 = "#", ce++) : (r4 = s2, ge(A2)), r4 === s2 && (r4 = null), r4 !== s2 && (n4 = be()) !== s2 ? e5 = r4 = { type: "identifier", value: n4 } : (ce = e5, e5 = s2), ye[o3] = { nextPos: ce, result: e5 }, e5);
|
|
392
|
+
})()) === s2 && (e4 = (function() {
|
|
393
|
+
var e5, r4, n4, o3, a3 = 36 * ce + 12, i3 = ye[a3];
|
|
394
|
+
return i3 ? (ce = i3.nextPos, i3.result) : (e5 = ce, 91 === t2.charCodeAt(ce) ? (r4 = "[", ce++) : (r4 = s2, ge(E)), r4 !== s2 && Ee() !== s2 && (n4 = (function() {
|
|
395
|
+
var e6, r5, n5, o4, a4 = 36 * ce + 16, i4 = ye[a4];
|
|
396
|
+
return i4 ? (ce = i4.nextPos, i4.result) : (e6 = ce, (r5 = De()) !== s2 && Ee() !== s2 && (n5 = (function() {
|
|
397
|
+
var e7, r6, n6, o5 = 36 * ce + 14, a5 = ye[o5];
|
|
398
|
+
return a5 ? (ce = a5.nextPos, a5.result) : (e7 = ce, 33 === t2.charCodeAt(ce) ? (r6 = "!", ce++) : (r6 = s2, ge(v2)), r6 === s2 && (r6 = null), r6 !== s2 ? (61 === t2.charCodeAt(ce) ? (n6 = "=", ce++) : (n6 = s2, ge(C)), n6 !== s2 ? (r6 = P(r6), e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2), ye[o5] = { nextPos: ce, result: e7 }, e7);
|
|
399
|
+
})()) !== s2 && Ee() !== s2 ? ((o4 = (function() {
|
|
400
|
+
var e7, r6, n6, o5, a5, i5 = 36 * ce + 20, u3 = ye[i5];
|
|
401
|
+
if (u3) return ce = u3.nextPos, u3.result;
|
|
402
|
+
if (e7 = ce, "type(" === t2.substr(ce, 5) ? (r6 = "type(", ce += 5) : (r6 = s2, ge(V)), r6 !== s2) if (Ee() !== s2) {
|
|
403
|
+
if (n6 = [], q.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(G)), o5 !== s2) for (; o5 !== s2; ) n6.push(o5), q.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(G));
|
|
404
|
+
else n6 = s2;
|
|
405
|
+
n6 !== s2 && (o5 = Ee()) !== s2 ? (41 === t2.charCodeAt(ce) ? (a5 = ")", ce++) : (a5 = s2, ge(z)), a5 !== s2 ? (r6 = { type: "type", value: n6.join("") }, e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2);
|
|
406
|
+
} else ce = e7, e7 = s2;
|
|
407
|
+
else ce = e7, e7 = s2;
|
|
408
|
+
return ye[i5] = { nextPos: ce, result: e7 }, e7;
|
|
409
|
+
})()) === s2 && (o4 = (function() {
|
|
410
|
+
var e7, r6, n6, o5, a5, i5, u3 = 36 * ce + 22, l3 = ye[u3];
|
|
411
|
+
if (l3) return ce = l3.nextPos, l3.result;
|
|
412
|
+
if (e7 = ce, 47 === t2.charCodeAt(ce) ? (r6 = "/", ce++) : (r6 = s2, ge($)), r6 !== s2) {
|
|
413
|
+
if (n6 = [], (o5 = Ie()) === s2 && (o5 = je()) === s2 && (o5 = Te()), o5 !== s2) for (; o5 !== s2; ) n6.push(o5), (o5 = Ie()) === s2 && (o5 = je()) === s2 && (o5 = Te());
|
|
414
|
+
else n6 = s2;
|
|
415
|
+
n6 !== s2 ? (47 === t2.charCodeAt(ce) ? (o5 = "/", ce++) : (o5 = s2, ge($)), o5 !== s2 ? ((a5 = (function() {
|
|
416
|
+
var e8, r7, n7 = 36 * ce + 21, o6 = ye[n7];
|
|
417
|
+
if (o6) return ce = o6.nextPos, o6.result;
|
|
418
|
+
if (e8 = [], H.test(t2.charAt(ce)) ? (r7 = t2.charAt(ce), ce++) : (r7 = s2, ge(Y)), r7 !== s2) for (; r7 !== s2; ) e8.push(r7), H.test(t2.charAt(ce)) ? (r7 = t2.charAt(ce), ce++) : (r7 = s2, ge(Y));
|
|
419
|
+
else e8 = s2;
|
|
420
|
+
return ye[n7] = { nextPos: ce, result: e8 }, e8;
|
|
421
|
+
})()) === s2 && (a5 = null), a5 !== s2 ? (i5 = a5, r6 = { type: "regexp", value: new RegExp(n6.join(""), i5 ? i5.join("") : "") }, e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2);
|
|
422
|
+
} else ce = e7, e7 = s2;
|
|
423
|
+
return ye[u3] = { nextPos: ce, result: e7 }, e7;
|
|
424
|
+
})()), o4 !== s2 ? (r5 = I(r5, n5, o4), e6 = r5) : (ce = e6, e6 = s2)) : (ce = e6, e6 = s2), e6 === s2 && (e6 = ce, (r5 = De()) !== s2 && Ee() !== s2 && (n5 = (function() {
|
|
425
|
+
var e7, r6, n6, o5 = 36 * ce + 13, a5 = ye[o5];
|
|
426
|
+
return a5 ? (ce = a5.nextPos, a5.result) : (e7 = ce, S.test(t2.charAt(ce)) ? (r6 = t2.charAt(ce), ce++) : (r6 = s2, ge(_)), r6 === s2 && (r6 = null), r6 !== s2 ? (61 === t2.charCodeAt(ce) ? (n6 = "=", ce++) : (n6 = s2, ge(C)), n6 !== s2 ? (r6 = P(r6), e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2), e7 === s2 && (w.test(t2.charAt(ce)) ? (e7 = t2.charAt(ce), ce++) : (e7 = s2, ge(k))), ye[o5] = { nextPos: ce, result: e7 }, e7);
|
|
427
|
+
})()) !== s2 && Ee() !== s2 ? ((o4 = (function() {
|
|
428
|
+
var e7, r6, n6, o5, a5, i5, u3 = 36 * ce + 17, l3 = ye[u3];
|
|
429
|
+
if (l3) return ce = l3.nextPos, l3.result;
|
|
430
|
+
if (e7 = ce, 34 === t2.charCodeAt(ce) ? (r6 = '"', ce++) : (r6 = s2, ge(j)), r6 !== s2) {
|
|
431
|
+
for (n6 = [], T.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(F)), o5 === s2 && (o5 = ce, 92 === t2.charCodeAt(ce) ? (a5 = "\\", ce++) : (a5 = s2, ge(R)), a5 !== s2 ? (t2.length > ce ? (i5 = t2.charAt(ce), ce++) : (i5 = s2, ge(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ce = o5, o5 = s2)) : (ce = o5, o5 = s2)); o5 !== s2; ) n6.push(o5), T.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(F)), o5 === s2 && (o5 = ce, 92 === t2.charCodeAt(ce) ? (a5 = "\\", ce++) : (a5 = s2, ge(R)), a5 !== s2 ? (t2.length > ce ? (i5 = t2.charAt(ce), ce++) : (i5 = s2, ge(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ce = o5, o5 = s2)) : (ce = o5, o5 = s2));
|
|
432
|
+
n6 !== s2 ? (34 === t2.charCodeAt(ce) ? (o5 = '"', ce++) : (o5 = s2, ge(j)), o5 !== s2 ? (r6 = M(n6), e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2);
|
|
433
|
+
} else ce = e7, e7 = s2;
|
|
434
|
+
if (e7 === s2) if (e7 = ce, 39 === t2.charCodeAt(ce) ? (r6 = "'", ce++) : (r6 = s2, ge(B)), r6 !== s2) {
|
|
435
|
+
for (n6 = [], U.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(K)), o5 === s2 && (o5 = ce, 92 === t2.charCodeAt(ce) ? (a5 = "\\", ce++) : (a5 = s2, ge(R)), a5 !== s2 ? (t2.length > ce ? (i5 = t2.charAt(ce), ce++) : (i5 = s2, ge(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ce = o5, o5 = s2)) : (ce = o5, o5 = s2)); o5 !== s2; ) n6.push(o5), U.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(K)), o5 === s2 && (o5 = ce, 92 === t2.charCodeAt(ce) ? (a5 = "\\", ce++) : (a5 = s2, ge(R)), a5 !== s2 ? (t2.length > ce ? (i5 = t2.charAt(ce), ce++) : (i5 = s2, ge(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ce = o5, o5 = s2)) : (ce = o5, o5 = s2));
|
|
436
|
+
n6 !== s2 ? (39 === t2.charCodeAt(ce) ? (o5 = "'", ce++) : (o5 = s2, ge(B)), o5 !== s2 ? (r6 = M(n6), e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2);
|
|
437
|
+
} else ce = e7, e7 = s2;
|
|
438
|
+
return ye[u3] = { nextPos: ce, result: e7 }, e7;
|
|
439
|
+
})()) === s2 && (o4 = (function() {
|
|
440
|
+
var e7, r6, n6, o5, a5, i5, u3, l3 = 36 * ce + 18, c3 = ye[l3];
|
|
441
|
+
if (c3) return ce = c3.nextPos, c3.result;
|
|
442
|
+
for (e7 = ce, r6 = ce, n6 = [], N.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(W)); o5 !== s2; ) n6.push(o5), N.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(W));
|
|
443
|
+
if (n6 !== s2 ? (46 === t2.charCodeAt(ce) ? (o5 = ".", ce++) : (o5 = s2, ge(D)), o5 !== s2 ? r6 = n6 = [n6, o5] : (ce = r6, r6 = s2)) : (ce = r6, r6 = s2), r6 === s2 && (r6 = null), r6 !== s2) {
|
|
444
|
+
if (n6 = [], N.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(W)), o5 !== s2) for (; o5 !== s2; ) n6.push(o5), N.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(W));
|
|
445
|
+
else n6 = s2;
|
|
446
|
+
n6 !== s2 ? (i5 = n6, u3 = (a5 = r6) ? [].concat.apply([], a5).join("") : "", r6 = { type: "literal", value: parseFloat(u3 + i5.join("")) }, e7 = r6) : (ce = e7, e7 = s2);
|
|
447
|
+
} else ce = e7, e7 = s2;
|
|
448
|
+
return ye[l3] = { nextPos: ce, result: e7 }, e7;
|
|
449
|
+
})()) === s2 && (o4 = (function() {
|
|
450
|
+
var e7, t3, r6 = 36 * ce + 19, n6 = ye[r6];
|
|
451
|
+
return n6 ? (ce = n6.nextPos, n6.result) : ((t3 = be()) !== s2 && (t3 = { type: "literal", value: t3 }), e7 = t3, ye[r6] = { nextPos: ce, result: e7 }, e7);
|
|
452
|
+
})()), o4 !== s2 ? (r5 = I(r5, n5, o4), e6 = r5) : (ce = e6, e6 = s2)) : (ce = e6, e6 = s2), e6 === s2 && (e6 = ce, (r5 = De()) !== s2 && (r5 = { type: "attribute", name: r5 }), e6 = r5)), ye[a4] = { nextPos: ce, result: e6 }, e6);
|
|
453
|
+
})()) !== s2 && Ee() !== s2 ? (93 === t2.charCodeAt(ce) ? (o3 = "]", ce++) : (o3 = s2, ge(b)), o3 !== s2 ? e5 = r4 = n4 : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2), ye[a3] = { nextPos: ce, result: e5 }, e5);
|
|
454
|
+
})()) === s2 && (e4 = (function() {
|
|
455
|
+
var e5, r4, n4, o3, a3, i3, u3, l3, c3 = 36 * ce + 26, f3 = ye[c3];
|
|
456
|
+
if (f3) return ce = f3.nextPos, f3.result;
|
|
457
|
+
if (e5 = ce, 46 === t2.charCodeAt(ce) ? (r4 = ".", ce++) : (r4 = s2, ge(D)), r4 !== s2) if ((n4 = be()) !== s2) {
|
|
458
|
+
for (o3 = [], a3 = ce, 46 === t2.charCodeAt(ce) ? (i3 = ".", ce++) : (i3 = s2, ge(D)), i3 !== s2 && (u3 = be()) !== s2 ? a3 = i3 = [i3, u3] : (ce = a3, a3 = s2); a3 !== s2; ) o3.push(a3), a3 = ce, 46 === t2.charCodeAt(ce) ? (i3 = ".", ce++) : (i3 = s2, ge(D)), i3 !== s2 && (u3 = be()) !== s2 ? a3 = i3 = [i3, u3] : (ce = a3, a3 = s2);
|
|
459
|
+
o3 !== s2 ? (l3 = n4, r4 = { type: "field", name: o3.reduce((function(e6, t3) {
|
|
460
|
+
return e6 + t3[0] + t3[1];
|
|
461
|
+
}), l3) }, e5 = r4) : (ce = e5, e5 = s2);
|
|
462
|
+
} else ce = e5, e5 = s2;
|
|
463
|
+
else ce = e5, e5 = s2;
|
|
464
|
+
return ye[c3] = { nextPos: ce, result: e5 }, e5;
|
|
465
|
+
})()) === s2 && (e4 = (function() {
|
|
466
|
+
var e5, r4, n4, o3, a3 = 36 * ce + 27, i3 = ye[a3];
|
|
467
|
+
return i3 ? (ce = i3.nextPos, i3.result) : (e5 = ce, ":not(" === t2.substr(ce, 5) ? (r4 = ":not(", ce += 5) : (r4 = s2, ge(ee)), r4 !== s2 && Ee() !== s2 && (n4 = _e()) !== s2 && Ee() !== s2 ? (41 === t2.charCodeAt(ce) ? (o3 = ")", ce++) : (o3 = s2, ge(z)), o3 !== s2 ? e5 = r4 = { type: "not", selectors: n4 } : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2), ye[a3] = { nextPos: ce, result: e5 }, e5);
|
|
468
|
+
})()) === s2 && (e4 = (function() {
|
|
469
|
+
var e5, r4, n4, o3, a3 = 36 * ce + 28, i3 = ye[a3];
|
|
470
|
+
return i3 ? (ce = i3.nextPos, i3.result) : (e5 = ce, ":matches(" === t2.substr(ce, 9) ? (r4 = ":matches(", ce += 9) : (r4 = s2, ge(te)), r4 !== s2 && Ee() !== s2 && (n4 = _e()) !== s2 && Ee() !== s2 ? (41 === t2.charCodeAt(ce) ? (o3 = ")", ce++) : (o3 = s2, ge(z)), o3 !== s2 ? (r4 = re(n4), e5 = r4) : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2), ye[a3] = { nextPos: ce, result: e5 }, e5);
|
|
471
|
+
})()) === s2 && (e4 = (function() {
|
|
472
|
+
var e5, r4, n4, o3, a3 = 36 * ce + 29, i3 = ye[a3];
|
|
473
|
+
return i3 ? (ce = i3.nextPos, i3.result) : (e5 = ce, ":is(" === t2.substr(ce, 4) ? (r4 = ":is(", ce += 4) : (r4 = s2, ge(ne)), r4 !== s2 && Ee() !== s2 && (n4 = _e()) !== s2 && Ee() !== s2 ? (41 === t2.charCodeAt(ce) ? (o3 = ")", ce++) : (o3 = s2, ge(z)), o3 !== s2 ? (r4 = re(n4), e5 = r4) : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2), ye[a3] = { nextPos: ce, result: e5 }, e5);
|
|
474
|
+
})()) === s2 && (e4 = (function() {
|
|
475
|
+
var e5, r4, n4, o3, a3 = 36 * ce + 30, i3 = ye[a3];
|
|
476
|
+
return i3 ? (ce = i3.nextPos, i3.result) : (e5 = ce, ":has(" === t2.substr(ce, 5) ? (r4 = ":has(", ce += 5) : (r4 = s2, ge(oe)), r4 !== s2 && Ee() !== s2 && (n4 = (function() {
|
|
477
|
+
var e6, r5, n5, o4, a4, i4, u3, l3, c3 = 36 * ce + 4, f3 = ye[c3];
|
|
478
|
+
if (f3) return ce = f3.nextPos, f3.result;
|
|
479
|
+
if (e6 = ce, (r5 = Ce()) !== s2) {
|
|
480
|
+
for (n5 = [], o4 = ce, (a4 = Ee()) !== s2 ? (44 === t2.charCodeAt(ce) ? (i4 = ",", ce++) : (i4 = s2, ge(m2)), i4 !== s2 && (u3 = Ee()) !== s2 && (l3 = Ce()) !== s2 ? o4 = a4 = [a4, i4, u3, l3] : (ce = o4, o4 = s2)) : (ce = o4, o4 = s2); o4 !== s2; ) n5.push(o4), o4 = ce, (a4 = Ee()) !== s2 ? (44 === t2.charCodeAt(ce) ? (i4 = ",", ce++) : (i4 = s2, ge(m2)), i4 !== s2 && (u3 = Ee()) !== s2 && (l3 = Ce()) !== s2 ? o4 = a4 = [a4, i4, u3, l3] : (ce = o4, o4 = s2)) : (ce = o4, o4 = s2);
|
|
481
|
+
n5 !== s2 ? e6 = r5 = x2(r5, n5) : (ce = e6, e6 = s2);
|
|
482
|
+
} else ce = e6, e6 = s2;
|
|
483
|
+
return ye[c3] = { nextPos: ce, result: e6 }, e6;
|
|
484
|
+
})()) !== s2 && Ee() !== s2 ? (41 === t2.charCodeAt(ce) ? (o3 = ")", ce++) : (o3 = s2, ge(z)), o3 !== s2 ? e5 = r4 = { type: "has", selectors: n4 } : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2), ye[a3] = { nextPos: ce, result: e5 }, e5);
|
|
485
|
+
})()) === s2 && (e4 = (function() {
|
|
486
|
+
var e5, r4, n4 = 36 * ce + 31, o3 = ye[n4];
|
|
487
|
+
return o3 ? (ce = o3.nextPos, o3.result) : (":first-child" === t2.substr(ce, 12) ? (r4 = ":first-child", ce += 12) : (r4 = s2, ge(ae)), r4 !== s2 && (r4 = Fe(1)), e5 = r4, ye[n4] = { nextPos: ce, result: e5 }, e5);
|
|
488
|
+
})()) === s2 && (e4 = (function() {
|
|
489
|
+
var e5, r4, n4 = 36 * ce + 32, o3 = ye[n4];
|
|
490
|
+
return o3 ? (ce = o3.nextPos, o3.result) : (":last-child" === t2.substr(ce, 11) ? (r4 = ":last-child", ce += 11) : (r4 = s2, ge(ie)), r4 !== s2 && (r4 = Re(1)), e5 = r4, ye[n4] = { nextPos: ce, result: e5 }, e5);
|
|
491
|
+
})()) === s2 && (e4 = (function() {
|
|
492
|
+
var e5, r4, n4, o3, a3, i3 = 36 * ce + 33, u3 = ye[i3];
|
|
493
|
+
if (u3) return ce = u3.nextPos, u3.result;
|
|
494
|
+
if (e5 = ce, ":nth-child(" === t2.substr(ce, 11) ? (r4 = ":nth-child(", ce += 11) : (r4 = s2, ge(se)), r4 !== s2) if (Ee() !== s2) {
|
|
495
|
+
if (n4 = [], N.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(W)), o3 !== s2) for (; o3 !== s2; ) n4.push(o3), N.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(W));
|
|
496
|
+
else n4 = s2;
|
|
497
|
+
n4 !== s2 && (o3 = Ee()) !== s2 ? (41 === t2.charCodeAt(ce) ? (a3 = ")", ce++) : (a3 = s2, ge(z)), a3 !== s2 ? (r4 = Fe(parseInt(n4.join(""), 10)), e5 = r4) : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2);
|
|
498
|
+
} else ce = e5, e5 = s2;
|
|
499
|
+
else ce = e5, e5 = s2;
|
|
500
|
+
return ye[i3] = { nextPos: ce, result: e5 }, e5;
|
|
501
|
+
})()) === s2 && (e4 = (function() {
|
|
502
|
+
var e5, r4, n4, o3, a3, i3 = 36 * ce + 34, u3 = ye[i3];
|
|
503
|
+
if (u3) return ce = u3.nextPos, u3.result;
|
|
504
|
+
if (e5 = ce, ":nth-last-child(" === t2.substr(ce, 16) ? (r4 = ":nth-last-child(", ce += 16) : (r4 = s2, ge(ue)), r4 !== s2) if (Ee() !== s2) {
|
|
505
|
+
if (n4 = [], N.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(W)), o3 !== s2) for (; o3 !== s2; ) n4.push(o3), N.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(W));
|
|
506
|
+
else n4 = s2;
|
|
507
|
+
n4 !== s2 && (o3 = Ee()) !== s2 ? (41 === t2.charCodeAt(ce) ? (a3 = ")", ce++) : (a3 = s2, ge(z)), a3 !== s2 ? (r4 = Re(parseInt(n4.join(""), 10)), e5 = r4) : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2);
|
|
508
|
+
} else ce = e5, e5 = s2;
|
|
509
|
+
else ce = e5, e5 = s2;
|
|
510
|
+
return ye[i3] = { nextPos: ce, result: e5 }, e5;
|
|
511
|
+
})()) === s2 && (e4 = (function() {
|
|
512
|
+
var e5, r4, n4, o3 = 36 * ce + 35, a3 = ye[o3];
|
|
513
|
+
return a3 ? (ce = a3.nextPos, a3.result) : (e5 = ce, 58 === t2.charCodeAt(ce) ? (r4 = ":", ce++) : (r4 = s2, ge(le)), r4 !== s2 && (n4 = be()) !== s2 ? e5 = r4 = { type: "class", name: n4 } : (ce = e5, e5 = s2), ye[o3] = { nextPos: ce, result: e5 }, e5);
|
|
514
|
+
})()), ye[r3] = { nextPos: ce, result: e4 }, e4);
|
|
515
|
+
}
|
|
516
|
+
function De() {
|
|
517
|
+
var e4, r3, n3, o3, a3, i3, u3, l3, c3 = 36 * ce + 15, f3 = ye[c3];
|
|
518
|
+
if (f3) return ce = f3.nextPos, f3.result;
|
|
519
|
+
if (e4 = ce, (r3 = be()) !== s2) {
|
|
520
|
+
for (n3 = [], o3 = ce, 46 === t2.charCodeAt(ce) ? (a3 = ".", ce++) : (a3 = s2, ge(D)), a3 !== s2 && (i3 = be()) !== s2 ? o3 = a3 = [a3, i3] : (ce = o3, o3 = s2); o3 !== s2; ) n3.push(o3), o3 = ce, 46 === t2.charCodeAt(ce) ? (a3 = ".", ce++) : (a3 = s2, ge(D)), a3 !== s2 && (i3 = be()) !== s2 ? o3 = a3 = [a3, i3] : (ce = o3, o3 = s2);
|
|
521
|
+
n3 !== s2 ? (u3 = r3, l3 = n3, e4 = r3 = [].concat.apply([u3], l3).join("")) : (ce = e4, e4 = s2);
|
|
522
|
+
} else ce = e4, e4 = s2;
|
|
523
|
+
return ye[c3] = { nextPos: ce, result: e4 }, e4;
|
|
524
|
+
}
|
|
525
|
+
function Ie() {
|
|
526
|
+
var e4, r3, n3, o3, a3 = 36 * ce + 23, i3 = ye[a3];
|
|
527
|
+
if (i3) return ce = i3.nextPos, i3.result;
|
|
528
|
+
if (e4 = ce, 91 === t2.charCodeAt(ce) ? (r3 = "[", ce++) : (r3 = s2, ge(E)), r3 !== s2) {
|
|
529
|
+
if (n3 = [], J.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(Q)), o3 === s2 && (o3 = je()), o3 !== s2) for (; o3 !== s2; ) n3.push(o3), J.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(Q)), o3 === s2 && (o3 = je());
|
|
530
|
+
else n3 = s2;
|
|
531
|
+
n3 !== s2 ? (93 === t2.charCodeAt(ce) ? (o3 = "]", ce++) : (o3 = s2, ge(b)), o3 !== s2 ? e4 = r3 = "[" + n3.join("") + "]" : (ce = e4, e4 = s2)) : (ce = e4, e4 = s2);
|
|
532
|
+
} else ce = e4, e4 = s2;
|
|
533
|
+
return ye[a3] = { nextPos: ce, result: e4 }, e4;
|
|
534
|
+
}
|
|
535
|
+
function je() {
|
|
536
|
+
var e4, r3, n3, o3 = 36 * ce + 24, a3 = ye[o3];
|
|
537
|
+
return a3 ? (ce = a3.nextPos, a3.result) : (e4 = ce, 92 === t2.charCodeAt(ce) ? (r3 = "\\", ce++) : (r3 = s2, ge(R)), r3 !== s2 ? (t2.length > ce ? (n3 = t2.charAt(ce), ce++) : (n3 = s2, ge(O)), n3 !== s2 ? e4 = r3 = "\\" + n3 : (ce = e4, e4 = s2)) : (ce = e4, e4 = s2), ye[o3] = { nextPos: ce, result: e4 }, e4);
|
|
538
|
+
}
|
|
539
|
+
function Te() {
|
|
540
|
+
var e4, r3, n3, o3 = 36 * ce + 25, a3 = ye[o3];
|
|
541
|
+
if (a3) return ce = a3.nextPos, a3.result;
|
|
542
|
+
if (r3 = [], X.test(t2.charAt(ce)) ? (n3 = t2.charAt(ce), ce++) : (n3 = s2, ge(Z)), n3 !== s2) for (; n3 !== s2; ) r3.push(n3), X.test(t2.charAt(ce)) ? (n3 = t2.charAt(ce), ce++) : (n3 = s2, ge(Z));
|
|
543
|
+
else r3 = s2;
|
|
544
|
+
return r3 !== s2 && (r3 = r3.join("")), e4 = r3, ye[o3] = { nextPos: ce, result: e4 }, e4;
|
|
545
|
+
}
|
|
546
|
+
function Fe(e4) {
|
|
547
|
+
return { type: "nth-child", index: { type: "literal", value: e4 } };
|
|
548
|
+
}
|
|
549
|
+
function Re(e4) {
|
|
550
|
+
return { type: "nth-last-child", index: { type: "literal", value: e4 } };
|
|
551
|
+
}
|
|
552
|
+
if ((n2 = l2()) !== s2 && ce === t2.length) return n2;
|
|
553
|
+
throw n2 !== s2 && ce < t2.length && ge({ type: "end" }), o2 = he, a2 = pe < t2.length ? t2.charAt(pe) : null, i2 = pe < t2.length ? ve(pe, pe + 1) : ve(pe, pe), new e3(e3.buildMessage(o2, a2), o2, a2, i2);
|
|
554
|
+
} };
|
|
555
|
+
})());
|
|
556
|
+
}));
|
|
557
|
+
function u(e2, t2) {
|
|
558
|
+
for (var r2 = 0; r2 < t2.length; ++r2) {
|
|
559
|
+
if (null == e2) return e2;
|
|
560
|
+
e2 = e2[t2[r2]];
|
|
561
|
+
}
|
|
562
|
+
return e2;
|
|
563
|
+
}
|
|
564
|
+
var l = "function" == typeof WeakMap ? /* @__PURE__ */ new WeakMap() : null;
|
|
565
|
+
function c(e2) {
|
|
566
|
+
if (null == e2) return function() {
|
|
567
|
+
return true;
|
|
568
|
+
};
|
|
569
|
+
if (null != l) {
|
|
570
|
+
var t2 = l.get(e2);
|
|
571
|
+
return null != t2 || (t2 = f(e2), l.set(e2, t2)), t2;
|
|
572
|
+
}
|
|
573
|
+
return f(e2);
|
|
574
|
+
}
|
|
575
|
+
function f(e2) {
|
|
576
|
+
switch (e2.type) {
|
|
577
|
+
case "wildcard":
|
|
578
|
+
return function() {
|
|
579
|
+
return true;
|
|
580
|
+
};
|
|
581
|
+
case "identifier":
|
|
582
|
+
var t2 = e2.value.toLowerCase();
|
|
583
|
+
return function(e3, r3, n2) {
|
|
584
|
+
var o3 = n2 && n2.nodeTypeKey || "type";
|
|
585
|
+
return t2 === e3[o3].toLowerCase();
|
|
586
|
+
};
|
|
587
|
+
case "exactNode":
|
|
588
|
+
return function(e3, t3) {
|
|
589
|
+
return 0 === t3.length;
|
|
590
|
+
};
|
|
591
|
+
case "field":
|
|
592
|
+
var r2 = e2.name.split(".");
|
|
593
|
+
return function(e3, t3) {
|
|
594
|
+
return (function e4(t4, r3, n2, o3) {
|
|
595
|
+
for (var a3 = r3, i2 = o3; i2 < n2.length; ++i2) {
|
|
596
|
+
if (null == a3) return false;
|
|
597
|
+
var s3 = a3[n2[i2]];
|
|
598
|
+
if (Array.isArray(s3)) {
|
|
599
|
+
for (var u2 = 0; u2 < s3.length; ++u2) if (e4(t4, s3[u2], n2, i2 + 1)) return true;
|
|
600
|
+
return false;
|
|
601
|
+
}
|
|
602
|
+
a3 = s3;
|
|
603
|
+
}
|
|
604
|
+
return t4 === a3;
|
|
605
|
+
})(e3, t3[r2.length - 1], r2, 0);
|
|
606
|
+
};
|
|
607
|
+
case "matches":
|
|
608
|
+
var o2 = e2.selectors.map(c);
|
|
609
|
+
return function(e3, t3, r3) {
|
|
610
|
+
for (var n2 = 0; n2 < o2.length; ++n2) if (o2[n2](e3, t3, r3)) return true;
|
|
611
|
+
return false;
|
|
612
|
+
};
|
|
613
|
+
case "compound":
|
|
614
|
+
var a2 = e2.selectors.map(c);
|
|
615
|
+
return function(e3, t3, r3) {
|
|
616
|
+
for (var n2 = 0; n2 < a2.length; ++n2) if (!a2[n2](e3, t3, r3)) return false;
|
|
617
|
+
return true;
|
|
618
|
+
};
|
|
619
|
+
case "not":
|
|
620
|
+
var s2 = e2.selectors.map(c);
|
|
621
|
+
return function(e3, t3, r3) {
|
|
622
|
+
for (var n2 = 0; n2 < s2.length; ++n2) if (s2[n2](e3, t3, r3)) return false;
|
|
623
|
+
return true;
|
|
624
|
+
};
|
|
625
|
+
case "has":
|
|
626
|
+
var l2 = e2.selectors.map(c);
|
|
627
|
+
return function(e3, t3, r3) {
|
|
628
|
+
var n2 = false, o3 = [];
|
|
629
|
+
return i.traverse(e3, { enter: function(e4, t4) {
|
|
630
|
+
null != t4 && o3.unshift(t4);
|
|
631
|
+
for (var a3 = 0; a3 < l2.length; ++a3) if (l2[a3](e4, o3, r3)) return n2 = true, void this.break();
|
|
632
|
+
}, leave: function() {
|
|
633
|
+
o3.shift();
|
|
634
|
+
}, keys: r3 && r3.visitorKeys, fallback: r3 && r3.fallback || "iteration" }), n2;
|
|
635
|
+
};
|
|
636
|
+
case "child":
|
|
637
|
+
var f2 = c(e2.left), p2 = c(e2.right);
|
|
638
|
+
return function(e3, t3, r3) {
|
|
639
|
+
return !!(t3.length > 0 && p2(e3, t3, r3)) && f2(t3[0], t3.slice(1), r3);
|
|
640
|
+
};
|
|
641
|
+
case "descendant":
|
|
642
|
+
var h2 = c(e2.left), x2 = c(e2.right);
|
|
643
|
+
return function(e3, t3, r3) {
|
|
644
|
+
if (x2(e3, t3, r3)) {
|
|
645
|
+
for (var n2 = 0, o3 = t3.length; n2 < o3; ++n2) if (h2(t3[n2], t3.slice(n2 + 1), r3)) return true;
|
|
646
|
+
}
|
|
647
|
+
return false;
|
|
648
|
+
};
|
|
649
|
+
case "attribute":
|
|
650
|
+
var v2 = e2.name.split(".");
|
|
651
|
+
switch (e2.operator) {
|
|
652
|
+
case void 0:
|
|
653
|
+
return function(e3) {
|
|
654
|
+
return null != u(e3, v2);
|
|
655
|
+
};
|
|
656
|
+
case "=":
|
|
657
|
+
switch (e2.value.type) {
|
|
658
|
+
case "regexp":
|
|
659
|
+
return function(t3) {
|
|
660
|
+
var r3 = u(t3, v2);
|
|
661
|
+
return "string" == typeof r3 && e2.value.value.test(r3);
|
|
662
|
+
};
|
|
663
|
+
case "literal":
|
|
664
|
+
var g2 = "".concat(e2.value.value);
|
|
665
|
+
return function(e3) {
|
|
666
|
+
return g2 === "".concat(u(e3, v2));
|
|
667
|
+
};
|
|
668
|
+
case "type":
|
|
669
|
+
return function(t3) {
|
|
670
|
+
return e2.value.value === n(u(t3, v2));
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
throw new Error("Unknown selector value type: ".concat(e2.value.type));
|
|
674
|
+
case "!=":
|
|
675
|
+
switch (e2.value.type) {
|
|
676
|
+
case "regexp":
|
|
677
|
+
return function(t3) {
|
|
678
|
+
return !e2.value.value.test(u(t3, v2));
|
|
679
|
+
};
|
|
680
|
+
case "literal":
|
|
681
|
+
var A2 = "".concat(e2.value.value);
|
|
682
|
+
return function(e3) {
|
|
683
|
+
return A2 !== "".concat(u(e3, v2));
|
|
684
|
+
};
|
|
685
|
+
case "type":
|
|
686
|
+
return function(t3) {
|
|
687
|
+
return e2.value.value !== n(u(t3, v2));
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
throw new Error("Unknown selector value type: ".concat(e2.value.type));
|
|
691
|
+
case "<=":
|
|
692
|
+
return function(t3) {
|
|
693
|
+
return u(t3, v2) <= e2.value.value;
|
|
694
|
+
};
|
|
695
|
+
case "<":
|
|
696
|
+
return function(t3) {
|
|
697
|
+
return u(t3, v2) < e2.value.value;
|
|
698
|
+
};
|
|
699
|
+
case ">":
|
|
700
|
+
return function(t3) {
|
|
701
|
+
return u(t3, v2) > e2.value.value;
|
|
702
|
+
};
|
|
703
|
+
case ">=":
|
|
704
|
+
return function(t3) {
|
|
705
|
+
return u(t3, v2) >= e2.value.value;
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
throw new Error("Unknown operator: ".concat(e2.operator));
|
|
709
|
+
case "sibling":
|
|
710
|
+
var E = c(e2.left), b = c(e2.right);
|
|
711
|
+
return function(t3, r3, n2) {
|
|
712
|
+
return b(t3, r3, n2) && y(t3, E, r3, "LEFT_SIDE", n2) || e2.left.subject && E(t3, r3, n2) && y(t3, b, r3, "RIGHT_SIDE", n2);
|
|
713
|
+
};
|
|
714
|
+
case "adjacent":
|
|
715
|
+
var S = c(e2.left), _ = c(e2.right);
|
|
716
|
+
return function(t3, r3, n2) {
|
|
717
|
+
return _(t3, r3, n2) && d(t3, S, r3, "LEFT_SIDE", n2) || e2.right.subject && S(t3, r3, n2) && d(t3, _, r3, "RIGHT_SIDE", n2);
|
|
718
|
+
};
|
|
719
|
+
case "nth-child":
|
|
720
|
+
var C = e2.index.value, P = c(e2.right);
|
|
721
|
+
return function(e3, t3, r3) {
|
|
722
|
+
return P(e3, t3, r3) && m(e3, t3, C, r3);
|
|
723
|
+
};
|
|
724
|
+
case "nth-last-child":
|
|
725
|
+
var w = -e2.index.value, k = c(e2.right);
|
|
726
|
+
return function(e3, t3, r3) {
|
|
727
|
+
return k(e3, t3, r3) && m(e3, t3, w, r3);
|
|
728
|
+
};
|
|
729
|
+
case "class":
|
|
730
|
+
var D = e2.name.toLowerCase();
|
|
731
|
+
return function(t3, r3, n2) {
|
|
732
|
+
if (n2 && n2.matchClass) return n2.matchClass(e2.name, t3, r3);
|
|
733
|
+
if (n2 && n2.nodeTypeKey) return false;
|
|
734
|
+
switch (D) {
|
|
735
|
+
case "statement":
|
|
736
|
+
if ("Statement" === t3.type.slice(-9)) return true;
|
|
737
|
+
case "declaration":
|
|
738
|
+
return "Declaration" === t3.type.slice(-11);
|
|
739
|
+
case "pattern":
|
|
740
|
+
if ("Pattern" === t3.type.slice(-7)) return true;
|
|
741
|
+
case "expression":
|
|
742
|
+
return "Expression" === t3.type.slice(-10) || "Literal" === t3.type.slice(-7) || "Identifier" === t3.type && (0 === r3.length || "MetaProperty" !== r3[0].type) || "MetaProperty" === t3.type;
|
|
743
|
+
case "function":
|
|
744
|
+
return "FunctionDeclaration" === t3.type || "FunctionExpression" === t3.type || "ArrowFunctionExpression" === t3.type;
|
|
745
|
+
}
|
|
746
|
+
throw new Error("Unknown class name: ".concat(e2.name));
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
throw new Error("Unknown selector type: ".concat(e2.type));
|
|
750
|
+
}
|
|
751
|
+
function p(e2, t2) {
|
|
752
|
+
var r2 = t2 && t2.nodeTypeKey || "type", n2 = e2[r2];
|
|
753
|
+
return t2 && t2.visitorKeys && t2.visitorKeys[n2] ? t2.visitorKeys[n2] : i.VisitorKeys[n2] ? i.VisitorKeys[n2] : t2 && "function" == typeof t2.fallback ? t2.fallback(e2) : Object.keys(e2).filter((function(e3) {
|
|
754
|
+
return e3 !== r2;
|
|
755
|
+
}));
|
|
756
|
+
}
|
|
757
|
+
function h(e2, t2) {
|
|
758
|
+
var r2 = t2 && t2.nodeTypeKey || "type";
|
|
759
|
+
return null !== e2 && "object" === n(e2) && "string" == typeof e2[r2];
|
|
760
|
+
}
|
|
761
|
+
function y(e2, r2, n2, o2, a2) {
|
|
762
|
+
var i2 = t(n2, 1)[0];
|
|
763
|
+
if (!i2) return false;
|
|
764
|
+
for (var s2 = p(i2, a2), u2 = 0; u2 < s2.length; ++u2) {
|
|
765
|
+
var l2 = i2[s2[u2]];
|
|
766
|
+
if (Array.isArray(l2)) {
|
|
767
|
+
var c2 = l2.indexOf(e2);
|
|
768
|
+
if (c2 < 0) continue;
|
|
769
|
+
var f2 = void 0, y2 = void 0;
|
|
770
|
+
"LEFT_SIDE" === o2 ? (f2 = 0, y2 = c2) : (f2 = c2 + 1, y2 = l2.length);
|
|
771
|
+
for (var d2 = f2; d2 < y2; ++d2) if (h(l2[d2], a2) && r2(l2[d2], n2, a2)) return true;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
return false;
|
|
775
|
+
}
|
|
776
|
+
function d(e2, r2, n2, o2, a2) {
|
|
777
|
+
var i2 = t(n2, 1)[0];
|
|
778
|
+
if (!i2) return false;
|
|
779
|
+
for (var s2 = p(i2, a2), u2 = 0; u2 < s2.length; ++u2) {
|
|
780
|
+
var l2 = i2[s2[u2]];
|
|
781
|
+
if (Array.isArray(l2)) {
|
|
782
|
+
var c2 = l2.indexOf(e2);
|
|
783
|
+
if (c2 < 0) continue;
|
|
784
|
+
if ("LEFT_SIDE" === o2 && c2 > 0 && h(l2[c2 - 1], a2) && r2(l2[c2 - 1], n2, a2)) return true;
|
|
785
|
+
if ("RIGHT_SIDE" === o2 && c2 < l2.length - 1 && h(l2[c2 + 1], a2) && r2(l2[c2 + 1], n2, a2)) return true;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
return false;
|
|
789
|
+
}
|
|
790
|
+
function m(e2, r2, n2, o2) {
|
|
791
|
+
if (0 === n2) return false;
|
|
792
|
+
var a2 = t(r2, 1)[0];
|
|
793
|
+
if (!a2) return false;
|
|
794
|
+
for (var i2 = p(a2, o2), s2 = 0; s2 < i2.length; ++s2) {
|
|
795
|
+
var u2 = a2[i2[s2]];
|
|
796
|
+
if (Array.isArray(u2)) {
|
|
797
|
+
var l2 = n2 < 0 ? u2.length + n2 : n2 - 1;
|
|
798
|
+
if (l2 >= 0 && l2 < u2.length && u2[l2] === e2) return true;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
return false;
|
|
802
|
+
}
|
|
803
|
+
function x(e2, t2, o2, a2) {
|
|
804
|
+
if (t2) {
|
|
805
|
+
var s2 = [], u2 = c(t2), l2 = (function e3(t3, o3) {
|
|
806
|
+
if (null == t3 || "object" != n(t3)) return [];
|
|
807
|
+
null == o3 && (o3 = t3);
|
|
808
|
+
for (var a3 = t3.subject ? [o3] : [], i2 = Object.keys(t3), s3 = 0; s3 < i2.length; ++s3) {
|
|
809
|
+
var u3 = i2[s3], l3 = t3[u3];
|
|
810
|
+
a3.push.apply(a3, r(e3(l3, "left" === u3 ? l3 : o3)));
|
|
811
|
+
}
|
|
812
|
+
return a3;
|
|
813
|
+
})(t2).map(c);
|
|
814
|
+
i.traverse(e2, { enter: function(e3, t3) {
|
|
815
|
+
if (null != t3 && s2.unshift(t3), u2(e3, s2, a2)) if (l2.length) for (var r2 = 0, n2 = l2.length; r2 < n2; ++r2) {
|
|
816
|
+
l2[r2](e3, s2, a2) && o2(e3, t3, s2);
|
|
817
|
+
for (var i2 = 0, c2 = s2.length; i2 < c2; ++i2) {
|
|
818
|
+
var f2 = s2.slice(i2 + 1);
|
|
819
|
+
l2[r2](s2[i2], f2, a2) && o2(s2[i2], t3, f2);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
else o2(e3, t3, s2);
|
|
823
|
+
}, leave: function() {
|
|
824
|
+
s2.shift();
|
|
825
|
+
}, keys: a2 && a2.visitorKeys, fallback: a2 && a2.fallback || "iteration" });
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
function v(e2, t2, r2) {
|
|
829
|
+
var n2 = [];
|
|
830
|
+
return x(e2, t2, (function(e3) {
|
|
831
|
+
n2.push(e3);
|
|
832
|
+
}), r2), n2;
|
|
833
|
+
}
|
|
834
|
+
function g(e2) {
|
|
835
|
+
return s.parse(e2);
|
|
836
|
+
}
|
|
837
|
+
function A(e2, t2, r2) {
|
|
838
|
+
return v(e2, g(t2), r2);
|
|
839
|
+
}
|
|
840
|
+
A.parse = g, A.match = v, A.traverse = x, A.matches = function(e2, t2, r2, n2) {
|
|
841
|
+
return !t2 || !!e2 && (r2 || (r2 = []), c(t2)(e2, r2, n2));
|
|
842
|
+
}, A.query = A;
|
|
843
|
+
|
|
844
|
+
export { A as default };
|
|
845
|
+
//# sourceMappingURL=esquery.esm.min.js.map
|