@flourish/sdk 4.2.0 → 4.2.2
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/RELEASE_NOTES.md +6 -0
- package/lib/cmd/publish.js +1 -1
- package/lib/common.js +1 -1
- package/lib/sdk.js +25 -5
- package/lib/validate_config.js +1 -1
- package/my_template/node_modules/.package-lock.json +525 -0
- package/my_template/node_modules/@babel/code-frame/LICENSE +22 -0
- package/my_template/node_modules/@babel/code-frame/README.md +19 -0
- package/my_template/node_modules/@babel/code-frame/lib/index.js +157 -0
- package/my_template/node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/my_template/node_modules/@babel/code-frame/package.json +30 -0
- package/my_template/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/my_template/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/my_template/node_modules/@babel/helper-validator-identifier/package.json +28 -0
- package/my_template/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +73 -0
- package/my_template/node_modules/@babel/highlight/LICENSE +22 -0
- package/my_template/node_modules/@babel/highlight/README.md +19 -0
- package/my_template/node_modules/@babel/highlight/lib/index.js +105 -0
- package/my_template/node_modules/@babel/highlight/lib/index.js.map +1 -0
- package/my_template/node_modules/@babel/highlight/package.json +29 -0
- package/my_template/node_modules/@types/estree/LICENSE +21 -0
- package/my_template/node_modules/@types/estree/README.md +15 -0
- package/my_template/node_modules/@types/estree/flow.d.ts +167 -0
- package/my_template/node_modules/@types/estree/index.d.ts +683 -0
- package/my_template/node_modules/@types/estree/package.json +26 -0
- package/my_template/node_modules/@types/node/LICENSE +21 -0
- package/my_template/node_modules/@types/node/README.md +15 -0
- package/my_template/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/my_template/node_modules/@types/node/assert.d.ts +996 -0
- package/my_template/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/my_template/node_modules/@types/node/buffer.d.ts +2362 -0
- package/my_template/node_modules/@types/node/child_process.d.ts +1540 -0
- package/my_template/node_modules/@types/node/cluster.d.ts +432 -0
- package/my_template/node_modules/@types/node/console.d.ts +415 -0
- package/my_template/node_modules/@types/node/constants.d.ts +19 -0
- package/my_template/node_modules/@types/node/crypto.d.ts +4456 -0
- package/my_template/node_modules/@types/node/dgram.d.ts +586 -0
- package/my_template/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/my_template/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/my_template/node_modules/@types/node/dns.d.ts +809 -0
- package/my_template/node_modules/@types/node/dom-events.d.ts +122 -0
- package/my_template/node_modules/@types/node/domain.d.ts +170 -0
- package/my_template/node_modules/@types/node/events.d.ts +879 -0
- package/my_template/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/my_template/node_modules/@types/node/fs.d.ts +4291 -0
- package/my_template/node_modules/@types/node/globals.d.ts +385 -0
- package/my_template/node_modules/@types/node/globals.global.d.ts +1 -0
- package/my_template/node_modules/@types/node/http.d.ts +1888 -0
- package/my_template/node_modules/@types/node/http2.d.ts +2382 -0
- package/my_template/node_modules/@types/node/https.d.ts +550 -0
- package/my_template/node_modules/@types/node/index.d.ts +88 -0
- package/my_template/node_modules/@types/node/inspector.d.ts +2747 -0
- package/my_template/node_modules/@types/node/module.d.ts +301 -0
- package/my_template/node_modules/@types/node/net.d.ts +949 -0
- package/my_template/node_modules/@types/node/os.d.ts +478 -0
- package/my_template/node_modules/@types/node/package.json +230 -0
- package/my_template/node_modules/@types/node/path.d.ts +191 -0
- package/my_template/node_modules/@types/node/perf_hooks.d.ts +639 -0
- package/my_template/node_modules/@types/node/process.d.ts +1539 -0
- package/my_template/node_modules/@types/node/punycode.d.ts +117 -0
- package/my_template/node_modules/@types/node/querystring.d.ts +141 -0
- package/my_template/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/my_template/node_modules/@types/node/readline.d.ts +539 -0
- package/my_template/node_modules/@types/node/repl.d.ts +430 -0
- package/my_template/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/my_template/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/my_template/node_modules/@types/node/stream/web.d.ts +350 -0
- package/my_template/node_modules/@types/node/stream.d.ts +1701 -0
- package/my_template/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/my_template/node_modules/@types/node/test.d.ts +1382 -0
- package/my_template/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/my_template/node_modules/@types/node/timers.d.ts +240 -0
- package/my_template/node_modules/@types/node/tls.d.ts +1210 -0
- package/my_template/node_modules/@types/node/trace_events.d.ts +182 -0
- package/my_template/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/my_template/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/my_template/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/my_template/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/my_template/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/my_template/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/my_template/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/my_template/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/my_template/node_modules/@types/node/ts4.8/crypto.d.ts +4455 -0
- package/my_template/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
- package/my_template/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/my_template/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/my_template/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/my_template/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/my_template/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/my_template/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/my_template/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/my_template/node_modules/@types/node/ts4.8/fs.d.ts +4291 -0
- package/my_template/node_modules/@types/node/ts4.8/globals.d.ts +385 -0
- package/my_template/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/my_template/node_modules/@types/node/ts4.8/http.d.ts +1888 -0
- package/my_template/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/my_template/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/my_template/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/my_template/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/my_template/node_modules/@types/node/ts4.8/module.d.ts +301 -0
- package/my_template/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/my_template/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/my_template/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/my_template/node_modules/@types/node/ts4.8/perf_hooks.d.ts +639 -0
- package/my_template/node_modules/@types/node/ts4.8/process.d.ts +1539 -0
- package/my_template/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/my_template/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/my_template/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/my_template/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/my_template/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/my_template/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/my_template/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/my_template/node_modules/@types/node/ts4.8/stream/web.d.ts +350 -0
- package/my_template/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/my_template/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/my_template/node_modules/@types/node/ts4.8/test.d.ts +1382 -0
- package/my_template/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/my_template/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/my_template/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/my_template/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/my_template/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/my_template/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/my_template/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
- package/my_template/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/my_template/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/my_template/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/my_template/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/my_template/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/my_template/node_modules/@types/node/tty.d.ts +208 -0
- package/my_template/node_modules/@types/node/url.d.ts +927 -0
- package/my_template/node_modules/@types/node/util.d.ts +2183 -0
- package/my_template/node_modules/@types/node/v8.d.ts +635 -0
- package/my_template/node_modules/@types/node/vm.d.ts +903 -0
- package/my_template/node_modules/@types/node/wasi.d.ts +158 -0
- package/my_template/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/my_template/node_modules/@types/node/zlib.d.ts +517 -0
- package/my_template/node_modules/@types/resolve/LICENSE +21 -0
- package/my_template/node_modules/@types/resolve/README.md +16 -0
- package/my_template/node_modules/@types/resolve/index.d.ts +113 -0
- package/my_template/node_modules/@types/resolve/package.json +29 -0
- package/my_template/node_modules/acorn/CHANGELOG.md +620 -0
- package/my_template/node_modules/acorn/LICENSE +21 -0
- package/my_template/node_modules/acorn/README.md +269 -0
- package/my_template/node_modules/acorn/bin/acorn +4 -0
- package/my_template/node_modules/acorn/dist/acorn.d.ts +209 -0
- package/my_template/node_modules/acorn/dist/acorn.js +5186 -0
- package/my_template/node_modules/acorn/dist/acorn.js.map +1 -0
- package/my_template/node_modules/acorn/dist/acorn.mjs +5155 -0
- package/my_template/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
- package/my_template/node_modules/acorn/dist/acorn.mjs.map +1 -0
- package/my_template/node_modules/acorn/dist/bin.js +64 -0
- package/my_template/node_modules/acorn/package.json +35 -0
- package/my_template/node_modules/amdefine/LICENSE +58 -0
- package/my_template/node_modules/amdefine/README.md +171 -0
- package/my_template/node_modules/amdefine/amdefine.js +301 -0
- package/my_template/node_modules/amdefine/intercept.js +36 -0
- package/my_template/node_modules/amdefine/package.json +16 -0
- package/my_template/node_modules/ansi-styles/index.js +165 -0
- package/my_template/node_modules/ansi-styles/license +9 -0
- package/my_template/node_modules/ansi-styles/package.json +56 -0
- package/my_template/node_modules/ansi-styles/readme.md +147 -0
- package/my_template/node_modules/builtin-modules/builtin-modules.json +43 -0
- package/my_template/node_modules/builtin-modules/index.d.ts +14 -0
- package/my_template/node_modules/builtin-modules/index.js +11 -0
- package/my_template/node_modules/builtin-modules/license +9 -0
- package/my_template/node_modules/builtin-modules/package.json +44 -0
- package/my_template/node_modules/builtin-modules/readme.md +44 -0
- package/my_template/node_modules/builtin-modules/static.d.ts +14 -0
- package/my_template/node_modules/builtin-modules/static.js +2 -0
- package/my_template/node_modules/chalk/index.js +228 -0
- package/my_template/node_modules/chalk/index.js.flow +93 -0
- package/my_template/node_modules/chalk/license +9 -0
- package/my_template/node_modules/chalk/package.json +71 -0
- package/my_template/node_modules/chalk/readme.md +314 -0
- package/my_template/node_modules/chalk/templates.js +128 -0
- package/my_template/node_modules/chalk/types/index.d.ts +97 -0
- package/my_template/node_modules/clean-css/History.md +1138 -0
- package/my_template/node_modules/clean-css/LICENSE +19 -0
- package/my_template/node_modules/clean-css/README.md +369 -0
- package/my_template/node_modules/clean-css/bin/cleancss +184 -0
- package/my_template/node_modules/clean-css/index.js +1 -0
- package/my_template/node_modules/clean-css/lib/clean.js +231 -0
- package/my_template/node_modules/clean-css/lib/colors/hex-name-shortener.js +186 -0
- package/my_template/node_modules/clean-css/lib/colors/hsl.js +67 -0
- package/my_template/node_modules/clean-css/lib/colors/rgb.js +16 -0
- package/my_template/node_modules/clean-css/lib/imports/inliner.js +399 -0
- package/my_template/node_modules/clean-css/lib/properties/break-up.js +335 -0
- package/my_template/node_modules/clean-css/lib/properties/can-override.js +142 -0
- package/my_template/node_modules/clean-css/lib/properties/clone.js +26 -0
- package/my_template/node_modules/clean-css/lib/properties/compactable.js +285 -0
- package/my_template/node_modules/clean-css/lib/properties/every-combination.js +28 -0
- package/my_template/node_modules/clean-css/lib/properties/has-inherit.js +10 -0
- package/my_template/node_modules/clean-css/lib/properties/invalid-property-error.js +10 -0
- package/my_template/node_modules/clean-css/lib/properties/optimizer.js +215 -0
- package/my_template/node_modules/clean-css/lib/properties/override-compactor.js +384 -0
- package/my_template/node_modules/clean-css/lib/properties/populate-components.js +32 -0
- package/my_template/node_modules/clean-css/lib/properties/remove-unused.js +10 -0
- package/my_template/node_modules/clean-css/lib/properties/restore-from-optimizing.js +60 -0
- package/my_template/node_modules/clean-css/lib/properties/restore.js +232 -0
- package/my_template/node_modules/clean-css/lib/properties/shorthand-compactor.js +134 -0
- package/my_template/node_modules/clean-css/lib/properties/validator.js +197 -0
- package/my_template/node_modules/clean-css/lib/properties/vendor-prefixes.js +26 -0
- package/my_template/node_modules/clean-css/lib/properties/wrap-for-optimizing.js +118 -0
- package/my_template/node_modules/clean-css/lib/selectors/advanced.js +86 -0
- package/my_template/node_modules/clean-css/lib/selectors/clean-up.js +89 -0
- package/my_template/node_modules/clean-css/lib/selectors/extractor.js +69 -0
- package/my_template/node_modules/clean-css/lib/selectors/is-special.js +5 -0
- package/my_template/node_modules/clean-css/lib/selectors/merge-adjacent.js +35 -0
- package/my_template/node_modules/clean-css/lib/selectors/merge-media-queries.js +64 -0
- package/my_template/node_modules/clean-css/lib/selectors/merge-non-adjacent-by-body.js +61 -0
- package/my_template/node_modules/clean-css/lib/selectors/merge-non-adjacent-by-selector.js +76 -0
- package/my_template/node_modules/clean-css/lib/selectors/reduce-non-adjacent.js +172 -0
- package/my_template/node_modules/clean-css/lib/selectors/remove-duplicate-media-queries.js +21 -0
- package/my_template/node_modules/clean-css/lib/selectors/remove-duplicates.js +41 -0
- package/my_template/node_modules/clean-css/lib/selectors/reorderable.js +99 -0
- package/my_template/node_modules/clean-css/lib/selectors/restructure.js +369 -0
- package/my_template/node_modules/clean-css/lib/selectors/simple.js +454 -0
- package/my_template/node_modules/clean-css/lib/source-maps/track.js +119 -0
- package/my_template/node_modules/clean-css/lib/stringifier/helpers.js +167 -0
- package/my_template/node_modules/clean-css/lib/stringifier/one-time.js +50 -0
- package/my_template/node_modules/clean-css/lib/stringifier/simple.js +22 -0
- package/my_template/node_modules/clean-css/lib/stringifier/source-maps.js +96 -0
- package/my_template/node_modules/clean-css/lib/text/comments-processor.js +131 -0
- package/my_template/node_modules/clean-css/lib/text/escape-store.js +53 -0
- package/my_template/node_modules/clean-css/lib/text/expressions-processor.js +117 -0
- package/my_template/node_modules/clean-css/lib/text/free-text-processor.js +98 -0
- package/my_template/node_modules/clean-css/lib/text/urls-processor.js +75 -0
- package/my_template/node_modules/clean-css/lib/tokenizer/extract-properties.js +193 -0
- package/my_template/node_modules/clean-css/lib/tokenizer/extract-selectors.js +17 -0
- package/my_template/node_modules/clean-css/lib/tokenizer/tokenize.js +297 -0
- package/my_template/node_modules/clean-css/lib/urls/rebase.js +30 -0
- package/my_template/node_modules/clean-css/lib/urls/reduce.js +154 -0
- package/my_template/node_modules/clean-css/lib/urls/rewrite.js +107 -0
- package/my_template/node_modules/clean-css/lib/utils/clone-array.js +12 -0
- package/my_template/node_modules/clean-css/lib/utils/compatibility.js +162 -0
- package/my_template/node_modules/clean-css/lib/utils/input-source-map-tracker.js +284 -0
- package/my_template/node_modules/clean-css/lib/utils/object.js +11 -0
- package/my_template/node_modules/clean-css/lib/utils/quote-scanner.js +119 -0
- package/my_template/node_modules/clean-css/lib/utils/source-reader.js +96 -0
- package/my_template/node_modules/clean-css/lib/utils/source-tracker.js +31 -0
- package/my_template/node_modules/clean-css/lib/utils/split.js +62 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/README.md +510 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/build/assert-shim.js +56 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/build/mini-require.js +152 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/build/prefix-source-map.jsm +21 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/build/prefix-utils.jsm +18 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-browser.js +8 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-utils.jsm +21 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/build/test-prefix.js +8 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/build/test-suffix.js +3 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/array-set.js +107 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/base64-vlq.js +146 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/base64.js +73 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/binary-search.js +117 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/mapping-list.js +86 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/quick-sort.js +120 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-map-consumer.js +1077 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-map-generator.js +399 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-node.js +414 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/util.js +370 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map.js +8 -0
- package/my_template/node_modules/clean-css/node_modules/source-map/package.json +68 -0
- package/my_template/node_modules/clean-css/package.json +53 -0
- package/my_template/node_modules/color-convert/CHANGELOG.md +54 -0
- package/my_template/node_modules/color-convert/LICENSE +21 -0
- package/my_template/node_modules/color-convert/README.md +68 -0
- package/my_template/node_modules/color-convert/conversions.js +868 -0
- package/my_template/node_modules/color-convert/index.js +78 -0
- package/my_template/node_modules/color-convert/package.json +46 -0
- package/my_template/node_modules/color-convert/route.js +97 -0
- package/my_template/node_modules/color-name/.eslintrc.json +43 -0
- package/my_template/node_modules/color-name/LICENSE +8 -0
- package/my_template/node_modules/color-name/README.md +11 -0
- package/my_template/node_modules/color-name/index.js +152 -0
- package/my_template/node_modules/color-name/package.json +25 -0
- package/my_template/node_modules/color-name/test.js +7 -0
- package/my_template/node_modules/commander/History.md +256 -0
- package/my_template/node_modules/commander/LICENSE +22 -0
- package/my_template/node_modules/commander/Readme.md +342 -0
- package/my_template/node_modules/commander/index.js +1103 -0
- package/my_template/node_modules/commander/package.json +33 -0
- package/my_template/node_modules/copy-anything/LICENSE +21 -0
- package/my_template/node_modules/copy-anything/README.md +130 -0
- package/my_template/node_modules/copy-anything/dist/index.cjs +52 -0
- package/my_template/node_modules/copy-anything/dist/index.es.js +48 -0
- package/my_template/node_modules/copy-anything/dist/types/index.d.ts +15 -0
- package/my_template/node_modules/copy-anything/package.json +98 -0
- package/my_template/node_modules/errno/.jshintrc +59 -0
- package/my_template/node_modules/errno/.travis.yml +19 -0
- package/my_template/node_modules/errno/README.md +145 -0
- package/my_template/node_modules/errno/build.js +43 -0
- package/my_template/node_modules/errno/cli.js +22 -0
- package/my_template/node_modules/errno/custom.js +57 -0
- package/my_template/node_modules/errno/errno.js +313 -0
- package/my_template/node_modules/errno/package.json +33 -0
- package/my_template/node_modules/errno/test.js +88 -0
- package/my_template/node_modules/escape-string-regexp/index.js +11 -0
- package/my_template/node_modules/escape-string-regexp/license +21 -0
- package/my_template/node_modules/escape-string-regexp/package.json +41 -0
- package/my_template/node_modules/escape-string-regexp/readme.md +27 -0
- package/my_template/node_modules/estree-walker/CHANGELOG.md +55 -0
- package/my_template/node_modules/estree-walker/README.md +45 -0
- package/my_template/node_modules/estree-walker/dist/estree-walker.umd.js +65 -0
- package/my_template/node_modules/estree-walker/dist/estree-walker.umd.js.map +1 -0
- package/my_template/node_modules/estree-walker/index.d.ts +27 -0
- package/my_template/node_modules/estree-walker/package.json +30 -0
- package/my_template/node_modules/estree-walker/src/estree-walker.js +51 -0
- package/my_template/node_modules/function-bind/.eslintrc +21 -0
- package/my_template/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/my_template/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/my_template/node_modules/function-bind/.nycrc +13 -0
- package/my_template/node_modules/function-bind/CHANGELOG.md +136 -0
- package/my_template/node_modules/function-bind/LICENSE +20 -0
- package/my_template/node_modules/function-bind/README.md +46 -0
- package/my_template/node_modules/function-bind/implementation.js +84 -0
- package/my_template/node_modules/function-bind/index.js +5 -0
- package/my_template/node_modules/function-bind/package.json +87 -0
- package/my_template/node_modules/function-bind/test/.eslintrc +9 -0
- package/my_template/node_modules/function-bind/test/index.js +252 -0
- package/my_template/node_modules/graceful-fs/LICENSE +15 -0
- package/my_template/node_modules/graceful-fs/README.md +143 -0
- package/my_template/node_modules/graceful-fs/clone.js +23 -0
- package/my_template/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/my_template/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/my_template/node_modules/graceful-fs/package.json +53 -0
- package/my_template/node_modules/graceful-fs/polyfills.js +355 -0
- package/my_template/node_modules/graceful-readlink/.travis.yml +5 -0
- package/my_template/node_modules/graceful-readlink/LICENSE +22 -0
- package/my_template/node_modules/graceful-readlink/README.md +17 -0
- package/my_template/node_modules/graceful-readlink/index.js +12 -0
- package/my_template/node_modules/graceful-readlink/package.json +18 -0
- package/my_template/node_modules/has-flag/index.js +8 -0
- package/my_template/node_modules/has-flag/license +9 -0
- package/my_template/node_modules/has-flag/package.json +44 -0
- package/my_template/node_modules/has-flag/readme.md +70 -0
- package/my_template/node_modules/hasown/.eslintrc +5 -0
- package/my_template/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/my_template/node_modules/hasown/.nycrc +13 -0
- package/my_template/node_modules/hasown/CHANGELOG.md +20 -0
- package/my_template/node_modules/hasown/LICENSE +21 -0
- package/my_template/node_modules/hasown/README.md +40 -0
- package/my_template/node_modules/hasown/index.d.ts +3 -0
- package/my_template/node_modules/hasown/index.d.ts.map +1 -0
- package/my_template/node_modules/hasown/index.js +8 -0
- package/my_template/node_modules/hasown/package.json +91 -0
- package/my_template/node_modules/hasown/tsconfig.json +49 -0
- package/my_template/node_modules/image-size/LICENSE +9 -0
- package/my_template/node_modules/image-size/Readme.md +88 -0
- package/my_template/node_modules/image-size/bin/image-size.js +36 -0
- package/my_template/node_modules/image-size/lib/detector.js +19 -0
- package/my_template/node_modules/image-size/lib/index.js +105 -0
- package/my_template/node_modules/image-size/lib/readUInt.js +11 -0
- package/my_template/node_modules/image-size/lib/types/bmp.js +17 -0
- package/my_template/node_modules/image-size/lib/types/dds.js +18 -0
- package/my_template/node_modules/image-size/lib/types/gif.js +19 -0
- package/my_template/node_modules/image-size/lib/types/jpg.js +62 -0
- package/my_template/node_modules/image-size/lib/types/png.js +36 -0
- package/my_template/node_modules/image-size/lib/types/psd.js +17 -0
- package/my_template/node_modules/image-size/lib/types/svg.js +78 -0
- package/my_template/node_modules/image-size/lib/types/tiff.js +118 -0
- package/my_template/node_modules/image-size/lib/types/webp.js +69 -0
- package/my_template/node_modules/image-size/lib/types.js +13 -0
- package/my_template/node_modules/image-size/package.json +49 -0
- package/my_template/node_modules/is-core-module/.eslintrc +18 -0
- package/my_template/node_modules/is-core-module/.nycrc +9 -0
- package/my_template/node_modules/is-core-module/CHANGELOG.md +180 -0
- package/my_template/node_modules/is-core-module/LICENSE +20 -0
- package/my_template/node_modules/is-core-module/README.md +40 -0
- package/my_template/node_modules/is-core-module/core.json +158 -0
- package/my_template/node_modules/is-core-module/index.js +69 -0
- package/my_template/node_modules/is-core-module/package.json +73 -0
- package/my_template/node_modules/is-core-module/test/index.js +133 -0
- package/my_template/node_modules/is-module/README.md +41 -0
- package/my_template/node_modules/is-module/component.json +11 -0
- package/my_template/node_modules/is-module/index.js +11 -0
- package/my_template/node_modules/is-module/package.json +20 -0
- package/my_template/node_modules/is-what/.babelrc +3 -0
- package/my_template/node_modules/is-what/.eslintignore +9 -0
- package/my_template/node_modules/is-what/.eslintrc.js +18 -0
- package/my_template/node_modules/is-what/.github/FUNDING.yml +12 -0
- package/my_template/node_modules/is-what/.prettierrc +9 -0
- package/my_template/node_modules/is-what/.vscode/settings.json +9 -0
- package/my_template/node_modules/is-what/LICENSE +21 -0
- package/my_template/node_modules/is-what/README.md +191 -0
- package/my_template/node_modules/is-what/build.js +60 -0
- package/my_template/node_modules/is-what/dist/index.cjs.js +364 -0
- package/my_template/node_modules/is-what/dist/index.esm.js +327 -0
- package/my_template/node_modules/is-what/package.json +86 -0
- package/my_template/node_modules/is-what/src/index.ts +395 -0
- package/my_template/node_modules/is-what/test/ava.ts +376 -0
- package/my_template/node_modules/is-what/test/index.test.js +15 -0
- package/my_template/node_modules/is-what/tsconfig.json +11 -0
- package/my_template/node_modules/is-what/types/index.d.ts +253 -0
- package/my_template/node_modules/jest-worker/LICENSE +21 -0
- package/my_template/node_modules/jest-worker/README.md +215 -0
- package/my_template/node_modules/jest-worker/build/Farm.d.ts +27 -0
- package/my_template/node_modules/jest-worker/build/Farm.d.ts.map +1 -0
- package/my_template/node_modules/jest-worker/build/Farm.js +179 -0
- package/my_template/node_modules/jest-worker/build/WorkerPool.d.ts +14 -0
- package/my_template/node_modules/jest-worker/build/WorkerPool.d.ts.map +1 -0
- package/my_template/node_modules/jest-worker/build/WorkerPool.js +49 -0
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +22 -0
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts.map +1 -0
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.js +134 -0
- package/my_template/node_modules/jest-worker/build/index.d.ts +46 -0
- package/my_template/node_modules/jest-worker/build/index.d.ts.map +1 -0
- package/my_template/node_modules/jest-worker/build/index.js +184 -0
- package/my_template/node_modules/jest-worker/build/types.d.ts +98 -0
- package/my_template/node_modules/jest-worker/build/types.d.ts.map +1 -0
- package/my_template/node_modules/jest-worker/build/types.js +43 -0
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +47 -0
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts.map +1 -0
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.js +310 -0
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +29 -0
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts.map +1 -0
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +289 -0
- package/my_template/node_modules/jest-worker/build/workers/processChild.d.ts +8 -0
- package/my_template/node_modules/jest-worker/build/workers/processChild.d.ts.map +1 -0
- package/my_template/node_modules/jest-worker/build/workers/processChild.js +166 -0
- package/my_template/node_modules/jest-worker/build/workers/threadChild.d.ts +8 -0
- package/my_template/node_modules/jest-worker/build/workers/threadChild.d.ts.map +1 -0
- package/my_template/node_modules/jest-worker/build/workers/threadChild.js +176 -0
- package/my_template/node_modules/jest-worker/node_modules/supports-color/browser.js +5 -0
- package/my_template/node_modules/jest-worker/node_modules/supports-color/index.js +138 -0
- package/my_template/node_modules/jest-worker/node_modules/supports-color/license +9 -0
- package/my_template/node_modules/jest-worker/node_modules/supports-color/package.json +53 -0
- package/my_template/node_modules/jest-worker/node_modules/supports-color/readme.md +85 -0
- package/my_template/node_modules/jest-worker/package.json +29 -0
- package/my_template/node_modules/js-tokens/CHANGELOG.md +151 -0
- package/my_template/node_modules/js-tokens/LICENSE +21 -0
- package/my_template/node_modules/js-tokens/README.md +240 -0
- package/my_template/node_modules/js-tokens/index.js +23 -0
- package/my_template/node_modules/js-tokens/package.json +30 -0
- package/my_template/node_modules/less/.eslintignore +5 -0
- package/my_template/node_modules/less/.eslintrc.json +3 -0
- package/my_template/node_modules/less/Gruntfile.js +420 -0
- package/my_template/node_modules/less/README.md +13 -0
- package/my_template/node_modules/less/bin/lessc +633 -0
- package/my_template/node_modules/less/bower.json +22 -0
- package/my_template/node_modules/less/dist/less.js +11275 -0
- package/my_template/node_modules/less/dist/less.min.js +11 -0
- package/my_template/node_modules/less/dist/less.min.js.map +1 -0
- package/my_template/node_modules/less/index.js +1 -0
- package/my_template/node_modules/less/lib/less/constants.js +15 -0
- package/my_template/node_modules/less/lib/less/constants.js.map +1 -0
- package/my_template/node_modules/less/lib/less/contexts.js +171 -0
- package/my_template/node_modules/less/lib/less/contexts.js.map +1 -0
- package/my_template/node_modules/less/lib/less/data/colors.js +153 -0
- package/my_template/node_modules/less/lib/less/data/colors.js.map +1 -0
- package/my_template/node_modules/less/lib/less/data/index.js +9 -0
- package/my_template/node_modules/less/lib/less/data/index.js.map +1 -0
- package/my_template/node_modules/less/lib/less/data/unit-conversions.js +24 -0
- package/my_template/node_modules/less/lib/less/data/unit-conversions.js.map +1 -0
- package/my_template/node_modules/less/lib/less/default-options.js +57 -0
- package/my_template/node_modules/less/lib/less/default-options.js.map +1 -0
- package/my_template/node_modules/less/lib/less/environment/abstract-file-manager.js +122 -0
- package/my_template/node_modules/less/lib/less/environment/abstract-file-manager.js.map +1 -0
- package/my_template/node_modules/less/lib/less/environment/abstract-plugin-loader.js +168 -0
- package/my_template/node_modules/less/lib/less/environment/abstract-plugin-loader.js.map +1 -0
- package/my_template/node_modules/less/lib/less/environment/environment-api.js +28 -0
- package/my_template/node_modules/less/lib/less/environment/environment-api.js.map +1 -0
- package/my_template/node_modules/less/lib/less/environment/environment.js +57 -0
- package/my_template/node_modules/less/lib/less/environment/environment.js.map +1 -0
- package/my_template/node_modules/less/lib/less/environment/file-manager-api.js +106 -0
- package/my_template/node_modules/less/lib/less/environment/file-manager-api.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/boolean.js +21 -0
- package/my_template/node_modules/less/lib/less/functions/boolean.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/color-blending.js +78 -0
- package/my_template/node_modules/less/lib/less/functions/color-blending.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/color.js +404 -0
- package/my_template/node_modules/less/lib/less/functions/color.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/data-uri.js +86 -0
- package/my_template/node_modules/less/lib/less/functions/data-uri.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/default.js +29 -0
- package/my_template/node_modules/less/lib/less/functions/default.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/function-caller.js +66 -0
- package/my_template/node_modules/less/lib/less/functions/function-caller.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/function-registry.js +36 -0
- package/my_template/node_modules/less/lib/less/functions/function-registry.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/index.js +35 -0
- package/my_template/node_modules/less/lib/less/functions/index.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/list.js +136 -0
- package/my_template/node_modules/less/lib/less/functions/list.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/math-helper.js +20 -0
- package/my_template/node_modules/less/lib/less/functions/math-helper.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/math.js +30 -0
- package/my_template/node_modules/less/lib/less/functions/math.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/number.js +98 -0
- package/my_template/node_modules/less/lib/less/functions/number.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/string.js +42 -0
- package/my_template/node_modules/less/lib/less/functions/string.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/svg.js +88 -0
- package/my_template/node_modules/less/lib/less/functions/svg.js.map +1 -0
- package/my_template/node_modules/less/lib/less/functions/types.js +75 -0
- package/my_template/node_modules/less/lib/less/functions/types.js.map +1 -0
- package/my_template/node_modules/less/lib/less/import-manager.js +196 -0
- package/my_template/node_modules/less/lib/less/import-manager.js.map +1 -0
- package/my_template/node_modules/less/lib/less/index.js +130 -0
- package/my_template/node_modules/less/lib/less/index.js.map +1 -0
- package/my_template/node_modules/less/lib/less/less-error.js +162 -0
- package/my_template/node_modules/less/lib/less/less-error.js.map +1 -0
- package/my_template/node_modules/less/lib/less/logger.js +37 -0
- package/my_template/node_modules/less/lib/less/logger.js.map +1 -0
- package/my_template/node_modules/less/lib/less/parse-tree.js +69 -0
- package/my_template/node_modules/less/lib/less/parse-tree.js.map +1 -0
- package/my_template/node_modules/less/lib/less/parse.js +108 -0
- package/my_template/node_modules/less/lib/less/parse.js.map +1 -0
- package/my_template/node_modules/less/lib/less/parser/chunker.js +147 -0
- package/my_template/node_modules/less/lib/less/parser/chunker.js.map +1 -0
- package/my_template/node_modules/less/lib/less/parser/parser-input.js +355 -0
- package/my_template/node_modules/less/lib/less/parser/parser-input.js.map +1 -0
- package/my_template/node_modules/less/lib/less/parser/parser.js +2262 -0
- package/my_template/node_modules/less/lib/less/parser/parser.js.map +1 -0
- package/my_template/node_modules/less/lib/less/plugin-manager.js +158 -0
- package/my_template/node_modules/less/lib/less/plugin-manager.js.map +1 -0
- package/my_template/node_modules/less/lib/less/render.js +64 -0
- package/my_template/node_modules/less/lib/less/render.js.map +1 -0
- package/my_template/node_modules/less/lib/less/source-map-builder.js +72 -0
- package/my_template/node_modules/less/lib/less/source-map-builder.js.map +1 -0
- package/my_template/node_modules/less/lib/less/source-map-output.js +140 -0
- package/my_template/node_modules/less/lib/less/source-map-output.js.map +1 -0
- package/my_template/node_modules/less/lib/less/transform-tree.js +93 -0
- package/my_template/node_modules/less/lib/less/transform-tree.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/anonymous.js +34 -0
- package/my_template/node_modules/less/lib/less/tree/anonymous.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/assignment.js +32 -0
- package/my_template/node_modules/less/lib/less/tree/assignment.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/atrule.js +146 -0
- package/my_template/node_modules/less/lib/less/tree/atrule.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/attribute.js +29 -0
- package/my_template/node_modules/less/lib/less/tree/attribute.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/call.js +104 -0
- package/my_template/node_modules/less/lib/less/tree/call.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/color.js +243 -0
- package/my_template/node_modules/less/lib/less/tree/color.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/combinator.js +29 -0
- package/my_template/node_modules/less/lib/less/tree/combinator.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/comment.js +28 -0
- package/my_template/node_modules/less/lib/less/tree/comment.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/condition.js +41 -0
- package/my_template/node_modules/less/lib/less/tree/condition.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/debug-info.js +37 -0
- package/my_template/node_modules/less/lib/less/tree/debug-info.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/declaration.js +118 -0
- package/my_template/node_modules/less/lib/less/tree/declaration.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/detached-ruleset.js +47 -0
- package/my_template/node_modules/less/lib/less/tree/detached-ruleset.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/dimension.js +159 -0
- package/my_template/node_modules/less/lib/less/tree/dimension.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/element.js +64 -0
- package/my_template/node_modules/less/lib/less/tree/element.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/expression.js +90 -0
- package/my_template/node_modules/less/lib/less/tree/expression.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/extend.js +62 -0
- package/my_template/node_modules/less/lib/less/tree/extend.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/import.js +191 -0
- package/my_template/node_modules/less/lib/less/tree/import.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/index.js +56 -0
- package/my_template/node_modules/less/lib/less/tree/index.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/javascript.js +35 -0
- package/my_template/node_modules/less/lib/less/tree/javascript.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/js-eval-node.js +57 -0
- package/my_template/node_modules/less/lib/less/tree/js-eval-node.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/keyword.js +21 -0
- package/my_template/node_modules/less/lib/less/tree/keyword.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/media.js +152 -0
- package/my_template/node_modules/less/lib/less/tree/media.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/mixin-call.js +194 -0
- package/my_template/node_modules/less/lib/less/tree/mixin-call.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/mixin-definition.js +233 -0
- package/my_template/node_modules/less/lib/less/tree/mixin-definition.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/namespace-value.js +76 -0
- package/my_template/node_modules/less/lib/less/tree/namespace-value.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/negative.js +25 -0
- package/my_template/node_modules/less/lib/less/tree/negative.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/node.js +166 -0
- package/my_template/node_modules/less/lib/less/tree/node.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/operation.js +77 -0
- package/my_template/node_modules/less/lib/less/tree/operation.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/paren.js +21 -0
- package/my_template/node_modules/less/lib/less/tree/paren.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/property.js +62 -0
- package/my_template/node_modules/less/lib/less/tree/property.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/quoted.js +66 -0
- package/my_template/node_modules/less/lib/less/tree/quoted.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/ruleset.js +786 -0
- package/my_template/node_modules/less/lib/less/tree/ruleset.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/selector.js +126 -0
- package/my_template/node_modules/less/lib/less/tree/selector.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/unicode-descriptor.js +13 -0
- package/my_template/node_modules/less/lib/less/tree/unicode-descriptor.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/unit.js +141 -0
- package/my_template/node_modules/less/lib/less/tree/unit.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/url.js +60 -0
- package/my_template/node_modules/less/lib/less/tree/url.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/value.js +43 -0
- package/my_template/node_modules/less/lib/less/tree/value.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/variable-call.js +44 -0
- package/my_template/node_modules/less/lib/less/tree/variable-call.js.map +1 -0
- package/my_template/node_modules/less/lib/less/tree/variable.js +61 -0
- package/my_template/node_modules/less/lib/less/tree/variable.js.map +1 -0
- package/my_template/node_modules/less/lib/less/utils.js +143 -0
- package/my_template/node_modules/less/lib/less/utils.js.map +1 -0
- package/my_template/node_modules/less/lib/less/visitors/extend-visitor.js +462 -0
- package/my_template/node_modules/less/lib/less/visitors/extend-visitor.js.map +1 -0
- package/my_template/node_modules/less/lib/less/visitors/import-sequencer.js +61 -0
- package/my_template/node_modules/less/lib/less/visitors/import-sequencer.js.map +1 -0
- package/my_template/node_modules/less/lib/less/visitors/import-visitor.js +202 -0
- package/my_template/node_modules/less/lib/less/visitors/import-visitor.js.map +1 -0
- package/my_template/node_modules/less/lib/less/visitors/index.js +20 -0
- package/my_template/node_modules/less/lib/less/visitors/index.js.map +1 -0
- package/my_template/node_modules/less/lib/less/visitors/join-selector-visitor.js +57 -0
- package/my_template/node_modules/less/lib/less/visitors/join-selector-visitor.js.map +1 -0
- package/my_template/node_modules/less/lib/less/visitors/set-tree-visibility-visitor.js +43 -0
- package/my_template/node_modules/less/lib/less/visitors/set-tree-visibility-visitor.js.map +1 -0
- package/my_template/node_modules/less/lib/less/visitors/to-css-visitor.js +321 -0
- package/my_template/node_modules/less/lib/less/visitors/to-css-visitor.js.map +1 -0
- package/my_template/node_modules/less/lib/less/visitors/visitor.js +158 -0
- package/my_template/node_modules/less/lib/less/visitors/visitor.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/add-default-options.js +45 -0
- package/my_template/node_modules/less/lib/less-browser/add-default-options.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/bootstrap.js +64 -0
- package/my_template/node_modules/less/lib/less-browser/bootstrap.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/browser.js +80 -0
- package/my_template/node_modules/less/lib/less-browser/browser.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/cache.js +45 -0
- package/my_template/node_modules/less/lib/less-browser/cache.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/error-reporting.js +183 -0
- package/my_template/node_modules/less/lib/less-browser/error-reporting.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/file-manager.js +122 -0
- package/my_template/node_modules/less/lib/less-browser/file-manager.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/image-size.js +30 -0
- package/my_template/node_modules/less/lib/less-browser/image-size.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/index.js +256 -0
- package/my_template/node_modules/less/lib/less-browser/index.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/log-listener.js +43 -0
- package/my_template/node_modules/less/lib/less-browser/log-listener.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/plugin-loader.js +42 -0
- package/my_template/node_modules/less/lib/less-browser/plugin-loader.js.map +1 -0
- package/my_template/node_modules/less/lib/less-browser/utils.js +29 -0
- package/my_template/node_modules/less/lib/less-browser/utils.js.map +1 -0
- package/my_template/node_modules/less/lib/less-node/environment.js +19 -0
- package/my_template/node_modules/less/lib/less-node/environment.js.map +1 -0
- package/my_template/node_modules/less/lib/less-node/file-manager.js +158 -0
- package/my_template/node_modules/less/lib/less-node/file-manager.js.map +1 -0
- package/my_template/node_modules/less/lib/less-node/fs.js +11 -0
- package/my_template/node_modules/less/lib/less-node/fs.js.map +1 -0
- package/my_template/node_modules/less/lib/less-node/image-size.js +54 -0
- package/my_template/node_modules/less/lib/less-node/image-size.js.map +1 -0
- package/my_template/node_modules/less/lib/less-node/index.js +28 -0
- package/my_template/node_modules/less/lib/less-node/index.js.map +1 -0
- package/my_template/node_modules/less/lib/less-node/lessc-helper.js +92 -0
- package/my_template/node_modules/less/lib/less-node/lessc-helper.js.map +1 -0
- package/my_template/node_modules/less/lib/less-node/plugin-loader.js +73 -0
- package/my_template/node_modules/less/lib/less-node/plugin-loader.js.map +1 -0
- package/my_template/node_modules/less/lib/less-node/url-file-manager.js +68 -0
- package/my_template/node_modules/less/lib/less-node/url-file-manager.js.map +1 -0
- package/my_template/node_modules/less/package.json +133 -0
- package/my_template/node_modules/less/test/.eslintrc.json +9 -0
- package/my_template/node_modules/less/test/README.md +3 -0
- package/my_template/node_modules/less/test/browser/common.js +230 -0
- package/my_template/node_modules/less/test/browser/css/global-vars/simple.css +3 -0
- package/my_template/node_modules/less/test/browser/css/modify-vars/simple.css +8 -0
- package/my_template/node_modules/less/test/browser/css/plugin/plugin.css +3 -0
- package/my_template/node_modules/less/test/browser/css/postProcessor/postProcessor.css +4 -0
- package/my_template/node_modules/less/test/browser/css/relative-urls/urls.css +36 -0
- package/my_template/node_modules/less/test/browser/css/rewrite-urls/urls.css +36 -0
- package/my_template/node_modules/less/test/browser/css/rootpath/urls.css +35 -0
- package/my_template/node_modules/less/test/browser/css/rootpath-relative/urls.css +35 -0
- package/my_template/node_modules/less/test/browser/css/rootpath-rewrite-urls/urls.css +35 -0
- package/my_template/node_modules/less/test/browser/css/urls.css +54 -0
- package/my_template/node_modules/less/test/browser/generator/benchmark.config.js +50 -0
- package/my_template/node_modules/less/test/browser/generator/generate.js +78 -0
- package/my_template/node_modules/less/test/browser/generator/runner.config.js +186 -0
- package/my_template/node_modules/less/test/browser/generator/runner.js +2 -0
- package/my_template/node_modules/less/test/browser/generator/template.js +83 -0
- package/my_template/node_modules/less/test/browser/less/console-errors/test-error.less +3 -0
- package/my_template/node_modules/less/test/browser/less/console-errors/test-error.txt +2 -0
- package/my_template/node_modules/less/test/browser/less/errors/image-height-error.less +3 -0
- package/my_template/node_modules/less/test/browser/less/errors/image-height-error.txt +4 -0
- package/my_template/node_modules/less/test/browser/less/errors/image-size-error.less +3 -0
- package/my_template/node_modules/less/test/browser/less/errors/image-size-error.txt +4 -0
- package/my_template/node_modules/less/test/browser/less/errors/image-width-error.less +3 -0
- package/my_template/node_modules/less/test/browser/less/errors/image-width-error.txt +4 -0
- package/my_template/node_modules/less/test/browser/less/global-vars/simple.less +3 -0
- package/my_template/node_modules/less/test/browser/less/imports/urls.less +4 -0
- package/my_template/node_modules/less/test/browser/less/imports/urls2.less +4 -0
- package/my_template/node_modules/less/test/browser/less/modify-vars/imports/simple2.less +4 -0
- package/my_template/node_modules/less/test/browser/less/modify-vars/simple.less +8 -0
- package/my_template/node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/mixin-consumer.less +5 -0
- package/my_template/node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less +15 -0
- package/my_template/node_modules/less/test/browser/less/plugin/plugin.js +4 -0
- package/my_template/node_modules/less/test/browser/less/plugin/plugin.less +4 -0
- package/my_template/node_modules/less/test/browser/less/postProcessor/postProcessor.less +4 -0
- package/my_template/node_modules/less/test/browser/less/relative-urls/urls.less +34 -0
- package/my_template/node_modules/less/test/browser/less/rewrite-urls/urls.less +34 -0
- package/my_template/node_modules/less/test/browser/less/rootpath/urls.less +33 -0
- package/my_template/node_modules/less/test/browser/less/rootpath-relative/urls.less +33 -0
- package/my_template/node_modules/less/test/browser/less/rootpath-rewrite-urls/urls.less +33 -0
- package/my_template/node_modules/less/test/browser/less/urls.less +62 -0
- package/my_template/node_modules/less/test/browser/runner-VisitorPlugin-options.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-VisitorPlugin.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-browser-options.js +51 -0
- package/my_template/node_modules/less/test/browser/runner-browser-spec.js +12 -0
- package/my_template/node_modules/less/test/browser/runner-console-errors.js +5 -0
- package/my_template/node_modules/less/test/browser/runner-errors-options.js +6 -0
- package/my_template/node_modules/less/test/browser/runner-errors-spec.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-filemanagerPlugin-options.js +5 -0
- package/my_template/node_modules/less/test/browser/runner-filemanagerPlugin.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-global-vars-options.js +7 -0
- package/my_template/node_modules/less/test/browser/runner-global-vars-spec.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-legacy-options.js +6 -0
- package/my_template/node_modules/less/test/browser/runner-legacy-spec.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-main-options.js +17 -0
- package/my_template/node_modules/less/test/browser/runner-main-spec.js +7 -0
- package/my_template/node_modules/less/test/browser/runner-modify-vars-options.js +5 -0
- package/my_template/node_modules/less/test/browser/runner-modify-vars-spec.js +33 -0
- package/my_template/node_modules/less/test/browser/runner-no-js-errors-options.js +4 -0
- package/my_template/node_modules/less/test/browser/runner-no-js-errors-spec.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-postProcessorPlugin-options.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-postProcessorPlugin.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-preProcessorPlugin-options.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-preProcessorPlugin.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-production-options.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-production-spec.js +5 -0
- package/my_template/node_modules/less/test/browser/runner-relative-urls-options.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-relative-urls-spec.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-rewrite-urls-options.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-rewrite-urls-spec.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-rootpath-options.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-rootpath-relative-options.js +4 -0
- package/my_template/node_modules/less/test/browser/runner-rootpath-relative-spec.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-rootpath-rewrite-urls-options.js +4 -0
- package/my_template/node_modules/less/test/browser/runner-rootpath-rewrite-urls-spec.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-rootpath-spec.js +3 -0
- package/my_template/node_modules/less/test/browser/runner-strict-units-options.js +5 -0
- package/my_template/node_modules/less/test/browser/runner-strict-units-spec.js +3 -0
- package/my_template/node_modules/less/test/index.js +89 -0
- package/my_template/node_modules/less/test/less-test.js +535 -0
- package/my_template/node_modules/less/test/modify-vars.js +28 -0
- package/my_template/node_modules/less/test/plugins/filemanager/index.js +19 -0
- package/my_template/node_modules/less/test/plugins/postprocess/index.js +14 -0
- package/my_template/node_modules/less/test/plugins/preprocess/index.js +19 -0
- package/my_template/node_modules/less/test/plugins/visitor/index.js +24 -0
- package/my_template/node_modules/less/test/sourcemaps/basic.json +1 -0
- package/my_template/node_modules/less/test/sourcemaps/custom-props.json +1 -0
- package/my_template/node_modules/less/test/sourcemaps/index.html +17 -0
- package/my_template/node_modules/less/test/sourcemaps-disable-annotation/basic.json +1 -0
- package/my_template/node_modules/less/test/test-es6.ts +17 -0
- package/my_template/node_modules/less/tsconfig.json +13 -0
- package/my_template/node_modules/less-plugin-clean-css/LICENSE +201 -0
- package/my_template/node_modules/less-plugin-clean-css/README.md +33 -0
- package/my_template/node_modules/less-plugin-clean-css/lib/clean-css-processor.js +63 -0
- package/my_template/node_modules/less-plugin-clean-css/lib/index.js +23 -0
- package/my_template/node_modules/less-plugin-clean-css/lib/parse-options.js +61 -0
- package/my_template/node_modules/less-plugin-clean-css/lib/usage.js +19 -0
- package/my_template/node_modules/less-plugin-clean-css/package.json +39 -0
- package/my_template/node_modules/make-dir/index.d.ts +39 -0
- package/my_template/node_modules/make-dir/index.js +139 -0
- package/my_template/node_modules/make-dir/license +9 -0
- package/my_template/node_modules/make-dir/package.json +59 -0
- package/my_template/node_modules/make-dir/readme.md +123 -0
- package/my_template/node_modules/merge-stream/LICENSE +21 -0
- package/my_template/node_modules/merge-stream/README.md +78 -0
- package/my_template/node_modules/merge-stream/index.js +41 -0
- package/my_template/node_modules/merge-stream/package.json +19 -0
- package/my_template/node_modules/mime/CHANGELOG.md +164 -0
- package/my_template/node_modules/mime/LICENSE +21 -0
- package/my_template/node_modules/mime/README.md +90 -0
- package/my_template/node_modules/mime/cli.js +8 -0
- package/my_template/node_modules/mime/mime.js +108 -0
- package/my_template/node_modules/mime/package.json +44 -0
- package/my_template/node_modules/mime/src/build.js +53 -0
- package/my_template/node_modules/mime/src/test.js +60 -0
- package/my_template/node_modules/mime/types.json +1 -0
- package/my_template/node_modules/native-request/README.md +184 -0
- package/my_template/node_modules/native-request/commons/jsonToParameter.js +14 -0
- package/my_template/node_modules/native-request/index.js +65 -0
- package/my_template/node_modules/native-request/lib/Request.js +144 -0
- package/my_template/node_modules/native-request/package.json +45 -0
- package/my_template/node_modules/native-request/test/express.get.cookies.js +58 -0
- package/my_template/node_modules/native-request/test/express.get.js +146 -0
- package/my_template/node_modules/native-request/test/express.post.cookies.js +59 -0
- package/my_template/node_modules/native-request/test/express.post.js +148 -0
- package/my_template/node_modules/native-request/test/get.cookies.js +72 -0
- package/my_template/node_modules/native-request/test/get.js +140 -0
- package/my_template/node_modules/native-request/test/post.cookies.js +72 -0
- package/my_template/node_modules/native-request/test/post.js +155 -0
- package/my_template/node_modules/path-parse/LICENSE +21 -0
- package/my_template/node_modules/path-parse/README.md +42 -0
- package/my_template/node_modules/path-parse/index.js +75 -0
- package/my_template/node_modules/path-parse/package.json +33 -0
- package/my_template/node_modules/pify/index.js +68 -0
- package/my_template/node_modules/pify/license +9 -0
- package/my_template/node_modules/pify/package.json +51 -0
- package/my_template/node_modules/pify/readme.md +145 -0
- package/my_template/node_modules/prr/.jshintrc +61 -0
- package/my_template/node_modules/prr/.travis.yml +10 -0
- package/my_template/node_modules/prr/LICENSE.md +11 -0
- package/my_template/node_modules/prr/README.md +47 -0
- package/my_template/node_modules/prr/package.json +26 -0
- package/my_template/node_modules/prr/prr.js +63 -0
- package/my_template/node_modules/prr/test.js +169 -0
- package/my_template/node_modules/resolve/.editorconfig +37 -0
- package/my_template/node_modules/resolve/.eslintrc +65 -0
- package/my_template/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/my_template/node_modules/resolve/LICENSE +21 -0
- package/my_template/node_modules/resolve/SECURITY.md +3 -0
- package/my_template/node_modules/resolve/async.js +3 -0
- package/my_template/node_modules/resolve/bin/resolve +50 -0
- package/my_template/node_modules/resolve/example/async.js +5 -0
- package/my_template/node_modules/resolve/example/sync.js +3 -0
- package/my_template/node_modules/resolve/index.js +6 -0
- package/my_template/node_modules/resolve/lib/async.js +329 -0
- package/my_template/node_modules/resolve/lib/caller.js +8 -0
- package/my_template/node_modules/resolve/lib/core.js +12 -0
- package/my_template/node_modules/resolve/lib/core.json +158 -0
- package/my_template/node_modules/resolve/lib/homedir.js +24 -0
- package/my_template/node_modules/resolve/lib/is-core.js +5 -0
- package/my_template/node_modules/resolve/lib/node-modules-paths.js +42 -0
- package/my_template/node_modules/resolve/lib/normalize-options.js +10 -0
- package/my_template/node_modules/resolve/lib/sync.js +208 -0
- package/my_template/node_modules/resolve/package.json +72 -0
- package/my_template/node_modules/resolve/readme.markdown +301 -0
- package/my_template/node_modules/resolve/sync.js +3 -0
- package/my_template/node_modules/resolve/test/core.js +88 -0
- package/my_template/node_modules/resolve/test/dotdot/abc/index.js +2 -0
- package/my_template/node_modules/resolve/test/dotdot/index.js +1 -0
- package/my_template/node_modules/resolve/test/dotdot.js +29 -0
- package/my_template/node_modules/resolve/test/faulty_basedir.js +29 -0
- package/my_template/node_modules/resolve/test/filter.js +34 -0
- package/my_template/node_modules/resolve/test/filter_sync.js +33 -0
- package/my_template/node_modules/resolve/test/home_paths.js +127 -0
- package/my_template/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/my_template/node_modules/resolve/test/mock.js +315 -0
- package/my_template/node_modules/resolve/test/mock_sync.js +214 -0
- package/my_template/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
- package/my_template/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
- package/my_template/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
- package/my_template/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
- package/my_template/node_modules/resolve/test/module_dir.js +56 -0
- package/my_template/node_modules/resolve/test/node-modules-paths.js +143 -0
- package/my_template/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
- package/my_template/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
- package/my_template/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
- package/my_template/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
- package/my_template/node_modules/resolve/test/node_path.js +70 -0
- package/my_template/node_modules/resolve/test/nonstring.js +9 -0
- package/my_template/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/my_template/node_modules/resolve/test/pathfilter.js +75 -0
- package/my_template/node_modules/resolve/test/precedence/aaa/index.js +1 -0
- package/my_template/node_modules/resolve/test/precedence/aaa/main.js +1 -0
- package/my_template/node_modules/resolve/test/precedence/aaa.js +1 -0
- package/my_template/node_modules/resolve/test/precedence/bbb/main.js +1 -0
- package/my_template/node_modules/resolve/test/precedence/bbb.js +1 -0
- package/my_template/node_modules/resolve/test/precedence.js +23 -0
- package/my_template/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/baz/package.json +4 -0
- package/my_template/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- package/my_template/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
- package/my_template/node_modules/resolve/test/resolver/cup.coffee +1 -0
- package/my_template/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
- package/my_template/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
- package/my_template/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
- package/my_template/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
- package/my_template/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/false_main/package.json +4 -0
- package/my_template/node_modules/resolve/test/resolver/foo.js +1 -0
- package/my_template/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- package/my_template/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- package/my_template/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
- package/my_template/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/my_template/node_modules/resolve/test/resolver/mug.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
- package/my_template/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
- package/my_template/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- package/my_template/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
- package/my_template/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
- package/my_template/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/my_template/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
- package/my_template/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
- package/my_template/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
- package/my_template/node_modules/resolve/test/resolver.js +597 -0
- package/my_template/node_modules/resolve/test/resolver_sync.js +730 -0
- package/my_template/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/my_template/node_modules/resolve/test/shadowed_core.js +54 -0
- package/my_template/node_modules/resolve/test/subdirs.js +13 -0
- package/my_template/node_modules/resolve/test/symlinks.js +176 -0
- package/my_template/node_modules/rollup/CHANGELOG.md +3084 -0
- package/my_template/node_modules/rollup/LICENSE.md +578 -0
- package/my_template/node_modules/rollup/README.md +138 -0
- package/my_template/node_modules/rollup/dist/bin/rollup +1457 -0
- package/my_template/node_modules/rollup/dist/rollup.browser.es.js +25 -0
- package/my_template/node_modules/rollup/dist/rollup.browser.js +26 -0
- package/my_template/node_modules/rollup/dist/rollup.d.ts +656 -0
- package/my_template/node_modules/rollup/dist/rollup.es.js +17493 -0
- package/my_template/node_modules/rollup/dist/rollup.js +29 -0
- package/my_template/node_modules/rollup/dist/shared/index.js +321 -0
- package/my_template/node_modules/rollup/dist/shared/node-entry.js +17504 -0
- package/my_template/node_modules/rollup/package.json +139 -0
- package/my_template/node_modules/rollup-plugin-node-resolve/CHANGELOG.md +195 -0
- package/my_template/node_modules/rollup-plugin-node-resolve/README.md +135 -0
- package/my_template/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs.js +425 -0
- package/my_template/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es.js +421 -0
- package/my_template/node_modules/rollup-plugin-node-resolve/index.d.ts +100 -0
- package/my_template/node_modules/rollup-plugin-node-resolve/package.json +60 -0
- package/my_template/node_modules/rollup-plugin-node-resolve/src/index.js +358 -0
- package/my_template/node_modules/rollup-plugin-uglify/LICENSE +20 -0
- package/my_template/node_modules/rollup-plugin-uglify/README.md +84 -0
- package/my_template/node_modules/rollup-plugin-uglify/index.js +51 -0
- package/my_template/node_modules/rollup-plugin-uglify/package.json +43 -0
- package/my_template/node_modules/rollup-plugin-uglify/transform.js +13 -0
- package/my_template/node_modules/rollup-pluginutils/CHANGELOG.md +125 -0
- package/my_template/node_modules/rollup-pluginutils/README.md +169 -0
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +3292 -0
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.d.ts +39 -0
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.es.js +3280 -0
- package/my_template/node_modules/rollup-pluginutils/package.json +57 -0
- package/my_template/node_modules/rollup-pluginutils/src/addExtension.ts +9 -0
- package/my_template/node_modules/rollup-pluginutils/src/attachScopes.ts +125 -0
- package/my_template/node_modules/rollup-pluginutils/src/createFilter.ts +52 -0
- package/my_template/node_modules/rollup-pluginutils/src/dataToEsm.ts +92 -0
- package/my_template/node_modules/rollup-pluginutils/src/extractAssignedNames.ts +46 -0
- package/my_template/node_modules/rollup-pluginutils/src/index.ts +6 -0
- package/my_template/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts +21 -0
- package/my_template/node_modules/rollup-pluginutils/src/pluginutils.d.ts +39 -0
- package/my_template/node_modules/rollup-pluginutils/src/utils/ensureArray.ts +5 -0
- package/my_template/node_modules/semver/LICENSE +15 -0
- package/my_template/node_modules/semver/README.md +412 -0
- package/my_template/node_modules/semver/bin/semver +160 -0
- package/my_template/node_modules/semver/package.json +38 -0
- package/my_template/node_modules/semver/range.bnf +16 -0
- package/my_template/node_modules/semver/semver.js +1525 -0
- package/my_template/node_modules/serialize-javascript/LICENSE +27 -0
- package/my_template/node_modules/serialize-javascript/README.md +143 -0
- package/my_template/node_modules/serialize-javascript/index.js +210 -0
- package/my_template/node_modules/serialize-javascript/package.json +33 -0
- package/my_template/node_modules/source-map/CHANGELOG.md +301 -0
- package/my_template/node_modules/source-map/LICENSE +28 -0
- package/my_template/node_modules/source-map/README.md +742 -0
- package/my_template/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/my_template/node_modules/source-map/dist/source-map.js +3233 -0
- package/my_template/node_modules/source-map/dist/source-map.min.js +2 -0
- package/my_template/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/my_template/node_modules/source-map/lib/array-set.js +121 -0
- package/my_template/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/my_template/node_modules/source-map/lib/base64.js +67 -0
- package/my_template/node_modules/source-map/lib/binary-search.js +111 -0
- package/my_template/node_modules/source-map/lib/mapping-list.js +79 -0
- package/my_template/node_modules/source-map/lib/quick-sort.js +114 -0
- package/my_template/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/my_template/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/my_template/node_modules/source-map/lib/source-node.js +413 -0
- package/my_template/node_modules/source-map/lib/util.js +488 -0
- package/my_template/node_modules/source-map/package.json +73 -0
- package/my_template/node_modules/source-map/source-map.d.ts +98 -0
- package/my_template/node_modules/source-map/source-map.js +8 -0
- package/my_template/node_modules/supports-color/browser.js +5 -0
- package/my_template/node_modules/supports-color/index.js +131 -0
- package/my_template/node_modules/supports-color/license +9 -0
- package/my_template/node_modules/supports-color/package.json +53 -0
- package/my_template/node_modules/supports-color/readme.md +66 -0
- package/my_template/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/my_template/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/my_template/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/my_template/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/my_template/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/my_template/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/my_template/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/my_template/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/my_template/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
- package/my_template/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/my_template/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/my_template/node_modules/tslib/LICENSE.txt +12 -0
- package/my_template/node_modules/tslib/README.md +142 -0
- package/my_template/node_modules/tslib/modules/index.js +51 -0
- package/my_template/node_modules/tslib/modules/package.json +3 -0
- package/my_template/node_modules/tslib/package.json +37 -0
- package/my_template/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +23 -0
- package/my_template/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
- package/my_template/node_modules/tslib/tslib.d.ts +37 -0
- package/my_template/node_modules/tslib/tslib.es6.html +1 -0
- package/my_template/node_modules/tslib/tslib.es6.js +218 -0
- package/my_template/node_modules/tslib/tslib.html +1 -0
- package/my_template/node_modules/tslib/tslib.js +284 -0
- package/my_template/node_modules/uglify-js/LICENSE +29 -0
- package/my_template/node_modules/uglify-js/README.md +1478 -0
- package/my_template/node_modules/uglify-js/bin/uglifyjs +605 -0
- package/my_template/node_modules/uglify-js/lib/ast.js +2356 -0
- package/my_template/node_modules/uglify-js/lib/compress.js +14241 -0
- package/my_template/node_modules/uglify-js/lib/minify.js +276 -0
- package/my_template/node_modules/uglify-js/lib/mozilla-ast.js +1310 -0
- package/my_template/node_modules/uglify-js/lib/output.js +1956 -0
- package/my_template/node_modules/uglify-js/lib/parse.js +2585 -0
- package/my_template/node_modules/uglify-js/lib/propmangle.js +328 -0
- package/my_template/node_modules/uglify-js/lib/scope.js +866 -0
- package/my_template/node_modules/uglify-js/lib/sourcemap.js +195 -0
- package/my_template/node_modules/uglify-js/lib/transform.js +250 -0
- package/my_template/node_modules/uglify-js/lib/utils.js +287 -0
- package/my_template/node_modules/uglify-js/package.json +56 -0
- package/my_template/node_modules/uglify-js/tools/domprops.html +456 -0
- package/my_template/node_modules/uglify-js/tools/domprops.json +8325 -0
- package/my_template/node_modules/uglify-js/tools/exports.js +8 -0
- package/my_template/node_modules/uglify-js/tools/node.js +110 -0
- package/my_template/node_modules/uglify-js/tools/tty.js +22 -0
- package/my_template/node_modules/undici-types/README.md +6 -0
- package/my_template/node_modules/undici-types/agent.d.ts +31 -0
- package/my_template/node_modules/undici-types/api.d.ts +43 -0
- package/my_template/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/my_template/node_modules/undici-types/cache.d.ts +36 -0
- package/my_template/node_modules/undici-types/client.d.ts +97 -0
- package/my_template/node_modules/undici-types/connector.d.ts +34 -0
- package/my_template/node_modules/undici-types/content-type.d.ts +21 -0
- package/my_template/node_modules/undici-types/cookies.d.ts +28 -0
- package/my_template/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/my_template/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/my_template/node_modules/undici-types/errors.d.ts +128 -0
- package/my_template/node_modules/undici-types/fetch.d.ts +209 -0
- package/my_template/node_modules/undici-types/file.d.ts +39 -0
- package/my_template/node_modules/undici-types/filereader.d.ts +54 -0
- package/my_template/node_modules/undici-types/formdata.d.ts +108 -0
- package/my_template/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/my_template/node_modules/undici-types/global-origin.d.ts +7 -0
- package/my_template/node_modules/undici-types/handlers.d.ts +9 -0
- package/my_template/node_modules/undici-types/header.d.ts +4 -0
- package/my_template/node_modules/undici-types/index.d.ts +63 -0
- package/my_template/node_modules/undici-types/interceptors.d.ts +5 -0
- package/my_template/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/my_template/node_modules/undici-types/mock-client.d.ts +25 -0
- package/my_template/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/my_template/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/my_template/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/my_template/node_modules/undici-types/package.json +55 -0
- package/my_template/node_modules/undici-types/patch.d.ts +71 -0
- package/my_template/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/my_template/node_modules/undici-types/pool.d.ts +28 -0
- package/my_template/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/my_template/node_modules/undici-types/readable.d.ts +61 -0
- package/my_template/node_modules/undici-types/webidl.d.ts +220 -0
- package/my_template/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +1 -1
- package/server/comms_js.js +1 -0
- package/server/index.js +3 -3
- package/site/images/icon-add-folder.svg +5 -0
- package/site/images/icon-all-projects.svg +3 -0
- package/site/images/icon-folder.svg +3 -0
- package/site/images/icon-search.svg +5 -0
- package/site/images/icon-shared-projects.svg +10 -0
- package/site/images/onboarding-tour-story-duplicate-slide.png +0 -0
- package/site/images/onboarding-tour-white-story.gif +0 -0
- package/site/images/story-onboarding-tour-legend.gif +0 -0
- package/site/script.js +2 -2
- package/site/sdk.css +2 -2
- package/tsconfig.json +10 -0
- package/utils/state.js +0 -152
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../../src/less/tree/ruleset.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,8DAAwC;AACxC,sDAAgC;AAChC,sDAAgC;AAChC,kDAA4B;AAC5B,wDAAkC;AAClC,sDAAgC;AAChC,0DAAoC;AACpC,yDAAmC;AACnC,qFAAoE;AACpE,iEAA+C;AAC/C,4DAAwC;AACxC,8CAAkC;AAElC,IAAM,OAAO,GAAG,UAAS,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,cAAc;IACpE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACnB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACnB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACvB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACnC,IAAI,CAAC,kBAAkB,CA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;aACI;YACD,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;SAC3B;KACJ;IAED,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAClC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3B;AACL,CAAC,CAAC;AAEF,OAAO,CAAC,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC;AACnC,OAAO,CAAC,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC;AACnC,kBAAe,OAAO,CAAC","sourcesContent":["import Node from './node';\nimport Declaration from './declaration';\nimport Keyword from './keyword';\nimport Comment from './comment';\nimport Paren from './paren';\nimport Selector from './selector';\nimport Element from './element';\nimport Anonymous from './anonymous';\nimport contexts from '../contexts';\nimport globalFunctionRegistry from '../functions/function-registry';\nimport defaultFunc from '../functions/default';\nimport getDebugInfo from './debug-info';\nimport * as utils from '../utils';\n\nconst Ruleset = function(selectors, rules, strictImports, visibilityInfo) {\n this.selectors = selectors;\n this.rules = rules;\n this._lookups = {};\n this._variables = null;\n this._properties = null;\n this.strictImports = strictImports;\n this.copyVisibilityInfo(visibilityInfo);\n this.allowRoot = true;\n\n this.setParent(this.selectors, this);\n this.setParent(this.rules, this);\n}\n\nRuleset.prototype = new Node();\n\nRuleset.prototype.isRulesetLike = function() {\n return true;\n};\n\nRuleset.prototype.accept = function(visitor) {\n if (this.paths) {\n this.paths = visitor.visitArray(this.paths, true);\n } else if (this.selectors) {\n this.selectors = visitor.visitArray(this.selectors);\n }\n if (this.rules && this.rules.length) {\n this.rules = visitor.visitArray(this.rules);\n }\n};\n\nRuleset.prototype.eval = function(context) {\n const that = this;\n let selectors;\n let selCnt;\n let selector;\n let i;\n let hasVariable;\n let hasOnePassingSelector = false;\n\n if (this.selectors && (selCnt = this.selectors.length)) {\n selectors = new Array(selCnt);\n defaultFunc.error({\n type: 'Syntax',\n message: 'it is currently only allowed in parametric mixin guards,'\n });\n\n for (i = 0; i < selCnt; i++) {\n selector = this.selectors[i].eval(context);\n for (var j = 0; j < selector.elements.length; j++) {\n if (selector.elements[j].isVariable) {\n hasVariable = true;\n break;\n }\n }\n selectors[i] = selector;\n if (selector.evaldCondition) {\n hasOnePassingSelector = true;\n }\n }\n\n if (hasVariable) {\n const toParseSelectors = new Array(selCnt);\n for (i = 0; i < selCnt; i++) {\n selector = selectors[i];\n toParseSelectors[i] = selector.toCSS(context);\n }\n this.parse.parseNode(\n toParseSelectors.join(','),\n [\"selectors\"], \n selectors[0].getIndex(), \n selectors[0].fileInfo(), \n (err, result) => {\n if (result) {\n selectors = utils.flattenArray(result);\n }\n });\n }\n\n defaultFunc.reset();\n } else {\n hasOnePassingSelector = true;\n }\n\n let rules = this.rules ? utils.copyArray(this.rules) : null;\n const ruleset = new Ruleset(selectors, rules, this.strictImports, this.visibilityInfo());\n let rule;\n let subRule;\n\n ruleset.originalRuleset = this;\n ruleset.root = this.root;\n ruleset.firstRoot = this.firstRoot;\n ruleset.allowImports = this.allowImports;\n\n if (this.debugInfo) {\n ruleset.debugInfo = this.debugInfo;\n }\n\n if (!hasOnePassingSelector) {\n rules.length = 0;\n }\n\n // inherit a function registry from the frames stack when possible;\n // otherwise from the global registry\n ruleset.functionRegistry = (frames => {\n let i = 0;\n const n = frames.length;\n let found;\n for ( ; i !== n ; ++i ) {\n found = frames[ i ].functionRegistry;\n if ( found ) { return found; }\n }\n return globalFunctionRegistry;\n })(context.frames).inherit();\n\n // push the current ruleset to the frames stack\n const ctxFrames = context.frames;\n ctxFrames.unshift(ruleset);\n\n // currrent selectors\n let ctxSelectors = context.selectors;\n if (!ctxSelectors) {\n context.selectors = ctxSelectors = [];\n }\n ctxSelectors.unshift(this.selectors);\n\n // Evaluate imports\n if (ruleset.root || ruleset.allowImports || !ruleset.strictImports) {\n ruleset.evalImports(context);\n }\n\n // Store the frames around mixin definitions,\n // so they can be evaluated like closures when the time comes.\n const rsRules = ruleset.rules;\n for (i = 0; (rule = rsRules[i]); i++) {\n if (rule.evalFirst) {\n rsRules[i] = rule.eval(context);\n }\n }\n\n const mediaBlockCount = (context.mediaBlocks && context.mediaBlocks.length) || 0;\n\n // Evaluate mixin calls.\n for (i = 0; (rule = rsRules[i]); i++) {\n if (rule.type === 'MixinCall') {\n /* jshint loopfunc:true */\n rules = rule.eval(context).filter(r => {\n if ((r instanceof Declaration) && r.variable) {\n // do not pollute the scope if the variable is\n // already there. consider returning false here\n // but we need a way to \"return\" variable from mixins\n return !(ruleset.variable(r.name));\n }\n return true;\n });\n rsRules.splice(...[i, 1].concat(rules));\n i += rules.length - 1;\n ruleset.resetCache();\n } else if (rule.type === 'VariableCall') {\n /* jshint loopfunc:true */\n rules = rule.eval(context).rules.filter(r => {\n if ((r instanceof Declaration) && r.variable) {\n // do not pollute the scope at all\n return false;\n }\n return true;\n });\n rsRules.splice(...[i, 1].concat(rules));\n i += rules.length - 1;\n ruleset.resetCache();\n }\n }\n\n // Evaluate everything else\n for (i = 0; (rule = rsRules[i]); i++) {\n if (!rule.evalFirst) {\n rsRules[i] = rule = rule.eval ? rule.eval(context) : rule;\n }\n }\n\n // Evaluate everything else\n for (i = 0; (rule = rsRules[i]); i++) {\n // for rulesets, check if it is a css guard and can be removed\n if (rule instanceof Ruleset && rule.selectors && rule.selectors.length === 1) {\n // check if it can be folded in (e.g. & where)\n if (rule.selectors[0] && rule.selectors[0].isJustParentSelector()) {\n rsRules.splice(i--, 1);\n\n for (var j = 0; (subRule = rule.rules[j]); j++) {\n if (subRule instanceof Node) {\n subRule.copyVisibilityInfo(rule.visibilityInfo());\n if (!(subRule instanceof Declaration) || !subRule.variable) {\n rsRules.splice(++i, 0, subRule);\n }\n }\n }\n }\n }\n }\n\n // Pop the stack\n ctxFrames.shift();\n ctxSelectors.shift();\n\n if (context.mediaBlocks) {\n for (i = mediaBlockCount; i < context.mediaBlocks.length; i++) {\n context.mediaBlocks[i].bubbleSelectors(selectors);\n }\n }\n\n return ruleset;\n};\n\nRuleset.prototype.evalImports = function(context) {\n const rules = this.rules;\n let i;\n let importRules;\n if (!rules) { return; }\n\n for (i = 0; i < rules.length; i++) {\n if (rules[i].type === 'Import') {\n importRules = rules[i].eval(context);\n if (importRules && (importRules.length || importRules.length === 0)) {\n rules.splice(...[i, 1].concat(importRules));\n i += importRules.length - 1;\n } else {\n rules.splice(i, 1, importRules);\n }\n this.resetCache();\n }\n }\n};\n\nRuleset.prototype.makeImportant = function() {\n const result = new Ruleset(this.selectors, this.rules.map(r => {\n if (r.makeImportant) {\n return r.makeImportant();\n } else {\n return r;\n }\n }), this.strictImports, this.visibilityInfo());\n\n return result;\n};\n\nRuleset.prototype.matchArgs = function(args) {\n return !args || args.length === 0;\n};\n\n// lets you call a css selector with a guard\nRuleset.prototype.matchCondition = function(args, context) {\n const lastSelector = this.selectors[this.selectors.length - 1];\n if (!lastSelector.evaldCondition) {\n return false;\n }\n if (lastSelector.condition &&\n !lastSelector.condition.eval(\n new contexts.Eval(context,\n context.frames))) {\n return false;\n }\n return true;\n};\n\nRuleset.prototype.resetCache = function() {\n this._rulesets = null;\n this._variables = null;\n this._properties = null;\n this._lookups = {};\n};\n\nRuleset.prototype.variables = function() {\n if (!this._variables) {\n this._variables = !this.rules ? {} : this.rules.reduce((hash, r) => {\n if (r instanceof Declaration && r.variable === true) {\n hash[r.name] = r;\n }\n // when evaluating variables in an import statement, imports have not been eval'd\n // so we need to go inside import statements.\n // guard against root being a string (in the case of inlined less)\n if (r.type === 'Import' && r.root && r.root.variables) {\n const vars = r.root.variables();\n for (const name in vars) {\n if (vars.hasOwnProperty(name)) {\n hash[name] = r.root.variable(name);\n }\n }\n }\n return hash;\n }, {});\n }\n return this._variables;\n};\n\nRuleset.prototype.properties = function() {\n if (!this._properties) {\n this._properties = !this.rules ? {} : this.rules.reduce((hash, r) => {\n if (r instanceof Declaration && r.variable !== true) {\n const name = (r.name.length === 1) && (r.name[0] instanceof Keyword) ?\n r.name[0].value : r.name;\n // Properties don't overwrite as they can merge\n if (!hash[`$${name}`]) {\n hash[`$${name}`] = [ r ];\n }\n else {\n hash[`$${name}`].push(r);\n }\n }\n return hash;\n }, {});\n }\n return this._properties;\n};\n\nRuleset.prototype.variable = function(name) {\n const decl = this.variables()[name];\n if (decl) {\n return this.parseValue(decl);\n }\n};\n\nRuleset.prototype.property = function(name) {\n const decl = this.properties()[name];\n if (decl) {\n return this.parseValue(decl);\n }\n};\n\nRuleset.prototype.lastDeclaration = function() {\n for (let i = this.rules.length; i > 0; i--) {\n const decl = this.rules[i - 1];\n if (decl instanceof Declaration) {\n return this.parseValue(decl);\n }\n }\n};\n\nRuleset.prototype.parseValue = function(toParse) {\n const self = this;\n function transformDeclaration(decl) {\n if (decl.value instanceof Anonymous && !decl.parsed) {\n if (typeof decl.value.value === 'string') {\n this.parse.parseNode(\n decl.value.value,\n ['value', 'important'], \n decl.value.getIndex(), \n decl.fileInfo(), \n (err, result) => {\n if (err) {\n decl.parsed = true;\n }\n if (result) {\n decl.value = result[0];\n decl.important = result[1] || '';\n decl.parsed = true;\n }\n });\n } else {\n decl.parsed = true;\n }\n\n return decl;\n }\n else {\n return decl;\n }\n }\n if (!Array.isArray(toParse)) {\n return transformDeclaration.call(self, toParse);\n }\n else {\n const nodes = [];\n toParse.forEach(n => {\n nodes.push(transformDeclaration.call(self, n));\n });\n return nodes;\n }\n};\n\nRuleset.prototype.rulesets = function() {\n if (!this.rules) { return []; }\n\n const filtRules = [];\n const rules = this.rules;\n let i;\n let rule;\n\n for (i = 0; (rule = rules[i]); i++) {\n if (rule.isRuleset) {\n filtRules.push(rule);\n }\n }\n\n return filtRules;\n};\n\nRuleset.prototype.prependRule = function(rule) {\n const rules = this.rules;\n if (rules) {\n rules.unshift(rule);\n } else {\n this.rules = [ rule ];\n }\n this.setParent(rule, this);\n};\n\nRuleset.prototype.find = function(selector, self = this, filter) {\n const rules = [];\n let match;\n let foundMixins;\n const key = selector.toCSS();\n\n if (key in this._lookups) { return this._lookups[key]; }\n\n this.rulesets().forEach(rule => {\n if (rule !== self) {\n for (let j = 0; j < rule.selectors.length; j++) {\n match = selector.match(rule.selectors[j]);\n if (match) {\n if (selector.elements.length > match) {\n if (!filter || filter(rule)) {\n foundMixins = rule.find(new Selector(selector.elements.slice(match)), self, filter);\n for (let i = 0; i < foundMixins.length; ++i) {\n foundMixins[i].path.push(rule);\n }\n Array.prototype.push.apply(rules, foundMixins);\n }\n } else {\n rules.push({ rule, path: []});\n }\n break;\n }\n }\n }\n });\n this._lookups[key] = rules;\n return rules;\n};\n\nRuleset.prototype.genCSS = function(context, output) {\n let i;\n let j;\n const charsetRuleNodes = [];\n let ruleNodes = [];\n\n let // Line number debugging\n debugInfo;\n\n let rule;\n let path;\n\n context.tabLevel = (context.tabLevel || 0);\n\n if (!this.root) {\n context.tabLevel++;\n }\n\n const tabRuleStr = context.compress ? '' : Array(context.tabLevel + 1).join(' ');\n const tabSetStr = context.compress ? '' : Array(context.tabLevel).join(' ');\n let sep;\n\n let charsetNodeIndex = 0;\n let importNodeIndex = 0;\n for (i = 0; (rule = this.rules[i]); i++) {\n if (rule instanceof Comment) {\n if (importNodeIndex === i) {\n importNodeIndex++;\n }\n ruleNodes.push(rule);\n } else if (rule.isCharset && rule.isCharset()) {\n ruleNodes.splice(charsetNodeIndex, 0, rule);\n charsetNodeIndex++;\n importNodeIndex++;\n } else if (rule.type === 'Import') {\n ruleNodes.splice(importNodeIndex, 0, rule);\n importNodeIndex++;\n } else {\n ruleNodes.push(rule);\n }\n }\n ruleNodes = charsetRuleNodes.concat(ruleNodes);\n\n // If this is the root node, we don't render\n // a selector, or {}.\n if (!this.root) {\n debugInfo = getDebugInfo(context, this, tabSetStr);\n\n if (debugInfo) {\n output.add(debugInfo);\n output.add(tabSetStr);\n }\n\n const paths = this.paths;\n const pathCnt = paths.length;\n let pathSubCnt;\n\n sep = context.compress ? ',' : (`,\\n${tabSetStr}`);\n\n for (i = 0; i < pathCnt; i++) {\n path = paths[i];\n if (!(pathSubCnt = path.length)) { continue; }\n if (i > 0) { output.add(sep); }\n\n context.firstSelector = true;\n path[0].genCSS(context, output);\n\n context.firstSelector = false;\n for (j = 1; j < pathSubCnt; j++) {\n path[j].genCSS(context, output);\n }\n }\n\n output.add((context.compress ? '{' : ' {\\n') + tabRuleStr);\n }\n\n // Compile rules and rulesets\n for (i = 0; (rule = ruleNodes[i]); i++) {\n\n if (i + 1 === ruleNodes.length) {\n context.lastRule = true;\n }\n\n const currentLastRule = context.lastRule;\n if (rule.isRulesetLike(rule)) {\n context.lastRule = false;\n }\n\n if (rule.genCSS) {\n rule.genCSS(context, output);\n } else if (rule.value) {\n output.add(rule.value.toString());\n }\n\n context.lastRule = currentLastRule;\n\n if (!context.lastRule && rule.isVisible()) {\n output.add(context.compress ? '' : (`\\n${tabRuleStr}`));\n } else {\n context.lastRule = false;\n }\n }\n\n if (!this.root) {\n output.add((context.compress ? '}' : `\\n${tabSetStr}}`));\n context.tabLevel--;\n }\n\n if (!output.isEmpty() && !context.compress && this.firstRoot) {\n output.add('\\n');\n }\n};\n\nRuleset.prototype.joinSelectors = function(paths, context, selectors) {\n for (let s = 0; s < selectors.length; s++) {\n this.joinSelector(paths, context, selectors[s]);\n }\n};\n\nRuleset.prototype.joinSelector = function(paths, context, selector) {\n function createParenthesis(elementsToPak, originalElement) {\n let replacementParen;\n let j;\n if (elementsToPak.length === 0) {\n replacementParen = new Paren(elementsToPak[0]);\n } else {\n const insideParent = new Array(elementsToPak.length);\n for (j = 0; j < elementsToPak.length; j++) {\n insideParent[j] = new Element(\n null,\n elementsToPak[j],\n originalElement.isVariable,\n originalElement._index,\n originalElement._fileInfo\n );\n }\n replacementParen = new Paren(new Selector(insideParent));\n }\n return replacementParen;\n }\n\n function createSelector(containedElement, originalElement) {\n let element;\n let selector;\n element = new Element(null, containedElement, originalElement.isVariable, originalElement._index, originalElement._fileInfo);\n selector = new Selector([element]);\n return selector;\n }\n\n // joins selector path from `beginningPath` with selector path in `addPath`\n // `replacedElement` contains element that is being replaced by `addPath`\n // returns concatenated path\n function addReplacementIntoPath(beginningPath, addPath, replacedElement, originalSelector) {\n let newSelectorPath;\n let lastSelector;\n let newJoinedSelector;\n // our new selector path\n newSelectorPath = [];\n\n // construct the joined selector - if & is the first thing this will be empty,\n // if not newJoinedSelector will be the last set of elements in the selector\n if (beginningPath.length > 0) {\n newSelectorPath = utils.copyArray(beginningPath);\n lastSelector = newSelectorPath.pop();\n newJoinedSelector = originalSelector.createDerived(utils.copyArray(lastSelector.elements));\n }\n else {\n newJoinedSelector = originalSelector.createDerived([]);\n }\n\n if (addPath.length > 0) {\n // /deep/ is a CSS4 selector - (removed, so should deprecate)\n // that is valid without anything in front of it\n // so if the & does not have a combinator that is \"\" or \" \" then\n // and there is a combinator on the parent, then grab that.\n // this also allows + a { & .b { .a & { ... though not sure why you would want to do that\n let combinator = replacedElement.combinator;\n\n const parentEl = addPath[0].elements[0];\n if (combinator.emptyOrWhitespace && !parentEl.combinator.emptyOrWhitespace) {\n combinator = parentEl.combinator;\n }\n // join the elements so far with the first part of the parent\n newJoinedSelector.elements.push(new Element(\n combinator,\n parentEl.value,\n replacedElement.isVariable,\n replacedElement._index,\n replacedElement._fileInfo\n ));\n newJoinedSelector.elements = newJoinedSelector.elements.concat(addPath[0].elements.slice(1));\n }\n\n // now add the joined selector - but only if it is not empty\n if (newJoinedSelector.elements.length !== 0) {\n newSelectorPath.push(newJoinedSelector);\n }\n\n // put together the parent selectors after the join (e.g. the rest of the parent)\n if (addPath.length > 1) {\n let restOfPath = addPath.slice(1);\n restOfPath = restOfPath.map(selector => selector.createDerived(selector.elements, []));\n newSelectorPath = newSelectorPath.concat(restOfPath);\n }\n return newSelectorPath;\n }\n\n // joins selector path from `beginningPath` with every selector path in `addPaths` array\n // `replacedElement` contains element that is being replaced by `addPath`\n // returns array with all concatenated paths\n function addAllReplacementsIntoPath( beginningPath, addPaths, replacedElement, originalSelector, result) {\n let j;\n for (j = 0; j < beginningPath.length; j++) {\n const newSelectorPath = addReplacementIntoPath(beginningPath[j], addPaths, replacedElement, originalSelector);\n result.push(newSelectorPath);\n }\n return result;\n }\n\n function mergeElementsOnToSelectors(elements, selectors) {\n let i;\n let sel;\n\n if (elements.length === 0) {\n return ;\n }\n if (selectors.length === 0) {\n selectors.push([ new Selector(elements) ]);\n return;\n }\n\n for (i = 0; (sel = selectors[i]); i++) {\n // if the previous thing in sel is a parent this needs to join on to it\n if (sel.length > 0) {\n sel[sel.length - 1] = sel[sel.length - 1].createDerived(sel[sel.length - 1].elements.concat(elements));\n }\n else {\n sel.push(new Selector(elements));\n }\n }\n }\n\n // replace all parent selectors inside `inSelector` by content of `context` array\n // resulting selectors are returned inside `paths` array\n // returns true if `inSelector` contained at least one parent selector\n function replaceParentSelector(paths, context, inSelector) {\n // The paths are [[Selector]]\n // The first list is a list of comma separated selectors\n // The inner list is a list of inheritance separated selectors\n // e.g.\n // .a, .b {\n // .c {\n // }\n // }\n // == [[.a] [.c]] [[.b] [.c]]\n //\n let i;\n\n let j;\n let k;\n let currentElements;\n let newSelectors;\n let selectorsMultiplied;\n let sel;\n let el;\n let hadParentSelector = false;\n let length;\n let lastSelector;\n function findNestedSelector(element) {\n let maybeSelector;\n if (!(element.value instanceof Paren)) {\n return null;\n }\n\n maybeSelector = element.value.value;\n if (!(maybeSelector instanceof Selector)) {\n return null;\n }\n\n return maybeSelector;\n }\n\n // the elements from the current selector so far\n currentElements = [];\n // the current list of new selectors to add to the path.\n // We will build it up. We initiate it with one empty selector as we \"multiply\" the new selectors\n // by the parents\n newSelectors = [\n []\n ];\n\n for (i = 0; (el = inSelector.elements[i]); i++) {\n // non parent reference elements just get added\n if (el.value !== '&') {\n const nestedSelector = findNestedSelector(el);\n if (nestedSelector != null) {\n // merge the current list of non parent selector elements\n // on to the current list of selectors to add\n mergeElementsOnToSelectors(currentElements, newSelectors);\n\n const nestedPaths = [];\n let replaced;\n const replacedNewSelectors = [];\n replaced = replaceParentSelector(nestedPaths, context, nestedSelector);\n hadParentSelector = hadParentSelector || replaced;\n // the nestedPaths array should have only one member - replaceParentSelector does not multiply selectors\n for (k = 0; k < nestedPaths.length; k++) {\n const replacementSelector = createSelector(createParenthesis(nestedPaths[k], el), el);\n addAllReplacementsIntoPath(newSelectors, [replacementSelector], el, inSelector, replacedNewSelectors);\n }\n newSelectors = replacedNewSelectors;\n currentElements = [];\n } else {\n currentElements.push(el);\n }\n\n } else {\n hadParentSelector = true;\n // the new list of selectors to add\n selectorsMultiplied = [];\n\n // merge the current list of non parent selector elements\n // on to the current list of selectors to add\n mergeElementsOnToSelectors(currentElements, newSelectors);\n\n // loop through our current selectors\n for (j = 0; j < newSelectors.length; j++) {\n sel = newSelectors[j];\n // if we don't have any parent paths, the & might be in a mixin so that it can be used\n // whether there are parents or not\n if (context.length === 0) {\n // the combinator used on el should now be applied to the next element instead so that\n // it is not lost\n if (sel.length > 0) {\n sel[0].elements.push(new Element(el.combinator, '', el.isVariable, el._index, el._fileInfo));\n }\n selectorsMultiplied.push(sel);\n }\n else {\n // and the parent selectors\n for (k = 0; k < context.length; k++) {\n // We need to put the current selectors\n // then join the last selector's elements on to the parents selectors\n const newSelectorPath = addReplacementIntoPath(sel, context[k], el, inSelector);\n // add that to our new set of selectors\n selectorsMultiplied.push(newSelectorPath);\n }\n }\n }\n\n // our new selectors has been multiplied, so reset the state\n newSelectors = selectorsMultiplied;\n currentElements = [];\n }\n }\n\n // if we have any elements left over (e.g. .a& .b == .b)\n // add them on to all the current selectors\n mergeElementsOnToSelectors(currentElements, newSelectors);\n\n for (i = 0; i < newSelectors.length; i++) {\n length = newSelectors[i].length;\n if (length > 0) {\n paths.push(newSelectors[i]);\n lastSelector = newSelectors[i][length - 1];\n newSelectors[i][length - 1] = lastSelector.createDerived(lastSelector.elements, inSelector.extendList);\n }\n }\n\n return hadParentSelector;\n }\n\n function deriveSelector(visibilityInfo, deriveFrom) {\n const newSelector = deriveFrom.createDerived(deriveFrom.elements, deriveFrom.extendList, deriveFrom.evaldCondition);\n newSelector.copyVisibilityInfo(visibilityInfo);\n return newSelector;\n }\n\n // joinSelector code follows\n let i;\n\n let newPaths;\n let hadParentSelector;\n\n newPaths = [];\n hadParentSelector = replaceParentSelector(newPaths, context, selector);\n\n if (!hadParentSelector) {\n if (context.length > 0) {\n newPaths = [];\n for (i = 0; i < context.length; i++) {\n\n const concatenated = context[i].map(deriveSelector.bind(this, selector.visibilityInfo()));\n\n concatenated.push(selector);\n newPaths.push(concatenated);\n }\n }\n else {\n newPaths = [[selector]];\n }\n }\n\n for (i = 0; i < newPaths.length; i++) {\n paths.push(newPaths[i]);\n }\n};\n\nRuleset.prototype.type = 'Ruleset';\nRuleset.prototype.isRuleset = true;\nexport default Ruleset;\n"]}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var node_1 = __importDefault(require("./node"));
|
|
7
|
+
var element_1 = __importDefault(require("./element"));
|
|
8
|
+
var less_error_1 = __importDefault(require("../less-error"));
|
|
9
|
+
var Selector = function (elements, extendList, condition, index, currentFileInfo, visibilityInfo) {
|
|
10
|
+
this.extendList = extendList;
|
|
11
|
+
this.condition = condition;
|
|
12
|
+
this.evaldCondition = !condition;
|
|
13
|
+
this._index = index;
|
|
14
|
+
this._fileInfo = currentFileInfo;
|
|
15
|
+
this.elements = this.getElements(elements);
|
|
16
|
+
this.mixinElements_ = undefined;
|
|
17
|
+
this.copyVisibilityInfo(visibilityInfo);
|
|
18
|
+
this.setParent(this.elements, this);
|
|
19
|
+
};
|
|
20
|
+
Selector.prototype = new node_1.default();
|
|
21
|
+
Selector.prototype.accept = function (visitor) {
|
|
22
|
+
if (this.elements) {
|
|
23
|
+
this.elements = visitor.visitArray(this.elements);
|
|
24
|
+
}
|
|
25
|
+
if (this.extendList) {
|
|
26
|
+
this.extendList = visitor.visitArray(this.extendList);
|
|
27
|
+
}
|
|
28
|
+
if (this.condition) {
|
|
29
|
+
this.condition = visitor.visit(this.condition);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
Selector.prototype.createDerived = function (elements, extendList, evaldCondition) {
|
|
33
|
+
elements = this.getElements(elements);
|
|
34
|
+
var newSelector = new Selector(elements, extendList || this.extendList, null, this.getIndex(), this.fileInfo(), this.visibilityInfo());
|
|
35
|
+
newSelector.evaldCondition = (evaldCondition != null) ? evaldCondition : this.evaldCondition;
|
|
36
|
+
newSelector.mediaEmpty = this.mediaEmpty;
|
|
37
|
+
return newSelector;
|
|
38
|
+
};
|
|
39
|
+
Selector.prototype.getElements = function (els) {
|
|
40
|
+
if (!els) {
|
|
41
|
+
return [new element_1.default('', '&', false, this._index, this._fileInfo)];
|
|
42
|
+
}
|
|
43
|
+
if (typeof els === 'string') {
|
|
44
|
+
this.parse.parseNode(els, ['selector'], this._index, this._fileInfo, function (err, result) {
|
|
45
|
+
if (err) {
|
|
46
|
+
throw new less_error_1.default({
|
|
47
|
+
index: err.index,
|
|
48
|
+
message: err.message
|
|
49
|
+
}, this.parse.imports, this._fileInfo.filename);
|
|
50
|
+
}
|
|
51
|
+
els = result[0].elements;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return els;
|
|
55
|
+
};
|
|
56
|
+
Selector.prototype.createEmptySelectors = function () {
|
|
57
|
+
var el = new element_1.default('', '&', false, this._index, this._fileInfo);
|
|
58
|
+
var sels = [new Selector([el], null, null, this._index, this._fileInfo)];
|
|
59
|
+
sels[0].mediaEmpty = true;
|
|
60
|
+
return sels;
|
|
61
|
+
};
|
|
62
|
+
Selector.prototype.match = function (other) {
|
|
63
|
+
var elements = this.elements;
|
|
64
|
+
var len = elements.length;
|
|
65
|
+
var olen;
|
|
66
|
+
var i;
|
|
67
|
+
other = other.mixinElements();
|
|
68
|
+
olen = other.length;
|
|
69
|
+
if (olen === 0 || len < olen) {
|
|
70
|
+
return 0;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
for (i = 0; i < olen; i++) {
|
|
74
|
+
if (elements[i].value !== other[i]) {
|
|
75
|
+
return 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return olen; // return number of matched elements
|
|
80
|
+
};
|
|
81
|
+
Selector.prototype.mixinElements = function () {
|
|
82
|
+
if (this.mixinElements_) {
|
|
83
|
+
return this.mixinElements_;
|
|
84
|
+
}
|
|
85
|
+
var elements = this.elements.map(function (v) { return v.combinator.value + (v.value.value || v.value); }).join('').match(/[,&#\*\.\w-]([\w-]|(\\.))*/g);
|
|
86
|
+
if (elements) {
|
|
87
|
+
if (elements[0] === '&') {
|
|
88
|
+
elements.shift();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
elements = [];
|
|
93
|
+
}
|
|
94
|
+
return (this.mixinElements_ = elements);
|
|
95
|
+
};
|
|
96
|
+
Selector.prototype.isJustParentSelector = function () {
|
|
97
|
+
return !this.mediaEmpty &&
|
|
98
|
+
this.elements.length === 1 &&
|
|
99
|
+
this.elements[0].value === '&' &&
|
|
100
|
+
(this.elements[0].combinator.value === ' ' || this.elements[0].combinator.value === '');
|
|
101
|
+
};
|
|
102
|
+
Selector.prototype.eval = function (context) {
|
|
103
|
+
var evaldCondition = this.condition && this.condition.eval(context);
|
|
104
|
+
var elements = this.elements;
|
|
105
|
+
var extendList = this.extendList;
|
|
106
|
+
elements = elements && elements.map(function (e) { return e.eval(context); });
|
|
107
|
+
extendList = extendList && extendList.map(function (extend) { return extend.eval(context); });
|
|
108
|
+
return this.createDerived(elements, extendList, evaldCondition);
|
|
109
|
+
};
|
|
110
|
+
Selector.prototype.genCSS = function (context, output) {
|
|
111
|
+
var i;
|
|
112
|
+
var element;
|
|
113
|
+
if ((!context || !context.firstSelector) && this.elements[0].combinator.value === '') {
|
|
114
|
+
output.add(' ', this.fileInfo(), this.getIndex());
|
|
115
|
+
}
|
|
116
|
+
for (i = 0; i < this.elements.length; i++) {
|
|
117
|
+
element = this.elements[i];
|
|
118
|
+
element.genCSS(context, output);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
Selector.prototype.getIsOutput = function () {
|
|
122
|
+
return this.evaldCondition;
|
|
123
|
+
};
|
|
124
|
+
Selector.prototype.type = 'Selector';
|
|
125
|
+
exports.default = Selector;
|
|
126
|
+
//# sourceMappingURL=selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector.js","sourceRoot":"","sources":["../../../src/less/tree/selector.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,sDAAgC;AAChC,6DAAsC;AAEtC,IAAM,QAAQ,GAAG,UAAS,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,cAAc;IAC7F,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,cAAc,GAAG,CAAC,SAAS,CAAC;IACjC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACpB,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC;IACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC3C,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC;IAChC,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACxC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AACxC,CAAC,CAAA;AAED,QAAQ,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AAEhC,QAAQ,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO;IACxC,IAAI,IAAI,CAAC,QAAQ,EAAE;QACf,IAAI,CAAC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M,EAAE,CAAC,EAAE,EAAE;QACvC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC3B,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;KACnC;AACL,CAAC,CAAC;AAEF,QAAQ,CAAC,SAAS,CAAC,WAAW,GAAG;IAC7B,OAAO,IAAI,CAAC,cAAc,CAAC;AAC/B,CAAC,CAAC;AAEF,QAAQ,CAAC,SAAS,CAAC,IAAI,GAAG,UAAU,CAAC;AACrC,kBAAe,QAAQ,CAAC","sourcesContent":["import Node from './node';\nimport Element from './element';\nimport LessError from '../less-error';\n\nconst Selector = function(elements, extendList, condition, index, currentFileInfo, visibilityInfo) {\n this.extendList = extendList;\n this.condition = condition;\n this.evaldCondition = !condition;\n this._index = index;\n this._fileInfo = currentFileInfo;\n this.elements = this.getElements(elements);\n this.mixinElements_ = undefined;\n this.copyVisibilityInfo(visibilityInfo);\n this.setParent(this.elements, this);\n}\n\nSelector.prototype = new Node();\n\nSelector.prototype.accept = function(visitor) {\n if (this.elements) {\n this.elements = visitor.visitArray(this.elements);\n }\n if (this.extendList) {\n this.extendList = visitor.visitArray(this.extendList);\n }\n if (this.condition) {\n this.condition = visitor.visit(this.condition);\n }\n};\n\nSelector.prototype.createDerived = function(elements, extendList, evaldCondition) {\n elements = this.getElements(elements);\n const newSelector = new Selector(elements, extendList || this.extendList,\n null, this.getIndex(), this.fileInfo(), this.visibilityInfo());\n newSelector.evaldCondition = (evaldCondition != null) ? evaldCondition : this.evaldCondition;\n newSelector.mediaEmpty = this.mediaEmpty;\n return newSelector;\n};\n\nSelector.prototype.getElements = function(els) {\n if (!els) {\n return [new Element('', '&', false, this._index, this._fileInfo)];\n }\n if (typeof els === 'string') {\n this.parse.parseNode(\n els, \n ['selector'],\n this._index, \n this._fileInfo, \n function(err, result) {\n if (err) {\n throw new LessError({\n index: err.index,\n message: err.message\n }, this.parse.imports, this._fileInfo.filename);\n }\n els = result[0].elements;\n });\n }\n return els;\n};\n\nSelector.prototype.createEmptySelectors = function() {\n const el = new Element('', '&', false, this._index, this._fileInfo);\n const sels = [new Selector([el], null, null, this._index, this._fileInfo)];\n sels[0].mediaEmpty = true;\n return sels;\n};\n\nSelector.prototype.match = function(other) {\n const elements = this.elements;\n const len = elements.length;\n let olen;\n let i;\n\n other = other.mixinElements();\n olen = other.length;\n if (olen === 0 || len < olen) {\n return 0;\n } else {\n for (i = 0; i < olen; i++) {\n if (elements[i].value !== other[i]) {\n return 0;\n }\n }\n }\n\n return olen; // return number of matched elements\n};\n\nSelector.prototype.mixinElements = function() {\n if (this.mixinElements_) {\n return this.mixinElements_;\n }\n\n let elements = this.elements.map( v => v.combinator.value + (v.value.value || v.value)).join('').match(/[,&#\\*\\.\\w-]([\\w-]|(\\\\.))*/g);\n\n if (elements) {\n if (elements[0] === '&') {\n elements.shift();\n }\n } else {\n elements = [];\n }\n\n return (this.mixinElements_ = elements);\n};\n\nSelector.prototype.isJustParentSelector = function() {\n return !this.mediaEmpty &&\n this.elements.length === 1 &&\n this.elements[0].value === '&' &&\n (this.elements[0].combinator.value === ' ' || this.elements[0].combinator.value === '');\n};\n\nSelector.prototype.eval = function(context) {\n const evaldCondition = this.condition && this.condition.eval(context);\n let elements = this.elements;\n let extendList = this.extendList;\n\n elements = elements && elements.map(e => e.eval(context));\n extendList = extendList && extendList.map(extend => extend.eval(context));\n\n return this.createDerived(elements, extendList, evaldCondition);\n};\n\nSelector.prototype.genCSS = function(context, output) {\n let i;\n let element;\n if ((!context || !context.firstSelector) && this.elements[0].combinator.value === '') {\n output.add(' ', this.fileInfo(), this.getIndex());\n }\n for (i = 0; i < this.elements.length; i++) {\n element = this.elements[i];\n element.genCSS(context, output);\n }\n};\n\nSelector.prototype.getIsOutput = function() {\n return this.evaldCondition;\n};\n\nSelector.prototype.type = 'Selector';\nexport default Selector;\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var node_1 = __importDefault(require("./node"));
|
|
7
|
+
var UnicodeDescriptor = function (value) {
|
|
8
|
+
this.value = value;
|
|
9
|
+
};
|
|
10
|
+
UnicodeDescriptor.prototype = new node_1.default();
|
|
11
|
+
UnicodeDescriptor.prototype.type = 'UnicodeDescriptor';
|
|
12
|
+
exports.default = UnicodeDescriptor;
|
|
13
|
+
//# sourceMappingURL=unicode-descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unicode-descriptor.js","sourceRoot":"","sources":["../../../src/less/tree/unicode-descriptor.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAE1B,IAAM,iBAAiB,GAAG,UAAS,KAAK;IACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AACvB,CAAC,CAAA;AAED,iBAAiB,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AACzC,iBAAiB,CAAC,SAAS,CAAC,IAAI,GAAG,mBAAmB,CAAC;AAEvD,kBAAe,iBAAiB,CAAC","sourcesContent":["import Node from './node';\n\nconst UnicodeDescriptor = function(value) {\n this.value = value;\n}\n\nUnicodeDescriptor.prototype = new Node();\nUnicodeDescriptor.prototype.type = 'UnicodeDescriptor';\n\nexport default UnicodeDescriptor;\n"]}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
var node_1 = __importDefault(require("./node"));
|
|
26
|
+
var unit_conversions_1 = __importDefault(require("../data/unit-conversions"));
|
|
27
|
+
var utils = __importStar(require("../utils"));
|
|
28
|
+
var Unit = function (numerator, denominator, backupUnit) {
|
|
29
|
+
this.numerator = numerator ? utils.copyArray(numerator).sort() : [];
|
|
30
|
+
this.denominator = denominator ? utils.copyArray(denominator).sort() : [];
|
|
31
|
+
if (backupUnit) {
|
|
32
|
+
this.backupUnit = backupUnit;
|
|
33
|
+
}
|
|
34
|
+
else if (numerator && numerator.length) {
|
|
35
|
+
this.backupUnit = numerator[0];
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Unit.prototype = new node_1.default();
|
|
39
|
+
Unit.prototype.clone = function () {
|
|
40
|
+
return new Unit(utils.copyArray(this.numerator), utils.copyArray(this.denominator), this.backupUnit);
|
|
41
|
+
};
|
|
42
|
+
Unit.prototype.genCSS = function (context, output) {
|
|
43
|
+
// Dimension checks the unit is singular and throws an error if in strict math mode.
|
|
44
|
+
var strictUnits = context && context.strictUnits;
|
|
45
|
+
if (this.numerator.length === 1) {
|
|
46
|
+
output.add(this.numerator[0]); // the ideal situation
|
|
47
|
+
}
|
|
48
|
+
else if (!strictUnits && this.backupUnit) {
|
|
49
|
+
output.add(this.backupUnit);
|
|
50
|
+
}
|
|
51
|
+
else if (!strictUnits && this.denominator.length) {
|
|
52
|
+
output.add(this.denominator[0]);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
Unit.prototype.toString = function () {
|
|
56
|
+
var i;
|
|
57
|
+
var returnStr = this.numerator.join('*');
|
|
58
|
+
for (i = 0; i < this.denominator.length; i++) {
|
|
59
|
+
returnStr += "/" + this.denominator[i];
|
|
60
|
+
}
|
|
61
|
+
return returnStr;
|
|
62
|
+
};
|
|
63
|
+
Unit.prototype.compare = function (other) {
|
|
64
|
+
return this.is(other.toString()) ? 0 : undefined;
|
|
65
|
+
};
|
|
66
|
+
Unit.prototype.is = function (unitString) {
|
|
67
|
+
return this.toString().toUpperCase() === unitString.toUpperCase();
|
|
68
|
+
};
|
|
69
|
+
Unit.prototype.isLength = function () {
|
|
70
|
+
return RegExp('^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$', 'gi').test(this.toCSS());
|
|
71
|
+
};
|
|
72
|
+
Unit.prototype.isEmpty = function () {
|
|
73
|
+
return this.numerator.length === 0 && this.denominator.length === 0;
|
|
74
|
+
};
|
|
75
|
+
Unit.prototype.isSingular = function () {
|
|
76
|
+
return this.numerator.length <= 1 && this.denominator.length === 0;
|
|
77
|
+
};
|
|
78
|
+
Unit.prototype.map = function (callback) {
|
|
79
|
+
var i;
|
|
80
|
+
for (i = 0; i < this.numerator.length; i++) {
|
|
81
|
+
this.numerator[i] = callback(this.numerator[i], false);
|
|
82
|
+
}
|
|
83
|
+
for (i = 0; i < this.denominator.length; i++) {
|
|
84
|
+
this.denominator[i] = callback(this.denominator[i], true);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
Unit.prototype.usedUnits = function () {
|
|
88
|
+
var group;
|
|
89
|
+
var result = {};
|
|
90
|
+
var mapUnit;
|
|
91
|
+
var groupName;
|
|
92
|
+
mapUnit = function (atomicUnit) {
|
|
93
|
+
/* jshint loopfunc:true */
|
|
94
|
+
if (group.hasOwnProperty(atomicUnit) && !result[groupName]) {
|
|
95
|
+
result[groupName] = atomicUnit;
|
|
96
|
+
}
|
|
97
|
+
return atomicUnit;
|
|
98
|
+
};
|
|
99
|
+
for (groupName in unit_conversions_1.default) {
|
|
100
|
+
if (unit_conversions_1.default.hasOwnProperty(groupName)) {
|
|
101
|
+
group = unit_conversions_1.default[groupName];
|
|
102
|
+
this.map(mapUnit);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return result;
|
|
106
|
+
};
|
|
107
|
+
Unit.prototype.cancel = function () {
|
|
108
|
+
var counter = {};
|
|
109
|
+
var atomicUnit;
|
|
110
|
+
var i;
|
|
111
|
+
for (i = 0; i < this.numerator.length; i++) {
|
|
112
|
+
atomicUnit = this.numerator[i];
|
|
113
|
+
counter[atomicUnit] = (counter[atomicUnit] || 0) + 1;
|
|
114
|
+
}
|
|
115
|
+
for (i = 0; i < this.denominator.length; i++) {
|
|
116
|
+
atomicUnit = this.denominator[i];
|
|
117
|
+
counter[atomicUnit] = (counter[atomicUnit] || 0) - 1;
|
|
118
|
+
}
|
|
119
|
+
this.numerator = [];
|
|
120
|
+
this.denominator = [];
|
|
121
|
+
for (atomicUnit in counter) {
|
|
122
|
+
if (counter.hasOwnProperty(atomicUnit)) {
|
|
123
|
+
var count = counter[atomicUnit];
|
|
124
|
+
if (count > 0) {
|
|
125
|
+
for (i = 0; i < count; i++) {
|
|
126
|
+
this.numerator.push(atomicUnit);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else if (count < 0) {
|
|
130
|
+
for (i = 0; i < -count; i++) {
|
|
131
|
+
this.denominator.push(atomicUnit);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
this.numerator.sort();
|
|
137
|
+
this.denominator.sort();
|
|
138
|
+
};
|
|
139
|
+
Unit.prototype.type = 'Unit';
|
|
140
|
+
exports.default = Unit;
|
|
141
|
+
//# sourceMappingURL=unit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit.js","sourceRoot":"","sources":["../../../src/less/tree/unit.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,8EAAuD;AACvD,8CAAkC;AAElC,IAAM,IAAI,GAAG,UAAS,SAAS,EAAE,WAAW,EAAE,UAAU;IACpD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACpE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1E,IAAI,UAAU,EAAE;QACZ,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAChC;SAAM,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,EAAE;QACtC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;KAClC;AACL,CAAC,CAAC;AAEF,IAAI,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AAE5B,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG;IACnB,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AACzG,CAAC,CAAC;AAEF,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO,EAAE,MAAM;IAC5C,oFAAoF;IACpF,IAAM,WAAW,GAA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AAO,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE;YACpC,IAAM,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;YAElC,IAAI,KAAK,GAAG,CAAC,EAAE;gBACX,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;oBACxB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;iBACnC;aACJ;iBAAM,IAAI,KAAK,GAAG,CAAC,EAAE;gBAClB,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;oBACzB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;iBACrC;aACJ;SACJ;KACJ;IAED,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IACtB,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;AAC5B,CAAC,CAAC;AAEF,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,MAAM,CAAC;AAC7B,kBAAe,IAAI,CAAC","sourcesContent":["import Node from './node';\nimport unitConversions from '../data/unit-conversions';\nimport * as utils from '../utils';\n\nconst Unit = function(numerator, denominator, backupUnit) {\n this.numerator = numerator ? utils.copyArray(numerator).sort() : [];\n this.denominator = denominator ? utils.copyArray(denominator).sort() : [];\n if (backupUnit) {\n this.backupUnit = backupUnit;\n } else if (numerator && numerator.length) {\n this.backupUnit = numerator[0];\n }\n};\n\nUnit.prototype = new Node();\n\nUnit.prototype.clone = function() {\n return new Unit(utils.copyArray(this.numerator), utils.copyArray(this.denominator), this.backupUnit);\n};\n\nUnit.prototype.genCSS = function(context, output) {\n // Dimension checks the unit is singular and throws an error if in strict math mode.\n const strictUnits = context && context.strictUnits;\n if (this.numerator.length === 1) {\n output.add(this.numerator[0]); // the ideal situation\n } else if (!strictUnits && this.backupUnit) {\n output.add(this.backupUnit);\n } else if (!strictUnits && this.denominator.length) {\n output.add(this.denominator[0]);\n }\n};\n\nUnit.prototype.toString = function() {\n let i;\n let returnStr = this.numerator.join('*');\n for (i = 0; i < this.denominator.length; i++) {\n returnStr += `/${this.denominator[i]}`;\n }\n return returnStr;\n};\n\nUnit.prototype.compare = function(other) {\n return this.is(other.toString()) ? 0 : undefined;\n};\n\nUnit.prototype.is = function(unitString) {\n return this.toString().toUpperCase() === unitString.toUpperCase();\n};\n\nUnit.prototype.isLength = function() {\n return RegExp('^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$', 'gi').test(this.toCSS());\n};\n\nUnit.prototype.isEmpty = function() {\n return this.numerator.length === 0 && this.denominator.length === 0;\n};\n\nUnit.prototype.isSingular = function() {\n return this.numerator.length <= 1 && this.denominator.length === 0;\n};\n\nUnit.prototype.map = function(callback) {\n let i;\n\n for (i = 0; i < this.numerator.length; i++) {\n this.numerator[i] = callback(this.numerator[i], false);\n }\n\n for (i = 0; i < this.denominator.length; i++) {\n this.denominator[i] = callback(this.denominator[i], true);\n }\n};\n\nUnit.prototype.usedUnits = function() {\n let group;\n const result = {};\n let mapUnit;\n let groupName;\n\n mapUnit = atomicUnit => {\n /* jshint loopfunc:true */\n if (group.hasOwnProperty(atomicUnit) && !result[groupName]) {\n result[groupName] = atomicUnit;\n }\n\n return atomicUnit;\n };\n\n for (groupName in unitConversions) {\n if (unitConversions.hasOwnProperty(groupName)) {\n group = unitConversions[groupName];\n\n this.map(mapUnit);\n }\n }\n\n return result;\n};\n\nUnit.prototype.cancel = function() {\n const counter = {};\n let atomicUnit;\n let i;\n\n for (i = 0; i < this.numerator.length; i++) {\n atomicUnit = this.numerator[i];\n counter[atomicUnit] = (counter[atomicUnit] || 0) + 1;\n }\n\n for (i = 0; i < this.denominator.length; i++) {\n atomicUnit = this.denominator[i];\n counter[atomicUnit] = (counter[atomicUnit] || 0) - 1;\n }\n\n this.numerator = [];\n this.denominator = [];\n\n for (atomicUnit in counter) {\n if (counter.hasOwnProperty(atomicUnit)) {\n const count = counter[atomicUnit];\n\n if (count > 0) {\n for (i = 0; i < count; i++) {\n this.numerator.push(atomicUnit);\n }\n } else if (count < 0) {\n for (i = 0; i < -count; i++) {\n this.denominator.push(atomicUnit);\n }\n }\n }\n }\n\n this.numerator.sort();\n this.denominator.sort();\n};\n\nUnit.prototype.type = 'Unit';\nexport default Unit;\n"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var node_1 = __importDefault(require("./node"));
|
|
7
|
+
var URL = function (val, index, currentFileInfo, isEvald) {
|
|
8
|
+
this.value = val;
|
|
9
|
+
this._index = index;
|
|
10
|
+
this._fileInfo = currentFileInfo;
|
|
11
|
+
this.isEvald = isEvald;
|
|
12
|
+
};
|
|
13
|
+
URL.prototype = new node_1.default();
|
|
14
|
+
URL.prototype.accept = function (visitor) {
|
|
15
|
+
this.value = visitor.visit(this.value);
|
|
16
|
+
};
|
|
17
|
+
URL.prototype.genCSS = function (context, output) {
|
|
18
|
+
output.add('url(');
|
|
19
|
+
this.value.genCSS(context, output);
|
|
20
|
+
output.add(')');
|
|
21
|
+
};
|
|
22
|
+
URL.prototype.eval = function (context) {
|
|
23
|
+
var val = this.value.eval(context);
|
|
24
|
+
var rootpath;
|
|
25
|
+
if (!this.isEvald) {
|
|
26
|
+
// Add the rootpath if the URL requires a rewrite
|
|
27
|
+
rootpath = this.fileInfo() && this.fileInfo().rootpath;
|
|
28
|
+
if (typeof rootpath === 'string' &&
|
|
29
|
+
typeof val.value === 'string' &&
|
|
30
|
+
context.pathRequiresRewrite(val.value)) {
|
|
31
|
+
if (!val.quote) {
|
|
32
|
+
rootpath = escapePath(rootpath);
|
|
33
|
+
}
|
|
34
|
+
val.value = context.rewritePath(val.value, rootpath);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
val.value = context.normalizePath(val.value);
|
|
38
|
+
}
|
|
39
|
+
// Add url args if enabled
|
|
40
|
+
if (context.urlArgs) {
|
|
41
|
+
if (!val.value.match(/^\s*data:/)) {
|
|
42
|
+
var delimiter = val.value.indexOf('?') === -1 ? '?' : '&';
|
|
43
|
+
var urlArgs = delimiter + context.urlArgs;
|
|
44
|
+
if (val.value.indexOf('#') !== -1) {
|
|
45
|
+
val.value = val.value.replace('#', urlArgs + "#");
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
val.value += urlArgs;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return new URL(val, this.getIndex(), this.fileInfo(), true);
|
|
54
|
+
};
|
|
55
|
+
URL.prototype.type = 'Url';
|
|
56
|
+
function escapePath(path) {
|
|
57
|
+
return path.replace(/[\(\)'"\s]/g, function (match) { return "\\" + match; });
|
|
58
|
+
}
|
|
59
|
+
exports.default = URL;
|
|
60
|
+
//# sourceMappingURL=url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../src/less/tree/url.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAE1B,IAAM,GAAG,GAAG,UAAS,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO;IACrD,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;IACjB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACpB,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AAC3B,CAAC,CAAC;AAEF,GAAG,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AAE3B,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO;IACnC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,I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,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;gBAC5D,IAAM,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC;gBAC5C,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE;oBAC/B,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAK,OAAO,MAAG,CAAC,CAAC;iBACrD;qBAAM;oBACH,GAAG,CAAC,KAAK,IAAI,OAAO,CAAC;iBACxB;aACJ;SACJ;KACJ;IAED,OAAO,IAAI,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC;AAChE,CAAC,CAAC;AAEF,GAAG,CAAC,SAAS,CAAC,IAAI,GAAG,KAAK,CAAC;AAE3B,SAAS,UAAU,CAAC,IAAI;IACpB,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,UAAA,KAAK,IAAI,OAAA,OAAK,KAAO,EAAZ,CAAY,CAAC,CAAC;AAC9D,CAAC;AAED,kBAAe,GAAG,CAAC","sourcesContent":["import Node from './node';\n\nconst URL = function(val, index, currentFileInfo, isEvald) {\n this.value = val;\n this._index = index;\n this._fileInfo = currentFileInfo;\n this.isEvald = isEvald;\n};\n\nURL.prototype = new Node();\n\nURL.prototype.accept = function(visitor) {\n this.value = visitor.visit(this.value);\n};\n\nURL.prototype.genCSS = function(context, output) {\n output.add('url(');\n this.value.genCSS(context, output);\n output.add(')');\n};\n\nURL.prototype.eval = function(context) {\n const val = this.value.eval(context);\n let rootpath;\n\n if (!this.isEvald) {\n // Add the rootpath if the URL requires a rewrite\n rootpath = this.fileInfo() && this.fileInfo().rootpath;\n if (typeof rootpath === 'string' &&\n typeof val.value === 'string' &&\n context.pathRequiresRewrite(val.value)) {\n if (!val.quote) {\n rootpath = escapePath(rootpath);\n }\n val.value = context.rewritePath(val.value, rootpath);\n } else {\n val.value = context.normalizePath(val.value);\n }\n\n // Add url args if enabled\n if (context.urlArgs) {\n if (!val.value.match(/^\\s*data:/)) {\n const delimiter = val.value.indexOf('?') === -1 ? '?' : '&';\n const urlArgs = delimiter + context.urlArgs;\n if (val.value.indexOf('#') !== -1) {\n val.value = val.value.replace('#', `${urlArgs}#`);\n } else {\n val.value += urlArgs;\n }\n }\n }\n }\n\n return new URL(val, this.getIndex(), this.fileInfo(), true);\n};\n\nURL.prototype.type = 'Url';\n\nfunction escapePath(path) {\n return path.replace(/[\\(\\)'\"\\s]/g, match => `\\\\${match}`);\n}\n\nexport default URL;\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var node_1 = __importDefault(require("./node"));
|
|
7
|
+
var Value = function (value) {
|
|
8
|
+
if (!value) {
|
|
9
|
+
throw new Error('Value requires an array argument');
|
|
10
|
+
}
|
|
11
|
+
if (!Array.isArray(value)) {
|
|
12
|
+
this.value = [value];
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
this.value = value;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
Value.prototype = new node_1.default();
|
|
19
|
+
Value.prototype.accept = function (visitor) {
|
|
20
|
+
if (this.value) {
|
|
21
|
+
this.value = visitor.visitArray(this.value);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
Value.prototype.eval = function (context) {
|
|
25
|
+
if (this.value.length === 1) {
|
|
26
|
+
return this.value[0].eval(context);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return new Value(this.value.map(function (v) { return v.eval(context); }));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
Value.prototype.genCSS = function (context, output) {
|
|
33
|
+
var i;
|
|
34
|
+
for (i = 0; i < this.value.length; i++) {
|
|
35
|
+
this.value[i].genCSS(context, output);
|
|
36
|
+
if (i + 1 < this.value.length) {
|
|
37
|
+
output.add((context && context.compress) ? ',' : ', ');
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
Value.prototype.type = 'Value';
|
|
42
|
+
exports.default = Value;
|
|
43
|
+
//# sourceMappingURL=value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value.js","sourceRoot":"","sources":["../../../src/less/tree/value.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAE1B,IAAM,KAAK,GAAG,UAAS,KAAK;IACxB,IAAI,CAAC,KAAK,EAAE;QACR,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;KACvD;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACvB,IAAI,CAAC,KAAK,GAAG,CAAE,KAAK,CAAE,CAAC;KAC1B;SACI;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;KACtB;AACL,CAAC,CAAC;AAEF,KAAK,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AAE7B,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO;IACrC,IAAI,IAAI,CAAC,KAAK,EAAE;QACZ,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC/C;AACL,CAAC,CAAC;AAEF,KAAK,CAAC,SAAS,CAAC,IAAI,GAAG,UAAS,OAAO;IACnC,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACtC;SAAM;QACH,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAf,CAAe,CAAC,CAAC,CAAC;KAC1D;AACL,CAAC,CAAC;AAEF,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO,EAAE,MAAM;IAC7C,IAAI,CAAC,CAAC;IACN,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;YAC3B,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;SAC1D;KACJ;AACL,CAAC,CAAC;AAEF,KAAK,CAAC,SAAS,CAAC,IAAI,GAAG,OAAO,CAAC;AAC/B,kBAAe,KAAK,CAAC","sourcesContent":["import Node from './node';\n\nconst Value = function(value) {\n if (!value) {\n throw new Error('Value requires an array argument');\n }\n if (!Array.isArray(value)) {\n this.value = [ value ];\n }\n else {\n this.value = value;\n }\n};\n\nValue.prototype = new Node();\n\nValue.prototype.accept = function(visitor) {\n if (this.value) {\n this.value = visitor.visitArray(this.value);\n }\n};\n\nValue.prototype.eval = function(context) {\n if (this.value.length === 1) {\n return this.value[0].eval(context);\n } else {\n return new Value(this.value.map(v => v.eval(context)));\n }\n};\n\nValue.prototype.genCSS = function(context, output) {\n let i;\n for (i = 0; i < this.value.length; i++) {\n this.value[i].genCSS(context, output);\n if (i + 1 < this.value.length) {\n output.add((context && context.compress) ? ',' : ', ');\n }\n }\n};\n\nValue.prototype.type = 'Value';\nexport default Value;\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var node_1 = __importDefault(require("./node"));
|
|
7
|
+
var variable_1 = __importDefault(require("./variable"));
|
|
8
|
+
var ruleset_1 = __importDefault(require("./ruleset"));
|
|
9
|
+
var detached_ruleset_1 = __importDefault(require("./detached-ruleset"));
|
|
10
|
+
var less_error_1 = __importDefault(require("../less-error"));
|
|
11
|
+
var VariableCall = function (variable, index, currentFileInfo) {
|
|
12
|
+
this.variable = variable;
|
|
13
|
+
this._index = index;
|
|
14
|
+
this._fileInfo = currentFileInfo;
|
|
15
|
+
this.allowRoot = true;
|
|
16
|
+
};
|
|
17
|
+
VariableCall.prototype = new node_1.default();
|
|
18
|
+
VariableCall.prototype.eval = function (context) {
|
|
19
|
+
var rules;
|
|
20
|
+
var detachedRuleset = new variable_1.default(this.variable, this.getIndex(), this.fileInfo()).eval(context);
|
|
21
|
+
var error = new less_error_1.default({ message: "Could not evaluate variable call " + this.variable });
|
|
22
|
+
if (!detachedRuleset.ruleset) {
|
|
23
|
+
if (detachedRuleset.rules) {
|
|
24
|
+
rules = detachedRuleset;
|
|
25
|
+
}
|
|
26
|
+
else if (Array.isArray(detachedRuleset)) {
|
|
27
|
+
rules = new ruleset_1.default('', detachedRuleset);
|
|
28
|
+
}
|
|
29
|
+
else if (Array.isArray(detachedRuleset.value)) {
|
|
30
|
+
rules = new ruleset_1.default('', detachedRuleset.value);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
detachedRuleset = new detached_ruleset_1.default(rules);
|
|
36
|
+
}
|
|
37
|
+
if (detachedRuleset.ruleset) {
|
|
38
|
+
return detachedRuleset.callEval(context);
|
|
39
|
+
}
|
|
40
|
+
throw error;
|
|
41
|
+
};
|
|
42
|
+
VariableCall.prototype.type = 'VariableCall';
|
|
43
|
+
exports.default = VariableCall;
|
|
44
|
+
//# sourceMappingURL=variable-call.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable-call.js","sourceRoot":"","sources":["../../../src/less/tree/variable-call.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,wDAAkC;AAClC,sDAAgC;AAChC,wEAAiD;AACjD,6DAAsC;AAEtC,IAAM,YAAY,GAAG,UAAS,QAAQ,EAAE,KAAK,EAAE,eAAe;IAC1D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACpB,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC;IACjC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;AAC1B,CAAC,CAAC;AAEF,YAAY,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AAEpC,YAAY,CAAC,SAAS,CAAC,IAAI,GAAG,UAAS,OAAO;IAC1C,IAAI,KAAK,CAAC;IACV,IAAI,eAAe,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClG,IAAM,KAAK,GAAG,IAAI,oBAAS,CAAC,EAAC,OAAO,EAAE,sCAAoC,IAAI,CAAC,QAAU,EAAC,CAAC,CAAC;IAE5F,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE;QAC1B,IAAI,eAAe,CAAC,KAAK,EAAE;YACvB,KAAK,GAAG,eAAe,CAAC;SAC3B;aACI,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;YACrC,KAAK,GAAG,IAAI,iBAAO,CAAC,EAAE,EAAE,eAAe,CAAC,CAAC;SAC5C;aACI,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE;YAC3C,KAAK,GAAG,IAAI,iBAAO,CAAC,EAAE,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;SAClD;aACI;YACD,MAAM,KAAK,CAAC;SACf;QACD,eAAe,GAAG,IAAI,0BAAe,CAAC,KAAK,CAAC,CAAC;KAChD;IAED,IAAI,eAAe,CAAC,OAAO,EAAE;QACzB,OAAO,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;KAC5C;IACD,MAAM,KAAK,CAAC;AAChB,CAAC,CAAC;AAEF,YAAY,CAAC,SAAS,CAAC,IAAI,GAAG,cAAc,CAAC;AAC7C,kBAAe,YAAY,CAAC","sourcesContent":["import Node from './node';\nimport Variable from './variable';\nimport Ruleset from './ruleset';\nimport DetachedRuleset from './detached-ruleset';\nimport LessError from '../less-error';\n\nconst VariableCall = function(variable, index, currentFileInfo) {\n this.variable = variable;\n this._index = index;\n this._fileInfo = currentFileInfo;\n this.allowRoot = true;\n};\n\nVariableCall.prototype = new Node();\n\nVariableCall.prototype.eval = function(context) {\n let rules;\n let detachedRuleset = new Variable(this.variable, this.getIndex(), this.fileInfo()).eval(context);\n const error = new LessError({message: `Could not evaluate variable call ${this.variable}`});\n\n if (!detachedRuleset.ruleset) {\n if (detachedRuleset.rules) {\n rules = detachedRuleset;\n }\n else if (Array.isArray(detachedRuleset)) {\n rules = new Ruleset('', detachedRuleset);\n }\n else if (Array.isArray(detachedRuleset.value)) {\n rules = new Ruleset('', detachedRuleset.value);\n }\n else {\n throw error;\n }\n detachedRuleset = new DetachedRuleset(rules);\n }\n\n if (detachedRuleset.ruleset) {\n return detachedRuleset.callEval(context);\n }\n throw error;\n};\n\nVariableCall.prototype.type = 'VariableCall';\nexport default VariableCall;\n"]}
|