@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.
Files changed (1075) hide show
  1. package/README.md +14 -1
  2. package/RELEASE_NOTES.md +3 -2
  3. package/common/embed/embedding.d.ts +1 -1
  4. package/common/embed/embedding.js +6 -8
  5. package/common/package.json +2 -1
  6. package/common/tsconfig.sdk.tsbuildinfo +1 -1
  7. package/lib/cmd/login.js +12 -17
  8. package/lib/cmd/publish.js +2 -7
  9. package/lib/cmd/register.js +10 -13
  10. package/lib/sdk.js +4 -6
  11. package/package.json +23 -24
  12. package/rollup.config.mjs +29 -0
  13. package/server/index.js +2 -1
  14. package/server/views/index.html +5 -2
  15. package/site/embedded.js +2 -1
  16. package/site/images/icon-add-folder.svg +1 -1
  17. package/site/script.js +3 -2
  18. package/site/sdk.css +1 -1
  19. package/my_template/node_modules/.package-lock.json +0 -525
  20. package/my_template/node_modules/@babel/code-frame/LICENSE +0 -22
  21. package/my_template/node_modules/@babel/code-frame/README.md +0 -19
  22. package/my_template/node_modules/@babel/code-frame/lib/index.js +0 -157
  23. package/my_template/node_modules/@babel/code-frame/lib/index.js.map +0 -1
  24. package/my_template/node_modules/@babel/code-frame/package.json +0 -30
  25. package/my_template/node_modules/@babel/helper-validator-identifier/LICENSE +0 -22
  26. package/my_template/node_modules/@babel/helper-validator-identifier/README.md +0 -19
  27. package/my_template/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -70
  28. package/my_template/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
  29. package/my_template/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -57
  30. package/my_template/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
  31. package/my_template/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -35
  32. package/my_template/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
  33. package/my_template/node_modules/@babel/helper-validator-identifier/package.json +0 -28
  34. package/my_template/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +0 -73
  35. package/my_template/node_modules/@babel/highlight/LICENSE +0 -22
  36. package/my_template/node_modules/@babel/highlight/README.md +0 -19
  37. package/my_template/node_modules/@babel/highlight/lib/index.js +0 -105
  38. package/my_template/node_modules/@babel/highlight/lib/index.js.map +0 -1
  39. package/my_template/node_modules/@babel/highlight/package.json +0 -29
  40. package/my_template/node_modules/@types/estree/LICENSE +0 -21
  41. package/my_template/node_modules/@types/estree/README.md +0 -15
  42. package/my_template/node_modules/@types/estree/flow.d.ts +0 -167
  43. package/my_template/node_modules/@types/estree/index.d.ts +0 -683
  44. package/my_template/node_modules/@types/estree/package.json +0 -26
  45. package/my_template/node_modules/@types/node/LICENSE +0 -21
  46. package/my_template/node_modules/@types/node/README.md +0 -15
  47. package/my_template/node_modules/@types/node/assert/strict.d.ts +0 -8
  48. package/my_template/node_modules/@types/node/assert.d.ts +0 -996
  49. package/my_template/node_modules/@types/node/async_hooks.d.ts +0 -539
  50. package/my_template/node_modules/@types/node/buffer.d.ts +0 -2362
  51. package/my_template/node_modules/@types/node/child_process.d.ts +0 -1540
  52. package/my_template/node_modules/@types/node/cluster.d.ts +0 -432
  53. package/my_template/node_modules/@types/node/console.d.ts +0 -415
  54. package/my_template/node_modules/@types/node/constants.d.ts +0 -19
  55. package/my_template/node_modules/@types/node/crypto.d.ts +0 -4456
  56. package/my_template/node_modules/@types/node/dgram.d.ts +0 -586
  57. package/my_template/node_modules/@types/node/diagnostics_channel.d.ts +0 -191
  58. package/my_template/node_modules/@types/node/dns/promises.d.ts +0 -425
  59. package/my_template/node_modules/@types/node/dns.d.ts +0 -809
  60. package/my_template/node_modules/@types/node/dom-events.d.ts +0 -122
  61. package/my_template/node_modules/@types/node/domain.d.ts +0 -170
  62. package/my_template/node_modules/@types/node/events.d.ts +0 -879
  63. package/my_template/node_modules/@types/node/fs/promises.d.ts +0 -1239
  64. package/my_template/node_modules/@types/node/fs.d.ts +0 -4291
  65. package/my_template/node_modules/@types/node/globals.d.ts +0 -385
  66. package/my_template/node_modules/@types/node/globals.global.d.ts +0 -1
  67. package/my_template/node_modules/@types/node/http.d.ts +0 -1888
  68. package/my_template/node_modules/@types/node/http2.d.ts +0 -2382
  69. package/my_template/node_modules/@types/node/https.d.ts +0 -550
  70. package/my_template/node_modules/@types/node/index.d.ts +0 -88
  71. package/my_template/node_modules/@types/node/inspector.d.ts +0 -2747
  72. package/my_template/node_modules/@types/node/module.d.ts +0 -301
  73. package/my_template/node_modules/@types/node/net.d.ts +0 -949
  74. package/my_template/node_modules/@types/node/os.d.ts +0 -478
  75. package/my_template/node_modules/@types/node/package.json +0 -230
  76. package/my_template/node_modules/@types/node/path.d.ts +0 -191
  77. package/my_template/node_modules/@types/node/perf_hooks.d.ts +0 -639
  78. package/my_template/node_modules/@types/node/process.d.ts +0 -1539
  79. package/my_template/node_modules/@types/node/punycode.d.ts +0 -117
  80. package/my_template/node_modules/@types/node/querystring.d.ts +0 -141
  81. package/my_template/node_modules/@types/node/readline/promises.d.ts +0 -150
  82. package/my_template/node_modules/@types/node/readline.d.ts +0 -539
  83. package/my_template/node_modules/@types/node/repl.d.ts +0 -430
  84. package/my_template/node_modules/@types/node/stream/consumers.d.ts +0 -12
  85. package/my_template/node_modules/@types/node/stream/promises.d.ts +0 -83
  86. package/my_template/node_modules/@types/node/stream/web.d.ts +0 -350
  87. package/my_template/node_modules/@types/node/stream.d.ts +0 -1701
  88. package/my_template/node_modules/@types/node/string_decoder.d.ts +0 -67
  89. package/my_template/node_modules/@types/node/test.d.ts +0 -1382
  90. package/my_template/node_modules/@types/node/timers/promises.d.ts +0 -93
  91. package/my_template/node_modules/@types/node/timers.d.ts +0 -240
  92. package/my_template/node_modules/@types/node/tls.d.ts +0 -1210
  93. package/my_template/node_modules/@types/node/trace_events.d.ts +0 -182
  94. package/my_template/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  95. package/my_template/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  96. package/my_template/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  97. package/my_template/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  98. package/my_template/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  99. package/my_template/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  100. package/my_template/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  101. package/my_template/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  102. package/my_template/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
  103. package/my_template/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
  104. package/my_template/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
  105. package/my_template/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  106. package/my_template/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  107. package/my_template/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  108. package/my_template/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  109. package/my_template/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  110. package/my_template/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  111. package/my_template/node_modules/@types/node/ts4.8/fs.d.ts +0 -4291
  112. package/my_template/node_modules/@types/node/ts4.8/globals.d.ts +0 -385
  113. package/my_template/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  114. package/my_template/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
  115. package/my_template/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  116. package/my_template/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  117. package/my_template/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  118. package/my_template/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  119. package/my_template/node_modules/@types/node/ts4.8/module.d.ts +0 -301
  120. package/my_template/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  121. package/my_template/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  122. package/my_template/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  123. package/my_template/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
  124. package/my_template/node_modules/@types/node/ts4.8/process.d.ts +0 -1539
  125. package/my_template/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  126. package/my_template/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  127. package/my_template/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  128. package/my_template/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  129. package/my_template/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  130. package/my_template/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  131. package/my_template/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  132. package/my_template/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
  133. package/my_template/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  134. package/my_template/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  135. package/my_template/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
  136. package/my_template/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  137. package/my_template/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  138. package/my_template/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  139. package/my_template/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  140. package/my_template/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  141. package/my_template/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  142. package/my_template/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  143. package/my_template/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
  144. package/my_template/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  145. package/my_template/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  146. package/my_template/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  147. package/my_template/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  148. package/my_template/node_modules/@types/node/tty.d.ts +0 -208
  149. package/my_template/node_modules/@types/node/url.d.ts +0 -927
  150. package/my_template/node_modules/@types/node/util.d.ts +0 -2183
  151. package/my_template/node_modules/@types/node/v8.d.ts +0 -635
  152. package/my_template/node_modules/@types/node/vm.d.ts +0 -903
  153. package/my_template/node_modules/@types/node/wasi.d.ts +0 -158
  154. package/my_template/node_modules/@types/node/worker_threads.d.ts +0 -691
  155. package/my_template/node_modules/@types/node/zlib.d.ts +0 -517
  156. package/my_template/node_modules/@types/resolve/LICENSE +0 -21
  157. package/my_template/node_modules/@types/resolve/README.md +0 -16
  158. package/my_template/node_modules/@types/resolve/index.d.ts +0 -113
  159. package/my_template/node_modules/@types/resolve/package.json +0 -29
  160. package/my_template/node_modules/acorn/CHANGELOG.md +0 -620
  161. package/my_template/node_modules/acorn/LICENSE +0 -21
  162. package/my_template/node_modules/acorn/README.md +0 -269
  163. package/my_template/node_modules/acorn/bin/acorn +0 -4
  164. package/my_template/node_modules/acorn/dist/acorn.d.ts +0 -209
  165. package/my_template/node_modules/acorn/dist/acorn.js +0 -5186
  166. package/my_template/node_modules/acorn/dist/acorn.js.map +0 -1
  167. package/my_template/node_modules/acorn/dist/acorn.mjs +0 -5155
  168. package/my_template/node_modules/acorn/dist/acorn.mjs.d.ts +0 -2
  169. package/my_template/node_modules/acorn/dist/acorn.mjs.map +0 -1
  170. package/my_template/node_modules/acorn/dist/bin.js +0 -64
  171. package/my_template/node_modules/acorn/package.json +0 -35
  172. package/my_template/node_modules/amdefine/LICENSE +0 -58
  173. package/my_template/node_modules/amdefine/README.md +0 -171
  174. package/my_template/node_modules/amdefine/amdefine.js +0 -301
  175. package/my_template/node_modules/amdefine/intercept.js +0 -36
  176. package/my_template/node_modules/amdefine/package.json +0 -16
  177. package/my_template/node_modules/ansi-styles/index.js +0 -165
  178. package/my_template/node_modules/ansi-styles/license +0 -9
  179. package/my_template/node_modules/ansi-styles/package.json +0 -56
  180. package/my_template/node_modules/ansi-styles/readme.md +0 -147
  181. package/my_template/node_modules/builtin-modules/builtin-modules.json +0 -43
  182. package/my_template/node_modules/builtin-modules/index.d.ts +0 -14
  183. package/my_template/node_modules/builtin-modules/index.js +0 -11
  184. package/my_template/node_modules/builtin-modules/license +0 -9
  185. package/my_template/node_modules/builtin-modules/package.json +0 -44
  186. package/my_template/node_modules/builtin-modules/readme.md +0 -44
  187. package/my_template/node_modules/builtin-modules/static.d.ts +0 -14
  188. package/my_template/node_modules/builtin-modules/static.js +0 -2
  189. package/my_template/node_modules/chalk/index.js +0 -228
  190. package/my_template/node_modules/chalk/index.js.flow +0 -93
  191. package/my_template/node_modules/chalk/license +0 -9
  192. package/my_template/node_modules/chalk/package.json +0 -71
  193. package/my_template/node_modules/chalk/readme.md +0 -314
  194. package/my_template/node_modules/chalk/templates.js +0 -128
  195. package/my_template/node_modules/chalk/types/index.d.ts +0 -97
  196. package/my_template/node_modules/clean-css/History.md +0 -1138
  197. package/my_template/node_modules/clean-css/LICENSE +0 -19
  198. package/my_template/node_modules/clean-css/README.md +0 -369
  199. package/my_template/node_modules/clean-css/bin/cleancss +0 -184
  200. package/my_template/node_modules/clean-css/index.js +0 -1
  201. package/my_template/node_modules/clean-css/lib/clean.js +0 -231
  202. package/my_template/node_modules/clean-css/lib/colors/hex-name-shortener.js +0 -186
  203. package/my_template/node_modules/clean-css/lib/colors/hsl.js +0 -67
  204. package/my_template/node_modules/clean-css/lib/colors/rgb.js +0 -16
  205. package/my_template/node_modules/clean-css/lib/imports/inliner.js +0 -399
  206. package/my_template/node_modules/clean-css/lib/properties/break-up.js +0 -335
  207. package/my_template/node_modules/clean-css/lib/properties/can-override.js +0 -142
  208. package/my_template/node_modules/clean-css/lib/properties/clone.js +0 -26
  209. package/my_template/node_modules/clean-css/lib/properties/compactable.js +0 -285
  210. package/my_template/node_modules/clean-css/lib/properties/every-combination.js +0 -28
  211. package/my_template/node_modules/clean-css/lib/properties/has-inherit.js +0 -10
  212. package/my_template/node_modules/clean-css/lib/properties/invalid-property-error.js +0 -10
  213. package/my_template/node_modules/clean-css/lib/properties/optimizer.js +0 -215
  214. package/my_template/node_modules/clean-css/lib/properties/override-compactor.js +0 -384
  215. package/my_template/node_modules/clean-css/lib/properties/populate-components.js +0 -32
  216. package/my_template/node_modules/clean-css/lib/properties/remove-unused.js +0 -10
  217. package/my_template/node_modules/clean-css/lib/properties/restore-from-optimizing.js +0 -60
  218. package/my_template/node_modules/clean-css/lib/properties/restore.js +0 -232
  219. package/my_template/node_modules/clean-css/lib/properties/shorthand-compactor.js +0 -134
  220. package/my_template/node_modules/clean-css/lib/properties/validator.js +0 -197
  221. package/my_template/node_modules/clean-css/lib/properties/vendor-prefixes.js +0 -26
  222. package/my_template/node_modules/clean-css/lib/properties/wrap-for-optimizing.js +0 -118
  223. package/my_template/node_modules/clean-css/lib/selectors/advanced.js +0 -86
  224. package/my_template/node_modules/clean-css/lib/selectors/clean-up.js +0 -89
  225. package/my_template/node_modules/clean-css/lib/selectors/extractor.js +0 -69
  226. package/my_template/node_modules/clean-css/lib/selectors/is-special.js +0 -5
  227. package/my_template/node_modules/clean-css/lib/selectors/merge-adjacent.js +0 -35
  228. package/my_template/node_modules/clean-css/lib/selectors/merge-media-queries.js +0 -64
  229. package/my_template/node_modules/clean-css/lib/selectors/merge-non-adjacent-by-body.js +0 -61
  230. package/my_template/node_modules/clean-css/lib/selectors/merge-non-adjacent-by-selector.js +0 -76
  231. package/my_template/node_modules/clean-css/lib/selectors/reduce-non-adjacent.js +0 -172
  232. package/my_template/node_modules/clean-css/lib/selectors/remove-duplicate-media-queries.js +0 -21
  233. package/my_template/node_modules/clean-css/lib/selectors/remove-duplicates.js +0 -41
  234. package/my_template/node_modules/clean-css/lib/selectors/reorderable.js +0 -99
  235. package/my_template/node_modules/clean-css/lib/selectors/restructure.js +0 -369
  236. package/my_template/node_modules/clean-css/lib/selectors/simple.js +0 -454
  237. package/my_template/node_modules/clean-css/lib/source-maps/track.js +0 -119
  238. package/my_template/node_modules/clean-css/lib/stringifier/helpers.js +0 -167
  239. package/my_template/node_modules/clean-css/lib/stringifier/one-time.js +0 -50
  240. package/my_template/node_modules/clean-css/lib/stringifier/simple.js +0 -22
  241. package/my_template/node_modules/clean-css/lib/stringifier/source-maps.js +0 -96
  242. package/my_template/node_modules/clean-css/lib/text/comments-processor.js +0 -131
  243. package/my_template/node_modules/clean-css/lib/text/escape-store.js +0 -53
  244. package/my_template/node_modules/clean-css/lib/text/expressions-processor.js +0 -117
  245. package/my_template/node_modules/clean-css/lib/text/free-text-processor.js +0 -98
  246. package/my_template/node_modules/clean-css/lib/text/urls-processor.js +0 -75
  247. package/my_template/node_modules/clean-css/lib/tokenizer/extract-properties.js +0 -193
  248. package/my_template/node_modules/clean-css/lib/tokenizer/extract-selectors.js +0 -17
  249. package/my_template/node_modules/clean-css/lib/tokenizer/tokenize.js +0 -297
  250. package/my_template/node_modules/clean-css/lib/urls/rebase.js +0 -30
  251. package/my_template/node_modules/clean-css/lib/urls/reduce.js +0 -154
  252. package/my_template/node_modules/clean-css/lib/urls/rewrite.js +0 -107
  253. package/my_template/node_modules/clean-css/lib/utils/clone-array.js +0 -12
  254. package/my_template/node_modules/clean-css/lib/utils/compatibility.js +0 -162
  255. package/my_template/node_modules/clean-css/lib/utils/input-source-map-tracker.js +0 -284
  256. package/my_template/node_modules/clean-css/lib/utils/object.js +0 -11
  257. package/my_template/node_modules/clean-css/lib/utils/quote-scanner.js +0 -119
  258. package/my_template/node_modules/clean-css/lib/utils/source-reader.js +0 -96
  259. package/my_template/node_modules/clean-css/lib/utils/source-tracker.js +0 -31
  260. package/my_template/node_modules/clean-css/lib/utils/split.js +0 -62
  261. package/my_template/node_modules/clean-css/node_modules/source-map/README.md +0 -510
  262. package/my_template/node_modules/clean-css/node_modules/source-map/build/assert-shim.js +0 -56
  263. package/my_template/node_modules/clean-css/node_modules/source-map/build/mini-require.js +0 -152
  264. package/my_template/node_modules/clean-css/node_modules/source-map/build/prefix-source-map.jsm +0 -21
  265. package/my_template/node_modules/clean-css/node_modules/source-map/build/prefix-utils.jsm +0 -18
  266. package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-browser.js +0 -8
  267. package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-source-map.jsm +0 -6
  268. package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-utils.jsm +0 -21
  269. package/my_template/node_modules/clean-css/node_modules/source-map/build/test-prefix.js +0 -8
  270. package/my_template/node_modules/clean-css/node_modules/source-map/build/test-suffix.js +0 -3
  271. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/array-set.js +0 -107
  272. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/base64-vlq.js +0 -146
  273. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/base64.js +0 -73
  274. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/binary-search.js +0 -117
  275. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/mapping-list.js +0 -86
  276. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/quick-sort.js +0 -120
  277. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -1077
  278. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-map-generator.js +0 -399
  279. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-node.js +0 -414
  280. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/util.js +0 -370
  281. package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map.js +0 -8
  282. package/my_template/node_modules/clean-css/node_modules/source-map/package.json +0 -68
  283. package/my_template/node_modules/clean-css/package.json +0 -53
  284. package/my_template/node_modules/color-convert/CHANGELOG.md +0 -54
  285. package/my_template/node_modules/color-convert/LICENSE +0 -21
  286. package/my_template/node_modules/color-convert/README.md +0 -68
  287. package/my_template/node_modules/color-convert/conversions.js +0 -868
  288. package/my_template/node_modules/color-convert/index.js +0 -78
  289. package/my_template/node_modules/color-convert/package.json +0 -46
  290. package/my_template/node_modules/color-convert/route.js +0 -97
  291. package/my_template/node_modules/color-name/.eslintrc.json +0 -43
  292. package/my_template/node_modules/color-name/LICENSE +0 -8
  293. package/my_template/node_modules/color-name/README.md +0 -11
  294. package/my_template/node_modules/color-name/index.js +0 -152
  295. package/my_template/node_modules/color-name/package.json +0 -25
  296. package/my_template/node_modules/color-name/test.js +0 -7
  297. package/my_template/node_modules/commander/History.md +0 -256
  298. package/my_template/node_modules/commander/LICENSE +0 -22
  299. package/my_template/node_modules/commander/Readme.md +0 -342
  300. package/my_template/node_modules/commander/index.js +0 -1103
  301. package/my_template/node_modules/commander/package.json +0 -33
  302. package/my_template/node_modules/copy-anything/LICENSE +0 -21
  303. package/my_template/node_modules/copy-anything/README.md +0 -130
  304. package/my_template/node_modules/copy-anything/dist/index.cjs +0 -52
  305. package/my_template/node_modules/copy-anything/dist/index.es.js +0 -48
  306. package/my_template/node_modules/copy-anything/dist/types/index.d.ts +0 -15
  307. package/my_template/node_modules/copy-anything/package.json +0 -98
  308. package/my_template/node_modules/errno/.jshintrc +0 -59
  309. package/my_template/node_modules/errno/.travis.yml +0 -19
  310. package/my_template/node_modules/errno/README.md +0 -145
  311. package/my_template/node_modules/errno/build.js +0 -43
  312. package/my_template/node_modules/errno/cli.js +0 -22
  313. package/my_template/node_modules/errno/custom.js +0 -57
  314. package/my_template/node_modules/errno/errno.js +0 -313
  315. package/my_template/node_modules/errno/package.json +0 -33
  316. package/my_template/node_modules/errno/test.js +0 -88
  317. package/my_template/node_modules/escape-string-regexp/index.js +0 -11
  318. package/my_template/node_modules/escape-string-regexp/license +0 -21
  319. package/my_template/node_modules/escape-string-regexp/package.json +0 -41
  320. package/my_template/node_modules/escape-string-regexp/readme.md +0 -27
  321. package/my_template/node_modules/estree-walker/CHANGELOG.md +0 -55
  322. package/my_template/node_modules/estree-walker/README.md +0 -45
  323. package/my_template/node_modules/estree-walker/dist/estree-walker.umd.js +0 -65
  324. package/my_template/node_modules/estree-walker/dist/estree-walker.umd.js.map +0 -1
  325. package/my_template/node_modules/estree-walker/index.d.ts +0 -27
  326. package/my_template/node_modules/estree-walker/package.json +0 -30
  327. package/my_template/node_modules/estree-walker/src/estree-walker.js +0 -51
  328. package/my_template/node_modules/function-bind/.eslintrc +0 -21
  329. package/my_template/node_modules/function-bind/.github/FUNDING.yml +0 -12
  330. package/my_template/node_modules/function-bind/.github/SECURITY.md +0 -3
  331. package/my_template/node_modules/function-bind/.nycrc +0 -13
  332. package/my_template/node_modules/function-bind/CHANGELOG.md +0 -136
  333. package/my_template/node_modules/function-bind/LICENSE +0 -20
  334. package/my_template/node_modules/function-bind/README.md +0 -46
  335. package/my_template/node_modules/function-bind/implementation.js +0 -84
  336. package/my_template/node_modules/function-bind/index.js +0 -5
  337. package/my_template/node_modules/function-bind/package.json +0 -87
  338. package/my_template/node_modules/function-bind/test/.eslintrc +0 -9
  339. package/my_template/node_modules/function-bind/test/index.js +0 -252
  340. package/my_template/node_modules/graceful-fs/LICENSE +0 -15
  341. package/my_template/node_modules/graceful-fs/README.md +0 -143
  342. package/my_template/node_modules/graceful-fs/clone.js +0 -23
  343. package/my_template/node_modules/graceful-fs/graceful-fs.js +0 -448
  344. package/my_template/node_modules/graceful-fs/legacy-streams.js +0 -118
  345. package/my_template/node_modules/graceful-fs/package.json +0 -53
  346. package/my_template/node_modules/graceful-fs/polyfills.js +0 -355
  347. package/my_template/node_modules/graceful-readlink/.travis.yml +0 -5
  348. package/my_template/node_modules/graceful-readlink/LICENSE +0 -22
  349. package/my_template/node_modules/graceful-readlink/README.md +0 -17
  350. package/my_template/node_modules/graceful-readlink/index.js +0 -12
  351. package/my_template/node_modules/graceful-readlink/package.json +0 -18
  352. package/my_template/node_modules/has-flag/index.js +0 -8
  353. package/my_template/node_modules/has-flag/license +0 -9
  354. package/my_template/node_modules/has-flag/package.json +0 -44
  355. package/my_template/node_modules/has-flag/readme.md +0 -70
  356. package/my_template/node_modules/hasown/.eslintrc +0 -5
  357. package/my_template/node_modules/hasown/.github/FUNDING.yml +0 -12
  358. package/my_template/node_modules/hasown/.nycrc +0 -13
  359. package/my_template/node_modules/hasown/CHANGELOG.md +0 -20
  360. package/my_template/node_modules/hasown/LICENSE +0 -21
  361. package/my_template/node_modules/hasown/README.md +0 -40
  362. package/my_template/node_modules/hasown/index.d.ts +0 -3
  363. package/my_template/node_modules/hasown/index.d.ts.map +0 -1
  364. package/my_template/node_modules/hasown/index.js +0 -8
  365. package/my_template/node_modules/hasown/package.json +0 -91
  366. package/my_template/node_modules/hasown/tsconfig.json +0 -49
  367. package/my_template/node_modules/image-size/LICENSE +0 -9
  368. package/my_template/node_modules/image-size/Readme.md +0 -88
  369. package/my_template/node_modules/image-size/bin/image-size.js +0 -36
  370. package/my_template/node_modules/image-size/lib/detector.js +0 -19
  371. package/my_template/node_modules/image-size/lib/index.js +0 -105
  372. package/my_template/node_modules/image-size/lib/readUInt.js +0 -11
  373. package/my_template/node_modules/image-size/lib/types/bmp.js +0 -17
  374. package/my_template/node_modules/image-size/lib/types/dds.js +0 -18
  375. package/my_template/node_modules/image-size/lib/types/gif.js +0 -19
  376. package/my_template/node_modules/image-size/lib/types/jpg.js +0 -62
  377. package/my_template/node_modules/image-size/lib/types/png.js +0 -36
  378. package/my_template/node_modules/image-size/lib/types/psd.js +0 -17
  379. package/my_template/node_modules/image-size/lib/types/svg.js +0 -78
  380. package/my_template/node_modules/image-size/lib/types/tiff.js +0 -118
  381. package/my_template/node_modules/image-size/lib/types/webp.js +0 -69
  382. package/my_template/node_modules/image-size/lib/types.js +0 -13
  383. package/my_template/node_modules/image-size/package.json +0 -49
  384. package/my_template/node_modules/is-core-module/.eslintrc +0 -18
  385. package/my_template/node_modules/is-core-module/.nycrc +0 -9
  386. package/my_template/node_modules/is-core-module/CHANGELOG.md +0 -180
  387. package/my_template/node_modules/is-core-module/LICENSE +0 -20
  388. package/my_template/node_modules/is-core-module/README.md +0 -40
  389. package/my_template/node_modules/is-core-module/core.json +0 -158
  390. package/my_template/node_modules/is-core-module/index.js +0 -69
  391. package/my_template/node_modules/is-core-module/package.json +0 -73
  392. package/my_template/node_modules/is-core-module/test/index.js +0 -133
  393. package/my_template/node_modules/is-module/README.md +0 -41
  394. package/my_template/node_modules/is-module/component.json +0 -11
  395. package/my_template/node_modules/is-module/index.js +0 -11
  396. package/my_template/node_modules/is-module/package.json +0 -20
  397. package/my_template/node_modules/is-what/.babelrc +0 -3
  398. package/my_template/node_modules/is-what/.eslintignore +0 -9
  399. package/my_template/node_modules/is-what/.eslintrc.js +0 -18
  400. package/my_template/node_modules/is-what/.github/FUNDING.yml +0 -12
  401. package/my_template/node_modules/is-what/.prettierrc +0 -9
  402. package/my_template/node_modules/is-what/.vscode/settings.json +0 -9
  403. package/my_template/node_modules/is-what/LICENSE +0 -21
  404. package/my_template/node_modules/is-what/README.md +0 -191
  405. package/my_template/node_modules/is-what/build.js +0 -60
  406. package/my_template/node_modules/is-what/dist/index.cjs.js +0 -364
  407. package/my_template/node_modules/is-what/dist/index.esm.js +0 -327
  408. package/my_template/node_modules/is-what/package.json +0 -86
  409. package/my_template/node_modules/is-what/src/index.ts +0 -395
  410. package/my_template/node_modules/is-what/test/ava.ts +0 -376
  411. package/my_template/node_modules/is-what/test/index.test.js +0 -15
  412. package/my_template/node_modules/is-what/tsconfig.json +0 -11
  413. package/my_template/node_modules/is-what/types/index.d.ts +0 -253
  414. package/my_template/node_modules/jest-worker/LICENSE +0 -21
  415. package/my_template/node_modules/jest-worker/README.md +0 -215
  416. package/my_template/node_modules/jest-worker/build/Farm.d.ts +0 -27
  417. package/my_template/node_modules/jest-worker/build/Farm.d.ts.map +0 -1
  418. package/my_template/node_modules/jest-worker/build/Farm.js +0 -179
  419. package/my_template/node_modules/jest-worker/build/WorkerPool.d.ts +0 -14
  420. package/my_template/node_modules/jest-worker/build/WorkerPool.d.ts.map +0 -1
  421. package/my_template/node_modules/jest-worker/build/WorkerPool.js +0 -49
  422. package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +0 -22
  423. package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts.map +0 -1
  424. package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.js +0 -134
  425. package/my_template/node_modules/jest-worker/build/index.d.ts +0 -46
  426. package/my_template/node_modules/jest-worker/build/index.d.ts.map +0 -1
  427. package/my_template/node_modules/jest-worker/build/index.js +0 -184
  428. package/my_template/node_modules/jest-worker/build/types.d.ts +0 -98
  429. package/my_template/node_modules/jest-worker/build/types.d.ts.map +0 -1
  430. package/my_template/node_modules/jest-worker/build/types.js +0 -43
  431. package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +0 -47
  432. package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts.map +0 -1
  433. package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.js +0 -310
  434. package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +0 -29
  435. package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts.map +0 -1
  436. package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +0 -289
  437. package/my_template/node_modules/jest-worker/build/workers/processChild.d.ts +0 -8
  438. package/my_template/node_modules/jest-worker/build/workers/processChild.d.ts.map +0 -1
  439. package/my_template/node_modules/jest-worker/build/workers/processChild.js +0 -166
  440. package/my_template/node_modules/jest-worker/build/workers/threadChild.d.ts +0 -8
  441. package/my_template/node_modules/jest-worker/build/workers/threadChild.d.ts.map +0 -1
  442. package/my_template/node_modules/jest-worker/build/workers/threadChild.js +0 -176
  443. package/my_template/node_modules/jest-worker/node_modules/supports-color/browser.js +0 -5
  444. package/my_template/node_modules/jest-worker/node_modules/supports-color/index.js +0 -138
  445. package/my_template/node_modules/jest-worker/node_modules/supports-color/license +0 -9
  446. package/my_template/node_modules/jest-worker/node_modules/supports-color/package.json +0 -53
  447. package/my_template/node_modules/jest-worker/node_modules/supports-color/readme.md +0 -85
  448. package/my_template/node_modules/jest-worker/package.json +0 -29
  449. package/my_template/node_modules/js-tokens/CHANGELOG.md +0 -151
  450. package/my_template/node_modules/js-tokens/LICENSE +0 -21
  451. package/my_template/node_modules/js-tokens/README.md +0 -240
  452. package/my_template/node_modules/js-tokens/index.js +0 -23
  453. package/my_template/node_modules/js-tokens/package.json +0 -30
  454. package/my_template/node_modules/less/.eslintignore +0 -5
  455. package/my_template/node_modules/less/.eslintrc.json +0 -3
  456. package/my_template/node_modules/less/Gruntfile.js +0 -420
  457. package/my_template/node_modules/less/README.md +0 -13
  458. package/my_template/node_modules/less/bin/lessc +0 -633
  459. package/my_template/node_modules/less/bower.json +0 -22
  460. package/my_template/node_modules/less/dist/less.js +0 -11275
  461. package/my_template/node_modules/less/dist/less.min.js +0 -11
  462. package/my_template/node_modules/less/dist/less.min.js.map +0 -1
  463. package/my_template/node_modules/less/index.js +0 -1
  464. package/my_template/node_modules/less/lib/less/constants.js +0 -15
  465. package/my_template/node_modules/less/lib/less/constants.js.map +0 -1
  466. package/my_template/node_modules/less/lib/less/contexts.js +0 -171
  467. package/my_template/node_modules/less/lib/less/contexts.js.map +0 -1
  468. package/my_template/node_modules/less/lib/less/data/colors.js +0 -153
  469. package/my_template/node_modules/less/lib/less/data/colors.js.map +0 -1
  470. package/my_template/node_modules/less/lib/less/data/index.js +0 -9
  471. package/my_template/node_modules/less/lib/less/data/index.js.map +0 -1
  472. package/my_template/node_modules/less/lib/less/data/unit-conversions.js +0 -24
  473. package/my_template/node_modules/less/lib/less/data/unit-conversions.js.map +0 -1
  474. package/my_template/node_modules/less/lib/less/default-options.js +0 -57
  475. package/my_template/node_modules/less/lib/less/default-options.js.map +0 -1
  476. package/my_template/node_modules/less/lib/less/environment/abstract-file-manager.js +0 -122
  477. package/my_template/node_modules/less/lib/less/environment/abstract-file-manager.js.map +0 -1
  478. package/my_template/node_modules/less/lib/less/environment/abstract-plugin-loader.js +0 -168
  479. package/my_template/node_modules/less/lib/less/environment/abstract-plugin-loader.js.map +0 -1
  480. package/my_template/node_modules/less/lib/less/environment/environment-api.js +0 -28
  481. package/my_template/node_modules/less/lib/less/environment/environment-api.js.map +0 -1
  482. package/my_template/node_modules/less/lib/less/environment/environment.js +0 -57
  483. package/my_template/node_modules/less/lib/less/environment/environment.js.map +0 -1
  484. package/my_template/node_modules/less/lib/less/environment/file-manager-api.js +0 -106
  485. package/my_template/node_modules/less/lib/less/environment/file-manager-api.js.map +0 -1
  486. package/my_template/node_modules/less/lib/less/functions/boolean.js +0 -21
  487. package/my_template/node_modules/less/lib/less/functions/boolean.js.map +0 -1
  488. package/my_template/node_modules/less/lib/less/functions/color-blending.js +0 -78
  489. package/my_template/node_modules/less/lib/less/functions/color-blending.js.map +0 -1
  490. package/my_template/node_modules/less/lib/less/functions/color.js +0 -404
  491. package/my_template/node_modules/less/lib/less/functions/color.js.map +0 -1
  492. package/my_template/node_modules/less/lib/less/functions/data-uri.js +0 -86
  493. package/my_template/node_modules/less/lib/less/functions/data-uri.js.map +0 -1
  494. package/my_template/node_modules/less/lib/less/functions/default.js +0 -29
  495. package/my_template/node_modules/less/lib/less/functions/default.js.map +0 -1
  496. package/my_template/node_modules/less/lib/less/functions/function-caller.js +0 -66
  497. package/my_template/node_modules/less/lib/less/functions/function-caller.js.map +0 -1
  498. package/my_template/node_modules/less/lib/less/functions/function-registry.js +0 -36
  499. package/my_template/node_modules/less/lib/less/functions/function-registry.js.map +0 -1
  500. package/my_template/node_modules/less/lib/less/functions/index.js +0 -35
  501. package/my_template/node_modules/less/lib/less/functions/index.js.map +0 -1
  502. package/my_template/node_modules/less/lib/less/functions/list.js +0 -136
  503. package/my_template/node_modules/less/lib/less/functions/list.js.map +0 -1
  504. package/my_template/node_modules/less/lib/less/functions/math-helper.js +0 -20
  505. package/my_template/node_modules/less/lib/less/functions/math-helper.js.map +0 -1
  506. package/my_template/node_modules/less/lib/less/functions/math.js +0 -30
  507. package/my_template/node_modules/less/lib/less/functions/math.js.map +0 -1
  508. package/my_template/node_modules/less/lib/less/functions/number.js +0 -98
  509. package/my_template/node_modules/less/lib/less/functions/number.js.map +0 -1
  510. package/my_template/node_modules/less/lib/less/functions/string.js +0 -42
  511. package/my_template/node_modules/less/lib/less/functions/string.js.map +0 -1
  512. package/my_template/node_modules/less/lib/less/functions/svg.js +0 -88
  513. package/my_template/node_modules/less/lib/less/functions/svg.js.map +0 -1
  514. package/my_template/node_modules/less/lib/less/functions/types.js +0 -75
  515. package/my_template/node_modules/less/lib/less/functions/types.js.map +0 -1
  516. package/my_template/node_modules/less/lib/less/import-manager.js +0 -196
  517. package/my_template/node_modules/less/lib/less/import-manager.js.map +0 -1
  518. package/my_template/node_modules/less/lib/less/index.js +0 -130
  519. package/my_template/node_modules/less/lib/less/index.js.map +0 -1
  520. package/my_template/node_modules/less/lib/less/less-error.js +0 -162
  521. package/my_template/node_modules/less/lib/less/less-error.js.map +0 -1
  522. package/my_template/node_modules/less/lib/less/logger.js +0 -37
  523. package/my_template/node_modules/less/lib/less/logger.js.map +0 -1
  524. package/my_template/node_modules/less/lib/less/parse-tree.js +0 -69
  525. package/my_template/node_modules/less/lib/less/parse-tree.js.map +0 -1
  526. package/my_template/node_modules/less/lib/less/parse.js +0 -108
  527. package/my_template/node_modules/less/lib/less/parse.js.map +0 -1
  528. package/my_template/node_modules/less/lib/less/parser/chunker.js +0 -147
  529. package/my_template/node_modules/less/lib/less/parser/chunker.js.map +0 -1
  530. package/my_template/node_modules/less/lib/less/parser/parser-input.js +0 -355
  531. package/my_template/node_modules/less/lib/less/parser/parser-input.js.map +0 -1
  532. package/my_template/node_modules/less/lib/less/parser/parser.js +0 -2262
  533. package/my_template/node_modules/less/lib/less/parser/parser.js.map +0 -1
  534. package/my_template/node_modules/less/lib/less/plugin-manager.js +0 -158
  535. package/my_template/node_modules/less/lib/less/plugin-manager.js.map +0 -1
  536. package/my_template/node_modules/less/lib/less/render.js +0 -64
  537. package/my_template/node_modules/less/lib/less/render.js.map +0 -1
  538. package/my_template/node_modules/less/lib/less/source-map-builder.js +0 -72
  539. package/my_template/node_modules/less/lib/less/source-map-builder.js.map +0 -1
  540. package/my_template/node_modules/less/lib/less/source-map-output.js +0 -140
  541. package/my_template/node_modules/less/lib/less/source-map-output.js.map +0 -1
  542. package/my_template/node_modules/less/lib/less/transform-tree.js +0 -93
  543. package/my_template/node_modules/less/lib/less/transform-tree.js.map +0 -1
  544. package/my_template/node_modules/less/lib/less/tree/anonymous.js +0 -34
  545. package/my_template/node_modules/less/lib/less/tree/anonymous.js.map +0 -1
  546. package/my_template/node_modules/less/lib/less/tree/assignment.js +0 -32
  547. package/my_template/node_modules/less/lib/less/tree/assignment.js.map +0 -1
  548. package/my_template/node_modules/less/lib/less/tree/atrule.js +0 -146
  549. package/my_template/node_modules/less/lib/less/tree/atrule.js.map +0 -1
  550. package/my_template/node_modules/less/lib/less/tree/attribute.js +0 -29
  551. package/my_template/node_modules/less/lib/less/tree/attribute.js.map +0 -1
  552. package/my_template/node_modules/less/lib/less/tree/call.js +0 -104
  553. package/my_template/node_modules/less/lib/less/tree/call.js.map +0 -1
  554. package/my_template/node_modules/less/lib/less/tree/color.js +0 -243
  555. package/my_template/node_modules/less/lib/less/tree/color.js.map +0 -1
  556. package/my_template/node_modules/less/lib/less/tree/combinator.js +0 -29
  557. package/my_template/node_modules/less/lib/less/tree/combinator.js.map +0 -1
  558. package/my_template/node_modules/less/lib/less/tree/comment.js +0 -28
  559. package/my_template/node_modules/less/lib/less/tree/comment.js.map +0 -1
  560. package/my_template/node_modules/less/lib/less/tree/condition.js +0 -41
  561. package/my_template/node_modules/less/lib/less/tree/condition.js.map +0 -1
  562. package/my_template/node_modules/less/lib/less/tree/debug-info.js +0 -37
  563. package/my_template/node_modules/less/lib/less/tree/debug-info.js.map +0 -1
  564. package/my_template/node_modules/less/lib/less/tree/declaration.js +0 -118
  565. package/my_template/node_modules/less/lib/less/tree/declaration.js.map +0 -1
  566. package/my_template/node_modules/less/lib/less/tree/detached-ruleset.js +0 -47
  567. package/my_template/node_modules/less/lib/less/tree/detached-ruleset.js.map +0 -1
  568. package/my_template/node_modules/less/lib/less/tree/dimension.js +0 -159
  569. package/my_template/node_modules/less/lib/less/tree/dimension.js.map +0 -1
  570. package/my_template/node_modules/less/lib/less/tree/element.js +0 -64
  571. package/my_template/node_modules/less/lib/less/tree/element.js.map +0 -1
  572. package/my_template/node_modules/less/lib/less/tree/expression.js +0 -90
  573. package/my_template/node_modules/less/lib/less/tree/expression.js.map +0 -1
  574. package/my_template/node_modules/less/lib/less/tree/extend.js +0 -62
  575. package/my_template/node_modules/less/lib/less/tree/extend.js.map +0 -1
  576. package/my_template/node_modules/less/lib/less/tree/import.js +0 -191
  577. package/my_template/node_modules/less/lib/less/tree/import.js.map +0 -1
  578. package/my_template/node_modules/less/lib/less/tree/index.js +0 -56
  579. package/my_template/node_modules/less/lib/less/tree/index.js.map +0 -1
  580. package/my_template/node_modules/less/lib/less/tree/javascript.js +0 -35
  581. package/my_template/node_modules/less/lib/less/tree/javascript.js.map +0 -1
  582. package/my_template/node_modules/less/lib/less/tree/js-eval-node.js +0 -57
  583. package/my_template/node_modules/less/lib/less/tree/js-eval-node.js.map +0 -1
  584. package/my_template/node_modules/less/lib/less/tree/keyword.js +0 -21
  585. package/my_template/node_modules/less/lib/less/tree/keyword.js.map +0 -1
  586. package/my_template/node_modules/less/lib/less/tree/media.js +0 -152
  587. package/my_template/node_modules/less/lib/less/tree/media.js.map +0 -1
  588. package/my_template/node_modules/less/lib/less/tree/mixin-call.js +0 -194
  589. package/my_template/node_modules/less/lib/less/tree/mixin-call.js.map +0 -1
  590. package/my_template/node_modules/less/lib/less/tree/mixin-definition.js +0 -233
  591. package/my_template/node_modules/less/lib/less/tree/mixin-definition.js.map +0 -1
  592. package/my_template/node_modules/less/lib/less/tree/namespace-value.js +0 -76
  593. package/my_template/node_modules/less/lib/less/tree/namespace-value.js.map +0 -1
  594. package/my_template/node_modules/less/lib/less/tree/negative.js +0 -25
  595. package/my_template/node_modules/less/lib/less/tree/negative.js.map +0 -1
  596. package/my_template/node_modules/less/lib/less/tree/node.js +0 -166
  597. package/my_template/node_modules/less/lib/less/tree/node.js.map +0 -1
  598. package/my_template/node_modules/less/lib/less/tree/operation.js +0 -77
  599. package/my_template/node_modules/less/lib/less/tree/operation.js.map +0 -1
  600. package/my_template/node_modules/less/lib/less/tree/paren.js +0 -21
  601. package/my_template/node_modules/less/lib/less/tree/paren.js.map +0 -1
  602. package/my_template/node_modules/less/lib/less/tree/property.js +0 -62
  603. package/my_template/node_modules/less/lib/less/tree/property.js.map +0 -1
  604. package/my_template/node_modules/less/lib/less/tree/quoted.js +0 -66
  605. package/my_template/node_modules/less/lib/less/tree/quoted.js.map +0 -1
  606. package/my_template/node_modules/less/lib/less/tree/ruleset.js +0 -786
  607. package/my_template/node_modules/less/lib/less/tree/ruleset.js.map +0 -1
  608. package/my_template/node_modules/less/lib/less/tree/selector.js +0 -126
  609. package/my_template/node_modules/less/lib/less/tree/selector.js.map +0 -1
  610. package/my_template/node_modules/less/lib/less/tree/unicode-descriptor.js +0 -13
  611. package/my_template/node_modules/less/lib/less/tree/unicode-descriptor.js.map +0 -1
  612. package/my_template/node_modules/less/lib/less/tree/unit.js +0 -141
  613. package/my_template/node_modules/less/lib/less/tree/unit.js.map +0 -1
  614. package/my_template/node_modules/less/lib/less/tree/url.js +0 -60
  615. package/my_template/node_modules/less/lib/less/tree/url.js.map +0 -1
  616. package/my_template/node_modules/less/lib/less/tree/value.js +0 -43
  617. package/my_template/node_modules/less/lib/less/tree/value.js.map +0 -1
  618. package/my_template/node_modules/less/lib/less/tree/variable-call.js +0 -44
  619. package/my_template/node_modules/less/lib/less/tree/variable-call.js.map +0 -1
  620. package/my_template/node_modules/less/lib/less/tree/variable.js +0 -61
  621. package/my_template/node_modules/less/lib/less/tree/variable.js.map +0 -1
  622. package/my_template/node_modules/less/lib/less/utils.js +0 -143
  623. package/my_template/node_modules/less/lib/less/utils.js.map +0 -1
  624. package/my_template/node_modules/less/lib/less/visitors/extend-visitor.js +0 -462
  625. package/my_template/node_modules/less/lib/less/visitors/extend-visitor.js.map +0 -1
  626. package/my_template/node_modules/less/lib/less/visitors/import-sequencer.js +0 -61
  627. package/my_template/node_modules/less/lib/less/visitors/import-sequencer.js.map +0 -1
  628. package/my_template/node_modules/less/lib/less/visitors/import-visitor.js +0 -202
  629. package/my_template/node_modules/less/lib/less/visitors/import-visitor.js.map +0 -1
  630. package/my_template/node_modules/less/lib/less/visitors/index.js +0 -20
  631. package/my_template/node_modules/less/lib/less/visitors/index.js.map +0 -1
  632. package/my_template/node_modules/less/lib/less/visitors/join-selector-visitor.js +0 -57
  633. package/my_template/node_modules/less/lib/less/visitors/join-selector-visitor.js.map +0 -1
  634. package/my_template/node_modules/less/lib/less/visitors/set-tree-visibility-visitor.js +0 -43
  635. package/my_template/node_modules/less/lib/less/visitors/set-tree-visibility-visitor.js.map +0 -1
  636. package/my_template/node_modules/less/lib/less/visitors/to-css-visitor.js +0 -321
  637. package/my_template/node_modules/less/lib/less/visitors/to-css-visitor.js.map +0 -1
  638. package/my_template/node_modules/less/lib/less/visitors/visitor.js +0 -158
  639. package/my_template/node_modules/less/lib/less/visitors/visitor.js.map +0 -1
  640. package/my_template/node_modules/less/lib/less-browser/add-default-options.js +0 -45
  641. package/my_template/node_modules/less/lib/less-browser/add-default-options.js.map +0 -1
  642. package/my_template/node_modules/less/lib/less-browser/bootstrap.js +0 -64
  643. package/my_template/node_modules/less/lib/less-browser/bootstrap.js.map +0 -1
  644. package/my_template/node_modules/less/lib/less-browser/browser.js +0 -80
  645. package/my_template/node_modules/less/lib/less-browser/browser.js.map +0 -1
  646. package/my_template/node_modules/less/lib/less-browser/cache.js +0 -45
  647. package/my_template/node_modules/less/lib/less-browser/cache.js.map +0 -1
  648. package/my_template/node_modules/less/lib/less-browser/error-reporting.js +0 -183
  649. package/my_template/node_modules/less/lib/less-browser/error-reporting.js.map +0 -1
  650. package/my_template/node_modules/less/lib/less-browser/file-manager.js +0 -122
  651. package/my_template/node_modules/less/lib/less-browser/file-manager.js.map +0 -1
  652. package/my_template/node_modules/less/lib/less-browser/image-size.js +0 -30
  653. package/my_template/node_modules/less/lib/less-browser/image-size.js.map +0 -1
  654. package/my_template/node_modules/less/lib/less-browser/index.js +0 -256
  655. package/my_template/node_modules/less/lib/less-browser/index.js.map +0 -1
  656. package/my_template/node_modules/less/lib/less-browser/log-listener.js +0 -43
  657. package/my_template/node_modules/less/lib/less-browser/log-listener.js.map +0 -1
  658. package/my_template/node_modules/less/lib/less-browser/plugin-loader.js +0 -42
  659. package/my_template/node_modules/less/lib/less-browser/plugin-loader.js.map +0 -1
  660. package/my_template/node_modules/less/lib/less-browser/utils.js +0 -29
  661. package/my_template/node_modules/less/lib/less-browser/utils.js.map +0 -1
  662. package/my_template/node_modules/less/lib/less-node/environment.js +0 -19
  663. package/my_template/node_modules/less/lib/less-node/environment.js.map +0 -1
  664. package/my_template/node_modules/less/lib/less-node/file-manager.js +0 -158
  665. package/my_template/node_modules/less/lib/less-node/file-manager.js.map +0 -1
  666. package/my_template/node_modules/less/lib/less-node/fs.js +0 -11
  667. package/my_template/node_modules/less/lib/less-node/fs.js.map +0 -1
  668. package/my_template/node_modules/less/lib/less-node/image-size.js +0 -54
  669. package/my_template/node_modules/less/lib/less-node/image-size.js.map +0 -1
  670. package/my_template/node_modules/less/lib/less-node/index.js +0 -28
  671. package/my_template/node_modules/less/lib/less-node/index.js.map +0 -1
  672. package/my_template/node_modules/less/lib/less-node/lessc-helper.js +0 -92
  673. package/my_template/node_modules/less/lib/less-node/lessc-helper.js.map +0 -1
  674. package/my_template/node_modules/less/lib/less-node/plugin-loader.js +0 -73
  675. package/my_template/node_modules/less/lib/less-node/plugin-loader.js.map +0 -1
  676. package/my_template/node_modules/less/lib/less-node/url-file-manager.js +0 -68
  677. package/my_template/node_modules/less/lib/less-node/url-file-manager.js.map +0 -1
  678. package/my_template/node_modules/less/package.json +0 -133
  679. package/my_template/node_modules/less/test/.eslintrc.json +0 -9
  680. package/my_template/node_modules/less/test/README.md +0 -3
  681. package/my_template/node_modules/less/test/browser/common.js +0 -230
  682. package/my_template/node_modules/less/test/browser/css/global-vars/simple.css +0 -3
  683. package/my_template/node_modules/less/test/browser/css/modify-vars/simple.css +0 -8
  684. package/my_template/node_modules/less/test/browser/css/plugin/plugin.css +0 -3
  685. package/my_template/node_modules/less/test/browser/css/postProcessor/postProcessor.css +0 -4
  686. package/my_template/node_modules/less/test/browser/css/relative-urls/urls.css +0 -36
  687. package/my_template/node_modules/less/test/browser/css/rewrite-urls/urls.css +0 -36
  688. package/my_template/node_modules/less/test/browser/css/rootpath/urls.css +0 -35
  689. package/my_template/node_modules/less/test/browser/css/rootpath-relative/urls.css +0 -35
  690. package/my_template/node_modules/less/test/browser/css/rootpath-rewrite-urls/urls.css +0 -35
  691. package/my_template/node_modules/less/test/browser/css/urls.css +0 -54
  692. package/my_template/node_modules/less/test/browser/generator/benchmark.config.js +0 -50
  693. package/my_template/node_modules/less/test/browser/generator/generate.js +0 -78
  694. package/my_template/node_modules/less/test/browser/generator/runner.config.js +0 -186
  695. package/my_template/node_modules/less/test/browser/generator/runner.js +0 -2
  696. package/my_template/node_modules/less/test/browser/generator/template.js +0 -83
  697. package/my_template/node_modules/less/test/browser/less/console-errors/test-error.less +0 -3
  698. package/my_template/node_modules/less/test/browser/less/console-errors/test-error.txt +0 -2
  699. package/my_template/node_modules/less/test/browser/less/errors/image-height-error.less +0 -3
  700. package/my_template/node_modules/less/test/browser/less/errors/image-height-error.txt +0 -4
  701. package/my_template/node_modules/less/test/browser/less/errors/image-size-error.less +0 -3
  702. package/my_template/node_modules/less/test/browser/less/errors/image-size-error.txt +0 -4
  703. package/my_template/node_modules/less/test/browser/less/errors/image-width-error.less +0 -3
  704. package/my_template/node_modules/less/test/browser/less/errors/image-width-error.txt +0 -4
  705. package/my_template/node_modules/less/test/browser/less/global-vars/simple.less +0 -3
  706. package/my_template/node_modules/less/test/browser/less/imports/urls.less +0 -4
  707. package/my_template/node_modules/less/test/browser/less/imports/urls2.less +0 -4
  708. package/my_template/node_modules/less/test/browser/less/modify-vars/imports/simple2.less +0 -4
  709. package/my_template/node_modules/less/test/browser/less/modify-vars/simple.less +0 -8
  710. package/my_template/node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/mixin-consumer.less +0 -5
  711. package/my_template/node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less +0 -15
  712. package/my_template/node_modules/less/test/browser/less/plugin/plugin.js +0 -4
  713. package/my_template/node_modules/less/test/browser/less/plugin/plugin.less +0 -4
  714. package/my_template/node_modules/less/test/browser/less/postProcessor/postProcessor.less +0 -4
  715. package/my_template/node_modules/less/test/browser/less/relative-urls/urls.less +0 -34
  716. package/my_template/node_modules/less/test/browser/less/rewrite-urls/urls.less +0 -34
  717. package/my_template/node_modules/less/test/browser/less/rootpath/urls.less +0 -33
  718. package/my_template/node_modules/less/test/browser/less/rootpath-relative/urls.less +0 -33
  719. package/my_template/node_modules/less/test/browser/less/rootpath-rewrite-urls/urls.less +0 -33
  720. package/my_template/node_modules/less/test/browser/less/urls.less +0 -62
  721. package/my_template/node_modules/less/test/browser/runner-VisitorPlugin-options.js +0 -3
  722. package/my_template/node_modules/less/test/browser/runner-VisitorPlugin.js +0 -3
  723. package/my_template/node_modules/less/test/browser/runner-browser-options.js +0 -51
  724. package/my_template/node_modules/less/test/browser/runner-browser-spec.js +0 -12
  725. package/my_template/node_modules/less/test/browser/runner-console-errors.js +0 -5
  726. package/my_template/node_modules/less/test/browser/runner-errors-options.js +0 -6
  727. package/my_template/node_modules/less/test/browser/runner-errors-spec.js +0 -3
  728. package/my_template/node_modules/less/test/browser/runner-filemanagerPlugin-options.js +0 -5
  729. package/my_template/node_modules/less/test/browser/runner-filemanagerPlugin.js +0 -3
  730. package/my_template/node_modules/less/test/browser/runner-global-vars-options.js +0 -7
  731. package/my_template/node_modules/less/test/browser/runner-global-vars-spec.js +0 -3
  732. package/my_template/node_modules/less/test/browser/runner-legacy-options.js +0 -6
  733. package/my_template/node_modules/less/test/browser/runner-legacy-spec.js +0 -3
  734. package/my_template/node_modules/less/test/browser/runner-main-options.js +0 -17
  735. package/my_template/node_modules/less/test/browser/runner-main-spec.js +0 -7
  736. package/my_template/node_modules/less/test/browser/runner-modify-vars-options.js +0 -5
  737. package/my_template/node_modules/less/test/browser/runner-modify-vars-spec.js +0 -33
  738. package/my_template/node_modules/less/test/browser/runner-no-js-errors-options.js +0 -4
  739. package/my_template/node_modules/less/test/browser/runner-no-js-errors-spec.js +0 -3
  740. package/my_template/node_modules/less/test/browser/runner-postProcessorPlugin-options.js +0 -3
  741. package/my_template/node_modules/less/test/browser/runner-postProcessorPlugin.js +0 -3
  742. package/my_template/node_modules/less/test/browser/runner-preProcessorPlugin-options.js +0 -3
  743. package/my_template/node_modules/less/test/browser/runner-preProcessorPlugin.js +0 -3
  744. package/my_template/node_modules/less/test/browser/runner-production-options.js +0 -3
  745. package/my_template/node_modules/less/test/browser/runner-production-spec.js +0 -5
  746. package/my_template/node_modules/less/test/browser/runner-relative-urls-options.js +0 -3
  747. package/my_template/node_modules/less/test/browser/runner-relative-urls-spec.js +0 -3
  748. package/my_template/node_modules/less/test/browser/runner-rewrite-urls-options.js +0 -3
  749. package/my_template/node_modules/less/test/browser/runner-rewrite-urls-spec.js +0 -3
  750. package/my_template/node_modules/less/test/browser/runner-rootpath-options.js +0 -3
  751. package/my_template/node_modules/less/test/browser/runner-rootpath-relative-options.js +0 -4
  752. package/my_template/node_modules/less/test/browser/runner-rootpath-relative-spec.js +0 -3
  753. package/my_template/node_modules/less/test/browser/runner-rootpath-rewrite-urls-options.js +0 -4
  754. package/my_template/node_modules/less/test/browser/runner-rootpath-rewrite-urls-spec.js +0 -3
  755. package/my_template/node_modules/less/test/browser/runner-rootpath-spec.js +0 -3
  756. package/my_template/node_modules/less/test/browser/runner-strict-units-options.js +0 -5
  757. package/my_template/node_modules/less/test/browser/runner-strict-units-spec.js +0 -3
  758. package/my_template/node_modules/less/test/index.js +0 -89
  759. package/my_template/node_modules/less/test/less-test.js +0 -535
  760. package/my_template/node_modules/less/test/modify-vars.js +0 -28
  761. package/my_template/node_modules/less/test/plugins/filemanager/index.js +0 -19
  762. package/my_template/node_modules/less/test/plugins/postprocess/index.js +0 -14
  763. package/my_template/node_modules/less/test/plugins/preprocess/index.js +0 -19
  764. package/my_template/node_modules/less/test/plugins/visitor/index.js +0 -24
  765. package/my_template/node_modules/less/test/sourcemaps/basic.json +0 -1
  766. package/my_template/node_modules/less/test/sourcemaps/custom-props.json +0 -1
  767. package/my_template/node_modules/less/test/sourcemaps/index.html +0 -17
  768. package/my_template/node_modules/less/test/sourcemaps-disable-annotation/basic.json +0 -1
  769. package/my_template/node_modules/less/test/test-es6.ts +0 -17
  770. package/my_template/node_modules/less/tsconfig.json +0 -13
  771. package/my_template/node_modules/less-plugin-clean-css/LICENSE +0 -201
  772. package/my_template/node_modules/less-plugin-clean-css/README.md +0 -33
  773. package/my_template/node_modules/less-plugin-clean-css/lib/clean-css-processor.js +0 -63
  774. package/my_template/node_modules/less-plugin-clean-css/lib/index.js +0 -23
  775. package/my_template/node_modules/less-plugin-clean-css/lib/parse-options.js +0 -61
  776. package/my_template/node_modules/less-plugin-clean-css/lib/usage.js +0 -19
  777. package/my_template/node_modules/less-plugin-clean-css/package.json +0 -39
  778. package/my_template/node_modules/make-dir/index.d.ts +0 -39
  779. package/my_template/node_modules/make-dir/index.js +0 -139
  780. package/my_template/node_modules/make-dir/license +0 -9
  781. package/my_template/node_modules/make-dir/package.json +0 -59
  782. package/my_template/node_modules/make-dir/readme.md +0 -123
  783. package/my_template/node_modules/merge-stream/LICENSE +0 -21
  784. package/my_template/node_modules/merge-stream/README.md +0 -78
  785. package/my_template/node_modules/merge-stream/index.js +0 -41
  786. package/my_template/node_modules/merge-stream/package.json +0 -19
  787. package/my_template/node_modules/mime/CHANGELOG.md +0 -164
  788. package/my_template/node_modules/mime/LICENSE +0 -21
  789. package/my_template/node_modules/mime/README.md +0 -90
  790. package/my_template/node_modules/mime/cli.js +0 -8
  791. package/my_template/node_modules/mime/mime.js +0 -108
  792. package/my_template/node_modules/mime/package.json +0 -44
  793. package/my_template/node_modules/mime/src/build.js +0 -53
  794. package/my_template/node_modules/mime/src/test.js +0 -60
  795. package/my_template/node_modules/mime/types.json +0 -1
  796. package/my_template/node_modules/native-request/README.md +0 -184
  797. package/my_template/node_modules/native-request/commons/jsonToParameter.js +0 -14
  798. package/my_template/node_modules/native-request/index.js +0 -65
  799. package/my_template/node_modules/native-request/lib/Request.js +0 -144
  800. package/my_template/node_modules/native-request/package.json +0 -45
  801. package/my_template/node_modules/native-request/test/express.get.cookies.js +0 -58
  802. package/my_template/node_modules/native-request/test/express.get.js +0 -146
  803. package/my_template/node_modules/native-request/test/express.post.cookies.js +0 -59
  804. package/my_template/node_modules/native-request/test/express.post.js +0 -148
  805. package/my_template/node_modules/native-request/test/get.cookies.js +0 -72
  806. package/my_template/node_modules/native-request/test/get.js +0 -140
  807. package/my_template/node_modules/native-request/test/post.cookies.js +0 -72
  808. package/my_template/node_modules/native-request/test/post.js +0 -155
  809. package/my_template/node_modules/path-parse/LICENSE +0 -21
  810. package/my_template/node_modules/path-parse/README.md +0 -42
  811. package/my_template/node_modules/path-parse/index.js +0 -75
  812. package/my_template/node_modules/path-parse/package.json +0 -33
  813. package/my_template/node_modules/pify/index.js +0 -68
  814. package/my_template/node_modules/pify/license +0 -9
  815. package/my_template/node_modules/pify/package.json +0 -51
  816. package/my_template/node_modules/pify/readme.md +0 -145
  817. package/my_template/node_modules/prr/.jshintrc +0 -61
  818. package/my_template/node_modules/prr/.travis.yml +0 -10
  819. package/my_template/node_modules/prr/LICENSE.md +0 -11
  820. package/my_template/node_modules/prr/README.md +0 -47
  821. package/my_template/node_modules/prr/package.json +0 -26
  822. package/my_template/node_modules/prr/prr.js +0 -63
  823. package/my_template/node_modules/prr/test.js +0 -169
  824. package/my_template/node_modules/resolve/.editorconfig +0 -37
  825. package/my_template/node_modules/resolve/.eslintrc +0 -65
  826. package/my_template/node_modules/resolve/.github/FUNDING.yml +0 -12
  827. package/my_template/node_modules/resolve/LICENSE +0 -21
  828. package/my_template/node_modules/resolve/SECURITY.md +0 -3
  829. package/my_template/node_modules/resolve/async.js +0 -3
  830. package/my_template/node_modules/resolve/bin/resolve +0 -50
  831. package/my_template/node_modules/resolve/example/async.js +0 -5
  832. package/my_template/node_modules/resolve/example/sync.js +0 -3
  833. package/my_template/node_modules/resolve/index.js +0 -6
  834. package/my_template/node_modules/resolve/lib/async.js +0 -329
  835. package/my_template/node_modules/resolve/lib/caller.js +0 -8
  836. package/my_template/node_modules/resolve/lib/core.js +0 -12
  837. package/my_template/node_modules/resolve/lib/core.json +0 -158
  838. package/my_template/node_modules/resolve/lib/homedir.js +0 -24
  839. package/my_template/node_modules/resolve/lib/is-core.js +0 -5
  840. package/my_template/node_modules/resolve/lib/node-modules-paths.js +0 -42
  841. package/my_template/node_modules/resolve/lib/normalize-options.js +0 -10
  842. package/my_template/node_modules/resolve/lib/sync.js +0 -208
  843. package/my_template/node_modules/resolve/package.json +0 -72
  844. package/my_template/node_modules/resolve/readme.markdown +0 -301
  845. package/my_template/node_modules/resolve/sync.js +0 -3
  846. package/my_template/node_modules/resolve/test/core.js +0 -88
  847. package/my_template/node_modules/resolve/test/dotdot/abc/index.js +0 -2
  848. package/my_template/node_modules/resolve/test/dotdot/index.js +0 -1
  849. package/my_template/node_modules/resolve/test/dotdot.js +0 -29
  850. package/my_template/node_modules/resolve/test/faulty_basedir.js +0 -29
  851. package/my_template/node_modules/resolve/test/filter.js +0 -34
  852. package/my_template/node_modules/resolve/test/filter_sync.js +0 -33
  853. package/my_template/node_modules/resolve/test/home_paths.js +0 -127
  854. package/my_template/node_modules/resolve/test/home_paths_sync.js +0 -114
  855. package/my_template/node_modules/resolve/test/mock.js +0 -315
  856. package/my_template/node_modules/resolve/test/mock_sync.js +0 -214
  857. package/my_template/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
  858. package/my_template/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
  859. package/my_template/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
  860. package/my_template/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
  861. package/my_template/node_modules/resolve/test/module_dir.js +0 -56
  862. package/my_template/node_modules/resolve/test/node-modules-paths.js +0 -143
  863. package/my_template/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
  864. package/my_template/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
  865. package/my_template/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
  866. package/my_template/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
  867. package/my_template/node_modules/resolve/test/node_path.js +0 -70
  868. package/my_template/node_modules/resolve/test/nonstring.js +0 -9
  869. package/my_template/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  870. package/my_template/node_modules/resolve/test/pathfilter.js +0 -75
  871. package/my_template/node_modules/resolve/test/precedence/aaa/index.js +0 -1
  872. package/my_template/node_modules/resolve/test/precedence/aaa/main.js +0 -1
  873. package/my_template/node_modules/resolve/test/precedence/aaa.js +0 -1
  874. package/my_template/node_modules/resolve/test/precedence/bbb/main.js +0 -1
  875. package/my_template/node_modules/resolve/test/precedence/bbb.js +0 -1
  876. package/my_template/node_modules/resolve/test/precedence.js +0 -23
  877. package/my_template/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  878. package/my_template/node_modules/resolve/test/resolver/baz/package.json +0 -4
  879. package/my_template/node_modules/resolve/test/resolver/baz/quux.js +0 -1
  880. package/my_template/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  881. package/my_template/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  882. package/my_template/node_modules/resolve/test/resolver/browser_field/package.json +0 -5
  883. package/my_template/node_modules/resolve/test/resolver/cup.coffee +0 -1
  884. package/my_template/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
  885. package/my_template/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
  886. package/my_template/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
  887. package/my_template/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
  888. package/my_template/node_modules/resolve/test/resolver/false_main/index.js +0 -0
  889. package/my_template/node_modules/resolve/test/resolver/false_main/package.json +0 -4
  890. package/my_template/node_modules/resolve/test/resolver/foo.js +0 -1
  891. package/my_template/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
  892. package/my_template/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
  893. package/my_template/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
  894. package/my_template/node_modules/resolve/test/resolver/mug.coffee +0 -0
  895. package/my_template/node_modules/resolve/test/resolver/mug.js +0 -0
  896. package/my_template/node_modules/resolve/test/resolver/multirepo/lerna.json +0 -6
  897. package/my_template/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
  898. package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
  899. package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
  900. package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  901. package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +0 -14
  902. package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
  903. package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
  904. package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
  905. package/my_template/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  906. package/my_template/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  907. package/my_template/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
  908. package/my_template/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
  909. package/my_template/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
  910. package/my_template/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  911. package/my_template/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
  912. package/my_template/node_modules/resolve/test/resolver/symlinked/package/bar.js +0 -1
  913. package/my_template/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
  914. package/my_template/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
  915. package/my_template/node_modules/resolve/test/resolver.js +0 -597
  916. package/my_template/node_modules/resolve/test/resolver_sync.js +0 -730
  917. package/my_template/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  918. package/my_template/node_modules/resolve/test/shadowed_core.js +0 -54
  919. package/my_template/node_modules/resolve/test/subdirs.js +0 -13
  920. package/my_template/node_modules/resolve/test/symlinks.js +0 -176
  921. package/my_template/node_modules/rollup/CHANGELOG.md +0 -3084
  922. package/my_template/node_modules/rollup/LICENSE.md +0 -578
  923. package/my_template/node_modules/rollup/README.md +0 -138
  924. package/my_template/node_modules/rollup/dist/bin/rollup +0 -1457
  925. package/my_template/node_modules/rollup/dist/rollup.browser.es.js +0 -25
  926. package/my_template/node_modules/rollup/dist/rollup.browser.js +0 -26
  927. package/my_template/node_modules/rollup/dist/rollup.d.ts +0 -656
  928. package/my_template/node_modules/rollup/dist/rollup.es.js +0 -17493
  929. package/my_template/node_modules/rollup/dist/rollup.js +0 -29
  930. package/my_template/node_modules/rollup/dist/shared/index.js +0 -321
  931. package/my_template/node_modules/rollup/dist/shared/node-entry.js +0 -17504
  932. package/my_template/node_modules/rollup/package.json +0 -139
  933. package/my_template/node_modules/rollup-plugin-node-resolve/CHANGELOG.md +0 -195
  934. package/my_template/node_modules/rollup-plugin-node-resolve/README.md +0 -135
  935. package/my_template/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs.js +0 -425
  936. package/my_template/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es.js +0 -421
  937. package/my_template/node_modules/rollup-plugin-node-resolve/index.d.ts +0 -100
  938. package/my_template/node_modules/rollup-plugin-node-resolve/package.json +0 -60
  939. package/my_template/node_modules/rollup-plugin-node-resolve/src/index.js +0 -358
  940. package/my_template/node_modules/rollup-plugin-uglify/LICENSE +0 -20
  941. package/my_template/node_modules/rollup-plugin-uglify/README.md +0 -84
  942. package/my_template/node_modules/rollup-plugin-uglify/index.js +0 -51
  943. package/my_template/node_modules/rollup-plugin-uglify/package.json +0 -43
  944. package/my_template/node_modules/rollup-plugin-uglify/transform.js +0 -13
  945. package/my_template/node_modules/rollup-pluginutils/CHANGELOG.md +0 -125
  946. package/my_template/node_modules/rollup-pluginutils/README.md +0 -169
  947. package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +0 -3292
  948. package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.d.ts +0 -39
  949. package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.es.js +0 -3280
  950. package/my_template/node_modules/rollup-pluginutils/package.json +0 -57
  951. package/my_template/node_modules/rollup-pluginutils/src/addExtension.ts +0 -9
  952. package/my_template/node_modules/rollup-pluginutils/src/attachScopes.ts +0 -125
  953. package/my_template/node_modules/rollup-pluginutils/src/createFilter.ts +0 -52
  954. package/my_template/node_modules/rollup-pluginutils/src/dataToEsm.ts +0 -92
  955. package/my_template/node_modules/rollup-pluginutils/src/extractAssignedNames.ts +0 -46
  956. package/my_template/node_modules/rollup-pluginutils/src/index.ts +0 -6
  957. package/my_template/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts +0 -21
  958. package/my_template/node_modules/rollup-pluginutils/src/pluginutils.d.ts +0 -39
  959. package/my_template/node_modules/rollup-pluginutils/src/utils/ensureArray.ts +0 -5
  960. package/my_template/node_modules/semver/LICENSE +0 -15
  961. package/my_template/node_modules/semver/README.md +0 -412
  962. package/my_template/node_modules/semver/bin/semver +0 -160
  963. package/my_template/node_modules/semver/package.json +0 -38
  964. package/my_template/node_modules/semver/range.bnf +0 -16
  965. package/my_template/node_modules/semver/semver.js +0 -1525
  966. package/my_template/node_modules/serialize-javascript/LICENSE +0 -27
  967. package/my_template/node_modules/serialize-javascript/README.md +0 -143
  968. package/my_template/node_modules/serialize-javascript/index.js +0 -210
  969. package/my_template/node_modules/serialize-javascript/package.json +0 -33
  970. package/my_template/node_modules/source-map/CHANGELOG.md +0 -301
  971. package/my_template/node_modules/source-map/LICENSE +0 -28
  972. package/my_template/node_modules/source-map/README.md +0 -742
  973. package/my_template/node_modules/source-map/dist/source-map.debug.js +0 -3234
  974. package/my_template/node_modules/source-map/dist/source-map.js +0 -3233
  975. package/my_template/node_modules/source-map/dist/source-map.min.js +0 -2
  976. package/my_template/node_modules/source-map/dist/source-map.min.js.map +0 -1
  977. package/my_template/node_modules/source-map/lib/array-set.js +0 -121
  978. package/my_template/node_modules/source-map/lib/base64-vlq.js +0 -140
  979. package/my_template/node_modules/source-map/lib/base64.js +0 -67
  980. package/my_template/node_modules/source-map/lib/binary-search.js +0 -111
  981. package/my_template/node_modules/source-map/lib/mapping-list.js +0 -79
  982. package/my_template/node_modules/source-map/lib/quick-sort.js +0 -114
  983. package/my_template/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  984. package/my_template/node_modules/source-map/lib/source-map-generator.js +0 -425
  985. package/my_template/node_modules/source-map/lib/source-node.js +0 -413
  986. package/my_template/node_modules/source-map/lib/util.js +0 -488
  987. package/my_template/node_modules/source-map/package.json +0 -73
  988. package/my_template/node_modules/source-map/source-map.d.ts +0 -98
  989. package/my_template/node_modules/source-map/source-map.js +0 -8
  990. package/my_template/node_modules/supports-color/browser.js +0 -5
  991. package/my_template/node_modules/supports-color/index.js +0 -131
  992. package/my_template/node_modules/supports-color/license +0 -9
  993. package/my_template/node_modules/supports-color/package.json +0 -53
  994. package/my_template/node_modules/supports-color/readme.md +0 -66
  995. package/my_template/node_modules/supports-preserve-symlinks-flag/.eslintrc +0 -14
  996. package/my_template/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +0 -12
  997. package/my_template/node_modules/supports-preserve-symlinks-flag/.nycrc +0 -9
  998. package/my_template/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +0 -22
  999. package/my_template/node_modules/supports-preserve-symlinks-flag/LICENSE +0 -21
  1000. package/my_template/node_modules/supports-preserve-symlinks-flag/README.md +0 -42
  1001. package/my_template/node_modules/supports-preserve-symlinks-flag/browser.js +0 -3
  1002. package/my_template/node_modules/supports-preserve-symlinks-flag/index.js +0 -9
  1003. package/my_template/node_modules/supports-preserve-symlinks-flag/package.json +0 -70
  1004. package/my_template/node_modules/supports-preserve-symlinks-flag/test/index.js +0 -29
  1005. package/my_template/node_modules/tslib/CopyrightNotice.txt +0 -15
  1006. package/my_template/node_modules/tslib/LICENSE.txt +0 -12
  1007. package/my_template/node_modules/tslib/README.md +0 -142
  1008. package/my_template/node_modules/tslib/modules/index.js +0 -51
  1009. package/my_template/node_modules/tslib/modules/package.json +0 -3
  1010. package/my_template/node_modules/tslib/package.json +0 -37
  1011. package/my_template/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
  1012. package/my_template/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
  1013. package/my_template/node_modules/tslib/tslib.d.ts +0 -37
  1014. package/my_template/node_modules/tslib/tslib.es6.html +0 -1
  1015. package/my_template/node_modules/tslib/tslib.es6.js +0 -218
  1016. package/my_template/node_modules/tslib/tslib.html +0 -1
  1017. package/my_template/node_modules/tslib/tslib.js +0 -284
  1018. package/my_template/node_modules/uglify-js/LICENSE +0 -29
  1019. package/my_template/node_modules/uglify-js/README.md +0 -1478
  1020. package/my_template/node_modules/uglify-js/bin/uglifyjs +0 -605
  1021. package/my_template/node_modules/uglify-js/lib/ast.js +0 -2356
  1022. package/my_template/node_modules/uglify-js/lib/compress.js +0 -14241
  1023. package/my_template/node_modules/uglify-js/lib/minify.js +0 -276
  1024. package/my_template/node_modules/uglify-js/lib/mozilla-ast.js +0 -1310
  1025. package/my_template/node_modules/uglify-js/lib/output.js +0 -1956
  1026. package/my_template/node_modules/uglify-js/lib/parse.js +0 -2585
  1027. package/my_template/node_modules/uglify-js/lib/propmangle.js +0 -328
  1028. package/my_template/node_modules/uglify-js/lib/scope.js +0 -866
  1029. package/my_template/node_modules/uglify-js/lib/sourcemap.js +0 -195
  1030. package/my_template/node_modules/uglify-js/lib/transform.js +0 -250
  1031. package/my_template/node_modules/uglify-js/lib/utils.js +0 -287
  1032. package/my_template/node_modules/uglify-js/package.json +0 -56
  1033. package/my_template/node_modules/uglify-js/tools/domprops.html +0 -456
  1034. package/my_template/node_modules/uglify-js/tools/domprops.json +0 -8325
  1035. package/my_template/node_modules/uglify-js/tools/exports.js +0 -8
  1036. package/my_template/node_modules/uglify-js/tools/node.js +0 -110
  1037. package/my_template/node_modules/uglify-js/tools/tty.js +0 -22
  1038. package/my_template/node_modules/undici-types/README.md +0 -6
  1039. package/my_template/node_modules/undici-types/agent.d.ts +0 -31
  1040. package/my_template/node_modules/undici-types/api.d.ts +0 -43
  1041. package/my_template/node_modules/undici-types/balanced-pool.d.ts +0 -18
  1042. package/my_template/node_modules/undici-types/cache.d.ts +0 -36
  1043. package/my_template/node_modules/undici-types/client.d.ts +0 -97
  1044. package/my_template/node_modules/undici-types/connector.d.ts +0 -34
  1045. package/my_template/node_modules/undici-types/content-type.d.ts +0 -21
  1046. package/my_template/node_modules/undici-types/cookies.d.ts +0 -28
  1047. package/my_template/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  1048. package/my_template/node_modules/undici-types/dispatcher.d.ts +0 -241
  1049. package/my_template/node_modules/undici-types/errors.d.ts +0 -128
  1050. package/my_template/node_modules/undici-types/fetch.d.ts +0 -209
  1051. package/my_template/node_modules/undici-types/file.d.ts +0 -39
  1052. package/my_template/node_modules/undici-types/filereader.d.ts +0 -54
  1053. package/my_template/node_modules/undici-types/formdata.d.ts +0 -108
  1054. package/my_template/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  1055. package/my_template/node_modules/undici-types/global-origin.d.ts +0 -7
  1056. package/my_template/node_modules/undici-types/handlers.d.ts +0 -9
  1057. package/my_template/node_modules/undici-types/header.d.ts +0 -4
  1058. package/my_template/node_modules/undici-types/index.d.ts +0 -63
  1059. package/my_template/node_modules/undici-types/interceptors.d.ts +0 -5
  1060. package/my_template/node_modules/undici-types/mock-agent.d.ts +0 -50
  1061. package/my_template/node_modules/undici-types/mock-client.d.ts +0 -25
  1062. package/my_template/node_modules/undici-types/mock-errors.d.ts +0 -12
  1063. package/my_template/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  1064. package/my_template/node_modules/undici-types/mock-pool.d.ts +0 -25
  1065. package/my_template/node_modules/undici-types/package.json +0 -55
  1066. package/my_template/node_modules/undici-types/patch.d.ts +0 -71
  1067. package/my_template/node_modules/undici-types/pool-stats.d.ts +0 -19
  1068. package/my_template/node_modules/undici-types/pool.d.ts +0 -28
  1069. package/my_template/node_modules/undici-types/proxy-agent.d.ts +0 -30
  1070. package/my_template/node_modules/undici-types/readable.d.ts +0 -61
  1071. package/my_template/node_modules/undici-types/webidl.d.ts +0 -220
  1072. package/my_template/node_modules/undici-types/websocket.d.ts +0 -131
  1073. package/server/columns.js +0 -201
  1074. package/server/data.js +0 -327
  1075. package/server/json.js +0 -66
