nuxt-intlayer 7.0.0-canary.3 → 7.0.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/dist/cjs/_virtual/rolldown_runtime.cjs +0 -15
- package/dist/cjs/runtime/intlayer-plugin.cjs +4 -3
- package/dist/cjs/runtime/intlayer-plugin.cjs.map +1 -1
- package/dist/esm/runtime/intlayer-plugin.mjs +3 -3
- package/dist/esm/runtime/intlayer-plugin.mjs.map +1 -1
- package/package.json +16 -14
- package/dist/cjs/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.cjs +0 -12494
- package/dist/cjs/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs +0 -2353
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs +0 -4751
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs +0 -660
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs +0 -442
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.cjs +0 -22
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.cjs +0 -1457
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.cjs +0 -870
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.cjs +0 -4204
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.cjs +0 -1373
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.cjs +0 -1270
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.cjs +0 -44
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.cjs +0 -491
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.cjs +0 -474
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.cjs +0 -82
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.cjs +0 -18
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.cjs +0 -18
- package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.cjs +0 -255
- package/dist/cjs/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.cjs +0 -103
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.cjs +0 -76
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.cjs +0 -44
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.cjs +0 -71
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.cjs +0 -80
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.cjs +0 -92
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.cjs +0 -791
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.cjs +0 -298
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.cjs +0 -296
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.cjs +0 -355
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.cjs +0 -20
- package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.cjs +0 -10
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.cjs +0 -18
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.cjs +0 -11
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.cjs +0 -28
- package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.cjs +0 -65
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.cjs +0 -55
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.cjs +0 -18
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.cjs +0 -15
- package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.cjs.map +0 -1
- package/dist/esm/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.mjs +0 -12491
- package/dist/esm/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.mjs +0 -2350
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.mjs +0 -4748
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.mjs +0 -657
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.mjs +0 -439
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.mjs +0 -19
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.mjs +0 -1454
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs +0 -1312
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.mjs +0 -867
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.mjs +0 -4201
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs +0 -995
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.mjs +0 -1370
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.mjs +0 -1267
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.mjs +0 -41
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.mjs +0 -488
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +0 -77
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.esm-bundler.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.mjs +0 -471
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.mjs +0 -79
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.mjs +0 -15
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.mjs +0 -15
- package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.mjs +0 -252
- package/dist/esm/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.mjs +0 -100
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.mjs +0 -73
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.mjs +0 -41
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.mjs +0 -68
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.mjs +0 -77
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.mjs +0 -89
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.mjs +0 -788
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.mjs +0 -295
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.mjs +0 -293
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.mjs +0 -352
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.mjs +0 -17
- package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/native.mjs +0 -7
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/native.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/rng.mjs +0 -14
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/rng.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/stringify.mjs +0 -10
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/stringify.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/v4.mjs +0 -28
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/v4.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.mjs +0 -8
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.mjs +0 -16
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.mjs +0 -10
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.mjs +0 -28
- package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.mjs +0 -62
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.mjs +0 -52
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs +0 -12
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.mjs +0 -15
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.mjs +0 -10
- package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.mjs.map +0 -1
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
import { require_util } from "./util.mjs";
|
|
3
|
-
import { require_source_map_generator } from "./source-map-generator.mjs";
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js
|
|
6
|
-
var require_source_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js": ((exports) => {
|
|
7
|
-
var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
|
|
8
|
-
var util = require_util();
|
|
9
|
-
var REGEX_NEWLINE = /(\r?\n)/;
|
|
10
|
-
var NEWLINE_CODE = 10;
|
|
11
|
-
var isSourceNode = "$$$isSourceNode$$$";
|
|
12
|
-
/**
|
|
13
|
-
* SourceNodes provide a way to abstract over interpolating/concatenating
|
|
14
|
-
* snippets of generated JavaScript source code while maintaining the line and
|
|
15
|
-
* column information associated with the original source code.
|
|
16
|
-
*
|
|
17
|
-
* @param aLine The original line number.
|
|
18
|
-
* @param aColumn The original column number.
|
|
19
|
-
* @param aSource The original source's filename.
|
|
20
|
-
* @param aChunks Optional. An array of strings which are snippets of
|
|
21
|
-
* generated JS, or other SourceNodes.
|
|
22
|
-
* @param aName The original identifier.
|
|
23
|
-
*/
|
|
24
|
-
function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
|
|
25
|
-
this.children = [];
|
|
26
|
-
this.sourceContents = {};
|
|
27
|
-
this.line = aLine == null ? null : aLine;
|
|
28
|
-
this.column = aColumn == null ? null : aColumn;
|
|
29
|
-
this.source = aSource == null ? null : aSource;
|
|
30
|
-
this.name = aName == null ? null : aName;
|
|
31
|
-
this[isSourceNode] = true;
|
|
32
|
-
if (aChunks != null) this.add(aChunks);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Creates a SourceNode from generated code and a SourceMapConsumer.
|
|
36
|
-
*
|
|
37
|
-
* @param aGeneratedCode The generated code
|
|
38
|
-
* @param aSourceMapConsumer The SourceMap for the generated code
|
|
39
|
-
* @param aRelativePath Optional. The path that relative sources in the
|
|
40
|
-
* SourceMapConsumer should be relative to.
|
|
41
|
-
*/
|
|
42
|
-
SourceNode.fromStringWithSourceMap = function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
|
|
43
|
-
var node = new SourceNode();
|
|
44
|
-
var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
|
|
45
|
-
var remainingLinesIndex = 0;
|
|
46
|
-
var shiftNextLine = function() {
|
|
47
|
-
return getNextLine() + (getNextLine() || "");
|
|
48
|
-
function getNextLine() {
|
|
49
|
-
return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : void 0;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
var lastGeneratedLine = 1, lastGeneratedColumn = 0;
|
|
53
|
-
var lastMapping = null;
|
|
54
|
-
aSourceMapConsumer.eachMapping(function(mapping) {
|
|
55
|
-
if (lastMapping !== null) if (lastGeneratedLine < mapping.generatedLine) {
|
|
56
|
-
addMappingWithCode(lastMapping, shiftNextLine());
|
|
57
|
-
lastGeneratedLine++;
|
|
58
|
-
lastGeneratedColumn = 0;
|
|
59
|
-
} else {
|
|
60
|
-
var nextLine = remainingLines[remainingLinesIndex] || "";
|
|
61
|
-
var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
|
|
62
|
-
remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
|
|
63
|
-
lastGeneratedColumn = mapping.generatedColumn;
|
|
64
|
-
addMappingWithCode(lastMapping, code);
|
|
65
|
-
lastMapping = mapping;
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
while (lastGeneratedLine < mapping.generatedLine) {
|
|
69
|
-
node.add(shiftNextLine());
|
|
70
|
-
lastGeneratedLine++;
|
|
71
|
-
}
|
|
72
|
-
if (lastGeneratedColumn < mapping.generatedColumn) {
|
|
73
|
-
var nextLine = remainingLines[remainingLinesIndex] || "";
|
|
74
|
-
node.add(nextLine.substr(0, mapping.generatedColumn));
|
|
75
|
-
remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
|
|
76
|
-
lastGeneratedColumn = mapping.generatedColumn;
|
|
77
|
-
}
|
|
78
|
-
lastMapping = mapping;
|
|
79
|
-
}, this);
|
|
80
|
-
if (remainingLinesIndex < remainingLines.length) {
|
|
81
|
-
if (lastMapping) addMappingWithCode(lastMapping, shiftNextLine());
|
|
82
|
-
node.add(remainingLines.splice(remainingLinesIndex).join(""));
|
|
83
|
-
}
|
|
84
|
-
aSourceMapConsumer.sources.forEach(function(sourceFile) {
|
|
85
|
-
var content = aSourceMapConsumer.sourceContentFor(sourceFile);
|
|
86
|
-
if (content != null) {
|
|
87
|
-
if (aRelativePath != null) sourceFile = util.join(aRelativePath, sourceFile);
|
|
88
|
-
node.setSourceContent(sourceFile, content);
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
return node;
|
|
92
|
-
function addMappingWithCode(mapping, code) {
|
|
93
|
-
if (mapping === null || mapping.source === void 0) node.add(code);
|
|
94
|
-
else {
|
|
95
|
-
var source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source;
|
|
96
|
-
node.add(new SourceNode(mapping.originalLine, mapping.originalColumn, source, code, mapping.name));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Add a chunk of generated JS to this source node.
|
|
102
|
-
*
|
|
103
|
-
* @param aChunk A string snippet of generated JS code, another instance of
|
|
104
|
-
* SourceNode, or an array where each member is one of those things.
|
|
105
|
-
*/
|
|
106
|
-
SourceNode.prototype.add = function SourceNode_add(aChunk) {
|
|
107
|
-
if (Array.isArray(aChunk)) aChunk.forEach(function(chunk) {
|
|
108
|
-
this.add(chunk);
|
|
109
|
-
}, this);
|
|
110
|
-
else if (aChunk[isSourceNode] || typeof aChunk === "string") {
|
|
111
|
-
if (aChunk) this.children.push(aChunk);
|
|
112
|
-
} else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
|
|
113
|
-
return this;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Add a chunk of generated JS to the beginning of this source node.
|
|
117
|
-
*
|
|
118
|
-
* @param aChunk A string snippet of generated JS code, another instance of
|
|
119
|
-
* SourceNode, or an array where each member is one of those things.
|
|
120
|
-
*/
|
|
121
|
-
SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
|
|
122
|
-
if (Array.isArray(aChunk)) for (var i = aChunk.length - 1; i >= 0; i--) this.prepend(aChunk[i]);
|
|
123
|
-
else if (aChunk[isSourceNode] || typeof aChunk === "string") this.children.unshift(aChunk);
|
|
124
|
-
else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
|
|
125
|
-
return this;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Walk over the tree of JS snippets in this node and its children. The
|
|
129
|
-
* walking function is called once for each snippet of JS and is passed that
|
|
130
|
-
* snippet and the its original associated source's line/column location.
|
|
131
|
-
*
|
|
132
|
-
* @param aFn The traversal function.
|
|
133
|
-
*/
|
|
134
|
-
SourceNode.prototype.walk = function SourceNode_walk(aFn) {
|
|
135
|
-
var chunk;
|
|
136
|
-
for (var i = 0, len = this.children.length; i < len; i++) {
|
|
137
|
-
chunk = this.children[i];
|
|
138
|
-
if (chunk[isSourceNode]) chunk.walk(aFn);
|
|
139
|
-
else if (chunk !== "") aFn(chunk, {
|
|
140
|
-
source: this.source,
|
|
141
|
-
line: this.line,
|
|
142
|
-
column: this.column,
|
|
143
|
-
name: this.name
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between
|
|
149
|
-
* each of `this.children`.
|
|
150
|
-
*
|
|
151
|
-
* @param aSep The separator.
|
|
152
|
-
*/
|
|
153
|
-
SourceNode.prototype.join = function SourceNode_join(aSep) {
|
|
154
|
-
var newChildren;
|
|
155
|
-
var i;
|
|
156
|
-
var len = this.children.length;
|
|
157
|
-
if (len > 0) {
|
|
158
|
-
newChildren = [];
|
|
159
|
-
for (i = 0; i < len - 1; i++) {
|
|
160
|
-
newChildren.push(this.children[i]);
|
|
161
|
-
newChildren.push(aSep);
|
|
162
|
-
}
|
|
163
|
-
newChildren.push(this.children[i]);
|
|
164
|
-
this.children = newChildren;
|
|
165
|
-
}
|
|
166
|
-
return this;
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* Call String.prototype.replace on the very right-most source snippet. Useful
|
|
170
|
-
* for trimming whitespace from the end of a source node, etc.
|
|
171
|
-
*
|
|
172
|
-
* @param aPattern The pattern to replace.
|
|
173
|
-
* @param aReplacement The thing to replace the pattern with.
|
|
174
|
-
*/
|
|
175
|
-
SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
|
|
176
|
-
var lastChild = this.children[this.children.length - 1];
|
|
177
|
-
if (lastChild[isSourceNode]) lastChild.replaceRight(aPattern, aReplacement);
|
|
178
|
-
else if (typeof lastChild === "string") this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
|
|
179
|
-
else this.children.push("".replace(aPattern, aReplacement));
|
|
180
|
-
return this;
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Set the source content for a source file. This will be added to the SourceMapGenerator
|
|
184
|
-
* in the sourcesContent field.
|
|
185
|
-
*
|
|
186
|
-
* @param aSourceFile The filename of the source file
|
|
187
|
-
* @param aSourceContent The content of the source file
|
|
188
|
-
*/
|
|
189
|
-
SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
|
|
190
|
-
this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
|
|
191
|
-
};
|
|
192
|
-
/**
|
|
193
|
-
* Walk over the tree of SourceNodes. The walking function is called for each
|
|
194
|
-
* source file content and is passed the filename and source content.
|
|
195
|
-
*
|
|
196
|
-
* @param aFn The traversal function.
|
|
197
|
-
*/
|
|
198
|
-
SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents(aFn) {
|
|
199
|
-
for (var i = 0, len = this.children.length; i < len; i++) if (this.children[i][isSourceNode]) this.children[i].walkSourceContents(aFn);
|
|
200
|
-
var sources = Object.keys(this.sourceContents);
|
|
201
|
-
for (var i = 0, len = sources.length; i < len; i++) aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* Return the string representation of this source node. Walks over the tree
|
|
205
|
-
* and concatenates all the various snippets together to one string.
|
|
206
|
-
*/
|
|
207
|
-
SourceNode.prototype.toString = function SourceNode_toString() {
|
|
208
|
-
var str = "";
|
|
209
|
-
this.walk(function(chunk) {
|
|
210
|
-
str += chunk;
|
|
211
|
-
});
|
|
212
|
-
return str;
|
|
213
|
-
};
|
|
214
|
-
/**
|
|
215
|
-
* Returns the string representation of this source node along with a source
|
|
216
|
-
* map.
|
|
217
|
-
*/
|
|
218
|
-
SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
|
|
219
|
-
var generated = {
|
|
220
|
-
code: "",
|
|
221
|
-
line: 1,
|
|
222
|
-
column: 0
|
|
223
|
-
};
|
|
224
|
-
var map = new SourceMapGenerator(aArgs);
|
|
225
|
-
var sourceMappingActive = false;
|
|
226
|
-
var lastOriginalSource = null;
|
|
227
|
-
var lastOriginalLine = null;
|
|
228
|
-
var lastOriginalColumn = null;
|
|
229
|
-
var lastOriginalName = null;
|
|
230
|
-
this.walk(function(chunk, original) {
|
|
231
|
-
generated.code += chunk;
|
|
232
|
-
if (original.source !== null && original.line !== null && original.column !== null) {
|
|
233
|
-
if (lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) map.addMapping({
|
|
234
|
-
source: original.source,
|
|
235
|
-
original: {
|
|
236
|
-
line: original.line,
|
|
237
|
-
column: original.column
|
|
238
|
-
},
|
|
239
|
-
generated: {
|
|
240
|
-
line: generated.line,
|
|
241
|
-
column: generated.column
|
|
242
|
-
},
|
|
243
|
-
name: original.name
|
|
244
|
-
});
|
|
245
|
-
lastOriginalSource = original.source;
|
|
246
|
-
lastOriginalLine = original.line;
|
|
247
|
-
lastOriginalColumn = original.column;
|
|
248
|
-
lastOriginalName = original.name;
|
|
249
|
-
sourceMappingActive = true;
|
|
250
|
-
} else if (sourceMappingActive) {
|
|
251
|
-
map.addMapping({ generated: {
|
|
252
|
-
line: generated.line,
|
|
253
|
-
column: generated.column
|
|
254
|
-
} });
|
|
255
|
-
lastOriginalSource = null;
|
|
256
|
-
sourceMappingActive = false;
|
|
257
|
-
}
|
|
258
|
-
for (var idx = 0, length = chunk.length; idx < length; idx++) if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
|
|
259
|
-
generated.line++;
|
|
260
|
-
generated.column = 0;
|
|
261
|
-
if (idx + 1 === length) {
|
|
262
|
-
lastOriginalSource = null;
|
|
263
|
-
sourceMappingActive = false;
|
|
264
|
-
} else if (sourceMappingActive) map.addMapping({
|
|
265
|
-
source: original.source,
|
|
266
|
-
original: {
|
|
267
|
-
line: original.line,
|
|
268
|
-
column: original.column
|
|
269
|
-
},
|
|
270
|
-
generated: {
|
|
271
|
-
line: generated.line,
|
|
272
|
-
column: generated.column
|
|
273
|
-
},
|
|
274
|
-
name: original.name
|
|
275
|
-
});
|
|
276
|
-
} else generated.column++;
|
|
277
|
-
});
|
|
278
|
-
this.walkSourceContents(function(sourceFile, sourceContent) {
|
|
279
|
-
map.setSourceContent(sourceFile, sourceContent);
|
|
280
|
-
});
|
|
281
|
-
return {
|
|
282
|
-
code: generated.code,
|
|
283
|
-
map
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
exports.SourceNode = SourceNode;
|
|
287
|
-
}) });
|
|
288
|
-
|
|
289
|
-
//#endregion
|
|
290
|
-
export default require_source_node();
|
|
291
|
-
|
|
292
|
-
export { require_source_node };
|
|
293
|
-
//# sourceMappingURL=source-node.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-node.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"],"sourcesContent":["/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar SourceMapGenerator = require('./source-map-generator').SourceMapGenerator;\nvar util = require('./util');\n\n// Matches a Windows-style `\\r\\n` newline or a `\\n` newline used by all other\n// operating systems these days (capturing the result).\nvar REGEX_NEWLINE = /(\\r?\\n)/;\n\n// Newline character code for charCodeAt() comparisons\nvar NEWLINE_CODE = 10;\n\n// Private symbol for identifying `SourceNode`s when multiple versions of\n// the source-map library are loaded. This MUST NOT CHANGE across\n// versions!\nvar isSourceNode = \"$$$isSourceNode$$$\";\n\n/**\n * SourceNodes provide a way to abstract over interpolating/concatenating\n * snippets of generated JavaScript source code while maintaining the line and\n * column information associated with the original source code.\n *\n * @param aLine The original line number.\n * @param aColumn The original column number.\n * @param aSource The original source's filename.\n * @param aChunks Optional. An array of strings which are snippets of\n * generated JS, or other SourceNodes.\n * @param aName The original identifier.\n */\nfunction SourceNode(aLine, aColumn, aSource, aChunks, aName) {\n this.children = [];\n this.sourceContents = {};\n this.line = aLine == null ? null : aLine;\n this.column = aColumn == null ? null : aColumn;\n this.source = aSource == null ? null : aSource;\n this.name = aName == null ? null : aName;\n this[isSourceNode] = true;\n if (aChunks != null) this.add(aChunks);\n}\n\n/**\n * Creates a SourceNode from generated code and a SourceMapConsumer.\n *\n * @param aGeneratedCode The generated code\n * @param aSourceMapConsumer The SourceMap for the generated code\n * @param aRelativePath Optional. The path that relative sources in the\n * SourceMapConsumer should be relative to.\n */\nSourceNode.fromStringWithSourceMap =\n function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {\n // The SourceNode we want to fill with the generated code\n // and the SourceMap\n var node = new SourceNode();\n\n // All even indices of this array are one line of the generated code,\n // while all odd indices are the newlines between two adjacent lines\n // (since `REGEX_NEWLINE` captures its match).\n // Processed fragments are accessed by calling `shiftNextLine`.\n var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);\n var remainingLinesIndex = 0;\n var shiftNextLine = function() {\n var lineContents = getNextLine();\n // The last line of a file might not have a newline.\n var newLine = getNextLine() || \"\";\n return lineContents + newLine;\n\n function getNextLine() {\n return remainingLinesIndex < remainingLines.length ?\n remainingLines[remainingLinesIndex++] : undefined;\n }\n };\n\n // We need to remember the position of \"remainingLines\"\n var lastGeneratedLine = 1, lastGeneratedColumn = 0;\n\n // The generate SourceNodes we need a code range.\n // To extract it current and last mapping is used.\n // Here we store the last mapping.\n var lastMapping = null;\n\n aSourceMapConsumer.eachMapping(function (mapping) {\n if (lastMapping !== null) {\n // We add the code from \"lastMapping\" to \"mapping\":\n // First check if there is a new line in between.\n if (lastGeneratedLine < mapping.generatedLine) {\n // Associate first line with \"lastMapping\"\n addMappingWithCode(lastMapping, shiftNextLine());\n lastGeneratedLine++;\n lastGeneratedColumn = 0;\n // The remaining code is added without mapping\n } else {\n // There is no new line in between.\n // Associate the code between \"lastGeneratedColumn\" and\n // \"mapping.generatedColumn\" with \"lastMapping\"\n var nextLine = remainingLines[remainingLinesIndex] || '';\n var code = nextLine.substr(0, mapping.generatedColumn -\n lastGeneratedColumn);\n remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn -\n lastGeneratedColumn);\n lastGeneratedColumn = mapping.generatedColumn;\n addMappingWithCode(lastMapping, code);\n // No more remaining code, continue\n lastMapping = mapping;\n return;\n }\n }\n // We add the generated code until the first mapping\n // to the SourceNode without any mapping.\n // Each line is added as separate string.\n while (lastGeneratedLine < mapping.generatedLine) {\n node.add(shiftNextLine());\n lastGeneratedLine++;\n }\n if (lastGeneratedColumn < mapping.generatedColumn) {\n var nextLine = remainingLines[remainingLinesIndex] || '';\n node.add(nextLine.substr(0, mapping.generatedColumn));\n remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);\n lastGeneratedColumn = mapping.generatedColumn;\n }\n lastMapping = mapping;\n }, this);\n // We have processed all mappings.\n if (remainingLinesIndex < remainingLines.length) {\n if (lastMapping) {\n // Associate the remaining code in the current line with \"lastMapping\"\n addMappingWithCode(lastMapping, shiftNextLine());\n }\n // and add the remaining lines without any mapping\n node.add(remainingLines.splice(remainingLinesIndex).join(\"\"));\n }\n\n // Copy sourcesContent into SourceNode\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n if (aRelativePath != null) {\n sourceFile = util.join(aRelativePath, sourceFile);\n }\n node.setSourceContent(sourceFile, content);\n }\n });\n\n return node;\n\n function addMappingWithCode(mapping, code) {\n if (mapping === null || mapping.source === undefined) {\n node.add(code);\n } else {\n var source = aRelativePath\n ? util.join(aRelativePath, mapping.source)\n : mapping.source;\n node.add(new SourceNode(mapping.originalLine,\n mapping.originalColumn,\n source,\n code,\n mapping.name));\n }\n }\n };\n\n/**\n * Add a chunk of generated JS to this source node.\n *\n * @param aChunk A string snippet of generated JS code, another instance of\n * SourceNode, or an array where each member is one of those things.\n */\nSourceNode.prototype.add = function SourceNode_add(aChunk) {\n if (Array.isArray(aChunk)) {\n aChunk.forEach(function (chunk) {\n this.add(chunk);\n }, this);\n }\n else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n if (aChunk) {\n this.children.push(aChunk);\n }\n }\n else {\n throw new TypeError(\n \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n );\n }\n return this;\n};\n\n/**\n * Add a chunk of generated JS to the beginning of this source node.\n *\n * @param aChunk A string snippet of generated JS code, another instance of\n * SourceNode, or an array where each member is one of those things.\n */\nSourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {\n if (Array.isArray(aChunk)) {\n for (var i = aChunk.length-1; i >= 0; i--) {\n this.prepend(aChunk[i]);\n }\n }\n else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n this.children.unshift(aChunk);\n }\n else {\n throw new TypeError(\n \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n );\n }\n return this;\n};\n\n/**\n * Walk over the tree of JS snippets in this node and its children. The\n * walking function is called once for each snippet of JS and is passed that\n * snippet and the its original associated source's line/column location.\n *\n * @param aFn The traversal function.\n */\nSourceNode.prototype.walk = function SourceNode_walk(aFn) {\n var chunk;\n for (var i = 0, len = this.children.length; i < len; i++) {\n chunk = this.children[i];\n if (chunk[isSourceNode]) {\n chunk.walk(aFn);\n }\n else {\n if (chunk !== '') {\n aFn(chunk, { source: this.source,\n line: this.line,\n column: this.column,\n name: this.name });\n }\n }\n }\n};\n\n/**\n * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between\n * each of `this.children`.\n *\n * @param aSep The separator.\n */\nSourceNode.prototype.join = function SourceNode_join(aSep) {\n var newChildren;\n var i;\n var len = this.children.length;\n if (len > 0) {\n newChildren = [];\n for (i = 0; i < len-1; i++) {\n newChildren.push(this.children[i]);\n newChildren.push(aSep);\n }\n newChildren.push(this.children[i]);\n this.children = newChildren;\n }\n return this;\n};\n\n/**\n * Call String.prototype.replace on the very right-most source snippet. Useful\n * for trimming whitespace from the end of a source node, etc.\n *\n * @param aPattern The pattern to replace.\n * @param aReplacement The thing to replace the pattern with.\n */\nSourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {\n var lastChild = this.children[this.children.length - 1];\n if (lastChild[isSourceNode]) {\n lastChild.replaceRight(aPattern, aReplacement);\n }\n else if (typeof lastChild === 'string') {\n this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);\n }\n else {\n this.children.push(''.replace(aPattern, aReplacement));\n }\n return this;\n};\n\n/**\n * Set the source content for a source file. This will be added to the SourceMapGenerator\n * in the sourcesContent field.\n *\n * @param aSourceFile The filename of the source file\n * @param aSourceContent The content of the source file\n */\nSourceNode.prototype.setSourceContent =\n function SourceNode_setSourceContent(aSourceFile, aSourceContent) {\n this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;\n };\n\n/**\n * Walk over the tree of SourceNodes. The walking function is called for each\n * source file content and is passed the filename and source content.\n *\n * @param aFn The traversal function.\n */\nSourceNode.prototype.walkSourceContents =\n function SourceNode_walkSourceContents(aFn) {\n for (var i = 0, len = this.children.length; i < len; i++) {\n if (this.children[i][isSourceNode]) {\n this.children[i].walkSourceContents(aFn);\n }\n }\n\n var sources = Object.keys(this.sourceContents);\n for (var i = 0, len = sources.length; i < len; i++) {\n aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);\n }\n };\n\n/**\n * Return the string representation of this source node. Walks over the tree\n * and concatenates all the various snippets together to one string.\n */\nSourceNode.prototype.toString = function SourceNode_toString() {\n var str = \"\";\n this.walk(function (chunk) {\n str += chunk;\n });\n return str;\n};\n\n/**\n * Returns the string representation of this source node along with a source\n * map.\n */\nSourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {\n var generated = {\n code: \"\",\n line: 1,\n column: 0\n };\n var map = new SourceMapGenerator(aArgs);\n var sourceMappingActive = false;\n var lastOriginalSource = null;\n var lastOriginalLine = null;\n var lastOriginalColumn = null;\n var lastOriginalName = null;\n this.walk(function (chunk, original) {\n generated.code += chunk;\n if (original.source !== null\n && original.line !== null\n && original.column !== null) {\n if(lastOriginalSource !== original.source\n || lastOriginalLine !== original.line\n || lastOriginalColumn !== original.column\n || lastOriginalName !== original.name) {\n map.addMapping({\n source: original.source,\n original: {\n line: original.line,\n column: original.column\n },\n generated: {\n line: generated.line,\n column: generated.column\n },\n name: original.name\n });\n }\n lastOriginalSource = original.source;\n lastOriginalLine = original.line;\n lastOriginalColumn = original.column;\n lastOriginalName = original.name;\n sourceMappingActive = true;\n } else if (sourceMappingActive) {\n map.addMapping({\n generated: {\n line: generated.line,\n column: generated.column\n }\n });\n lastOriginalSource = null;\n sourceMappingActive = false;\n }\n for (var idx = 0, length = chunk.length; idx < length; idx++) {\n if (chunk.charCodeAt(idx) === NEWLINE_CODE) {\n generated.line++;\n generated.column = 0;\n // Mappings end at eol\n if (idx + 1 === length) {\n lastOriginalSource = null;\n sourceMappingActive = false;\n } else if (sourceMappingActive) {\n map.addMapping({\n source: original.source,\n original: {\n line: original.line,\n column: original.column\n },\n generated: {\n line: generated.line,\n column: generated.column\n },\n name: original.name\n });\n }\n } else {\n generated.column++;\n }\n }\n });\n this.walkSourceContents(function (sourceFile, sourceContent) {\n map.setSourceContent(sourceFile, sourceContent);\n });\n\n return { code: generated.code, map: map };\n};\n\nexports.SourceNode = SourceNode;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CAOA,IAAI,oDAAuD;CAC3D,IAAI;CAIJ,IAAI,gBAAgB;CAGpB,IAAI,eAAe;CAKnB,IAAI,eAAe;;;;;;;;;;;;;CAcnB,SAAS,WAAW,OAAO,SAAS,SAAS,SAAS,OAAO;AAC3D,OAAK,WAAW,EAAE;AAClB,OAAK,iBAAiB,EAAE;AACxB,OAAK,OAAO,SAAS,OAAO,OAAO;AACnC,OAAK,SAAS,WAAW,OAAO,OAAO;AACvC,OAAK,SAAS,WAAW,OAAO,OAAO;AACvC,OAAK,OAAO,SAAS,OAAO,OAAO;AACnC,OAAK,gBAAgB;AACrB,MAAI,WAAW,KAAM,MAAK,IAAI,QAAQ;;;;;;;;;;AAWxC,YAAW,0BACT,SAAS,mCAAmC,gBAAgB,oBAAoB,eAAe;EAG7F,IAAI,OAAO,IAAI,YAAY;EAM3B,IAAI,iBAAiB,eAAe,MAAM,cAAc;EACxD,IAAI,sBAAsB;EAC1B,IAAI,gBAAgB,WAAW;AAI7B,UAHmB,aAAa,IAElB,aAAa,IAAI;GAG/B,SAAS,cAAc;AACrB,WAAO,sBAAsB,eAAe,SACxC,eAAe,yBAAyB;;;EAKhD,IAAI,oBAAoB,GAAG,sBAAsB;EA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from "../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js
|
|
4
|
-
var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js": ((exports) => {
|
|
5
|
-
/**
|
|
6
|
-
* This is a helper function for getting values from parameter/options
|
|
7
|
-
* objects.
|
|
8
|
-
*
|
|
9
|
-
* @param args The object we are extracting values from
|
|
10
|
-
* @param name The name of the property we are getting.
|
|
11
|
-
* @param defaultValue An optional value to return if the property is missing
|
|
12
|
-
* from the object. If this is not specified and the property is missing, an
|
|
13
|
-
* error will be thrown.
|
|
14
|
-
*/
|
|
15
|
-
function getArg(aArgs, aName, aDefaultValue) {
|
|
16
|
-
if (aName in aArgs) return aArgs[aName];
|
|
17
|
-
else if (arguments.length === 3) return aDefaultValue;
|
|
18
|
-
else throw new Error("\"" + aName + "\" is a required argument.");
|
|
19
|
-
}
|
|
20
|
-
exports.getArg = getArg;
|
|
21
|
-
var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
|
|
22
|
-
var dataUrlRegexp = /^data:.+\,.+$/;
|
|
23
|
-
function urlParse(aUrl) {
|
|
24
|
-
var match = aUrl.match(urlRegexp);
|
|
25
|
-
if (!match) return null;
|
|
26
|
-
return {
|
|
27
|
-
scheme: match[1],
|
|
28
|
-
auth: match[2],
|
|
29
|
-
host: match[3],
|
|
30
|
-
port: match[4],
|
|
31
|
-
path: match[5]
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
exports.urlParse = urlParse;
|
|
35
|
-
function urlGenerate(aParsedUrl) {
|
|
36
|
-
var url = "";
|
|
37
|
-
if (aParsedUrl.scheme) url += aParsedUrl.scheme + ":";
|
|
38
|
-
url += "//";
|
|
39
|
-
if (aParsedUrl.auth) url += aParsedUrl.auth + "@";
|
|
40
|
-
if (aParsedUrl.host) url += aParsedUrl.host;
|
|
41
|
-
if (aParsedUrl.port) url += ":" + aParsedUrl.port;
|
|
42
|
-
if (aParsedUrl.path) url += aParsedUrl.path;
|
|
43
|
-
return url;
|
|
44
|
-
}
|
|
45
|
-
exports.urlGenerate = urlGenerate;
|
|
46
|
-
var MAX_CACHED_INPUTS = 32;
|
|
47
|
-
/**
|
|
48
|
-
* Takes some function `f(input) -> result` and returns a memoized version of
|
|
49
|
-
* `f`.
|
|
50
|
-
*
|
|
51
|
-
* We keep at most `MAX_CACHED_INPUTS` memoized results of `f` alive. The
|
|
52
|
-
* memoization is a dumb-simple, linear least-recently-used cache.
|
|
53
|
-
*/
|
|
54
|
-
function lruMemoize(f) {
|
|
55
|
-
var cache = [];
|
|
56
|
-
return function(input) {
|
|
57
|
-
for (var i = 0; i < cache.length; i++) if (cache[i].input === input) {
|
|
58
|
-
var temp = cache[0];
|
|
59
|
-
cache[0] = cache[i];
|
|
60
|
-
cache[i] = temp;
|
|
61
|
-
return cache[0].result;
|
|
62
|
-
}
|
|
63
|
-
var result = f(input);
|
|
64
|
-
cache.unshift({
|
|
65
|
-
input,
|
|
66
|
-
result
|
|
67
|
-
});
|
|
68
|
-
if (cache.length > MAX_CACHED_INPUTS) cache.pop();
|
|
69
|
-
return result;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Normalizes a path, or the path portion of a URL:
|
|
74
|
-
*
|
|
75
|
-
* - Replaces consecutive slashes with one slash.
|
|
76
|
-
* - Removes unnecessary '.' parts.
|
|
77
|
-
* - Removes unnecessary '<dir>/..' parts.
|
|
78
|
-
*
|
|
79
|
-
* Based on code in the Node.js 'path' core module.
|
|
80
|
-
*
|
|
81
|
-
* @param aPath The path or url to normalize.
|
|
82
|
-
*/
|
|
83
|
-
var normalize = lruMemoize(function normalize$1(aPath) {
|
|
84
|
-
var path = aPath;
|
|
85
|
-
var url = urlParse(aPath);
|
|
86
|
-
if (url) {
|
|
87
|
-
if (!url.path) return aPath;
|
|
88
|
-
path = url.path;
|
|
89
|
-
}
|
|
90
|
-
var isAbsolute = exports.isAbsolute(path);
|
|
91
|
-
var parts = [];
|
|
92
|
-
var start = 0;
|
|
93
|
-
var i = 0;
|
|
94
|
-
while (true) {
|
|
95
|
-
start = i;
|
|
96
|
-
i = path.indexOf("/", start);
|
|
97
|
-
if (i === -1) {
|
|
98
|
-
parts.push(path.slice(start));
|
|
99
|
-
break;
|
|
100
|
-
} else {
|
|
101
|
-
parts.push(path.slice(start, i));
|
|
102
|
-
while (i < path.length && path[i] === "/") i++;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
|
|
106
|
-
part = parts[i];
|
|
107
|
-
if (part === ".") parts.splice(i, 1);
|
|
108
|
-
else if (part === "..") up++;
|
|
109
|
-
else if (up > 0) if (part === "") {
|
|
110
|
-
parts.splice(i + 1, up);
|
|
111
|
-
up = 0;
|
|
112
|
-
} else {
|
|
113
|
-
parts.splice(i, 2);
|
|
114
|
-
up--;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
path = parts.join("/");
|
|
118
|
-
if (path === "") path = isAbsolute ? "/" : ".";
|
|
119
|
-
if (url) {
|
|
120
|
-
url.path = path;
|
|
121
|
-
return urlGenerate(url);
|
|
122
|
-
}
|
|
123
|
-
return path;
|
|
124
|
-
});
|
|
125
|
-
exports.normalize = normalize;
|
|
126
|
-
/**
|
|
127
|
-
* Joins two paths/URLs.
|
|
128
|
-
*
|
|
129
|
-
* @param aRoot The root path or URL.
|
|
130
|
-
* @param aPath The path or URL to be joined with the root.
|
|
131
|
-
*
|
|
132
|
-
* - If aPath is a URL or a data URI, aPath is returned, unless aPath is a
|
|
133
|
-
* scheme-relative URL: Then the scheme of aRoot, if any, is prepended
|
|
134
|
-
* first.
|
|
135
|
-
* - Otherwise aPath is a path. If aRoot is a URL, then its path portion
|
|
136
|
-
* is updated with the result and aRoot is returned. Otherwise the result
|
|
137
|
-
* is returned.
|
|
138
|
-
* - If aPath is absolute, the result is aPath.
|
|
139
|
-
* - Otherwise the two paths are joined with a slash.
|
|
140
|
-
* - Joining for example 'http://' and 'www.example.com' is also supported.
|
|
141
|
-
*/
|
|
142
|
-
function join(aRoot, aPath) {
|
|
143
|
-
if (aRoot === "") aRoot = ".";
|
|
144
|
-
if (aPath === "") aPath = ".";
|
|
145
|
-
var aPathUrl = urlParse(aPath);
|
|
146
|
-
var aRootUrl = urlParse(aRoot);
|
|
147
|
-
if (aRootUrl) aRoot = aRootUrl.path || "/";
|
|
148
|
-
if (aPathUrl && !aPathUrl.scheme) {
|
|
149
|
-
if (aRootUrl) aPathUrl.scheme = aRootUrl.scheme;
|
|
150
|
-
return urlGenerate(aPathUrl);
|
|
151
|
-
}
|
|
152
|
-
if (aPathUrl || aPath.match(dataUrlRegexp)) return aPath;
|
|
153
|
-
if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
|
|
154
|
-
aRootUrl.host = aPath;
|
|
155
|
-
return urlGenerate(aRootUrl);
|
|
156
|
-
}
|
|
157
|
-
var joined = aPath.charAt(0) === "/" ? aPath : normalize(aRoot.replace(/\/+$/, "") + "/" + aPath);
|
|
158
|
-
if (aRootUrl) {
|
|
159
|
-
aRootUrl.path = joined;
|
|
160
|
-
return urlGenerate(aRootUrl);
|
|
161
|
-
}
|
|
162
|
-
return joined;
|
|
163
|
-
}
|
|
164
|
-
exports.join = join;
|
|
165
|
-
exports.isAbsolute = function(aPath) {
|
|
166
|
-
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* Make a path relative to a URL or another path.
|
|
170
|
-
*
|
|
171
|
-
* @param aRoot The root path or URL.
|
|
172
|
-
* @param aPath The path or URL to be made relative to aRoot.
|
|
173
|
-
*/
|
|
174
|
-
function relative(aRoot, aPath) {
|
|
175
|
-
if (aRoot === "") aRoot = ".";
|
|
176
|
-
aRoot = aRoot.replace(/\/$/, "");
|
|
177
|
-
var level = 0;
|
|
178
|
-
while (aPath.indexOf(aRoot + "/") !== 0) {
|
|
179
|
-
var index = aRoot.lastIndexOf("/");
|
|
180
|
-
if (index < 0) return aPath;
|
|
181
|
-
aRoot = aRoot.slice(0, index);
|
|
182
|
-
if (aRoot.match(/^([^\/]+:\/)?\/*$/)) return aPath;
|
|
183
|
-
++level;
|
|
184
|
-
}
|
|
185
|
-
return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
|
|
186
|
-
}
|
|
187
|
-
exports.relative = relative;
|
|
188
|
-
var supportsNullProto = function() {
|
|
189
|
-
return !("__proto__" in Object.create(null));
|
|
190
|
-
}();
|
|
191
|
-
function identity(s) {
|
|
192
|
-
return s;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Because behavior goes wacky when you set `__proto__` on objects, we
|
|
196
|
-
* have to prefix all the strings in our set with an arbitrary character.
|
|
197
|
-
*
|
|
198
|
-
* See https://github.com/mozilla/source-map/pull/31 and
|
|
199
|
-
* https://github.com/mozilla/source-map/issues/30
|
|
200
|
-
*
|
|
201
|
-
* @param String aStr
|
|
202
|
-
*/
|
|
203
|
-
function toSetString(aStr) {
|
|
204
|
-
if (isProtoString(aStr)) return "$" + aStr;
|
|
205
|
-
return aStr;
|
|
206
|
-
}
|
|
207
|
-
exports.toSetString = supportsNullProto ? identity : toSetString;
|
|
208
|
-
function fromSetString(aStr) {
|
|
209
|
-
if (isProtoString(aStr)) return aStr.slice(1);
|
|
210
|
-
return aStr;
|
|
211
|
-
}
|
|
212
|
-
exports.fromSetString = supportsNullProto ? identity : fromSetString;
|
|
213
|
-
function isProtoString(s) {
|
|
214
|
-
if (!s) return false;
|
|
215
|
-
var length = s.length;
|
|
216
|
-
if (length < 9) return false;
|
|
217
|
-
if (s.charCodeAt(length - 1) !== 95 || s.charCodeAt(length - 2) !== 95 || s.charCodeAt(length - 3) !== 111 || s.charCodeAt(length - 4) !== 116 || s.charCodeAt(length - 5) !== 111 || s.charCodeAt(length - 6) !== 114 || s.charCodeAt(length - 7) !== 112 || s.charCodeAt(length - 8) !== 95 || s.charCodeAt(length - 9) !== 95) return false;
|
|
218
|
-
for (var i = length - 10; i >= 0; i--) if (s.charCodeAt(i) !== 36) return false;
|
|
219
|
-
return true;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Comparator between two mappings where the original positions are compared.
|
|
223
|
-
*
|
|
224
|
-
* Optionally pass in `true` as `onlyCompareGenerated` to consider two
|
|
225
|
-
* mappings with the same original source/line/column, but different generated
|
|
226
|
-
* line and column the same. Useful when searching for a mapping with a
|
|
227
|
-
* stubbed out mapping.
|
|
228
|
-
*/
|
|
229
|
-
function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
|
|
230
|
-
var cmp = strcmp(mappingA.source, mappingB.source);
|
|
231
|
-
if (cmp !== 0) return cmp;
|
|
232
|
-
cmp = mappingA.originalLine - mappingB.originalLine;
|
|
233
|
-
if (cmp !== 0) return cmp;
|
|
234
|
-
cmp = mappingA.originalColumn - mappingB.originalColumn;
|
|
235
|
-
if (cmp !== 0 || onlyCompareOriginal) return cmp;
|
|
236
|
-
cmp = mappingA.generatedColumn - mappingB.generatedColumn;
|
|
237
|
-
if (cmp !== 0) return cmp;
|
|
238
|
-
cmp = mappingA.generatedLine - mappingB.generatedLine;
|
|
239
|
-
if (cmp !== 0) return cmp;
|
|
240
|
-
return strcmp(mappingA.name, mappingB.name);
|
|
241
|
-
}
|
|
242
|
-
exports.compareByOriginalPositions = compareByOriginalPositions;
|
|
243
|
-
function compareByOriginalPositionsNoSource(mappingA, mappingB, onlyCompareOriginal) {
|
|
244
|
-
var cmp = mappingA.originalLine - mappingB.originalLine;
|
|
245
|
-
if (cmp !== 0) return cmp;
|
|
246
|
-
cmp = mappingA.originalColumn - mappingB.originalColumn;
|
|
247
|
-
if (cmp !== 0 || onlyCompareOriginal) return cmp;
|
|
248
|
-
cmp = mappingA.generatedColumn - mappingB.generatedColumn;
|
|
249
|
-
if (cmp !== 0) return cmp;
|
|
250
|
-
cmp = mappingA.generatedLine - mappingB.generatedLine;
|
|
251
|
-
if (cmp !== 0) return cmp;
|
|
252
|
-
return strcmp(mappingA.name, mappingB.name);
|
|
253
|
-
}
|
|
254
|
-
exports.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;
|
|
255
|
-
/**
|
|
256
|
-
* Comparator between two mappings with deflated source and name indices where
|
|
257
|
-
* the generated positions are compared.
|
|
258
|
-
*
|
|
259
|
-
* Optionally pass in `true` as `onlyCompareGenerated` to consider two
|
|
260
|
-
* mappings with the same generated line and column, but different
|
|
261
|
-
* source/name/original line and column the same. Useful when searching for a
|
|
262
|
-
* mapping with a stubbed out mapping.
|
|
263
|
-
*/
|
|
264
|
-
function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
|
|
265
|
-
var cmp = mappingA.generatedLine - mappingB.generatedLine;
|
|
266
|
-
if (cmp !== 0) return cmp;
|
|
267
|
-
cmp = mappingA.generatedColumn - mappingB.generatedColumn;
|
|
268
|
-
if (cmp !== 0 || onlyCompareGenerated) return cmp;
|
|
269
|
-
cmp = strcmp(mappingA.source, mappingB.source);
|
|
270
|
-
if (cmp !== 0) return cmp;
|
|
271
|
-
cmp = mappingA.originalLine - mappingB.originalLine;
|
|
272
|
-
if (cmp !== 0) return cmp;
|
|
273
|
-
cmp = mappingA.originalColumn - mappingB.originalColumn;
|
|
274
|
-
if (cmp !== 0) return cmp;
|
|
275
|
-
return strcmp(mappingA.name, mappingB.name);
|
|
276
|
-
}
|
|
277
|
-
exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
|
|
278
|
-
function compareByGeneratedPositionsDeflatedNoLine(mappingA, mappingB, onlyCompareGenerated) {
|
|
279
|
-
var cmp = mappingA.generatedColumn - mappingB.generatedColumn;
|
|
280
|
-
if (cmp !== 0 || onlyCompareGenerated) return cmp;
|
|
281
|
-
cmp = strcmp(mappingA.source, mappingB.source);
|
|
282
|
-
if (cmp !== 0) return cmp;
|
|
283
|
-
cmp = mappingA.originalLine - mappingB.originalLine;
|
|
284
|
-
if (cmp !== 0) return cmp;
|
|
285
|
-
cmp = mappingA.originalColumn - mappingB.originalColumn;
|
|
286
|
-
if (cmp !== 0) return cmp;
|
|
287
|
-
return strcmp(mappingA.name, mappingB.name);
|
|
288
|
-
}
|
|
289
|
-
exports.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;
|
|
290
|
-
function strcmp(aStr1, aStr2) {
|
|
291
|
-
if (aStr1 === aStr2) return 0;
|
|
292
|
-
if (aStr1 === null) return 1;
|
|
293
|
-
if (aStr2 === null) return -1;
|
|
294
|
-
if (aStr1 > aStr2) return 1;
|
|
295
|
-
return -1;
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Comparator between two mappings with inflated source and name strings where
|
|
299
|
-
* the generated positions are compared.
|
|
300
|
-
*/
|
|
301
|
-
function compareByGeneratedPositionsInflated(mappingA, mappingB) {
|
|
302
|
-
var cmp = mappingA.generatedLine - mappingB.generatedLine;
|
|
303
|
-
if (cmp !== 0) return cmp;
|
|
304
|
-
cmp = mappingA.generatedColumn - mappingB.generatedColumn;
|
|
305
|
-
if (cmp !== 0) return cmp;
|
|
306
|
-
cmp = strcmp(mappingA.source, mappingB.source);
|
|
307
|
-
if (cmp !== 0) return cmp;
|
|
308
|
-
cmp = mappingA.originalLine - mappingB.originalLine;
|
|
309
|
-
if (cmp !== 0) return cmp;
|
|
310
|
-
cmp = mappingA.originalColumn - mappingB.originalColumn;
|
|
311
|
-
if (cmp !== 0) return cmp;
|
|
312
|
-
return strcmp(mappingA.name, mappingB.name);
|
|
313
|
-
}
|
|
314
|
-
exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
|
|
315
|
-
/**
|
|
316
|
-
* Strip any JSON XSSI avoidance prefix from the string (as documented
|
|
317
|
-
* in the source maps specification), and then parse the string as
|
|
318
|
-
* JSON.
|
|
319
|
-
*/
|
|
320
|
-
function parseSourceMapInput(str) {
|
|
321
|
-
return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
|
|
322
|
-
}
|
|
323
|
-
exports.parseSourceMapInput = parseSourceMapInput;
|
|
324
|
-
/**
|
|
325
|
-
* Compute the URL of a source given the the source root, the source's
|
|
326
|
-
* URL, and the source map's URL.
|
|
327
|
-
*/
|
|
328
|
-
function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
|
|
329
|
-
sourceURL = sourceURL || "";
|
|
330
|
-
if (sourceRoot) {
|
|
331
|
-
if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") sourceRoot += "/";
|
|
332
|
-
sourceURL = sourceRoot + sourceURL;
|
|
333
|
-
}
|
|
334
|
-
if (sourceMapURL) {
|
|
335
|
-
var parsed = urlParse(sourceMapURL);
|
|
336
|
-
if (!parsed) throw new Error("sourceMapURL could not be parsed");
|
|
337
|
-
if (parsed.path) {
|
|
338
|
-
var index = parsed.path.lastIndexOf("/");
|
|
339
|
-
if (index >= 0) parsed.path = parsed.path.substring(0, index + 1);
|
|
340
|
-
}
|
|
341
|
-
sourceURL = join(urlGenerate(parsed), sourceURL);
|
|
342
|
-
}
|
|
343
|
-
return normalize(sourceURL);
|
|
344
|
-
}
|
|
345
|
-
exports.computeSourceURL = computeSourceURL;
|
|
346
|
-
}) });
|
|
347
|
-
|
|
348
|
-
//#endregion
|
|
349
|
-
export default require_util();
|
|
350
|
-
|
|
351
|
-
export { require_util };
|
|
352
|
-
//# sourceMappingURL=util.mjs.map
|