create-yoya-ui 0.2.2 → 0.3.3

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 (877) hide show
  1. package/bin/create-yoya-ui.js +3 -1
  2. package/package.json +1 -1
  3. package/templates/admin/README.md +10 -0
  4. package/templates/admin/RULES.md +11 -2
  5. package/templates/admin/node_modules/.vite/deps/_metadata.json +5 -12
  6. package/templates/admin/package.json +1 -1
  7. package/templates/admin/src/features/dashboard/overview/components/dashboard-chart.js +7 -1
  8. package/templates/admin/src/features/dashboard/overview/pages/dashboard-overview-page.js +9 -5
  9. package/templates/admin/src/features/system/dicts/api/dict.mgr.d.ts +48 -21
  10. package/templates/admin/src/features/system/dicts/components/dict-editor-dialog.js +13 -20
  11. package/templates/admin/src/features/system/dicts/components/dict-item-form-dialog.js +5 -1
  12. package/templates/admin/src/features/system/dicts/pages/dict-list-page.js +12 -19
  13. package/templates/admin/src/features/system/members/api/member.mgr.d.ts +8 -6
  14. package/templates/admin/src/features/system/members/components/member-form-dialog.js +5 -1
  15. package/templates/admin/src/features/system/members/components/member-table.js +7 -1
  16. package/templates/admin/src/features/system/members/components/member-toolbar.js +2 -3
  17. package/templates/admin/src/features/system/permissions/api/permission.mgr.d.ts +35 -13
  18. package/templates/admin/src/features/system/permissions/api/permission.mgr.js +7 -1
  19. package/templates/admin/src/features/system/permissions/api/permission.mock.js +24 -3
  20. package/templates/admin/src/features/system/permissions/api/permission.views.js +9 -1
  21. package/templates/admin/src/features/system/permissions/pages/permission-list-page.js +12 -19
  22. package/templates/admin/src/features/system/roles/api/role.mgr.d.ts +24 -26
  23. package/templates/admin/src/features/system/roles/api/role.mock.js +9 -4
  24. package/templates/admin/src/features/system/roles/components/role-form-dialog.js +6 -4
  25. package/templates/admin/src/features/system/roles/components/role-toolbar.js +1 -3
  26. package/templates/admin/src/features/system/roles/pages/role-list-page.js +12 -19
  27. package/templates/admin/src/main.js +2 -0
  28. package/templates/admin/src/shell/api/auth.mock.js +23 -0
  29. package/templates/admin/src/shell/api/shell.mock.js +48 -8
  30. package/templates/admin/src/shell/api/shell.req.js +8 -1
  31. package/templates/admin/src/shell/api/shell.state.js +48 -8
  32. package/templates/admin/src/shell/api/shell.views.js +2 -1
  33. package/templates/admin/src/shell/router.js +4 -1
  34. package/templates/admin/vite.config.js +16 -0
  35. package/templates/basic/package.json +1 -1
  36. package/templates/basic/src/main.js +1 -1
  37. package/templates/ssr/package.json +1 -1
  38. package/templates/admin/dist/assets/index-C9C1xRte.js +0 -35
  39. package/templates/admin/dist/assets/index-Dh32qJDx.css +0 -1
  40. package/templates/admin/dist/index.html +0 -13
  41. package/templates/admin/node_modules/.bin/nanoid +0 -16
  42. package/templates/admin/node_modules/.bin/nanoid.cmd +0 -17
  43. package/templates/admin/node_modules/.bin/nanoid.ps1 +0 -28
  44. package/templates/admin/node_modules/.bin/rolldown +0 -16
  45. package/templates/admin/node_modules/.bin/rolldown.cmd +0 -17
  46. package/templates/admin/node_modules/.bin/rolldown.ps1 +0 -28
  47. package/templates/admin/node_modules/.bin/tsc +0 -16
  48. package/templates/admin/node_modules/.bin/tsc.cmd +0 -17
  49. package/templates/admin/node_modules/.bin/tsc.ps1 +0 -28
  50. package/templates/admin/node_modules/.bin/vite +0 -16
  51. package/templates/admin/node_modules/.bin/vite.cmd +0 -17
  52. package/templates/admin/node_modules/.bin/vite.ps1 +0 -28
  53. package/templates/admin/node_modules/.package-lock.json +0 -389
  54. package/templates/admin/node_modules/.vite/deps/@yoyaflow_yoya-ui.js +0 -13116
  55. package/templates/admin/node_modules/.vite/deps/@yoyaflow_yoya-ui.js.map +0 -1
  56. package/templates/admin/node_modules/@oxc-project/types/LICENSE +0 -22
  57. package/templates/admin/node_modules/@oxc-project/types/README.md +0 -3
  58. package/templates/admin/node_modules/@oxc-project/types/package.json +0 -26
  59. package/templates/admin/node_modules/@oxc-project/types/types.d.ts +0 -1912
  60. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/README.md +0 -3
  61. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/package.json +0 -37
  62. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/rolldown-binding.win32-x64-msvc.node +0 -0
  63. package/templates/admin/node_modules/@rolldown/pluginutils/LICENSE +0 -21
  64. package/templates/admin/node_modules/@rolldown/pluginutils/README.md +0 -145
  65. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts +0 -194
  66. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter/index.mjs +0 -2
  67. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs +0 -323
  68. package/templates/admin/node_modules/@rolldown/pluginutils/dist/index.d.mts +0 -2
  69. package/templates/admin/node_modules/@rolldown/pluginutils/dist/index.mjs +0 -2
  70. package/templates/admin/node_modules/@rolldown/pluginutils/package.json +0 -40
  71. package/templates/admin/node_modules/@typescript/typescript-win32-x64/LICENSE +0 -55
  72. package/templates/admin/node_modules/@typescript/typescript-win32-x64/NOTICE.txt +0 -436
  73. package/templates/admin/node_modules/@typescript/typescript-win32-x64/README.md +0 -3
  74. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.d.ts +0 -20
  75. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.decorators.d.ts +0 -382
  76. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.decorators.legacy.d.ts +0 -20
  77. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.asynciterable.d.ts +0 -18
  78. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.d.ts +0 -45125
  79. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.iterable.d.ts +0 -18
  80. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.collection.d.ts +0 -159
  81. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.core.d.ts +0 -595
  82. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.d.ts +0 -26
  83. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.generator.d.ts +0 -75
  84. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.iterable.d.ts +0 -603
  85. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.promise.d.ts +0 -79
  86. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.proxy.d.ts +0 -126
  87. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.reflect.d.ts +0 -142
  88. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.symbol.d.ts +0 -44
  89. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.symbol.wellknown.d.ts +0 -324
  90. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.array.include.d.ts +0 -114
  91. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.d.ts +0 -19
  92. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.full.d.ts +0 -21
  93. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.intl.d.ts +0 -29
  94. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.arraybuffer.d.ts +0 -19
  95. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.d.ts +0 -24
  96. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.date.d.ts +0 -29
  97. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.full.d.ts +0 -21
  98. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.intl.d.ts +0 -42
  99. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.object.d.ts +0 -47
  100. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.sharedmemory.d.ts +0 -133
  101. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.string.d.ts +0 -47
  102. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.typedarrays.d.ts +0 -51
  103. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.asyncgenerator.d.ts +0 -75
  104. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.asynciterable.d.ts +0 -51
  105. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.d.ts +0 -22
  106. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.full.d.ts +0 -22
  107. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.intl.d.ts +0 -81
  108. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.promise.d.ts +0 -28
  109. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.regexp.d.ts +0 -35
  110. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.array.d.ts +0 -77
  111. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.d.ts +0 -22
  112. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.full.d.ts +0 -22
  113. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.intl.d.ts +0 -21
  114. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.object.d.ts +0 -31
  115. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.string.d.ts +0 -35
  116. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.symbol.d.ts +0 -22
  117. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.bigint.d.ts +0 -763
  118. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.d.ts +0 -25
  119. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.date.d.ts +0 -40
  120. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.full.d.ts +0 -22
  121. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.intl.d.ts +0 -472
  122. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.number.d.ts +0 -26
  123. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.promise.d.ts +0 -45
  124. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.sharedmemory.d.ts +0 -97
  125. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.string.d.ts +0 -42
  126. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.symbol.wellknown.d.ts +0 -39
  127. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.d.ts +0 -21
  128. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.full.d.ts +0 -22
  129. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.intl.d.ts +0 -164
  130. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.promise.d.ts +0 -46
  131. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.string.d.ts +0 -31
  132. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.weakref.d.ts +0 -76
  133. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.array.d.ts +0 -119
  134. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.d.ts +0 -23
  135. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.error.d.ts +0 -73
  136. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.full.d.ts +0 -22
  137. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.intl.d.ts +0 -143
  138. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.object.d.ts +0 -24
  139. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.regexp.d.ts +0 -37
  140. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.string.d.ts +0 -23
  141. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.array.d.ts +0 -922
  142. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.collection.d.ts +0 -19
  143. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.d.ts +0 -20
  144. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.full.d.ts +0 -22
  145. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.intl.d.ts +0 -62
  146. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.arraybuffer.d.ts +0 -63
  147. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.collection.d.ts +0 -27
  148. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.d.ts +0 -24
  149. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.full.d.ts +0 -22
  150. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.object.d.ts +0 -27
  151. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.promise.d.ts +0 -33
  152. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.regexp.d.ts +0 -23
  153. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.sharedmemory.d.ts +0 -66
  154. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.string.d.ts +0 -27
  155. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.collection.d.ts +0 -94
  156. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.d.ts +0 -23
  157. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.float16.d.ts +0 -443
  158. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.full.d.ts +0 -22
  159. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.intl.d.ts +0 -200
  160. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.iterator.d.ts +0 -146
  161. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.promise.d.ts +0 -32
  162. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.regexp.d.ts +0 -30
  163. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es5.d.ts +0 -4599
  164. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es6.d.ts +0 -21
  165. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.array.d.ts +0 -33
  166. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.collection.d.ts +0 -47
  167. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.d.ts +0 -27
  168. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.date.d.ts +0 -21
  169. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.decorators.d.ts +0 -26
  170. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.disposable.d.ts +0 -191
  171. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.error.d.ts +0 -22
  172. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.full.d.ts +0 -22
  173. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.intl.d.ts +0 -107
  174. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.sharedmemory.d.ts +0 -23
  175. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.temporal.d.ts +0 -485
  176. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.typedarrays.d.ts +0 -90
  177. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.scripthost.d.ts +0 -320
  178. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.asynciterable.d.ts +0 -18
  179. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.d.ts +0 -15606
  180. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.importscripts.d.ts +0 -21
  181. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.iterable.d.ts +0 -18
  182. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/tsc.exe +0 -0
  183. package/templates/admin/node_modules/@typescript/typescript-win32-x64/package.json +0 -45
  184. package/templates/admin/node_modules/@yoyaflow/yoya-ui/LICENSE +0 -21
  185. package/templates/admin/node_modules/@yoyaflow/yoya-ui/README.md +0 -271
  186. package/templates/admin/node_modules/@yoyaflow/yoya-ui/README.zh-CN.md +0 -272
  187. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/echarts.min.js +0 -45
  188. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya-ui.umd.js +0 -35
  189. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.core.js +0 -1779
  190. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.echart.js +0 -643
  191. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ssr.js +0 -2856
  192. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ui.css +0 -2289
  193. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ui.js +0 -13174
  194. package/templates/admin/node_modules/@yoyaflow/yoya-ui/package.json +0 -94
  195. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/actions.d.ts +0 -166
  196. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/async.d.ts +0 -108
  197. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/chart.d.ts +0 -40
  198. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/core.d.ts +0 -582
  199. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/css.d.ts +0 -5
  200. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/data-display.d.ts +0 -620
  201. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/effects.d.ts +0 -64
  202. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/feedback.d.ts +0 -119
  203. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/form.d.ts +0 -507
  204. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/html.d.ts +0 -288
  205. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/i18n.d.ts +0 -56
  206. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/index.d.ts +0 -4
  207. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/layout.d.ts +0 -444
  208. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/navigation.d.ts +0 -275
  209. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/router.d.ts +0 -123
  210. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/ssr.d.ts +0 -124
  211. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/svg.d.ts +0 -159
  212. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/theme.d.ts +0 -40
  213. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.core.d.ts +0 -7
  214. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.echart.d.ts +0 -4
  215. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.ssr.d.ts +0 -9
  216. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.ui.d.ts +0 -19
  217. package/templates/admin/node_modules/detect-libc/LICENSE +0 -201
  218. package/templates/admin/node_modules/detect-libc/README.md +0 -163
  219. package/templates/admin/node_modules/detect-libc/index.d.ts +0 -14
  220. package/templates/admin/node_modules/detect-libc/lib/detect-libc.js +0 -313
  221. package/templates/admin/node_modules/detect-libc/lib/elf.js +0 -39
  222. package/templates/admin/node_modules/detect-libc/lib/filesystem.js +0 -51
  223. package/templates/admin/node_modules/detect-libc/lib/process.js +0 -24
  224. package/templates/admin/node_modules/detect-libc/package.json +0 -44
  225. package/templates/admin/node_modules/fdir/LICENSE +0 -7
  226. package/templates/admin/node_modules/fdir/README.md +0 -91
  227. package/templates/admin/node_modules/fdir/dist/index.cjs +0 -588
  228. package/templates/admin/node_modules/fdir/dist/index.d.cts +0 -155
  229. package/templates/admin/node_modules/fdir/dist/index.d.mts +0 -155
  230. package/templates/admin/node_modules/fdir/dist/index.mjs +0 -570
  231. package/templates/admin/node_modules/fdir/package.json +0 -103
  232. package/templates/admin/node_modules/lightningcss/LICENSE +0 -373
  233. package/templates/admin/node_modules/lightningcss/README.md +0 -105
  234. package/templates/admin/node_modules/lightningcss/node/ast.d.ts +0 -9965
  235. package/templates/admin/node_modules/lightningcss/node/ast.js.flow +0 -10615
  236. package/templates/admin/node_modules/lightningcss/node/browserslistToTargets.js +0 -48
  237. package/templates/admin/node_modules/lightningcss/node/composeVisitors.js +0 -450
  238. package/templates/admin/node_modules/lightningcss/node/flags.js +0 -28
  239. package/templates/admin/node_modules/lightningcss/node/index.d.ts +0 -501
  240. package/templates/admin/node_modules/lightningcss/node/index.js +0 -59
  241. package/templates/admin/node_modules/lightningcss/node/index.js.flow +0 -854
  242. package/templates/admin/node_modules/lightningcss/node/index.mjs +0 -4
  243. package/templates/admin/node_modules/lightningcss/node/targets.d.ts +0 -40
  244. package/templates/admin/node_modules/lightningcss/node/targets.js.flow +0 -39
  245. package/templates/admin/node_modules/lightningcss/package.json +0 -110
  246. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/LICENSE +0 -373
  247. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/README.md +0 -1
  248. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/lightningcss.win32-x64-msvc.node +0 -0
  249. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/package.json +0 -34
  250. package/templates/admin/node_modules/nanoid/LICENSE +0 -20
  251. package/templates/admin/node_modules/nanoid/README.md +0 -39
  252. package/templates/admin/node_modules/nanoid/async/index.browser.cjs +0 -43
  253. package/templates/admin/node_modules/nanoid/async/index.browser.js +0 -43
  254. package/templates/admin/node_modules/nanoid/async/index.cjs +0 -47
  255. package/templates/admin/node_modules/nanoid/async/index.d.ts +0 -56
  256. package/templates/admin/node_modules/nanoid/async/index.js +0 -47
  257. package/templates/admin/node_modules/nanoid/async/index.native.js +0 -38
  258. package/templates/admin/node_modules/nanoid/async/package.json +0 -12
  259. package/templates/admin/node_modules/nanoid/bin/nanoid.cjs +0 -55
  260. package/templates/admin/node_modules/nanoid/index.browser.cjs +0 -45
  261. package/templates/admin/node_modules/nanoid/index.browser.js +0 -45
  262. package/templates/admin/node_modules/nanoid/index.cjs +0 -58
  263. package/templates/admin/node_modules/nanoid/index.d.cts +0 -91
  264. package/templates/admin/node_modules/nanoid/index.d.ts +0 -91
  265. package/templates/admin/node_modules/nanoid/index.js +0 -63
  266. package/templates/admin/node_modules/nanoid/nanoid.js +0 -1
  267. package/templates/admin/node_modules/nanoid/non-secure/index.cjs +0 -24
  268. package/templates/admin/node_modules/nanoid/non-secure/index.d.ts +0 -33
  269. package/templates/admin/node_modules/nanoid/non-secure/index.js +0 -24
  270. package/templates/admin/node_modules/nanoid/non-secure/package.json +0 -6
  271. package/templates/admin/node_modules/nanoid/package.json +0 -89
  272. package/templates/admin/node_modules/nanoid/url-alphabet/index.cjs +0 -4
  273. package/templates/admin/node_modules/nanoid/url-alphabet/index.js +0 -4
  274. package/templates/admin/node_modules/nanoid/url-alphabet/package.json +0 -6
  275. package/templates/admin/node_modules/picocolors/LICENSE +0 -15
  276. package/templates/admin/node_modules/picocolors/README.md +0 -21
  277. package/templates/admin/node_modules/picocolors/package.json +0 -25
  278. package/templates/admin/node_modules/picocolors/picocolors.browser.js +0 -4
  279. package/templates/admin/node_modules/picocolors/picocolors.d.ts +0 -5
  280. package/templates/admin/node_modules/picocolors/picocolors.js +0 -75
  281. package/templates/admin/node_modules/picocolors/types.d.ts +0 -51
  282. package/templates/admin/node_modules/picomatch/LICENSE +0 -21
  283. package/templates/admin/node_modules/picomatch/README.md +0 -743
  284. package/templates/admin/node_modules/picomatch/index.js +0 -17
  285. package/templates/admin/node_modules/picomatch/lib/constants.js +0 -184
  286. package/templates/admin/node_modules/picomatch/lib/parse.js +0 -1425
  287. package/templates/admin/node_modules/picomatch/lib/picomatch.js +0 -361
  288. package/templates/admin/node_modules/picomatch/lib/scan.js +0 -403
  289. package/templates/admin/node_modules/picomatch/lib/utils.js +0 -72
  290. package/templates/admin/node_modules/picomatch/package.json +0 -83
  291. package/templates/admin/node_modules/picomatch/posix.js +0 -3
  292. package/templates/admin/node_modules/postcss/LICENSE +0 -20
  293. package/templates/admin/node_modules/postcss/README.md +0 -27
  294. package/templates/admin/node_modules/postcss/lib/at-rule.d.ts +0 -139
  295. package/templates/admin/node_modules/postcss/lib/at-rule.js +0 -25
  296. package/templates/admin/node_modules/postcss/lib/comment.d.ts +0 -67
  297. package/templates/admin/node_modules/postcss/lib/comment.js +0 -13
  298. package/templates/admin/node_modules/postcss/lib/container.d.ts +0 -478
  299. package/templates/admin/node_modules/postcss/lib/container.js +0 -494
  300. package/templates/admin/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  301. package/templates/admin/node_modules/postcss/lib/css-syntax-error.js +0 -133
  302. package/templates/admin/node_modules/postcss/lib/declaration.d.ts +0 -150
  303. package/templates/admin/node_modules/postcss/lib/declaration.js +0 -24
  304. package/templates/admin/node_modules/postcss/lib/document.d.ts +0 -68
  305. package/templates/admin/node_modules/postcss/lib/document.js +0 -33
  306. package/templates/admin/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  307. package/templates/admin/node_modules/postcss/lib/fromJSON.js +0 -107
  308. package/templates/admin/node_modules/postcss/lib/input.d.ts +0 -226
  309. package/templates/admin/node_modules/postcss/lib/input.js +0 -282
  310. package/templates/admin/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  311. package/templates/admin/node_modules/postcss/lib/lazy-result.js +0 -626
  312. package/templates/admin/node_modules/postcss/lib/list.d.ts +0 -60
  313. package/templates/admin/node_modules/postcss/lib/list.js +0 -59
  314. package/templates/admin/node_modules/postcss/lib/map-generator.js +0 -376
  315. package/templates/admin/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  316. package/templates/admin/node_modules/postcss/lib/no-work-result.js +0 -137
  317. package/templates/admin/node_modules/postcss/lib/node.d.ts +0 -555
  318. package/templates/admin/node_modules/postcss/lib/node.js +0 -494
  319. package/templates/admin/node_modules/postcss/lib/parse.d.ts +0 -9
  320. package/templates/admin/node_modules/postcss/lib/parse.js +0 -42
  321. package/templates/admin/node_modules/postcss/lib/parser.js +0 -618
  322. package/templates/admin/node_modules/postcss/lib/postcss.d.mts +0 -66
  323. package/templates/admin/node_modules/postcss/lib/postcss.d.ts +0 -464
  324. package/templates/admin/node_modules/postcss/lib/postcss.js +0 -101
  325. package/templates/admin/node_modules/postcss/lib/postcss.mjs +0 -30
  326. package/templates/admin/node_modules/postcss/lib/previous-map.d.ts +0 -80
  327. package/templates/admin/node_modules/postcss/lib/previous-map.js +0 -176
  328. package/templates/admin/node_modules/postcss/lib/processor.d.ts +0 -114
  329. package/templates/admin/node_modules/postcss/lib/processor.js +0 -67
  330. package/templates/admin/node_modules/postcss/lib/result.d.ts +0 -204
  331. package/templates/admin/node_modules/postcss/lib/result.js +0 -42
  332. package/templates/admin/node_modules/postcss/lib/root.d.ts +0 -86
  333. package/templates/admin/node_modules/postcss/lib/root.js +0 -76
  334. package/templates/admin/node_modules/postcss/lib/rule.d.ts +0 -126
  335. package/templates/admin/node_modules/postcss/lib/rule.js +0 -27
  336. package/templates/admin/node_modules/postcss/lib/stringifier.d.ts +0 -45
  337. package/templates/admin/node_modules/postcss/lib/stringifier.js +0 -461
  338. package/templates/admin/node_modules/postcss/lib/stringify.d.ts +0 -9
  339. package/templates/admin/node_modules/postcss/lib/stringify.js +0 -11
  340. package/templates/admin/node_modules/postcss/lib/symbols.js +0 -5
  341. package/templates/admin/node_modules/postcss/lib/terminal-highlight.js +0 -70
  342. package/templates/admin/node_modules/postcss/lib/tokenize.js +0 -270
  343. package/templates/admin/node_modules/postcss/lib/warn-once.js +0 -13
  344. package/templates/admin/node_modules/postcss/lib/warning.d.ts +0 -146
  345. package/templates/admin/node_modules/postcss/lib/warning.js +0 -47
  346. package/templates/admin/node_modules/postcss/package.json +0 -88
  347. package/templates/admin/node_modules/rolldown/LICENSE +0 -25
  348. package/templates/admin/node_modules/rolldown/README.md +0 -11
  349. package/templates/admin/node_modules/rolldown/THIRD-PARTY-LICENSE +0 -33
  350. package/templates/admin/node_modules/rolldown/bin/cli.mjs +0 -11
  351. package/templates/admin/node_modules/rolldown/dist/cli.d.mts +0 -1
  352. package/templates/admin/node_modules/rolldown/dist/cli.mjs +0 -1208
  353. package/templates/admin/node_modules/rolldown/dist/config.d.mts +0 -26
  354. package/templates/admin/node_modules/rolldown/dist/config.mjs +0 -4
  355. package/templates/admin/node_modules/rolldown/dist/experimental-default-runtime.mjs +0 -116
  356. package/templates/admin/node_modules/rolldown/dist/experimental-index.d.mts +0 -324
  357. package/templates/admin/node_modules/rolldown/dist/experimental-index.mjs +0 -383
  358. package/templates/admin/node_modules/rolldown/dist/experimental-runtime-base.mjs +0 -95
  359. package/templates/admin/node_modules/rolldown/dist/experimental-runtime-types.d.ts +0 -177
  360. package/templates/admin/node_modules/rolldown/dist/experimental-runtime.d.ts +0 -177
  361. package/templates/admin/node_modules/rolldown/dist/experimental-runtime.mjs +0 -257
  362. package/templates/admin/node_modules/rolldown/dist/filter-index.d.mts +0 -196
  363. package/templates/admin/node_modules/rolldown/dist/filter-index.mjs +0 -376
  364. package/templates/admin/node_modules/rolldown/dist/get-log-filter.d.mts +0 -3
  365. package/templates/admin/node_modules/rolldown/dist/get-log-filter.mjs +0 -68
  366. package/templates/admin/node_modules/rolldown/dist/index.d.mts +0 -4
  367. package/templates/admin/node_modules/rolldown/dist/index.mjs +0 -56
  368. package/templates/admin/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +0 -1
  369. package/templates/admin/node_modules/rolldown/dist/parallel-plugin-worker.mjs +0 -29
  370. package/templates/admin/node_modules/rolldown/dist/parallel-plugin.d.mts +0 -12
  371. package/templates/admin/node_modules/rolldown/dist/parallel-plugin.mjs +0 -6
  372. package/templates/admin/node_modules/rolldown/dist/parse-ast-index.d.mts +0 -30
  373. package/templates/admin/node_modules/rolldown/dist/parse-ast-index.mjs +0 -60
  374. package/templates/admin/node_modules/rolldown/dist/plugins-index.d.mts +0 -32
  375. package/templates/admin/node_modules/rolldown/dist/plugins-index.mjs +0 -40
  376. package/templates/admin/node_modules/rolldown/dist/shared/binding-CtPG-2KR.mjs +0 -675
  377. package/templates/admin/node_modules/rolldown/dist/shared/binding-Og__jmUi.d.mts +0 -2065
  378. package/templates/admin/node_modules/rolldown/dist/shared/bindingify-input-options-4JJxbZl2.mjs +0 -2416
  379. package/templates/admin/node_modules/rolldown/dist/shared/constructors-Qrp2Xr6w.d.mts +0 -35
  380. package/templates/admin/node_modules/rolldown/dist/shared/constructors-ltBDfHX1.mjs +0 -69
  381. package/templates/admin/node_modules/rolldown/dist/shared/create-bundler-option-DSPiA5F7.mjs +0 -3220
  382. package/templates/admin/node_modules/rolldown/dist/shared/define-config-Demdg3_4.mjs +0 -6
  383. package/templates/admin/node_modules/rolldown/dist/shared/define-config-Nbz-lniw.d.mts +0 -4101
  384. package/templates/admin/node_modules/rolldown/dist/shared/dist-DKbukT1H.mjs +0 -154
  385. package/templates/admin/node_modules/rolldown/dist/shared/error-HDibX49O.mjs +0 -85
  386. package/templates/admin/node_modules/rolldown/dist/shared/get-log-filter-AjBknEEO.d.mts +0 -34
  387. package/templates/admin/node_modules/rolldown/dist/shared/load-config-BMUrE9HH.mjs +0 -137
  388. package/templates/admin/node_modules/rolldown/dist/shared/logging-xuHO4mAy.d.mts +0 -50
  389. package/templates/admin/node_modules/rolldown/dist/shared/logs-DmYCAKcW.mjs +0 -192
  390. package/templates/admin/node_modules/rolldown/dist/shared/misc-DOSKtd97.mjs +0 -29
  391. package/templates/admin/node_modules/rolldown/dist/shared/normalize-string-or-regex-DWz4it3p.mjs +0 -68
  392. package/templates/admin/node_modules/rolldown/dist/shared/parse-D0g29RgN.mjs +0 -74
  393. package/templates/admin/node_modules/rolldown/dist/shared/prompt-CH6TK0bC.mjs +0 -885
  394. package/templates/admin/node_modules/rolldown/dist/shared/resolve-tsconfig-CLYpUIZC.mjs +0 -128
  395. package/templates/admin/node_modules/rolldown/dist/shared/rolldown-C9Hfg50O.mjs +0 -179
  396. package/templates/admin/node_modules/rolldown/dist/shared/transform-DR4CXeQm.d.mts +0 -152
  397. package/templates/admin/node_modules/rolldown/dist/shared/watch-UbzgabQn.mjs +0 -377
  398. package/templates/admin/node_modules/rolldown/dist/utils-index.d.mts +0 -375
  399. package/templates/admin/node_modules/rolldown/dist/utils-index.mjs +0 -2416
  400. package/templates/admin/node_modules/rolldown/package.json +0 -164
  401. package/templates/admin/node_modules/source-map-js/LICENSE +0 -28
  402. package/templates/admin/node_modules/source-map-js/README.md +0 -765
  403. package/templates/admin/node_modules/source-map-js/lib/array-set.js +0 -121
  404. package/templates/admin/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  405. package/templates/admin/node_modules/source-map-js/lib/base64.js +0 -67
  406. package/templates/admin/node_modules/source-map-js/lib/binary-search.js +0 -111
  407. package/templates/admin/node_modules/source-map-js/lib/mapping-list.js +0 -79
  408. package/templates/admin/node_modules/source-map-js/lib/quick-sort.js +0 -132
  409. package/templates/admin/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  410. package/templates/admin/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  411. package/templates/admin/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  412. package/templates/admin/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  413. package/templates/admin/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  414. package/templates/admin/node_modules/source-map-js/lib/source-node.js +0 -413
  415. package/templates/admin/node_modules/source-map-js/lib/util.js +0 -594
  416. package/templates/admin/node_modules/source-map-js/package.json +0 -71
  417. package/templates/admin/node_modules/source-map-js/source-map.d.ts +0 -104
  418. package/templates/admin/node_modules/source-map-js/source-map.js +0 -8
  419. package/templates/admin/node_modules/tinyglobby/LICENSE +0 -21
  420. package/templates/admin/node_modules/tinyglobby/README.md +0 -25
  421. package/templates/admin/node_modules/tinyglobby/dist/index.cjs +0 -335
  422. package/templates/admin/node_modules/tinyglobby/dist/index.d.cts +0 -148
  423. package/templates/admin/node_modules/tinyglobby/dist/index.d.mts +0 -148
  424. package/templates/admin/node_modules/tinyglobby/dist/index.mjs +0 -307
  425. package/templates/admin/node_modules/tinyglobby/package.json +0 -70
  426. package/templates/admin/node_modules/typescript/LICENSE +0 -55
  427. package/templates/admin/node_modules/typescript/NOTICE.txt +0 -436
  428. package/templates/admin/node_modules/typescript/README.md +0 -49
  429. package/templates/admin/node_modules/typescript/bin/tsc +0 -2
  430. package/templates/admin/node_modules/typescript/dist/api/async/api.d.ts +0 -529
  431. package/templates/admin/node_modules/typescript/dist/api/async/api.d.ts.map +0 -1
  432. package/templates/admin/node_modules/typescript/dist/api/async/api.js +0 -1657
  433. package/templates/admin/node_modules/typescript/dist/api/async/api.js.map +0 -1
  434. package/templates/admin/node_modules/typescript/dist/api/async/client.d.ts +0 -39
  435. package/templates/admin/node_modules/typescript/dist/api/async/client.d.ts.map +0 -1
  436. package/templates/admin/node_modules/typescript/dist/api/async/client.js +0 -211
  437. package/templates/admin/node_modules/typescript/dist/api/async/client.js.map +0 -1
  438. package/templates/admin/node_modules/typescript/dist/api/async/types.d.ts +0 -310
  439. package/templates/admin/node_modules/typescript/dist/api/async/types.d.ts.map +0 -1
  440. package/templates/admin/node_modules/typescript/dist/api/async/types.js +0 -2
  441. package/templates/admin/node_modules/typescript/dist/api/async/types.js.map +0 -1
  442. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.d.ts +0 -109
  443. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.d.ts.map +0 -1
  444. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.js +0 -2
  445. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.js.map +0 -1
  446. package/templates/admin/node_modules/typescript/dist/api/fs.d.ts +0 -23
  447. package/templates/admin/node_modules/typescript/dist/api/fs.d.ts.map +0 -1
  448. package/templates/admin/node_modules/typescript/dist/api/fs.js +0 -109
  449. package/templates/admin/node_modules/typescript/dist/api/fs.js.map +0 -1
  450. package/templates/admin/node_modules/typescript/dist/api/node/encoder.d.ts +0 -15
  451. package/templates/admin/node_modules/typescript/dist/api/node/encoder.d.ts.map +0 -1
  452. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.d.ts +0 -5
  453. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.d.ts.map +0 -1
  454. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.js +0 -74
  455. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.js.map +0 -1
  456. package/templates/admin/node_modules/typescript/dist/api/node/encoder.js +0 -287
  457. package/templates/admin/node_modules/typescript/dist/api/node/encoder.js.map +0 -1
  458. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.d.ts +0 -32
  459. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.d.ts.map +0 -1
  460. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.js +0 -213
  461. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.js.map +0 -1
  462. package/templates/admin/node_modules/typescript/dist/api/node/node.d.ts +0 -76
  463. package/templates/admin/node_modules/typescript/dist/api/node/node.d.ts.map +0 -1
  464. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.d.ts +0 -182
  465. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.d.ts.map +0 -1
  466. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.js +0 -835
  467. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.js.map +0 -1
  468. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.d.ts +0 -62
  469. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.d.ts.map +0 -1
  470. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.js +0 -122
  471. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.js.map +0 -1
  472. package/templates/admin/node_modules/typescript/dist/api/node/node.js +0 -298
  473. package/templates/admin/node_modules/typescript/dist/api/node/node.js.map +0 -1
  474. package/templates/admin/node_modules/typescript/dist/api/node/protocol.d.ts +0 -29
  475. package/templates/admin/node_modules/typescript/dist/api/node/protocol.d.ts.map +0 -1
  476. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.d.ts +0 -4
  477. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.d.ts.map +0 -1
  478. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.js +0 -241
  479. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.js.map +0 -1
  480. package/templates/admin/node_modules/typescript/dist/api/node/protocol.js +0 -30
  481. package/templates/admin/node_modules/typescript/dist/api/node/protocol.js.map +0 -1
  482. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.d.ts +0 -6
  483. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.d.ts.map +0 -1
  484. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.js +0 -61
  485. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.js.map +0 -1
  486. package/templates/admin/node_modules/typescript/dist/api/options.d.ts +0 -32
  487. package/templates/admin/node_modules/typescript/dist/api/options.d.ts.map +0 -1
  488. package/templates/admin/node_modules/typescript/dist/api/options.js +0 -11
  489. package/templates/admin/node_modules/typescript/dist/api/options.js.map +0 -1
  490. package/templates/admin/node_modules/typescript/dist/api/path.d.ts +0 -110
  491. package/templates/admin/node_modules/typescript/dist/api/path.d.ts.map +0 -1
  492. package/templates/admin/node_modules/typescript/dist/api/path.js +0 -508
  493. package/templates/admin/node_modules/typescript/dist/api/path.js.map +0 -1
  494. package/templates/admin/node_modules/typescript/dist/api/proto.d.ts +0 -239
  495. package/templates/admin/node_modules/typescript/dist/api/proto.d.ts.map +0 -1
  496. package/templates/admin/node_modules/typescript/dist/api/proto.js +0 -37
  497. package/templates/admin/node_modules/typescript/dist/api/proto.js.map +0 -1
  498. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.d.ts +0 -79
  499. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.d.ts.map +0 -1
  500. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.js +0 -169
  501. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.js.map +0 -1
  502. package/templates/admin/node_modules/typescript/dist/api/sync/api.d.ts +0 -529
  503. package/templates/admin/node_modules/typescript/dist/api/sync/api.d.ts.map +0 -1
  504. package/templates/admin/node_modules/typescript/dist/api/sync/api.js +0 -1665
  505. package/templates/admin/node_modules/typescript/dist/api/sync/api.js.map +0 -1
  506. package/templates/admin/node_modules/typescript/dist/api/sync/client.d.ts +0 -30
  507. package/templates/admin/node_modules/typescript/dist/api/sync/client.d.ts.map +0 -1
  508. package/templates/admin/node_modules/typescript/dist/api/sync/client.js +0 -124
  509. package/templates/admin/node_modules/typescript/dist/api/sync/client.js.map +0 -1
  510. package/templates/admin/node_modules/typescript/dist/api/sync/types.d.ts +0 -310
  511. package/templates/admin/node_modules/typescript/dist/api/sync/types.d.ts.map +0 -1
  512. package/templates/admin/node_modules/typescript/dist/api/sync/types.js +0 -2
  513. package/templates/admin/node_modules/typescript/dist/api/sync/types.js.map +0 -1
  514. package/templates/admin/node_modules/typescript/dist/api/syncChannel.d.ts +0 -114
  515. package/templates/admin/node_modules/typescript/dist/api/syncChannel.d.ts.map +0 -1
  516. package/templates/admin/node_modules/typescript/dist/api/syncChannel.js +0 -508
  517. package/templates/admin/node_modules/typescript/dist/api/syncChannel.js.map +0 -1
  518. package/templates/admin/node_modules/typescript/dist/api/timing.d.ts +0 -175
  519. package/templates/admin/node_modules/typescript/dist/api/timing.d.ts.map +0 -1
  520. package/templates/admin/node_modules/typescript/dist/api/timing.js +0 -149
  521. package/templates/admin/node_modules/typescript/dist/api/timing.js.map +0 -1
  522. package/templates/admin/node_modules/typescript/dist/ast/ast.d.ts +0 -100
  523. package/templates/admin/node_modules/typescript/dist/ast/ast.d.ts.map +0 -1
  524. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.d.ts +0 -1161
  525. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.d.ts.map +0 -1
  526. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.js +0 -4
  527. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.js.map +0 -1
  528. package/templates/admin/node_modules/typescript/dist/ast/ast.js +0 -7
  529. package/templates/admin/node_modules/typescript/dist/ast/ast.js.map +0 -1
  530. package/templates/admin/node_modules/typescript/dist/ast/astnav.d.ts +0 -19
  531. package/templates/admin/node_modules/typescript/dist/ast/astnav.d.ts.map +0 -1
  532. package/templates/admin/node_modules/typescript/dist/ast/astnav.js +0 -596
  533. package/templates/admin/node_modules/typescript/dist/ast/astnav.js.map +0 -1
  534. package/templates/admin/node_modules/typescript/dist/ast/clone.d.ts +0 -16
  535. package/templates/admin/node_modules/typescript/dist/ast/clone.d.ts.map +0 -1
  536. package/templates/admin/node_modules/typescript/dist/ast/clone.js +0 -104
  537. package/templates/admin/node_modules/typescript/dist/ast/clone.js.map +0 -1
  538. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.d.ts +0 -520
  539. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.d.ts.map +0 -1
  540. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.js +0 -3057
  541. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.js.map +0 -1
  542. package/templates/admin/node_modules/typescript/dist/ast/index.d.ts +0 -20
  543. package/templates/admin/node_modules/typescript/dist/ast/index.d.ts.map +0 -1
  544. package/templates/admin/node_modules/typescript/dist/ast/index.js +0 -20
  545. package/templates/admin/node_modules/typescript/dist/ast/index.js.map +0 -1
  546. package/templates/admin/node_modules/typescript/dist/ast/is.d.ts +0 -35
  547. package/templates/admin/node_modules/typescript/dist/ast/is.d.ts.map +0 -1
  548. package/templates/admin/node_modules/typescript/dist/ast/is.generated.d.ts +0 -329
  549. package/templates/admin/node_modules/typescript/dist/ast/is.generated.d.ts.map +0 -1
  550. package/templates/admin/node_modules/typescript/dist/ast/is.generated.js +0 -1103
  551. package/templates/admin/node_modules/typescript/dist/ast/is.generated.js.map +0 -1
  552. package/templates/admin/node_modules/typescript/dist/ast/is.js +0 -233
  553. package/templates/admin/node_modules/typescript/dist/ast/is.js.map +0 -1
  554. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.d.ts +0 -11
  555. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.d.ts.map +0 -1
  556. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.js +0 -202
  557. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.js.map +0 -1
  558. package/templates/admin/node_modules/typescript/dist/ast/scanner.d.ts +0 -97
  559. package/templates/admin/node_modules/typescript/dist/ast/scanner.d.ts.map +0 -1
  560. package/templates/admin/node_modules/typescript/dist/ast/scanner.js +0 -2230
  561. package/templates/admin/node_modules/typescript/dist/ast/scanner.js.map +0 -1
  562. package/templates/admin/node_modules/typescript/dist/ast/utils.d.ts +0 -17
  563. package/templates/admin/node_modules/typescript/dist/ast/utils.d.ts.map +0 -1
  564. package/templates/admin/node_modules/typescript/dist/ast/utils.js +0 -67
  565. package/templates/admin/node_modules/typescript/dist/ast/utils.js.map +0 -1
  566. package/templates/admin/node_modules/typescript/dist/ast/visitor.d.ts +0 -14
  567. package/templates/admin/node_modules/typescript/dist/ast/visitor.d.ts.map +0 -1
  568. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.d.ts +0 -50
  569. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.d.ts.map +0 -1
  570. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.js +0 -978
  571. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.js.map +0 -1
  572. package/templates/admin/node_modules/typescript/dist/ast/visitor.js +0 -47
  573. package/templates/admin/node_modules/typescript/dist/ast/visitor.js.map +0 -1
  574. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.d.ts +0 -2
  575. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.d.ts.map +0 -1
  576. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.d.ts +0 -129
  577. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.d.ts.map +0 -1
  578. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.js +0 -132
  579. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.js.map +0 -1
  580. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.js +0 -130
  581. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.js.map +0 -1
  582. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.d.ts +0 -2
  583. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.d.ts.map +0 -1
  584. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts +0 -5
  585. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts.map +0 -1
  586. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.js +0 -6
  587. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.js.map +0 -1
  588. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.js +0 -6
  589. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.js.map +0 -1
  590. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.d.ts +0 -2
  591. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.d.ts.map +0 -1
  592. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts +0 -28
  593. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts.map +0 -1
  594. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.js +0 -30
  595. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.js.map +0 -1
  596. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.js +0 -30
  597. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.js.map +0 -1
  598. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.d.ts +0 -2
  599. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.d.ts.map +0 -1
  600. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts +0 -7
  601. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts.map +0 -1
  602. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.js +0 -9
  603. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.js.map +0 -1
  604. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.js +0 -9
  605. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.js.map +0 -1
  606. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.d.ts +0 -2
  607. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.d.ts.map +0 -1
  608. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.d.ts +0 -12
  609. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.d.ts.map +0 -1
  610. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.js +0 -14
  611. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.js.map +0 -1
  612. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.js +0 -14
  613. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.js.map +0 -1
  614. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.d.ts +0 -2
  615. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.d.ts.map +0 -1
  616. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts +0 -23
  617. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts.map +0 -1
  618. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.js +0 -25
  619. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.js.map +0 -1
  620. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.js +0 -25
  621. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.js.map +0 -1
  622. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.d.ts +0 -2
  623. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.d.ts.map +0 -1
  624. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts +0 -9
  625. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts.map +0 -1
  626. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.js +0 -11
  627. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.js.map +0 -1
  628. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.js +0 -11
  629. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.js.map +0 -1
  630. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.d.ts +0 -2
  631. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.d.ts.map +0 -1
  632. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.d.ts +0 -5
  633. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.d.ts.map +0 -1
  634. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.js +0 -6
  635. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.js.map +0 -1
  636. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.js +0 -6
  637. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.js.map +0 -1
  638. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.d.ts +0 -2
  639. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.d.ts.map +0 -1
  640. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts +0 -42
  641. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts.map +0 -1
  642. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.js +0 -44
  643. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.js.map +0 -1
  644. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.js +0 -44
  645. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.js.map +0 -1
  646. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts +0 -2
  647. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts.map +0 -1
  648. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts +0 -7
  649. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts.map +0 -1
  650. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js +0 -9
  651. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js.map +0 -1
  652. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.js +0 -9
  653. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.js.map +0 -1
  654. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.d.ts +0 -2
  655. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.d.ts.map +0 -1
  656. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.d.ts +0 -17
  657. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.d.ts.map +0 -1
  658. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.js +0 -19
  659. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.js.map +0 -1
  660. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.js +0 -19
  661. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.js.map +0 -1
  662. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts +0 -2
  663. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts.map +0 -1
  664. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts +0 -9
  665. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts.map +0 -1
  666. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js +0 -11
  667. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js.map +0 -1
  668. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.js +0 -11
  669. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.js.map +0 -1
  670. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.d.ts +0 -2
  671. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.d.ts.map +0 -1
  672. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.d.ts +0 -6
  673. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.d.ts.map +0 -1
  674. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.js +0 -8
  675. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.js.map +0 -1
  676. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.js +0 -8
  677. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.js.map +0 -1
  678. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts +0 -2
  679. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts.map +0 -1
  680. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts +0 -36
  681. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts.map +0 -1
  682. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js +0 -38
  683. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js.map +0 -1
  684. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.js +0 -38
  685. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.js.map +0 -1
  686. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.d.ts +0 -2
  687. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.d.ts.map +0 -1
  688. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts +0 -44
  689. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts.map +0 -1
  690. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.js +0 -46
  691. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.js.map +0 -1
  692. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.js +0 -46
  693. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.js.map +0 -1
  694. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.d.ts +0 -2
  695. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.d.ts.map +0 -1
  696. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.d.ts +0 -50
  697. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.d.ts.map +0 -1
  698. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.js +0 -52
  699. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.js.map +0 -1
  700. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.js +0 -52
  701. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.js.map +0 -1
  702. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts +0 -2
  703. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts.map +0 -1
  704. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts +0 -16
  705. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts.map +0 -1
  706. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js +0 -18
  707. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js.map +0 -1
  708. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.js +0 -18
  709. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.js.map +0 -1
  710. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts +0 -2
  711. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts.map +0 -1
  712. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts +0 -13
  713. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts.map +0 -1
  714. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js +0 -14
  715. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js.map +0 -1
  716. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.js +0 -14
  717. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.js.map +0 -1
  718. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.d.ts +0 -2
  719. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.d.ts.map +0 -1
  720. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.d.ts +0 -11
  721. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.d.ts.map +0 -1
  722. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.js +0 -12
  723. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.js.map +0 -1
  724. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.js +0 -12
  725. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.js.map +0 -1
  726. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.d.ts +0 -2
  727. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.d.ts.map +0 -1
  728. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts +0 -17
  729. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts.map +0 -1
  730. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.js +0 -18
  731. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.js.map +0 -1
  732. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.js +0 -18
  733. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.js.map +0 -1
  734. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.d.ts +0 -2
  735. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.d.ts.map +0 -1
  736. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts +0 -15
  737. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts.map +0 -1
  738. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.js +0 -17
  739. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.js.map +0 -1
  740. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.js +0 -17
  741. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.js.map +0 -1
  742. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.d.ts +0 -2
  743. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.d.ts.map +0 -1
  744. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.d.ts +0 -5
  745. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.d.ts.map +0 -1
  746. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.js +0 -7
  747. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.js.map +0 -1
  748. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.js +0 -7
  749. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.js.map +0 -1
  750. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.d.ts +0 -2
  751. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.d.ts.map +0 -1
  752. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts +0 -71
  753. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts.map +0 -1
  754. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.js +0 -73
  755. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.js.map +0 -1
  756. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.js +0 -73
  757. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.js.map +0 -1
  758. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.d.ts +0 -2
  759. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.d.ts.map +0 -1
  760. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts +0 -389
  761. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts.map +0 -1
  762. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.js +0 -391
  763. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.js.map +0 -1
  764. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.js +0 -391
  765. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.js.map +0 -1
  766. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.d.ts +0 -2
  767. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.d.ts.map +0 -1
  768. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts +0 -30
  769. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts.map +0 -1
  770. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.js +0 -32
  771. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.js.map +0 -1
  772. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.js +0 -32
  773. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.js.map +0 -1
  774. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.d.ts +0 -2
  775. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.d.ts.map +0 -1
  776. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.d.ts +0 -76
  777. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.d.ts.map +0 -1
  778. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.js +0 -78
  779. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.js.map +0 -1
  780. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.js +0 -78
  781. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.js.map +0 -1
  782. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.d.ts +0 -2
  783. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.d.ts.map +0 -1
  784. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts +0 -7
  785. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts.map +0 -1
  786. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.js +0 -9
  787. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.js.map +0 -1
  788. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.js +0 -9
  789. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.js.map +0 -1
  790. package/templates/admin/node_modules/typescript/dist/internal/utils.d.ts +0 -23
  791. package/templates/admin/node_modules/typescript/dist/internal/utils.d.ts.map +0 -1
  792. package/templates/admin/node_modules/typescript/dist/internal/utils.js +0 -25
  793. package/templates/admin/node_modules/typescript/dist/internal/utils.js.map +0 -1
  794. package/templates/admin/node_modules/typescript/lib/getExePath.d.ts +0 -2
  795. package/templates/admin/node_modules/typescript/lib/getExePath.js +0 -70
  796. package/templates/admin/node_modules/typescript/lib/tsc.js +0 -28
  797. package/templates/admin/node_modules/typescript/lib/version.cjs +0 -3
  798. package/templates/admin/node_modules/typescript/lib/version.d.cts +0 -2
  799. package/templates/admin/node_modules/typescript/package.json +0 -87
  800. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/License.txt +0 -11
  801. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/README.md +0 -54
  802. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
  803. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.js +0 -83
  804. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +0 -22
  805. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.js +0 -210
  806. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.d.ts +0 -14
  807. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.js +0 -87
  808. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
  809. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.js +0 -132
  810. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.d.ts +0 -367
  811. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.js +0 -1271
  812. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
  813. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.js +0 -16
  814. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
  815. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.js +0 -70
  816. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.d.ts +0 -39
  817. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.js +0 -135
  818. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.d.ts +0 -7
  819. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.js +0 -34
  820. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -55
  821. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.js +0 -412
  822. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
  823. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +0 -155
  824. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
  825. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.js +0 -246
  826. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
  827. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.js +0 -157
  828. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
  829. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.js +0 -436
  830. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
  831. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.js +0 -23
  832. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
  833. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.js +0 -74
  834. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
  835. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -77
  836. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.d.ts +0 -58
  837. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.js +0 -289
  838. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.d.ts +0 -12
  839. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.js +0 -163
  840. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/package.json +0 -54
  841. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/typings/thenable.d.ts +0 -5
  842. package/templates/admin/node_modules/vite/LICENSE.md +0 -2322
  843. package/templates/admin/node_modules/vite/README.md +0 -20
  844. package/templates/admin/node_modules/vite/bin/openChrome.js +0 -68
  845. package/templates/admin/node_modules/vite/bin/vite.js +0 -79
  846. package/templates/admin/node_modules/vite/client.d.ts +0 -285
  847. package/templates/admin/node_modules/vite/dist/client/bundledDevClient.mjs +0 -1829
  848. package/templates/admin/node_modules/vite/dist/client/client.mjs +0 -1244
  849. package/templates/admin/node_modules/vite/dist/client/env.mjs +0 -18
  850. package/templates/admin/node_modules/vite/dist/node/chunks/build.js +0 -5494
  851. package/templates/admin/node_modules/vite/dist/node/chunks/dist.js +0 -6732
  852. package/templates/admin/node_modules/vite/dist/node/chunks/lib.js +0 -371
  853. package/templates/admin/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +0 -95
  854. package/templates/admin/node_modules/vite/dist/node/chunks/node.js +0 -37269
  855. package/templates/admin/node_modules/vite/dist/node/chunks/postcss-import.js +0 -465
  856. package/templates/admin/node_modules/vite/dist/node/cli.js +0 -835
  857. package/templates/admin/node_modules/vite/dist/node/index.d.ts +0 -4069
  858. package/templates/admin/node_modules/vite/dist/node/index.js +0 -2
  859. package/templates/admin/node_modules/vite/dist/node/internal.d.ts +0 -2
  860. package/templates/admin/node_modules/vite/dist/node/internal.js +0 -2
  861. package/templates/admin/node_modules/vite/dist/node/module-runner.d.ts +0 -313
  862. package/templates/admin/node_modules/vite/dist/node/module-runner.js +0 -1288
  863. package/templates/admin/node_modules/vite/misc/false.js +0 -1
  864. package/templates/admin/node_modules/vite/misc/true.js +0 -1
  865. package/templates/admin/node_modules/vite/package.json +0 -194
  866. package/templates/admin/node_modules/vite/types/customEvent.d.ts +0 -81
  867. package/templates/admin/node_modules/vite/types/hmrPayload.d.ts +0 -94
  868. package/templates/admin/node_modules/vite/types/hot.d.ts +0 -39
  869. package/templates/admin/node_modules/vite/types/import-meta.d.ts +0 -5
  870. package/templates/admin/node_modules/vite/types/importGlob.d.ts +0 -131
  871. package/templates/admin/node_modules/vite/types/importMeta.d.ts +0 -30
  872. package/templates/admin/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +0 -44
  873. package/templates/admin/node_modules/vite/types/internal/esbuildOptions.d.ts +0 -28
  874. package/templates/admin/node_modules/vite/types/internal/lightningcssOptions.d.ts +0 -18
  875. package/templates/admin/node_modules/vite/types/internal/rollupTypeCompat.d.ts +0 -24
  876. package/templates/admin/node_modules/vite/types/internal/terserOptions.d.ts +0 -11
  877. package/templates/admin/node_modules/vite/types/metadata.d.ts +0 -47
