tungsten 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/.build-complete +1 -1
  2. package/dist/Components.d.ts +14 -6
  3. package/dist/Components.d.ts.map +1 -1
  4. package/dist/Components.js +67 -23
  5. package/dist/DomPointer.js +1 -1
  6. package/dist/DomRegion.js +2 -2
  7. package/dist/Framework.d.ts.map +1 -1
  8. package/dist/Framework.js +9 -3
  9. package/dist/FrameworkConfig.d.ts +0 -1
  10. package/dist/FrameworkConfig.d.ts.map +1 -1
  11. package/dist/FunctionComponentStandIn.d.ts +4 -0
  12. package/dist/FunctionComponentStandIn.d.ts.map +1 -1
  13. package/dist/FunctionComponentStandIn.js +11 -1
  14. package/dist/Json.type.d.ts.map +1 -1
  15. package/dist/Servers/DevServer.js +1 -1
  16. package/dist/Servers/MatchedRouteInfo.d.ts +1 -1
  17. package/dist/Servers/MatchedRouteInfo.d.ts.map +1 -1
  18. package/dist/Servers/ProdServer.js +2 -3
  19. package/dist/Servers/initStores.d.ts.map +1 -1
  20. package/dist/Servers/loadEnvsDev.d.ts.map +1 -1
  21. package/dist/Servers/loadEnvsDev.js +8 -3
  22. package/dist/Store/makeStore.d.ts.map +1 -1
  23. package/dist/Store/makeStore.js +7 -3
  24. package/dist/api/ApiMethod.type.d.ts +2 -0
  25. package/dist/api/ApiMethod.type.d.ts.map +1 -0
  26. package/dist/api/ApiRoute.d.ts +2 -2
  27. package/dist/api/ApiRoute.d.ts.map +1 -1
  28. package/dist/babelPlugins/BabelExtractComponentStylesheet.d.ts +2 -2
  29. package/dist/babelPlugins/BabelExtractComponentStylesheet.d.ts.map +1 -1
  30. package/dist/babelPlugins/BabelExtractComponentStylesheet.js +1 -1
  31. package/dist/babelPlugins/BabelTransformBindDirect.d.ts.map +1 -1
  32. package/dist/babelPlugins/BabelTransformBindDirect.js +2 -4
  33. package/dist/babelPlugins/BabelTransformBindVar.js +2 -3
  34. package/dist/babelPlugins/BabelTransformDocInit.js +1 -1
  35. package/dist/babelPlugins/BabelTransformPackageImports.d.ts +1 -0
  36. package/dist/babelPlugins/BabelTransformPackageImports.d.ts.map +1 -1
  37. package/dist/babelPlugins/BabelTransformPackageImports.js +51 -69
  38. package/dist/babelPlugins/BabelTypes.d.ts.map +1 -1
  39. package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.d.ts.map +1 -1
  40. package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsEsm.d.ts.map +1 -1
  41. package/dist/bin/commands/build.js +0 -1
  42. package/dist/build/babel.user.common.config.d.ts +2 -1
  43. package/dist/build/babel.user.common.config.d.ts.map +1 -1
  44. package/dist/build/babel.user.common.config.js +16 -10
  45. package/dist/build/compileJavascript.d.ts.map +1 -1
  46. package/dist/build/compileJavascript.js +3 -4
  47. package/dist/build/compileStyles.d.ts.map +1 -1
  48. package/dist/build/compileStyles.js +7 -3
  49. package/dist/build/createClientFiles.js +2 -3
  50. package/dist/build/createInstanceConfigFile.js +1 -1
  51. package/dist/build/devBundle.rollup.config.js +6 -6
  52. package/dist/build/frameworkDestLocation.d.ts.map +1 -1
  53. package/dist/build/frameworkDestLocation.js +5 -2
  54. package/dist/build/makeBabelRawConfig.js +1 -1
  55. package/dist/build/makeBabelUserProdConfig.js +2 -4
  56. package/dist/build/packageIdentifier.d.ts +6 -0
  57. package/dist/build/packageIdentifier.d.ts.map +1 -0
  58. package/dist/build/packageIdentifier.js +19 -0
  59. package/dist/build/rollup.user.prod.config.js +12 -12
  60. package/dist/build/sassImportParser.js +0 -3
  61. package/dist/clone.js +1 -3
  62. package/dist/compat/types.d.ts.map +1 -1
  63. package/dist/componentProxyHandlers.js +1 -1
  64. package/dist/components/NativeHtml.d.ts +1 -1
  65. package/dist/components/NativeHtml.d.ts.map +1 -1
  66. package/dist/components/Protected.d.ts +1 -1
  67. package/dist/components/Protected.d.ts.map +1 -1
  68. package/dist/components/Stylesheet.js +0 -1
  69. package/dist/components/bindable/BindableInputTyped.d.ts.map +1 -1
  70. package/dist/components/library/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  71. package/dist/components/library/RichTextEditor/RichTextEditor.js +3 -3
  72. package/dist/createRef.d.ts +1 -1
  73. package/dist/createRef.d.ts.map +1 -1
  74. package/dist/createRef.js +1 -1
  75. package/dist/env/droppedCoreEnvKeys.d.ts +5 -0
  76. package/dist/env/droppedCoreEnvKeys.d.ts.map +1 -0
  77. package/dist/env/droppedCoreEnvKeys.js +9 -0
  78. package/dist/foreach.d.ts.map +1 -1
  79. package/dist/frameworkConfigSchema.d.ts +11 -0
  80. package/dist/frameworkConfigSchema.d.ts.map +1 -1
  81. package/dist/frameworkConfigSchema.js +15 -4
  82. package/dist/getUserConfig.d.ts.map +1 -1
  83. package/dist/getUserConfig.js +7 -2
  84. package/dist/headChildren.d.ts +2 -0
  85. package/dist/headChildren.d.ts.map +1 -0
  86. package/dist/headChildren.js +16 -0
  87. package/dist/helpers/forwardingFetch.d.ts +3 -0
  88. package/dist/helpers/forwardingFetch.d.ts.map +1 -0
  89. package/dist/helpers/forwardingFetch.js +14 -0
  90. package/dist/helpers/index.d.ts +2 -0
  91. package/dist/helpers/index.d.ts.map +1 -1
  92. package/dist/helpers/index.js +3 -1
  93. package/dist/helpers/perRequest.d.ts +3 -0
  94. package/dist/helpers/perRequest.d.ts.map +1 -0
  95. package/dist/helpers/perRequest.js +17 -0
  96. package/dist/hmr/instanceRegistry.js +2 -2
  97. package/dist/hooks/useCallback.d.ts.map +1 -1
  98. package/dist/hydrate/hydrate.d.ts +1 -2
  99. package/dist/hydrate/hydrate.d.ts.map +1 -1
  100. package/dist/hydrate/hydrate.js +13 -20
  101. package/dist/hydrate/reconcileHydratedAttributes.js +1 -1
  102. package/dist/importDevModuleWithRetry.js +1 -1
  103. package/dist/index.d.ts +1 -0
  104. package/dist/index.d.ts.map +1 -1
  105. package/dist/index.js +4 -0
  106. package/dist/indexInner.d.ts +1 -2
  107. package/dist/indexInner.d.ts.map +1 -1
  108. package/dist/logAndReturn.d.ts.map +1 -1
  109. package/dist/markOptionSelected.js +1 -1
  110. package/dist/mutatingFunctions.js +0 -3
  111. package/dist/postcssPlugins/TransformCssNames.js +2 -2
  112. package/dist/render/addImportMap.d.ts.map +1 -1
  113. package/dist/render/addImportMap.js +1 -1
  114. package/dist/render/processHead.d.ts.map +1 -1
  115. package/dist/render/processHead.js +18 -12
  116. package/dist/requests/fetch/delete.d.ts +2 -1
  117. package/dist/requests/fetch/delete.d.ts.map +1 -1
  118. package/dist/requests/fetch/delete.js +7 -7
  119. package/dist/requests/fetch/get.d.ts.map +1 -1
  120. package/dist/requests/fetch/get.js +4 -6
  121. package/dist/requests/fetch/mergeFetchInit.d.ts +2 -0
  122. package/dist/requests/fetch/mergeFetchInit.d.ts.map +1 -0
  123. package/dist/requests/fetch/mergeFetchInit.js +17 -0
  124. package/dist/requests/fetch/patch.d.ts.map +1 -1
  125. package/dist/requests/fetch/patch.js +4 -6
  126. package/dist/requests/fetch/post.d.ts.map +1 -1
  127. package/dist/requests/fetch/post.js +4 -6
  128. package/dist/requests/fetch/put.d.ts.map +1 -1
  129. package/dist/requests/fetch/put.js +4 -6
  130. package/dist/routing/ParamsFromPath.d.ts.map +1 -1
  131. package/dist/routing/RouteType.d.ts +1 -8
  132. package/dist/routing/RouteType.d.ts.map +1 -1
  133. package/dist/routing/RouteTypes.d.ts +11 -0
  134. package/dist/routing/RouteTypes.d.ts.map +1 -1
  135. package/dist/routing/Routes.d.ts +7 -8
  136. package/dist/routing/Routes.d.ts.map +1 -1
  137. package/dist/routing/__fluentRouteBuilder.d.ts +80 -0
  138. package/dist/routing/__fluentRouteBuilder.d.ts.map +1 -0
  139. package/dist/routing/__fluentRouteBuilder.js +183 -0
  140. package/dist/routing/__fluentRoutes.d.ts +2 -0
  141. package/dist/routing/__fluentRoutes.d.ts.map +1 -0
  142. package/dist/routing/__fluentRoutes.js +59 -0
  143. package/dist/staticGen/staticGen.d.ts.map +1 -1
  144. package/dist/testing/host.d.ts.map +1 -1
  145. package/dist/testing/host.js +1 -2
  146. package/dist/testing/hydrateTestApp.js +5 -9
  147. package/dist/update/guardedUpdate.d.ts +9 -0
  148. package/dist/update/guardedUpdate.d.ts.map +1 -0
  149. package/dist/update/guardedUpdate.js +20 -0
  150. package/dist/update/integrateUpdateVdom.d.ts.map +1 -1
  151. package/dist/update/integrateUpdateVdom.js +5 -3
  152. package/dist/zones/react.d.ts.map +1 -1
  153. package/dist/zones/react.js +2 -2
  154. package/package.json +7 -10
  155. package/types/env.d.ts +11 -11
  156. package/types/index.d.ts +7 -3
  157. package/types/jsx/html.d.ts +5 -5
  158. package/types/jsx/html.events.d.ts +202 -200
  159. package/types/jsx/html.global.d.ts +150 -150
  160. package/types/jsx/html.values.d.ts +29 -29
  161. package/types/jsx/jsx.d.ts +16 -5
  162. package/vendor/babel-core.js +13 -8
  163. package/vendor/babel-parser.js +5 -1
  164. package/vendor/babel-plugin-syntax-import-assertions.js +5 -1
  165. package/vendor/babel-preset-react.js +13 -8
  166. package/vendor/babel-preset-typescript.js +13 -8
  167. package/vendor/babel-types.js +5 -1
  168. package/vendor/chalk-extensions.js +6 -161
  169. package/vendor/chalk.js +4 -0
  170. package/vendor/chokidar.js +17 -13
  171. package/vendor/{chunk-B_NeooyV.js → chunk-BSJqV47f.js} +4 -0
  172. package/vendor/{chunk-1UuLTU0U.js → chunk-BYvDIO7e.js} +4 -0
  173. package/vendor/chunk-BfcfwwoF.js +15 -0
  174. package/vendor/{chunk-CPArXGxa.js → chunk-BiUcnLhT.js} +4 -0
  175. package/vendor/chunk-Bu8ZRE-c.js +179 -0
  176. package/vendor/chunk-CmnhIuzX.js +167 -0
  177. package/vendor/chunk-Cqrj-Zqr.js +8579 -0
  178. package/vendor/{chunk-1TN2rK3j.js → chunk-D2EnpcLg.js} +7 -3
  179. package/vendor/{chunk-C9FSKeSx.js → chunk-DHmjZ22y.js} +4 -0
  180. package/vendor/{chunk-C3YkUGz5.js → chunk-Hy-cCmu-.js} +4 -0
  181. package/vendor/{chunk-C12hSZn7.js → chunk-Lqa6rV_r.js} +4 -0
  182. package/vendor/{chunk-C3fcZDjl.js → chunk-OUnVY4Wm.js} +24 -191
  183. package/vendor/cjs-module-lexer.js +4 -0
  184. package/vendor/dotenv.js +10 -6
  185. package/vendor/express.js +30 -31
  186. package/vendor/import-meta-resolve.js +4 -0
  187. package/vendor/manifest.json +3 -2
  188. package/vendor/postcss.js +9 -8544
  189. package/vendor/precinct.js +326959 -0
  190. package/vendor/serialize-javascript.js +4 -0
  191. package/vendor/sxy-lib-arrays.js +4 -0
  192. package/vendor/sxy-lib-object-copy.js +5 -1
  193. package/vendor/sxy-lib-objects.js +4 -0
  194. package/vendor/sxy-lib-promises.js +4 -0
  195. package/vendor/sxy-package-investigator.js +7 -3
  196. package/vendor/valibot.js +4 -0
  197. package/dist/.tsbuildinfo +0 -1
  198. package/dist/api/Method.d.ts +0 -2
  199. package/dist/api/Method.d.ts.map +0 -1
  200. /package/dist/api/{Method.js → ApiMethod.type.js} +0 -0
