@flourish/sdk 4.2.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/RELEASE_NOTES.md +3 -2
- package/common/embed/embedding.d.ts +1 -1
- package/common/embed/embedding.js +6 -8
- package/common/package.json +2 -1
- package/common/tsconfig.sdk.tsbuildinfo +1 -1
- package/lib/cmd/login.js +12 -17
- package/lib/cmd/publish.js +2 -7
- package/lib/cmd/register.js +10 -13
- package/lib/sdk.js +4 -6
- package/package.json +23 -24
- package/rollup.config.mjs +29 -0
- package/server/index.js +2 -1
- package/server/views/index.html +5 -2
- package/site/embedded.js +2 -1
- package/site/images/icon-add-folder.svg +1 -1
- package/site/script.js +3 -2
- package/site/sdk.css +1 -1
- package/my_template/node_modules/.package-lock.json +0 -525
- package/my_template/node_modules/@babel/code-frame/LICENSE +0 -22
- package/my_template/node_modules/@babel/code-frame/README.md +0 -19
- package/my_template/node_modules/@babel/code-frame/lib/index.js +0 -157
- package/my_template/node_modules/@babel/code-frame/lib/index.js.map +0 -1
- package/my_template/node_modules/@babel/code-frame/package.json +0 -30
- package/my_template/node_modules/@babel/helper-validator-identifier/LICENSE +0 -22
- package/my_template/node_modules/@babel/helper-validator-identifier/README.md +0 -19
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -70
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -57
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -35
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
- package/my_template/node_modules/@babel/helper-validator-identifier/package.json +0 -28
- package/my_template/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +0 -73
- package/my_template/node_modules/@babel/highlight/LICENSE +0 -22
- package/my_template/node_modules/@babel/highlight/README.md +0 -19
- package/my_template/node_modules/@babel/highlight/lib/index.js +0 -105
- package/my_template/node_modules/@babel/highlight/lib/index.js.map +0 -1
- package/my_template/node_modules/@babel/highlight/package.json +0 -29
- package/my_template/node_modules/@types/estree/LICENSE +0 -21
- package/my_template/node_modules/@types/estree/README.md +0 -15
- package/my_template/node_modules/@types/estree/flow.d.ts +0 -167
- package/my_template/node_modules/@types/estree/index.d.ts +0 -683
- package/my_template/node_modules/@types/estree/package.json +0 -26
- package/my_template/node_modules/@types/node/LICENSE +0 -21
- package/my_template/node_modules/@types/node/README.md +0 -15
- package/my_template/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/my_template/node_modules/@types/node/assert.d.ts +0 -996
- package/my_template/node_modules/@types/node/async_hooks.d.ts +0 -539
- package/my_template/node_modules/@types/node/buffer.d.ts +0 -2362
- package/my_template/node_modules/@types/node/child_process.d.ts +0 -1540
- package/my_template/node_modules/@types/node/cluster.d.ts +0 -432
- package/my_template/node_modules/@types/node/console.d.ts +0 -415
- package/my_template/node_modules/@types/node/constants.d.ts +0 -19
- package/my_template/node_modules/@types/node/crypto.d.ts +0 -4456
- package/my_template/node_modules/@types/node/dgram.d.ts +0 -586
- package/my_template/node_modules/@types/node/diagnostics_channel.d.ts +0 -191
- package/my_template/node_modules/@types/node/dns/promises.d.ts +0 -425
- package/my_template/node_modules/@types/node/dns.d.ts +0 -809
- package/my_template/node_modules/@types/node/dom-events.d.ts +0 -122
- package/my_template/node_modules/@types/node/domain.d.ts +0 -170
- package/my_template/node_modules/@types/node/events.d.ts +0 -879
- package/my_template/node_modules/@types/node/fs/promises.d.ts +0 -1239
- package/my_template/node_modules/@types/node/fs.d.ts +0 -4291
- package/my_template/node_modules/@types/node/globals.d.ts +0 -385
- package/my_template/node_modules/@types/node/globals.global.d.ts +0 -1
- package/my_template/node_modules/@types/node/http.d.ts +0 -1888
- package/my_template/node_modules/@types/node/http2.d.ts +0 -2382
- package/my_template/node_modules/@types/node/https.d.ts +0 -550
- package/my_template/node_modules/@types/node/index.d.ts +0 -88
- package/my_template/node_modules/@types/node/inspector.d.ts +0 -2747
- package/my_template/node_modules/@types/node/module.d.ts +0 -301
- package/my_template/node_modules/@types/node/net.d.ts +0 -949
- package/my_template/node_modules/@types/node/os.d.ts +0 -478
- package/my_template/node_modules/@types/node/package.json +0 -230
- package/my_template/node_modules/@types/node/path.d.ts +0 -191
- package/my_template/node_modules/@types/node/perf_hooks.d.ts +0 -639
- package/my_template/node_modules/@types/node/process.d.ts +0 -1539
- package/my_template/node_modules/@types/node/punycode.d.ts +0 -117
- package/my_template/node_modules/@types/node/querystring.d.ts +0 -141
- package/my_template/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/my_template/node_modules/@types/node/readline.d.ts +0 -539
- package/my_template/node_modules/@types/node/repl.d.ts +0 -430
- package/my_template/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/my_template/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/my_template/node_modules/@types/node/stream/web.d.ts +0 -350
- package/my_template/node_modules/@types/node/stream.d.ts +0 -1701
- package/my_template/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/my_template/node_modules/@types/node/test.d.ts +0 -1382
- package/my_template/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/my_template/node_modules/@types/node/timers.d.ts +0 -240
- package/my_template/node_modules/@types/node/tls.d.ts +0 -1210
- package/my_template/node_modules/@types/node/trace_events.d.ts +0 -182
- package/my_template/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/my_template/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/my_template/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/my_template/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/my_template/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/my_template/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/my_template/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/my_template/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/my_template/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
- package/my_template/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
- package/my_template/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- package/my_template/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/my_template/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/my_template/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/my_template/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/my_template/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/my_template/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/my_template/node_modules/@types/node/ts4.8/fs.d.ts +0 -4291
- package/my_template/node_modules/@types/node/ts4.8/globals.d.ts +0 -385
- package/my_template/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/my_template/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
- package/my_template/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/my_template/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/my_template/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/my_template/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/my_template/node_modules/@types/node/ts4.8/module.d.ts +0 -301
- package/my_template/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/my_template/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/my_template/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/my_template/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
- package/my_template/node_modules/@types/node/ts4.8/process.d.ts +0 -1539
- package/my_template/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/my_template/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/my_template/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/my_template/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/my_template/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/my_template/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/my_template/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/my_template/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
- package/my_template/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/my_template/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/my_template/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
- package/my_template/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/my_template/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/my_template/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/my_template/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/my_template/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/my_template/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/my_template/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/my_template/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/my_template/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/my_template/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
- package/my_template/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/my_template/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/my_template/node_modules/@types/node/tty.d.ts +0 -208
- package/my_template/node_modules/@types/node/url.d.ts +0 -927
- package/my_template/node_modules/@types/node/util.d.ts +0 -2183
- package/my_template/node_modules/@types/node/v8.d.ts +0 -635
- package/my_template/node_modules/@types/node/vm.d.ts +0 -903
- package/my_template/node_modules/@types/node/wasi.d.ts +0 -158
- package/my_template/node_modules/@types/node/worker_threads.d.ts +0 -691
- package/my_template/node_modules/@types/node/zlib.d.ts +0 -517
- package/my_template/node_modules/@types/resolve/LICENSE +0 -21
- package/my_template/node_modules/@types/resolve/README.md +0 -16
- package/my_template/node_modules/@types/resolve/index.d.ts +0 -113
- package/my_template/node_modules/@types/resolve/package.json +0 -29
- package/my_template/node_modules/acorn/CHANGELOG.md +0 -620
- package/my_template/node_modules/acorn/LICENSE +0 -21
- package/my_template/node_modules/acorn/README.md +0 -269
- package/my_template/node_modules/acorn/bin/acorn +0 -4
- package/my_template/node_modules/acorn/dist/acorn.d.ts +0 -209
- package/my_template/node_modules/acorn/dist/acorn.js +0 -5186
- package/my_template/node_modules/acorn/dist/acorn.js.map +0 -1
- package/my_template/node_modules/acorn/dist/acorn.mjs +0 -5155
- package/my_template/node_modules/acorn/dist/acorn.mjs.d.ts +0 -2
- package/my_template/node_modules/acorn/dist/acorn.mjs.map +0 -1
- package/my_template/node_modules/acorn/dist/bin.js +0 -64
- package/my_template/node_modules/acorn/package.json +0 -35
- package/my_template/node_modules/amdefine/LICENSE +0 -58
- package/my_template/node_modules/amdefine/README.md +0 -171
- package/my_template/node_modules/amdefine/amdefine.js +0 -301
- package/my_template/node_modules/amdefine/intercept.js +0 -36
- package/my_template/node_modules/amdefine/package.json +0 -16
- package/my_template/node_modules/ansi-styles/index.js +0 -165
- package/my_template/node_modules/ansi-styles/license +0 -9
- package/my_template/node_modules/ansi-styles/package.json +0 -56
- package/my_template/node_modules/ansi-styles/readme.md +0 -147
- package/my_template/node_modules/builtin-modules/builtin-modules.json +0 -43
- package/my_template/node_modules/builtin-modules/index.d.ts +0 -14
- package/my_template/node_modules/builtin-modules/index.js +0 -11
- package/my_template/node_modules/builtin-modules/license +0 -9
- package/my_template/node_modules/builtin-modules/package.json +0 -44
- package/my_template/node_modules/builtin-modules/readme.md +0 -44
- package/my_template/node_modules/builtin-modules/static.d.ts +0 -14
- package/my_template/node_modules/builtin-modules/static.js +0 -2
- package/my_template/node_modules/chalk/index.js +0 -228
- package/my_template/node_modules/chalk/index.js.flow +0 -93
- package/my_template/node_modules/chalk/license +0 -9
- package/my_template/node_modules/chalk/package.json +0 -71
- package/my_template/node_modules/chalk/readme.md +0 -314
- package/my_template/node_modules/chalk/templates.js +0 -128
- package/my_template/node_modules/chalk/types/index.d.ts +0 -97
- package/my_template/node_modules/clean-css/History.md +0 -1138
- package/my_template/node_modules/clean-css/LICENSE +0 -19
- package/my_template/node_modules/clean-css/README.md +0 -369
- package/my_template/node_modules/clean-css/bin/cleancss +0 -184
- package/my_template/node_modules/clean-css/index.js +0 -1
- package/my_template/node_modules/clean-css/lib/clean.js +0 -231
- package/my_template/node_modules/clean-css/lib/colors/hex-name-shortener.js +0 -186
- package/my_template/node_modules/clean-css/lib/colors/hsl.js +0 -67
- package/my_template/node_modules/clean-css/lib/colors/rgb.js +0 -16
- package/my_template/node_modules/clean-css/lib/imports/inliner.js +0 -399
- package/my_template/node_modules/clean-css/lib/properties/break-up.js +0 -335
- package/my_template/node_modules/clean-css/lib/properties/can-override.js +0 -142
- package/my_template/node_modules/clean-css/lib/properties/clone.js +0 -26
- package/my_template/node_modules/clean-css/lib/properties/compactable.js +0 -285
- package/my_template/node_modules/clean-css/lib/properties/every-combination.js +0 -28
- package/my_template/node_modules/clean-css/lib/properties/has-inherit.js +0 -10
- package/my_template/node_modules/clean-css/lib/properties/invalid-property-error.js +0 -10
- package/my_template/node_modules/clean-css/lib/properties/optimizer.js +0 -215
- package/my_template/node_modules/clean-css/lib/properties/override-compactor.js +0 -384
- package/my_template/node_modules/clean-css/lib/properties/populate-components.js +0 -32
- package/my_template/node_modules/clean-css/lib/properties/remove-unused.js +0 -10
- package/my_template/node_modules/clean-css/lib/properties/restore-from-optimizing.js +0 -60
- package/my_template/node_modules/clean-css/lib/properties/restore.js +0 -232
- package/my_template/node_modules/clean-css/lib/properties/shorthand-compactor.js +0 -134
- package/my_template/node_modules/clean-css/lib/properties/validator.js +0 -197
- package/my_template/node_modules/clean-css/lib/properties/vendor-prefixes.js +0 -26
- package/my_template/node_modules/clean-css/lib/properties/wrap-for-optimizing.js +0 -118
- package/my_template/node_modules/clean-css/lib/selectors/advanced.js +0 -86
- package/my_template/node_modules/clean-css/lib/selectors/clean-up.js +0 -89
- package/my_template/node_modules/clean-css/lib/selectors/extractor.js +0 -69
- package/my_template/node_modules/clean-css/lib/selectors/is-special.js +0 -5
- package/my_template/node_modules/clean-css/lib/selectors/merge-adjacent.js +0 -35
- package/my_template/node_modules/clean-css/lib/selectors/merge-media-queries.js +0 -64
- package/my_template/node_modules/clean-css/lib/selectors/merge-non-adjacent-by-body.js +0 -61
- package/my_template/node_modules/clean-css/lib/selectors/merge-non-adjacent-by-selector.js +0 -76
- package/my_template/node_modules/clean-css/lib/selectors/reduce-non-adjacent.js +0 -172
- package/my_template/node_modules/clean-css/lib/selectors/remove-duplicate-media-queries.js +0 -21
- package/my_template/node_modules/clean-css/lib/selectors/remove-duplicates.js +0 -41
- package/my_template/node_modules/clean-css/lib/selectors/reorderable.js +0 -99
- package/my_template/node_modules/clean-css/lib/selectors/restructure.js +0 -369
- package/my_template/node_modules/clean-css/lib/selectors/simple.js +0 -454
- package/my_template/node_modules/clean-css/lib/source-maps/track.js +0 -119
- package/my_template/node_modules/clean-css/lib/stringifier/helpers.js +0 -167
- package/my_template/node_modules/clean-css/lib/stringifier/one-time.js +0 -50
- package/my_template/node_modules/clean-css/lib/stringifier/simple.js +0 -22
- package/my_template/node_modules/clean-css/lib/stringifier/source-maps.js +0 -96
- package/my_template/node_modules/clean-css/lib/text/comments-processor.js +0 -131
- package/my_template/node_modules/clean-css/lib/text/escape-store.js +0 -53
- package/my_template/node_modules/clean-css/lib/text/expressions-processor.js +0 -117
- package/my_template/node_modules/clean-css/lib/text/free-text-processor.js +0 -98
- package/my_template/node_modules/clean-css/lib/text/urls-processor.js +0 -75
- package/my_template/node_modules/clean-css/lib/tokenizer/extract-properties.js +0 -193
- package/my_template/node_modules/clean-css/lib/tokenizer/extract-selectors.js +0 -17
- package/my_template/node_modules/clean-css/lib/tokenizer/tokenize.js +0 -297
- package/my_template/node_modules/clean-css/lib/urls/rebase.js +0 -30
- package/my_template/node_modules/clean-css/lib/urls/reduce.js +0 -154
- package/my_template/node_modules/clean-css/lib/urls/rewrite.js +0 -107
- package/my_template/node_modules/clean-css/lib/utils/clone-array.js +0 -12
- package/my_template/node_modules/clean-css/lib/utils/compatibility.js +0 -162
- package/my_template/node_modules/clean-css/lib/utils/input-source-map-tracker.js +0 -284
- package/my_template/node_modules/clean-css/lib/utils/object.js +0 -11
- package/my_template/node_modules/clean-css/lib/utils/quote-scanner.js +0 -119
- package/my_template/node_modules/clean-css/lib/utils/source-reader.js +0 -96
- package/my_template/node_modules/clean-css/lib/utils/source-tracker.js +0 -31
- package/my_template/node_modules/clean-css/lib/utils/split.js +0 -62
- package/my_template/node_modules/clean-css/node_modules/source-map/README.md +0 -510
- package/my_template/node_modules/clean-css/node_modules/source-map/build/assert-shim.js +0 -56
- package/my_template/node_modules/clean-css/node_modules/source-map/build/mini-require.js +0 -152
- package/my_template/node_modules/clean-css/node_modules/source-map/build/prefix-source-map.jsm +0 -21
- package/my_template/node_modules/clean-css/node_modules/source-map/build/prefix-utils.jsm +0 -18
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-browser.js +0 -8
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-source-map.jsm +0 -6
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-utils.jsm +0 -21
- package/my_template/node_modules/clean-css/node_modules/source-map/build/test-prefix.js +0 -8
- package/my_template/node_modules/clean-css/node_modules/source-map/build/test-suffix.js +0 -3
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/array-set.js +0 -107
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/base64-vlq.js +0 -146
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/base64.js +0 -73
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/binary-search.js +0 -117
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/mapping-list.js +0 -86
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/quick-sort.js +0 -120
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -1077
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-map-generator.js +0 -399
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-node.js +0 -414
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/util.js +0 -370
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map.js +0 -8
- package/my_template/node_modules/clean-css/node_modules/source-map/package.json +0 -68
- package/my_template/node_modules/clean-css/package.json +0 -53
- package/my_template/node_modules/color-convert/CHANGELOG.md +0 -54
- package/my_template/node_modules/color-convert/LICENSE +0 -21
- package/my_template/node_modules/color-convert/README.md +0 -68
- package/my_template/node_modules/color-convert/conversions.js +0 -868
- package/my_template/node_modules/color-convert/index.js +0 -78
- package/my_template/node_modules/color-convert/package.json +0 -46
- package/my_template/node_modules/color-convert/route.js +0 -97
- package/my_template/node_modules/color-name/.eslintrc.json +0 -43
- package/my_template/node_modules/color-name/LICENSE +0 -8
- package/my_template/node_modules/color-name/README.md +0 -11
- package/my_template/node_modules/color-name/index.js +0 -152
- package/my_template/node_modules/color-name/package.json +0 -25
- package/my_template/node_modules/color-name/test.js +0 -7
- package/my_template/node_modules/commander/History.md +0 -256
- package/my_template/node_modules/commander/LICENSE +0 -22
- package/my_template/node_modules/commander/Readme.md +0 -342
- package/my_template/node_modules/commander/index.js +0 -1103
- package/my_template/node_modules/commander/package.json +0 -33
- package/my_template/node_modules/copy-anything/LICENSE +0 -21
- package/my_template/node_modules/copy-anything/README.md +0 -130
- package/my_template/node_modules/copy-anything/dist/index.cjs +0 -52
- package/my_template/node_modules/copy-anything/dist/index.es.js +0 -48
- package/my_template/node_modules/copy-anything/dist/types/index.d.ts +0 -15
- package/my_template/node_modules/copy-anything/package.json +0 -98
- package/my_template/node_modules/errno/.jshintrc +0 -59
- package/my_template/node_modules/errno/.travis.yml +0 -19
- package/my_template/node_modules/errno/README.md +0 -145
- package/my_template/node_modules/errno/build.js +0 -43
- package/my_template/node_modules/errno/cli.js +0 -22
- package/my_template/node_modules/errno/custom.js +0 -57
- package/my_template/node_modules/errno/errno.js +0 -313
- package/my_template/node_modules/errno/package.json +0 -33
- package/my_template/node_modules/errno/test.js +0 -88
- package/my_template/node_modules/escape-string-regexp/index.js +0 -11
- package/my_template/node_modules/escape-string-regexp/license +0 -21
- package/my_template/node_modules/escape-string-regexp/package.json +0 -41
- package/my_template/node_modules/escape-string-regexp/readme.md +0 -27
- package/my_template/node_modules/estree-walker/CHANGELOG.md +0 -55
- package/my_template/node_modules/estree-walker/README.md +0 -45
- package/my_template/node_modules/estree-walker/dist/estree-walker.umd.js +0 -65
- package/my_template/node_modules/estree-walker/dist/estree-walker.umd.js.map +0 -1
- package/my_template/node_modules/estree-walker/index.d.ts +0 -27
- package/my_template/node_modules/estree-walker/package.json +0 -30
- package/my_template/node_modules/estree-walker/src/estree-walker.js +0 -51
- package/my_template/node_modules/function-bind/.eslintrc +0 -21
- package/my_template/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/my_template/node_modules/function-bind/.nycrc +0 -13
- package/my_template/node_modules/function-bind/CHANGELOG.md +0 -136
- package/my_template/node_modules/function-bind/LICENSE +0 -20
- package/my_template/node_modules/function-bind/README.md +0 -46
- package/my_template/node_modules/function-bind/implementation.js +0 -84
- package/my_template/node_modules/function-bind/index.js +0 -5
- package/my_template/node_modules/function-bind/package.json +0 -87
- package/my_template/node_modules/function-bind/test/.eslintrc +0 -9
- package/my_template/node_modules/function-bind/test/index.js +0 -252
- package/my_template/node_modules/graceful-fs/LICENSE +0 -15
- package/my_template/node_modules/graceful-fs/README.md +0 -143
- package/my_template/node_modules/graceful-fs/clone.js +0 -23
- package/my_template/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/my_template/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/my_template/node_modules/graceful-fs/package.json +0 -53
- package/my_template/node_modules/graceful-fs/polyfills.js +0 -355
- package/my_template/node_modules/graceful-readlink/.travis.yml +0 -5
- package/my_template/node_modules/graceful-readlink/LICENSE +0 -22
- package/my_template/node_modules/graceful-readlink/README.md +0 -17
- package/my_template/node_modules/graceful-readlink/index.js +0 -12
- package/my_template/node_modules/graceful-readlink/package.json +0 -18
- package/my_template/node_modules/has-flag/index.js +0 -8
- package/my_template/node_modules/has-flag/license +0 -9
- package/my_template/node_modules/has-flag/package.json +0 -44
- package/my_template/node_modules/has-flag/readme.md +0 -70
- package/my_template/node_modules/hasown/.eslintrc +0 -5
- package/my_template/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/hasown/.nycrc +0 -13
- package/my_template/node_modules/hasown/CHANGELOG.md +0 -20
- package/my_template/node_modules/hasown/LICENSE +0 -21
- package/my_template/node_modules/hasown/README.md +0 -40
- package/my_template/node_modules/hasown/index.d.ts +0 -3
- package/my_template/node_modules/hasown/index.d.ts.map +0 -1
- package/my_template/node_modules/hasown/index.js +0 -8
- package/my_template/node_modules/hasown/package.json +0 -91
- package/my_template/node_modules/hasown/tsconfig.json +0 -49
- package/my_template/node_modules/image-size/LICENSE +0 -9
- package/my_template/node_modules/image-size/Readme.md +0 -88
- package/my_template/node_modules/image-size/bin/image-size.js +0 -36
- package/my_template/node_modules/image-size/lib/detector.js +0 -19
- package/my_template/node_modules/image-size/lib/index.js +0 -105
- package/my_template/node_modules/image-size/lib/readUInt.js +0 -11
- package/my_template/node_modules/image-size/lib/types/bmp.js +0 -17
- package/my_template/node_modules/image-size/lib/types/dds.js +0 -18
- package/my_template/node_modules/image-size/lib/types/gif.js +0 -19
- package/my_template/node_modules/image-size/lib/types/jpg.js +0 -62
- package/my_template/node_modules/image-size/lib/types/png.js +0 -36
- package/my_template/node_modules/image-size/lib/types/psd.js +0 -17
- package/my_template/node_modules/image-size/lib/types/svg.js +0 -78
- package/my_template/node_modules/image-size/lib/types/tiff.js +0 -118
- package/my_template/node_modules/image-size/lib/types/webp.js +0 -69
- package/my_template/node_modules/image-size/lib/types.js +0 -13
- package/my_template/node_modules/image-size/package.json +0 -49
- package/my_template/node_modules/is-core-module/.eslintrc +0 -18
- package/my_template/node_modules/is-core-module/.nycrc +0 -9
- package/my_template/node_modules/is-core-module/CHANGELOG.md +0 -180
- package/my_template/node_modules/is-core-module/LICENSE +0 -20
- package/my_template/node_modules/is-core-module/README.md +0 -40
- package/my_template/node_modules/is-core-module/core.json +0 -158
- package/my_template/node_modules/is-core-module/index.js +0 -69
- package/my_template/node_modules/is-core-module/package.json +0 -73
- package/my_template/node_modules/is-core-module/test/index.js +0 -133
- package/my_template/node_modules/is-module/README.md +0 -41
- package/my_template/node_modules/is-module/component.json +0 -11
- package/my_template/node_modules/is-module/index.js +0 -11
- package/my_template/node_modules/is-module/package.json +0 -20
- package/my_template/node_modules/is-what/.babelrc +0 -3
- package/my_template/node_modules/is-what/.eslintignore +0 -9
- package/my_template/node_modules/is-what/.eslintrc.js +0 -18
- package/my_template/node_modules/is-what/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/is-what/.prettierrc +0 -9
- package/my_template/node_modules/is-what/.vscode/settings.json +0 -9
- package/my_template/node_modules/is-what/LICENSE +0 -21
- package/my_template/node_modules/is-what/README.md +0 -191
- package/my_template/node_modules/is-what/build.js +0 -60
- package/my_template/node_modules/is-what/dist/index.cjs.js +0 -364
- package/my_template/node_modules/is-what/dist/index.esm.js +0 -327
- package/my_template/node_modules/is-what/package.json +0 -86
- package/my_template/node_modules/is-what/src/index.ts +0 -395
- package/my_template/node_modules/is-what/test/ava.ts +0 -376
- package/my_template/node_modules/is-what/test/index.test.js +0 -15
- package/my_template/node_modules/is-what/tsconfig.json +0 -11
- package/my_template/node_modules/is-what/types/index.d.ts +0 -253
- package/my_template/node_modules/jest-worker/LICENSE +0 -21
- package/my_template/node_modules/jest-worker/README.md +0 -215
- package/my_template/node_modules/jest-worker/build/Farm.d.ts +0 -27
- package/my_template/node_modules/jest-worker/build/Farm.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/Farm.js +0 -179
- package/my_template/node_modules/jest-worker/build/WorkerPool.d.ts +0 -14
- package/my_template/node_modules/jest-worker/build/WorkerPool.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/WorkerPool.js +0 -49
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +0 -22
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.js +0 -134
- package/my_template/node_modules/jest-worker/build/index.d.ts +0 -46
- package/my_template/node_modules/jest-worker/build/index.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/index.js +0 -184
- package/my_template/node_modules/jest-worker/build/types.d.ts +0 -98
- package/my_template/node_modules/jest-worker/build/types.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/types.js +0 -43
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +0 -47
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.js +0 -310
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +0 -29
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +0 -289
- package/my_template/node_modules/jest-worker/build/workers/processChild.d.ts +0 -8
- package/my_template/node_modules/jest-worker/build/workers/processChild.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/processChild.js +0 -166
- package/my_template/node_modules/jest-worker/build/workers/threadChild.d.ts +0 -8
- package/my_template/node_modules/jest-worker/build/workers/threadChild.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/threadChild.js +0 -176
- package/my_template/node_modules/jest-worker/node_modules/supports-color/browser.js +0 -5
- package/my_template/node_modules/jest-worker/node_modules/supports-color/index.js +0 -138
- package/my_template/node_modules/jest-worker/node_modules/supports-color/license +0 -9
- package/my_template/node_modules/jest-worker/node_modules/supports-color/package.json +0 -53
- package/my_template/node_modules/jest-worker/node_modules/supports-color/readme.md +0 -85
- package/my_template/node_modules/jest-worker/package.json +0 -29
- package/my_template/node_modules/js-tokens/CHANGELOG.md +0 -151
- package/my_template/node_modules/js-tokens/LICENSE +0 -21
- package/my_template/node_modules/js-tokens/README.md +0 -240
- package/my_template/node_modules/js-tokens/index.js +0 -23
- package/my_template/node_modules/js-tokens/package.json +0 -30
- package/my_template/node_modules/less/.eslintignore +0 -5
- package/my_template/node_modules/less/.eslintrc.json +0 -3
- package/my_template/node_modules/less/Gruntfile.js +0 -420
- package/my_template/node_modules/less/README.md +0 -13
- package/my_template/node_modules/less/bin/lessc +0 -633
- package/my_template/node_modules/less/bower.json +0 -22
- package/my_template/node_modules/less/dist/less.js +0 -11275
- package/my_template/node_modules/less/dist/less.min.js +0 -11
- package/my_template/node_modules/less/dist/less.min.js.map +0 -1
- package/my_template/node_modules/less/index.js +0 -1
- package/my_template/node_modules/less/lib/less/constants.js +0 -15
- package/my_template/node_modules/less/lib/less/constants.js.map +0 -1
- package/my_template/node_modules/less/lib/less/contexts.js +0 -171
- package/my_template/node_modules/less/lib/less/contexts.js.map +0 -1
- package/my_template/node_modules/less/lib/less/data/colors.js +0 -153
- package/my_template/node_modules/less/lib/less/data/colors.js.map +0 -1
- package/my_template/node_modules/less/lib/less/data/index.js +0 -9
- package/my_template/node_modules/less/lib/less/data/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/data/unit-conversions.js +0 -24
- package/my_template/node_modules/less/lib/less/data/unit-conversions.js.map +0 -1
- package/my_template/node_modules/less/lib/less/default-options.js +0 -57
- package/my_template/node_modules/less/lib/less/default-options.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/abstract-file-manager.js +0 -122
- package/my_template/node_modules/less/lib/less/environment/abstract-file-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/abstract-plugin-loader.js +0 -168
- package/my_template/node_modules/less/lib/less/environment/abstract-plugin-loader.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/environment-api.js +0 -28
- package/my_template/node_modules/less/lib/less/environment/environment-api.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/environment.js +0 -57
- package/my_template/node_modules/less/lib/less/environment/environment.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/file-manager-api.js +0 -106
- package/my_template/node_modules/less/lib/less/environment/file-manager-api.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/boolean.js +0 -21
- package/my_template/node_modules/less/lib/less/functions/boolean.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/color-blending.js +0 -78
- package/my_template/node_modules/less/lib/less/functions/color-blending.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/color.js +0 -404
- package/my_template/node_modules/less/lib/less/functions/color.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/data-uri.js +0 -86
- package/my_template/node_modules/less/lib/less/functions/data-uri.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/default.js +0 -29
- package/my_template/node_modules/less/lib/less/functions/default.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/function-caller.js +0 -66
- package/my_template/node_modules/less/lib/less/functions/function-caller.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/function-registry.js +0 -36
- package/my_template/node_modules/less/lib/less/functions/function-registry.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/index.js +0 -35
- package/my_template/node_modules/less/lib/less/functions/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/list.js +0 -136
- package/my_template/node_modules/less/lib/less/functions/list.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/math-helper.js +0 -20
- package/my_template/node_modules/less/lib/less/functions/math-helper.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/math.js +0 -30
- package/my_template/node_modules/less/lib/less/functions/math.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/number.js +0 -98
- package/my_template/node_modules/less/lib/less/functions/number.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/string.js +0 -42
- package/my_template/node_modules/less/lib/less/functions/string.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/svg.js +0 -88
- package/my_template/node_modules/less/lib/less/functions/svg.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/types.js +0 -75
- package/my_template/node_modules/less/lib/less/functions/types.js.map +0 -1
- package/my_template/node_modules/less/lib/less/import-manager.js +0 -196
- package/my_template/node_modules/less/lib/less/import-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less/index.js +0 -130
- package/my_template/node_modules/less/lib/less/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/less-error.js +0 -162
- package/my_template/node_modules/less/lib/less/less-error.js.map +0 -1
- package/my_template/node_modules/less/lib/less/logger.js +0 -37
- package/my_template/node_modules/less/lib/less/logger.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parse-tree.js +0 -69
- package/my_template/node_modules/less/lib/less/parse-tree.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parse.js +0 -108
- package/my_template/node_modules/less/lib/less/parse.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parser/chunker.js +0 -147
- package/my_template/node_modules/less/lib/less/parser/chunker.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parser/parser-input.js +0 -355
- package/my_template/node_modules/less/lib/less/parser/parser-input.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parser/parser.js +0 -2262
- package/my_template/node_modules/less/lib/less/parser/parser.js.map +0 -1
- package/my_template/node_modules/less/lib/less/plugin-manager.js +0 -158
- package/my_template/node_modules/less/lib/less/plugin-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less/render.js +0 -64
- package/my_template/node_modules/less/lib/less/render.js.map +0 -1
- package/my_template/node_modules/less/lib/less/source-map-builder.js +0 -72
- package/my_template/node_modules/less/lib/less/source-map-builder.js.map +0 -1
- package/my_template/node_modules/less/lib/less/source-map-output.js +0 -140
- package/my_template/node_modules/less/lib/less/source-map-output.js.map +0 -1
- package/my_template/node_modules/less/lib/less/transform-tree.js +0 -93
- package/my_template/node_modules/less/lib/less/transform-tree.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/anonymous.js +0 -34
- package/my_template/node_modules/less/lib/less/tree/anonymous.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/assignment.js +0 -32
- package/my_template/node_modules/less/lib/less/tree/assignment.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/atrule.js +0 -146
- package/my_template/node_modules/less/lib/less/tree/atrule.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/attribute.js +0 -29
- package/my_template/node_modules/less/lib/less/tree/attribute.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/call.js +0 -104
- package/my_template/node_modules/less/lib/less/tree/call.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/color.js +0 -243
- package/my_template/node_modules/less/lib/less/tree/color.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/combinator.js +0 -29
- package/my_template/node_modules/less/lib/less/tree/combinator.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/comment.js +0 -28
- package/my_template/node_modules/less/lib/less/tree/comment.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/condition.js +0 -41
- package/my_template/node_modules/less/lib/less/tree/condition.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/debug-info.js +0 -37
- package/my_template/node_modules/less/lib/less/tree/debug-info.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/declaration.js +0 -118
- package/my_template/node_modules/less/lib/less/tree/declaration.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/detached-ruleset.js +0 -47
- package/my_template/node_modules/less/lib/less/tree/detached-ruleset.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/dimension.js +0 -159
- package/my_template/node_modules/less/lib/less/tree/dimension.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/element.js +0 -64
- package/my_template/node_modules/less/lib/less/tree/element.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/expression.js +0 -90
- package/my_template/node_modules/less/lib/less/tree/expression.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/extend.js +0 -62
- package/my_template/node_modules/less/lib/less/tree/extend.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/import.js +0 -191
- package/my_template/node_modules/less/lib/less/tree/import.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/index.js +0 -56
- package/my_template/node_modules/less/lib/less/tree/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/javascript.js +0 -35
- package/my_template/node_modules/less/lib/less/tree/javascript.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/js-eval-node.js +0 -57
- package/my_template/node_modules/less/lib/less/tree/js-eval-node.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/keyword.js +0 -21
- package/my_template/node_modules/less/lib/less/tree/keyword.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/media.js +0 -152
- package/my_template/node_modules/less/lib/less/tree/media.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/mixin-call.js +0 -194
- package/my_template/node_modules/less/lib/less/tree/mixin-call.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/mixin-definition.js +0 -233
- package/my_template/node_modules/less/lib/less/tree/mixin-definition.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/namespace-value.js +0 -76
- package/my_template/node_modules/less/lib/less/tree/namespace-value.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/negative.js +0 -25
- package/my_template/node_modules/less/lib/less/tree/negative.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/node.js +0 -166
- package/my_template/node_modules/less/lib/less/tree/node.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/operation.js +0 -77
- package/my_template/node_modules/less/lib/less/tree/operation.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/paren.js +0 -21
- package/my_template/node_modules/less/lib/less/tree/paren.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/property.js +0 -62
- package/my_template/node_modules/less/lib/less/tree/property.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/quoted.js +0 -66
- package/my_template/node_modules/less/lib/less/tree/quoted.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/ruleset.js +0 -786
- package/my_template/node_modules/less/lib/less/tree/ruleset.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/selector.js +0 -126
- package/my_template/node_modules/less/lib/less/tree/selector.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/unicode-descriptor.js +0 -13
- package/my_template/node_modules/less/lib/less/tree/unicode-descriptor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/unit.js +0 -141
- package/my_template/node_modules/less/lib/less/tree/unit.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/url.js +0 -60
- package/my_template/node_modules/less/lib/less/tree/url.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/value.js +0 -43
- package/my_template/node_modules/less/lib/less/tree/value.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/variable-call.js +0 -44
- package/my_template/node_modules/less/lib/less/tree/variable-call.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/variable.js +0 -61
- package/my_template/node_modules/less/lib/less/tree/variable.js.map +0 -1
- package/my_template/node_modules/less/lib/less/utils.js +0 -143
- package/my_template/node_modules/less/lib/less/utils.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/extend-visitor.js +0 -462
- package/my_template/node_modules/less/lib/less/visitors/extend-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/import-sequencer.js +0 -61
- package/my_template/node_modules/less/lib/less/visitors/import-sequencer.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/import-visitor.js +0 -202
- package/my_template/node_modules/less/lib/less/visitors/import-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/index.js +0 -20
- package/my_template/node_modules/less/lib/less/visitors/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/join-selector-visitor.js +0 -57
- package/my_template/node_modules/less/lib/less/visitors/join-selector-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/set-tree-visibility-visitor.js +0 -43
- package/my_template/node_modules/less/lib/less/visitors/set-tree-visibility-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/to-css-visitor.js +0 -321
- package/my_template/node_modules/less/lib/less/visitors/to-css-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/visitor.js +0 -158
- package/my_template/node_modules/less/lib/less/visitors/visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/add-default-options.js +0 -45
- package/my_template/node_modules/less/lib/less-browser/add-default-options.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/bootstrap.js +0 -64
- package/my_template/node_modules/less/lib/less-browser/bootstrap.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/browser.js +0 -80
- package/my_template/node_modules/less/lib/less-browser/browser.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/cache.js +0 -45
- package/my_template/node_modules/less/lib/less-browser/cache.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/error-reporting.js +0 -183
- package/my_template/node_modules/less/lib/less-browser/error-reporting.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/file-manager.js +0 -122
- package/my_template/node_modules/less/lib/less-browser/file-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/image-size.js +0 -30
- package/my_template/node_modules/less/lib/less-browser/image-size.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/index.js +0 -256
- package/my_template/node_modules/less/lib/less-browser/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/log-listener.js +0 -43
- package/my_template/node_modules/less/lib/less-browser/log-listener.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/plugin-loader.js +0 -42
- package/my_template/node_modules/less/lib/less-browser/plugin-loader.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/utils.js +0 -29
- package/my_template/node_modules/less/lib/less-browser/utils.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/environment.js +0 -19
- package/my_template/node_modules/less/lib/less-node/environment.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/file-manager.js +0 -158
- package/my_template/node_modules/less/lib/less-node/file-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/fs.js +0 -11
- package/my_template/node_modules/less/lib/less-node/fs.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/image-size.js +0 -54
- package/my_template/node_modules/less/lib/less-node/image-size.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/index.js +0 -28
- package/my_template/node_modules/less/lib/less-node/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/lessc-helper.js +0 -92
- package/my_template/node_modules/less/lib/less-node/lessc-helper.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/plugin-loader.js +0 -73
- package/my_template/node_modules/less/lib/less-node/plugin-loader.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/url-file-manager.js +0 -68
- package/my_template/node_modules/less/lib/less-node/url-file-manager.js.map +0 -1
- package/my_template/node_modules/less/package.json +0 -133
- package/my_template/node_modules/less/test/.eslintrc.json +0 -9
- package/my_template/node_modules/less/test/README.md +0 -3
- package/my_template/node_modules/less/test/browser/common.js +0 -230
- package/my_template/node_modules/less/test/browser/css/global-vars/simple.css +0 -3
- package/my_template/node_modules/less/test/browser/css/modify-vars/simple.css +0 -8
- package/my_template/node_modules/less/test/browser/css/plugin/plugin.css +0 -3
- package/my_template/node_modules/less/test/browser/css/postProcessor/postProcessor.css +0 -4
- package/my_template/node_modules/less/test/browser/css/relative-urls/urls.css +0 -36
- package/my_template/node_modules/less/test/browser/css/rewrite-urls/urls.css +0 -36
- package/my_template/node_modules/less/test/browser/css/rootpath/urls.css +0 -35
- package/my_template/node_modules/less/test/browser/css/rootpath-relative/urls.css +0 -35
- package/my_template/node_modules/less/test/browser/css/rootpath-rewrite-urls/urls.css +0 -35
- package/my_template/node_modules/less/test/browser/css/urls.css +0 -54
- package/my_template/node_modules/less/test/browser/generator/benchmark.config.js +0 -50
- package/my_template/node_modules/less/test/browser/generator/generate.js +0 -78
- package/my_template/node_modules/less/test/browser/generator/runner.config.js +0 -186
- package/my_template/node_modules/less/test/browser/generator/runner.js +0 -2
- package/my_template/node_modules/less/test/browser/generator/template.js +0 -83
- package/my_template/node_modules/less/test/browser/less/console-errors/test-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/console-errors/test-error.txt +0 -2
- package/my_template/node_modules/less/test/browser/less/errors/image-height-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/errors/image-height-error.txt +0 -4
- package/my_template/node_modules/less/test/browser/less/errors/image-size-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/errors/image-size-error.txt +0 -4
- package/my_template/node_modules/less/test/browser/less/errors/image-width-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/errors/image-width-error.txt +0 -4
- package/my_template/node_modules/less/test/browser/less/global-vars/simple.less +0 -3
- package/my_template/node_modules/less/test/browser/less/imports/urls.less +0 -4
- package/my_template/node_modules/less/test/browser/less/imports/urls2.less +0 -4
- package/my_template/node_modules/less/test/browser/less/modify-vars/imports/simple2.less +0 -4
- package/my_template/node_modules/less/test/browser/less/modify-vars/simple.less +0 -8
- package/my_template/node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/mixin-consumer.less +0 -5
- package/my_template/node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less +0 -15
- package/my_template/node_modules/less/test/browser/less/plugin/plugin.js +0 -4
- package/my_template/node_modules/less/test/browser/less/plugin/plugin.less +0 -4
- package/my_template/node_modules/less/test/browser/less/postProcessor/postProcessor.less +0 -4
- package/my_template/node_modules/less/test/browser/less/relative-urls/urls.less +0 -34
- package/my_template/node_modules/less/test/browser/less/rewrite-urls/urls.less +0 -34
- package/my_template/node_modules/less/test/browser/less/rootpath/urls.less +0 -33
- package/my_template/node_modules/less/test/browser/less/rootpath-relative/urls.less +0 -33
- package/my_template/node_modules/less/test/browser/less/rootpath-rewrite-urls/urls.less +0 -33
- package/my_template/node_modules/less/test/browser/less/urls.less +0 -62
- package/my_template/node_modules/less/test/browser/runner-VisitorPlugin-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-VisitorPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-browser-options.js +0 -51
- package/my_template/node_modules/less/test/browser/runner-browser-spec.js +0 -12
- package/my_template/node_modules/less/test/browser/runner-console-errors.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-errors-options.js +0 -6
- package/my_template/node_modules/less/test/browser/runner-errors-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-filemanagerPlugin-options.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-filemanagerPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-global-vars-options.js +0 -7
- package/my_template/node_modules/less/test/browser/runner-global-vars-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-legacy-options.js +0 -6
- package/my_template/node_modules/less/test/browser/runner-legacy-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-main-options.js +0 -17
- package/my_template/node_modules/less/test/browser/runner-main-spec.js +0 -7
- package/my_template/node_modules/less/test/browser/runner-modify-vars-options.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-modify-vars-spec.js +0 -33
- package/my_template/node_modules/less/test/browser/runner-no-js-errors-options.js +0 -4
- package/my_template/node_modules/less/test/browser/runner-no-js-errors-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-postProcessorPlugin-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-postProcessorPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-preProcessorPlugin-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-preProcessorPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-production-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-production-spec.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-relative-urls-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-relative-urls-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rewrite-urls-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rewrite-urls-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-relative-options.js +0 -4
- package/my_template/node_modules/less/test/browser/runner-rootpath-relative-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-rewrite-urls-options.js +0 -4
- package/my_template/node_modules/less/test/browser/runner-rootpath-rewrite-urls-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-strict-units-options.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-strict-units-spec.js +0 -3
- package/my_template/node_modules/less/test/index.js +0 -89
- package/my_template/node_modules/less/test/less-test.js +0 -535
- package/my_template/node_modules/less/test/modify-vars.js +0 -28
- package/my_template/node_modules/less/test/plugins/filemanager/index.js +0 -19
- package/my_template/node_modules/less/test/plugins/postprocess/index.js +0 -14
- package/my_template/node_modules/less/test/plugins/preprocess/index.js +0 -19
- package/my_template/node_modules/less/test/plugins/visitor/index.js +0 -24
- package/my_template/node_modules/less/test/sourcemaps/basic.json +0 -1
- package/my_template/node_modules/less/test/sourcemaps/custom-props.json +0 -1
- package/my_template/node_modules/less/test/sourcemaps/index.html +0 -17
- package/my_template/node_modules/less/test/sourcemaps-disable-annotation/basic.json +0 -1
- package/my_template/node_modules/less/test/test-es6.ts +0 -17
- package/my_template/node_modules/less/tsconfig.json +0 -13
- package/my_template/node_modules/less-plugin-clean-css/LICENSE +0 -201
- package/my_template/node_modules/less-plugin-clean-css/README.md +0 -33
- package/my_template/node_modules/less-plugin-clean-css/lib/clean-css-processor.js +0 -63
- package/my_template/node_modules/less-plugin-clean-css/lib/index.js +0 -23
- package/my_template/node_modules/less-plugin-clean-css/lib/parse-options.js +0 -61
- package/my_template/node_modules/less-plugin-clean-css/lib/usage.js +0 -19
- package/my_template/node_modules/less-plugin-clean-css/package.json +0 -39
- package/my_template/node_modules/make-dir/index.d.ts +0 -39
- package/my_template/node_modules/make-dir/index.js +0 -139
- package/my_template/node_modules/make-dir/license +0 -9
- package/my_template/node_modules/make-dir/package.json +0 -59
- package/my_template/node_modules/make-dir/readme.md +0 -123
- package/my_template/node_modules/merge-stream/LICENSE +0 -21
- package/my_template/node_modules/merge-stream/README.md +0 -78
- package/my_template/node_modules/merge-stream/index.js +0 -41
- package/my_template/node_modules/merge-stream/package.json +0 -19
- package/my_template/node_modules/mime/CHANGELOG.md +0 -164
- package/my_template/node_modules/mime/LICENSE +0 -21
- package/my_template/node_modules/mime/README.md +0 -90
- package/my_template/node_modules/mime/cli.js +0 -8
- package/my_template/node_modules/mime/mime.js +0 -108
- package/my_template/node_modules/mime/package.json +0 -44
- package/my_template/node_modules/mime/src/build.js +0 -53
- package/my_template/node_modules/mime/src/test.js +0 -60
- package/my_template/node_modules/mime/types.json +0 -1
- package/my_template/node_modules/native-request/README.md +0 -184
- package/my_template/node_modules/native-request/commons/jsonToParameter.js +0 -14
- package/my_template/node_modules/native-request/index.js +0 -65
- package/my_template/node_modules/native-request/lib/Request.js +0 -144
- package/my_template/node_modules/native-request/package.json +0 -45
- package/my_template/node_modules/native-request/test/express.get.cookies.js +0 -58
- package/my_template/node_modules/native-request/test/express.get.js +0 -146
- package/my_template/node_modules/native-request/test/express.post.cookies.js +0 -59
- package/my_template/node_modules/native-request/test/express.post.js +0 -148
- package/my_template/node_modules/native-request/test/get.cookies.js +0 -72
- package/my_template/node_modules/native-request/test/get.js +0 -140
- package/my_template/node_modules/native-request/test/post.cookies.js +0 -72
- package/my_template/node_modules/native-request/test/post.js +0 -155
- package/my_template/node_modules/path-parse/LICENSE +0 -21
- package/my_template/node_modules/path-parse/README.md +0 -42
- package/my_template/node_modules/path-parse/index.js +0 -75
- package/my_template/node_modules/path-parse/package.json +0 -33
- package/my_template/node_modules/pify/index.js +0 -68
- package/my_template/node_modules/pify/license +0 -9
- package/my_template/node_modules/pify/package.json +0 -51
- package/my_template/node_modules/pify/readme.md +0 -145
- package/my_template/node_modules/prr/.jshintrc +0 -61
- package/my_template/node_modules/prr/.travis.yml +0 -10
- package/my_template/node_modules/prr/LICENSE.md +0 -11
- package/my_template/node_modules/prr/README.md +0 -47
- package/my_template/node_modules/prr/package.json +0 -26
- package/my_template/node_modules/prr/prr.js +0 -63
- package/my_template/node_modules/prr/test.js +0 -169
- package/my_template/node_modules/resolve/.editorconfig +0 -37
- package/my_template/node_modules/resolve/.eslintrc +0 -65
- package/my_template/node_modules/resolve/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/resolve/LICENSE +0 -21
- package/my_template/node_modules/resolve/SECURITY.md +0 -3
- package/my_template/node_modules/resolve/async.js +0 -3
- package/my_template/node_modules/resolve/bin/resolve +0 -50
- package/my_template/node_modules/resolve/example/async.js +0 -5
- package/my_template/node_modules/resolve/example/sync.js +0 -3
- package/my_template/node_modules/resolve/index.js +0 -6
- package/my_template/node_modules/resolve/lib/async.js +0 -329
- package/my_template/node_modules/resolve/lib/caller.js +0 -8
- package/my_template/node_modules/resolve/lib/core.js +0 -12
- package/my_template/node_modules/resolve/lib/core.json +0 -158
- package/my_template/node_modules/resolve/lib/homedir.js +0 -24
- package/my_template/node_modules/resolve/lib/is-core.js +0 -5
- package/my_template/node_modules/resolve/lib/node-modules-paths.js +0 -42
- package/my_template/node_modules/resolve/lib/normalize-options.js +0 -10
- package/my_template/node_modules/resolve/lib/sync.js +0 -208
- package/my_template/node_modules/resolve/package.json +0 -72
- package/my_template/node_modules/resolve/readme.markdown +0 -301
- package/my_template/node_modules/resolve/sync.js +0 -3
- package/my_template/node_modules/resolve/test/core.js +0 -88
- package/my_template/node_modules/resolve/test/dotdot/abc/index.js +0 -2
- package/my_template/node_modules/resolve/test/dotdot/index.js +0 -1
- package/my_template/node_modules/resolve/test/dotdot.js +0 -29
- package/my_template/node_modules/resolve/test/faulty_basedir.js +0 -29
- package/my_template/node_modules/resolve/test/filter.js +0 -34
- package/my_template/node_modules/resolve/test/filter_sync.js +0 -33
- package/my_template/node_modules/resolve/test/home_paths.js +0 -127
- package/my_template/node_modules/resolve/test/home_paths_sync.js +0 -114
- package/my_template/node_modules/resolve/test/mock.js +0 -315
- package/my_template/node_modules/resolve/test/mock_sync.js +0 -214
- package/my_template/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
- package/my_template/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
- package/my_template/node_modules/resolve/test/module_dir.js +0 -56
- package/my_template/node_modules/resolve/test/node-modules-paths.js +0 -143
- package/my_template/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path.js +0 -70
- package/my_template/node_modules/resolve/test/nonstring.js +0 -9
- package/my_template/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/my_template/node_modules/resolve/test/pathfilter.js +0 -75
- package/my_template/node_modules/resolve/test/precedence/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/aaa/main.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/aaa.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/bbb/main.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/bbb.js +0 -1
- package/my_template/node_modules/resolve/test/precedence.js +0 -23
- package/my_template/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/baz/package.json +0 -4
- package/my_template/node_modules/resolve/test/resolver/baz/quux.js +0 -1
- 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 +0 -5
- package/my_template/node_modules/resolve/test/resolver/cup.coffee +0 -1
- package/my_template/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
- 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 +0 -4
- package/my_template/node_modules/resolve/test/resolver/foo.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
- package/my_template/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
- 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 +0 -6
- package/my_template/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
- 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 +0 -14
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
- 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 +0 -1
- package/my_template/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
- 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 +0 -1
- package/my_template/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
- package/my_template/node_modules/resolve/test/resolver.js +0 -597
- package/my_template/node_modules/resolve/test/resolver_sync.js +0 -730
- 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 +0 -54
- package/my_template/node_modules/resolve/test/subdirs.js +0 -13
- package/my_template/node_modules/resolve/test/symlinks.js +0 -176
- package/my_template/node_modules/rollup/CHANGELOG.md +0 -3084
- package/my_template/node_modules/rollup/LICENSE.md +0 -578
- package/my_template/node_modules/rollup/README.md +0 -138
- package/my_template/node_modules/rollup/dist/bin/rollup +0 -1457
- package/my_template/node_modules/rollup/dist/rollup.browser.es.js +0 -25
- package/my_template/node_modules/rollup/dist/rollup.browser.js +0 -26
- package/my_template/node_modules/rollup/dist/rollup.d.ts +0 -656
- package/my_template/node_modules/rollup/dist/rollup.es.js +0 -17493
- package/my_template/node_modules/rollup/dist/rollup.js +0 -29
- package/my_template/node_modules/rollup/dist/shared/index.js +0 -321
- package/my_template/node_modules/rollup/dist/shared/node-entry.js +0 -17504
- package/my_template/node_modules/rollup/package.json +0 -139
- package/my_template/node_modules/rollup-plugin-node-resolve/CHANGELOG.md +0 -195
- package/my_template/node_modules/rollup-plugin-node-resolve/README.md +0 -135
- package/my_template/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs.js +0 -425
- package/my_template/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es.js +0 -421
- package/my_template/node_modules/rollup-plugin-node-resolve/index.d.ts +0 -100
- package/my_template/node_modules/rollup-plugin-node-resolve/package.json +0 -60
- package/my_template/node_modules/rollup-plugin-node-resolve/src/index.js +0 -358
- package/my_template/node_modules/rollup-plugin-uglify/LICENSE +0 -20
- package/my_template/node_modules/rollup-plugin-uglify/README.md +0 -84
- package/my_template/node_modules/rollup-plugin-uglify/index.js +0 -51
- package/my_template/node_modules/rollup-plugin-uglify/package.json +0 -43
- package/my_template/node_modules/rollup-plugin-uglify/transform.js +0 -13
- package/my_template/node_modules/rollup-pluginutils/CHANGELOG.md +0 -125
- package/my_template/node_modules/rollup-pluginutils/README.md +0 -169
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +0 -3292
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.d.ts +0 -39
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.es.js +0 -3280
- package/my_template/node_modules/rollup-pluginutils/package.json +0 -57
- package/my_template/node_modules/rollup-pluginutils/src/addExtension.ts +0 -9
- package/my_template/node_modules/rollup-pluginutils/src/attachScopes.ts +0 -125
- package/my_template/node_modules/rollup-pluginutils/src/createFilter.ts +0 -52
- package/my_template/node_modules/rollup-pluginutils/src/dataToEsm.ts +0 -92
- package/my_template/node_modules/rollup-pluginutils/src/extractAssignedNames.ts +0 -46
- package/my_template/node_modules/rollup-pluginutils/src/index.ts +0 -6
- package/my_template/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts +0 -21
- package/my_template/node_modules/rollup-pluginutils/src/pluginutils.d.ts +0 -39
- package/my_template/node_modules/rollup-pluginutils/src/utils/ensureArray.ts +0 -5
- package/my_template/node_modules/semver/LICENSE +0 -15
- package/my_template/node_modules/semver/README.md +0 -412
- package/my_template/node_modules/semver/bin/semver +0 -160
- package/my_template/node_modules/semver/package.json +0 -38
- package/my_template/node_modules/semver/range.bnf +0 -16
- package/my_template/node_modules/semver/semver.js +0 -1525
- package/my_template/node_modules/serialize-javascript/LICENSE +0 -27
- package/my_template/node_modules/serialize-javascript/README.md +0 -143
- package/my_template/node_modules/serialize-javascript/index.js +0 -210
- package/my_template/node_modules/serialize-javascript/package.json +0 -33
- package/my_template/node_modules/source-map/CHANGELOG.md +0 -301
- package/my_template/node_modules/source-map/LICENSE +0 -28
- package/my_template/node_modules/source-map/README.md +0 -742
- package/my_template/node_modules/source-map/dist/source-map.debug.js +0 -3234
- package/my_template/node_modules/source-map/dist/source-map.js +0 -3233
- package/my_template/node_modules/source-map/dist/source-map.min.js +0 -2
- package/my_template/node_modules/source-map/dist/source-map.min.js.map +0 -1
- package/my_template/node_modules/source-map/lib/array-set.js +0 -121
- package/my_template/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/my_template/node_modules/source-map/lib/base64.js +0 -67
- package/my_template/node_modules/source-map/lib/binary-search.js +0 -111
- package/my_template/node_modules/source-map/lib/mapping-list.js +0 -79
- package/my_template/node_modules/source-map/lib/quick-sort.js +0 -114
- package/my_template/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/my_template/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/my_template/node_modules/source-map/lib/source-node.js +0 -413
- package/my_template/node_modules/source-map/lib/util.js +0 -488
- package/my_template/node_modules/source-map/package.json +0 -73
- package/my_template/node_modules/source-map/source-map.d.ts +0 -98
- package/my_template/node_modules/source-map/source-map.js +0 -8
- package/my_template/node_modules/supports-color/browser.js +0 -5
- package/my_template/node_modules/supports-color/index.js +0 -131
- package/my_template/node_modules/supports-color/license +0 -9
- package/my_template/node_modules/supports-color/package.json +0 -53
- package/my_template/node_modules/supports-color/readme.md +0 -66
- package/my_template/node_modules/supports-preserve-symlinks-flag/.eslintrc +0 -14
- package/my_template/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/supports-preserve-symlinks-flag/.nycrc +0 -9
- package/my_template/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +0 -22
- package/my_template/node_modules/supports-preserve-symlinks-flag/LICENSE +0 -21
- package/my_template/node_modules/supports-preserve-symlinks-flag/README.md +0 -42
- package/my_template/node_modules/supports-preserve-symlinks-flag/browser.js +0 -3
- package/my_template/node_modules/supports-preserve-symlinks-flag/index.js +0 -9
- package/my_template/node_modules/supports-preserve-symlinks-flag/package.json +0 -70
- package/my_template/node_modules/supports-preserve-symlinks-flag/test/index.js +0 -29
- package/my_template/node_modules/tslib/CopyrightNotice.txt +0 -15
- package/my_template/node_modules/tslib/LICENSE.txt +0 -12
- package/my_template/node_modules/tslib/README.md +0 -142
- package/my_template/node_modules/tslib/modules/index.js +0 -51
- package/my_template/node_modules/tslib/modules/package.json +0 -3
- package/my_template/node_modules/tslib/package.json +0 -37
- package/my_template/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
- package/my_template/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
- package/my_template/node_modules/tslib/tslib.d.ts +0 -37
- package/my_template/node_modules/tslib/tslib.es6.html +0 -1
- package/my_template/node_modules/tslib/tslib.es6.js +0 -218
- package/my_template/node_modules/tslib/tslib.html +0 -1
- package/my_template/node_modules/tslib/tslib.js +0 -284
- package/my_template/node_modules/uglify-js/LICENSE +0 -29
- package/my_template/node_modules/uglify-js/README.md +0 -1478
- package/my_template/node_modules/uglify-js/bin/uglifyjs +0 -605
- package/my_template/node_modules/uglify-js/lib/ast.js +0 -2356
- package/my_template/node_modules/uglify-js/lib/compress.js +0 -14241
- package/my_template/node_modules/uglify-js/lib/minify.js +0 -276
- package/my_template/node_modules/uglify-js/lib/mozilla-ast.js +0 -1310
- package/my_template/node_modules/uglify-js/lib/output.js +0 -1956
- package/my_template/node_modules/uglify-js/lib/parse.js +0 -2585
- package/my_template/node_modules/uglify-js/lib/propmangle.js +0 -328
- package/my_template/node_modules/uglify-js/lib/scope.js +0 -866
- package/my_template/node_modules/uglify-js/lib/sourcemap.js +0 -195
- package/my_template/node_modules/uglify-js/lib/transform.js +0 -250
- package/my_template/node_modules/uglify-js/lib/utils.js +0 -287
- package/my_template/node_modules/uglify-js/package.json +0 -56
- package/my_template/node_modules/uglify-js/tools/domprops.html +0 -456
- package/my_template/node_modules/uglify-js/tools/domprops.json +0 -8325
- package/my_template/node_modules/uglify-js/tools/exports.js +0 -8
- package/my_template/node_modules/uglify-js/tools/node.js +0 -110
- package/my_template/node_modules/uglify-js/tools/tty.js +0 -22
- package/my_template/node_modules/undici-types/README.md +0 -6
- package/my_template/node_modules/undici-types/agent.d.ts +0 -31
- package/my_template/node_modules/undici-types/api.d.ts +0 -43
- package/my_template/node_modules/undici-types/balanced-pool.d.ts +0 -18
- package/my_template/node_modules/undici-types/cache.d.ts +0 -36
- package/my_template/node_modules/undici-types/client.d.ts +0 -97
- package/my_template/node_modules/undici-types/connector.d.ts +0 -34
- package/my_template/node_modules/undici-types/content-type.d.ts +0 -21
- package/my_template/node_modules/undici-types/cookies.d.ts +0 -28
- package/my_template/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
- package/my_template/node_modules/undici-types/dispatcher.d.ts +0 -241
- package/my_template/node_modules/undici-types/errors.d.ts +0 -128
- package/my_template/node_modules/undici-types/fetch.d.ts +0 -209
- package/my_template/node_modules/undici-types/file.d.ts +0 -39
- package/my_template/node_modules/undici-types/filereader.d.ts +0 -54
- package/my_template/node_modules/undici-types/formdata.d.ts +0 -108
- package/my_template/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/my_template/node_modules/undici-types/global-origin.d.ts +0 -7
- package/my_template/node_modules/undici-types/handlers.d.ts +0 -9
- package/my_template/node_modules/undici-types/header.d.ts +0 -4
- package/my_template/node_modules/undici-types/index.d.ts +0 -63
- package/my_template/node_modules/undici-types/interceptors.d.ts +0 -5
- package/my_template/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/my_template/node_modules/undici-types/mock-client.d.ts +0 -25
- package/my_template/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/my_template/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/my_template/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/my_template/node_modules/undici-types/package.json +0 -55
- package/my_template/node_modules/undici-types/patch.d.ts +0 -71
- package/my_template/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/my_template/node_modules/undici-types/pool.d.ts +0 -28
- package/my_template/node_modules/undici-types/proxy-agent.d.ts +0 -30
- package/my_template/node_modules/undici-types/readable.d.ts +0 -61
- package/my_template/node_modules/undici-types/webidl.d.ts +0 -220
- package/my_template/node_modules/undici-types/websocket.d.ts +0 -131
- package/server/columns.js +0 -201
- package/server/data.js +0 -327
- package/server/json.js +0 -66
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = (function (SourceMapOutput, environment) {
|
|
4
|
-
var SourceMapBuilder = /** @class */ (function () {
|
|
5
|
-
function SourceMapBuilder(options) {
|
|
6
|
-
this.options = options;
|
|
7
|
-
}
|
|
8
|
-
SourceMapBuilder.prototype.toCSS = function (rootNode, options, imports) {
|
|
9
|
-
var sourceMapOutput = new SourceMapOutput({
|
|
10
|
-
contentsIgnoredCharsMap: imports.contentsIgnoredChars,
|
|
11
|
-
rootNode: rootNode,
|
|
12
|
-
contentsMap: imports.contents,
|
|
13
|
-
sourceMapFilename: this.options.sourceMapFilename,
|
|
14
|
-
sourceMapURL: this.options.sourceMapURL,
|
|
15
|
-
outputFilename: this.options.sourceMapOutputFilename,
|
|
16
|
-
sourceMapBasepath: this.options.sourceMapBasepath,
|
|
17
|
-
sourceMapRootpath: this.options.sourceMapRootpath,
|
|
18
|
-
outputSourceFiles: this.options.outputSourceFiles,
|
|
19
|
-
sourceMapGenerator: this.options.sourceMapGenerator,
|
|
20
|
-
sourceMapFileInline: this.options.sourceMapFileInline,
|
|
21
|
-
disableSourcemapAnnotation: this.options.disableSourcemapAnnotation
|
|
22
|
-
});
|
|
23
|
-
var css = sourceMapOutput.toCSS(options);
|
|
24
|
-
this.sourceMap = sourceMapOutput.sourceMap;
|
|
25
|
-
this.sourceMapURL = sourceMapOutput.sourceMapURL;
|
|
26
|
-
if (this.options.sourceMapInputFilename) {
|
|
27
|
-
this.sourceMapInputFilename = sourceMapOutput.normalizeFilename(this.options.sourceMapInputFilename);
|
|
28
|
-
}
|
|
29
|
-
if (this.options.sourceMapBasepath !== undefined && this.sourceMapURL !== undefined) {
|
|
30
|
-
this.sourceMapURL = sourceMapOutput.removeBasepath(this.sourceMapURL);
|
|
31
|
-
}
|
|
32
|
-
return css + this.getCSSAppendage();
|
|
33
|
-
};
|
|
34
|
-
SourceMapBuilder.prototype.getCSSAppendage = function () {
|
|
35
|
-
var sourceMapURL = this.sourceMapURL;
|
|
36
|
-
if (this.options.sourceMapFileInline) {
|
|
37
|
-
if (this.sourceMap === undefined) {
|
|
38
|
-
return '';
|
|
39
|
-
}
|
|
40
|
-
sourceMapURL = "data:application/json;base64," + environment.encodeBase64(this.sourceMap);
|
|
41
|
-
}
|
|
42
|
-
if (this.options.disableSourcemapAnnotation) {
|
|
43
|
-
return '';
|
|
44
|
-
}
|
|
45
|
-
if (sourceMapURL) {
|
|
46
|
-
return "/*# sourceMappingURL=" + sourceMapURL + " */";
|
|
47
|
-
}
|
|
48
|
-
return '';
|
|
49
|
-
};
|
|
50
|
-
SourceMapBuilder.prototype.getExternalSourceMap = function () {
|
|
51
|
-
return this.sourceMap;
|
|
52
|
-
};
|
|
53
|
-
SourceMapBuilder.prototype.setExternalSourceMap = function (sourceMap) {
|
|
54
|
-
this.sourceMap = sourceMap;
|
|
55
|
-
};
|
|
56
|
-
SourceMapBuilder.prototype.isInline = function () {
|
|
57
|
-
return this.options.sourceMapFileInline;
|
|
58
|
-
};
|
|
59
|
-
SourceMapBuilder.prototype.getSourceMapURL = function () {
|
|
60
|
-
return this.sourceMapURL;
|
|
61
|
-
};
|
|
62
|
-
SourceMapBuilder.prototype.getOutputFilename = function () {
|
|
63
|
-
return this.options.sourceMapOutputFilename;
|
|
64
|
-
};
|
|
65
|
-
SourceMapBuilder.prototype.getInputFilename = function () {
|
|
66
|
-
return this.sourceMapInputFilename;
|
|
67
|
-
};
|
|
68
|
-
return SourceMapBuilder;
|
|
69
|
-
}());
|
|
70
|
-
return SourceMapBuilder;
|
|
71
|
-
});
|
|
72
|
-
//# sourceMappingURL=source-map-builder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-map-builder.js","sourceRoot":"","sources":["../../src/less/source-map-builder.js"],"names":[],"mappings":";;AAAA,mBAAe,UAAC,eAAe,EAAE,WAAW;IACxC;QACI,0BAAY,OAAO;YACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAC3B,CAAC;QAED,gCAAK,GAAL,UAAM,QAAQ,EAAE,OAAO,EAAE,OAAO;YAC5B,IAAM,eAAe,GAAG,IAAI,eAAe,CACvC;gBACI,uBAAuB,EAAE,OAAO,CAAC,oBAAoB;gBACrD,QAAQ,UAAA;gBACR,WAAW,EAAE,OAAO,CAAC,QAAQ;gBAC7B,iBAAiB,EAAE,IAAI,CAAC,OAAO,CAAC,iBAAiB;gBACjD,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY;gBACvC,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,uBAAuB;gBACpD,iBAAiB,EAAE,IAAI,CAAC,OAAO,CAAC,iBAAiB;gBACjD,iBAAiB,EAAE,IAAI,CAAC,OAAO,CAAC,iBAAiB;gBACjD,iBAAiB,EAAE,IAAI,CAAC,OAAO,CAAC,iBAAiB;gBACjD,kBAAkB,EAAE,IAAI,CAAC,OAAO,CAAC,kBAAkB;gBACnD,mBAAmB,EAAE,IAAI,CAAC,OAAO,CAAC,mBAAmB;gBACrD,0BAA0B,EAAE,IAAI,C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,SAAS,CAAC;QAC/B,CAAC;QAED,mCAAQ,GAAR;YACI,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC;QAC5C,CAAC;QAED,0CAAe,GAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;QAED,4CAAiB,GAAjB;YACI,OAAO,IAAI,CAAC,OAAO,CAAC,uBAAuB,CAAC;QAChD,CAAC;QAED,2CAAgB,GAAhB;YACI,OAAO,IAAI,CAAC,sBAAsB,CAAC;QACvC,CAAC;QACL,uBAAC;IAAD,CAAC,AA7ED,IA6EC;IAED,OAAO,gBAAgB,CAAC;AAC5B,CAAC,EAAC","sourcesContent":["export default (SourceMapOutput, environment) => {\n class SourceMapBuilder {\n constructor(options) {\n this.options = options;\n }\n\n toCSS(rootNode, options, imports) {\n const sourceMapOutput = new SourceMapOutput(\n {\n contentsIgnoredCharsMap: imports.contentsIgnoredChars,\n rootNode,\n contentsMap: imports.contents,\n sourceMapFilename: this.options.sourceMapFilename,\n sourceMapURL: this.options.sourceMapURL,\n outputFilename: this.options.sourceMapOutputFilename,\n sourceMapBasepath: this.options.sourceMapBasepath,\n sourceMapRootpath: this.options.sourceMapRootpath,\n outputSourceFiles: this.options.outputSourceFiles,\n sourceMapGenerator: this.options.sourceMapGenerator,\n sourceMapFileInline: this.options.sourceMapFileInline, \n disableSourcemapAnnotation: this.options.disableSourcemapAnnotation\n });\n\n const css = sourceMapOutput.toCSS(options);\n this.sourceMap = sourceMapOutput.sourceMap;\n this.sourceMapURL = sourceMapOutput.sourceMapURL;\n if (this.options.sourceMapInputFilename) {\n this.sourceMapInputFilename = sourceMapOutput.normalizeFilename(this.options.sourceMapInputFilename);\n }\n if (this.options.sourceMapBasepath !== undefined && this.sourceMapURL !== undefined) {\n this.sourceMapURL = sourceMapOutput.removeBasepath(this.sourceMapURL);\n }\n return css + this.getCSSAppendage();\n }\n\n getCSSAppendage() {\n\n let sourceMapURL = this.sourceMapURL;\n if (this.options.sourceMapFileInline) {\n if (this.sourceMap === undefined) {\n return '';\n }\n sourceMapURL = `data:application/json;base64,${environment.encodeBase64(this.sourceMap)}`;\n }\n\n if (this.options.disableSourcemapAnnotation) {\n return '';\n }\n\n if (sourceMapURL) {\n return `/*# sourceMappingURL=${sourceMapURL} */`;\n }\n return '';\n }\n\n getExternalSourceMap() {\n return this.sourceMap;\n }\n\n setExternalSourceMap(sourceMap) {\n this.sourceMap = sourceMap;\n }\n\n isInline() {\n return this.options.sourceMapFileInline;\n }\n\n getSourceMapURL() {\n return this.sourceMapURL;\n }\n\n getOutputFilename() {\n return this.options.sourceMapOutputFilename;\n }\n\n getInputFilename() {\n return this.sourceMapInputFilename;\n }\n }\n\n return SourceMapBuilder;\n};\n"]}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = (function (environment) {
|
|
4
|
-
var SourceMapOutput = /** @class */ (function () {
|
|
5
|
-
function SourceMapOutput(options) {
|
|
6
|
-
this._css = [];
|
|
7
|
-
this._rootNode = options.rootNode;
|
|
8
|
-
this._contentsMap = options.contentsMap;
|
|
9
|
-
this._contentsIgnoredCharsMap = options.contentsIgnoredCharsMap;
|
|
10
|
-
if (options.sourceMapFilename) {
|
|
11
|
-
this._sourceMapFilename = options.sourceMapFilename.replace(/\\/g, '/');
|
|
12
|
-
}
|
|
13
|
-
this._outputFilename = options.outputFilename;
|
|
14
|
-
this.sourceMapURL = options.sourceMapURL;
|
|
15
|
-
if (options.sourceMapBasepath) {
|
|
16
|
-
this._sourceMapBasepath = options.sourceMapBasepath.replace(/\\/g, '/');
|
|
17
|
-
}
|
|
18
|
-
if (options.sourceMapRootpath) {
|
|
19
|
-
this._sourceMapRootpath = options.sourceMapRootpath.replace(/\\/g, '/');
|
|
20
|
-
if (this._sourceMapRootpath.charAt(this._sourceMapRootpath.length - 1) !== '/') {
|
|
21
|
-
this._sourceMapRootpath += '/';
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
this._sourceMapRootpath = '';
|
|
26
|
-
}
|
|
27
|
-
this._outputSourceFiles = options.outputSourceFiles;
|
|
28
|
-
this._sourceMapGeneratorConstructor = environment.getSourceMapGenerator();
|
|
29
|
-
this._lineNumber = 0;
|
|
30
|
-
this._column = 0;
|
|
31
|
-
}
|
|
32
|
-
SourceMapOutput.prototype.removeBasepath = function (path) {
|
|
33
|
-
if (this._sourceMapBasepath && path.indexOf(this._sourceMapBasepath) === 0) {
|
|
34
|
-
path = path.substring(this._sourceMapBasepath.length);
|
|
35
|
-
if (path.charAt(0) === '\\' || path.charAt(0) === '/') {
|
|
36
|
-
path = path.substring(1);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return path;
|
|
40
|
-
};
|
|
41
|
-
SourceMapOutput.prototype.normalizeFilename = function (filename) {
|
|
42
|
-
filename = filename.replace(/\\/g, '/');
|
|
43
|
-
filename = this.removeBasepath(filename);
|
|
44
|
-
return (this._sourceMapRootpath || '') + filename;
|
|
45
|
-
};
|
|
46
|
-
SourceMapOutput.prototype.add = function (chunk, fileInfo, index, mapLines) {
|
|
47
|
-
// ignore adding empty strings
|
|
48
|
-
if (!chunk) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
var lines;
|
|
52
|
-
var sourceLines;
|
|
53
|
-
var columns;
|
|
54
|
-
var sourceColumns;
|
|
55
|
-
var i;
|
|
56
|
-
if (fileInfo && fileInfo.filename) {
|
|
57
|
-
var inputSource = this._contentsMap[fileInfo.filename];
|
|
58
|
-
// remove vars/banner added to the top of the file
|
|
59
|
-
if (this._contentsIgnoredCharsMap[fileInfo.filename]) {
|
|
60
|
-
// adjust the index
|
|
61
|
-
index -= this._contentsIgnoredCharsMap[fileInfo.filename];
|
|
62
|
-
if (index < 0) {
|
|
63
|
-
index = 0;
|
|
64
|
-
}
|
|
65
|
-
// adjust the source
|
|
66
|
-
inputSource = inputSource.slice(this._contentsIgnoredCharsMap[fileInfo.filename]);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* ignore empty content, or failsafe
|
|
70
|
-
* if contents map is incorrect
|
|
71
|
-
*/
|
|
72
|
-
if (inputSource === undefined) {
|
|
73
|
-
this._css.push(chunk);
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
inputSource = inputSource.substring(0, index);
|
|
77
|
-
sourceLines = inputSource.split('\n');
|
|
78
|
-
sourceColumns = sourceLines[sourceLines.length - 1];
|
|
79
|
-
}
|
|
80
|
-
lines = chunk.split('\n');
|
|
81
|
-
columns = lines[lines.length - 1];
|
|
82
|
-
if (fileInfo && fileInfo.filename) {
|
|
83
|
-
if (!mapLines) {
|
|
84
|
-
this._sourceMapGenerator.addMapping({ generated: { line: this._lineNumber + 1, column: this._column },
|
|
85
|
-
original: { line: sourceLines.length, column: sourceColumns.length },
|
|
86
|
-
source: this.normalizeFilename(fileInfo.filename) });
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
for (i = 0; i < lines.length; i++) {
|
|
90
|
-
this._sourceMapGenerator.addMapping({ generated: { line: this._lineNumber + i + 1, column: i === 0 ? this._column : 0 },
|
|
91
|
-
original: { line: sourceLines.length + i, column: i === 0 ? sourceColumns.length : 0 },
|
|
92
|
-
source: this.normalizeFilename(fileInfo.filename) });
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
if (lines.length === 1) {
|
|
97
|
-
this._column += columns.length;
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
this._lineNumber += lines.length - 1;
|
|
101
|
-
this._column = columns.length;
|
|
102
|
-
}
|
|
103
|
-
this._css.push(chunk);
|
|
104
|
-
};
|
|
105
|
-
SourceMapOutput.prototype.isEmpty = function () {
|
|
106
|
-
return this._css.length === 0;
|
|
107
|
-
};
|
|
108
|
-
SourceMapOutput.prototype.toCSS = function (context) {
|
|
109
|
-
this._sourceMapGenerator = new this._sourceMapGeneratorConstructor({ file: this._outputFilename, sourceRoot: null });
|
|
110
|
-
if (this._outputSourceFiles) {
|
|
111
|
-
for (var filename in this._contentsMap) {
|
|
112
|
-
if (this._contentsMap.hasOwnProperty(filename)) {
|
|
113
|
-
var source = this._contentsMap[filename];
|
|
114
|
-
if (this._contentsIgnoredCharsMap[filename]) {
|
|
115
|
-
source = source.slice(this._contentsIgnoredCharsMap[filename]);
|
|
116
|
-
}
|
|
117
|
-
this._sourceMapGenerator.setSourceContent(this.normalizeFilename(filename), source);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
this._rootNode.genCSS(context, this);
|
|
122
|
-
if (this._css.length > 0) {
|
|
123
|
-
var sourceMapURL = void 0;
|
|
124
|
-
var sourceMapContent = JSON.stringify(this._sourceMapGenerator.toJSON());
|
|
125
|
-
if (this.sourceMapURL) {
|
|
126
|
-
sourceMapURL = this.sourceMapURL;
|
|
127
|
-
}
|
|
128
|
-
else if (this._sourceMapFilename) {
|
|
129
|
-
sourceMapURL = this._sourceMapFilename;
|
|
130
|
-
}
|
|
131
|
-
this.sourceMapURL = sourceMapURL;
|
|
132
|
-
this.sourceMap = sourceMapContent;
|
|
133
|
-
}
|
|
134
|
-
return this._css.join('');
|
|
135
|
-
};
|
|
136
|
-
return SourceMapOutput;
|
|
137
|
-
}());
|
|
138
|
-
return SourceMapOutput;
|
|
139
|
-
});
|
|
140
|
-
//# sourceMappingURL=source-map-output.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-map-output.js","sourceRoot":"","sources":["../../src/less/source-map-output.js"],"names":[],"mappings":";;AAAA,mBAAe,UAAA,WAAW;IACtB;QACI,yBAAY,OAAO;YACf,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;YACf,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC;YAClC,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;YACxC,IAAI,CAAC,wB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4BACzC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC;yBAClE;wBACD,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;qBACvF;iBACJ;aACJ;YAED,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAErC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;gBACtB,IAAI,YAAY,SAAA,CAAC;gBACjB,IAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC,CAAC;gBAE3E,IAAI,IAAI,CAAC,YAAY,EAAE;oBACnB,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;iBACpC;qBAAM,IAAI,IAAI,CAAC,kBAAkB,EAAE;oBAChC,YAAY,GAAG,IAAI,CAAC,kBAAkB,CAAC;iBAC1C;gBACD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;gBAEjC,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC;aACrC;YAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC9B,CAAC;QACL,sBAAC;IAAD,CAAC,AApJD,IAoJC;IAED,OAAO,eAAe,CAAC;AAC3B,CAAC,EAAC","sourcesContent":["export default environment => {\n class SourceMapOutput {\n constructor(options) {\n this._css = [];\n this._rootNode = options.rootNode;\n this._contentsMap = options.contentsMap;\n this._contentsIgnoredCharsMap = options.contentsIgnoredCharsMap;\n if (options.sourceMapFilename) {\n this._sourceMapFilename = options.sourceMapFilename.replace(/\\\\/g, '/');\n }\n this._outputFilename = options.outputFilename;\n this.sourceMapURL = options.sourceMapURL;\n if (options.sourceMapBasepath) {\n this._sourceMapBasepath = options.sourceMapBasepath.replace(/\\\\/g, '/');\n }\n if (options.sourceMapRootpath) {\n this._sourceMapRootpath = options.sourceMapRootpath.replace(/\\\\/g, '/');\n if (this._sourceMapRootpath.charAt(this._sourceMapRootpath.length - 1) !== '/') {\n this._sourceMapRootpath += '/';\n }\n } else {\n this._sourceMapRootpath = '';\n }\n this._outputSourceFiles = options.outputSourceFiles;\n this._sourceMapGeneratorConstructor = environment.getSourceMapGenerator();\n\n this._lineNumber = 0;\n this._column = 0;\n }\n\n removeBasepath(path) {\n if (this._sourceMapBasepath && path.indexOf(this._sourceMapBasepath) === 0) {\n path = path.substring(this._sourceMapBasepath.length);\n if (path.charAt(0) === '\\\\' || path.charAt(0) === '/') {\n path = path.substring(1);\n }\n }\n\n return path;\n }\n\n normalizeFilename(filename) {\n filename = filename.replace(/\\\\/g, '/');\n filename = this.removeBasepath(filename);\n return (this._sourceMapRootpath || '') + filename;\n }\n\n add(chunk, fileInfo, index, mapLines) {\n // ignore adding empty strings\n if (!chunk) {\n return;\n }\n\n let lines;\n let sourceLines;\n let columns;\n let sourceColumns;\n let i;\n\n if (fileInfo && fileInfo.filename) {\n let inputSource = this._contentsMap[fileInfo.filename];\n\n // remove vars/banner added to the top of the file\n if (this._contentsIgnoredCharsMap[fileInfo.filename]) {\n // adjust the index\n index -= this._contentsIgnoredCharsMap[fileInfo.filename];\n if (index < 0) { index = 0; }\n // adjust the source\n inputSource = inputSource.slice(this._contentsIgnoredCharsMap[fileInfo.filename]);\n }\n\n /** \n * ignore empty content, or failsafe\n * if contents map is incorrect\n */\n if (inputSource === undefined) {\n this._css.push(chunk);\n return;\n }\n\n inputSource = inputSource.substring(0, index);\n sourceLines = inputSource.split('\\n');\n sourceColumns = sourceLines[sourceLines.length - 1];\n }\n\n lines = chunk.split('\\n');\n columns = lines[lines.length - 1];\n\n if (fileInfo && fileInfo.filename) {\n if (!mapLines) {\n this._sourceMapGenerator.addMapping({ generated: { line: this._lineNumber + 1, column: this._column},\n original: { line: sourceLines.length, column: sourceColumns.length},\n source: this.normalizeFilename(fileInfo.filename)});\n } else {\n for (i = 0; i < lines.length; i++) {\n this._sourceMapGenerator.addMapping({ generated: { line: this._lineNumber + i + 1, column: i === 0 ? this._column : 0},\n original: { line: sourceLines.length + i, column: i === 0 ? sourceColumns.length : 0},\n source: this.normalizeFilename(fileInfo.filename)});\n }\n }\n }\n\n if (lines.length === 1) {\n this._column += columns.length;\n } else {\n this._lineNumber += lines.length - 1;\n this._column = columns.length;\n }\n\n this._css.push(chunk);\n }\n\n isEmpty() {\n return this._css.length === 0;\n }\n\n toCSS(context) {\n this._sourceMapGenerator = new this._sourceMapGeneratorConstructor({ file: this._outputFilename, sourceRoot: null });\n\n if (this._outputSourceFiles) {\n for (const filename in this._contentsMap) {\n if (this._contentsMap.hasOwnProperty(filename)) {\n let source = this._contentsMap[filename];\n if (this._contentsIgnoredCharsMap[filename]) {\n source = source.slice(this._contentsIgnoredCharsMap[filename]);\n }\n this._sourceMapGenerator.setSourceContent(this.normalizeFilename(filename), source);\n }\n }\n }\n\n this._rootNode.genCSS(context, this);\n\n if (this._css.length > 0) {\n let sourceMapURL;\n const sourceMapContent = JSON.stringify(this._sourceMapGenerator.toJSON());\n\n if (this.sourceMapURL) {\n sourceMapURL = this.sourceMapURL;\n } else if (this._sourceMapFilename) {\n sourceMapURL = this._sourceMapFilename;\n }\n this.sourceMapURL = sourceMapURL;\n\n this.sourceMap = sourceMapContent;\n }\n\n return this._css.join('');\n }\n }\n\n return SourceMapOutput;\n};\n"]}
|
|
@@ -1,93 +0,0 @@
|
|
|
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 contexts_1 = __importDefault(require("./contexts"));
|
|
7
|
-
var visitors_1 = __importDefault(require("./visitors"));
|
|
8
|
-
var tree_1 = __importDefault(require("./tree"));
|
|
9
|
-
exports.default = (function (root, options) {
|
|
10
|
-
if (options === void 0) { options = {}; }
|
|
11
|
-
var evaldRoot;
|
|
12
|
-
var variables = options.variables;
|
|
13
|
-
var evalEnv = new contexts_1.default.Eval(options);
|
|
14
|
-
//
|
|
15
|
-
// Allows setting variables with a hash, so:
|
|
16
|
-
//
|
|
17
|
-
// `{ color: new tree.Color('#f01') }` will become:
|
|
18
|
-
//
|
|
19
|
-
// new tree.Declaration('@color',
|
|
20
|
-
// new tree.Value([
|
|
21
|
-
// new tree.Expression([
|
|
22
|
-
// new tree.Color('#f01')
|
|
23
|
-
// ])
|
|
24
|
-
// ])
|
|
25
|
-
// )
|
|
26
|
-
//
|
|
27
|
-
if (typeof variables === 'object' && !Array.isArray(variables)) {
|
|
28
|
-
variables = Object.keys(variables).map(function (k) {
|
|
29
|
-
var value = variables[k];
|
|
30
|
-
if (!(value instanceof tree_1.default.Value)) {
|
|
31
|
-
if (!(value instanceof tree_1.default.Expression)) {
|
|
32
|
-
value = new tree_1.default.Expression([value]);
|
|
33
|
-
}
|
|
34
|
-
value = new tree_1.default.Value([value]);
|
|
35
|
-
}
|
|
36
|
-
return new tree_1.default.Declaration("@" + k, value, false, null, 0);
|
|
37
|
-
});
|
|
38
|
-
evalEnv.frames = [new tree_1.default.Ruleset(null, variables)];
|
|
39
|
-
}
|
|
40
|
-
var visitors = [
|
|
41
|
-
new visitors_1.default.JoinSelectorVisitor(),
|
|
42
|
-
new visitors_1.default.MarkVisibleSelectorsVisitor(true),
|
|
43
|
-
new visitors_1.default.ExtendVisitor(),
|
|
44
|
-
new visitors_1.default.ToCSSVisitor({ compress: Boolean(options.compress) })
|
|
45
|
-
];
|
|
46
|
-
var preEvalVisitors = [];
|
|
47
|
-
var v;
|
|
48
|
-
var visitorIterator;
|
|
49
|
-
/**
|
|
50
|
-
* first() / get() allows visitors to be added while visiting
|
|
51
|
-
*
|
|
52
|
-
* @todo Add scoping for visitors just like functions for @plugin; right now they're global
|
|
53
|
-
*/
|
|
54
|
-
if (options.pluginManager) {
|
|
55
|
-
visitorIterator = options.pluginManager.visitor();
|
|
56
|
-
for (var i = 0; i < 2; i++) {
|
|
57
|
-
visitorIterator.first();
|
|
58
|
-
while ((v = visitorIterator.get())) {
|
|
59
|
-
if (v.isPreEvalVisitor) {
|
|
60
|
-
if (i === 0 || preEvalVisitors.indexOf(v) === -1) {
|
|
61
|
-
preEvalVisitors.push(v);
|
|
62
|
-
v.run(root);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
if (i === 0 || visitors.indexOf(v) === -1) {
|
|
67
|
-
if (v.isPreVisitor) {
|
|
68
|
-
visitors.unshift(v);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
visitors.push(v);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
evaldRoot = root.eval(evalEnv);
|
|
79
|
-
for (var i = 0; i < visitors.length; i++) {
|
|
80
|
-
visitors[i].run(evaldRoot);
|
|
81
|
-
}
|
|
82
|
-
// Run any remaining visitors added after eval pass
|
|
83
|
-
if (options.pluginManager) {
|
|
84
|
-
visitorIterator.first();
|
|
85
|
-
while ((v = visitorIterator.get())) {
|
|
86
|
-
if (visitors.indexOf(v) === -1 && preEvalVisitors.indexOf(v) === -1) {
|
|
87
|
-
v.run(evaldRoot);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return evaldRoot;
|
|
92
|
-
});
|
|
93
|
-
//# sourceMappingURL=transform-tree.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transform-tree.js","sourceRoot":"","sources":["../../src/less/transform-tree.js"],"names":[],"mappings":";;;;;AAAA,wDAAkC;AAClC,wDAAiC;AACjC,gDAA0B;AAE1B,mBAAe,UAAC,IAAI,EAAE,OAAY;IAAZ,wBAAA,EAAA,YAAY;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AAC,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;KAC9B;IAED,mDAAmD;IACnD,IAAI,OAAO,CAAC,aAAa,EAAE;QACvB,eAAe,CAAC,KAAK,EAAE,CAAC;QACxB,OAAO,CAAC,CAAC,GAAG,eAAe,CAAC,GAAG,EAAE,CAAC,EAAE;YAChC,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE;gBACjE,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;aACpB;SACJ;KACJ;IAED,OAAO,SAAS,CAAC;AACrB,CAAC,EAAC","sourcesContent":["import contexts from './contexts';\nimport visitor from './visitors';\nimport tree from './tree';\n\nexport default (root, options = {}) => {\n let evaldRoot;\n let variables = options.variables;\n const evalEnv = new contexts.Eval(options);\n\n //\n // Allows setting variables with a hash, so:\n //\n // `{ color: new tree.Color('#f01') }` will become:\n //\n // new tree.Declaration('@color',\n // new tree.Value([\n // new tree.Expression([\n // new tree.Color('#f01')\n // ])\n // ])\n // )\n //\n if (typeof variables === 'object' && !Array.isArray(variables)) {\n variables = Object.keys(variables).map(k => {\n let value = variables[k];\n\n if (!(value instanceof tree.Value)) {\n if (!(value instanceof tree.Expression)) {\n value = new tree.Expression([value]);\n }\n value = new tree.Value([value]);\n }\n return new tree.Declaration(`@${k}`, value, false, null, 0);\n });\n evalEnv.frames = [new tree.Ruleset(null, variables)];\n }\n\n const visitors = [\n new visitor.JoinSelectorVisitor(),\n new visitor.MarkVisibleSelectorsVisitor(true),\n new visitor.ExtendVisitor(),\n new visitor.ToCSSVisitor({compress: Boolean(options.compress)})\n ];\n\n const preEvalVisitors = [];\n let v;\n let visitorIterator;\n\n /**\n * first() / get() allows visitors to be added while visiting\n * \n * @todo Add scoping for visitors just like functions for @plugin; right now they're global\n */\n if (options.pluginManager) {\n visitorIterator = options.pluginManager.visitor();\n for (var i = 0; i < 2; i++) {\n visitorIterator.first();\n while ((v = visitorIterator.get())) {\n if (v.isPreEvalVisitor) {\n if (i === 0 || preEvalVisitors.indexOf(v) === -1) {\n preEvalVisitors.push(v);\n v.run(root);\n }\n }\n else {\n if (i === 0 || visitors.indexOf(v) === -1) {\n if (v.isPreVisitor) {\n visitors.unshift(v);\n }\n else {\n visitors.push(v);\n }\n }\n }\n }\n }\n }\n\n evaldRoot = root.eval(evalEnv);\n\n for (var i = 0; i < visitors.length; i++) {\n visitors[i].run(evaldRoot);\n }\n\n // Run any remaining visitors added after eval pass\n if (options.pluginManager) {\n visitorIterator.first();\n while ((v = visitorIterator.get())) {\n if (visitors.indexOf(v) === -1 && preEvalVisitors.indexOf(v) === -1) {\n v.run(evaldRoot);\n }\n }\n }\n\n return evaldRoot;\n};\n"]}
|
|
@@ -1,34 +0,0 @@
|
|
|
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 Anonymous = function (value, index, currentFileInfo, mapLines, rulesetLike, visibilityInfo) {
|
|
8
|
-
this.value = value;
|
|
9
|
-
this._index = index;
|
|
10
|
-
this._fileInfo = currentFileInfo;
|
|
11
|
-
this.mapLines = mapLines;
|
|
12
|
-
this.rulesetLike = (typeof rulesetLike === 'undefined') ? false : rulesetLike;
|
|
13
|
-
this.allowRoot = true;
|
|
14
|
-
this.copyVisibilityInfo(visibilityInfo);
|
|
15
|
-
};
|
|
16
|
-
Anonymous.prototype = new node_1.default();
|
|
17
|
-
Anonymous.prototype.eval = function () {
|
|
18
|
-
return new Anonymous(this.value, this._index, this._fileInfo, this.mapLines, this.rulesetLike, this.visibilityInfo());
|
|
19
|
-
};
|
|
20
|
-
Anonymous.prototype.compare = function (other) {
|
|
21
|
-
return other.toCSS && this.toCSS() === other.toCSS() ? 0 : undefined;
|
|
22
|
-
};
|
|
23
|
-
Anonymous.prototype.isRulesetLike = function () {
|
|
24
|
-
return this.rulesetLike;
|
|
25
|
-
};
|
|
26
|
-
Anonymous.prototype.genCSS = function (context, output) {
|
|
27
|
-
this.nodeVisible = Boolean(this.value);
|
|
28
|
-
if (this.nodeVisible) {
|
|
29
|
-
output.add(this.value, this._fileInfo, this._index, this.mapLines);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
Anonymous.prototype.type = 'Anonymous';
|
|
33
|
-
exports.default = Anonymous;
|
|
34
|
-
//# sourceMappingURL=anonymous.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"anonymous.js","sourceRoot":"","sources":["../../../src/less/tree/anonymous.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAG1B,IAAM,SAAS,GAAG,UAAS,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc;IAC3F,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACnB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACpB,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC;IACjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,WAAW,GAAG,CAAC,OAAO,WAAW,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC;IAC9E,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;AAC5C,CAAC,CAAA;AAED,SAAS,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AAEjC,SAAS,CAAC,SAAS,CAAC,IAAI,GAAG;IACvB,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;AAC1H,CAAC,CAAC;AAEF,SAAS,CAAC,SAAS,CAAC,OAAO,GAAG,UAAS,KAAK;IACxC,OAAO,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACzE,CAAC,CAAC;AAEF,SAAS,CAAC,SAAS,CAAC,aAAa,GAAG;IAChC,OAAO,IAAI,CAAC,WAAW,CAAC;AAC5B,CAAC,CAAC;AAEF,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO,EAAE,MAAM;IACjD,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvC,IAAI,IAAI,CAAC,WAAW,EAAE;QAClB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;KACtE;AACL,CAAC,CAAC;AAEF,SAAS,CAAC,SAAS,CAAC,IAAI,GAAG,WAAW,CAAC;AACvC,kBAAe,SAAS,CAAC","sourcesContent":["import Node from './node';\nimport { extend } from './util';\n\nconst Anonymous = function(value, index, currentFileInfo, mapLines, rulesetLike, visibilityInfo) {\n this.value = value;\n this._index = index;\n this._fileInfo = currentFileInfo;\n this.mapLines = mapLines;\n this.rulesetLike = (typeof rulesetLike === 'undefined') ? false : rulesetLike;\n this.allowRoot = true;\n this.copyVisibilityInfo(visibilityInfo);\n}\n\nAnonymous.prototype = new Node();\n\nAnonymous.prototype.eval = function() {\n return new Anonymous(this.value, this._index, this._fileInfo, this.mapLines, this.rulesetLike, this.visibilityInfo());\n};\n\nAnonymous.prototype.compare = function(other) {\n return other.toCSS && this.toCSS() === other.toCSS() ? 0 : undefined;\n};\n\nAnonymous.prototype.isRulesetLike = function() {\n return this.rulesetLike;\n};\n\nAnonymous.prototype.genCSS = function(context, output) {\n this.nodeVisible = Boolean(this.value);\n if (this.nodeVisible) {\n output.add(this.value, this._fileInfo, this._index, this.mapLines);\n }\n};\n\nAnonymous.prototype.type = 'Anonymous';\nexport default Anonymous;\n"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
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 Assignment = function (key, val) {
|
|
8
|
-
this.key = key;
|
|
9
|
-
this.value = val;
|
|
10
|
-
};
|
|
11
|
-
Assignment.prototype = new node_1.default();
|
|
12
|
-
Assignment.prototype.accept = function (visitor) {
|
|
13
|
-
this.value = visitor.visit(this.value);
|
|
14
|
-
};
|
|
15
|
-
Assignment.prototype.eval = function (context) {
|
|
16
|
-
if (this.value.eval) {
|
|
17
|
-
return new Assignment(this.key, this.value.eval(context));
|
|
18
|
-
}
|
|
19
|
-
return this;
|
|
20
|
-
};
|
|
21
|
-
Assignment.prototype.genCSS = function (context, output) {
|
|
22
|
-
output.add(this.key + "=");
|
|
23
|
-
if (this.value.genCSS) {
|
|
24
|
-
this.value.genCSS(context, output);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
output.add(this.value);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
Assignment.prototype.type = 'Assignment';
|
|
31
|
-
exports.default = Assignment;
|
|
32
|
-
//# sourceMappingURL=assignment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.js","sourceRoot":"","sources":["../../../src/less/tree/assignment.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAE1B,IAAM,UAAU,GAAG,UAAS,GAAG,EAAE,GAAG;IAChC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACf,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;AACrB,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AAElC,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO;IAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,CAAC,IAAI,GAAG,UAAS,OAAO;IACxC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;QACjB,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;KAC7D;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO,EAAE,MAAM;IAClD,MAAM,CAAC,GAAG,CAAI,IAAI,CAAC,GAAG,MAAG,CAAC,CAAC;IAC3B,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;QACnB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;KACtC;SAAM;QACH,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC1B;AACL,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,CAAC,IAAI,GAAG,YAAY,CAAC;AACzC,kBAAe,UAAU,CAAC","sourcesContent":["import Node from './node';\n\nconst Assignment = function(key, val) {\n this.key = key;\n this.value = val;\n};\n\nAssignment.prototype = new Node();\n\nAssignment.prototype.accept = function(visitor) {\n this.value = visitor.visit(this.value);\n};\n\nAssignment.prototype.eval = function(context) {\n if (this.value.eval) {\n return new Assignment(this.key, this.value.eval(context));\n }\n return this;\n};\n\nAssignment.prototype.genCSS = function(context, output) {\n output.add(`${this.key}=`);\n if (this.value.genCSS) {\n this.value.genCSS(context, output);\n } else {\n output.add(this.value);\n }\n};\n\nAssignment.prototype.type = 'Assignment';\nexport default Assignment;\n"]}
|
|
@@ -1,146 +0,0 @@
|
|
|
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 selector_1 = __importDefault(require("./selector"));
|
|
8
|
-
var ruleset_1 = __importDefault(require("./ruleset"));
|
|
9
|
-
var anonymous_1 = __importDefault(require("./anonymous"));
|
|
10
|
-
var AtRule = function (name, value, rules, index, currentFileInfo, debugInfo, isRooted, visibilityInfo) {
|
|
11
|
-
var i;
|
|
12
|
-
this.name = name;
|
|
13
|
-
this.value = (value instanceof node_1.default) ? value : (value ? new anonymous_1.default(value) : value);
|
|
14
|
-
if (rules) {
|
|
15
|
-
if (Array.isArray(rules)) {
|
|
16
|
-
this.rules = rules;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
this.rules = [rules];
|
|
20
|
-
this.rules[0].selectors = (new selector_1.default([], null, null, index, currentFileInfo)).createEmptySelectors();
|
|
21
|
-
}
|
|
22
|
-
for (i = 0; i < this.rules.length; i++) {
|
|
23
|
-
this.rules[i].allowImports = true;
|
|
24
|
-
}
|
|
25
|
-
this.setParent(this.rules, this);
|
|
26
|
-
}
|
|
27
|
-
this._index = index;
|
|
28
|
-
this._fileInfo = currentFileInfo;
|
|
29
|
-
this.debugInfo = debugInfo;
|
|
30
|
-
this.isRooted = isRooted || false;
|
|
31
|
-
this.copyVisibilityInfo(visibilityInfo);
|
|
32
|
-
this.allowRoot = true;
|
|
33
|
-
};
|
|
34
|
-
AtRule.prototype = new node_1.default();
|
|
35
|
-
AtRule.prototype.accept = function (visitor) {
|
|
36
|
-
var value = this.value;
|
|
37
|
-
var rules = this.rules;
|
|
38
|
-
if (rules) {
|
|
39
|
-
this.rules = visitor.visitArray(rules);
|
|
40
|
-
}
|
|
41
|
-
if (value) {
|
|
42
|
-
this.value = visitor.visit(value);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
AtRule.prototype.isRulesetLike = function () {
|
|
46
|
-
return this.rules || !this.isCharset();
|
|
47
|
-
};
|
|
48
|
-
AtRule.prototype.isCharset = function () {
|
|
49
|
-
return '@charset' === this.name;
|
|
50
|
-
};
|
|
51
|
-
AtRule.prototype.genCSS = function (context, output) {
|
|
52
|
-
var value = this.value;
|
|
53
|
-
var rules = this.rules;
|
|
54
|
-
output.add(this.name, this.fileInfo(), this.getIndex());
|
|
55
|
-
if (value) {
|
|
56
|
-
output.add(' ');
|
|
57
|
-
value.genCSS(context, output);
|
|
58
|
-
}
|
|
59
|
-
if (rules) {
|
|
60
|
-
this.outputRuleset(context, output, rules);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
output.add(';');
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
AtRule.prototype.eval = function (context) {
|
|
67
|
-
var mediaPathBackup;
|
|
68
|
-
var mediaBlocksBackup;
|
|
69
|
-
var value = this.value;
|
|
70
|
-
var rules = this.rules;
|
|
71
|
-
// media stored inside other atrule should not bubble over it
|
|
72
|
-
// backpup media bubbling information
|
|
73
|
-
mediaPathBackup = context.mediaPath;
|
|
74
|
-
mediaBlocksBackup = context.mediaBlocks;
|
|
75
|
-
// deleted media bubbling information
|
|
76
|
-
context.mediaPath = [];
|
|
77
|
-
context.mediaBlocks = [];
|
|
78
|
-
if (value) {
|
|
79
|
-
value = value.eval(context);
|
|
80
|
-
}
|
|
81
|
-
if (rules) {
|
|
82
|
-
// assuming that there is only one rule at this point - that is how parser constructs the rule
|
|
83
|
-
rules = [rules[0].eval(context)];
|
|
84
|
-
rules[0].root = true;
|
|
85
|
-
}
|
|
86
|
-
// restore media bubbling information
|
|
87
|
-
context.mediaPath = mediaPathBackup;
|
|
88
|
-
context.mediaBlocks = mediaBlocksBackup;
|
|
89
|
-
return new AtRule(this.name, value, rules, this.getIndex(), this.fileInfo(), this.debugInfo, this.isRooted, this.visibilityInfo());
|
|
90
|
-
};
|
|
91
|
-
AtRule.prototype.variable = function (name) {
|
|
92
|
-
if (this.rules) {
|
|
93
|
-
// assuming that there is only one rule at this point - that is how parser constructs the rule
|
|
94
|
-
return ruleset_1.default.prototype.variable.call(this.rules[0], name);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
AtRule.prototype.find = function () {
|
|
98
|
-
var args = [];
|
|
99
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
100
|
-
args[_i] = arguments[_i];
|
|
101
|
-
}
|
|
102
|
-
if (this.rules) {
|
|
103
|
-
// assuming that there is only one rule at this point - that is how parser constructs the rule
|
|
104
|
-
return ruleset_1.default.prototype.find.apply(this.rules[0], args);
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
AtRule.prototype.rulesets = function () {
|
|
108
|
-
if (this.rules) {
|
|
109
|
-
// assuming that there is only one rule at this point - that is how parser constructs the rule
|
|
110
|
-
return ruleset_1.default.prototype.rulesets.apply(this.rules[0]);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
AtRule.prototype.outputRuleset = function (context, output, rules) {
|
|
114
|
-
var ruleCnt = rules.length;
|
|
115
|
-
var i;
|
|
116
|
-
context.tabLevel = (context.tabLevel | 0) + 1;
|
|
117
|
-
// Compressed
|
|
118
|
-
if (context.compress) {
|
|
119
|
-
output.add('{');
|
|
120
|
-
for (i = 0; i < ruleCnt; i++) {
|
|
121
|
-
rules[i].genCSS(context, output);
|
|
122
|
-
}
|
|
123
|
-
output.add('}');
|
|
124
|
-
context.tabLevel--;
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
// Non-compressed
|
|
128
|
-
var tabSetStr = "\n" + Array(context.tabLevel).join(' ');
|
|
129
|
-
var tabRuleStr = tabSetStr + " ";
|
|
130
|
-
if (!ruleCnt) {
|
|
131
|
-
output.add(" {" + tabSetStr + "}");
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
output.add(" {" + tabRuleStr);
|
|
135
|
-
rules[0].genCSS(context, output);
|
|
136
|
-
for (i = 1; i < ruleCnt; i++) {
|
|
137
|
-
output.add(tabRuleStr);
|
|
138
|
-
rules[i].genCSS(context, output);
|
|
139
|
-
}
|
|
140
|
-
output.add(tabSetStr + "}");
|
|
141
|
-
}
|
|
142
|
-
context.tabLevel--;
|
|
143
|
-
};
|
|
144
|
-
AtRule.prototype.type = 'AtRule';
|
|
145
|
-
exports.default = AtRule;
|
|
146
|
-
//# sourceMappingURL=atrule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atrule.js","sourceRoot":"","sources":["../../../src/less/tree/atrule.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,wDAAkC;AAClC,sDAAgC;AAChC,0DAAoC;AAEpC,IAAM,MAAM,GAAG,UACX,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,eAAe,EACf,SAAS,EACT,QAAQ,EACR,cAAc;IAEd,IAAI,CAAC,CAAC;IAEN,IAAI,CAAC,IAAI,GAAI,IAAI,CAAC;IAClB,IAAI,CAAC,KAAK,GAAG,CAAC,KAAK,YAAY,cAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACtF,IAAI,KAAK,EAAE;QACP,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACtB;aAAM;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CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE;YAC1B,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACvB,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;SACpC;QACD,MAAM,CAAC,GAAG,CAAI,SAAS,MAAG,CAAC,CAAC;KAC/B;IAED,OAAO,CAAC,QAAQ,EAAE,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,QAAQ,CAAC;AACjC,kBAAe,MAAM,CAAC","sourcesContent":["import Node from './node';\nimport Selector from './selector';\nimport Ruleset from './ruleset';\nimport Anonymous from './anonymous';\n\nconst AtRule = function(\n name,\n value,\n rules,\n index,\n currentFileInfo,\n debugInfo,\n isRooted,\n visibilityInfo\n) {\n let i;\n\n this.name = name;\n this.value = (value instanceof Node) ? value : (value ? new Anonymous(value) : value);\n if (rules) {\n if (Array.isArray(rules)) {\n this.rules = rules;\n } else {\n this.rules = [rules];\n this.rules[0].selectors = (new Selector([], null, null, index, currentFileInfo)).createEmptySelectors();\n }\n for (i = 0; i < this.rules.length; i++) {\n this.rules[i].allowImports = true;\n }\n this.setParent(this.rules, this);\n }\n this._index = index;\n this._fileInfo = currentFileInfo;\n this.debugInfo = debugInfo;\n this.isRooted = isRooted || false;\n this.copyVisibilityInfo(visibilityInfo);\n this.allowRoot = true;\n};\n\nAtRule.prototype = new Node();\n\nAtRule.prototype.accept = function(visitor) {\n const value = this.value;\n const rules = this.rules;\n if (rules) {\n this.rules = visitor.visitArray(rules);\n }\n if (value) {\n this.value = visitor.visit(value);\n }\n};\n\nAtRule.prototype.isRulesetLike = function() {\n return this.rules || !this.isCharset();\n};\n\nAtRule.prototype.isCharset = function() {\n return '@charset' === this.name;\n};\n\nAtRule.prototype.genCSS = function(context, output) {\n const value = this.value;\n const rules = this.rules;\n output.add(this.name, this.fileInfo(), this.getIndex());\n if (value) {\n output.add(' ');\n value.genCSS(context, output);\n }\n if (rules) {\n this.outputRuleset(context, output, rules);\n } else {\n output.add(';');\n }\n};\n\nAtRule.prototype.eval = function(context) {\n let mediaPathBackup;\n let mediaBlocksBackup;\n let value = this.value;\n let rules = this.rules;\n\n // media stored inside other atrule should not bubble over it\n // backpup media bubbling information\n mediaPathBackup = context.mediaPath;\n mediaBlocksBackup = context.mediaBlocks;\n // deleted media bubbling information\n context.mediaPath = [];\n context.mediaBlocks = [];\n\n if (value) {\n value = value.eval(context);\n }\n if (rules) {\n // assuming that there is only one rule at this point - that is how parser constructs the rule\n rules = [rules[0].eval(context)];\n rules[0].root = true;\n }\n // restore media bubbling information\n context.mediaPath = mediaPathBackup;\n context.mediaBlocks = mediaBlocksBackup;\n\n return new AtRule(this.name, value, rules,\n this.getIndex(), this.fileInfo(), this.debugInfo, this.isRooted, this.visibilityInfo());\n};\n\nAtRule.prototype.variable = function(name) {\n if (this.rules) {\n // assuming that there is only one rule at this point - that is how parser constructs the rule\n return Ruleset.prototype.variable.call(this.rules[0], name);\n }\n};\n\nAtRule.prototype.find = function(...args) {\n if (this.rules) {\n // assuming that there is only one rule at this point - that is how parser constructs the rule\n return Ruleset.prototype.find.apply(this.rules[0], args);\n }\n};\n\nAtRule.prototype.rulesets = function() {\n if (this.rules) {\n // assuming that there is only one rule at this point - that is how parser constructs the rule\n return Ruleset.prototype.rulesets.apply(this.rules[0]);\n }\n};\n\nAtRule.prototype.outputRuleset = function(context, output, rules) {\n const ruleCnt = rules.length;\n let i;\n context.tabLevel = (context.tabLevel | 0) + 1;\n\n // Compressed\n if (context.compress) {\n output.add('{');\n for (i = 0; i < ruleCnt; i++) {\n rules[i].genCSS(context, output);\n }\n output.add('}');\n context.tabLevel--;\n return;\n }\n\n // Non-compressed\n const tabSetStr = `\\n${Array(context.tabLevel).join(' ')}`;\n\n const tabRuleStr = `${tabSetStr} `;\n if (!ruleCnt) {\n output.add(` {${tabSetStr}}`);\n } else {\n output.add(` {${tabRuleStr}`);\n rules[0].genCSS(context, output);\n for (i = 1; i < ruleCnt; i++) {\n output.add(tabRuleStr);\n rules[i].genCSS(context, output);\n }\n output.add(`${tabSetStr}}`);\n }\n\n context.tabLevel--;\n};\n\nAtRule.prototype.type = 'AtRule';\nexport default AtRule;\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
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 Attribute = function (key, op, value) {
|
|
8
|
-
this.key = key;
|
|
9
|
-
this.op = op;
|
|
10
|
-
this.value = value;
|
|
11
|
-
};
|
|
12
|
-
Attribute.prototype = new node_1.default();
|
|
13
|
-
Attribute.prototype.eval = function (context) {
|
|
14
|
-
return new Attribute(this.key.eval ? this.key.eval(context) : this.key, this.op, (this.value && this.value.eval) ? this.value.eval(context) : this.value);
|
|
15
|
-
};
|
|
16
|
-
Attribute.prototype.genCSS = function (context, output) {
|
|
17
|
-
output.add(this.toCSS(context));
|
|
18
|
-
};
|
|
19
|
-
Attribute.prototype.toCSS = function (context) {
|
|
20
|
-
var value = this.key.toCSS ? this.key.toCSS(context) : this.key;
|
|
21
|
-
if (this.op) {
|
|
22
|
-
value += this.op;
|
|
23
|
-
value += (this.value.toCSS ? this.value.toCSS(context) : this.value);
|
|
24
|
-
}
|
|
25
|
-
return "[" + value + "]";
|
|
26
|
-
};
|
|
27
|
-
Attribute.prototype.type = 'Attribute';
|
|
28
|
-
exports.default = Attribute;
|
|
29
|
-
//# sourceMappingURL=attribute.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.js","sourceRoot":"","sources":["../../../src/less/tree/attribute.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAE1B,IAAM,SAAS,GAAG,UAAS,G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CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACxE;IAED,OAAO,MAAI,KAAK,MAAG,CAAC;AACxB,CAAC,CAAC;AAEF,SAAS,CAAC,SAAS,CAAC,IAAI,GAAG,WAAW,CAAC;AACvC,kBAAe,SAAS,CAAC","sourcesContent":["import Node from './node';\n\nconst Attribute = function(key, op, value) {\n this.key = key;\n this.op = op;\n this.value = value;\n};\n\nAttribute.prototype = new Node();\n\nAttribute.prototype.eval = function(context) {\n return new Attribute(this.key.eval ? this.key.eval(context) : this.key,\n this.op, (this.value && this.value.eval) ? this.value.eval(context) : this.value);\n};\n\nAttribute.prototype.genCSS = function(context, output) {\n output.add(this.toCSS(context));\n};\n\nAttribute.prototype.toCSS = function(context) {\n let value = this.key.toCSS ? this.key.toCSS(context) : this.key;\n\n if (this.op) {\n value += this.op;\n value += (this.value.toCSS ? this.value.toCSS(context) : this.value);\n }\n\n return `[${value}]`;\n};\n\nAttribute.prototype.type = 'Attribute';\nexport default Attribute;\n"]}
|