@@ -1,1188 +0,0 @@
1
- /* -*- Mode: js; js-indent-level: 2; -*- */
2
- /*
3
- * Copyright 2011 Mozilla Foundation and contributors
4
- * Licensed under the New BSD license. See LICENSE or:
5
- * http://opensource.org/licenses/BSD-3-Clause
6
- */
7
-
8
- var util = require('./util');
9
- var binarySearch = require('./binary-search');
10
- var ArraySet = require('./array-set').ArraySet;
11
- var base64VLQ = require('./base64-vlq');
12
- var quickSort = require('./quick-sort').quickSort;
13
-
14
- function SourceMapConsumer(aSourceMap, aSourceMapURL) {
15
- var sourceMap = aSourceMap;
16
- if (typeof aSourceMap === 'string') {
17
- sourceMap = util.parseSourceMapInput(aSourceMap);
18
- }
19
-
20
- return sourceMap.sections != null
21
- ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL)
22
- : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
23
- }
24
-
25
- SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
26
- return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
27
- }
28
-
29
- /**
30
- * The version of the source mapping spec that we are consuming.
31
- */
32
- SourceMapConsumer.prototype._version = 3;
33
-
34
- // `__generatedMappings` and `__originalMappings` are arrays that hold the
35
- // parsed mapping coordinates from the source map's "mappings" attribute. They
36
- // are lazily instantiated, accessed via the `_generatedMappings` and
37
- // `_originalMappings` getters respectively, and we only parse the mappings
38
- // and create these arrays once queried for a source location. We jump through
39
- // these hoops because there can be many thousands of mappings, and parsing
40
- // them is expensive, so we only want to do it if we must.
41
- //
42
- // Each object in the arrays is of the form:
43
- //
44
- // {
45
- // generatedLine: The line number in the generated code,
46
- // generatedColumn: The column number in the generated code,
47
- // source: The path to the original source file that generated this
48
- // chunk of code,
49
- // originalLine: The line number in the original source that
50
- // corresponds to this chunk of generated code,
51
- // originalColumn: The column number in the original source that
52
- // corresponds to this chunk of generated code,
53
- // name: The name of the original symbol which generated this chunk of
54
- // code.
55
- // }
56
- //
57
- // All properties except for `generatedLine` and `generatedColumn` can be
58
- // `null`.
59
- //
60
- // `_generatedMappings` is ordered by the generated positions.
61
- //
62
- // `_originalMappings` is ordered by the original positions.
63
-
64
- SourceMapConsumer.prototype.__generatedMappings = null;
65
- Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {
66
- configurable: true,
67
- enumerable: true,
68
- get: function () {
69
- if (!this.__generatedMappings) {
70
- this._parseMappings(this._mappings, this.sourceRoot);
71
- }
72
-
73
- return this.__generatedMappings;
74
- }
75
- });
76
-
77
- SourceMapConsumer.prototype.__originalMappings = null;
78
- Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {
79
- configurable: true,
80
- enumerable: true,
81
- get: function () {
82
- if (!this.__originalMappings) {
83
- this._parseMappings(this._mappings, this.sourceRoot);
84
- }
85
-
86
- return this.__originalMappings;
87
- }
88
- });
89
-
90
- SourceMapConsumer.prototype._charIsMappingSeparator =
91
- function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
92
- var c = aStr.charAt(index);
93
- return c === ";" || c === ",";
94
- };
95
-
96
- /**
97
- * Parse the mappings in a string in to a data structure which we can easily
98
- * query (the ordered arrays in the `this.__generatedMappings` and
99
- * `this.__originalMappings` properties).
100
- */
101
- SourceMapConsumer.prototype._parseMappings =
102
- function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
103
- throw new Error("Subclasses must implement _parseMappings");
104
- };
105
-
106
- SourceMapConsumer.GENERATED_ORDER = 1;
107
- SourceMapConsumer.ORIGINAL_ORDER = 2;
108
-
109
- SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
110
- SourceMapConsumer.LEAST_UPPER_BOUND = 2;
111
-
112
- /**
113
- * Iterate over each mapping between an original source/line/column and a
114
- * generated line/column in this source map.
115
- *
116
- * @param Function aCallback
117
- * The function that is called with each mapping.
118
- * @param Object aContext
119
- * Optional. If specified, this object will be the value of `this` every
120
- * time that `aCallback` is called.
121
- * @param aOrder
122
- * Either `SourceMapConsumer.GENERATED_ORDER` or
123
- * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
124
- * iterate over the mappings sorted by the generated file's line/column
125
- * order or the original's source/line/column order, respectively. Defaults to
126
- * `SourceMapConsumer.GENERATED_ORDER`.
127
- */
128
- SourceMapConsumer.prototype.eachMapping =
129
- function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
130
- var context = aContext || null;
131
- var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
132
-
133
- var mappings;
134
- switch (order) {
135
- case SourceMapConsumer.GENERATED_ORDER:
136
- mappings = this._generatedMappings;
137
- break;
138
- case SourceMapConsumer.ORIGINAL_ORDER:
139
- mappings = this._originalMappings;
140
- break;
141
- default:
142
- throw new Error("Unknown order of iteration.");
143
- }
144
-
145
- var sourceRoot = this.sourceRoot;
146
- var boundCallback = aCallback.bind(context);
147
- var names = this._names;
148
- var sources = this._sources;
149
- var sourceMapURL = this._sourceMapURL;
150
-
151
- for (var i = 0, n = mappings.length; i < n; i++) {
152
- var mapping = mappings[i];
153
- var source = mapping.source === null ? null : sources.at(mapping.source);
154
- if(source !== null) {
155
- source = util.computeSourceURL(sourceRoot, source, sourceMapURL);
156
- }
157
- boundCallback({
158
- source: source,
159
- generatedLine: mapping.generatedLine,
160
- generatedColumn: mapping.generatedColumn,
161
- originalLine: mapping.originalLine,
162
- originalColumn: mapping.originalColumn,
163
- name: mapping.name === null ? null : names.at(mapping.name)
164
- });
165
- }
166
- };
167
-
168
- /**
169
- * Returns all generated line and column information for the original source,
170
- * line, and column provided. If no column is provided, returns all mappings
171
- * corresponding to a either the line we are searching for or the next
172
- * closest line that has any mappings. Otherwise, returns all mappings
173
- * corresponding to the given line and either the column we are searching for
174
- * or the next closest column that has any offsets.
175
- *
176
- * The only argument is an object with the following properties:
177
- *
178
- * - source: The filename of the original source.
179
- * - line: The line number in the original source. The line number is 1-based.
180
- * - column: Optional. the column number in the original source.
181
- * The column number is 0-based.
182
- *
183
- * and an array of objects is returned, each with the following properties:
184
- *
185
- * - line: The line number in the generated source, or null. The
186
- * line number is 1-based.
187
- * - column: The column number in the generated source, or null.
188
- * The column number is 0-based.
189
- */
190
- SourceMapConsumer.prototype.allGeneratedPositionsFor =
191
- function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
192
- var line = util.getArg(aArgs, 'line');
193
-
194
- // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping
195
- // returns the index of the closest mapping less than the needle. By
196
- // setting needle.originalColumn to 0, we thus find the last mapping for
197
- // the given line, provided such a mapping exists.
198
- var needle = {
199
- source: util.getArg(aArgs, 'source'),
200
- originalLine: line,
201
- originalColumn: util.getArg(aArgs, 'column', 0)
202
- };
203
-
204
- needle.source = this._findSourceIndex(needle.source);
205
- if (needle.source < 0) {
206
- return [];
207
- }
208
-
209
- var mappings = [];
210
-
211
- var index = this._findMapping(needle,
212
- this._originalMappings,
213
- "originalLine",
214
- "originalColumn",
215
- util.compareByOriginalPositions,
216
- binarySearch.LEAST_UPPER_BOUND);
217
- if (index >= 0) {
218
- var mapping = this._originalMappings[index];
219
-
220
- if (aArgs.column === undefined) {
221
- var originalLine = mapping.originalLine;
222
-
223
- // Iterate until either we run out of mappings, or we run into
224
- // a mapping for a different line than the one we found. Since
225
- // mappings are sorted, this is guaranteed to find all mappings for
226
- // the line we found.
227
- while (mapping && mapping.originalLine === originalLine) {
228
- mappings.push({
229
- line: util.getArg(mapping, 'generatedLine', null),
230
- column: util.getArg(mapping, 'generatedColumn', null),
231
- lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
232
- });
233
-
234
- mapping = this._originalMappings[++index];
235
- }
236
- } else {
237
- var originalColumn = mapping.originalColumn;
238
-
239
- // Iterate until either we run out of mappings, or we run into
240
- // a mapping for a different line than the one we were searching for.
241
- // Since mappings are sorted, this is guaranteed to find all mappings for
242
- // the line we are searching for.
243
- while (mapping &&
244
- mapping.originalLine === line &&
245
- mapping.originalColumn == originalColumn) {
246
- mappings.push({
247
- line: util.getArg(mapping, 'generatedLine', null),
248
- column: util.getArg(mapping, 'generatedColumn', null),
249
- lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
250
- });
251
-
252
- mapping = this._originalMappings[++index];
253
- }
254
- }
255
- }
256
-
257
- return mappings;
258
- };
259
-
260
- exports.SourceMapConsumer = SourceMapConsumer;
261
-
262
- /**
263
- * A BasicSourceMapConsumer instance represents a parsed source map which we can
264
- * query for information about the original file positions by giving it a file
265
- * position in the generated source.
266
- *
267
- * The first parameter is the raw source map (either as a JSON string, or
268
- * already parsed to an object). According to the spec, source maps have the
269
- * following attributes:
270
- *
271
- * - version: Which version of the source map spec this map is following.
272
- * - sources: An array of URLs to the original source files.
273
- * - names: An array of identifiers which can be referrenced by individual mappings.
274
- * - sourceRoot: Optional. The URL root from which all sources are relative.
275
- * - sourcesContent: Optional. An array of contents of the original source files.
276
- * - mappings: A string of base64 VLQs which contain the actual mappings.
277
- * - file: Optional. The generated file this source map is associated with.
278
- *
279
- * Here is an example source map, taken from the source map spec[0]:
280
- *
281
- * {
282
- * version : 3,
283
- * file: "out.js",
284
- * sourceRoot : "",
285
- * sources: ["foo.js", "bar.js"],
286
- * names: ["src", "maps", "are", "fun"],
287
- * mappings: "AA,AB;;ABCDE;"
288
- * }
289
- *
290
- * The second parameter, if given, is a string whose value is the URL
291
- * at which the source map was found. This URL is used to compute the
292
- * sources array.
293
- *
294
- * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
295
- */
296
- function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
297
- var sourceMap = aSourceMap;
298
- if (typeof aSourceMap === 'string') {
299
- sourceMap = util.parseSourceMapInput(aSourceMap);
300
- }
301
-
302
- var version = util.getArg(sourceMap, 'version');
303
- var sources = util.getArg(sourceMap, 'sources');
304
- // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which
305
- // requires the array) to play nice here.
306
- var names = util.getArg(sourceMap, 'names', []);
307
- var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);
308
- var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);
309
- var mappings = util.getArg(sourceMap, 'mappings');
310
- var file = util.getArg(sourceMap, 'file', null);
311
-
312
- // Once again, Sass deviates from the spec and supplies the version as a
313
- // string rather than a number, so we use loose equality checking here.
314
- if (version != this._version) {
315
- throw new Error('Unsupported version: ' + version);
316
- }
317
-
318
- if (sourceRoot) {
319
- sourceRoot = util.normalize(sourceRoot);
320
- }
321
-
322
- sources = sources
323
- .map(String)
324
- // Some source maps produce relative source paths like "./foo.js" instead of
325
- // "foo.js". Normalize these first so that future comparisons will succeed.
326
- // See bugzil.la/1090768.
327
- .map(util.normalize)
328
- // Always ensure that absolute sources are internally stored relative to
329
- // the source root, if the source root is absolute. Not doing this would
330
- // be particularly problematic when the source root is a prefix of the
331
- // source (valid, but why??). See github issue #199 and bugzil.la/1188982.
332
- .map(function (source) {
333
- return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)
334
- ? util.relative(sourceRoot, source)
335
- : source;
336
- });
337
-
338
- // Pass `true` below to allow duplicate names and sources. While source maps
339
- // are intended to be compressed and deduplicated, the TypeScript compiler
340
- // sometimes generates source maps with duplicates in them. See Github issue
341
- // #72 and bugzil.la/889492.
342
- this._names = ArraySet.fromArray(names.map(String), true);
343
- this._sources = ArraySet.fromArray(sources, true);
344
-
345
- this._absoluteSources = this._sources.toArray().map(function (s) {
346
- return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
347
- });
348
-
349
- this.sourceRoot = sourceRoot;
350
- this.sourcesContent = sourcesContent;
351
- this._mappings = mappings;
352
- this._sourceMapURL = aSourceMapURL;
353
- this.file = file;
354
- }
355
-
356
- BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
357
- BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
358
-
359
- /**
360
- * Utility function to find the index of a source. Returns -1 if not
361
- * found.
362
- */
363
- BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
364
- var relativeSource = aSource;
365
- if (this.sourceRoot != null) {
366
- relativeSource = util.relative(this.sourceRoot, relativeSource);
367
- }
368
-
369
- if (this._sources.has(relativeSource)) {
370
- return this._sources.indexOf(relativeSource);
371
- }
372
-
373
- // Maybe aSource is an absolute URL as returned by |sources|. In
374
- // this case we can't simply undo the transform.
375
- var i;
376
- for (i = 0; i < this._absoluteSources.length; ++i) {
377
- if (this._absoluteSources[i] == aSource) {
378
- return i;
379
- }
380
- }
381
-
382
- return -1;
383
- };
384
-
385
- /**
386
- * Create a BasicSourceMapConsumer from a SourceMapGenerator.
387
- *
388
- * @param SourceMapGenerator aSourceMap
389
- * The source map that will be consumed.
390
- * @param String aSourceMapURL
391
- * The URL at which the source map can be found (optional)
392
- * @returns BasicSourceMapConsumer
393
- */
394
- BasicSourceMapConsumer.fromSourceMap =
395
- function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
396
- var smc = Object.create(BasicSourceMapConsumer.prototype);
397
-
398
- var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
399
- var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
400
- smc.sourceRoot = aSourceMap._sourceRoot;
401
- smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),
402
- smc.sourceRoot);
403
- smc.file = aSourceMap._file;
404
- smc._sourceMapURL = aSourceMapURL;
405
- smc._absoluteSources = smc._sources.toArray().map(function (s) {
406
- return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
407
- });
408
-
409
- // Because we are modifying the entries (by converting string sources and
410
- // names to indices into the sources and names ArraySets), we have to make
411
- // a copy of the entry or else bad things happen. Shared mutable state
412
- // strikes again! See github issue #191.
413
-
414
- var generatedMappings = aSourceMap._mappings.toArray().slice();
415
- var destGeneratedMappings = smc.__generatedMappings = [];
416
- var destOriginalMappings = smc.__originalMappings = [];
417
-
418
- for (var i = 0, length = generatedMappings.length; i < length; i++) {
419
- var srcMapping = generatedMappings[i];
420
- var destMapping = new Mapping;
421
- destMapping.generatedLine = srcMapping.generatedLine;
422
- destMapping.generatedColumn = srcMapping.generatedColumn;
423
-
424
- if (srcMapping.source) {
425
- destMapping.source = sources.indexOf(srcMapping.source);
426
- destMapping.originalLine = srcMapping.originalLine;
427
- destMapping.originalColumn = srcMapping.originalColumn;
428
-
429
- if (srcMapping.name) {
430
- destMapping.name = names.indexOf(srcMapping.name);
431
- }
432
-
433
- destOriginalMappings.push(destMapping);
434
- }
435
-
436
- destGeneratedMappings.push(destMapping);
437
- }
438
-
439
- quickSort(smc.__originalMappings, util.compareByOriginalPositions);
440
-
441
- return smc;
442
- };
443
-
444
- /**
445
- * The version of the source mapping spec that we are consuming.
446
- */
447
- BasicSourceMapConsumer.prototype._version = 3;
448
-
449
- /**
450
- * The list of original sources.
451
- */
452
- Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {
453
- get: function () {
454
- return this._absoluteSources.slice();
455
- }
456
- });
457
-
458
- /**
459
- * Provide the JIT with a nice shape / hidden class.
460
- */
461
- function Mapping() {
462
- this.generatedLine = 0;
463
- this.generatedColumn = 0;
464
- this.source = null;
465
- this.originalLine = null;
466
- this.originalColumn = null;
467
- this.name = null;
468
- }
469
-
470
- /**
471
- * Parse the mappings in a string in to a data structure which we can easily
472
- * query (the ordered arrays in the `this.__generatedMappings` and
473
- * `this.__originalMappings` properties).
474
- */
475
-
476
- const compareGenerated = util.compareByGeneratedPositionsDeflatedNoLine;
477
- function sortGenerated(array, start) {
478
- let l = array.length;
479
- let n = array.length - start;
480
- if (n <= 1) {
481
- return;
482
- } else if (n == 2) {
483
- let a = array[start];
484
- let b = array[start + 1];
485
- if (compareGenerated(a, b) > 0) {
486
- array[start] = b;
487
- array[start + 1] = a;
488
- }
489
- } else if (n < 20) {
490
- for (let i = start; i < l; i++) {
491
- for (let j = i; j > start; j--) {
492
- let a = array[j - 1];
493
- let b = array[j];
494
- if (compareGenerated(a, b) <= 0) {
495
- break;
496
- }
497
- array[j - 1] = b;
498
- array[j] = a;
499
- }
500
- }
501
- } else {
502
- quickSort(array, compareGenerated, start);
503
- }
504
- }
505
- BasicSourceMapConsumer.prototype._parseMappings =
506
- function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
507
- var generatedLine = 1;
508
- var previousGeneratedColumn = 0;
509
- var previousOriginalLine = 0;
510
- var previousOriginalColumn = 0;
511
- var previousSource = 0;
512
- var previousName = 0;
513
- var length = aStr.length;
514
- var index = 0;
515
- var cachedSegments = {};
516
- var temp = {};
517
- var originalMappings = [];
518
- var generatedMappings = [];
519
- var mapping, str, segment, end, value;
520
-
521
- let subarrayStart = 0;
522
- while (index < length) {
523
- if (aStr.charAt(index) === ';') {
524
- generatedLine++;
525
- index++;
526
- previousGeneratedColumn = 0;
527
-
528
- sortGenerated(generatedMappings, subarrayStart);
529
- subarrayStart = generatedMappings.length;
530
- }
531
- else if (aStr.charAt(index) === ',') {
532
- index++;
533
- }
534
- else {
535
- mapping = new Mapping();
536
- mapping.generatedLine = generatedLine;
537
-
538
- for (end = index; end < length; end++) {
539
- if (this._charIsMappingSeparator(aStr, end)) {
540
- break;
541
- }
542
- }
543
- str = aStr.slice(index, end);
544
-
545
- segment = [];
546
- while (index < end) {
547
- base64VLQ.decode(aStr, index, temp);
548
- value = temp.value;
549
- index = temp.rest;
550
- segment.push(value);
551
- }
552
-
553
- if (segment.length === 2) {
554
- throw new Error('Found a source, but no line and column');
555
- }
556
-
557
- if (segment.length === 3) {
558
- throw new Error('Found a source and line, but no column');
559
- }
560
-
561
- // Generated column.
562
- mapping.generatedColumn = previousGeneratedColumn + segment[0];
563
- previousGeneratedColumn = mapping.generatedColumn;
564
-
565
- if (segment.length > 1) {
566
- // Original source.
567
- mapping.source = previousSource + segment[1];
568
- previousSource += segment[1];
569
-
570
- // Original line.
571
- mapping.originalLine = previousOriginalLine + segment[2];
572
- previousOriginalLine = mapping.originalLine;
573
- // Lines are stored 0-based
574
- mapping.originalLine += 1;
575
-
576
- // Original column.
577
- mapping.originalColumn = previousOriginalColumn + segment[3];
578
- previousOriginalColumn = mapping.originalColumn;
579
-
580
- if (segment.length > 4) {
581
- // Original name.
582
- mapping.name = previousName + segment[4];
583
- previousName += segment[4];
584
- }
585
- }
586
-
587
- generatedMappings.push(mapping);
588
- if (typeof mapping.originalLine === 'number') {
589
- let currentSource = mapping.source;
590
- while (originalMappings.length <= currentSource) {
591
- originalMappings.push(null);
592
- }
593
- if (originalMappings[currentSource] === null) {
594
- originalMappings[currentSource] = [];
595
- }
596
- originalMappings[currentSource].push(mapping);
597
- }
598
- }
599
- }
600
-
601
- sortGenerated(generatedMappings, subarrayStart);
602
- this.__generatedMappings = generatedMappings;
603
-
604
- for (var i = 0; i < originalMappings.length; i++) {
605
- if (originalMappings[i] != null) {
606
- quickSort(originalMappings[i], util.compareByOriginalPositionsNoSource);
607
- }
608
- }
609
- this.__originalMappings = [].concat(...originalMappings);
610
- };
611
-
612
- /**
613
- * Find the mapping that best matches the hypothetical "needle" mapping that
614
- * we are searching for in the given "haystack" of mappings.
615
- */
616
- BasicSourceMapConsumer.prototype._findMapping =
617
- function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,
618
- aColumnName, aComparator, aBias) {
619
- // To return the position we are searching for, we must first find the
620
- // mapping for the given position and then return the opposite position it
621
- // points to. Because the mappings are sorted, we can use binary search to
622
- // find the best mapping.
623
-
624
- if (aNeedle[aLineName] <= 0) {
625
- throw new TypeError('Line must be greater than or equal to 1, got '
626
- + aNeedle[aLineName]);
627
- }
628
- if (aNeedle[aColumnName] < 0) {
629
- throw new TypeError('Column must be greater than or equal to 0, got '
630
- + aNeedle[aColumnName]);
631
- }
632
-
633
- return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
634
- };
635
-
636
- /**
637
- * Compute the last column for each generated mapping. The last column is
638
- * inclusive.
639
- */
640
- BasicSourceMapConsumer.prototype.computeColumnSpans =
641
- function SourceMapConsumer_computeColumnSpans() {
642
- for (var index = 0; index < this._generatedMappings.length; ++index) {
643
- var mapping = this._generatedMappings[index];
644
-
645
- // Mappings do not contain a field for the last generated columnt. We
646
- // can come up with an optimistic estimate, however, by assuming that
647
- // mappings are contiguous (i.e. given two consecutive mappings, the
648
- // first mapping ends where the second one starts).
649
- if (index + 1 < this._generatedMappings.length) {
650
- var nextMapping = this._generatedMappings[index + 1];
651
-
652
- if (mapping.generatedLine === nextMapping.generatedLine) {
653
- mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
654
- continue;
655
- }
656
- }
657
-
658
- // The last mapping for each line spans the entire line.
659
- mapping.lastGeneratedColumn = Infinity;
660
- }
661
- };
662
-
663
- /**
664
- * Returns the original source, line, and column information for the generated
665
- * source's line and column positions provided. The only argument is an object
666
- * with the following properties:
667
- *
668
- * - line: The line number in the generated source. The line number
669
- * is 1-based.
670
- * - column: The column number in the generated source. The column
671
- * number is 0-based.
672
- * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
673
- * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
674
- * closest element that is smaller than or greater than the one we are
675
- * searching for, respectively, if the exact element cannot be found.
676
- * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
677
- *
678
- * and an object is returned with the following properties:
679
- *
680
- * - source: The original source file, or null.
681
- * - line: The line number in the original source, or null. The
682
- * line number is 1-based.
683
- * - column: The column number in the original source, or null. The
684
- * column number is 0-based.
685
- * - name: The original identifier, or null.
686
- */
687
- BasicSourceMapConsumer.prototype.originalPositionFor =
688
- function SourceMapConsumer_originalPositionFor(aArgs) {
689
- var needle = {
690
- generatedLine: util.getArg(aArgs, 'line'),
691
- generatedColumn: util.getArg(aArgs, 'column')
692
- };
693
-
694
- var index = this._findMapping(
695
- needle,
696
- this._generatedMappings,
697
- "generatedLine",
698
- "generatedColumn",
699
- util.compareByGeneratedPositionsDeflated,
700
- util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
701
- );
702
-
703
- if (index >= 0) {
704
- var mapping = this._generatedMappings[index];
705
-
706
- if (mapping.generatedLine === needle.generatedLine) {
707
- var source = util.getArg(mapping, 'source', null);
708
- if (source !== null) {
709
- source = this._sources.at(source);
710
- source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
711
- }
712
- var name = util.getArg(mapping, 'name', null);
713
- if (name !== null) {
714
- name = this._names.at(name);
715
- }
716
- return {
717
- source: source,
718
- line: util.getArg(mapping, 'originalLine', null),
719
- column: util.getArg(mapping, 'originalColumn', null),
720
- name: name
721
- };
722
- }
723
- }
724
-
725
- return {
726
- source: null,
727
- line: null,
728
- column: null,
729
- name: null
730
- };
731
- };
732
-
733
- /**
734
- * Return true if we have the source content for every source in the source
735
- * map, false otherwise.
736
- */
737
- BasicSourceMapConsumer.prototype.hasContentsOfAllSources =
738
- function BasicSourceMapConsumer_hasContentsOfAllSources() {
739
- if (!this.sourcesContent) {
740
- return false;
741
- }
742
- return this.sourcesContent.length >= this._sources.size() &&
743
- !this.sourcesContent.some(function (sc) { return sc == null; });
744
- };
745
-
746
- /**
747
- * Returns the original source content. The only argument is the url of the
748
- * original source file. Returns null if no original source content is
749
- * available.
750
- */
751
- BasicSourceMapConsumer.prototype.sourceContentFor =
752
- function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
753
- if (!this.sourcesContent) {
754
- return null;
755
- }
756
-
757
- var index = this._findSourceIndex(aSource);
758
- if (index >= 0) {
759
- return this.sourcesContent[index];
760
- }
761
-
762
- var relativeSource = aSource;
763
- if (this.sourceRoot != null) {
764
- relativeSource = util.relative(this.sourceRoot, relativeSource);
765
- }
766
-
767
- var url;
768
- if (this.sourceRoot != null
769
- && (url = util.urlParse(this.sourceRoot))) {
770
- // XXX: file:// URIs and absolute paths lead to unexpected behavior for
771
- // many users. We can help them out when they expect file:// URIs to
772
- // behave like it would if they were running a local HTTP server. See
773
- // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.
774
- var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
775
- if (url.scheme == "file"
776
- && this._sources.has(fileUriAbsPath)) {
777
- return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]
778
- }
779
-
780
- if ((!url.path || url.path == "/")
781
- && this._sources.has("/" + relativeSource)) {
782
- return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
783
- }
784
- }
785
-
786
- // This function is used recursively from
787
- // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we
788
- // don't want to throw if we can't find the source - we just want to
789
- // return null, so we provide a flag to exit gracefully.
790
- if (nullOnMissing) {
791
- return null;
792
- }
793
- else {
794
- throw new Error('"' + relativeSource + '" is not in the SourceMap.');
795
- }
796
- };
797
-
798
- /**
799
- * Returns the generated line and column information for the original source,
800
- * line, and column positions provided. The only argument is an object with
801
- * the following properties:
802
- *
803
- * - source: The filename of the original source.
804
- * - line: The line number in the original source. The line number
805
- * is 1-based.
806
- * - column: The column number in the original source. The column
807
- * number is 0-based.
808
- * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
809
- * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
810
- * closest element that is smaller than or greater than the one we are
811
- * searching for, respectively, if the exact element cannot be found.
812
- * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
813
- *
814
- * and an object is returned with the following properties:
815
- *
816
- * - line: The line number in the generated source, or null. The
817
- * line number is 1-based.
818
- * - column: The column number in the generated source, or null.
819
- * The column number is 0-based.
820
- */
821
- BasicSourceMapConsumer.prototype.generatedPositionFor =
822
- function SourceMapConsumer_generatedPositionFor(aArgs) {
823
- var source = util.getArg(aArgs, 'source');
824
- source = this._findSourceIndex(source);
825
- if (source < 0) {
826
- return {
827
- line: null,
828
- column: null,
829
- lastColumn: null
830
- };
831
- }
832
-
833
- var needle = {
834
- source: source,
835
- originalLine: util.getArg(aArgs, 'line'),
836
- originalColumn: util.getArg(aArgs, 'column')
837
- };
838
-
839
- var index = this._findMapping(
840
- needle,
841
- this._originalMappings,
842
- "originalLine",
843
- "originalColumn",
844
- util.compareByOriginalPositions,
845
- util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
846
- );
847
-
848
- if (index >= 0) {
849
- var mapping = this._originalMappings[index];
850
-
851
- if (mapping.source === needle.source) {
852
- return {
853
- line: util.getArg(mapping, 'generatedLine', null),
854
- column: util.getArg(mapping, 'generatedColumn', null),
855
- lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
856
- };
857
- }
858
- }
859
-
860
- return {
861
- line: null,
862
- column: null,
863
- lastColumn: null
864
- };
865
- };
866
-
867
- exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
868
-
869
- /**
870
- * An IndexedSourceMapConsumer instance represents a parsed source map which
871
- * we can query for information. It differs from BasicSourceMapConsumer in
872
- * that it takes "indexed" source maps (i.e. ones with a "sections" field) as
873
- * input.
874
- *
875
- * The first parameter is a raw source map (either as a JSON string, or already
876
- * parsed to an object). According to the spec for indexed source maps, they
877
- * have the following attributes:
878
- *
879
- * - version: Which version of the source map spec this map is following.
880
- * - file: Optional. The generated file this source map is associated with.
881
- * - sections: A list of section definitions.
882
- *
883
- * Each value under the "sections" field has two fields:
884
- * - offset: The offset into the original specified at which this section
885
- * begins to apply, defined as an object with a "line" and "column"
886
- * field.
887
- * - map: A source map definition. This source map could also be indexed,
888
- * but doesn't have to be.
889
- *
890
- * Instead of the "map" field, it's also possible to have a "url" field
891
- * specifying a URL to retrieve a source map from, but that's currently
892
- * unsupported.
893
- *
894
- * Here's an example source map, taken from the source map spec[0], but
895
- * modified to omit a section which uses the "url" field.
896
- *
897
- * {
898
- * version : 3,
899
- * file: "app.js",
900
- * sections: [{
901
- * offset: {line:100, column:10},
902
- * map: {
903
- * version : 3,
904
- * file: "section.js",
905
- * sources: ["foo.js", "bar.js"],
906
- * names: ["src", "maps", "are", "fun"],
907
- * mappings: "AAAA,E;;ABCDE;"
908
- * }
909
- * }],
910
- * }
911
- *
912
- * The second parameter, if given, is a string whose value is the URL
913
- * at which the source map was found. This URL is used to compute the
914
- * sources array.
915
- *
916
- * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
917
- */
918
- function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
919
- var sourceMap = aSourceMap;
920
- if (typeof aSourceMap === 'string') {
921
- sourceMap = util.parseSourceMapInput(aSourceMap);
922
- }
923
-
924
- var version = util.getArg(sourceMap, 'version');
925
- var sections = util.getArg(sourceMap, 'sections');
926
-
927
- if (version != this._version) {
928
- throw new Error('Unsupported version: ' + version);
929
- }
930
-
931
- this._sources = new ArraySet();
932
- this._names = new ArraySet();
933
-
934
- var lastOffset = {
935
- line: -1,
936
- column: 0
937
- };
938
- this._sections = sections.map(function (s) {
939
- if (s.url) {
940
- // The url field will require support for asynchronicity.
941
- // See https://github.com/mozilla/source-map/issues/16
942
- throw new Error('Support for url field in sections not implemented.');
943
- }
944
- var offset = util.getArg(s, 'offset');
945
- var offsetLine = util.getArg(offset, 'line');
946
- var offsetColumn = util.getArg(offset, 'column');
947
-
948
- if (offsetLine < lastOffset.line ||
949
- (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {
950
- throw new Error('Section offsets must be ordered and non-overlapping.');
951
- }
952
- lastOffset = offset;
953
-
954
- return {
955
- generatedOffset: {
956
- // The offset fields are 0-based, but we use 1-based indices when
957
- // encoding/decoding from VLQ.
958
- generatedLine: offsetLine + 1,
959
- generatedColumn: offsetColumn + 1
960
- },
961
- consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL)
962
- }
963
- });
964
- }
965
-
966
- IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
967
- IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
968
-
969
- /**
970
- * The version of the source mapping spec that we are consuming.
971
- */
972
- IndexedSourceMapConsumer.prototype._version = 3;
973
-
974
- /**
975
- * The list of original sources.
976
- */
977
- Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {
978
- get: function () {
979
- var sources = [];
980
- for (var i = 0; i < this._sections.length; i++) {
981
- for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {
982
- sources.push(this._sections[i].consumer.sources[j]);
983
- }
984
- }
985
- return sources;
986
- }
987
- });
988
-
989
- /**
990
- * Returns the original source, line, and column information for the generated
991
- * source's line and column positions provided. The only argument is an object
992
- * with the following properties:
993
- *
994
- * - line: The line number in the generated source. The line number
995
- * is 1-based.
996
- * - column: The column number in the generated source. The column
997
- * number is 0-based.
998
- *
999
- * and an object is returned with the following properties:
1000
- *
1001
- * - source: The original source file, or null.
1002
- * - line: The line number in the original source, or null. The
1003
- * line number is 1-based.
1004
- * - column: The column number in the original source, or null. The
1005
- * column number is 0-based.
1006
- * - name: The original identifier, or null.
1007
- */
1008
- IndexedSourceMapConsumer.prototype.originalPositionFor =
1009
- function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
1010
- var needle = {
1011
- generatedLine: util.getArg(aArgs, 'line'),
1012
- generatedColumn: util.getArg(aArgs, 'column')
1013
- };
1014
-
1015
- // Find the section containing the generated position we're trying to map
1016
- // to an original position.
1017
- var sectionIndex = binarySearch.search(needle, this._sections,
1018
- function(needle, section) {
1019
- var cmp = needle.generatedLine - section.generatedOffset.generatedLine;
1020
- if (cmp) {
1021
- return cmp;
1022
- }
1023
-
1024
- return (needle.generatedColumn -
1025
- section.generatedOffset.generatedColumn);
1026
- });
1027
- var section = this._sections[sectionIndex];
1028
-
1029
- if (!section) {
1030
- return {
1031
- source: null,
1032
- line: null,
1033
- column: null,
1034
- name: null
1035
- };
1036
- }
1037
-
1038
- return section.consumer.originalPositionFor({
1039
- line: needle.generatedLine -
1040
- (section.generatedOffset.generatedLine - 1),
1041
- column: needle.generatedColumn -
1042
- (section.generatedOffset.generatedLine === needle.generatedLine
1043
- ? section.generatedOffset.generatedColumn - 1
1044
- : 0),
1045
- bias: aArgs.bias
1046
- });
1047
- };
1048
-
1049
- /**
1050
- * Return true if we have the source content for every source in the source
1051
- * map, false otherwise.
1052
- */
1053
- IndexedSourceMapConsumer.prototype.hasContentsOfAllSources =
1054
- function IndexedSourceMapConsumer_hasContentsOfAllSources() {
1055
- return this._sections.every(function (s) {
1056
- return s.consumer.hasContentsOfAllSources();
1057
- });
1058
- };
1059
-
1060
- /**
1061
- * Returns the original source content. The only argument is the url of the
1062
- * original source file. Returns null if no original source content is
1063
- * available.
1064
- */
1065
- IndexedSourceMapConsumer.prototype.sourceContentFor =
1066
- function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
1067
- for (var i = 0; i < this._sections.length; i++) {
1068
- var section = this._sections[i];
1069
-
1070
- var content = section.consumer.sourceContentFor(aSource, true);
1071
- if (content || content === '') {
1072
- return content;
1073
- }
1074
- }
1075
- if (nullOnMissing) {
1076
- return null;
1077
- }
1078
- else {
1079
- throw new Error('"' + aSource + '" is not in the SourceMap.');
1080
- }
1081
- };
1082
-
1083
- /**
1084
- * Returns the generated line and column information for the original source,
1085
- * line, and column positions provided. The only argument is an object with
1086
- * the following properties:
1087
- *
1088
- * - source: The filename of the original source.
1089
- * - line: The line number in the original source. The line number
1090
- * is 1-based.
1091
- * - column: The column number in the original source. The column
1092
- * number is 0-based.
1093
- *
1094
- * and an object is returned with the following properties:
1095
- *
1096
- * - line: The line number in the generated source, or null. The
1097
- * line number is 1-based.
1098
- * - column: The column number in the generated source, or null.
1099
- * The column number is 0-based.
1100
- */
1101
- IndexedSourceMapConsumer.prototype.generatedPositionFor =
1102
- function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
1103
- for (var i = 0; i < this._sections.length; i++) {
1104
- var section = this._sections[i];
1105
-
1106
- // Only consider this section if the requested source is in the list of
1107
- // sources of the consumer.
1108
- if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) {
1109
- continue;
1110
- }
1111
- var generatedPosition = section.consumer.generatedPositionFor(aArgs);
1112
- if (generatedPosition) {
1113
- var ret = {
1114
- line: generatedPosition.line +
1115
- (section.generatedOffset.generatedLine - 1),
1116
- column: generatedPosition.column +
1117
- (section.generatedOffset.generatedLine === generatedPosition.line
1118
- ? section.generatedOffset.generatedColumn - 1
1119
- : 0)
1120
- };
1121
- return ret;
1122
- }
1123
- }
1124
-
1125
- return {
1126
- line: null,
1127
- column: null
1128
- };
1129
- };
1130
-
1131
- /**
1132
- * Parse the mappings in a string in to a data structure which we can easily
1133
- * query (the ordered arrays in the `this.__generatedMappings` and
1134
- * `this.__originalMappings` properties).
1135
- */
1136
- IndexedSourceMapConsumer.prototype._parseMappings =
1137
- function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
1138
- this.__generatedMappings = [];
1139
- this.__originalMappings = [];
1140
- for (var i = 0; i < this._sections.length; i++) {
1141
- var section = this._sections[i];
1142
- var sectionMappings = section.consumer._generatedMappings;
1143
- for (var j = 0; j < sectionMappings.length; j++) {
1144
- var mapping = sectionMappings[j];
1145
-
1146
- var source = section.consumer._sources.at(mapping.source);
1147
- if(source !== null) {
1148
- source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
1149
- }
1150
- this._sources.add(source);
1151
- source = this._sources.indexOf(source);
1152
-
1153
- var name = null;
1154
- if (mapping.name) {
1155
- name = section.consumer._names.at(mapping.name);
1156
- this._names.add(name);
1157
- name = this._names.indexOf(name);
1158
- }
1159
-
1160
- // The mappings coming from the consumer for the section have
1161
- // generated positions relative to the start of the section, so we
1162
- // need to offset them to be relative to the start of the concatenated
1163
- // generated file.
1164
- var adjustedMapping = {
1165
- source: source,
1166
- generatedLine: mapping.generatedLine +
1167
- (section.generatedOffset.generatedLine - 1),
1168
- generatedColumn: mapping.generatedColumn +
1169
- (section.generatedOffset.generatedLine === mapping.generatedLine
1170
- ? section.generatedOffset.generatedColumn - 1
1171
- : 0),
1172
- originalLine: mapping.originalLine,
1173
- originalColumn: mapping.originalColumn,
1174
- name: name
1175
- };
1176
-
1177
- this.__generatedMappings.push(adjustedMapping);
1178
- if (typeof adjustedMapping.originalLine === 'number') {
1179
- this.__originalMappings.push(adjustedMapping);
1180
- }
1181
- }
1182
- }
1183
-
1184
- quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
1185
- quickSort(this.__originalMappings, util.compareByOriginalPositions);
1186
- };
1187
-
1188
- exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;