@@ -1,171 +1,16 @@
1
1
  import { createRequire as __tungstenCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __tungstenFileURLToPath } from 'node:url';
3
+ import { dirname as __tungstenDirname } from 'node:path';
2
4
  const require = __tungstenCreateRequire(import.meta.url);
5
+ const __filename = __tungstenFileURLToPath(import.meta.url);
6
+ const __dirname = __tungstenDirname(__filename);
7
+ import { r as requireColorName } from './chunk-CmnhIuzX.js';
3
8
  import require$$0 from 'os';
4
9
  import require$$1 from 'tty';
5
- import { r as requireHasFlag } from './chunk-C3YkUGz5.js';
10
+ import { r as requireHasFlag } from './chunk-Hy-cCmu-.js';
6
11
 
7
12
  var ansiStyles = {exports: {}};
8
13
 
9
- var colorName;
10
- var hasRequiredColorName;
11
-
12
- function requireColorName () {
13
- if (hasRequiredColorName) return colorName;
14
- hasRequiredColorName = 1;
15
-
16
- colorName = {
17
- "aliceblue": [240, 248, 255],
18
- "antiquewhite": [250, 235, 215],
19
- "aqua": [0, 255, 255],
20
- "aquamarine": [127, 255, 212],
21
- "azure": [240, 255, 255],
22
- "beige": [245, 245, 220],
23
- "bisque": [255, 228, 196],
24
- "black": [0, 0, 0],
25
- "blanchedalmond": [255, 235, 205],
26
- "blue": [0, 0, 255],
27
- "blueviolet": [138, 43, 226],
28
- "brown": [165, 42, 42],
29
- "burlywood": [222, 184, 135],
30
- "cadetblue": [95, 158, 160],
31
- "chartreuse": [127, 255, 0],
32
- "chocolate": [210, 105, 30],
33
- "coral": [255, 127, 80],
34
- "cornflowerblue": [100, 149, 237],
35
- "cornsilk": [255, 248, 220],
36
- "crimson": [220, 20, 60],
37
- "cyan": [0, 255, 255],
38
- "darkblue": [0, 0, 139],
39
- "darkcyan": [0, 139, 139],
40
- "darkgoldenrod": [184, 134, 11],
41
- "darkgray": [169, 169, 169],
42
- "darkgreen": [0, 100, 0],
43
- "darkgrey": [169, 169, 169],
44
- "darkkhaki": [189, 183, 107],
45
- "darkmagenta": [139, 0, 139],
46
- "darkolivegreen": [85, 107, 47],
47
- "darkorange": [255, 140, 0],
48
- "darkorchid": [153, 50, 204],
49
- "darkred": [139, 0, 0],
50
- "darksalmon": [233, 150, 122],
51
- "darkseagreen": [143, 188, 143],
52
- "darkslateblue": [72, 61, 139],
53
- "darkslategray": [47, 79, 79],
54
- "darkslategrey": [47, 79, 79],
55
- "darkturquoise": [0, 206, 209],
56
- "darkviolet": [148, 0, 211],
57
- "deeppink": [255, 20, 147],
58
- "deepskyblue": [0, 191, 255],
59
- "dimgray": [105, 105, 105],
60
- "dimgrey": [105, 105, 105],
61
- "dodgerblue": [30, 144, 255],
62
- "firebrick": [178, 34, 34],
63
- "floralwhite": [255, 250, 240],
64
- "forestgreen": [34, 139, 34],
65
- "fuchsia": [255, 0, 255],
66
- "gainsboro": [220, 220, 220],
67
- "ghostwhite": [248, 248, 255],
68
- "gold": [255, 215, 0],
69
- "goldenrod": [218, 165, 32],
70
- "gray": [128, 128, 128],
71
- "green": [0, 128, 0],
72
- "greenyellow": [173, 255, 47],
73
- "grey": [128, 128, 128],
74
- "honeydew": [240, 255, 240],
75
- "hotpink": [255, 105, 180],
76
- "indianred": [205, 92, 92],
77
- "indigo": [75, 0, 130],
78
- "ivory": [255, 255, 240],
79
- "khaki": [240, 230, 140],
80
- "lavender": [230, 230, 250],
81
- "lavenderblush": [255, 240, 245],
82
- "lawngreen": [124, 252, 0],
83
- "lemonchiffon": [255, 250, 205],
84
- "lightblue": [173, 216, 230],
85
- "lightcoral": [240, 128, 128],
86
- "lightcyan": [224, 255, 255],
87
- "lightgoldenrodyellow": [250, 250, 210],
88
- "lightgray": [211, 211, 211],
89
- "lightgreen": [144, 238, 144],
90
- "lightgrey": [211, 211, 211],
91
- "lightpink": [255, 182, 193],
92
- "lightsalmon": [255, 160, 122],
93
- "lightseagreen": [32, 178, 170],
94
- "lightskyblue": [135, 206, 250],
95
- "lightslategray": [119, 136, 153],
96
- "lightslategrey": [119, 136, 153],
97
- "lightsteelblue": [176, 196, 222],
98
- "lightyellow": [255, 255, 224],
99
- "lime": [0, 255, 0],
100
- "limegreen": [50, 205, 50],
101
- "linen": [250, 240, 230],
102
- "magenta": [255, 0, 255],
103
- "maroon": [128, 0, 0],
104
- "mediumaquamarine": [102, 205, 170],
105
- "mediumblue": [0, 0, 205],
106
- "mediumorchid": [186, 85, 211],
107
- "mediumpurple": [147, 112, 219],
108
- "mediumseagreen": [60, 179, 113],
109
- "mediumslateblue": [123, 104, 238],
110
- "mediumspringgreen": [0, 250, 154],
111
- "mediumturquoise": [72, 209, 204],
112
- "mediumvioletred": [199, 21, 133],
113
- "midnightblue": [25, 25, 112],
114
- "mintcream": [245, 255, 250],
115
- "mistyrose": [255, 228, 225],
116
- "moccasin": [255, 228, 181],
117
- "navajowhite": [255, 222, 173],
118
- "navy": [0, 0, 128],
119
- "oldlace": [253, 245, 230],
120
- "olive": [128, 128, 0],
121
- "olivedrab": [107, 142, 35],
122
- "orange": [255, 165, 0],
123
- "orangered": [255, 69, 0],
124
- "orchid": [218, 112, 214],
125
- "palegoldenrod": [238, 232, 170],
126
- "palegreen": [152, 251, 152],
127
- "paleturquoise": [175, 238, 238],
128
- "palevioletred": [219, 112, 147],
129
- "papayawhip": [255, 239, 213],
130
- "peachpuff": [255, 218, 185],
131
- "peru": [205, 133, 63],
132
- "pink": [255, 192, 203],
133
- "plum": [221, 160, 221],
134
- "powderblue": [176, 224, 230],
135
- "purple": [128, 0, 128],
136
- "rebeccapurple": [102, 51, 153],
137
- "red": [255, 0, 0],
138
- "rosybrown": [188, 143, 143],
139
- "royalblue": [65, 105, 225],
140
- "saddlebrown": [139, 69, 19],
141
- "salmon": [250, 128, 114],
142
- "sandybrown": [244, 164, 96],
143
- "seagreen": [46, 139, 87],
144
- "seashell": [255, 245, 238],
145
- "sienna": [160, 82, 45],
146
- "silver": [192, 192, 192],
147
- "skyblue": [135, 206, 235],
148
- "slateblue": [106, 90, 205],
149
- "slategray": [112, 128, 144],
150
- "slategrey": [112, 128, 144],
151
- "snow": [255, 250, 250],
152
- "springgreen": [0, 255, 127],
153
- "steelblue": [70, 130, 180],
154
- "tan": [210, 180, 140],
155
- "teal": [0, 128, 128],
156
- "thistle": [216, 191, 216],
157
- "tomato": [255, 99, 71],
158
- "turquoise": [64, 224, 208],
159
- "violet": [238, 130, 238],
160
- "wheat": [245, 222, 179],
161
- "white": [255, 255, 255],
162
- "whitesmoke": [245, 245, 245],
163
- "yellow": [255, 255, 0],
164
- "yellowgreen": [154, 205, 50]
165
- };
166
- return colorName;
167
- }
168
-
169
14
  /* MIT license */