@@ -1,1956 +0,0 @@
1
- /***********************************************************************
2
-
3
- A JavaScript tokenizer / parser / beautifier / compressor.
4
- https://github.com/mishoo/UglifyJS
5
-
6
- -------------------------------- (C) ---------------------------------
7
-
8
- Author: Mihai Bazon
9
- <mihai.bazon@gmail.com>
10
- http://mihai.bazon.net/blog
11
-
12
- Distributed under the BSD license:
13
-
14
- Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
15
-
16
- Redistribution and use in source and binary forms, with or without
17
- modification, are permitted provided that the following conditions
18
- are met:
19
-
20
- * Redistributions of source code must retain the above
21
- copyright notice, this list of conditions and the following
22
- disclaimer.
23
-
24
- * Redistributions in binary form must reproduce the above
25
- copyright notice, this list of conditions and the following
26
- disclaimer in the documentation and/or other materials
27
- provided with the distribution.
28
-
29
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
30
- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
32
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
33
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
34
- OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
35
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
36
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
38
- TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
39
- THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
40
- SUCH DAMAGE.
41
-
42
- ***********************************************************************/
43
-
44
- "use strict";
45
-
46
- function is_some_comments(comment) {
47
- // multiline comment
48
- return comment.type == "comment2" && /@preserve|@license|@cc_on/i.test(comment.value);
49
- }
50
-
51
- function OutputStream(options) {
52
- options = defaults(options, {
53
- annotations : false,
54
- ascii_only : false,
55
- beautify : false,
56
- braces : false,
57
- comments : false,
58
- extendscript : false,
59
- galio : false,
60
- ie : false,
61
- indent_level : 4,
62
- indent_start : 0,
63
- inline_script : true,
64
- keep_quoted_props: false,
65
- max_line_len : false,
66
- preamble : null,
67
- preserve_line : false,
68
- quote_keys : false,
69
- quote_style : 0,
70
- semicolons : true,
71
- shebang : true,
72
- source_map : null,
73
- v8 : false,
74
- webkit : false,
75
- width : 80,
76
- wrap_iife : false,
77
- }, true);
78
-
79
- // Convert comment option to RegExp if necessary and set up comments filter
80
- var comment_filter = return_false; // Default case, throw all comments away
81
- if (options.comments) {
82
- var comments = options.comments;
83
- if (typeof options.comments === "string" && /^\/.*\/[a-zA-Z]*$/.test(options.comments)) {
84
- var regex_pos = options.comments.lastIndexOf("/");
85
- comments = new RegExp(
86
- options.comments.substr(1, regex_pos - 1),
87
- options.comments.substr(regex_pos + 1)
88
- );
89
- }
90
- if (comments instanceof RegExp) {
91
- comment_filter = function(comment) {
92
- return comment.type != "comment5" && comments.test(comment.value);
93
- };
94
- } else if (typeof comments === "function") {
95
- comment_filter = function(comment) {
96
- return comment.type != "comment5" && comments(this, comment);
97
- };
98
- } else if (comments === "some") {
99
- comment_filter = is_some_comments;
100
- } else { // NOTE includes "all" option
101
- comment_filter = return_true;
102
- }
103
- }
104
-
105
- function make_indent(value) {
106
- if (typeof value == "number") return new Array(value + 1).join(" ");
107
- if (!value) return "";
108
- if (!/^\s*$/.test(value)) throw new Error("unsupported indentation: " + JSON.stringify("" + value));
109
- return value;
110
- }
111
-
112
- var current_col = 0;
113
- var current_line = 1;
114
- var current_indent = make_indent(options.indent_start);
115
- var full_indent = make_indent(options.indent_level);
116
- var half_indent = full_indent.length + 1 >> 1;
117
- var last;
118
- var line_end = 0;
119
- var line_fixed = true;
120
- var mappings = options.source_map && [];
121
- var mapping_name;
122
- var mapping_token;
123
- var might_need_space;
124
- var might_need_semicolon;
125
- var need_newline_indented = false;
126
- var need_space = false;
127
- var output;
128
- var stack;
129
- var stored = "";
130
-
131
- function reset() {
132
- last = "";
133
- might_need_space = false;
134
- might_need_semicolon = false;
135
- stack = [];
136
- var str = output;
137
- output = "";
138
- return str;
139
- }
140
-
141
- reset();
142
- var to_utf8 = options.ascii_only ? function(str, identifier) {
143
- if (identifier) str = str.replace(/[\ud800-\udbff][\udc00-\udfff]/g, function(ch) {
144
- return "\\u{" + (ch.charCodeAt(0) - 0xd7c0 << 10 | ch.charCodeAt(1) - 0xdc00).toString(16) + "}";
145
- });
146
- return str.replace(/[\u0000-\u001f\u007f-\uffff]/g, function(ch) {
147
- var code = ch.charCodeAt(0).toString(16);
148
- if (code.length <= 2 && !identifier) {
149
- while (code.length < 2) code = "0" + code;
150
- return "\\x" + code;
151
- } else {
152
- while (code.length < 4) code = "0" + code;
153
- return "\\u" + code;
154
- }
155
- });
156
- } : function(str) {
157
- var s = "";
158
- for (var i = 0, j = 0; i < str.length; i++) {
159
- var code = str.charCodeAt(i);
160
- if (is_surrogate_pair_head(code)) {
161
- if (is_surrogate_pair_tail(str.charCodeAt(i + 1))) {
162
- i++;
163
- continue;
164
- }
165
- } else if (!is_surrogate_pair_tail(code)) {
166
- continue;
167
- }
168
- s += str.slice(j, i) + "\\u" + code.toString(16);
169
- j = i + 1;
170
- }
171
- return j == 0 ? str : s + str.slice(j);
172
- };
173
-
174
- function quote_single(str) {
175
- return "'" + str.replace(/\x27/g, "\\'") + "'";
176
- }
177
-
178
- function quote_double(str) {
179
- return '"' + str.replace(/\x22/g, '\\"') + '"';
180
- }
181
-
182
- var quote_string = [
183
- null,
184
- quote_single,
185
- quote_double,
186
- function(str, quote) {
187
- return quote == "'" ? quote_single(str) : quote_double(str);
188
- },
189
- ][options.quote_style] || function(str, quote, dq, sq) {
190
- return dq > sq ? quote_single(str) : quote_double(str);
191
- };
192
-
193
- function make_string(str, quote) {
194
- var dq = 0, sq = 0;
195
- str = str.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g, function(s, i) {
196
- switch (s) {
197
- case '"': ++dq; return '"';
198
- case "'": ++sq; return "'";
199
- case "\\": return "\\\\";
200
- case "\n": return "\\n";
201
- case "\r": return "\\r";
202
- case "\t": return "\\t";
203
- case "\b": return "\\b";
204
- case "\f": return "\\f";
205
- case "\x0B": return options.ie ? "\\x0B" : "\\v";
206
- case "\u2028": return "\\u2028";
207
- case "\u2029": return "\\u2029";
208
- case "\ufeff": return "\\ufeff";
209
- case "\0":
210
- return /[0-9]/.test(str.charAt(i+1)) ? "\\x00" : "\\0";
211
- }
212
- return s;
213
- });
214
- return quote_string(to_utf8(str), quote, dq, sq);
215
- }
216
-
217
- /* -----[ beautification/minification ]----- */
218
-
219
- var adjust_mappings = mappings ? function(line, col) {
220
- mappings.forEach(function(mapping) {
221
- mapping.line += line;
222
- mapping.col += col;
223
- });
224
- } : noop;
225
-
226
- var flush_mappings = mappings ? function() {
227
- mappings.forEach(function(mapping) {
228
- options.source_map.add(
229
- mapping.token.file,
230
- mapping.line, mapping.col,
231
- mapping.token.line, mapping.token.col,
232
- !mapping.name && mapping.token.type == "name" ? mapping.token.value : mapping.name
233
- );
234
- });
235
- mappings = [];
236
- } : noop;
237
-
238
- function insert_newlines(count) {
239
- stored += output.slice(0, line_end);
240
- output = output.slice(line_end);
241
- var new_col = output.length;
242
- adjust_mappings(count, new_col - current_col);
243
- current_line += count;
244
- current_col = new_col;
245
- while (count--) stored += "\n";
246
- }
247
-
248
- var fix_line = options.max_line_len ? function(flush) {
249
- if (line_fixed) {
250
- if (current_col > options.max_line_len) {
251
- AST_Node.warn("Output exceeds {max_line_len} characters", options);
252
- }
253
- return;
254
- }
255
- if (current_col > options.max_line_len) {
256
- insert_newlines(1);
257
- line_fixed = true;
258
- }
259
- if (line_fixed || flush) flush_mappings();
260
- } : noop;
261
-
262
- var require_semicolon = makePredicate("( [ + * / - , .");
263
-
264
- function require_space(prev, ch, str) {
265
- return is_identifier_char(prev) && (is_identifier_char(ch) || ch == "\\")
266
- || (ch == "/" && ch == prev)
267
- || ((ch == "+" || ch == "-") && ch == last)
268
- || last == "--" && ch == ">"
269
- || last == "!" && str == "--"
270
- || prev == "/" && (str == "in" || str == "instanceof");
271
- }
272
-
273
- var print = options.beautify
274
- || options.comments
275
- || options.max_line_len
276
- || options.preserve_line
277
- || options.shebang
278
- || !options.semicolons
279
- || options.source_map
280
- || options.width ? function(str) {
281
- var ch = str.charAt(0);
282
- if (need_newline_indented && ch) {
283
- need_newline_indented = false;
284
- if (ch != "\n") {
285
- print("\n");
286
- indent();
287
- }
288
- }
289
- if (need_space && ch) {
290
- need_space = false;
291
- if (!/[\s;})]/.test(ch)) {
292
- space();
293
- }
294
- }
295
- var prev = last.slice(-1);
296
- if (might_need_semicolon) {
297
- might_need_semicolon = false;
298
- if (prev == ":" && ch == "}" || prev != ";" && (!ch || ";}".indexOf(ch) < 0)) {
299
- var need_semicolon = require_semicolon[ch];
300
- if (need_semicolon || options.semicolons) {
301
- output += ";";
302
- current_col++;
303
- if (!line_fixed) {
304
- fix_line();
305
- if (line_fixed && !need_semicolon && output == ";") {
306
- output = "";
307
- current_col = 0;
308
- }
309
- }
310
- if (line_end == output.length - 1) line_end++;
311
- } else {
312
- fix_line();
313
- output += "\n";
314
- current_line++;
315
- current_col = 0;
316
- // reset the semicolon flag, since we didn't print one
317
- // now and might still have to later
318
- if (/^\s+$/.test(str)) might_need_semicolon = true;
319
- }
320
- if (!options.beautify) might_need_space = false;
321
- }
322
- }
323
-
324
- if (might_need_space) {
325
- if (require_space(prev, ch, str)) {
326
- output += " ";
327
- current_col++;
328
- }
329
- if (prev != "<" || str != "!") might_need_space = false;
330
- }
331
-
332
- if (mapping_token) {
333
- mappings.push({
334
- token: mapping_token,
335
- name: mapping_name,
336
- line: current_line,
337
- col: current_col,
338
- });
339
- mapping_token = false;
340
- if (line_fixed) flush_mappings();
341
- }
342
-
343
- output += str;
344
- var a = str.split(/\r?\n/), n = a.length - 1;
345
- current_line += n;
346
- current_col += a[0].length;
347
- if (n > 0) {
348
- fix_line();
349
- current_col = a[n].length;
350
- }
351
- last = str;
352
- } : function(str) {
353
- var ch = str.charAt(0);
354
- var prev = last.slice(-1);
355
- if (might_need_semicolon) {
356
- might_need_semicolon = false;
357
- if (prev == ":" && ch == "}" || (!ch || ";}".indexOf(ch) < 0) && prev != ";") {
358
- output += ";";
359
- might_need_space = false;
360
- }
361
- }
362
- if (might_need_space) {
363
- if (require_space(prev, ch, str)) output += " ";
364
- if (prev != "<" || str != "!") might_need_space = false;
365
- }
366
- output += str;
367
- last = str;
368
- };
369
-
370
- var space = options.beautify ? function() {
371
- print(" ");
372
- } : function() {
373
- might_need_space = true;
374
- };
375
-
376
- var indent = options.beautify ? function(half) {
377
- if (need_newline_indented) print("\n");
378
- print(half ? current_indent.slice(0, -half_indent) : current_indent);
379
- } : noop;
380
-
381
- var with_indent = options.beautify ? function(cont) {
382
- var save_indentation = current_indent;
383
- current_indent += full_indent;
384
- cont();
385
- current_indent = save_indentation;
386
- } : function(cont) { cont() };
387
-
388
- var may_add_newline = options.max_line_len || options.preserve_line ? function() {
389
- fix_line();
390
- line_end = output.length;
391
- line_fixed = false;
392
- } : noop;
393
-
394
- var newline = options.beautify ? function() {
395
- print("\n");
396
- line_end = output.length;
397
- } : may_add_newline;
398
-
399
- var semicolon = options.beautify ? function() {
400
- print(";");
401
- } : function() {
402
- might_need_semicolon = true;
403
- };
404
-
405
- function force_semicolon() {
406
- if (might_need_semicolon) print(";");
407
- print(";");
408
- }
409
-
410
- function with_block(cont, end) {
411
- print("{");
412
- newline();
413
- with_indent(cont);
414
- add_mapping(end);
415
- indent();
416
- print("}");
417
- }
418
-
419
- function with_parens(cont) {
420
- print("(");
421
- may_add_newline();
422
- cont();
423
- may_add_newline();
424
- print(")");
425
- }
426
-
427
- function with_square(cont) {
428
- print("[");
429
- may_add_newline();
430
- cont();
431
- may_add_newline();
432
- print("]");
433
- }
434
-
435
- function comma() {
436
- may_add_newline();
437
- print(",");
438
- may_add_newline();
439
- space();
440
- }
441
-
442
- function colon() {
443
- print(":");
444
- space();
445
- }
446
-
447
- var add_mapping = mappings ? function(token, name) {
448
- mapping_token = token;
449
- mapping_name = name;
450
- } : noop;
451
-
452
- function get() {
453
- if (!line_fixed) fix_line(true);
454
- return stored + output;
455
- }
456
-
457
- function has_nlb() {
458
- return /(^|\n) *$/.test(output);
459
- }
460
-
461
- function pad_comment(token, force) {
462
- if (need_newline_indented) return;
463
- if (token.nlb && (force || !has_nlb())) {
464
- need_newline_indented = true;
465
- } else if (force) {
466
- need_space = true;
467
- }
468
- }
469
-
470
- function print_comment(comment) {
471
- var value = comment.value.replace(/[@#]__PURE__/g, " ");
472
- if (/^\s*$/.test(value) && !/^\s*$/.test(comment.value)) return false;
473
- if (/comment[134]/.test(comment.type)) {
474
- print("//" + value);
475
- need_newline_indented = true;
476
- } else if (comment.type == "comment2") {
477
- print("/*" + value + "*/");
478
- }
479
- return true;
480
- }
481
-
482
- function should_merge_comments(node, parent) {
483
- if (parent instanceof AST_Binary) return parent.left === node;
484
- if (parent.TYPE == "Call") return parent.expression === node;
485
- if (parent instanceof AST_Conditional) return parent.condition === node;
486
- if (parent instanceof AST_Dot) return parent.expression === node;
487
- if (parent instanceof AST_Exit) return true;
488
- if (parent instanceof AST_Sequence) return parent.expressions[0] === node;
489
- if (parent instanceof AST_Sub) return parent.expression === node;
490
- if (parent instanceof AST_UnaryPostfix) return true;
491
- if (parent instanceof AST_Yield) return true;
492
- }
493
-
494
- function prepend_comments(node) {
495
- var self = this;
496
- var scan;
497
- if (node instanceof AST_Exit) {
498
- scan = node.value;
499
- } else if (node instanceof AST_Yield) {
500
- scan = node.expression;
501
- }
502
- var comments = dump(node);
503
- if (!comments) comments = [];
504
-
505
- if (scan) {
506
- var tw = new TreeWalker(function(node) {
507
- if (!should_merge_comments(node, tw.parent())) return true;
508
- var before = dump(node);
509
- if (before) comments = comments.concat(before);
510
- });
511
- tw.push(node);
512
- scan.walk(tw);
513
- }
514
-
515
- if (current_line == 1 && current_col == 0) {
516
- if (comments.length > 0 && options.shebang && comments[0].type == "comment5") {
517
- print("#!" + comments.shift().value + "\n");
518
- indent();
519
- }
520
- var preamble = options.preamble;
521
- if (preamble) print(preamble.replace(/\r\n?|\u2028|\u2029|(^|\S)\s*$/g, "$1\n"));
522
- }
523
-
524
- comments = comments.filter(comment_filter, node);
525
- var printed = false;
526
- comments.forEach(function(comment, index) {
527
- pad_comment(comment, index);
528
- if (print_comment(comment)) printed = true;
529
- });
530
- if (printed) pad_comment(node.start, true);
531
-
532
- function dump(node) {
533
- var token = node.start;
534
- if (!token) {
535
- if (!scan) return;
536
- node.start = token = new AST_Token();
537
- }
538
- var comments = token.comments_before;
539
- if (!comments) {
540
- if (!scan) return;
541
- token.comments_before = comments = [];
542
- }
543
- if (comments._dumped === self) return;
544
- comments._dumped = self;
545
- return comments;
546
- }
547
- }
548
-
549
- function append_comments(node, tail) {
550
- var self = this;
551
- var token = node.end;
552
- if (!token) return;
553
- var comments = token[tail ? "comments_before" : "comments_after"];
554
- if (!comments || comments._dumped === self) return;
555
- if (!(node instanceof AST_Statement || all(comments, function(c) {
556
- return !/comment[134]/.test(c.type);
557
- }))) return;
558
- comments._dumped = self;
559
- comments.filter(comment_filter, node).forEach(function(comment, index) {
560
- pad_comment(comment, index || !tail);
561
- print_comment(comment);
562
- });
563
- }
564
-
565
- return {
566
- get : get,
567
- reset : reset,
568
- indent : indent,
569
- should_break : options.beautify && options.width ? function() {
570
- return current_col >= options.width;
571
- } : return_false,
572
- has_parens : function() { return last.slice(-1) == "(" },
573
- newline : newline,
574
- print : print,
575
- space : space,
576
- comma : comma,
577
- colon : colon,
578
- last : function() { return last },
579
- semicolon : semicolon,
580
- force_semicolon : force_semicolon,
581
- to_utf8 : to_utf8,
582
- print_name : function(name) { print(to_utf8(name.toString(), true)) },
583
- print_string : options.inline_script ? function(str, quote) {
584
- str = make_string(str, quote).replace(/<\x2f(script)([>\/\t\n\f\r ])/gi, "<\\/$1$2");
585
- print(str.replace(/\x3c!--/g, "\\x3c!--").replace(/--\x3e/g, "--\\x3e"));
586
- } : function(str, quote) {
587
- print(make_string(str, quote));
588
- },
589
- with_indent : with_indent,
590
- with_block : with_block,
591
- with_parens : with_parens,
592
- with_square : with_square,
593
- add_mapping : add_mapping,
594
- option : function(opt) { return options[opt] },
595
- prepend_comments: options.comments || options.shebang ? prepend_comments : noop,
596
- append_comments : options.comments ? append_comments : noop,
597
- push_node : function(node) { stack.push(node) },
598
- pop_node : options.preserve_line ? function() {
599
- var node = stack.pop();
600
- if (node.start && node.start.line > current_line) {
601
- insert_newlines(node.start.line - current_line);
602
- }
603
- } : function() {
604
- stack.pop();
605
- },
606
- parent : function(n) {
607
- return stack[stack.length - 2 - (n || 0)];
608
- },
609
- };
610
- }
611
-
612
- /* -----[ code generators ]----- */
613
-
614
- (function() {
615
-
616
- /* -----[ utils ]----- */
617
-
618
- function DEFPRINT(nodetype, generator) {
619
- nodetype.DEFMETHOD("_codegen", generator);
620
- }
621
-
622
- var use_asm = false;
623
-
624
- AST_Node.DEFMETHOD("print", function(stream, force_parens) {
625
- var self = this;
626
- stream.push_node(self);
627
- if (force_parens || self.needs_parens(stream)) {
628
- stream.with_parens(doit);
629
- } else {
630
- doit();
631
- }
632
- stream.pop_node();
633
-
634
- function doit() {
635
- stream.prepend_comments(self);
636
- self.add_source_map(stream);
637
- self._codegen(stream);
638
- stream.append_comments(self);
639
- }
640
- });
641
- var readonly = OutputStream({
642
- inline_script: false,
643
- shebang: false,
644
- width: false,
645
- });
646
- AST_Node.DEFMETHOD("print_to_string", function(options) {
647
- if (options) {
648
- var stream = OutputStream(options);
649
- this.print(stream);
650
- return stream.get();
651
- }
652
- this.print(readonly);
653
- return readonly.reset();
654
- });
655
-
656
- /* -----[ PARENTHESES ]----- */
657
-
658
- function PARENS(nodetype, func) {
659
- nodetype.DEFMETHOD("needs_parens", func);
660
- }
661
-
662
- PARENS(AST_Node, return_false);
663
-
664
- // a function expression needs parens around it when it's provably
665
- // the first token to appear in a statement.
666
- function needs_parens_function(output) {
667
- var p = output.parent();
668
- if (!output.has_parens() && first_in_statement(output, false, true)) {
669
- // export default function() {}
670
- // export default (function foo() {});
671
- // export default (function() {})(foo);
672
- // export default (function() {})`foo`;
673
- // export default (function() {}) ? foo : bar;
674
- return this.name || !(p instanceof AST_ExportDefault);
675
- }
676
- if (output.option("webkit") && p instanceof AST_PropAccess && p.expression === this) return true;
677
- if (output.option("wrap_iife") && p instanceof AST_Call && p.expression === this) return true;
678
- }
679
- PARENS(AST_AsyncFunction, needs_parens_function);
680
- PARENS(AST_AsyncGeneratorFunction, needs_parens_function);
681
- PARENS(AST_ClassExpression, needs_parens_function);
682
- PARENS(AST_Function, needs_parens_function);
683
- PARENS(AST_GeneratorFunction, needs_parens_function);
684
-
685
- // same goes for an object literal, because otherwise it would be
686
- // interpreted as a block of code.
687
- function needs_parens_obj(output) {
688
- return !output.has_parens() && first_in_statement(output, true);
689
- }
690
- PARENS(AST_Object, needs_parens_obj);
691
-
692
- function needs_parens_unary(output) {
693
- var p = output.parent();
694
- // (-x) ** y
695
- if (p instanceof AST_Binary) return p.operator == "**" && p.left === this;
696
- // (await x)(y)
697
- // new (await x)
698
- if (p instanceof AST_Call) return p.expression === this;
699
- // class extends (x++) {}
700
- // class x extends (typeof y) {}
701
- if (p instanceof AST_Class) return true;
702
- // (x++)[y]
703
- // (typeof x).y
704
- // https://github.com/mishoo/UglifyJS/issues/115
705
- if (p instanceof AST_PropAccess) return p.expression === this;
706
- // (~x)`foo`
707
- if (p instanceof AST_Template) return p.tag === this;
708
- }
709
- PARENS(AST_Await, needs_parens_unary);
710
- PARENS(AST_Unary, needs_parens_unary);
711
-
712
- PARENS(AST_Sequence, function(output) {
713
- var p = output.parent();
714
- // [ 1, (2, 3), 4 ] ---> [ 1, 3, 4 ]
715
- return p instanceof AST_Array
716
- // () ---> (foo, bar)
717
- || is_arrow(p) && p.value === this
718
- // await (foo, bar)
719
- || p instanceof AST_Await
720
- // 1 + (2, 3) + 4 ---> 8
721
- || p instanceof AST_Binary
722
- // new (foo, bar) or foo(1, (2, 3), 4)
723
- || p instanceof AST_Call
724
- // class extends (foo, bar) {}
725
- // class foo extends (bar, baz) {}
726
- || p instanceof AST_Class
727
- // class { foo = (bar, baz) }
728
- // class { [(foo, bar)]() {} }
729
- || p instanceof AST_ClassProperty
730
- // (false, true) ? (a = 10, b = 20) : (c = 30)
731
- // ---> 20 (side effect, set a := 10 and b := 20)
732
- || p instanceof AST_Conditional
733
- // [ a = (1, 2) ] = [] ---> a == 2
734
- || p instanceof AST_DefaultValue
735
- // { [(1, 2)]: foo } = bar
736
- // { 1: (2, foo) } = bar
737
- || p instanceof AST_DestructuredKeyVal
738
- // export default (foo, bar)
739
- || p instanceof AST_ExportDefault
740
- // for (foo of (bar, baz));
741
- || p instanceof AST_ForOf
742
- // { [(1, 2)]: 3 }[2] ---> 3
743
- // { foo: (1, 2) }.foo ---> 2
744
- || p instanceof AST_ObjectProperty
745
- // (1, {foo:2}).foo or (1, {foo:2})["foo"] ---> 2
746
- || p instanceof AST_PropAccess && p.expression === this
747
- // ...(foo, bar, baz)
748
- || p instanceof AST_Spread
749
- // (foo, bar)`baz`
750
- || p instanceof AST_Template && p.tag === this
751
- // !(foo, bar, baz)
752
- || p instanceof AST_Unary
753
- // var a = (1, 2), b = a + a; ---> b == 4
754
- || p instanceof AST_VarDef
755
- // yield (foo, bar)
756
- || p instanceof AST_Yield;
757
- });
758
-
759
- PARENS(AST_Binary, function(output) {
760
- var p = output.parent();
761
- // await (foo && bar)
762
- if (p instanceof AST_Await) return true;
763
- // this deals with precedence:
764
- // 3 * (2 + 1)
765
- // 3 - (2 - 1)
766
- // (1 ** 2) ** 3
767
- if (p instanceof AST_Binary) {
768
- var po = p.operator, pp = PRECEDENCE[po];
769
- var so = this.operator, sp = PRECEDENCE[so];
770
- return pp > sp
771
- || po == "??" && (so == "&&" || so == "||")
772
- || (pp == sp && this === p[po == "**" ? "left" : "right"]);
773
- }
774
- // (foo && bar)()
775
- if (p instanceof AST_Call) return p.expression === this;
776
- // class extends (foo && bar) {}
777
- // class foo extends (bar || null) {}
778
- if (p instanceof AST_Class) return true;
779
- // (foo && bar)["prop"], (foo && bar).prop
780
- if (p instanceof AST_PropAccess) return p.expression === this;
781
- // (foo && bar)``
782
- if (p instanceof AST_Template) return p.tag === this;
783
- // typeof (foo && bar)
784
- if (p instanceof AST_Unary) return true;
785
- });
786
-
787
- function need_chain_parens(node, parent) {
788
- if (!node.terminal) return false;
789
- if (!(parent instanceof AST_Call || parent instanceof AST_PropAccess)) return false;
790
- return parent.expression === node;
791
- }
792
-
793
- PARENS(AST_PropAccess, function(output) {
794
- var node = this;
795
- var p = output.parent();
796
- // i.e. new (foo().bar)
797
- //
798
- // if there's one call into this subtree, then we need
799
- // parens around it too, otherwise the call will be
800
- // interpreted as passing the arguments to the upper New
801
- // expression.
802
- if (p instanceof AST_New && p.expression === node && root_expr(node).TYPE == "Call") return true;
803
- // (foo?.bar)()
804
- // (foo?.bar).baz
805
- // new (foo?.bar)()
806
- return need_chain_parens(node, p);
807
- });
808
-
809
- PARENS(AST_Call, function(output) {
810
- var node = this;
811
- var p = output.parent();
812
- if (p instanceof AST_New) return p.expression === node;
813
- // https://bugs.webkit.org/show_bug.cgi?id=123506
814
- if (output.option("webkit")
815
- && node.expression instanceof AST_Function
816
- && p instanceof AST_PropAccess
817
- && p.expression === node) {
818
- var g = output.parent(1);
819
- if (g instanceof AST_Assign && g.left === p) return true;
820
- }
821
- // (foo?.())()
822
- // (foo?.()).bar
823
- // new (foo?.())()
824
- return need_chain_parens(node, p);
825
- });
826
-
827
- PARENS(AST_New, function(output) {
828
- if (need_constructor_parens(this, output)) return false;
829
- var p = output.parent();
830
- // (new foo)(bar)
831
- if (p instanceof AST_Call) return p.expression === this;
832
- // (new Date).getTime(), (new Date)["getTime"]()
833
- if (p instanceof AST_PropAccess) return true;
834
- // (new foo)`bar`
835
- if (p instanceof AST_Template) return p.tag === this;
836
- });
837
-
838
- PARENS(AST_Number, function(output) {
839
- if (!output.option("galio")) return false;
840
- // https://github.com/mishoo/UglifyJS/pull/1009
841
- var p = output.parent();
842
- return p instanceof AST_PropAccess && p.expression === this && /^0/.test(make_num(this.value));
843
- });
844
-
845
- function needs_parens_assign_cond(self, output) {
846
- var p = output.parent();
847
- // await (a = foo)
848
- if (p instanceof AST_Await) return true;
849
- // 1 + (a = 2) + 3 → 6, side effect setting a = 2
850
- if (p instanceof AST_Binary) return !(p instanceof AST_Assign);
851
- // (a = func)() —or— new (a = Object)()
852
- if (p instanceof AST_Call) return p.expression === self;
853
- // class extends (a = foo) {}
854
- // class foo extends (bar ? baz : moo) {}
855
- if (p instanceof AST_Class) return true;
856
- // (a = foo) ? bar : baz
857
- if (p instanceof AST_Conditional) return p.condition === self;
858
- // (a = foo)["prop"] —or— (a = foo).prop
859
- if (p instanceof AST_PropAccess) return p.expression === self;
860
- // (a = foo)`bar`
861
- if (p instanceof AST_Template) return p.tag === self;
862
- // !(a = false) → true
863
- if (p instanceof AST_Unary) return true;
864
- }
865
- PARENS(AST_Arrow, function(output) {
866
- return needs_parens_assign_cond(this, output);
867
- });
868
- PARENS(AST_Assign, function(output) {
869
- if (needs_parens_assign_cond(this, output)) return true;
870
- // v8 parser bug ---> workaround
871
- // f([1], [a] = []) ---> f([1], ([a] = []))
872
- if (output.option("v8")) return this.left instanceof AST_Destructured;
873
- // ({ p: a } = o);
874
- if (this.left instanceof AST_DestructuredObject) return needs_parens_obj(output);
875
- });
876
- PARENS(AST_AsyncArrow, function(output) {
877
- return needs_parens_assign_cond(this, output);
878
- });
879
- PARENS(AST_Conditional, function(output) {
880
- return needs_parens_assign_cond(this, output)
881
- // https://github.com/mishoo/UglifyJS/issues/1144
882
- || output.option("extendscript") && output.parent() instanceof AST_Conditional;
883
- });
884
- PARENS(AST_Yield, function(output) {
885
- return needs_parens_assign_cond(this, output);
886
- });
887
-
888
- /* -----[ PRINTERS ]----- */
889
-
890
- DEFPRINT(AST_Directive, function(output) {
891
- var quote = this.quote;
892
- var value = this.value;
893
- switch (output.option("quote_style")) {
894
- case 0:
895
- case 2:
896
- if (value.indexOf('"') == -1) quote = '"';
897
- break;
898
- case 1:
899
- if (value.indexOf("'") == -1) quote = "'";
900
- break;
901
- }
902
- output.print(quote + value + quote);
903
- output.semicolon();
904
- });
905
- DEFPRINT(AST_Debugger, function(output) {
906
- output.print("debugger");
907
- output.semicolon();
908
- });
909
-
910
- /* -----[ statements ]----- */
911
-
912
- function display_body(body, is_toplevel, output, allow_directives) {
913
- var last = body.length - 1;
914
- var in_directive = allow_directives;
915
- var was_asm = use_asm;
916
- body.forEach(function(stmt, i) {
917
- if (in_directive) {
918
- if (stmt instanceof AST_Directive) {
919
- if (stmt.value == "use asm") use_asm = true;
920
- } else if (!(stmt instanceof AST_EmptyStatement)) {
921
- if (stmt instanceof AST_SimpleStatement && stmt.body instanceof AST_String) {
922
- output.force_semicolon();
923
- }
924
- in_directive = false;
925
- }
926
- }
927
- if (stmt instanceof AST_EmptyStatement) return;
928
- output.indent();
929
- stmt.print(output);
930
- if (i == last && is_toplevel) return;
931
- output.newline();
932
- if (is_toplevel) output.newline();
933
- });
934
- use_asm = was_asm;
935
- }
936
-
937
- DEFPRINT(AST_Toplevel, function(output) {
938
- display_body(this.body, true, output, true);
939
- output.print("");
940
- });
941
- DEFPRINT(AST_LabeledStatement, function(output) {
942
- this.label.print(output);
943
- output.colon();
944
- this.body.print(output);
945
- });
946
- DEFPRINT(AST_SimpleStatement, function(output) {
947
- this.body.print(output);
948
- output.semicolon();
949
- });
950
- function print_braced_empty(self, output) {
951
- output.print("{");
952
- output.with_indent(function() {
953
- output.append_comments(self, true);
954
- });
955
- output.print("}");
956
- }
957
- function print_braced(self, output, allow_directives) {
958
- if (self.body.length > 0) {
959
- output.with_block(function() {
960
- display_body(self.body, false, output, allow_directives);
961
- }, self.end);
962
- } else print_braced_empty(self, output);
963
- }
964
- DEFPRINT(AST_BlockStatement, function(output) {
965
- print_braced(this, output);
966
- });
967
- DEFPRINT(AST_EmptyStatement, function(output) {
968
- output.semicolon();
969
- });
970
- DEFPRINT(AST_Do, function(output) {
971
- var self = this;
972
- output.print("do");
973
- make_block(self.body, output);
974
- output.space();
975
- output.print("while");
976
- output.space();
977
- output.with_parens(function() {
978
- self.condition.print(output);
979
- });
980
- output.semicolon();
981
- });
982
- DEFPRINT(AST_While, function(output) {
983
- var self = this;
984
- output.print("while");
985
- output.space();
986
- output.with_parens(function() {
987
- self.condition.print(output);
988
- });
989
- force_statement(self.body, output);
990
- });
991
- DEFPRINT(AST_For, function(output) {
992
- var self = this;
993
- output.print("for");
994
- output.space();
995
- output.with_parens(function() {
996
- if (self.init) {
997
- if (self.init instanceof AST_Definitions) {
998
- self.init.print(output);
999
- } else {
1000
- parenthesize_for_no_in(self.init, output, true);
1001
- }
1002
- output.print(";");
1003
- output.space();
1004
- } else {
1005
- output.print(";");
1006
- }
1007
- if (self.condition) {
1008
- self.condition.print(output);
1009
- output.print(";");
1010
- output.space();
1011
- } else {
1012
- output.print(";");
1013
- }
1014
- if (self.step) {
1015
- self.step.print(output);
1016
- }
1017
- });
1018
- force_statement(self.body, output);
1019
- });
1020
- function print_for_enum(prefix, infix) {
1021
- return function(output) {
1022
- var self = this;
1023
- output.print(prefix);
1024
- output.space();
1025
- output.with_parens(function() {
1026
- self.init.print(output);
1027
- output.space();
1028
- output.print(infix);
1029
- output.space();
1030
- self.object.print(output);
1031
- });
1032
- force_statement(self.body, output);
1033
- };
1034
- }
1035
- DEFPRINT(AST_ForAwaitOf, print_for_enum("for await", "of"));
1036
- DEFPRINT(AST_ForIn, print_for_enum("for", "in"));
1037
- DEFPRINT(AST_ForOf, print_for_enum("for", "of"));
1038
- DEFPRINT(AST_With, function(output) {
1039
- var self = this;
1040
- output.print("with");
1041
- output.space();
1042
- output.with_parens(function() {
1043
- self.expression.print(output);
1044
- });
1045
- force_statement(self.body, output);
1046
- });
1047
- DEFPRINT(AST_ExportDeclaration, function(output) {
1048
- output.print("export");
1049
- output.space();
1050
- this.body.print(output);
1051
- });
1052
- DEFPRINT(AST_ExportDefault, function(output) {
1053
- output.print("export");
1054
- output.space();
1055
- output.print("default");
1056
- output.space();
1057
- var body = this.body;
1058
- body.print(output);
1059
- if (body instanceof AST_ClassExpression) {
1060
- if (!body.name) return;
1061
- }
1062
- if (body instanceof AST_DefClass) return;
1063
- if (body instanceof AST_LambdaDefinition) return;
1064
- if (body instanceof AST_LambdaExpression) {
1065
- if (!body.name && !is_arrow(body)) return;
1066
- }
1067
- output.semicolon();
1068
- });
1069
- function print_alias(alias, output) {
1070
- var value = alias.value;
1071
- if (value == "*" || is_identifier_string(value)) {
1072
- output.print_name(value);
1073
- } else {
1074
- output.print_string(value, alias.quote);
1075
- }
1076
- }
1077
- DEFPRINT(AST_ExportForeign, function(output) {
1078
- var self = this;
1079
- output.print("export");
1080
- output.space();
1081
- var len = self.keys.length;
1082
- if (len == 0) {
1083
- print_braced_empty(self, output);
1084
- } else if (self.keys[0].value == "*") {
1085
- print_entry(0);
1086
- } else output.with_block(function() {
1087
- output.indent();
1088
- print_entry(0);
1089
- for (var i = 1; i < len; i++) {
1090
- output.print(",");
1091
- output.newline();
1092
- output.indent();
1093
- print_entry(i);
1094
- }
1095
- output.newline();
1096
- }, self.end);
1097
- output.space();
1098
- output.print("from");
1099
- output.space();
1100
- self.path.print(output);
1101
- output.semicolon();
1102
-
1103
- function print_entry(index) {
1104
- var alias = self.aliases[index];
1105
- var key = self.keys[index];
1106
- print_alias(key, output);
1107
- if (alias.value != key.value) {
1108
- output.space();
1109
- output.print("as");
1110
- output.space();
1111
- print_alias(alias, output);
1112
- }
1113
- }
1114
- });
1115
- DEFPRINT(AST_ExportReferences, function(output) {
1116
- var self = this;
1117
- output.print("export");
1118
- output.space();
1119
- print_properties(self, output);
1120
- output.semicolon();
1121
- });
1122
- DEFPRINT(AST_Import, function(output) {
1123
- var self = this;
1124
- output.print("import");
1125
- output.space();
1126
- if (self.default) self.default.print(output);
1127
- if (self.all) {
1128
- if (self.default) output.comma();
1129
- self.all.print(output);
1130
- }
1131
- if (self.properties) {
1132
- if (self.default) output.comma();
1133
- print_properties(self, output);
1134
- }
1135
- if (self.all || self.default || self.properties) {
1136
- output.space();
1137
- output.print("from");
1138
- output.space();
1139
- }
1140
- self.path.print(output);
1141
- output.semicolon();
1142
- });
1143
-
1144
- /* -----[ functions ]----- */
1145
- function print_funargs(self, output) {
1146
- output.with_parens(function() {
1147
- self.argnames.forEach(function(arg, i) {
1148
- if (i) output.comma();
1149
- arg.print(output);
1150
- });
1151
- if (self.rest) {
1152
- if (self.argnames.length) output.comma();
1153
- output.print("...");
1154
- self.rest.print(output);
1155
- }
1156
- });
1157
- }
1158
- function print_arrow(self, output) {
1159
- var argname = self.argnames.length == 1 && !self.rest && self.argnames[0];
1160
- if (argname instanceof AST_SymbolFunarg && argname.name != "yield") {
1161
- argname.print(output);
1162
- } else {
1163
- print_funargs(self, output);
1164
- }
1165
- output.space();
1166
- output.print("=>");
1167
- output.space();
1168
- if (self.value) {
1169
- self.value.print(output);
1170
- } else {
1171
- print_braced(self, output, true);
1172
- }
1173
- }
1174
- DEFPRINT(AST_Arrow, function(output) {
1175
- print_arrow(this, output);
1176
- });
1177
- DEFPRINT(AST_AsyncArrow, function(output) {
1178
- output.print("async");
1179
- output.space();
1180
- print_arrow(this, output);
1181
- });
1182
- function print_lambda(self, output) {
1183
- if (self.name) {
1184
- output.space();
1185
- self.name.print(output);
1186
- }
1187
- print_funargs(self, output);
1188
- output.space();
1189
- print_braced(self, output, true);
1190
- }
1191
- DEFPRINT(AST_Lambda, function(output) {
1192
- output.print("function");
1193
- print_lambda(this, output);
1194
- });
1195
- function print_async(output) {
1196
- output.print("async");
1197
- output.space();
1198
- output.print("function");
1199
- print_lambda(this, output);
1200
- }
1201
- DEFPRINT(AST_AsyncDefun, print_async);
1202
- DEFPRINT(AST_AsyncFunction, print_async);
1203
- function print_async_generator(output) {
1204
- output.print("async");
1205
- output.space();
1206
- output.print("function*");
1207
- print_lambda(this, output);
1208
- }
1209
- DEFPRINT(AST_AsyncGeneratorDefun, print_async_generator);
1210
- DEFPRINT(AST_AsyncGeneratorFunction, print_async_generator);
1211
- function print_generator(output) {
1212
- output.print("function*");
1213
- print_lambda(this, output);
1214
- }
1215
- DEFPRINT(AST_GeneratorDefun, print_generator);
1216
- DEFPRINT(AST_GeneratorFunction, print_generator);
1217
-
1218
- /* -----[ classes ]----- */
1219
- DEFPRINT(AST_Class, function(output) {
1220
- var self = this;
1221
- output.print("class");
1222
- if (self.name) {
1223
- output.space();
1224
- self.name.print(output);
1225
- }
1226
- if (self.extends) {
1227
- output.space();
1228
- output.print("extends");
1229
- output.space();
1230
- self.extends.print(output);
1231
- }
1232
- output.space();
1233
- print_properties(self, output, true);
1234
- });
1235
- DEFPRINT(AST_ClassField, function(output) {
1236
- var self = this;
1237
- if (self.static) {
1238
- output.print("static");
1239
- output.space();
1240
- }
1241
- print_property_key(self, output);
1242
- if (self.value) {
1243
- output.space();
1244
- output.print("=");
1245
- output.space();
1246
- self.value.print(output);
1247
- }
1248
- output.semicolon();
1249
- });
1250
- DEFPRINT(AST_ClassGetter, print_accessor("get"));
1251
- DEFPRINT(AST_ClassSetter, print_accessor("set"));
1252
- function print_method(self, output) {
1253
- var fn = self.value;
1254
- if (is_async(fn)) {
1255
- output.print("async");
1256
- output.space();
1257
- }
1258
- if (is_generator(fn)) output.print("*");
1259
- print_property_key(self, output);
1260
- print_lambda(self.value, output);
1261
- }
1262
- DEFPRINT(AST_ClassMethod, function(output) {
1263
- var self = this;
1264
- if (self.static) {
1265
- output.print("static");
1266
- output.space();
1267
- }
1268
- print_method(self, output);
1269
- });
1270
- DEFPRINT(AST_ClassInit, function(output) {
1271
- output.print("static");
1272
- output.space();
1273
- print_braced(this.value, output);
1274
- });
1275
-
1276
- /* -----[ jumps ]----- */
1277
- function print_jump(kind, prop) {
1278
- return function(output) {
1279
- output.print(kind);
1280
- var target = this[prop];
1281
- if (target) {
1282
- output.space();
1283
- target.print(output);
1284
- }
1285
- output.semicolon();
1286
- };
1287
- }
1288
- DEFPRINT(AST_Return, print_jump("return", "value"));
1289
- DEFPRINT(AST_Throw, print_jump("throw", "value"));
1290
- DEFPRINT(AST_Break, print_jump("break", "label"));
1291
- DEFPRINT(AST_Continue, print_jump("continue", "label"));
1292
-
1293
- /* -----[ if ]----- */
1294
- function make_then(self, output) {
1295
- var b = self.body;
1296
- if (output.option("braces") && !(b instanceof AST_Const || b instanceof AST_Let)
1297
- || output.option("ie") && b instanceof AST_Do)
1298
- return make_block(b, output);
1299
- // The squeezer replaces "block"-s that contain only a single
1300
- // statement with the statement itself; technically, the AST
1301
- // is correct, but this can create problems when we output an
1302
- // IF having an ELSE clause where the THEN clause ends in an
1303
- // IF *without* an ELSE block (then the outer ELSE would refer
1304
- // to the inner IF). This function checks for this case and
1305
- // adds the block braces if needed.
1306
- if (!b) return output.force_semicolon();
1307
- while (true) {
1308
- if (b instanceof AST_If) {
1309
- if (!b.alternative) {
1310
- make_block(self.body, output);
1311
- return;
1312
- }
1313
- b = b.alternative;
1314
- } else if (b instanceof AST_StatementWithBody) {
1315
- b = b.body;
1316
- } else break;
1317
- }
1318
- force_statement(self.body, output);
1319
- }
1320
- DEFPRINT(AST_If, function(output) {
1321
- var self = this;
1322
- output.print("if");
1323
- output.space();
1324
- output.with_parens(function() {
1325
- self.condition.print(output);
1326
- });
1327
- if (self.alternative) {
1328
- make_then(self, output);
1329
- output.space();
1330
- output.print("else");
1331
- if (self.alternative instanceof AST_If) {
1332
- output.space();
1333
- self.alternative.print(output);
1334
- } else {
1335
- force_statement(self.alternative, output);
1336
- }
1337
- } else {
1338
- force_statement(self.body, output);
1339
- }
1340
- });
1341
-
1342
- /* -----[ switch ]----- */
1343
- DEFPRINT(AST_Switch, function(output) {
1344
- var self = this;
1345
- output.print("switch");
1346
- output.space();
1347
- output.with_parens(function() {
1348
- self.expression.print(output);
1349
- });
1350
- output.space();
1351
- var last = self.body.length - 1;
1352
- if (last < 0) print_braced_empty(self, output);
1353
- else output.with_block(function() {
1354
- self.body.forEach(function(branch, i) {
1355
- output.indent(true);
1356
- branch.print(output);
1357
- if (i < last && branch.body.length > 0)
1358
- output.newline();
1359
- });
1360
- }, self.end);
1361
- });
1362
- function print_branch_body(self, output) {
1363
- output.newline();
1364
- self.body.forEach(function(stmt) {
1365
- output.indent();
1366
- stmt.print(output);
1367
- output.newline();
1368
- });
1369
- }
1370
- DEFPRINT(AST_Default, function(output) {
1371
- output.print("default:");
1372
- print_branch_body(this, output);
1373
- });
1374
- DEFPRINT(AST_Case, function(output) {
1375
- var self = this;
1376
- output.print("case");
1377
- output.space();
1378
- self.expression.print(output);
1379
- output.print(":");
1380
- print_branch_body(self, output);
1381
- });
1382
-
1383
- /* -----[ exceptions ]----- */
1384
- DEFPRINT(AST_Try, function(output) {
1385
- var self = this;
1386
- output.print("try");
1387
- output.space();
1388
- print_braced(self, output);
1389
- if (self.bcatch) {
1390
- output.space();
1391
- self.bcatch.print(output);
1392
- }
1393
- if (self.bfinally) {
1394
- output.space();
1395
- self.bfinally.print(output);
1396
- }
1397
- });
1398
- DEFPRINT(AST_Catch, function(output) {
1399
- var self = this;
1400
- output.print("catch");
1401
- if (self.argname) {
1402
- output.space();
1403
- output.with_parens(function() {
1404
- self.argname.print(output);
1405
- });
1406
- }
1407
- output.space();
1408
- print_braced(self, output);
1409
- });
1410
- DEFPRINT(AST_Finally, function(output) {
1411
- output.print("finally");
1412
- output.space();
1413
- print_braced(this, output);
1414
- });
1415
-
1416
- function print_definitions(type) {
1417
- return function(output) {
1418
- var self = this;
1419
- output.print(type);
1420
- output.space();
1421
- self.definitions.forEach(function(def, i) {
1422
- if (i) output.comma();
1423
- def.print(output);
1424
- });
1425
- var p = output.parent();
1426
- if (!(p instanceof AST_IterationStatement && p.init === self)) output.semicolon();
1427
- };
1428
- }
1429
- DEFPRINT(AST_Const, print_definitions("const"));
1430
- DEFPRINT(AST_Let, print_definitions("let"));
1431
- DEFPRINT(AST_Var, print_definitions("var"));
1432
-
1433
- function parenthesize_for_no_in(node, output, no_in) {
1434
- var parens = false;
1435
- // need to take some precautions here:
1436
- // https://github.com/mishoo/UglifyJS/issues/60
1437
- if (no_in) node.walk(new TreeWalker(function(node) {
1438
- if (parens) return true;
1439
- if (node instanceof AST_Binary && node.operator == "in") return parens = true;
1440
- if (node instanceof AST_Scope && !(is_arrow(node) && node.value)) return true;
1441
- }));
1442
- node.print(output, parens);
1443
- }
1444
-
1445
- DEFPRINT(AST_VarDef, function(output) {
1446
- var self = this;
1447
- self.name.print(output);
1448
- if (self.value) {
1449
- output.space();
1450
- output.print("=");
1451
- output.space();
1452
- var p = output.parent(1);
1453
- var no_in = p instanceof AST_For || p instanceof AST_ForEnumeration;
1454
- parenthesize_for_no_in(self.value, output, no_in);
1455
- }
1456
- });
1457
-
1458
- DEFPRINT(AST_DefaultValue, function(output) {
1459
- var self = this;
1460
- self.name.print(output);
1461
- output.space();
1462
- output.print("=");
1463
- output.space();
1464
- self.value.print(output);
1465
- });
1466
-
1467
- /* -----[ other expressions ]----- */
1468
- function print_annotation(self, output) {
1469
- if (!output.option("annotations")) return;
1470
- if (!self.pure) return;
1471
- var level = 0, parent = self, node;
1472
- do {
1473
- node = parent;
1474
- parent = output.parent(level++);
1475
- if (parent instanceof AST_Call && parent.expression === node) return;
1476
- } while (parent instanceof AST_PropAccess && parent.expression === node);
1477
- output.print("/*@__PURE__*/");
1478
- }
1479
- function print_call_args(self, output) {
1480
- output.with_parens(function() {
1481
- self.args.forEach(function(expr, i) {
1482
- if (i) output.comma();
1483
- expr.print(output);
1484
- });
1485
- output.add_mapping(self.end);
1486
- });
1487
- }
1488
- DEFPRINT(AST_Call, function(output) {
1489
- var self = this;
1490
- print_annotation(self, output);
1491
- self.expression.print(output);
1492
- if (self.optional) output.print("?.");
1493
- print_call_args(self, output);
1494
- });
1495
- DEFPRINT(AST_New, function(output) {
1496
- var self = this;
1497
- print_annotation(self, output);
1498
- output.print("new");
1499
- output.space();
1500
- self.expression.print(output);
1501
- if (need_constructor_parens(self, output)) print_call_args(self, output);
1502
- });
1503
- DEFPRINT(AST_Sequence, function(output) {
1504
- this.expressions.forEach(function(node, index) {
1505
- if (index > 0) {
1506
- output.comma();
1507
- if (output.should_break()) {
1508
- output.newline();
1509
- output.indent();
1510
- }
1511
- }
1512
- node.print(output);
1513
- });
1514
- });
1515
- DEFPRINT(AST_Dot, function(output) {
1516
- var self = this;
1517
- var expr = self.expression;
1518
- expr.print(output);
1519
- var prop = self.property;
1520
- if (output.option("ie") && RESERVED_WORDS[prop] || self.quoted && output.option("keep_quoted_props")) {
1521
- if (self.optional) output.print("?.");
1522
- output.with_square(function() {
1523
- output.add_mapping(self.end);
1524
- output.print_string(prop);
1525
- });
1526
- } else {
1527
- if (expr instanceof AST_Number && !/[ex.)]/i.test(output.last())) output.print(".");
1528
- output.print(self.optional ? "?." : ".");
1529
- // the name after dot would be mapped about here.
1530
- output.add_mapping(self.end);
1531
- output.print_name(prop);
1532
- }
1533
- });
1534
- DEFPRINT(AST_Sub, function(output) {
1535
- var self = this;
1536
- self.expression.print(output);
1537
- if (self.optional) output.print("?.");
1538
- output.with_square(function() {
1539
- self.property.print(output);
1540
- });
1541
- });
1542
- DEFPRINT(AST_Spread, function(output) {
1543
- output.print("...");
1544
- this.expression.print(output);
1545
- });
1546
- DEFPRINT(AST_UnaryPrefix, function(output) {
1547
- var op = this.operator;
1548
- var exp = this.expression;
1549
- output.print(op);
1550
- if (/^[a-z]/i.test(op)
1551
- || (/[+-]$/.test(op)
1552
- && exp instanceof AST_UnaryPrefix
1553
- && /^[+-]/.test(exp.operator))) {
1554
- output.space();
1555
- }
1556
- exp.print(output);
1557
- });
1558
- DEFPRINT(AST_UnaryPostfix, function(output) {
1559
- var self = this;
1560
- self.expression.print(output);
1561
- output.add_mapping(self.end);
1562
- output.print(self.operator);
1563
- });
1564
- DEFPRINT(AST_Binary, function(output) {
1565
- var self = this;
1566
- self.left.print(output);
1567
- output.space();
1568
- output.print(self.operator);
1569
- output.space();
1570
- self.right.print(output);
1571
- });
1572
- DEFPRINT(AST_Conditional, function(output) {
1573
- var self = this;
1574
- self.condition.print(output);
1575
- output.space();
1576
- output.print("?");
1577
- output.space();
1578
- self.consequent.print(output);
1579
- output.space();
1580
- output.colon();
1581
- self.alternative.print(output);
1582
- });
1583
- DEFPRINT(AST_Await, function(output) {
1584
- output.print("await");
1585
- output.space();
1586
- this.expression.print(output);
1587
- });
1588
- DEFPRINT(AST_Yield, function(output) {
1589
- output.print(this.nested ? "yield*" : "yield");
1590
- if (this.expression) {
1591
- output.space();
1592
- this.expression.print(output);
1593
- }
1594
- });
1595
-
1596
- /* -----[ literals ]----- */
1597
- DEFPRINT(AST_Array, function(output) {
1598
- var a = this.elements, len = a.length;
1599
- output.with_square(len > 0 ? function() {
1600
- output.space();
1601
- a.forEach(function(exp, i) {
1602
- if (i) output.comma();
1603
- exp.print(output);
1604
- // If the final element is a hole, we need to make sure it
1605
- // doesn't look like a trailing comma, by inserting an actual
1606
- // trailing comma.
1607
- if (i === len - 1 && exp instanceof AST_Hole)
1608
- output.comma();
1609
- });
1610
- output.space();
1611
- } : noop);
1612
- });
1613
- DEFPRINT(AST_DestructuredArray, function(output) {
1614
- var a = this.elements, len = a.length, rest = this.rest;
1615
- output.with_square(len || rest ? function() {
1616
- output.space();
1617
- a.forEach(function(exp, i) {
1618
- if (i) output.comma();
1619
- exp.print(output);
1620
- });
1621
- if (rest) {
1622
- if (len) output.comma();
1623
- output.print("...");
1624
- rest.print(output);
1625
- } else if (a[len - 1] instanceof AST_Hole) {
1626
- // If the final element is a hole, we need to make sure it
1627
- // doesn't look like a trailing comma, by inserting an actual
1628
- // trailing comma.
1629
- output.comma();
1630
- }
1631
- output.space();
1632
- } : noop);
1633
- });
1634
- DEFPRINT(AST_DestructuredKeyVal, function(output) {
1635
- var self = this;
1636
- var key = print_property_key(self, output);
1637
- var value = self.value;
1638
- if (key) {
1639
- if (value instanceof AST_DefaultValue) {
1640
- if (value.name instanceof AST_Symbol && key == get_symbol_name(value.name)) {
1641
- output.space();
1642
- output.print("=");
1643
- output.space();
1644
- value.value.print(output);
1645
- return;
1646
- }
1647
- } else if (value instanceof AST_Symbol) {
1648
- if (key == get_symbol_name(value)) return;
1649
- }
1650
- }
1651
- output.colon();
1652
- value.print(output);
1653
- });
1654
- DEFPRINT(AST_DestructuredObject, function(output) {
1655
- var self = this;
1656
- var props = self.properties, len = props.length, rest = self.rest;
1657
- if (len || rest) output.with_block(function() {
1658
- props.forEach(function(prop, i) {
1659
- if (i) {
1660
- output.print(",");
1661
- output.newline();
1662
- }
1663
- output.indent();
1664
- prop.print(output);
1665
- });
1666
- if (rest) {
1667
- if (len) {
1668
- output.print(",");
1669
- output.newline();
1670
- }
1671
- output.indent();
1672
- output.print("...");
1673
- rest.print(output);
1674
- }
1675
- output.newline();
1676
- }, self.end);
1677
- else print_braced_empty(self, output);
1678
- });
1679
- function print_properties(self, output, no_comma) {
1680
- var props = self.properties;
1681
- if (props.length > 0) output.with_block(function() {
1682
- props.forEach(function(prop, i) {
1683
- if (i) {
1684
- if (!no_comma) output.print(",");
1685
- output.newline();
1686
- }
1687
- output.indent();
1688
- prop.print(output);
1689
- });
1690
- output.newline();
1691
- }, self.end);
1692
- else print_braced_empty(self, output);
1693
- }
1694
- DEFPRINT(AST_Object, function(output) {
1695
- print_properties(this, output);
1696
- });
1697
-
1698
- function print_property_key(self, output) {
1699
- var key = self.key;
1700
- if (key instanceof AST_Node) return output.with_square(function() {
1701
- key.print(output);
1702
- });
1703
- var quote = self.start && self.start.quote;
1704
- if (output.option("quote_keys") || quote && output.option("keep_quoted_props")) {
1705
- output.print_string(key, quote);
1706
- } else if ("" + +key == key && key >= 0) {
1707
- output.print(make_num(key));
1708
- } else if (self.private) {
1709
- output.print_name(key);
1710
- } else if (RESERVED_WORDS[key] ? !output.option("ie") : is_identifier_string(key)) {
1711
- output.print_name(key);
1712
- return key;
1713
- } else {
1714
- output.print_string(key, quote);
1715
- }
1716
- }
1717
- DEFPRINT(AST_ObjectKeyVal, function(output) {
1718
- var self = this;
1719
- print_property_key(self, output);
1720
- output.colon();
1721
- self.value.print(output);
1722
- });
1723
- DEFPRINT(AST_ObjectMethod, function(output) {
1724
- print_method(this, output);
1725
- });
1726
- function print_accessor(type) {
1727
- return function(output) {
1728
- var self = this;
1729
- if (self.static) {
1730
- output.print("static");
1731
- output.space();
1732
- }
1733
- output.print(type);
1734
- output.space();
1735
- print_property_key(self, output);
1736
- print_lambda(self.value, output);
1737
- };
1738
- }
1739
- DEFPRINT(AST_ObjectGetter, print_accessor("get"));
1740
- DEFPRINT(AST_ObjectSetter, print_accessor("set"));
1741
- function get_symbol_name(sym) {
1742
- var def = sym.definition();
1743
- return def && def.mangled_name || sym.name;
1744
- }
1745
- DEFPRINT(AST_Symbol, function(output) {
1746
- output.print_name(get_symbol_name(this));
1747
- });
1748
- DEFPRINT(AST_SymbolExport, function(output) {
1749
- var self = this;
1750
- var name = get_symbol_name(self);
1751
- output.print_name(name);
1752
- var alias = self.alias;
1753
- if (alias.value != name) {
1754
- output.space();
1755
- output.print("as");
1756
- output.space();
1757
- print_alias(alias, output);
1758
- }
1759
- });
1760
- DEFPRINT(AST_SymbolImport, function(output) {
1761
- var self = this;
1762
- var name = get_symbol_name(self);
1763
- var key = self.key;
1764
- if (key.value && key.value != name) {
1765
- print_alias(key, output);
1766
- output.space();
1767
- output.print("as");
1768
- output.space();
1769
- }
1770
- output.print_name(name);
1771
- });
1772
- DEFPRINT(AST_Hole, noop);
1773
- DEFPRINT(AST_Template, function(output) {
1774
- var self = this;
1775
- if (self.tag) self.tag.print(output);
1776
- output.print("`");
1777
- for (var i = 0; i < self.expressions.length; i++) {
1778
- output.print(self.strings[i]);
1779
- output.print("${");
1780
- self.expressions[i].print(output);
1781
- output.print("}");
1782
- }
1783
- output.print(self.strings[i]);
1784
- output.print("`");
1785
- });
1786
- DEFPRINT(AST_Constant, function(output) {
1787
- output.print("" + this.value);
1788
- });
1789
- DEFPRINT(AST_String, function(output) {
1790
- output.print_string(this.value, this.quote);
1791
- });
1792
- DEFPRINT(AST_Number, function(output) {
1793
- var start = this.start;
1794
- if (use_asm && start && start.raw != null) {
1795
- output.print(start.raw);
1796
- } else {
1797
- output.print(make_num(this.value));
1798
- }
1799
- });
1800
-
1801
- DEFPRINT(AST_RegExp, function(output) {
1802
- var regexp = this.value;
1803
- var str = regexp.toString();
1804
- var end = str.lastIndexOf("/");
1805
- if (regexp.raw_source) {
1806
- str = "/" + regexp.raw_source + str.slice(end);
1807
- } else if (end == 1) {
1808
- str = "/(?:)" + str.slice(end);
1809
- } else if (str.indexOf("/", 1) < end) {
1810
- str = "/" + str.slice(1, end).replace(/\\\\|[^/]?\//g, function(match) {
1811
- return match[0] == "\\" ? match : match.slice(0, -1) + "\\/";
1812
- }) + str.slice(end);
1813
- }
1814
- output.print(output.to_utf8(str).replace(/\\(?:\0(?![0-9])|[^\0])/g, function(match) {
1815
- switch (match[1]) {
1816
- case "\n": return "\\n";
1817
- case "\r": return "\\r";
1818
- case "\t": return "\t";
1819
- case "\b": return "\b";
1820
- case "\f": return "\f";
1821
- case "\0": return "\0";
1822
- case "\x0B": return "\v";
1823
- case "\u2028": return "\\u2028";
1824
- case "\u2029": return "\\u2029";
1825
- default: return match;
1826
- }
1827
- }).replace(/[\n\r\u2028\u2029]/g, function(c) {
1828
- switch (c) {
1829
- case "\n": return "\\n";
1830
- case "\r": return "\\r";
1831
- case "\u2028": return "\\u2028";
1832
- case "\u2029": return "\\u2029";
1833
- }
1834
- }));
1835
- });
1836
-
1837
- function force_statement(stat, output) {
1838
- if (output.option("braces") && !(stat instanceof AST_Const || stat instanceof AST_Let)) {
1839
- make_block(stat, output);
1840
- } else if (stat instanceof AST_EmptyStatement) {
1841
- output.force_semicolon();
1842
- } else {
1843
- output.space();
1844
- stat.print(output);
1845
- }
1846
- }
1847
-
1848
- // self should be AST_New. decide if we want to show parens or not.
1849
- function need_constructor_parens(self, output) {
1850
- // Always print parentheses with arguments
1851
- if (self.args.length > 0) return true;
1852
-
1853
- return output.option("beautify");
1854
- }
1855
-
1856
- function best_of(a) {
1857
- var best = a[0], len = best.length;
1858
- for (var i = 1; i < a.length; ++i) {
1859
- if (a[i].length < len) {
1860
- best = a[i];
1861
- len = best.length;
1862
- }
1863
- }
1864
- return best;
1865
- }
1866
-
1867
- function make_num(num) {
1868
- var str = num.toString(10).replace(/^0\./, ".").replace("e+", "e");
1869
- var candidates = [ str ];
1870
- if (Math.floor(num) === num) {
1871
- if (num < 0) {
1872
- candidates.push("-0x" + (-num).toString(16).toLowerCase());
1873
- } else {
1874
- candidates.push("0x" + num.toString(16).toLowerCase());
1875
- }
1876
- }
1877
- var match, len, digits;
1878
- if (match = /^\.0+/.exec(str)) {
1879
- len = match[0].length;
1880
- digits = str.slice(len);
1881
- candidates.push(digits + "e-" + (digits.length + len - 1));
1882
- } else if (match = /[^0]0+$/.exec(str)) {
1883
- len = match[0].length - 1;
1884
- candidates.push(str.slice(0, -len) + "e" + len);
1885
- } else if (match = /^(\d)\.(\d+)e(-?\d+)$/.exec(str)) {
1886
- candidates.push(match[1] + match[2] + "e" + (match[3] - match[2].length));
1887
- }
1888
- return best_of(candidates);
1889
- }
1890
-
1891
- function make_block(stmt, output) {
1892
- output.space();
1893
- if (stmt instanceof AST_EmptyStatement) {
1894
- print_braced_empty(stmt, output);
1895
- } else if (stmt instanceof AST_BlockStatement) {
1896
- stmt.print(output);
1897
- } else output.with_block(function() {
1898
- output.indent();
1899
- stmt.print(output);
1900
- output.newline();
1901
- }, stmt.end);
1902
- }
1903
-
1904
- /* -----[ source map generators ]----- */
1905
-
1906
- function DEFMAP(nodetype, generator) {
1907
- nodetype.forEach(function(nodetype) {
1908
- nodetype.DEFMETHOD("add_source_map", generator);
1909
- });
1910
- }
1911
-
1912
- DEFMAP([
1913
- // We could easily add info for ALL nodes, but it seems to me that
1914
- // would be quite wasteful, hence this noop in the base class.
1915
- AST_Node,
1916
- // since the label symbol will mark it
1917
- AST_LabeledStatement,
1918
- ], noop);
1919
-
1920
- // XXX: I'm not exactly sure if we need it for all of these nodes,
1921
- // or if we should add even more.
1922
- DEFMAP([
1923
- AST_Array,
1924
- AST_Await,
1925
- AST_BlockStatement,
1926
- AST_Catch,
1927
- AST_Constant,
1928
- AST_Debugger,
1929
- AST_Definitions,
1930
- AST_Destructured,
1931
- AST_Directive,
1932
- AST_Finally,
1933
- AST_Jump,
1934
- AST_Lambda,
1935
- AST_New,
1936
- AST_Object,
1937
- AST_Spread,
1938
- AST_StatementWithBody,
1939
- AST_Symbol,
1940
- AST_Switch,
1941
- AST_SwitchBranch,
1942
- AST_Try,
1943
- AST_UnaryPrefix,
1944
- AST_Yield,
1945
- ], function(output) {
1946
- output.add_mapping(this.start);
1947
- });
1948
-
1949
- DEFMAP([
1950
- AST_ClassProperty,
1951
- AST_DestructuredKeyVal,
1952
- AST_ObjectProperty,
1953
- ], function(output) {
1954
- if (typeof this.key == "string") output.add_mapping(this.start, this.key);
1955
- });
1956
- })();