170
15
 
171
16
  var conversions;
package/vendor/chalk.js CHANGED
@@ -1,5 +1,9 @@
1
1
  import { createRequire as __tungstenCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __tungstenFileURLToPath } from 'node:url';
3
+ import { dirname as __tungstenDirname } from 'node:path';
2
4
  const require = __tungstenCreateRequire(import.meta.url);
5
+ const __filename = __tungstenFileURLToPath(import.meta.url);
6
+ const __dirname = __tungstenDirname(__filename);
3
7
  import process from 'node:process';
4
8
  import os from 'node:os';
5
9
  import tty from 'node:tty';
@@ -1,10 +1,14 @@
1
1
  import { createRequire as __tungstenCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __tungstenFileURLToPath } from 'node:url';
3
+ import { dirname as __tungstenDirname } from 'node:path';
2
4
  const require = __tungstenCreateRequire(import.meta.url);
5
+ const __filename = __tungstenFileURLToPath(import.meta.url);
6
+ const __dirname = __tungstenDirname(__filename);
3
7
  import require$$0$4 from 'events';
4
- import require$$0$2 from 'fs';
8
+ import require$$0__default from 'fs';
5
9
  import require$$0$1 from 'path';
6
- import require$$2 from 'util';
7
- import require$$1 from 'stream';
10
+ import require$$0$2 from 'util';
11
+ import require$$5 from 'stream';
8
12
  import require$$0$3 from 'os';
9
13
 
10
14
  var chokidar = {};
@@ -2137,10 +2141,10 @@ function requireReaddirp () {
2137
2141
  if (hasRequiredReaddirp) return readdirp_1;
2138
2142
  hasRequiredReaddirp = 1;
2139
2143
 
2140
- const fs = require$$0$2;
2141
- const { Readable } = require$$1;
2144
+ const fs = require$$0__default;
2145
+ const { Readable } = require$$5;
2142
2146
  const sysPath = require$$0$1;
2143
- const { promisify } = require$$2;
2147
+ const { promisify } = require$$0$2;
2144
2148
  const picomatch = requirePicomatch();
2145
2149
 
2146
2150
  const readdir = promisify(fs.readdir);
@@ -3330,7 +3334,7 @@ function requireFillRange () {
3330
3334
  if (hasRequiredFillRange) return fillRange;
3331
3335
  hasRequiredFillRange = 1;
3332
3336
 
3333
- const util = require$$2;
3337
+ const util = require$$0$2;
3334
3338
  const toRegexRange = requireToRegexRange();
3335
3339
 
3336
3340
  const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
@@ -4716,9 +4720,9 @@ function requireNodefsHandler () {
4716
4720
  if (hasRequiredNodefsHandler) return nodefsHandler;
4717
4721
  hasRequiredNodefsHandler = 1;
4718
4722
 
4719
- const fs = require$$0$2;
4723
+ const fs = require$$0__default;
4720
4724
  const sysPath = require$$0$1;
4721
- const { promisify } = require$$2;
4725
+ const { promisify } = require$$0$2;
4722
4726
  const isBinaryPath = requireIsBinaryPath();
4723
4727
  const {
4724
4728
  isWindows,
@@ -5375,9 +5379,9 @@ function requireFseventsHandler () {
5375
5379
  if (hasRequiredFseventsHandler) return fseventsHandler.exports;
5376
5380
  hasRequiredFseventsHandler = 1;
5377
5381
 
5378
- const fs = require$$0$2;
5382
+ const fs = require$$0__default;
5379
5383
  const sysPath = require$$0$1;
5380
- const { promisify } = require$$2;
5384
+ const { promisify } = require$$0$2;
5381
5385
 
5382
5386
  let fsevents;
5383
5387
  try {
@@ -5909,9 +5913,9 @@ function requireChokidar () {
5909
5913
  hasRequiredChokidar = 1;
5910
5914
 
5911
5915
  const { EventEmitter } = require$$0$4;
5912
- const fs = require$$0$2;
5916
+ const fs = require$$0__default;
5913
5917
  const sysPath = require$$0$1;
5914
- const { promisify } = require$$2;
5918
+ const { promisify } = require$$0$2;
5915
5919
  const readdirp = requireReaddirp();
5916
5920
  const anymatch = requireAnymatch().default;
5917
5921
  const globParent = requireGlobParent();
@@ -1,5 +1,9 @@
1
1
  import { createRequire as __tungstenCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __tungstenFileURLToPath } from 'node:url';
3
+ import { dirname as __tungstenDirname } from 'node:path';
2
4
  const require = __tungstenCreateRequire(import.meta.url);
5
+ const __filename = __tungstenFileURLToPath(import.meta.url);
6
+ const __dirname = __tungstenDirname(__filename);
3
7
  var lib = {};
4
8
 
5
9
  var hasRequiredLib;
@@ -1,5 +1,9 @@
1
1
  import { createRequire as __tungstenCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __tungstenFileURLToPath } from 'node:url';
3
+ import { dirname as __tungstenDirname } from 'node:path';
2
4
  const require = __tungstenCreateRequire(import.meta.url);
5
+ const __filename = __tungstenFileURLToPath(import.meta.url);
6
+ const __dirname = __tungstenDirname(__filename);
3
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
8
 
5
9
  function getAugmentedNamespace(n) {
@@ -0,0 +1,15 @@
1
+ import { createRequire as __tungstenCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __tungstenFileURLToPath } from 'node:url';
3
+ import { dirname as __tungstenDirname } from 'node:path';
4
+ const require = __tungstenCreateRequire(import.meta.url);
5
+ const __filename = __tungstenFileURLToPath(import.meta.url);
6
+ const __dirname = __tungstenDirname(__filename);
7
+ import { createRequire } from 'node:module';
8
+
9
+ const require$2 = createRequire(import.meta.url);
10
+ function __require$1() { return require$2("node:path"); }
11
+
12
+ const require$1 = createRequire(import.meta.url);
13
+ function __require() { return require$1("node:fs"); }
14
+
15
+ export { __require$1 as _, __require as a };
@@ -1,5 +1,9 @@
1
1
  import { createRequire as __tungstenCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __tungstenFileURLToPath } from 'node:url';
3
+ import { dirname as __tungstenDirname } from 'node:path';
2
4
  const require = __tungstenCreateRequire(import.meta.url);
5
+ const __filename = __tungstenFileURLToPath(import.meta.url);
6
+ const __dirname = __tungstenDirname(__filename);
3
7
  var lib = {};
4
8
 
5
9
  var hasRequiredLib;
@@ -0,0 +1,179 @@
1
+ import { createRequire as __tungstenCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __tungstenFileURLToPath } from 'node:url';
3
+ import { dirname as __tungstenDirname } from 'node:path';
4
+ const require = __tungstenCreateRequire(import.meta.url);
5
+ const __filename = __tungstenFileURLToPath(import.meta.url);
6
+ const __dirname = __tungstenDirname(__filename);
7
+ // src/vlq.ts
8
+ var comma = ",".charCodeAt(0);
9
+ var semicolon = ";".charCodeAt(0);
10
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
11
+ var intToChar = new Uint8Array(64);
12
+ var charToInt = new Uint8Array(128);
13
+ for (let i = 0; i < chars.length; i++) {
14
+ const c = chars.charCodeAt(i);
15
+ intToChar[i] = c;
16
+ charToInt[c] = i;
17
+ }
18
+ function decodeInteger(reader, relative) {
19
+ let value = 0;
20
+ let shift = 0;
21
+ let integer = 0;
22
+ do {
23
+ const c = reader.next();
24
+ integer = charToInt[c];
25
+ value |= (integer & 31) << shift;
26
+ shift += 5;
27
+ } while (integer & 32);
28
+ const shouldNegate = value & 1;
29
+ value >>>= 1;
30
+ if (shouldNegate) {
31
+ value = -2147483648 | -value;
32
+ }
33
+ return relative + value;
34
+ }
35
+ function encodeInteger(builder, num, relative) {
36
+ let delta = num - relative;
37
+ delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
38
+ do {
39
+ let clamped = delta & 31;
40
+ delta >>>= 5;
41
+ if (delta > 0) clamped |= 32;
42
+ builder.write(intToChar[clamped]);
43
+ } while (delta > 0);
44
+ return num;
45
+ }
46
+ function hasMoreVlq(reader, max) {
47
+ if (reader.pos >= max) return false;
48
+ return reader.peek() !== comma;
49
+ }
50
+
51
+ // src/strings.ts
52
+ var bufLength = 1024 * 16;
53
+ var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
54
+ decode(buf) {
55
+ const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
56
+ return out.toString();
57
+ }
58
+ } : {
59
+ decode(buf) {
60
+ let out = "";
61
+ for (let i = 0; i < buf.length; i++) {
62
+ out += String.fromCharCode(buf[i]);
63
+ }
64
+ return out;
65
+ }
66
+ };
67
+ var StringWriter = class {
68
+ constructor() {
69
+ this.pos = 0;
70
+ this.out = "";
71
+ this.buffer = new Uint8Array(bufLength);
72
+ }
73
+ write(v) {
74
+ const { buffer } = this;
75
+ buffer[this.pos++] = v;
76
+ if (this.pos === bufLength) {
77
+ this.out += td.decode(buffer);
78
+ this.pos = 0;
79
+ }
80
+ }
81
+ flush() {
82
+ const { buffer, out, pos } = this;
83
+ return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
84
+ }
85
+ };
86
+ var StringReader = class {
87
+ constructor(buffer) {
88
+ this.pos = 0;
89
+ this.buffer = buffer;
90
+ }
91
+ next() {
92
+ return this.buffer.charCodeAt(this.pos++);
93
+ }
94
+ peek() {
95
+ return this.buffer.charCodeAt(this.pos);
96
+ }
97
+ indexOf(char) {
98
+ const { buffer, pos } = this;
99
+ const idx = buffer.indexOf(char, pos);
100
+ return idx === -1 ? buffer.length : idx;
101
+ }
102
+ };
103
+
104
+ // src/sourcemap-codec.ts
105
+ function decode(mappings) {
106
+ const { length } = mappings;
107
+ const reader = new StringReader(mappings);
108
+ const decoded = [];
109
+ let genColumn = 0;
110
+ let sourcesIndex = 0;
111
+ let sourceLine = 0;
112
+ let sourceColumn = 0;
113
+ let namesIndex = 0;
114
+ do {
115
+ const semi = reader.indexOf(";");
116
+ const line = [];
117
+ let sorted = true;
118
+ let lastCol = 0;
119
+ genColumn = 0;
120
+ while (reader.pos < semi) {
121
+ let seg;
122
+ genColumn = decodeInteger(reader, genColumn);
123
+ if (genColumn < lastCol) sorted = false;
124
+ lastCol = genColumn;
125
+ if (hasMoreVlq(reader, semi)) {
126
+ sourcesIndex = decodeInteger(reader, sourcesIndex);
127
+ sourceLine = decodeInteger(reader, sourceLine);
128
+ sourceColumn = decodeInteger(reader, sourceColumn);
129
+ if (hasMoreVlq(reader, semi)) {
130
+ namesIndex = decodeInteger(reader, namesIndex);
131
+ seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
132
+ } else {
133
+ seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
134
+ }
135
+ } else {
136
+ seg = [genColumn];
137
+ }
138
+ line.push(seg);
139
+ reader.pos++;
140
+ }
141
+ if (!sorted) sort(line);
142
+ decoded.push(line);
143
+ reader.pos = semi + 1;
144
+ } while (reader.pos <= length);
145
+ return decoded;
146
+ }
147
+ function sort(line) {
148
+ line.sort(sortComparator);
149
+ }
150
+ function sortComparator(a, b) {
151
+ return a[0] - b[0];
152
+ }
153
+ function encode(decoded) {
154
+ const writer = new StringWriter();
155
+ let sourcesIndex = 0;
156
+ let sourceLine = 0;
157
+ let sourceColumn = 0;
158
+ let namesIndex = 0;
159
+ for (let i = 0; i < decoded.length; i++) {
160
+ const line = decoded[i];
161
+ if (i > 0) writer.write(semicolon);
162
+ if (line.length === 0) continue;
163
+ let genColumn = 0;
164
+ for (let j = 0; j < line.length; j++) {
165
+ const segment = line[j];
166
+ if (j > 0) writer.write(comma);
167
+ genColumn = encodeInteger(writer, segment[0], genColumn);
168
+ if (segment.length === 1) continue;
169
+ sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
170
+ sourceLine = encodeInteger(writer, segment[2], sourceLine);
171
+ sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
172
+ if (segment.length === 4) continue;
173
+ namesIndex = encodeInteger(writer, segment[4], namesIndex);
174
+ }
175
+ }
176
+ return writer.flush();
177
+ }
178
+
179
+ export { decode as d, encode as e };
@@ -0,0 +1,167 @@
1
+ import { createRequire as __tungstenCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __tungstenFileURLToPath } from 'node:url';
3
+ import { dirname as __tungstenDirname } from 'node:path';
4
+ const require = __tungstenCreateRequire(import.meta.url);
5
+ const __filename = __tungstenFileURLToPath(import.meta.url);
6
+ const __dirname = __tungstenDirname(__filename);
7
+ var colorName;
8
+ var hasRequiredColorName;
9
+
10
+ function requireColorName () {
11
+ if (hasRequiredColorName) return colorName;
12
+ hasRequiredColorName = 1;
13
+
14
+ colorName = {
15
+ "aliceblue": [240, 248, 255],
16
+ "antiquewhite": [250, 235, 215],
17
+ "aqua": [0, 255, 255],
18
+ "aquamarine": [127, 255, 212],
19
+ "azure": [240, 255, 255],
20
+ "beige": [245, 245, 220],
21
+ "bisque": [255, 228, 196],
22
+ "black": [0, 0, 0],
23
+ "blanchedalmond": [255, 235, 205],
24
+ "blue": [0, 0, 255],
25
+ "blueviolet": [138, 43, 226],
26
+ "brown": [165, 42, 42],
27
+ "burlywood": [222, 184, 135],
28
+ "cadetblue": [95, 158, 160],
29
+ "chartreuse": [127, 255, 0],
30
+ "chocolate": [210, 105, 30],
31
+ "coral": [255, 127, 80],
32
+ "cornflowerblue": [100, 149, 237],
33
+ "cornsilk": [255, 248, 220],
34
+ "crimson": [220, 20, 60],
35
+ "cyan": [0, 255, 255],
36
+ "darkblue": [0, 0, 139],
37
+ "darkcyan": [0, 139, 139],
38
+ "darkgoldenrod": [184, 134, 11],
39
+ "darkgray": [169, 169, 169],
40
+ "darkgreen": [0, 100, 0],
41
+ "darkgrey": [169, 169, 169],
42
+ "darkkhaki": [189, 183, 107],
43
+ "darkmagenta": [139, 0, 139],
44
+ "darkolivegreen": [85, 107, 47],
45
+ "darkorange": [255, 140, 0],
46
+ "darkorchid": [153, 50, 204],
47
+ "darkred": [139, 0, 0],
48
+ "darksalmon": [233, 150, 122],
49
+ "darkseagreen": [143, 188, 143],
50
+ "darkslateblue": [72, 61, 139],
51
+ "darkslategray": [47, 79, 79],
52
+ "darkslategrey": [47, 79, 79],
53
+ "darkturquoise": [0, 206, 209],
54
+ "darkviolet": [148, 0, 211],
55
+ "deeppink": [255, 20, 147],
56
+ "deepskyblue": [0, 191, 255],
57
+ "dimgray": [105, 105, 105],
58
+ "dimgrey": [105, 105, 105],
59
+ "dodgerblue": [30, 144, 255],
60
+ "firebrick": [178, 34, 34],
61
+ "floralwhite": [255, 250, 240],
62
+ "forestgreen": [34, 139, 34],
63
+ "fuchsia": [255, 0, 255],
64
+ "gainsboro": [220, 220, 220],
65
+ "ghostwhite": [248, 248, 255],
66
+ "gold": [255, 215, 0],
67
+ "goldenrod": [218, 165, 32],
68
+ "gray": [128, 128, 128],
69
+ "green": [0, 128, 0],
70
+ "greenyellow": [173, 255, 47],
71
+ "grey": [128, 128, 128],
72
+ "honeydew": [240, 255, 240],
73
+ "hotpink": [255, 105, 180],
74
+ "indianred": [205, 92, 92],
75
+ "indigo": [75, 0, 130],
76
+ "ivory": [255, 255, 240],
77
+ "khaki": [240, 230, 140],
78
+ "lavender": [230, 230, 250],
79
+ "lavenderblush": [255, 240, 245],
80
+ "lawngreen": [124, 252, 0],
81
+ "lemonchiffon": [255, 250, 205],
82
+ "lightblue": [173, 216, 230],
83
+ "lightcoral": [240, 128, 128],
84
+ "lightcyan": [224, 255, 255],
85
+ "lightgoldenrodyellow": [250, 250, 210],
86
+ "lightgray": [211, 211, 211],
87
+ "lightgreen": [144, 238, 144],
88
+ "lightgrey": [211, 211, 211],
89
+ "lightpink": [255, 182, 193],
90
+ "lightsalmon": [255, 160, 122],
91
+ "lightseagreen": [32, 178, 170],
92
+ "lightskyblue": [135, 206, 250],
93
+ "lightslategray": [119, 136, 153],
94
+ "lightslategrey": [119, 136, 153],
95
+ "lightsteelblue": [176, 196, 222],
96
+ "lightyellow": [255, 255, 224],
97
+ "lime": [0, 255, 0],
98
+ "limegreen": [50, 205, 50],
99
+ "linen": [250, 240, 230],
100
+ "magenta": [255, 0, 255],
101
+ "maroon": [128, 0, 0],
102
+ "mediumaquamarine": [102, 205, 170],
103
+ "mediumblue": [0, 0, 205],
104
+ "mediumorchid": [186, 85, 211],
105
+ "mediumpurple": [147, 112, 219],
106
+ "mediumseagreen": [60, 179, 113],
107
+ "mediumslateblue": [123, 104, 238],
108
+ "mediumspringgreen": [0, 250, 154],
109
+ "mediumturquoise": [72, 209, 204],
110
+ "mediumvioletred": [199, 21, 133],
111
+ "midnightblue": [25, 25, 112],
112
+ "mintcream": [245, 255, 250],
113
+ "mistyrose": [255, 228, 225],
114
+ "moccasin": [255, 228, 181],
115
+ "navajowhite": [255, 222, 173],
116
+ "navy": [0, 0, 128],
117
+ "oldlace": [253, 245, 230],
118
+ "olive": [128, 128, 0],
119
+ "olivedrab": [107, 142, 35],
120
+ "orange": [255, 165, 0],
121
+ "orangered": [255, 69, 0],
122
+ "orchid": [218, 112, 214],
123
+ "palegoldenrod": [238, 232, 170],
124
+ "palegreen": [152, 251, 152],
125
+ "paleturquoise": [175, 238, 238],
126
+ "palevioletred": [219, 112, 147],
127
+ "papayawhip": [255, 239, 213],
128
+ "peachpuff": [255, 218, 185],
129
+ "peru": [205, 133, 63],
130
+ "pink": [255, 192, 203],
131
+ "plum": [221, 160, 221],
132
+ "powderblue": [176, 224, 230],
133
+ "purple": [128, 0, 128],
134
+ "rebeccapurple": [102, 51, 153],
135
+ "red": [255, 0, 0],
136
+ "rosybrown": [188, 143, 143],
137
+ "royalblue": [65, 105, 225],
138
+ "saddlebrown": [139, 69, 19],
139
+ "salmon": [250, 128, 114],
140
+ "sandybrown": [244, 164, 96],
141
+ "seagreen": [46, 139, 87],
142
+ "seashell": [255, 245, 238],
143
+ "sienna": [160, 82, 45],
144
+ "silver": [192, 192, 192],
145
+ "skyblue": [135, 206, 235],
146
+ "slateblue": [106, 90, 205],
147
+ "slategray": [112, 128, 144],
148
+ "slategrey": [112, 128, 144],
149
+ "snow": [255, 250, 250],
150
+ "springgreen": [0, 255, 127],
151
+ "steelblue": [70, 130, 180],
152
+ "tan": [210, 180, 140],
153
+ "teal": [0, 128, 128],
154
+ "thistle": [216, 191, 216],
155
+ "tomato": [255, 99, 71],
156
+ "turquoise": [64, 224, 208],
157
+ "violet": [238, 130, 238],
158
+ "wheat": [245, 222, 179],
159
+ "white": [255, 255, 255],
160
+ "whitesmoke": [245, 245, 245],
161
+ "yellow": [255, 255, 0],
162
+ "yellowgreen": [154, 205, 50]
163
+ };
164
+ return colorName;
165
+ }
166
+
167
+ export { requireColorName as r };