Browse Source

v1版本

master
dong 1 month ago
parent
commit
f5235e078a
100 changed files with 7552 additions and 96 deletions
  1. 15
    16
      api/index.js
  2. 420
    13
      app.js
  3. 26
    17
      app.json
  4. 8
    0
      app.wxss
  5. 2
    2
      miniprogram_npm/call-bind/index.js
  6. 2
    2
      miniprogram_npm/define-data-property/index.js
  7. 2
    2
      miniprogram_npm/es-define-property/index.js
  8. 2
    2
      miniprogram_npm/es-errors/index.js
  9. 4
    4
      miniprogram_npm/function-bind/index.js
  10. 2
    2
      miniprogram_npm/get-intrinsic/index.js
  11. 2
    2
      miniprogram_npm/gopd/index.js
  12. 2
    2
      miniprogram_npm/has-property-descriptors/index.js
  13. 2
    2
      miniprogram_npm/has-proto/index.js
  14. 4
    4
      miniprogram_npm/has-symbols/index.js
  15. 2
    2
      miniprogram_npm/hasown/index.js
  16. 2
    2
      miniprogram_npm/moment/index.js
  17. 4
    4
      miniprogram_npm/object-inspect/index.js
  18. 10
    10
      miniprogram_npm/qs/index.js
  19. 2
    2
      miniprogram_npm/set-function-length/index.js
  20. 2
    2
      miniprogram_npm/side-channel/index.js
  21. 1
    1
      miniprogram_npm/tdesign-miniprogram/calendar/calendar.wxss
  22. 2
    2
      miniprogram_npm/tdesign-miniprogram/textarea/textarea.wxss
  23. 16
    0
      node_modules/.bin/baseline-browser-mapping
  24. 17
    0
      node_modules/.bin/baseline-browser-mapping.cmd
  25. 28
    0
      node_modules/.bin/baseline-browser-mapping.ps1
  26. 16
    0
      node_modules/.bin/browserslist
  27. 17
    0
      node_modules/.bin/browserslist.cmd
  28. 28
    0
      node_modules/.bin/browserslist.ps1
  29. 16
    0
      node_modules/.bin/jsesc
  30. 17
    0
      node_modules/.bin/jsesc.cmd
  31. 28
    0
      node_modules/.bin/jsesc.ps1
  32. 16
    0
      node_modules/.bin/json5
  33. 17
    0
      node_modules/.bin/json5.cmd
  34. 28
    0
      node_modules/.bin/json5.ps1
  35. 16
    0
      node_modules/.bin/parser
  36. 17
    0
      node_modules/.bin/parser.cmd
  37. 28
    0
      node_modules/.bin/parser.ps1
  38. 16
    0
      node_modules/.bin/semver
  39. 17
    0
      node_modules/.bin/semver.cmd
  40. 28
    0
      node_modules/.bin/semver.ps1
  41. 16
    0
      node_modules/.bin/update-browserslist-db
  42. 17
    0
      node_modules/.bin/update-browserslist-db.cmd
  43. 28
    0
      node_modules/.bin/update-browserslist-db.ps1
  44. 632
    1
      node_modules/.package-lock.json
  45. 22
    0
      node_modules/@babel/code-frame/LICENSE
  46. 19
    0
      node_modules/@babel/code-frame/README.md
  47. 216
    0
      node_modules/@babel/code-frame/lib/index.js
  48. 1
    0
      node_modules/@babel/code-frame/lib/index.js.map
  49. 31
    0
      node_modules/@babel/code-frame/package.json
  50. 22
    0
      node_modules/@babel/compat-data/LICENSE
  51. 19
    0
      node_modules/@babel/compat-data/README.md
  52. 2
    0
      node_modules/@babel/compat-data/corejs2-built-ins.js
  53. 2
    0
      node_modules/@babel/compat-data/corejs3-shipped-proposals.js
  54. 2106
    0
      node_modules/@babel/compat-data/data/corejs2-built-ins.json
  55. 5
    0
      node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json
  56. 18
    0
      node_modules/@babel/compat-data/data/native-modules.json
  57. 35
    0
      node_modules/@babel/compat-data/data/overlapping-plugins.json
  58. 203
    0
      node_modules/@babel/compat-data/data/plugin-bugfixes.json
  59. 838
    0
      node_modules/@babel/compat-data/data/plugins.json
  60. 2
    0
      node_modules/@babel/compat-data/native-modules.js
  61. 2
    0
      node_modules/@babel/compat-data/overlapping-plugins.js
  62. 40
    0
      node_modules/@babel/compat-data/package.json
  63. 2
    0
      node_modules/@babel/compat-data/plugin-bugfixes.js
  64. 2
    0
      node_modules/@babel/compat-data/plugins.js
  65. 22
    0
      node_modules/@babel/core/LICENSE
  66. 19
    0
      node_modules/@babel/core/README.md
  67. 5
    0
      node_modules/@babel/core/lib/config/cache-contexts.js
  68. 1
    0
      node_modules/@babel/core/lib/config/cache-contexts.js.map
  69. 261
    0
      node_modules/@babel/core/lib/config/caching.js
  70. 1
    0
      node_modules/@babel/core/lib/config/caching.js.map
  71. 469
    0
      node_modules/@babel/core/lib/config/config-chain.js
  72. 1
    0
      node_modules/@babel/core/lib/config/config-chain.js.map
  73. 190
    0
      node_modules/@babel/core/lib/config/config-descriptors.js
  74. 1
    0
      node_modules/@babel/core/lib/config/config-descriptors.js.map
  75. 290
    0
      node_modules/@babel/core/lib/config/files/configuration.js
  76. 1
    0
      node_modules/@babel/core/lib/config/files/configuration.js.map
  77. 6
    0
      node_modules/@babel/core/lib/config/files/import.cjs
  78. 1
    0
      node_modules/@babel/core/lib/config/files/import.cjs.map
  79. 58
    0
      node_modules/@babel/core/lib/config/files/index-browser.js
  80. 1
    0
      node_modules/@babel/core/lib/config/files/index-browser.js.map
  81. 78
    0
      node_modules/@babel/core/lib/config/files/index.js
  82. 1
    0
      node_modules/@babel/core/lib/config/files/index.js.map
  83. 211
    0
      node_modules/@babel/core/lib/config/files/module-types.js
  84. 1
    0
      node_modules/@babel/core/lib/config/files/module-types.js.map
  85. 61
    0
      node_modules/@babel/core/lib/config/files/package.js
  86. 1
    0
      node_modules/@babel/core/lib/config/files/package.js.map
  87. 230
    0
      node_modules/@babel/core/lib/config/files/plugins.js
  88. 1
    0
      node_modules/@babel/core/lib/config/files/plugins.js.map
  89. 5
    0
      node_modules/@babel/core/lib/config/files/types.js
  90. 1
    0
      node_modules/@babel/core/lib/config/files/types.js.map
  91. 36
    0
      node_modules/@babel/core/lib/config/files/utils.js
  92. 1
    0
      node_modules/@babel/core/lib/config/files/utils.js.map
  93. 312
    0
      node_modules/@babel/core/lib/config/full.js
  94. 1
    0
      node_modules/@babel/core/lib/config/full.js.map
  95. 84
    0
      node_modules/@babel/core/lib/config/helpers/config-api.js
  96. 1
    0
      node_modules/@babel/core/lib/config/helpers/config-api.js.map
  97. 23
    0
      node_modules/@babel/core/lib/config/helpers/deep-array.js
  98. 1
    0
      node_modules/@babel/core/lib/config/helpers/deep-array.js.map
  99. 12
    0
      node_modules/@babel/core/lib/config/helpers/environment.js
  100. 0
    0
      node_modules/@babel/core/lib/config/helpers/environment.js.map

+ 15
- 16
api/index.js View File

@@ -1,9 +1,8 @@
1 1
 // api.jshttp://zlink.bjdexn.cn
2
-// const baseUrl = 'http://192.168.8.187:9999';  // 替换为您的接口基础 URL
3
-const esosUrl = 'https://esos-iot.bjdexn.cn';  // 线上
4
-const baseUrl = 'https://esos-iot.bjdexn.cn:8443';  // 线上
5
-
6
-// const baseUrl = 'http://192.168.8.105:8888';  // 替换为您的接口基础 URL
2
+// const baseUrl = 'http://192.168.8.102:8088';  // 替换为您的接口基础 URL
3
+const esosUrl = 'https://esos-iot.com';  // 线上
4
+// const baseUrl = 'http://192.168.8.33:8886';  // 线上
5
+const baseUrl = 'https://esos-iot.com:9442';  // 替换为您的接口基础 URL
7 6
 //  
8 7
 // 封装网络请求方法 
9 8
 // isPublic: true  不检验token
@@ -17,7 +16,7 @@ function request(url, method, data, options = {}) {
17 16
     const header = {
18 17
       'Content-Type': 'application/x-www-form-urlencoded'
19 18
     };
20
-
19
+// 
21 20
     // 非公共接口需携带 Token
22 21
     if (!isPublic) {
23 22
       const token = wx.getStorageSync('token');
@@ -25,11 +24,11 @@ function request(url, method, data, options = {}) {
25 24
         header['Authorization'] = `Bearer ${token}`;
26 25
       } else {
27 26
         redirectToLogin('请先登录');
28
-        reject({ code: 401, message: '未找到认证 Token' });
27
+        reject({ code: 401, msg: '未找到认证 Token' });
29 28
         return;
30 29
       }
31 30
     }
32
-
31
+//  
33 32
     wx.request({
34 33
       url: rootUrl + url,
35 34
       header,
@@ -38,7 +37,7 @@ function request(url, method, data, options = {}) {
38 37
       success: (res) => {
39 38
         console.log(res);
40 39
         // Token 失效或未授权
41
-        if ([320, 400, 401, 403].includes(res.statusCode)) {
40
+        if ([320, 400, 401, 403].includes(res.data.code)) {
42 41
           handleTokenInvalid(res.data.msg || '登录已过期');
43 42
           reject(res.data);
44 43
           return;
@@ -48,7 +47,7 @@ function request(url, method, data, options = {}) {
48 47
         if (res.statusCode === 200||res.data.code==0) {
49 48
           res.data.code === 200||res.data.code === 0 ? resolve(res.data) : reject(res.data);
50 49
         } else {
51
-          reject(res.data.msg || { code: res.statusCode, message: '请求异常' });
50
+          reject(res.data.msg || { code: res.statusCode, msg: '请求异常' });
52 51
         }
53 52
       },
54 53
       fail: (err) => {
@@ -61,22 +60,22 @@ function request(url, method, data, options = {}) {
61 60
 }
62 61
 
63 62
 // 跳转到登录页
64
-function redirectToLogin(message = '') {
63
+function redirectToLogin(msg = '') {
65 64
   wx.clearStorageSync();
66 65
   const pages = getCurrentPages();
67 66
   const currentRoute = pages[pages.length - 1]?.route || '';
68 67
 
69 68
   // 避免重复跳转
70
-  if (!currentRoute.includes('pages/login/index')) {
71
-    wx.showToast({ title: message, icon: 'none' });
69
+  if (!currentRoute.includes('/pages/login/index')) {
70
+    wx.showToast({ title: msg, icon: 'none' });
72 71
     wx.reLaunch({ url: '/pages/login/index' });
73 72
   }
74 73
 }
75 74
 
76 75
 // 处理 Token 失效
77
-function handleTokenInvalid(message) {
78
-  console.warn('Token 失效:', message);
79
-  redirectToLogin(message || '请重新登录');
76
+function handleTokenInvalid(msg) {
77
+  console.warn('Token 失效:', msg);
78
+  redirectToLogin(msg || '请重新登录');
80 79
 }
81 80
 // 导出封装的请求方法
82 81
 module.exports = {

+ 420
- 13
app.js View File

@@ -1,20 +1,427 @@
1 1
 // app.js
2
+const api = require('./api/index.js'); // 注意路径
2 3
 App({
4
+  globalData: {
5
+    socketTask: null,
6
+    isConnected: false,
7
+    reconnectTimer: null,
8
+    heartbeatTimer: null,
9
+    currentWorkorderId: '',
10
+    userInfo: wx.getStorageSync('user') || {}
11
+
12
+  },
13
+
3 14
   onLaunch() {
4
-    // 展示本地存储能力
5
-    const logs = wx.getStorageSync('logs') || []
6
-    logs.unshift(Date.now())
7
-    wx.setStorageSync('logs', logs)
8
-
9
-    // 登录
10
-    wx.login({
11
-      success: res => {
12
-        // 发送 res.code 到后台换取 openId, sessionKey, unionId
15
+    // wx.setStorageSync('user', { userId: 'driver_1001', operationRole: 4 }); 
16
+    
17
+
18
+ this.initWebSocketService();
19
+
20
+    wx.onAppShow(() => this.handleAppShow());
21
+    wx.onAppHide(() => this.handleAppHide());
22
+    this.locationService = {
23
+      isTracking: false,
24
+      currentWorkorderId: '', // 存储当前跟踪的工单ID
25
+      isLocationUpdateStarted: false // 标记是否已启动定位服务
26
+    };
27
+  },
28
+ 
29
+  initWebSocketService() {
30
+    if (!this.wsService) {
31
+      this.wsService = {
32
+        connect: (url) => {
33
+          const that = this;
34
+          if (that.globalData.socketTask) {
35
+            that.wsService.close();
36
+          }
37
+
38
+          console.log('正在连接WebSocket:', url);
39
+          const socketTask = wx.connectSocket({ url, header: { 'content-type': 'application/json' } });
40
+
41
+          socketTask.onOpen(() => {
42
+            console.log('WebSocket 连接成功');
43
+            that.globalData.isConnected = true;
44
+            that.globalData.socketTask = socketTask;
45
+            that.clearReconnectTimer();
46
+            // that.startHeartbeat();
47
+            if (that.globalData.currentWorkorderId) {
48
+              that.wsService.send({ type: 'subscribe', workorderId: that.globalData.currentWorkorderId });
49
+            }
50
+            wx.$emit('socketOpen');
51
+          });
52
+
53
+          socketTask.onMessage((res) => {
54
+            try {
55
+              console.log(res);
56
+              const message = JSON.parse(res.data);
57
+              console.log('收到消息:', message);
58
+              wx.$emit('wsMessage', message);
59
+            } catch (err) { console.error('消息解析失败', err); }
60
+          });
61
+
62
+          socketTask.onClose((res) => {
63
+            console.log('WebSocket 连接关闭, 状态码:', res.code);
64
+            that.globalData.isConnected = false;
65
+            that.globalData.socketTask = null;
66
+            that.stopHeartbeat();
67
+            wx.$emit('socketClose');
68
+            if (res.code !== 1000) { that.startReconnect(); }
69
+          });
70
+
71
+          socketTask.onError((err) => {
72
+            console.error('WebSocket 连接错误:', err);
73
+            that.globalData.isConnected = false;
74
+            that.globalData.socketTask = null;
75
+            that.stopHeartbeat();
76
+            wx.$emit('socketError', err);
77
+          });
78
+        },
79
+
80
+        send: (data) => {
81
+          const that = this;
82
+          if (that.globalData.isConnected && that.globalData.socketTask) {
83
+            try {
84
+              that.globalData.socketTask.send({
85
+                data: JSON.stringify(data),
86
+                fail: (err) => {
87
+                  console.error('消息发送失败:', err);
88
+                  wx.showToast({ title: '消息发送失败', icon: 'none' });
89
+                }
90
+              });
91
+            } catch (e) { console.error('消息序列化失败:', e); }
92
+          } else {
93
+            console.warn('WebSocket 未连接');
94
+            wx.showToast({ title: '网络连接中...', icon: 'none' });
95
+          }
96
+        },
97
+
98
+        close: (code = 1000, reason = 'normal close') => {
99
+          const that = this;
100
+          if (that.globalData.socketTask) {
101
+            console.log(`关闭WebSocket连接: ${code} - ${reason}`);
102
+            that.globalData.socketTask.close({ code, reason });
103
+          }
104
+        }
105
+      };
106
+    }
107
+  },
108
+
109
+  handleAppShow() {
110
+    const that = this;
111
+    console.log(!that.globalData.isConnected);
112
+    console.log(!that.globalData.reconnectTimer);
113
+    if (!that.globalData.isConnected && !that.globalData.reconnectTimer) {
114
+      const partnerId = that.globalData.userInfo;
115
+      console.log(partnerId);
116
+      // 修复:startReconnect 中用了 partnerId,这里统一字段
117
+      if (!partnerId) {
118
+        console.error('用户partnerId不存在,无法连接WebSocket');
119
+        return;
120
+      }
121
+      const wsUrl = `wss://esos-iot.com:9443/communication/update/${partnerId.partnerId}`;
122
+      that.wsService.connect(wsUrl);
123
+    }
124
+  },
125
+  
126
+  handleAppHide() {
127
+    // 可以选择在后台关闭连接
128
+    // this.wsService.close(1001, 'app enter background');
129
+  },
130
+
131
+  startHeartbeat() {
132
+    const that = this;
133
+    that.stopHeartbeat();
134
+    that.heartbeatTimer = setInterval(() => {
135
+      if (that.globalData.isConnected) {
136
+        that.wsService.send({ type: 'heartbeat', timestamp: Date.now() });
137
+      }
138
+    }, 5000);
139
+  },
140
+
141
+  stopHeartbeat() {
142
+    if (this.heartbeatTimer) {
143
+      clearInterval(this.heartbeatTimer);
144
+      this.heartbeatTimer = null;
145
+    }
146
+  },
147
+
148
+  startReconnect() {
149
+    const that = this;
150
+    that.clearReconnectTimer();
151
+    let delay = 1000;
152
+    that.globalData.reconnectTimer = setInterval(() => {
153
+      if (!that.globalData.isConnected) {
154
+        console.log(`尝试重连 in ${delay}ms...`);
155
+        const partnerId = that.globalData.userInfo; // 修复:用 partnerId 而非 userId
156
+      console.log(partnerId);
157
+
158
+        if (partnerId) {
159
+          const wsUrl = `wss://esos-iot.com:9443/communication/update/${partnerId.partnerId}`;
160
+          that.wsService.connect(wsUrl);
161
+        }
162
+        delay = Math.min(delay * 2, 8000);
163
+      } else {
164
+        that.clearReconnectTimer();
13 165
       }
14
-    })
166
+    }, delay);
167
+  },
168
+
169
+  clearReconnectTimer() {
170
+    if (this.globalData.reconnectTimer) {
171
+      clearInterval(this.globalData.reconnectTimer);
172
+      this.globalData.reconnectTimer = null;
173
+    }
174
+  },
175
+
176
+  /**
177
+   * 司机端开始后台定位并上传(单工单)
178
+   * @param {string} workorderId - 当前工单ID
179
+   */
180
+  startDriverLocationUpload(workorderId) {
181
+    const service = this.locationService;
182
+
183
+    // 入参校验
184
+    if (!workorderId) {
185
+      console.error('工单ID不能为空');
186
+      wx.showToast({ title: '工单ID异常', icon: 'none' });
187
+      return;
188
+    }
189
+
190
+    // 如果已经在为当前工单上传,则忽略
191
+    if (service.isTracking && service.currentWorkorderId === workorderId) {
192
+      console.log(`已经在为工单 ${workorderId} 上传位置`);
193
+      return;
194
+    }
195
+
196
+    // 如果已经在为其他工单上传,先停止
197
+    if (service.isTracking && service.currentWorkorderId !== workorderId) {
198
+      console.log(`当前正在为工单 ${service.currentWorkorderId} 上传,切换到 ${workorderId},先停止旧定位`);
199
+      this.stopDriverLocationUpload();
200
+    }
201
+
202
+    // 权限校验
203
+    wx.getSetting({
204
+      success: (res) => {
205
+        if (!res.authSetting['scope.userLocationBackground']) {
206
+          wx.authorize({
207
+            scope: 'scope.userLocationBackground',
208
+            success: () => {
209
+              this._doStartLocationUpload(workorderId, service);
210
+            },
211
+            fail: () => {
212
+              wx.showModal({
213
+                title: '权限不足',
214
+                content: '需要开启后台定位权限才能实时上传位置,请前往设置页开启',
215
+                confirmText: '去设置',
216
+                success: (modalRes) => {
217
+                  if (modalRes.confirm) {
218
+                    wx.openSetting({
219
+                      success: (settingRes) => {
220
+                        if (settingRes.authSetting['scope.userLocationBackground']) {
221
+                          this._doStartLocationUpload(workorderId, service);
222
+                        }
223
+                      }
224
+                    });
225
+                  }
226
+                }
227
+              });
228
+            } 
229
+          });
230
+        } else {
231
+          this._doStartLocationUpload(workorderId, service);
232
+        }
233
+      }
234
+    });
235
+  },
236
+
237
+  /**
238
+   * 私有方法:执行真正的定位启动逻辑(核心修复:兼容低版本,改用 wx.onLocationChange)
239
+   */
15 240
  
241
+  _doStartLocationUpload(workorderId, service) {
242
+    console.log(`开始为工单 ${workorderId} 启动后台定位上传...`);
243
+    service.currentWorkorderId = workorderId;
244
+
245
+    // 修复1:先移除旧的定位监听(防止重复监听)
246
+    this._removeLocationListener();
247
+
248
+    // 修复2:启动后台定位(兼容低版本,用 startLocationUpdate 兜底)
249
+    const startLocationApi = wx.startLocationUpdateBackground || wx.startLocationUpdate;
250
+    startLocationApi({
251
+      type: 'gcj02',
252
+      success: (res) => {
253
+        console.log('定位服务已启动', res);
254
+        service.isLocationUpdateStarted = true;
255
+// 存储上一次的定位信息
256
+let lastLocation = null;
257
+// 距离阈值(单位:米,根据需求调整,5米)
258
+const DISTANCE_THRESHOLD = 5;
259
+        // 修复3:改用低版本支持的 wx.onLocationChange(替代 wx.watchPosition)
260
+        wx.onLocationChange((location) => {
261
+          if (!lastLocation) {
262
+            lastLocation = location;
263
+            console.log('位置变化,准备上传:', location);
264
+            this._uploadLocation(location, workorderId);
265
+            return;
266
+          }
267
+        // 计算当前定位与上一次的直线距离(Haversine公式)
268
+  const distance = this.calculateDistance(
269
+    lastLocation.latitude,
270
+    lastLocation.longitude,
271
+    location.latitude,
272
+    location.longitude
273
+  );
274
+console.log(distance);
275
+  // 只有距离超过阈值,才认为是“有效变化”
276
+  if (distance >= DISTANCE_THRESHOLD) {
277
+    lastLocation = location; // 更新上一次定位
278
+    this._uploadLocation(location, workorderId);
279
+  }  
280
+      
281
+        });
282
+        // 标记定位中状态
283
+        service.isTracking = true;
284
+        console.log('位置监听已注册,开始实时上传');
285
+      },
286
+      fail: (err) => {
287
+        let errMsg = '启动定位失败';
288
+        if (err.errMsg.includes('auth deny')) errMsg = '定位权限被拒绝';
289
+        else if (err.errMsg.includes('system')) errMsg = '系统不支持定位';
290
+        
291
+        console.error(errMsg, err);
292
+        wx.showToast({ title: errMsg, icon: 'none', duration: 2000 });
293
+      }
294
+    });
16 295
   },
17
-  globalData: {
18
-    userInfo: null
296
+
297
+// Haversine公式:计算两点经纬度之间的直线距离(单位:米)
298
+ calculateDistance(lat1, lng1, lat2, lng2) {
299
+  const R = 6371000; // 地球半径(米)
300
+  const radLat1 = (lat1 * Math.PI) / 180;
301
+  const radLat2 = (lat2 * Math.PI) / 180;
302
+  const deltaLat = radLat2 - radLat1;
303
+  const deltaLng = (lng2 - lng1) * Math.PI / 180;
304
+
305
+  const a = 
306
+    Math.sin(deltaLat / 2) * Math.sin(deltaLat / 2) +
307
+    Math.cos(radLat1) * Math.cos(radLat2) *
308
+    Math.sin(deltaLng / 2) * Math.sin(deltaLng / 2);
309
+  
310
+  const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
311
+  return R * c; // 距离(米)
312
+},
313
+  /**
314
+   * 司机端停止定位上传(核心修复:对应移除 wx.onLocationChange 监听)
315
+   */
316
+  stopDriverLocationUpload() {
317
+    const service = this.locationService;
318
+
319
+    if (!service.isTracking) {
320
+      return;
321
+    }
322
+
323
+    console.log(`停止为工单 ${service.currentWorkorderId} 上传位置`);
324
+
325
+    // 1. 移除位置监听(wx.onLocationChange 对应 wx.offLocationChange)
326
+    this._removeLocationListener();
327
+
328
+    // 2. 停止定位服务(兼容低版本,用 stopLocationUpdate 兜底)
329
+    this._stopLocationService();
330
+
331
+    // 3. 重置状态
332
+    service.isTracking = false;
333
+    service.currentWorkorderId = '';
334
+    service.isLocationUpdateStarted = false;
335
+  },
336
+
337
+  /**
338
+   * 私有方法:移除位置监听(兼容低版本)
339
+   */
340
+  _removeLocationListener() {
341
+    if (wx.offLocationChange) {
342
+      wx.offLocationChange();
343
+      console.log('位置监听已移除');
344
+    } else {
345
+      console.warn('当前基础库不支持 wx.offLocationChange,可能存在重复监听风险');
346
+    }
347
+  },
348
+
349
+  /**
350
+   * 私有方法:统一停止定位服务(兼容低版本)
351
+   */
352
+  _stopLocationService() {
353
+    const stopLocationApi = wx.stopLocationUpdateBackground || wx.stopLocationUpdate;
354
+    if (stopLocationApi && this.locationService.isLocationUpdateStarted) {
355
+      stopLocationApi({
356
+        success: (res) => {
357
+          console.log('定位服务已停止', res);
358
+        },
359
+        fail: (err) => {
360
+          console.error('停止定位服务失败:', err);
361
+        }
362
+      });
363
+    }
364
+  },
365
+
366
+  /**
367
+   * 私有方法:上传位置到服务器(无改动)
368
+   */
369
+  _uploadLocation(location, workorderId, retryCount = 0) {
370
+    const maxRetry = 2;
371
+    const isLatValid = location.latitude >= 3.86 && location.latitude <= 53.55;
372
+    const isLngValid = location.longitude >= 73.66 && location.longitude <= 135.05;
373
+
374
+    if (!isLatValid || !isLngValid) {
375
+      console.warn(`无效位置信息(工单: ${workorderId}),跳过上传`, location);
376
+      return;
377
+    }
378
+
379
+    const data = {
380
+      workorderId: workorderId,
381
+      latitude: location.latitude,
382
+      longitude: location.longitude,
383
+      createTime: Date.now(),
384
+      accuracy: location.accuracy
385
+    };
386
+
387
+    api.request(`/sysworkorder/insercoordinateredis`, 'post', data, { isPublic: false })
388
+      .then((response) => {
389
+        if (response.code !== 200) {
390
+          throw new Error(`响应码异常: ${response.code}`);
391
+        }
392
+        console.log(`位置上传成功 (工单: ${workorderId})`, data);
393
+      })
394
+      .catch((err) => {
395
+        console.error(`位置上传失败(第${retryCount+1}次)(工单: ${workorderId})`, err);
396
+        if (retryCount < maxRetry) {
397
+          setTimeout(() => {
398
+            this._uploadLocation(location, workorderId, retryCount + 1);
399
+          }, 10000 * (retryCount + 1));
400
+        } else {
401
+          wx.showToast({ title: '位置上传失败,请检查网络', icon: 'none' });
402
+        }
403
+      });
404
+  },
405
+});
406
+
407
+// 全局事件总线
408
+wx.$on = function (eventName, callback) {
409
+  if (!this.$events) this.$events = {};
410
+  if (!this.$events[eventName]) this.$events[eventName] = [];
411
+  this.$events[eventName].push(callback);
412
+};
413
+
414
+wx.$emit = function (eventName, data) {
415
+  if (!this.$events || !this.$events[eventName]) return;
416
+  this.$events[eventName].forEach(callback => callback(data));
417
+};
418
+
419
+wx.$off = function (eventName, callback) {
420
+  if (!this.$events || !this.$events[eventName]) return;
421
+  if (callback) {
422
+    this.$events[eventName] = this.$events[eventName].filter(cb => cb !== callback);
423
+  } else {
424
+    this.$events[eventName] = [];
19 425
   }
20
-})
426
+};
427
+

+ 26
- 17
app.json View File

@@ -4,16 +4,19 @@
4 4
     "pages/setup/index",
5 5
     "pages/tool/index",
6 6
     "pages/login/index",
7
-    "pages/malfunction/index",
7
+    "pages/equipment/index",
8 8
     "pages/workorder/index",
9
-    "pages/workorderdetails/index",
10
-    "pages/workorderstep/index",
11
-    "pages/statistics/index",
12
-    "pages/device/index",
13
-    "pages/personalInfo/index",
14 9
     "pages/setuplevel/index",
15
-    "pages/scheduling/index",
16
-    "pages/privacy/index"
10
+    "pages/longtermorder/index",
11
+    "pages/projectdetails/index",
12
+    "pages/car/index",
13
+    "pages/stationdetail/index",
14
+    "pages/map/index",
15
+    "pages/orderdetails/index",
16
+    "pages/createproject/index",
17
+    "pages/projectlist/index",
18
+    "pages/driverdetail/index"
19
+    
17 20
   ],
18 21
   "requiredPrivateInfos": [
19 22
     "getLocation"
@@ -39,26 +42,32 @@
39 42
   "lazyCodeLoading": "requiredComponents",
40 43
   "__usePrivacyCheck__": true,
41 44
   "tabBar": {
42
-    "selectedColor": "#0F80DC",
45
+    "selectedColor": "#007545",
43 46
     "list": [
44 47
       {
45 48
         "pagePath": "pages/index/index",
46
-        "text": "首页",
47
-        "iconPath": "static/sz3.png",
48
-        "selectedIconPath": "static/sz4.png"
49
+        "text": "监控",
50
+        "iconPath": "static/111.png",
51
+        "selectedIconPath": "static/222.png"
49 52
       },
50 53
       {
51 54
         "pagePath": "pages/tool/index",
52 55
         "text": "工单",
53
-        "iconPath": "static/tool.png",
54
-        "selectedIconPath": "static/tool1.png"
56
+        "iconPath": "static/55.png",
57
+        "selectedIconPath": "static/66.png"
58
+      },
59
+      {
60
+        "pagePath": "pages/equipment/index",
61
+        "text": "消息",
62
+        "iconPath": "static/3.png",
63
+        "selectedIconPath": "static/4.png"
55 64
       },
56 65
       {
57 66
         "pagePath": "pages/setup/index",
58 67
         "text": "我的",
59
-        "iconPath": "static/user1.png",
60
-        "selectedIconPath": "static/user2.png"
68
+        "iconPath": "static/7.png",
69
+        "selectedIconPath": "static/8.png"
61 70
       }
62 71
     ]
63 72
   }
64
-}
73
+}

+ 8
- 0
app.wxss View File

@@ -50,3 +50,11 @@ page {
50 50
 		margin-left: 32rpx;
51 51
 		margin-right: 10rpx;
52 52
 	}
53
+  .available{
54
+    width: 100%;
55
+    height: 380rpx;
56
+    display: flex;
57
+    align-items: center;
58
+    justify-content: center;
59
+    margin-top:40rpx;
60
+  }

+ 2
- 2
miniprogram_npm/call-bind/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038316, function(require, module, exports) {
7
+__DEFINE__(1758867032936, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var bind = require('function-bind');
@@ -42,7 +42,7 @@ if ($defineProperty) {
42 42
 }
43 43
 
44 44
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
45
-return __REQUIRE__(1755660038316);
45
+return __REQUIRE__(1758867032936);
46 46
 })()
47 47
 //miniprogram-npm-outsideDeps=["function-bind","get-intrinsic","set-function-length","es-errors/type","es-define-property"]
48 48
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/define-data-property/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038317, function(require, module, exports) {
7
+__DEFINE__(1758867032937, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var $defineProperty = require('es-define-property');
@@ -63,7 +63,7 @@ module.exports = function defineDataProperty(
63 63
 };
64 64
 
65 65
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
66
-return __REQUIRE__(1755660038317);
66
+return __REQUIRE__(1758867032937);
67 67
 })()
68 68
 //miniprogram-npm-outsideDeps=["es-define-property","es-errors/syntax","es-errors/type","gopd"]
69 69
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/es-define-property/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038318, function(require, module, exports) {
7
+__DEFINE__(1758867032938, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var GetIntrinsic = require('get-intrinsic');
@@ -23,7 +23,7 @@ if ($defineProperty) {
23 23
 module.exports = $defineProperty;
24 24
 
25 25
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
26
-return __REQUIRE__(1755660038318);
26
+return __REQUIRE__(1758867032938);
27 27
 })()
28 28
 //miniprogram-npm-outsideDeps=["get-intrinsic"]
29 29
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/es-errors/index.js View File

@@ -4,14 +4,14 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038319, function(require, module, exports) {
7
+__DEFINE__(1758867032939, function(require, module, exports) {
8 8
 
9 9
 
10 10
 /** @type {import('.')} */
11 11
 module.exports = Error;
12 12
 
13 13
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
14
-return __REQUIRE__(1755660038319);
14
+return __REQUIRE__(1758867032939);
15 15
 })()
16 16
 //miniprogram-npm-outsideDeps=[]
17 17
 //# sourceMappingURL=index.js.map

+ 4
- 4
miniprogram_npm/function-bind/index.js View File

@@ -4,15 +4,15 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038320, function(require, module, exports) {
7
+__DEFINE__(1758867032940, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var implementation = require('./implementation');
11 11
 
12 12
 module.exports = Function.prototype.bind || implementation;
13 13
 
14
-}, function(modId) {var map = {"./implementation":1755660038321}; return __REQUIRE__(map[modId], modId); })
15
-__DEFINE__(1755660038321, function(require, module, exports) {
14
+}, function(modId) {var map = {"./implementation":1758867032941}; return __REQUIRE__(map[modId], modId); })
15
+__DEFINE__(1758867032941, function(require, module, exports) {
16 16
 
17 17
 
18 18
 /* eslint no-invalid-this: 1 */
@@ -99,7 +99,7 @@ module.exports = function bind(that) {
99 99
 };
100 100
 
101 101
 }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); })
102
-return __REQUIRE__(1755660038320);
102
+return __REQUIRE__(1758867032940);
103 103
 })()
104 104
 //miniprogram-npm-outsideDeps=[]
105 105
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/get-intrinsic/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038322, function(require, module, exports) {
7
+__DEFINE__(1758867032942, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var undefined;
@@ -366,7 +366,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
366 366
 };
367 367
 
368 368
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
369
-return __REQUIRE__(1755660038322);
369
+return __REQUIRE__(1758867032942);
370 370
 })()
371 371
 //miniprogram-npm-outsideDeps=["es-errors","es-errors/eval","es-errors/range","es-errors/ref","es-errors/syntax","es-errors/type","es-errors/uri","has-symbols","has-proto","function-bind","hasown"]
372 372
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/gopd/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038323, function(require, module, exports) {
7
+__DEFINE__(1758867032943, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var GetIntrinsic = require('get-intrinsic');
@@ -23,7 +23,7 @@ if ($gOPD) {
23 23
 module.exports = $gOPD;
24 24
 
25 25
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
26
-return __REQUIRE__(1755660038323);
26
+return __REQUIRE__(1758867032943);
27 27
 })()
28 28
 //miniprogram-npm-outsideDeps=["get-intrinsic"]
29 29
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/has-property-descriptors/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038324, function(require, module, exports) {
7
+__DEFINE__(1758867032944, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var $defineProperty = require('es-define-property');
@@ -29,7 +29,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
29 29
 module.exports = hasPropertyDescriptors;
30 30
 
31 31
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
32
-return __REQUIRE__(1755660038324);
32
+return __REQUIRE__(1758867032944);
33 33
 })()
34 34
 //miniprogram-npm-outsideDeps=["es-define-property"]
35 35
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/has-proto/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038325, function(require, module, exports) {
7
+__DEFINE__(1758867032945, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var test = {
@@ -22,7 +22,7 @@ module.exports = function hasProto() {
22 22
 };
23 23
 
24 24
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
25
-return __REQUIRE__(1755660038325);
25
+return __REQUIRE__(1758867032945);
26 26
 })()
27 27
 //miniprogram-npm-outsideDeps=[]
28 28
 //# sourceMappingURL=index.js.map

+ 4
- 4
miniprogram_npm/has-symbols/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038326, function(require, module, exports) {
7
+__DEFINE__(1758867032946, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var origSymbol = typeof Symbol !== 'undefined' && Symbol;
@@ -19,8 +19,8 @@ module.exports = function hasNativeSymbols() {
19 19
 	return hasSymbolSham();
20 20
 };
21 21
 
22
-}, function(modId) {var map = {"./shams":1755660038327}; return __REQUIRE__(map[modId], modId); })
23
-__DEFINE__(1755660038327, function(require, module, exports) {
22
+}, function(modId) {var map = {"./shams":1758867032947}; return __REQUIRE__(map[modId], modId); })
23
+__DEFINE__(1758867032947, function(require, module, exports) {
24 24
 
25 25
 
26 26
 /* eslint complexity: [2, 18], max-statements: [2, 33] */
@@ -65,7 +65,7 @@ module.exports = function hasSymbols() {
65 65
 };
66 66
 
67 67
 }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); })
68
-return __REQUIRE__(1755660038326);
68
+return __REQUIRE__(1758867032946);
69 69
 })()
70 70
 //miniprogram-npm-outsideDeps=[]
71 71
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/hasown/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038328, function(require, module, exports) {
7
+__DEFINE__(1758867032948, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var call = Function.prototype.call;
@@ -15,7 +15,7 @@ var bind = require('function-bind');
15 15
 module.exports = bind.call(call, $hasOwn);
16 16
 
17 17
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
18
-return __REQUIRE__(1755660038328);
18
+return __REQUIRE__(1758867032948);
19 19
 })()
20 20
 //miniprogram-npm-outsideDeps=["function-bind"]
21 21
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/moment/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038329, function(require, module, exports) {
7
+__DEFINE__(1758867032949, function(require, module, exports) {
8 8
 //! moment.js
9 9
 //! version : 2.30.1
10 10
 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
@@ -5695,7 +5695,7 @@ __DEFINE__(1755660038329, function(require, module, exports) {
5695 5695
 })));
5696 5696
 
5697 5697
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
5698
-return __REQUIRE__(1755660038329);
5698
+return __REQUIRE__(1758867032949);
5699 5699
 })()
5700 5700
 //miniprogram-npm-outsideDeps=[]
5701 5701
 //# sourceMappingURL=index.js.map

+ 4
- 4
miniprogram_npm/object-inspect/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038330, function(require, module, exports) {
7
+__DEFINE__(1758867032950, function(require, module, exports) {
8 8
 var hasMap = typeof Map === 'function' && Map.prototype;
9 9
 var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
10 10
 var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
@@ -533,12 +533,12 @@ function arrObjKeys(obj, inspect) {
533 533
     return xs;
534 534
 }
535 535
 
536
-}, function(modId) {var map = {"./util.inspect":1755660038331}; return __REQUIRE__(map[modId], modId); })
537
-__DEFINE__(1755660038331, function(require, module, exports) {
536
+}, function(modId) {var map = {"./util.inspect":1758867032951}; return __REQUIRE__(map[modId], modId); })
537
+__DEFINE__(1758867032951, function(require, module, exports) {
538 538
 module.exports = require('util').inspect;
539 539
 
540 540
 }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); })
541
-return __REQUIRE__(1755660038330);
541
+return __REQUIRE__(1758867032950);
542 542
 })()
543 543
 //miniprogram-npm-outsideDeps=["util"]
544 544
 //# sourceMappingURL=index.js.map

+ 10
- 10
miniprogram_npm/qs/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038332, function(require, module, exports) {
7
+__DEFINE__(1758867032952, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var stringify = require('./stringify');
@@ -17,8 +17,8 @@ module.exports = {
17 17
     stringify: stringify
18 18
 };
19 19
 
20
-}, function(modId) {var map = {"./stringify":1755660038333,"./parse":1755660038336,"./formats":1755660038335}; return __REQUIRE__(map[modId], modId); })
21
-__DEFINE__(1755660038333, function(require, module, exports) {
20
+}, function(modId) {var map = {"./stringify":1758867032953,"./parse":1758867032956,"./formats":1758867032955}; return __REQUIRE__(map[modId], modId); })
21
+__DEFINE__(1758867032953, function(require, module, exports) {
22 22
 
23 23
 
24 24
 var getSideChannel = require('side-channel');
@@ -371,8 +371,8 @@ module.exports = function (object, opts) {
371 371
     return joined.length > 0 ? prefix + joined : '';
372 372
 };
373 373
 
374
-}, function(modId) { var map = {"./utils":1755660038334,"./formats":1755660038335}; return __REQUIRE__(map[modId], modId); })
375
-__DEFINE__(1755660038334, function(require, module, exports) {
374
+}, function(modId) { var map = {"./utils":1758867032954,"./formats":1758867032955}; return __REQUIRE__(map[modId], modId); })
375
+__DEFINE__(1758867032954, function(require, module, exports) {
376 376
 
377 377
 
378 378
 var formats = require('./formats');
@@ -639,8 +639,8 @@ module.exports = {
639 639
     merge: merge
640 640
 };
641 641
 
642
-}, function(modId) { var map = {"./formats":1755660038335}; return __REQUIRE__(map[modId], modId); })
643
-__DEFINE__(1755660038335, function(require, module, exports) {
642
+}, function(modId) { var map = {"./formats":1758867032955}; return __REQUIRE__(map[modId], modId); })
643
+__DEFINE__(1758867032955, function(require, module, exports) {
644 644
 
645 645
 
646 646
 var replace = String.prototype.replace;
@@ -666,7 +666,7 @@ module.exports = {
666 666
 };
667 667
 
668 668
 }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); })
669
-__DEFINE__(1755660038336, function(require, module, exports) {
669
+__DEFINE__(1758867032956, function(require, module, exports) {
670 670
 
671 671
 
672 672
 var utils = require('./utils');
@@ -957,8 +957,8 @@ module.exports = function (str, opts) {
957 957
     return utils.compact(obj);
958 958
 };
959 959
 
960
-}, function(modId) { var map = {"./utils":1755660038334}; return __REQUIRE__(map[modId], modId); })
961
-return __REQUIRE__(1755660038332);
960
+}, function(modId) { var map = {"./utils":1758867032954}; return __REQUIRE__(map[modId], modId); })
961
+return __REQUIRE__(1758867032952);
962 962
 })()
963 963
 //miniprogram-npm-outsideDeps=["side-channel"]
964 964
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/set-function-length/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038337, function(require, module, exports) {
7
+__DEFINE__(1758867032957, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var GetIntrinsic = require('get-intrinsic');
@@ -49,7 +49,7 @@ module.exports = function setFunctionLength(fn, length) {
49 49
 };
50 50
 
51 51
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
52
-return __REQUIRE__(1755660038337);
52
+return __REQUIRE__(1758867032957);
53 53
 })()
54 54
 //miniprogram-npm-outsideDeps=["get-intrinsic","define-data-property","has-property-descriptors","gopd","es-errors/type"]
55 55
 //# sourceMappingURL=index.js.map

+ 2
- 2
miniprogram_npm/side-channel/index.js View File

@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
4 4
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
5 5
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
6 6
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
7
-__DEFINE__(1755660038338, function(require, module, exports) {
7
+__DEFINE__(1758867032958, function(require, module, exports) {
8 8
 
9 9
 
10 10
 var GetIntrinsic = require('get-intrinsic');
@@ -136,7 +136,7 @@ module.exports = function getSideChannel() {
136 136
 };
137 137
 
138 138
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
139
-return __REQUIRE__(1755660038338);
139
+return __REQUIRE__(1758867032958);
140 140
 })()
141 141
 //miniprogram-npm-outsideDeps=["get-intrinsic","call-bind/callBound","object-inspect","es-errors/type"]
142 142
 //# sourceMappingURL=index.js.map

+ 1
- 1
miniprogram_npm/tdesign-miniprogram/calendar/calendar.wxss View File

@@ -1,6 +1,6 @@
1 1
 @import '../common/style/index.wxss';.t-calendar{width:inherit;position:relative;z-index:9999;background:var(--td-calendar-bg-color,var(--td-bg-color-container,var(--td-font-white-1,#fff)));overflow-x:hidden;}
2 2
 .t-calendar--popup{border-top-left-radius:var(--td-calendar-radius,24rpx);border-top-right-radius:var(--td-calendar-radius,24rpx);}
3
-.t-calendar__title{display:flex;align-items:center;justify-content:center;font-size:var(--td-calendar-title-font-size,18px);display: none !important;font-weight:600;color:var(--td-calendar-title-color,var(--td-text-color-primary,var(--td-font-gray-1,rgba(0,0,0,.9))));height:52rpx;padding:32rpx;}
3
+.t-calendar__title{display:flex;align-items:center;justify-content:center;font-size:var(--td-calendar-title-font-size,18px);font-weight:600;color:var(--td-calendar-title-color,var(--td-text-color-primary,var(--td-font-gray-1,rgba(0,0,0,.9))));height:52rpx;padding:32rpx;}
4 4
 .t-calendar__title:focus{outline:0;}
5 5
 .t-calendar__close-btn{position:absolute;top:32rpx;right:32rpx;margin:-24rpx;padding:24rpx;color:var(--td-calendar-title-color,var(--td-text-color-primary,var(--td-font-gray-1,rgba(0,0,0,.9))));}
6 6
 .t-calendar__days{display:grid;grid-template-columns:repeat(7,1fr);grid-column-gap:8rpx;padding:0 32rpx;text-align:center;line-height:92rpx;}

+ 2
- 2
miniprogram_npm/tdesign-miniprogram/textarea/textarea.wxss View File

@@ -1,7 +1,7 @@
1
-@import '../common/style/index.wxss';.t-textarea{display:flex;flex-direction:column;box-sizing:border-box;padding:16rpx 16rpx;background-color:var(--td-textarea-background-color,var(--td-bg-color-container,var(--td-font-white-1,#fff)));}
1
+@import '../common/style/index.wxss';.t-textarea{display:flex;flex-direction:column;box-sizing:border-box;padding:32rpx 32rpx;background-color:var(--td-textarea-background-color,var(--td-bg-color-container,var(--td-font-white-1,#fff)));}
2 2
 .t-textarea__label:not(:empty){font-size:var(--td-font-size-base,28rpx);color:var(--td-textarea-label-color,var(--td-text-color-primary,var(--td-font-gray-1,rgba(0,0,0,.9))));flex-shrink:0;line-height:44rpx;padding-bottom:var(--td-spacer,16rpx);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
3 3
 .t-textarea__wrapper{display:flex;flex-direction:column;width:100%;flex:1 1 auto;overflow:hidden;}
4
-.t-textarea__wrapper-inner{flex:1 1 auto;box-sizing:border-box;width:inherit;min-width:0;min-height:20px;margin:0;padding:0;text-align:left;background-color:transparent;border:0;resize:none;font-size:var(--td-font-size-m,26rpx);color:var(--td-textarea-text-color,var(--td-text-color-primary,var(--td-font-gray-1,rgba(0,0,0,.9))));line-height:48rpx;}
4
+.t-textarea__wrapper-inner{flex:1 1 auto;box-sizing:border-box;width:inherit;min-width:0;min-height:20px;margin:0;padding:0;text-align:left;background-color:transparent;border:0;resize:none;font-size:var(--td-font-size-m,32rpx);color:var(--td-textarea-text-color,var(--td-text-color-primary,var(--td-font-gray-1,rgba(0,0,0,.9))));line-height:48rpx;}
5 5
 .t-textarea__placeholder{color:var(--td-textarea-placeholder-color,var(--td-text-color-placeholder,var(--td-font-gray-3,rgba(0,0,0,.4))));font-size:var(--td-font-size-m,32rpx);}
6 6
 .t-textarea__indicator:not(:empty){flex-shrink:0;color:var(--td-textarea-indicator-text-color,var(--td-text-color-placeholder,var(--td-font-gray-3,rgba(0,0,0,.4))));font-size:var(--td-spacer-1,24rpx);text-align:right;line-height:40rpx;padding-top:var(--td-spacer,16rpx);}
7 7
 .t-textarea--border{border-radius:var(--td-textarea-border-radius,var(--td-radius-default,12rpx));border:2rpx solid var(--td-textarea-border-color,var(--td-component-border,var(--td-gray-color-4,#dcdcdc)));}

+ 16
- 0
node_modules/.bin/baseline-browser-mapping View File

@@ -0,0 +1,16 @@
1
+#!/bin/sh
2
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+case `uname` in
5
+    *CYGWIN*|*MINGW*|*MSYS*)
6
+        if command -v cygpath > /dev/null 2>&1; then
7
+            basedir=`cygpath -w "$basedir"`
8
+        fi
9
+    ;;
10
+esac
11
+
12
+if [ -x "$basedir/node" ]; then
13
+  exec "$basedir/node"  "$basedir/../baseline-browser-mapping/dist/cli.js" "$@"
14
+else 
15
+  exec node  "$basedir/../baseline-browser-mapping/dist/cli.js" "$@"
16
+fi

+ 17
- 0
node_modules/.bin/baseline-browser-mapping.cmd View File

@@ -0,0 +1,17 @@
1
+@ECHO off
2
+GOTO start
3
+:find_dp0
4
+SET dp0=%~dp0
5
+EXIT /b
6
+:start
7
+SETLOCAL
8
+CALL :find_dp0
9
+
10
+IF EXIST "%dp0%\node.exe" (
11
+  SET "_prog=%dp0%\node.exe"
12
+) ELSE (
13
+  SET "_prog=node"
14
+  SET PATHEXT=%PATHEXT:;.JS;=;%
15
+)
16
+
17
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\baseline-browser-mapping\dist\cli.js" %*

+ 28
- 0
node_modules/.bin/baseline-browser-mapping.ps1 View File

@@ -0,0 +1,28 @@
1
+#!/usr/bin/env pwsh
2
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+$exe=""
5
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
+  # Fix case when both the Windows and Linux builds of Node
7
+  # are installed in the same directory
8
+  $exe=".exe"
9
+}
10
+$ret=0
11
+if (Test-Path "$basedir/node$exe") {
12
+  # Support pipeline input
13
+  if ($MyInvocation.ExpectingInput) {
14
+    $input | & "$basedir/node$exe"  "$basedir/../baseline-browser-mapping/dist/cli.js" $args
15
+  } else {
16
+    & "$basedir/node$exe"  "$basedir/../baseline-browser-mapping/dist/cli.js" $args
17
+  }
18
+  $ret=$LASTEXITCODE
19
+} else {
20
+  # Support pipeline input
21
+  if ($MyInvocation.ExpectingInput) {
22
+    $input | & "node$exe"  "$basedir/../baseline-browser-mapping/dist/cli.js" $args
23
+  } else {
24
+    & "node$exe"  "$basedir/../baseline-browser-mapping/dist/cli.js" $args
25
+  }
26
+  $ret=$LASTEXITCODE
27
+}
28
+exit $ret

+ 16
- 0
node_modules/.bin/browserslist View File

@@ -0,0 +1,16 @@
1
+#!/bin/sh
2
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+case `uname` in
5
+    *CYGWIN*|*MINGW*|*MSYS*)
6
+        if command -v cygpath > /dev/null 2>&1; then
7
+            basedir=`cygpath -w "$basedir"`
8
+        fi
9
+    ;;
10
+esac
11
+
12
+if [ -x "$basedir/node" ]; then
13
+  exec "$basedir/node"  "$basedir/../browserslist/cli.js" "$@"
14
+else 
15
+  exec node  "$basedir/../browserslist/cli.js" "$@"
16
+fi

+ 17
- 0
node_modules/.bin/browserslist.cmd View File

@@ -0,0 +1,17 @@
1
+@ECHO off
2
+GOTO start
3
+:find_dp0
4
+SET dp0=%~dp0
5
+EXIT /b
6
+:start
7
+SETLOCAL
8
+CALL :find_dp0
9
+
10
+IF EXIST "%dp0%\node.exe" (
11
+  SET "_prog=%dp0%\node.exe"
12
+) ELSE (
13
+  SET "_prog=node"
14
+  SET PATHEXT=%PATHEXT:;.JS;=;%
15
+)
16
+
17
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\browserslist\cli.js" %*

+ 28
- 0
node_modules/.bin/browserslist.ps1 View File

@@ -0,0 +1,28 @@
1
+#!/usr/bin/env pwsh
2
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+$exe=""
5
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
+  # Fix case when both the Windows and Linux builds of Node
7
+  # are installed in the same directory
8
+  $exe=".exe"
9
+}
10
+$ret=0
11
+if (Test-Path "$basedir/node$exe") {
12
+  # Support pipeline input
13
+  if ($MyInvocation.ExpectingInput) {
14
+    $input | & "$basedir/node$exe"  "$basedir/../browserslist/cli.js" $args
15
+  } else {
16
+    & "$basedir/node$exe"  "$basedir/../browserslist/cli.js" $args
17
+  }
18
+  $ret=$LASTEXITCODE
19
+} else {
20
+  # Support pipeline input
21
+  if ($MyInvocation.ExpectingInput) {
22
+    $input | & "node$exe"  "$basedir/../browserslist/cli.js" $args
23
+  } else {
24
+    & "node$exe"  "$basedir/../browserslist/cli.js" $args
25
+  }
26
+  $ret=$LASTEXITCODE
27
+}
28
+exit $ret

+ 16
- 0
node_modules/.bin/jsesc View File

@@ -0,0 +1,16 @@
1
+#!/bin/sh
2
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+case `uname` in
5
+    *CYGWIN*|*MINGW*|*MSYS*)
6
+        if command -v cygpath > /dev/null 2>&1; then
7
+            basedir=`cygpath -w "$basedir"`
8
+        fi
9
+    ;;
10
+esac
11
+
12
+if [ -x "$basedir/node" ]; then
13
+  exec "$basedir/node"  "$basedir/../jsesc/bin/jsesc" "$@"
14
+else 
15
+  exec node  "$basedir/../jsesc/bin/jsesc" "$@"
16
+fi

+ 17
- 0
node_modules/.bin/jsesc.cmd View File

@@ -0,0 +1,17 @@
1
+@ECHO off
2
+GOTO start
3
+:find_dp0
4
+SET dp0=%~dp0
5
+EXIT /b
6
+:start
7
+SETLOCAL
8
+CALL :find_dp0
9
+
10
+IF EXIST "%dp0%\node.exe" (
11
+  SET "_prog=%dp0%\node.exe"
12
+) ELSE (
13
+  SET "_prog=node"
14
+  SET PATHEXT=%PATHEXT:;.JS;=;%
15
+)
16
+
17
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\jsesc\bin\jsesc" %*

+ 28
- 0
node_modules/.bin/jsesc.ps1 View File

@@ -0,0 +1,28 @@
1
+#!/usr/bin/env pwsh
2
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+$exe=""
5
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
+  # Fix case when both the Windows and Linux builds of Node
7
+  # are installed in the same directory
8
+  $exe=".exe"
9
+}
10
+$ret=0
11
+if (Test-Path "$basedir/node$exe") {
12
+  # Support pipeline input
13
+  if ($MyInvocation.ExpectingInput) {
14
+    $input | & "$basedir/node$exe"  "$basedir/../jsesc/bin/jsesc" $args
15
+  } else {
16
+    & "$basedir/node$exe"  "$basedir/../jsesc/bin/jsesc" $args
17
+  }
18
+  $ret=$LASTEXITCODE
19
+} else {
20
+  # Support pipeline input
21
+  if ($MyInvocation.ExpectingInput) {
22
+    $input | & "node$exe"  "$basedir/../jsesc/bin/jsesc" $args
23
+  } else {
24
+    & "node$exe"  "$basedir/../jsesc/bin/jsesc" $args
25
+  }
26
+  $ret=$LASTEXITCODE
27
+}
28
+exit $ret

+ 16
- 0
node_modules/.bin/json5 View File

@@ -0,0 +1,16 @@
1
+#!/bin/sh
2
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+case `uname` in
5
+    *CYGWIN*|*MINGW*|*MSYS*)
6
+        if command -v cygpath > /dev/null 2>&1; then
7
+            basedir=`cygpath -w "$basedir"`
8
+        fi
9
+    ;;
10
+esac
11
+
12
+if [ -x "$basedir/node" ]; then
13
+  exec "$basedir/node"  "$basedir/../json5/lib/cli.js" "$@"
14
+else 
15
+  exec node  "$basedir/../json5/lib/cli.js" "$@"
16
+fi

+ 17
- 0
node_modules/.bin/json5.cmd View File

@@ -0,0 +1,17 @@
1
+@ECHO off
2
+GOTO start
3
+:find_dp0
4
+SET dp0=%~dp0
5
+EXIT /b
6
+:start
7
+SETLOCAL
8
+CALL :find_dp0
9
+
10
+IF EXIST "%dp0%\node.exe" (
11
+  SET "_prog=%dp0%\node.exe"
12
+) ELSE (
13
+  SET "_prog=node"
14
+  SET PATHEXT=%PATHEXT:;.JS;=;%
15
+)
16
+
17
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\json5\lib\cli.js" %*

+ 28
- 0
node_modules/.bin/json5.ps1 View File

@@ -0,0 +1,28 @@
1
+#!/usr/bin/env pwsh
2
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+$exe=""
5
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
+  # Fix case when both the Windows and Linux builds of Node
7
+  # are installed in the same directory
8
+  $exe=".exe"
9
+}
10
+$ret=0
11
+if (Test-Path "$basedir/node$exe") {
12
+  # Support pipeline input
13
+  if ($MyInvocation.ExpectingInput) {
14
+    $input | & "$basedir/node$exe"  "$basedir/../json5/lib/cli.js" $args
15
+  } else {
16
+    & "$basedir/node$exe"  "$basedir/../json5/lib/cli.js" $args
17
+  }
18
+  $ret=$LASTEXITCODE
19
+} else {
20
+  # Support pipeline input
21
+  if ($MyInvocation.ExpectingInput) {
22
+    $input | & "node$exe"  "$basedir/../json5/lib/cli.js" $args
23
+  } else {
24
+    & "node$exe"  "$basedir/../json5/lib/cli.js" $args
25
+  }
26
+  $ret=$LASTEXITCODE
27
+}
28
+exit $ret

+ 16
- 0
node_modules/.bin/parser View File

@@ -0,0 +1,16 @@
1
+#!/bin/sh
2
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+case `uname` in
5
+    *CYGWIN*|*MINGW*|*MSYS*)
6
+        if command -v cygpath > /dev/null 2>&1; then
7
+            basedir=`cygpath -w "$basedir"`
8
+        fi
9
+    ;;
10
+esac
11
+
12
+if [ -x "$basedir/node" ]; then
13
+  exec "$basedir/node"  "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
14
+else 
15
+  exec node  "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
16
+fi

+ 17
- 0
node_modules/.bin/parser.cmd View File

@@ -0,0 +1,17 @@
1
+@ECHO off
2
+GOTO start
3
+:find_dp0
4
+SET dp0=%~dp0
5
+EXIT /b
6
+:start
7
+SETLOCAL
8
+CALL :find_dp0
9
+
10
+IF EXIST "%dp0%\node.exe" (
11
+  SET "_prog=%dp0%\node.exe"
12
+) ELSE (
13
+  SET "_prog=node"
14
+  SET PATHEXT=%PATHEXT:;.JS;=;%
15
+)
16
+
17
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\@babel\parser\bin\babel-parser.js" %*

+ 28
- 0
node_modules/.bin/parser.ps1 View File

@@ -0,0 +1,28 @@
1
+#!/usr/bin/env pwsh
2
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+$exe=""
5
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
+  # Fix case when both the Windows and Linux builds of Node
7
+  # are installed in the same directory
8
+  $exe=".exe"
9
+}
10
+$ret=0
11
+if (Test-Path "$basedir/node$exe") {
12
+  # Support pipeline input
13
+  if ($MyInvocation.ExpectingInput) {
14
+    $input | & "$basedir/node$exe"  "$basedir/../@babel/parser/bin/babel-parser.js" $args
15
+  } else {
16
+    & "$basedir/node$exe"  "$basedir/../@babel/parser/bin/babel-parser.js" $args
17
+  }
18
+  $ret=$LASTEXITCODE
19
+} else {
20
+  # Support pipeline input
21
+  if ($MyInvocation.ExpectingInput) {
22
+    $input | & "node$exe"  "$basedir/../@babel/parser/bin/babel-parser.js" $args
23
+  } else {
24
+    & "node$exe"  "$basedir/../@babel/parser/bin/babel-parser.js" $args
25
+  }
26
+  $ret=$LASTEXITCODE
27
+}
28
+exit $ret

+ 16
- 0
node_modules/.bin/semver View File

@@ -0,0 +1,16 @@
1
+#!/bin/sh
2
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+case `uname` in
5
+    *CYGWIN*|*MINGW*|*MSYS*)
6
+        if command -v cygpath > /dev/null 2>&1; then
7
+            basedir=`cygpath -w "$basedir"`
8
+        fi
9
+    ;;
10
+esac
11
+
12
+if [ -x "$basedir/node" ]; then
13
+  exec "$basedir/node"  "$basedir/../semver/bin/semver.js" "$@"
14
+else 
15
+  exec node  "$basedir/../semver/bin/semver.js" "$@"
16
+fi

+ 17
- 0
node_modules/.bin/semver.cmd View File

@@ -0,0 +1,17 @@
1
+@ECHO off
2
+GOTO start
3
+:find_dp0
4
+SET dp0=%~dp0
5
+EXIT /b
6
+:start
7
+SETLOCAL
8
+CALL :find_dp0
9
+
10
+IF EXIST "%dp0%\node.exe" (
11
+  SET "_prog=%dp0%\node.exe"
12
+) ELSE (
13
+  SET "_prog=node"
14
+  SET PATHEXT=%PATHEXT:;.JS;=;%
15
+)
16
+
17
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\semver\bin\semver.js" %*

+ 28
- 0
node_modules/.bin/semver.ps1 View File

@@ -0,0 +1,28 @@
1
+#!/usr/bin/env pwsh
2
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+$exe=""
5
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
+  # Fix case when both the Windows and Linux builds of Node
7
+  # are installed in the same directory
8
+  $exe=".exe"
9
+}
10
+$ret=0
11
+if (Test-Path "$basedir/node$exe") {
12
+  # Support pipeline input
13
+  if ($MyInvocation.ExpectingInput) {
14
+    $input | & "$basedir/node$exe"  "$basedir/../semver/bin/semver.js" $args
15
+  } else {
16
+    & "$basedir/node$exe"  "$basedir/../semver/bin/semver.js" $args
17
+  }
18
+  $ret=$LASTEXITCODE
19
+} else {
20
+  # Support pipeline input
21
+  if ($MyInvocation.ExpectingInput) {
22
+    $input | & "node$exe"  "$basedir/../semver/bin/semver.js" $args
23
+  } else {
24
+    & "node$exe"  "$basedir/../semver/bin/semver.js" $args
25
+  }
26
+  $ret=$LASTEXITCODE
27
+}
28
+exit $ret

+ 16
- 0
node_modules/.bin/update-browserslist-db View File

@@ -0,0 +1,16 @@
1
+#!/bin/sh
2
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+case `uname` in
5
+    *CYGWIN*|*MINGW*|*MSYS*)
6
+        if command -v cygpath > /dev/null 2>&1; then
7
+            basedir=`cygpath -w "$basedir"`
8
+        fi
9
+    ;;
10
+esac
11
+
12
+if [ -x "$basedir/node" ]; then
13
+  exec "$basedir/node"  "$basedir/../update-browserslist-db/cli.js" "$@"
14
+else 
15
+  exec node  "$basedir/../update-browserslist-db/cli.js" "$@"
16
+fi

+ 17
- 0
node_modules/.bin/update-browserslist-db.cmd View File

@@ -0,0 +1,17 @@
1
+@ECHO off
2
+GOTO start
3
+:find_dp0
4
+SET dp0=%~dp0
5
+EXIT /b
6
+:start
7
+SETLOCAL
8
+CALL :find_dp0
9
+
10
+IF EXIST "%dp0%\node.exe" (
11
+  SET "_prog=%dp0%\node.exe"
12
+) ELSE (
13
+  SET "_prog=node"
14
+  SET PATHEXT=%PATHEXT:;.JS;=;%
15
+)
16
+
17
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\update-browserslist-db\cli.js" %*

+ 28
- 0
node_modules/.bin/update-browserslist-db.ps1 View File

@@ -0,0 +1,28 @@
1
+#!/usr/bin/env pwsh
2
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+$exe=""
5
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
+  # Fix case when both the Windows and Linux builds of Node
7
+  # are installed in the same directory
8
+  $exe=".exe"
9
+}
10
+$ret=0
11
+if (Test-Path "$basedir/node$exe") {
12
+  # Support pipeline input
13
+  if ($MyInvocation.ExpectingInput) {
14
+    $input | & "$basedir/node$exe"  "$basedir/../update-browserslist-db/cli.js" $args
15
+  } else {
16
+    & "$basedir/node$exe"  "$basedir/../update-browserslist-db/cli.js" $args
17
+  }
18
+  $ret=$LASTEXITCODE
19
+} else {
20
+  # Support pipeline input
21
+  if ($MyInvocation.ExpectingInput) {
22
+    $input | & "node$exe"  "$basedir/../update-browserslist-db/cli.js" $args
23
+  } else {
24
+    & "node$exe"  "$basedir/../update-browserslist-db/cli.js" $args
25
+  }
26
+  $ret=$LASTEXITCODE
27
+}
28
+exit $ret

+ 632
- 1
node_modules/.package-lock.json View File

@@ -1,8 +1,460 @@
1 1
 {
2
-  "name": "AutoFlow_wx",
2
+  "name": "movecar_wx",
3 3
   "lockfileVersion": 3,
4 4
   "requires": true,
5 5
   "packages": {
6
+    "node_modules/@babel/code-frame": {
7
+      "version": "7.27.1",
8
+      "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
9
+      "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",
10
+      "dev": true,
11
+      "dependencies": {
12
+        "@babel/helper-validator-identifier": "^7.27.1",
13
+        "js-tokens": "^4.0.0",
14
+        "picocolors": "^1.1.1"
15
+      },
16
+      "engines": {
17
+        "node": ">=6.9.0"
18
+      }
19
+    },
20
+    "node_modules/@babel/compat-data": {
21
+      "version": "7.28.4",
22
+      "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.4.tgz",
23
+      "integrity": "sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw==",
24
+      "dev": true,
25
+      "peer": true,
26
+      "engines": {
27
+        "node": ">=6.9.0"
28
+      }
29
+    },
30
+    "node_modules/@babel/core": {
31
+      "version": "7.28.4",
32
+      "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.4.tgz",
33
+      "integrity": "sha512-2BCOP7TN8M+gVDj7/ht3hsaO/B/n5oDbiAyyvnRlNOs+u1o+JWNYTQrmpuNp1/Wq2gcFrI01JAW+paEKDMx/CA==",
34
+      "dev": true,
35
+      "peer": true,
36
+      "dependencies": {
37
+        "@babel/code-frame": "^7.27.1",
38
+        "@babel/generator": "^7.28.3",
39
+        "@babel/helper-compilation-targets": "^7.27.2",
40
+        "@babel/helper-module-transforms": "^7.28.3",
41
+        "@babel/helpers": "^7.28.4",
42
+        "@babel/parser": "^7.28.4",
43
+        "@babel/template": "^7.27.2",
44
+        "@babel/traverse": "^7.28.4",
45
+        "@babel/types": "^7.28.4",
46
+        "@jridgewell/remapping": "^2.3.5",
47
+        "convert-source-map": "^2.0.0",
48
+        "debug": "^4.1.0",
49
+        "gensync": "^1.0.0-beta.2",
50
+        "json5": "^2.2.3",
51
+        "semver": "^6.3.1"
52
+      },
53
+      "engines": {
54
+        "node": ">=6.9.0"
55
+      },
56
+      "funding": {
57
+        "type": "opencollective",
58
+        "url": "https://opencollective.com/babel"
59
+      }
60
+    },
61
+    "node_modules/@babel/generator": {
62
+      "version": "7.28.3",
63
+      "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz",
64
+      "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==",
65
+      "dev": true,
66
+      "dependencies": {
67
+        "@babel/parser": "^7.28.3",
68
+        "@babel/types": "^7.28.2",
69
+        "@jridgewell/gen-mapping": "^0.3.12",
70
+        "@jridgewell/trace-mapping": "^0.3.28",
71
+        "jsesc": "^3.0.2"
72
+      },
73
+      "engines": {
74
+        "node": ">=6.9.0"
75
+      }
76
+    },
77
+    "node_modules/@babel/helper-annotate-as-pure": {
78
+      "version": "7.27.3",
79
+      "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz",
80
+      "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==",
81
+      "dev": true,
82
+      "dependencies": {
83
+        "@babel/types": "^7.27.3"
84
+      },
85
+      "engines": {
86
+        "node": ">=6.9.0"
87
+      }
88
+    },
89
+    "node_modules/@babel/helper-compilation-targets": {
90
+      "version": "7.27.2",
91
+      "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz",
92
+      "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==",
93
+      "dev": true,
94
+      "peer": true,
95
+      "dependencies": {
96
+        "@babel/compat-data": "^7.27.2",
97
+        "@babel/helper-validator-option": "^7.27.1",
98
+        "browserslist": "^4.24.0",
99
+        "lru-cache": "^5.1.1",
100
+        "semver": "^6.3.1"
101
+      },
102
+      "engines": {
103
+        "node": ">=6.9.0"
104
+      }
105
+    },
106
+    "node_modules/@babel/helper-create-class-features-plugin": {
107
+      "version": "7.28.3",
108
+      "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.3.tgz",
109
+      "integrity": "sha512-V9f6ZFIYSLNEbuGA/92uOvYsGCJNsuA8ESZ4ldc09bWk/j8H8TKiPw8Mk1eG6olpnO0ALHJmYfZvF4MEE4gajg==",
110
+      "dev": true,
111
+      "dependencies": {
112
+        "@babel/helper-annotate-as-pure": "^7.27.3",
113
+        "@babel/helper-member-expression-to-functions": "^7.27.1",
114
+        "@babel/helper-optimise-call-expression": "^7.27.1",
115
+        "@babel/helper-replace-supers": "^7.27.1",
116
+        "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1",
117
+        "@babel/traverse": "^7.28.3",
118
+        "semver": "^6.3.1"
119
+      },
120
+      "engines": {
121
+        "node": ">=6.9.0"
122
+      },
123
+      "peerDependencies": {
124
+        "@babel/core": "^7.0.0"
125
+      }
126
+    },
127
+    "node_modules/@babel/helper-globals": {
128
+      "version": "7.28.0",
129
+      "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
130
+      "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
131
+      "dev": true,
132
+      "engines": {
133
+        "node": ">=6.9.0"
134
+      }
135
+    },
136
+    "node_modules/@babel/helper-member-expression-to-functions": {
137
+      "version": "7.27.1",
138
+      "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.27.1.tgz",
139
+      "integrity": "sha512-E5chM8eWjTp/aNoVpcbfM7mLxu9XGLWYise2eBKGQomAk/Mb4XoxyqXTZbuTohbsl8EKqdlMhnDI2CCLfcs9wA==",
140
+      "dev": true,
141
+      "dependencies": {
142
+        "@babel/traverse": "^7.27.1",
143
+        "@babel/types": "^7.27.1"
144
+      },
145
+      "engines": {
146
+        "node": ">=6.9.0"
147
+      }
148
+    },
149
+    "node_modules/@babel/helper-module-imports": {
150
+      "version": "7.27.1",
151
+      "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz",
152
+      "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==",
153
+      "dev": true,
154
+      "peer": true,
155
+      "dependencies": {
156
+        "@babel/traverse": "^7.27.1",
157
+        "@babel/types": "^7.27.1"
158
+      },
159
+      "engines": {
160
+        "node": ">=6.9.0"
161
+      }
162
+    },
163
+    "node_modules/@babel/helper-module-transforms": {
164
+      "version": "7.28.3",
165
+      "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz",
166
+      "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==",
167
+      "dev": true,
168
+      "peer": true,
169
+      "dependencies": {
170
+        "@babel/helper-module-imports": "^7.27.1",
171
+        "@babel/helper-validator-identifier": "^7.27.1",
172
+        "@babel/traverse": "^7.28.3"
173
+      },
174
+      "engines": {
175
+        "node": ">=6.9.0"
176
+      },
177
+      "peerDependencies": {
178
+        "@babel/core": "^7.0.0"
179
+      }
180
+    },
181
+    "node_modules/@babel/helper-optimise-call-expression": {
182
+      "version": "7.27.1",
183
+      "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz",
184
+      "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==",
185
+      "dev": true,
186
+      "dependencies": {
187
+        "@babel/types": "^7.27.1"
188
+      },
189
+      "engines": {
190
+        "node": ">=6.9.0"
191
+      }
192
+    },
193
+    "node_modules/@babel/helper-plugin-utils": {
194
+      "version": "7.27.1",
195
+      "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz",
196
+      "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==",
197
+      "dev": true,
198
+      "engines": {
199
+        "node": ">=6.9.0"
200
+      }
201
+    },
202
+    "node_modules/@babel/helper-replace-supers": {
203
+      "version": "7.27.1",
204
+      "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.27.1.tgz",
205
+      "integrity": "sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==",
206
+      "dev": true,
207
+      "dependencies": {
208
+        "@babel/helper-member-expression-to-functions": "^7.27.1",
209
+        "@babel/helper-optimise-call-expression": "^7.27.1",
210
+        "@babel/traverse": "^7.27.1"
211
+      },
212
+      "engines": {
213
+        "node": ">=6.9.0"
214
+      },
215
+      "peerDependencies": {
216
+        "@babel/core": "^7.0.0"
217
+      }
218
+    },
219
+    "node_modules/@babel/helper-skip-transparent-expression-wrappers": {
220
+      "version": "7.27.1",
221
+      "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz",
222
+      "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==",
223
+      "dev": true,
224
+      "dependencies": {
225
+        "@babel/traverse": "^7.27.1",
226
+        "@babel/types": "^7.27.1"
227
+      },
228
+      "engines": {
229
+        "node": ">=6.9.0"
230
+      }
231
+    },
232
+    "node_modules/@babel/helper-string-parser": {
233
+      "version": "7.27.1",
234
+      "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
235
+      "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
236
+      "dev": true,
237
+      "engines": {
238
+        "node": ">=6.9.0"
239
+      }
240
+    },
241
+    "node_modules/@babel/helper-validator-identifier": {
242
+      "version": "7.27.1",
243
+      "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz",
244
+      "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==",
245
+      "dev": true,
246
+      "engines": {
247
+        "node": ">=6.9.0"
248
+      }
249
+    },
250
+    "node_modules/@babel/helper-validator-option": {
251
+      "version": "7.27.1",
252
+      "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
253
+      "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
254
+      "dev": true,
255
+      "peer": true,
256
+      "engines": {
257
+        "node": ">=6.9.0"
258
+      }
259
+    },
260
+    "node_modules/@babel/helpers": {
261
+      "version": "7.28.4",
262
+      "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz",
263
+      "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==",
264
+      "dev": true,
265
+      "peer": true,
266
+      "dependencies": {
267
+        "@babel/template": "^7.27.2",
268
+        "@babel/types": "^7.28.4"
269
+      },
270
+      "engines": {
271
+        "node": ">=6.9.0"
272
+      }
273
+    },
274
+    "node_modules/@babel/parser": {
275
+      "version": "7.28.4",
276
+      "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.4.tgz",
277
+      "integrity": "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==",
278
+      "dev": true,
279
+      "dependencies": {
280
+        "@babel/types": "^7.28.4"
281
+      },
282
+      "bin": {
283
+        "parser": "bin/babel-parser.js"
284
+      },
285
+      "engines": {
286
+        "node": ">=6.0.0"
287
+      }
288
+    },
289
+    "node_modules/@babel/plugin-proposal-private-property-in-object": {
290
+      "version": "7.21.11",
291
+      "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz",
292
+      "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==",
293
+      "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.",
294
+      "dev": true,
295
+      "dependencies": {
296
+        "@babel/helper-annotate-as-pure": "^7.18.6",
297
+        "@babel/helper-create-class-features-plugin": "^7.21.0",
298
+        "@babel/helper-plugin-utils": "^7.20.2",
299
+        "@babel/plugin-syntax-private-property-in-object": "^7.14.5"
300
+      },
301
+      "engines": {
302
+        "node": ">=6.9.0"
303
+      },
304
+      "peerDependencies": {
305
+        "@babel/core": "^7.0.0-0"
306
+      }
307
+    },
308
+    "node_modules/@babel/plugin-syntax-private-property-in-object": {
309
+      "version": "7.14.5",
310
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz",
311
+      "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==",
312
+      "dev": true,
313
+      "dependencies": {
314
+        "@babel/helper-plugin-utils": "^7.14.5"
315
+      },
316
+      "engines": {
317
+        "node": ">=6.9.0"
318
+      },
319
+      "peerDependencies": {
320
+        "@babel/core": "^7.0.0-0"
321
+      }
322
+    },
323
+    "node_modules/@babel/template": {
324
+      "version": "7.27.2",
325
+      "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz",
326
+      "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==",
327
+      "dev": true,
328
+      "dependencies": {
329
+        "@babel/code-frame": "^7.27.1",
330
+        "@babel/parser": "^7.27.2",
331
+        "@babel/types": "^7.27.1"
332
+      },
333
+      "engines": {
334
+        "node": ">=6.9.0"
335
+      }
336
+    },
337
+    "node_modules/@babel/traverse": {
338
+      "version": "7.28.4",
339
+      "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.4.tgz",
340
+      "integrity": "sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==",
341
+      "dev": true,
342
+      "dependencies": {
343
+        "@babel/code-frame": "^7.27.1",
344
+        "@babel/generator": "^7.28.3",
345
+        "@babel/helper-globals": "^7.28.0",
346
+        "@babel/parser": "^7.28.4",
347
+        "@babel/template": "^7.27.2",
348
+        "@babel/types": "^7.28.4",
349
+        "debug": "^4.3.1"
350
+      },
351
+      "engines": {
352
+        "node": ">=6.9.0"
353
+      }
354
+    },
355
+    "node_modules/@babel/types": {
356
+      "version": "7.28.4",
357
+      "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.4.tgz",
358
+      "integrity": "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==",
359
+      "dev": true,
360
+      "dependencies": {
361
+        "@babel/helper-string-parser": "^7.27.1",
362
+        "@babel/helper-validator-identifier": "^7.27.1"
363
+      },
364
+      "engines": {
365
+        "node": ">=6.9.0"
366
+      }
367
+    },
368
+    "node_modules/@jridgewell/gen-mapping": {
369
+      "version": "0.3.13",
370
+      "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
371
+      "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
372
+      "dev": true,
373
+      "dependencies": {
374
+        "@jridgewell/sourcemap-codec": "^1.5.0",
375
+        "@jridgewell/trace-mapping": "^0.3.24"
376
+      }
377
+    },
378
+    "node_modules/@jridgewell/remapping": {
379
+      "version": "2.3.5",
380
+      "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
381
+      "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
382
+      "dev": true,
383
+      "peer": true,
384
+      "dependencies": {
385
+        "@jridgewell/gen-mapping": "^0.3.5",
386
+        "@jridgewell/trace-mapping": "^0.3.24"
387
+      }
388
+    },
389
+    "node_modules/@jridgewell/resolve-uri": {
390
+      "version": "3.1.2",
391
+      "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
392
+      "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
393
+      "dev": true,
394
+      "engines": {
395
+        "node": ">=6.0.0"
396
+      }
397
+    },
398
+    "node_modules/@jridgewell/sourcemap-codec": {
399
+      "version": "1.5.5",
400
+      "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
401
+      "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
402
+      "dev": true
403
+    },
404
+    "node_modules/@jridgewell/trace-mapping": {
405
+      "version": "0.3.31",
406
+      "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
407
+      "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
408
+      "dev": true,
409
+      "dependencies": {
410
+        "@jridgewell/resolve-uri": "^3.1.0",
411
+        "@jridgewell/sourcemap-codec": "^1.4.14"
412
+      }
413
+    },
414
+    "node_modules/baseline-browser-mapping": {
415
+      "version": "2.8.7",
416
+      "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.7.tgz",
417
+      "integrity": "sha512-bxxN2M3a4d1CRoQC//IqsR5XrLh0IJ8TCv2x6Y9N0nckNz/rTjZB3//GGscZziZOxmjP55rzxg/ze7usFI9FqQ==",
418
+      "dev": true,
419
+      "peer": true,
420
+      "bin": {
421
+        "baseline-browser-mapping": "dist/cli.js"
422
+      }
423
+    },
424
+    "node_modules/browserslist": {
425
+      "version": "4.26.2",
426
+      "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.2.tgz",
427
+      "integrity": "sha512-ECFzp6uFOSB+dcZ5BK/IBaGWssbSYBHvuMeMt3MMFyhI0Z8SqGgEkBLARgpRH3hutIgPVsALcMwbDrJqPxQ65A==",
428
+      "dev": true,
429
+      "funding": [
430
+        {
431
+          "type": "opencollective",
432
+          "url": "https://opencollective.com/browserslist"
433
+        },
434
+        {
435
+          "type": "tidelift",
436
+          "url": "https://tidelift.com/funding/github/npm/browserslist"
437
+        },
438
+        {
439
+          "type": "github",
440
+          "url": "https://github.com/sponsors/ai"
441
+        }
442
+      ],
443
+      "peer": true,
444
+      "dependencies": {
445
+        "baseline-browser-mapping": "^2.8.3",
446
+        "caniuse-lite": "^1.0.30001741",
447
+        "electron-to-chromium": "^1.5.218",
448
+        "node-releases": "^2.0.21",
449
+        "update-browserslist-db": "^1.1.3"
450
+      },
451
+      "bin": {
452
+        "browserslist": "cli.js"
453
+      },
454
+      "engines": {
455
+        "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
456
+      }
457
+    },
6 458
     "node_modules/call-bind": {
7 459
       "version": "1.0.7",
8 460
       "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
@@ -21,6 +473,51 @@
21 473
         "url": "https://github.com/sponsors/ljharb"
22 474
       }
23 475
     },
476
+    "node_modules/caniuse-lite": {
477
+      "version": "1.0.30001745",
478
+      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001745.tgz",
479
+      "integrity": "sha512-ywt6i8FzvdgrrrGbr1jZVObnVv6adj+0if2/omv9cmR2oiZs30zL4DIyaptKcbOrBdOIc74QTMoJvSE2QHh5UQ==",
480
+      "dev": true,
481
+      "funding": [
482
+        {
483
+          "type": "opencollective",
484
+          "url": "https://opencollective.com/browserslist"
485
+        },
486
+        {
487
+          "type": "tidelift",
488
+          "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
489
+        },
490
+        {
491
+          "type": "github",
492
+          "url": "https://github.com/sponsors/ai"
493
+        }
494
+      ],
495
+      "peer": true
496
+    },
497
+    "node_modules/convert-source-map": {
498
+      "version": "2.0.0",
499
+      "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
500
+      "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
501
+      "dev": true,
502
+      "peer": true
503
+    },
504
+    "node_modules/debug": {
505
+      "version": "4.4.3",
506
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
507
+      "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
508
+      "dev": true,
509
+      "dependencies": {
510
+        "ms": "^2.1.3"
511
+      },
512
+      "engines": {
513
+        "node": ">=6.0"
514
+      },
515
+      "peerDependenciesMeta": {
516
+        "supports-color": {
517
+          "optional": true
518
+        }
519
+      }
520
+    },
24 521
     "node_modules/define-data-property": {
25 522
       "version": "1.1.4",
26 523
       "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
@@ -37,6 +534,13 @@
37 534
         "url": "https://github.com/sponsors/ljharb"
38 535
       }
39 536
     },
537
+    "node_modules/electron-to-chromium": {
538
+      "version": "1.5.224",
539
+      "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.224.tgz",
540
+      "integrity": "sha512-kWAoUu/bwzvnhpdZSIc6KUyvkI1rbRXMT0Eq8pKReyOyaPZcctMli+EgvcN1PAvwVc7Tdo4Fxi2PsLNDU05mdg==",
541
+      "dev": true,
542
+      "peer": true
543
+    },
40 544
     "node_modules/es-define-property": {
41 545
       "version": "1.0.0",
42 546
       "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
@@ -56,6 +560,16 @@
56 560
         "node": ">= 0.4"
57 561
       }
58 562
     },
563
+    "node_modules/escalade": {
564
+      "version": "3.2.0",
565
+      "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
566
+      "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
567
+      "dev": true,
568
+      "peer": true,
569
+      "engines": {
570
+        "node": ">=6"
571
+      }
572
+    },
59 573
     "node_modules/function-bind": {
60 574
       "version": "1.1.2",
61 575
       "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
@@ -64,6 +578,16 @@
64 578
         "url": "https://github.com/sponsors/ljharb"
65 579
       }
66 580
     },
581
+    "node_modules/gensync": {
582
+      "version": "1.0.0-beta.2",
583
+      "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
584
+      "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
585
+      "dev": true,
586
+      "peer": true,
587
+      "engines": {
588
+        "node": ">=6.9.0"
589
+      }
590
+    },
67 591
     "node_modules/get-intrinsic": {
68 592
       "version": "1.2.4",
69 593
       "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
@@ -137,6 +661,47 @@
137 661
         "node": ">= 0.4"
138 662
       }
139 663
     },
664
+    "node_modules/js-tokens": {
665
+      "version": "4.0.0",
666
+      "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
667
+      "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
668
+      "dev": true
669
+    },
670
+    "node_modules/jsesc": {
671
+      "version": "3.1.0",
672
+      "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
673
+      "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
674
+      "dev": true,
675
+      "bin": {
676
+        "jsesc": "bin/jsesc"
677
+      },
678
+      "engines": {
679
+        "node": ">=6"
680
+      }
681
+    },
682
+    "node_modules/json5": {
683
+      "version": "2.2.3",
684
+      "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
685
+      "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
686
+      "dev": true,
687
+      "peer": true,
688
+      "bin": {
689
+        "json5": "lib/cli.js"
690
+      },
691
+      "engines": {
692
+        "node": ">=6"
693
+      }
694
+    },
695
+    "node_modules/lru-cache": {
696
+      "version": "5.1.1",
697
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
698
+      "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
699
+      "dev": true,
700
+      "peer": true,
701
+      "dependencies": {
702
+        "yallist": "^3.0.2"
703
+      }
704
+    },
140 705
     "node_modules/moment": {
141 706
       "version": "2.30.1",
142 707
       "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
@@ -145,6 +710,19 @@
145 710
         "node": "*"
146 711
       }
147 712
     },
713
+    "node_modules/ms": {
714
+      "version": "2.1.3",
715
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
716
+      "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
717
+      "dev": true
718
+    },
719
+    "node_modules/node-releases": {
720
+      "version": "2.0.21",
721
+      "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.21.tgz",
722
+      "integrity": "sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw==",
723
+      "dev": true,
724
+      "peer": true
725
+    },
148 726
     "node_modules/object-inspect": {
149 727
       "version": "1.13.2",
150 728
       "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz",
@@ -156,6 +734,12 @@
156 734
         "url": "https://github.com/sponsors/ljharb"
157 735
       }
158 736
     },
737
+    "node_modules/picocolors": {
738
+      "version": "1.1.1",
739
+      "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
740
+      "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
741
+      "dev": true
742
+    },
159 743
     "node_modules/qs": {
160 744
       "version": "6.12.2",
161 745
       "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.2.tgz",
@@ -170,6 +754,15 @@
170 754
         "url": "https://github.com/sponsors/ljharb"
171 755
       }
172 756
     },
757
+    "node_modules/semver": {
758
+      "version": "6.3.1",
759
+      "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
760
+      "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
761
+      "dev": true,
762
+      "bin": {
763
+        "semver": "bin/semver.js"
764
+      }
765
+    },
173 766
     "node_modules/set-function-length": {
174 767
       "version": "1.2.2",
175 768
       "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
@@ -207,6 +800,44 @@
207 800
       "version": "1.10.0",
208 801
       "resolved": "https://registry.npmjs.org/tdesign-miniprogram/-/tdesign-miniprogram-1.10.0.tgz",
209 802
       "integrity": "sha512-t0K396qHp1wJdm52rKfu2gEQesR1rnwfzM6hsPdPAkkni4iFGRns/jRNGVQE3fyVfD8GBzREKdIiuR0XbCieIA=="
803
+    },
804
+    "node_modules/update-browserslist-db": {
805
+      "version": "1.1.3",
806
+      "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz",
807
+      "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==",
808
+      "dev": true,
809
+      "funding": [
810
+        {
811
+          "type": "opencollective",
812
+          "url": "https://opencollective.com/browserslist"
813
+        },
814
+        {
815
+          "type": "tidelift",
816
+          "url": "https://tidelift.com/funding/github/npm/browserslist"
817
+        },
818
+        {
819
+          "type": "github",
820
+          "url": "https://github.com/sponsors/ai"
821
+        }
822
+      ],
823
+      "peer": true,
824
+      "dependencies": {
825
+        "escalade": "^3.2.0",
826
+        "picocolors": "^1.1.1"
827
+      },
828
+      "bin": {
829
+        "update-browserslist-db": "cli.js"
830
+      },
831
+      "peerDependencies": {
832
+        "browserslist": ">= 4.21.0"
833
+      }
834
+    },
835
+    "node_modules/yallist": {
836
+      "version": "3.1.1",
837
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
838
+      "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
839
+      "dev": true,
840
+      "peer": true
210 841
     }
211 842
   }
212 843
 }

+ 22
- 0
node_modules/@babel/code-frame/LICENSE View File

@@ -0,0 +1,22 @@
1
+MIT License
2
+
3
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining
6
+a copy of this software and associated documentation files (the
7
+"Software"), to deal in the Software without restriction, including
8
+without limitation the rights to use, copy, modify, merge, publish,
9
+distribute, sublicense, and/or sell copies of the Software, and to
10
+permit persons to whom the Software is furnished to do so, subject to
11
+the following conditions:
12
+
13
+The above copyright notice and this permission notice shall be
14
+included in all copies or substantial portions of the Software.
15
+
16
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 19
- 0
node_modules/@babel/code-frame/README.md View File

@@ -0,0 +1,19 @@
1
+# @babel/code-frame
2
+
3
+> Generate errors that contain a code frame that point to source locations.
4
+
5
+See our website [@babel/code-frame](https://babeljs.io/docs/babel-code-frame) for more information.
6
+
7
+## Install
8
+
9
+Using npm:
10
+
11
+```sh
12
+npm install --save-dev @babel/code-frame
13
+```
14
+
15
+or using yarn:
16
+
17
+```sh
18
+yarn add @babel/code-frame --dev
19
+```

+ 216
- 0
node_modules/@babel/code-frame/lib/index.js View File

@@ -0,0 +1,216 @@
1
+'use strict';
2
+
3
+Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+var picocolors = require('picocolors');
6
+var jsTokens = require('js-tokens');
7
+var helperValidatorIdentifier = require('@babel/helper-validator-identifier');
8
+
9
+function isColorSupported() {
10
+  return (typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported
11
+  );
12
+}
13
+const compose = (f, g) => v => f(g(v));
14
+function buildDefs(colors) {
15
+  return {
16
+    keyword: colors.cyan,
17
+    capitalized: colors.yellow,
18
+    jsxIdentifier: colors.yellow,
19
+    punctuator: colors.yellow,
20
+    number: colors.magenta,
21
+    string: colors.green,
22
+    regex: colors.magenta,
23
+    comment: colors.gray,
24
+    invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
25
+    gutter: colors.gray,
26
+    marker: compose(colors.red, colors.bold),
27
+    message: compose(colors.red, colors.bold),
28
+    reset: colors.reset
29
+  };
30
+}
31
+const defsOn = buildDefs(picocolors.createColors(true));
32
+const defsOff = buildDefs(picocolors.createColors(false));
33
+function getDefs(enabled) {
34
+  return enabled ? defsOn : defsOff;
35
+}
36
+
37
+const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]);
38
+const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
39
+const BRACKET = /^[()[\]{}]$/;
40
+let tokenize;
41
+{
42
+  const JSX_TAG = /^[a-z][\w-]*$/i;
43
+  const getTokenType = function (token, offset, text) {
44
+    if (token.type === "name") {
45
+      if (helperValidatorIdentifier.isKeyword(token.value) || helperValidatorIdentifier.isStrictReservedWord(token.value, true) || sometimesKeywords.has(token.value)) {
46
+        return "keyword";
47
+      }
48
+      if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
49
+        return "jsxIdentifier";
50
+      }
51
+      if (token.value[0] !== token.value[0].toLowerCase()) {
52
+        return "capitalized";
53
+      }
54
+    }
55
+    if (token.type === "punctuator" && BRACKET.test(token.value)) {
56
+      return "bracket";
57
+    }
58
+    if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
59
+      return "punctuator";
60
+    }
61
+    return token.type;
62
+  };
63
+  tokenize = function* (text) {
64
+    let match;
65
+    while (match = jsTokens.default.exec(text)) {
66
+      const token = jsTokens.matchToToken(match);
67
+      yield {
68
+        type: getTokenType(token, match.index, text),
69
+        value: token.value
70
+      };
71
+    }
72
+  };
73
+}
74
+function highlight(text) {
75
+  if (text === "") return "";
76
+  const defs = getDefs(true);
77
+  let highlighted = "";
78
+  for (const {
79
+    type,
80
+    value
81
+  } of tokenize(text)) {
82
+    if (type in defs) {
83
+      highlighted += value.split(NEWLINE$1).map(str => defs[type](str)).join("\n");
84
+    } else {
85
+      highlighted += value;
86
+    }
87
+  }
88
+  return highlighted;
89
+}
90
+
91
+let deprecationWarningShown = false;
92
+const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
93
+function getMarkerLines(loc, source, opts) {
94
+  const startLoc = Object.assign({
95
+    column: 0,
96
+    line: -1
97
+  }, loc.start);
98
+  const endLoc = Object.assign({}, startLoc, loc.end);
99
+  const {
100
+    linesAbove = 2,
101
+    linesBelow = 3
102
+  } = opts || {};
103
+  const startLine = startLoc.line;
104
+  const startColumn = startLoc.column;
105
+  const endLine = endLoc.line;
106
+  const endColumn = endLoc.column;
107
+  let start = Math.max(startLine - (linesAbove + 1), 0);
108
+  let end = Math.min(source.length, endLine + linesBelow);
109
+  if (startLine === -1) {
110
+    start = 0;
111
+  }
112
+  if (endLine === -1) {
113
+    end = source.length;
114
+  }
115
+  const lineDiff = endLine - startLine;
116
+  const markerLines = {};
117
+  if (lineDiff) {
118
+    for (let i = 0; i <= lineDiff; i++) {
119
+      const lineNumber = i + startLine;
120
+      if (!startColumn) {
121
+        markerLines[lineNumber] = true;
122
+      } else if (i === 0) {
123
+        const sourceLength = source[lineNumber - 1].length;
124
+        markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
125
+      } else if (i === lineDiff) {
126
+        markerLines[lineNumber] = [0, endColumn];
127
+      } else {
128
+        const sourceLength = source[lineNumber - i].length;
129
+        markerLines[lineNumber] = [0, sourceLength];
130
+      }
131
+    }
132
+  } else {
133
+    if (startColumn === endColumn) {
134
+      if (startColumn) {
135
+        markerLines[startLine] = [startColumn, 0];
136
+      } else {
137
+        markerLines[startLine] = true;
138
+      }
139
+    } else {
140
+      markerLines[startLine] = [startColumn, endColumn - startColumn];
141
+    }
142
+  }
143
+  return {
144
+    start,
145
+    end,
146
+    markerLines
147
+  };
148
+}
149
+function codeFrameColumns(rawLines, loc, opts = {}) {
150
+  const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
151
+  const defs = getDefs(shouldHighlight);
152
+  const lines = rawLines.split(NEWLINE);
153
+  const {
154
+    start,
155
+    end,
156
+    markerLines
157
+  } = getMarkerLines(loc, lines, opts);
158
+  const hasColumns = loc.start && typeof loc.start.column === "number";
159
+  const numberMaxWidth = String(end).length;
160
+  const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;
161
+  let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => {
162
+    const number = start + 1 + index;
163
+    const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
164
+    const gutter = ` ${paddedNumber} |`;
165
+    const hasMarker = markerLines[number];
166
+    const lastMarkerLine = !markerLines[number + 1];
167
+    if (hasMarker) {
168
+      let markerLine = "";
169
+      if (Array.isArray(hasMarker)) {
170
+        const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
171
+        const numberOfMarkers = hasMarker[1] || 1;
172
+        markerLine = ["\n ", defs.gutter(gutter.replace(/\d/g, " ")), " ", markerSpacing, defs.marker("^").repeat(numberOfMarkers)].join("");
173
+        if (lastMarkerLine && opts.message) {
174
+          markerLine += " " + defs.message(opts.message);
175
+        }
176
+      }
177
+      return [defs.marker(">"), defs.gutter(gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
178
+    } else {
179
+      return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
180
+    }
181
+  }).join("\n");
182
+  if (opts.message && !hasColumns) {
183
+    frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
184
+  }
185
+  if (shouldHighlight) {
186
+    return defs.reset(frame);
187
+  } else {
188
+    return frame;
189
+  }
190
+}
191
+function index (rawLines, lineNumber, colNumber, opts = {}) {
192
+  if (!deprecationWarningShown) {
193
+    deprecationWarningShown = true;
194
+    const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
195
+    if (process.emitWarning) {
196
+      process.emitWarning(message, "DeprecationWarning");
197
+    } else {
198
+      const deprecationError = new Error(message);
199
+      deprecationError.name = "DeprecationWarning";
200
+      console.warn(new Error(message));
201
+    }
202
+  }
203
+  colNumber = Math.max(colNumber, 0);
204
+  const location = {
205
+    start: {
206
+      column: colNumber,
207
+      line: lineNumber
208
+    }
209
+  };
210
+  return codeFrameColumns(rawLines, location, opts);
211
+}
212
+
213
+exports.codeFrameColumns = codeFrameColumns;
214
+exports.default = index;
215
+exports.highlight = highlight;
216
+//# sourceMappingURL=index.js.map

+ 1
- 0
node_modules/@babel/code-frame/lib/index.js.map
File diff suppressed because it is too large
View File


+ 31
- 0
node_modules/@babel/code-frame/package.json View File

@@ -0,0 +1,31 @@
1
+{
2
+  "name": "@babel/code-frame",
3
+  "version": "7.27.1",
4
+  "description": "Generate errors that contain a code frame that point to source locations.",
5
+  "author": "The Babel Team (https://babel.dev/team)",
6
+  "homepage": "https://babel.dev/docs/en/next/babel-code-frame",
7
+  "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen",
8
+  "license": "MIT",
9
+  "publishConfig": {
10
+    "access": "public"
11
+  },
12
+  "repository": {
13
+    "type": "git",
14
+    "url": "https://github.com/babel/babel.git",
15
+    "directory": "packages/babel-code-frame"
16
+  },
17
+  "main": "./lib/index.js",
18
+  "dependencies": {
19
+    "@babel/helper-validator-identifier": "^7.27.1",
20
+    "js-tokens": "^4.0.0",
21
+    "picocolors": "^1.1.1"
22
+  },
23
+  "devDependencies": {
24
+    "import-meta-resolve": "^4.1.0",
25
+    "strip-ansi": "^4.0.0"
26
+  },
27
+  "engines": {
28
+    "node": ">=6.9.0"
29
+  },
30
+  "type": "commonjs"
31
+}

+ 22
- 0
node_modules/@babel/compat-data/LICENSE View File

@@ -0,0 +1,22 @@
1
+MIT License
2
+
3
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining
6
+a copy of this software and associated documentation files (the
7
+"Software"), to deal in the Software without restriction, including
8
+without limitation the rights to use, copy, modify, merge, publish,
9
+distribute, sublicense, and/or sell copies of the Software, and to
10
+permit persons to whom the Software is furnished to do so, subject to
11
+the following conditions:
12
+
13
+The above copyright notice and this permission notice shall be
14
+included in all copies or substantial portions of the Software.
15
+
16
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 19
- 0
node_modules/@babel/compat-data/README.md View File

@@ -0,0 +1,19 @@
1
+# @babel/compat-data
2
+
3
+> The compat-data to determine required Babel plugins
4
+
5
+See our website [@babel/compat-data](https://babeljs.io/docs/babel-compat-data) for more information.
6
+
7
+## Install
8
+
9
+Using npm:
10
+
11
+```sh
12
+npm install --save @babel/compat-data
13
+```
14
+
15
+or using yarn:
16
+
17
+```sh
18
+yarn add @babel/compat-data
19
+```

+ 2
- 0
node_modules/@babel/compat-data/corejs2-built-ins.js View File

@@ -0,0 +1,2 @@
1
+// Todo (Babel 8): remove this file as Babel 8 drop support of core-js 2
2
+module.exports = require("./data/corejs2-built-ins.json");

+ 2
- 0
node_modules/@babel/compat-data/corejs3-shipped-proposals.js View File

@@ -0,0 +1,2 @@
1
+// Todo (Babel 8): remove this file now that it is included in babel-plugin-polyfill-corejs3
2
+module.exports = require("./data/corejs3-shipped-proposals.json");

+ 2106
- 0
node_modules/@babel/compat-data/data/corejs2-built-ins.json
File diff suppressed because it is too large
View File


+ 5
- 0
node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json View File

@@ -0,0 +1,5 @@
1
+[
2
+  "esnext.promise.all-settled",
3
+  "esnext.string.match-all",
4
+  "esnext.global-this"
5
+]

+ 18
- 0
node_modules/@babel/compat-data/data/native-modules.json View File

@@ -0,0 +1,18 @@
1
+{
2
+  "es6.module": {
3
+    "chrome": "61",
4
+    "and_chr": "61",
5
+    "edge": "16",
6
+    "firefox": "60",
7
+    "and_ff": "60",
8
+    "node": "13.2.0",
9
+    "opera": "48",
10
+    "op_mob": "45",
11
+    "safari": "10.1",
12
+    "ios": "10.3",
13
+    "samsung": "8.2",
14
+    "android": "61",
15
+    "electron": "2.0",
16
+    "ios_saf": "10.3"
17
+  }
18
+}

+ 35
- 0
node_modules/@babel/compat-data/data/overlapping-plugins.json View File

@@ -0,0 +1,35 @@
1
+{
2
+  "transform-async-to-generator": [
3
+    "bugfix/transform-async-arrows-in-class"
4
+  ],
5
+  "transform-parameters": [
6
+    "bugfix/transform-edge-default-parameters",
7
+    "bugfix/transform-safari-id-destructuring-collision-in-function-expression"
8
+  ],
9
+  "transform-function-name": [
10
+    "bugfix/transform-edge-function-name"
11
+  ],
12
+  "transform-block-scoping": [
13
+    "bugfix/transform-safari-block-shadowing",
14
+    "bugfix/transform-safari-for-shadowing"
15
+  ],
16
+  "transform-template-literals": [
17
+    "bugfix/transform-tagged-template-caching"
18
+  ],
19
+  "transform-optional-chaining": [
20
+    "bugfix/transform-v8-spread-parameters-in-optional-chaining"
21
+  ],
22
+  "proposal-optional-chaining": [
23
+    "bugfix/transform-v8-spread-parameters-in-optional-chaining"
24
+  ],
25
+  "transform-class-properties": [
26
+    "bugfix/transform-v8-static-class-fields-redefine-readonly",
27
+    "bugfix/transform-firefox-class-in-computed-class-key",
28
+    "bugfix/transform-safari-class-field-initializer-scope"
29
+  ],
30
+  "proposal-class-properties": [
31
+    "bugfix/transform-v8-static-class-fields-redefine-readonly",
32
+    "bugfix/transform-firefox-class-in-computed-class-key",
33
+    "bugfix/transform-safari-class-field-initializer-scope"
34
+  ]
35
+}

+ 203
- 0
node_modules/@babel/compat-data/data/plugin-bugfixes.json View File

@@ -0,0 +1,203 @@
1
+{
2
+  "bugfix/transform-async-arrows-in-class": {
3
+    "chrome": "55",
4
+    "opera": "42",
5
+    "edge": "15",
6
+    "firefox": "52",
7
+    "safari": "11",
8
+    "node": "7.6",
9
+    "deno": "1",
10
+    "ios": "11",
11
+    "samsung": "6",
12
+    "opera_mobile": "42",
13
+    "electron": "1.6"
14
+  },
15
+  "bugfix/transform-edge-default-parameters": {
16
+    "chrome": "49",
17
+    "opera": "36",
18
+    "edge": "18",
19
+    "firefox": "52",
20
+    "safari": "10",
21
+    "node": "6",
22
+    "deno": "1",
23
+    "ios": "10",
24
+    "samsung": "5",
25
+    "opera_mobile": "36",
26
+    "electron": "0.37"
27
+  },
28
+  "bugfix/transform-edge-function-name": {
29
+    "chrome": "51",
30
+    "opera": "38",
31
+    "edge": "79",
32
+    "firefox": "53",
33
+    "safari": "10",
34
+    "node": "6.5",
35
+    "deno": "1",
36
+    "ios": "10",
37
+    "samsung": "5",
38
+    "opera_mobile": "41",
39
+    "electron": "1.2"
40
+  },
41
+  "bugfix/transform-safari-block-shadowing": {
42
+    "chrome": "49",
43
+    "opera": "36",
44
+    "edge": "12",
45
+    "firefox": "44",
46
+    "safari": "11",
47
+    "node": "6",
48
+    "deno": "1",
49
+    "ie": "11",
50
+    "ios": "11",
51
+    "samsung": "5",
52
+    "opera_mobile": "36",
53
+    "electron": "0.37"
54
+  },
55
+  "bugfix/transform-safari-for-shadowing": {
56
+    "chrome": "49",
57
+    "opera": "36",
58
+    "edge": "12",
59
+    "firefox": "4",
60
+    "safari": "11",
61
+    "node": "6",
62
+    "deno": "1",
63
+    "ie": "11",
64
+    "ios": "11",
65
+    "samsung": "5",
66
+    "rhino": "1.7.13",
67
+    "opera_mobile": "36",
68
+    "electron": "0.37"
69
+  },
70
+  "bugfix/transform-safari-id-destructuring-collision-in-function-expression": {
71
+    "chrome": "49",
72
+    "opera": "36",
73
+    "edge": "14",
74
+    "firefox": "2",
75
+    "safari": "16.3",
76
+    "node": "6",
77
+    "deno": "1",
78
+    "ios": "16.3",
79
+    "samsung": "5",
80
+    "opera_mobile": "36",
81
+    "electron": "0.37"
82
+  },
83
+  "bugfix/transform-tagged-template-caching": {
84
+    "chrome": "41",
85
+    "opera": "28",
86
+    "edge": "12",
87
+    "firefox": "34",
88
+    "safari": "13",
89
+    "node": "4",
90
+    "deno": "1",
91
+    "ios": "13",
92
+    "samsung": "3.4",
93
+    "rhino": "1.7.14",
94
+    "opera_mobile": "28",
95
+    "electron": "0.21"
96
+  },
97
+  "bugfix/transform-v8-spread-parameters-in-optional-chaining": {
98
+    "chrome": "91",
99
+    "opera": "77",
100
+    "edge": "91",
101
+    "firefox": "74",
102
+    "safari": "13.1",
103
+    "node": "16.9",
104
+    "deno": "1.9",
105
+    "ios": "13.4",
106
+    "samsung": "16",
107
+    "opera_mobile": "64",
108
+    "electron": "13.0"
109
+  },
110
+  "transform-optional-chaining": {
111
+    "chrome": "80",
112
+    "opera": "67",
113
+    "edge": "80",
114
+    "firefox": "74",
115
+    "safari": "13.1",
116
+    "node": "14",
117
+    "deno": "1",
118
+    "ios": "13.4",
119
+    "samsung": "13",
120
+    "rhino": "1.8",
121
+    "opera_mobile": "57",
122
+    "electron": "8.0"
123
+  },
124
+  "proposal-optional-chaining": {
125
+    "chrome": "80",
126
+    "opera": "67",
127
+    "edge": "80",
128
+    "firefox": "74",
129
+    "safari": "13.1",
130
+    "node": "14",
131
+    "deno": "1",
132
+    "ios": "13.4",
133
+    "samsung": "13",
134
+    "rhino": "1.8",
135
+    "opera_mobile": "57",
136
+    "electron": "8.0"
137
+  },
138
+  "transform-parameters": {
139
+    "chrome": "49",
140
+    "opera": "36",
141
+    "edge": "15",
142
+    "firefox": "52",
143
+    "safari": "10",
144
+    "node": "6",
145
+    "deno": "1",
146
+    "ios": "10",
147
+    "samsung": "5",
148
+    "opera_mobile": "36",
149
+    "electron": "0.37"
150
+  },
151
+  "transform-async-to-generator": {
152
+    "chrome": "55",
153
+    "opera": "42",
154
+    "edge": "15",
155
+    "firefox": "52",
156
+    "safari": "10.1",
157
+    "node": "7.6",
158
+    "deno": "1",
159
+    "ios": "10.3",
160
+    "samsung": "6",
161
+    "opera_mobile": "42",
162
+    "electron": "1.6"
163
+  },
164
+  "transform-template-literals": {
165
+    "chrome": "41",
166
+    "opera": "28",
167
+    "edge": "13",
168
+    "firefox": "34",
169
+    "safari": "9",
170
+    "node": "4",
171
+    "deno": "1",
172
+    "ios": "9",
173
+    "samsung": "3.4",
174
+    "opera_mobile": "28",
175
+    "electron": "0.21"
176
+  },
177
+  "transform-function-name": {
178
+    "chrome": "51",
179
+    "opera": "38",
180
+    "edge": "14",
181
+    "firefox": "53",
182
+    "safari": "10",
183
+    "node": "6.5",
184
+    "deno": "1",
185
+    "ios": "10",
186
+    "samsung": "5",
187
+    "opera_mobile": "41",
188
+    "electron": "1.2"
189
+  },
190
+  "transform-block-scoping": {
191
+    "chrome": "50",
192
+    "opera": "37",
193
+    "edge": "14",
194
+    "firefox": "53",
195
+    "safari": "10",
196
+    "node": "6",
197
+    "deno": "1",
198
+    "ios": "10",
199
+    "samsung": "5",
200
+    "opera_mobile": "37",
201
+    "electron": "1.1"
202
+  }
203
+}

+ 838
- 0
node_modules/@babel/compat-data/data/plugins.json View File

@@ -0,0 +1,838 @@
1
+{
2
+  "transform-explicit-resource-management": {
3
+    "chrome": "134",
4
+    "edge": "134",
5
+    "firefox": "141",
6
+    "node": "24",
7
+    "electron": "35.0"
8
+  },
9
+  "transform-duplicate-named-capturing-groups-regex": {
10
+    "chrome": "126",
11
+    "opera": "112",
12
+    "edge": "126",
13
+    "firefox": "129",
14
+    "safari": "17.4",
15
+    "node": "23",
16
+    "ios": "17.4",
17
+    "electron": "31.0"
18
+  },
19
+  "transform-regexp-modifiers": {
20
+    "chrome": "125",
21
+    "opera": "111",
22
+    "edge": "125",
23
+    "firefox": "132",
24
+    "node": "23",
25
+    "samsung": "27",
26
+    "electron": "31.0"
27
+  },
28
+  "transform-unicode-sets-regex": {
29
+    "chrome": "112",
30
+    "opera": "98",
31
+    "edge": "112",
32
+    "firefox": "116",
33
+    "safari": "17",
34
+    "node": "20",
35
+    "deno": "1.32",
36
+    "ios": "17",
37
+    "samsung": "23",
38
+    "opera_mobile": "75",
39
+    "electron": "24.0"
40
+  },
41
+  "bugfix/transform-v8-static-class-fields-redefine-readonly": {
42
+    "chrome": "98",
43
+    "opera": "84",
44
+    "edge": "98",
45
+    "firefox": "75",
46
+    "safari": "15",
47
+    "node": "12",
48
+    "deno": "1.18",
49
+    "ios": "15",
50
+    "samsung": "11",
51
+    "opera_mobile": "52",
52
+    "electron": "17.0"
53
+  },
54
+  "bugfix/transform-firefox-class-in-computed-class-key": {
55
+    "chrome": "74",
56
+    "opera": "62",
57
+    "edge": "79",
58
+    "firefox": "126",
59
+    "safari": "16",
60
+    "node": "12",
61
+    "deno": "1",
62
+    "ios": "16",
63
+    "samsung": "11",
64
+    "opera_mobile": "53",
65
+    "electron": "6.0"
66
+  },
67
+  "bugfix/transform-safari-class-field-initializer-scope": {
68
+    "chrome": "74",
69
+    "opera": "62",
70
+    "edge": "79",
71
+    "firefox": "69",
72
+    "safari": "16",
73
+    "node": "12",
74
+    "deno": "1",
75
+    "ios": "16",
76
+    "samsung": "11",
77
+    "opera_mobile": "53",
78
+    "electron": "6.0"
79
+  },
80
+  "transform-class-static-block": {
81
+    "chrome": "94",
82
+    "opera": "80",
83
+    "edge": "94",
84
+    "firefox": "93",
85
+    "safari": "16.4",
86
+    "node": "16.11",
87
+    "deno": "1.14",
88
+    "ios": "16.4",
89
+    "samsung": "17",
90
+    "opera_mobile": "66",
91
+    "electron": "15.0"
92
+  },
93
+  "proposal-class-static-block": {
94
+    "chrome": "94",
95
+    "opera": "80",
96
+    "edge": "94",
97
+    "firefox": "93",
98
+    "safari": "16.4",
99
+    "node": "16.11",
100
+    "deno": "1.14",
101
+    "ios": "16.4",
102
+    "samsung": "17",
103
+    "opera_mobile": "66",
104
+    "electron": "15.0"
105
+  },
106
+  "transform-private-property-in-object": {
107
+    "chrome": "91",
108
+    "opera": "77",
109
+    "edge": "91",
110
+    "firefox": "90",
111
+    "safari": "15",
112
+    "node": "16.9",
113
+    "deno": "1.9",
114
+    "ios": "15",
115
+    "samsung": "16",
116
+    "opera_mobile": "64",
117
+    "electron": "13.0"
118
+  },
119
+  "proposal-private-property-in-object": {
120
+    "chrome": "91",
121
+    "opera": "77",
122
+    "edge": "91",
123
+    "firefox": "90",
124
+    "safari": "15",
125
+    "node": "16.9",
126
+    "deno": "1.9",
127
+    "ios": "15",
128
+    "samsung": "16",
129
+    "opera_mobile": "64",
130
+    "electron": "13.0"
131
+  },
132
+  "transform-class-properties": {
133
+    "chrome": "74",
134
+    "opera": "62",
135
+    "edge": "79",
136
+    "firefox": "90",
137
+    "safari": "14.1",
138
+    "node": "12",
139
+    "deno": "1",
140
+    "ios": "14.5",
141
+    "samsung": "11",
142
+    "opera_mobile": "53",
143
+    "electron": "6.0"
144
+  },
145
+  "proposal-class-properties": {
146
+    "chrome": "74",
147
+    "opera": "62",
148
+    "edge": "79",
149
+    "firefox": "90",
150
+    "safari": "14.1",
151
+    "node": "12",
152
+    "deno": "1",
153
+    "ios": "14.5",
154
+    "samsung": "11",
155
+    "opera_mobile": "53",
156
+    "electron": "6.0"
157
+  },
158
+  "transform-private-methods": {
159
+    "chrome": "84",
160
+    "opera": "70",
161
+    "edge": "84",
162
+    "firefox": "90",
163
+    "safari": "15",
164
+    "node": "14.6",
165
+    "deno": "1",
166
+    "ios": "15",
167
+    "samsung": "14",
168
+    "opera_mobile": "60",
169
+    "electron": "10.0"
170
+  },
171
+  "proposal-private-methods": {
172
+    "chrome": "84",
173
+    "opera": "70",
174
+    "edge": "84",
175
+    "firefox": "90",
176
+    "safari": "15",
177
+    "node": "14.6",
178
+    "deno": "1",
179
+    "ios": "15",
180
+    "samsung": "14",
181
+    "opera_mobile": "60",
182
+    "electron": "10.0"
183
+  },
184
+  "transform-numeric-separator": {
185
+    "chrome": "75",
186
+    "opera": "62",
187
+    "edge": "79",
188
+    "firefox": "70",
189
+    "safari": "13",
190
+    "node": "12.5",
191
+    "deno": "1",
192
+    "ios": "13",
193
+    "samsung": "11",
194
+    "rhino": "1.7.14",
195
+    "opera_mobile": "54",
196
+    "electron": "6.0"
197
+  },
198
+  "proposal-numeric-separator": {
199
+    "chrome": "75",
200
+    "opera": "62",
201
+    "edge": "79",
202
+    "firefox": "70",
203
+    "safari": "13",
204
+    "node": "12.5",
205
+    "deno": "1",
206
+    "ios": "13",
207
+    "samsung": "11",
208
+    "rhino": "1.7.14",
209
+    "opera_mobile": "54",
210
+    "electron": "6.0"
211
+  },
212
+  "transform-logical-assignment-operators": {
213
+    "chrome": "85",
214
+    "opera": "71",
215
+    "edge": "85",
216
+    "firefox": "79",
217
+    "safari": "14",
218
+    "node": "15",
219
+    "deno": "1.2",
220
+    "ios": "14",
221
+    "samsung": "14",
222
+    "opera_mobile": "60",
223
+    "electron": "10.0"
224
+  },
225
+  "proposal-logical-assignment-operators": {
226
+    "chrome": "85",
227
+    "opera": "71",
228
+    "edge": "85",
229
+    "firefox": "79",
230
+    "safari": "14",
231
+    "node": "15",
232
+    "deno": "1.2",
233
+    "ios": "14",
234
+    "samsung": "14",
235
+    "opera_mobile": "60",
236
+    "electron": "10.0"
237
+  },
238
+  "transform-nullish-coalescing-operator": {
239
+    "chrome": "80",
240
+    "opera": "67",
241
+    "edge": "80",
242
+    "firefox": "72",
243
+    "safari": "13.1",
244
+    "node": "14",
245
+    "deno": "1",
246
+    "ios": "13.4",
247
+    "samsung": "13",
248
+    "rhino": "1.8",
249
+    "opera_mobile": "57",
250
+    "electron": "8.0"
251
+  },
252
+  "proposal-nullish-coalescing-operator": {
253
+    "chrome": "80",
254
+    "opera": "67",
255
+    "edge": "80",
256
+    "firefox": "72",
257
+    "safari": "13.1",
258
+    "node": "14",
259
+    "deno": "1",
260
+    "ios": "13.4",
261
+    "samsung": "13",
262
+    "rhino": "1.8",
263
+    "opera_mobile": "57",
264
+    "electron": "8.0"
265
+  },
266
+  "transform-optional-chaining": {
267
+    "chrome": "91",
268
+    "opera": "77",
269
+    "edge": "91",
270
+    "firefox": "74",
271
+    "safari": "13.1",
272
+    "node": "16.9",
273
+    "deno": "1.9",
274
+    "ios": "13.4",
275
+    "samsung": "16",
276
+    "opera_mobile": "64",
277
+    "electron": "13.0"
278
+  },
279
+  "proposal-optional-chaining": {
280
+    "chrome": "91",
281
+    "opera": "77",
282
+    "edge": "91",
283
+    "firefox": "74",
284
+    "safari": "13.1",
285
+    "node": "16.9",
286
+    "deno": "1.9",
287
+    "ios": "13.4",
288
+    "samsung": "16",
289
+    "opera_mobile": "64",
290
+    "electron": "13.0"
291
+  },
292
+  "transform-json-strings": {
293
+    "chrome": "66",
294
+    "opera": "53",
295
+    "edge": "79",
296
+    "firefox": "62",
297
+    "safari": "12",
298
+    "node": "10",
299
+    "deno": "1",
300
+    "ios": "12",
301
+    "samsung": "9",
302
+    "rhino": "1.7.14",
303
+    "opera_mobile": "47",
304
+    "electron": "3.0"
305
+  },
306
+  "proposal-json-strings": {
307
+    "chrome": "66",
308
+    "opera": "53",
309
+    "edge": "79",
310
+    "firefox": "62",
311
+    "safari": "12",
312
+    "node": "10",
313
+    "deno": "1",
314
+    "ios": "12",
315
+    "samsung": "9",
316
+    "rhino": "1.7.14",
317
+    "opera_mobile": "47",
318
+    "electron": "3.0"
319
+  },
320
+  "transform-optional-catch-binding": {
321
+    "chrome": "66",
322
+    "opera": "53",
323
+    "edge": "79",
324
+    "firefox": "58",
325
+    "safari": "11.1",
326
+    "node": "10",
327
+    "deno": "1",
328
+    "ios": "11.3",
329
+    "samsung": "9",
330
+    "opera_mobile": "47",
331
+    "electron": "3.0"
332
+  },
333
+  "proposal-optional-catch-binding": {
334
+    "chrome": "66",
335
+    "opera": "53",
336
+    "edge": "79",
337
+    "firefox": "58",
338
+    "safari": "11.1",
339
+    "node": "10",
340
+    "deno": "1",
341
+    "ios": "11.3",
342
+    "samsung": "9",
343
+    "opera_mobile": "47",
344
+    "electron": "3.0"
345
+  },
346
+  "transform-parameters": {
347
+    "chrome": "49",
348
+    "opera": "36",
349
+    "edge": "18",
350
+    "firefox": "52",
351
+    "safari": "16.3",
352
+    "node": "6",
353
+    "deno": "1",
354
+    "ios": "16.3",
355
+    "samsung": "5",
356
+    "opera_mobile": "36",
357
+    "electron": "0.37"
358
+  },
359
+  "transform-async-generator-functions": {
360
+    "chrome": "63",
361
+    "opera": "50",
362
+    "edge": "79",
363
+    "firefox": "57",
364
+    "safari": "12",
365
+    "node": "10",
366
+    "deno": "1",
367
+    "ios": "12",
368
+    "samsung": "8",
369
+    "opera_mobile": "46",
370
+    "electron": "3.0"
371
+  },
372
+  "proposal-async-generator-functions": {
373
+    "chrome": "63",
374
+    "opera": "50",
375
+    "edge": "79",
376
+    "firefox": "57",
377
+    "safari": "12",
378
+    "node": "10",
379
+    "deno": "1",
380
+    "ios": "12",
381
+    "samsung": "8",
382
+    "opera_mobile": "46",
383
+    "electron": "3.0"
384
+  },
385
+  "transform-object-rest-spread": {
386
+    "chrome": "60",
387
+    "opera": "47",
388
+    "edge": "79",
389
+    "firefox": "55",
390
+    "safari": "11.1",
391
+    "node": "8.3",
392
+    "deno": "1",
393
+    "ios": "11.3",
394
+    "samsung": "8",
395
+    "opera_mobile": "44",
396
+    "electron": "2.0"
397
+  },
398
+  "proposal-object-rest-spread": {
399
+    "chrome": "60",
400
+    "opera": "47",
401
+    "edge": "79",
402
+    "firefox": "55",
403
+    "safari": "11.1",
404
+    "node": "8.3",
405
+    "deno": "1",
406
+    "ios": "11.3",
407
+    "samsung": "8",
408
+    "opera_mobile": "44",
409
+    "electron": "2.0"
410
+  },
411
+  "transform-dotall-regex": {
412
+    "chrome": "62",
413
+    "opera": "49",
414
+    "edge": "79",
415
+    "firefox": "78",
416
+    "safari": "11.1",
417
+    "node": "8.10",
418
+    "deno": "1",
419
+    "ios": "11.3",
420
+    "samsung": "8",
421
+    "rhino": "1.7.15",
422
+    "opera_mobile": "46",
423
+    "electron": "3.0"
424
+  },
425
+  "transform-unicode-property-regex": {
426
+    "chrome": "64",
427
+    "opera": "51",
428
+    "edge": "79",
429
+    "firefox": "78",
430
+    "safari": "11.1",
431
+    "node": "10",
432
+    "deno": "1",
433
+    "ios": "11.3",
434
+    "samsung": "9",
435
+    "opera_mobile": "47",
436
+    "electron": "3.0"
437
+  },
438
+  "proposal-unicode-property-regex": {
439
+    "chrome": "64",
440
+    "opera": "51",
441
+    "edge": "79",
442
+    "firefox": "78",
443
+    "safari": "11.1",
444
+    "node": "10",
445
+    "deno": "1",
446
+    "ios": "11.3",
447
+    "samsung": "9",
448
+    "opera_mobile": "47",
449
+    "electron": "3.0"
450
+  },
451
+  "transform-named-capturing-groups-regex": {
452
+    "chrome": "64",
453
+    "opera": "51",
454
+    "edge": "79",
455
+    "firefox": "78",
456
+    "safari": "11.1",
457
+    "node": "10",
458
+    "deno": "1",
459
+    "ios": "11.3",
460
+    "samsung": "9",
461
+    "opera_mobile": "47",
462
+    "electron": "3.0"
463
+  },
464
+  "transform-async-to-generator": {
465
+    "chrome": "55",
466
+    "opera": "42",
467
+    "edge": "15",
468
+    "firefox": "52",
469
+    "safari": "11",
470
+    "node": "7.6",
471
+    "deno": "1",
472
+    "ios": "11",
473
+    "samsung": "6",
474
+    "opera_mobile": "42",
475
+    "electron": "1.6"
476
+  },
477
+  "transform-exponentiation-operator": {
478
+    "chrome": "52",
479
+    "opera": "39",
480
+    "edge": "14",
481
+    "firefox": "52",
482
+    "safari": "10.1",
483
+    "node": "7",
484
+    "deno": "1",
485
+    "ios": "10.3",
486
+    "samsung": "6",
487
+    "rhino": "1.7.14",
488
+    "opera_mobile": "41",
489
+    "electron": "1.3"
490
+  },
491
+  "transform-template-literals": {
492
+    "chrome": "41",
493
+    "opera": "28",
494
+    "edge": "13",
495
+    "firefox": "34",
496
+    "safari": "13",
497
+    "node": "4",
498
+    "deno": "1",
499
+    "ios": "13",
500
+    "samsung": "3.4",
501
+    "opera_mobile": "28",
502
+    "electron": "0.21"
503
+  },
504
+  "transform-literals": {
505
+    "chrome": "44",
506
+    "opera": "31",
507
+    "edge": "12",
508
+    "firefox": "53",
509
+    "safari": "9",
510
+    "node": "4",
511
+    "deno": "1",
512
+    "ios": "9",
513
+    "samsung": "4",
514
+    "rhino": "1.7.15",
515
+    "opera_mobile": "32",
516
+    "electron": "0.30"
517
+  },
518
+  "transform-function-name": {
519
+    "chrome": "51",
520
+    "opera": "38",
521
+    "edge": "79",
522
+    "firefox": "53",
523
+    "safari": "10",
524
+    "node": "6.5",
525
+    "deno": "1",
526
+    "ios": "10",
527
+    "samsung": "5",
528
+    "opera_mobile": "41",
529
+    "electron": "1.2"
530
+  },
531
+  "transform-arrow-functions": {
532
+    "chrome": "47",
533
+    "opera": "34",
534
+    "edge": "13",
535
+    "firefox": "43",
536
+    "safari": "10",
537
+    "node": "6",
538
+    "deno": "1",
539
+    "ios": "10",
540
+    "samsung": "5",
541
+    "rhino": "1.7.13",
542
+    "opera_mobile": "34",
543
+    "electron": "0.36"
544
+  },
545
+  "transform-block-scoped-functions": {
546
+    "chrome": "41",
547
+    "opera": "28",
548
+    "edge": "12",
549
+    "firefox": "46",
550
+    "safari": "10",
551
+    "node": "4",
552
+    "deno": "1",
553
+    "ie": "11",
554
+    "ios": "10",
555
+    "samsung": "3.4",
556
+    "opera_mobile": "28",
557
+    "electron": "0.21"
558
+  },
559
+  "transform-classes": {
560
+    "chrome": "46",
561
+    "opera": "33",
562
+    "edge": "13",
563
+    "firefox": "45",
564
+    "safari": "10",
565
+    "node": "5",
566
+    "deno": "1",
567
+    "ios": "10",
568
+    "samsung": "5",
569
+    "opera_mobile": "33",
570
+    "electron": "0.36"
571
+  },
572
+  "transform-object-super": {
573
+    "chrome": "46",
574
+    "opera": "33",
575
+    "edge": "13",
576
+    "firefox": "45",
577
+    "safari": "10",
578
+    "node": "5",
579
+    "deno": "1",
580
+    "ios": "10",
581
+    "samsung": "5",
582
+    "opera_mobile": "33",
583
+    "electron": "0.36"
584
+  },
585
+  "transform-shorthand-properties": {
586
+    "chrome": "43",
587
+    "opera": "30",
588
+    "edge": "12",
589
+    "firefox": "33",
590
+    "safari": "9",
591
+    "node": "4",
592
+    "deno": "1",
593
+    "ios": "9",
594
+    "samsung": "4",
595
+    "rhino": "1.7.14",
596
+    "opera_mobile": "30",
597
+    "electron": "0.27"
598
+  },
599
+  "transform-duplicate-keys": {
600
+    "chrome": "42",
601
+    "opera": "29",
602
+    "edge": "12",
603
+    "firefox": "34",
604
+    "safari": "9",
605
+    "node": "4",
606
+    "deno": "1",
607
+    "ios": "9",
608
+    "samsung": "3.4",
609
+    "opera_mobile": "29",
610
+    "electron": "0.25"
611
+  },
612
+  "transform-computed-properties": {
613
+    "chrome": "44",
614
+    "opera": "31",
615
+    "edge": "12",
616
+    "firefox": "34",
617
+    "safari": "7.1",
618
+    "node": "4",
619
+    "deno": "1",
620
+    "ios": "8",
621
+    "samsung": "4",
622
+    "rhino": "1.8",
623
+    "opera_mobile": "32",
624
+    "electron": "0.30"
625
+  },
626
+  "transform-for-of": {
627
+    "chrome": "51",
628
+    "opera": "38",
629
+    "edge": "15",
630
+    "firefox": "53",
631
+    "safari": "10",
632
+    "node": "6.5",
633
+    "deno": "1",
634
+    "ios": "10",
635
+    "samsung": "5",
636
+    "opera_mobile": "41",
637
+    "electron": "1.2"
638
+  },
639
+  "transform-sticky-regex": {
640
+    "chrome": "49",
641
+    "opera": "36",
642
+    "edge": "13",
643
+    "firefox": "3",
644
+    "safari": "10",
645
+    "node": "6",
646
+    "deno": "1",
647
+    "ios": "10",
648
+    "samsung": "5",
649
+    "rhino": "1.7.15",
650
+    "opera_mobile": "36",
651
+    "electron": "0.37"
652
+  },
653
+  "transform-unicode-escapes": {
654
+    "chrome": "44",
655
+    "opera": "31",
656
+    "edge": "12",
657
+    "firefox": "53",
658
+    "safari": "9",
659
+    "node": "4",
660
+    "deno": "1",
661
+    "ios": "9",
662
+    "samsung": "4",
663
+    "rhino": "1.7.15",
664
+    "opera_mobile": "32",
665
+    "electron": "0.30"
666
+  },
667
+  "transform-unicode-regex": {
668
+    "chrome": "50",
669
+    "opera": "37",
670
+    "edge": "13",
671
+    "firefox": "46",
672
+    "safari": "12",
673
+    "node": "6",
674
+    "deno": "1",
675
+    "ios": "12",
676
+    "samsung": "5",
677
+    "opera_mobile": "37",
678
+    "electron": "1.1"
679
+  },
680
+  "transform-spread": {
681
+    "chrome": "46",
682
+    "opera": "33",
683
+    "edge": "13",
684
+    "firefox": "45",
685
+    "safari": "10",
686
+    "node": "5",
687
+    "deno": "1",
688
+    "ios": "10",
689
+    "samsung": "5",
690
+    "opera_mobile": "33",
691
+    "electron": "0.36"
692
+  },
693
+  "transform-destructuring": {
694
+    "chrome": "51",
695
+    "opera": "38",
696
+    "edge": "15",
697
+    "firefox": "53",
698
+    "safari": "10",
699
+    "node": "6.5",
700
+    "deno": "1",
701
+    "ios": "10",
702
+    "samsung": "5",
703
+    "opera_mobile": "41",
704
+    "electron": "1.2"
705
+  },
706
+  "transform-block-scoping": {
707
+    "chrome": "50",
708
+    "opera": "37",
709
+    "edge": "14",
710
+    "firefox": "53",
711
+    "safari": "11",
712
+    "node": "6",
713
+    "deno": "1",
714
+    "ios": "11",
715
+    "samsung": "5",
716
+    "opera_mobile": "37",
717
+    "electron": "1.1"
718
+  },
719
+  "transform-typeof-symbol": {
720
+    "chrome": "48",
721
+    "opera": "35",
722
+    "edge": "12",
723
+    "firefox": "36",
724
+    "safari": "9",
725
+    "node": "6",
726
+    "deno": "1",
727
+    "ios": "9",
728
+    "samsung": "5",
729
+    "rhino": "1.8",
730
+    "opera_mobile": "35",
731
+    "electron": "0.37"
732
+  },
733
+  "transform-new-target": {
734
+    "chrome": "46",
735
+    "opera": "33",
736
+    "edge": "14",
737
+    "firefox": "41",
738
+    "safari": "10",
739
+    "node": "5",
740
+    "deno": "1",
741
+    "ios": "10",
742
+    "samsung": "5",
743
+    "opera_mobile": "33",
744
+    "electron": "0.36"
745
+  },
746
+  "transform-regenerator": {
747
+    "chrome": "50",
748
+    "opera": "37",
749
+    "edge": "13",
750
+    "firefox": "53",
751
+    "safari": "10",
752
+    "node": "6",
753
+    "deno": "1",
754
+    "ios": "10",
755
+    "samsung": "5",
756
+    "opera_mobile": "37",
757
+    "electron": "1.1"
758
+  },
759
+  "transform-member-expression-literals": {
760
+    "chrome": "7",
761
+    "opera": "12",
762
+    "edge": "12",
763
+    "firefox": "2",
764
+    "safari": "5.1",
765
+    "node": "0.4",
766
+    "deno": "1",
767
+    "ie": "9",
768
+    "android": "4",
769
+    "ios": "6",
770
+    "phantom": "1.9",
771
+    "samsung": "1",
772
+    "rhino": "1.7.13",
773
+    "opera_mobile": "12",
774
+    "electron": "0.20"
775
+  },
776
+  "transform-property-literals": {
777
+    "chrome": "7",
778
+    "opera": "12",
779
+    "edge": "12",
780
+    "firefox": "2",
781
+    "safari": "5.1",
782
+    "node": "0.4",
783
+    "deno": "1",
784
+    "ie": "9",
785
+    "android": "4",
786
+    "ios": "6",
787
+    "phantom": "1.9",
788
+    "samsung": "1",
789
+    "rhino": "1.7.13",
790
+    "opera_mobile": "12",
791
+    "electron": "0.20"
792
+  },
793
+  "transform-reserved-words": {
794
+    "chrome": "13",
795
+    "opera": "10.50",
796
+    "edge": "12",
797
+    "firefox": "2",
798
+    "safari": "3.1",
799
+    "node": "0.6",
800
+    "deno": "1",
801
+    "ie": "9",
802
+    "android": "4.4",
803
+    "ios": "6",
804
+    "phantom": "1.9",
805
+    "samsung": "1",
806
+    "rhino": "1.7.13",
807
+    "opera_mobile": "10.1",
808
+    "electron": "0.20"
809
+  },
810
+  "transform-export-namespace-from": {
811
+    "chrome": "72",
812
+    "deno": "1.0",
813
+    "edge": "79",
814
+    "firefox": "80",
815
+    "node": "13.2.0",
816
+    "opera": "60",
817
+    "opera_mobile": "51",
818
+    "safari": "14.1",
819
+    "ios": "14.5",
820
+    "samsung": "11.0",
821
+    "android": "72",
822
+    "electron": "5.0"
823
+  },
824
+  "proposal-export-namespace-from": {
825
+    "chrome": "72",
826
+    "deno": "1.0",
827
+    "edge": "79",
828
+    "firefox": "80",
829
+    "node": "13.2.0",
830
+    "opera": "60",
831
+    "opera_mobile": "51",
832
+    "safari": "14.1",
833
+    "ios": "14.5",
834
+    "samsung": "11.0",
835
+    "android": "72",
836
+    "electron": "5.0"
837
+  }
838
+}

+ 2
- 0
node_modules/@babel/compat-data/native-modules.js View File

@@ -0,0 +1,2 @@
1
+// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
2
+module.exports = require("./data/native-modules.json");

+ 2
- 0
node_modules/@babel/compat-data/overlapping-plugins.js View File

@@ -0,0 +1,2 @@
1
+// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
2
+module.exports = require("./data/overlapping-plugins.json");

+ 40
- 0
node_modules/@babel/compat-data/package.json View File

@@ -0,0 +1,40 @@
1
+{
2
+  "name": "@babel/compat-data",
3
+  "version": "7.28.4",
4
+  "author": "The Babel Team (https://babel.dev/team)",
5
+  "license": "MIT",
6
+  "description": "The compat-data to determine required Babel plugins",
7
+  "repository": {
8
+    "type": "git",
9
+    "url": "https://github.com/babel/babel.git",
10
+    "directory": "packages/babel-compat-data"
11
+  },
12
+  "publishConfig": {
13
+    "access": "public"
14
+  },
15
+  "exports": {
16
+    "./plugins": "./plugins.js",
17
+    "./native-modules": "./native-modules.js",
18
+    "./corejs2-built-ins": "./corejs2-built-ins.js",
19
+    "./corejs3-shipped-proposals": "./corejs3-shipped-proposals.js",
20
+    "./overlapping-plugins": "./overlapping-plugins.js",
21
+    "./plugin-bugfixes": "./plugin-bugfixes.js"
22
+  },
23
+  "scripts": {
24
+    "build-data": "./scripts/download-compat-table.sh && node ./scripts/build-data.mjs && node ./scripts/build-modules-support.mjs && node ./scripts/build-bugfixes-targets.mjs"
25
+  },
26
+  "keywords": [
27
+    "babel",
28
+    "compat-table",
29
+    "compat-data"
30
+  ],
31
+  "devDependencies": {
32
+    "@mdn/browser-compat-data": "^6.0.8",
33
+    "core-js-compat": "^3.43.0",
34
+    "electron-to-chromium": "^1.5.140"
35
+  },
36
+  "engines": {
37
+    "node": ">=6.9.0"
38
+  },
39
+  "type": "commonjs"
40
+}

+ 2
- 0
node_modules/@babel/compat-data/plugin-bugfixes.js View File

@@ -0,0 +1,2 @@
1
+// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
2
+module.exports = require("./data/plugin-bugfixes.json");

+ 2
- 0
node_modules/@babel/compat-data/plugins.js View File

@@ -0,0 +1,2 @@
1
+// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
2
+module.exports = require("./data/plugins.json");

+ 22
- 0
node_modules/@babel/core/LICENSE View File

@@ -0,0 +1,22 @@
1
+MIT License
2
+
3
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining
6
+a copy of this software and associated documentation files (the
7
+"Software"), to deal in the Software without restriction, including
8
+without limitation the rights to use, copy, modify, merge, publish,
9
+distribute, sublicense, and/or sell copies of the Software, and to
10
+permit persons to whom the Software is furnished to do so, subject to
11
+the following conditions:
12
+
13
+The above copyright notice and this permission notice shall be
14
+included in all copies or substantial portions of the Software.
15
+
16
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 19
- 0
node_modules/@babel/core/README.md View File

@@ -0,0 +1,19 @@
1
+# @babel/core
2
+
3
+> Babel compiler core.
4
+
5
+See our website [@babel/core](https://babeljs.io/docs/babel-core) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen) associated with this package.
6
+
7
+## Install
8
+
9
+Using npm:
10
+
11
+```sh
12
+npm install --save-dev @babel/core
13
+```
14
+
15
+or using yarn:
16
+
17
+```sh
18
+yarn add @babel/core --dev
19
+```

+ 5
- 0
node_modules/@babel/core/lib/config/cache-contexts.js View File

@@ -0,0 +1,5 @@
1
+"use strict";
2
+
3
+0 && 0;
4
+
5
+//# sourceMappingURL=cache-contexts.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/cache-contexts.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"names":[],"sources":["../../src/config/cache-contexts.ts"],"sourcesContent":["import type { Targets } from \"@babel/helper-compilation-targets\";\n\nimport type { ConfigContext } from \"./config-chain.ts\";\nimport type { CallerMetadata } from \"./validation/options.ts\";\n\nexport type { ConfigContext as FullConfig };\n\nexport type FullPreset = {\n  targets: Targets;\n} & ConfigContext;\nexport type FullPlugin = {\n  assumptions: { [name: string]: boolean };\n} & FullPreset;\n\n// Context not including filename since it is used in places that cannot\n// process 'ignore'/'only' and other filename-based logic.\nexport type SimpleConfig = {\n  envName: string;\n  caller: CallerMetadata | undefined;\n};\nexport type SimplePreset = {\n  targets: Targets;\n} & SimpleConfig;\nexport type SimplePlugin = {\n  assumptions: {\n    [name: string]: boolean;\n  };\n} & SimplePreset;\n"],"mappings":"","ignoreList":[]}

+ 261
- 0
node_modules/@babel/core/lib/config/caching.js View File

@@ -0,0 +1,261 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.assertSimpleType = assertSimpleType;
7
+exports.makeStrongCache = makeStrongCache;
8
+exports.makeStrongCacheSync = makeStrongCacheSync;
9
+exports.makeWeakCache = makeWeakCache;
10
+exports.makeWeakCacheSync = makeWeakCacheSync;
11
+function _gensync() {
12
+  const data = require("gensync");
13
+  _gensync = function () {
14
+    return data;
15
+  };
16
+  return data;
17
+}
18
+var _async = require("../gensync-utils/async.js");
19
+var _util = require("./util.js");
20
+const synchronize = gen => {
21
+  return _gensync()(gen).sync;
22
+};
23
+function* genTrue() {
24
+  return true;
25
+}
26
+function makeWeakCache(handler) {
27
+  return makeCachedFunction(WeakMap, handler);
28
+}
29
+function makeWeakCacheSync(handler) {
30
+  return synchronize(makeWeakCache(handler));
31
+}
32
+function makeStrongCache(handler) {
33
+  return makeCachedFunction(Map, handler);
34
+}
35
+function makeStrongCacheSync(handler) {
36
+  return synchronize(makeStrongCache(handler));
37
+}
38
+function makeCachedFunction(CallCache, handler) {
39
+  const callCacheSync = new CallCache();
40
+  const callCacheAsync = new CallCache();
41
+  const futureCache = new CallCache();
42
+  return function* cachedFunction(arg, data) {
43
+    const asyncContext = yield* (0, _async.isAsync)();
44
+    const callCache = asyncContext ? callCacheAsync : callCacheSync;
45
+    const cached = yield* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data);
46
+    if (cached.valid) return cached.value;
47
+    const cache = new CacheConfigurator(data);
48
+    const handlerResult = handler(arg, cache);
49
+    let finishLock;
50
+    let value;
51
+    if ((0, _util.isIterableIterator)(handlerResult)) {
52
+      value = yield* (0, _async.onFirstPause)(handlerResult, () => {
53
+        finishLock = setupAsyncLocks(cache, futureCache, arg);
54
+      });
55
+    } else {
56
+      value = handlerResult;
57
+    }
58
+    updateFunctionCache(callCache, cache, arg, value);
59
+    if (finishLock) {
60
+      futureCache.delete(arg);
61
+      finishLock.release(value);
62
+    }
63
+    return value;
64
+  };
65
+}
66
+function* getCachedValue(cache, arg, data) {
67
+  const cachedValue = cache.get(arg);
68
+  if (cachedValue) {
69
+    for (const {
70
+      value,
71
+      valid
72
+    } of cachedValue) {
73
+      if (yield* valid(data)) return {
74
+        valid: true,
75
+        value
76
+      };
77
+    }
78
+  }
79
+  return {
80
+    valid: false,
81
+    value: null
82
+  };
83
+}
84
+function* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data) {
85
+  const cached = yield* getCachedValue(callCache, arg, data);
86
+  if (cached.valid) {
87
+    return cached;
88
+  }
89
+  if (asyncContext) {
90
+    const cached = yield* getCachedValue(futureCache, arg, data);
91
+    if (cached.valid) {
92
+      const value = yield* (0, _async.waitFor)(cached.value.promise);
93
+      return {
94
+        valid: true,
95
+        value
96
+      };
97
+    }
98
+  }
99
+  return {
100
+    valid: false,
101
+    value: null
102
+  };
103
+}
104
+function setupAsyncLocks(config, futureCache, arg) {
105
+  const finishLock = new Lock();
106
+  updateFunctionCache(futureCache, config, arg, finishLock);
107
+  return finishLock;
108
+}
109
+function updateFunctionCache(cache, config, arg, value) {
110
+  if (!config.configured()) config.forever();
111
+  let cachedValue = cache.get(arg);
112
+  config.deactivate();
113
+  switch (config.mode()) {
114
+    case "forever":
115
+      cachedValue = [{
116
+        value,
117
+        valid: genTrue
118
+      }];
119
+      cache.set(arg, cachedValue);
120
+      break;
121
+    case "invalidate":
122
+      cachedValue = [{
123
+        value,
124
+        valid: config.validator()
125
+      }];
126
+      cache.set(arg, cachedValue);
127
+      break;
128
+    case "valid":
129
+      if (cachedValue) {
130
+        cachedValue.push({
131
+          value,
132
+          valid: config.validator()
133
+        });
134
+      } else {
135
+        cachedValue = [{
136
+          value,
137
+          valid: config.validator()
138
+        }];
139
+        cache.set(arg, cachedValue);
140
+      }
141
+  }
142
+}
143
+class CacheConfigurator {
144
+  constructor(data) {
145
+    this._active = true;
146
+    this._never = false;
147
+    this._forever = false;
148
+    this._invalidate = false;
149
+    this._configured = false;
150
+    this._pairs = [];
151
+    this._data = void 0;
152
+    this._data = data;
153
+  }
154
+  simple() {
155
+    return makeSimpleConfigurator(this);
156
+  }
157
+  mode() {
158
+    if (this._never) return "never";
159
+    if (this._forever) return "forever";
160
+    if (this._invalidate) return "invalidate";
161
+    return "valid";
162
+  }
163
+  forever() {
164
+    if (!this._active) {
165
+      throw new Error("Cannot change caching after evaluation has completed.");
166
+    }
167
+    if (this._never) {
168
+      throw new Error("Caching has already been configured with .never()");
169
+    }
170
+    this._forever = true;
171
+    this._configured = true;
172
+  }
173
+  never() {
174
+    if (!this._active) {
175
+      throw new Error("Cannot change caching after evaluation has completed.");
176
+    }
177
+    if (this._forever) {
178
+      throw new Error("Caching has already been configured with .forever()");
179
+    }
180
+    this._never = true;
181
+    this._configured = true;
182
+  }
183
+  using(handler) {
184
+    if (!this._active) {
185
+      throw new Error("Cannot change caching after evaluation has completed.");
186
+    }
187
+    if (this._never || this._forever) {
188
+      throw new Error("Caching has already been configured with .never or .forever()");
189
+    }
190
+    this._configured = true;
191
+    const key = handler(this._data);
192
+    const fn = (0, _async.maybeAsync)(handler, `You appear to be using an async cache handler, but Babel has been called synchronously`);
193
+    if ((0, _async.isThenable)(key)) {
194
+      return key.then(key => {
195
+        this._pairs.push([key, fn]);
196
+        return key;
197
+      });
198
+    }
199
+    this._pairs.push([key, fn]);
200
+    return key;
201
+  }
202
+  invalidate(handler) {
203
+    this._invalidate = true;
204
+    return this.using(handler);
205
+  }
206
+  validator() {
207
+    const pairs = this._pairs;
208
+    return function* (data) {
209
+      for (const [key, fn] of pairs) {
210
+        if (key !== (yield* fn(data))) return false;
211
+      }
212
+      return true;
213
+    };
214
+  }
215
+  deactivate() {
216
+    this._active = false;
217
+  }
218
+  configured() {
219
+    return this._configured;
220
+  }
221
+}
222
+function makeSimpleConfigurator(cache) {
223
+  function cacheFn(val) {
224
+    if (typeof val === "boolean") {
225
+      if (val) cache.forever();else cache.never();
226
+      return;
227
+    }
228
+    return cache.using(() => assertSimpleType(val()));
229
+  }
230
+  cacheFn.forever = () => cache.forever();
231
+  cacheFn.never = () => cache.never();
232
+  cacheFn.using = cb => cache.using(() => assertSimpleType(cb()));
233
+  cacheFn.invalidate = cb => cache.invalidate(() => assertSimpleType(cb()));
234
+  return cacheFn;
235
+}
236
+function assertSimpleType(value) {
237
+  if ((0, _async.isThenable)(value)) {
238
+    throw new Error(`You appear to be using an async cache handler, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously handle your caching logic.`);
239
+  }
240
+  if (value != null && typeof value !== "string" && typeof value !== "boolean" && typeof value !== "number") {
241
+    throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");
242
+  }
243
+  return value;
244
+}
245
+class Lock {
246
+  constructor() {
247
+    this.released = false;
248
+    this.promise = void 0;
249
+    this._resolve = void 0;
250
+    this.promise = new Promise(resolve => {
251
+      this._resolve = resolve;
252
+    });
253
+  }
254
+  release(value) {
255
+    this.released = true;
256
+    this._resolve(value);
257
+  }
258
+}
259
+0 && 0;
260
+
261
+//# sourceMappingURL=caching.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/caching.js.map
File diff suppressed because it is too large
View File


+ 469
- 0
node_modules/@babel/core/lib/config/config-chain.js View File

@@ -0,0 +1,469 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.buildPresetChain = buildPresetChain;
7
+exports.buildPresetChainWalker = void 0;
8
+exports.buildRootChain = buildRootChain;
9
+function _path() {
10
+  const data = require("path");
11
+  _path = function () {
12
+    return data;
13
+  };
14
+  return data;
15
+}
16
+function _debug() {
17
+  const data = require("debug");
18
+  _debug = function () {
19
+    return data;
20
+  };
21
+  return data;
22
+}
23
+var _options = require("./validation/options.js");
24
+var _patternToRegex = require("./pattern-to-regex.js");
25
+var _printer = require("./printer.js");
26
+var _rewriteStackTrace = require("../errors/rewrite-stack-trace.js");
27
+var _configError = require("../errors/config-error.js");
28
+var _index = require("./files/index.js");
29
+var _caching = require("./caching.js");
30
+var _configDescriptors = require("./config-descriptors.js");
31
+const debug = _debug()("babel:config:config-chain");
32
+function* buildPresetChain(arg, context) {
33
+  const chain = yield* buildPresetChainWalker(arg, context);
34
+  if (!chain) return null;
35
+  return {
36
+    plugins: dedupDescriptors(chain.plugins),
37
+    presets: dedupDescriptors(chain.presets),
38
+    options: chain.options.map(o => normalizeOptions(o)),
39
+    files: new Set()
40
+  };
41
+}
42
+const buildPresetChainWalker = exports.buildPresetChainWalker = makeChainWalker({
43
+  root: preset => loadPresetDescriptors(preset),
44
+  env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName),
45
+  overrides: (preset, index) => loadPresetOverridesDescriptors(preset)(index),
46
+  overridesEnv: (preset, index, envName) => loadPresetOverridesEnvDescriptors(preset)(index)(envName),
47
+  createLogger: () => () => {}
48
+});
49
+const loadPresetDescriptors = (0, _caching.makeWeakCacheSync)(preset => buildRootDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors));
50
+const loadPresetEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, envName)));
51
+const loadPresetOverridesDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index)));
52
+const loadPresetOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index, envName))));
53
+function* buildRootChain(opts, context) {
54
+  let configReport, babelRcReport;
55
+  const programmaticLogger = new _printer.ConfigPrinter();
56
+  const programmaticChain = yield* loadProgrammaticChain({
57
+    options: opts,
58
+    dirname: context.cwd
59
+  }, context, undefined, programmaticLogger);
60
+  if (!programmaticChain) return null;
61
+  const programmaticReport = yield* programmaticLogger.output();
62
+  let configFile;
63
+  if (typeof opts.configFile === "string") {
64
+    configFile = yield* (0, _index.loadConfig)(opts.configFile, context.cwd, context.envName, context.caller);
65
+  } else if (opts.configFile !== false) {
66
+    configFile = yield* (0, _index.findRootConfig)(context.root, context.envName, context.caller);
67
+  }
68
+  let {
69
+    babelrc,
70
+    babelrcRoots
71
+  } = opts;
72
+  let babelrcRootsDirectory = context.cwd;
73
+  const configFileChain = emptyChain();
74
+  const configFileLogger = new _printer.ConfigPrinter();
75
+  if (configFile) {
76
+    const validatedFile = validateConfigFile(configFile);
77
+    const result = yield* loadFileChain(validatedFile, context, undefined, configFileLogger);
78
+    if (!result) return null;
79
+    configReport = yield* configFileLogger.output();
80
+    if (babelrc === undefined) {
81
+      babelrc = validatedFile.options.babelrc;
82
+    }
83
+    if (babelrcRoots === undefined) {
84
+      babelrcRootsDirectory = validatedFile.dirname;
85
+      babelrcRoots = validatedFile.options.babelrcRoots;
86
+    }
87
+    mergeChain(configFileChain, result);
88
+  }
89
+  let ignoreFile, babelrcFile;
90
+  let isIgnored = false;
91
+  const fileChain = emptyChain();
92
+  if ((babelrc === true || babelrc === undefined) && typeof context.filename === "string") {
93
+    const pkgData = yield* (0, _index.findPackageData)(context.filename);
94
+    if (pkgData && babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory)) {
95
+      ({
96
+        ignore: ignoreFile,
97
+        config: babelrcFile
98
+      } = yield* (0, _index.findRelativeConfig)(pkgData, context.envName, context.caller));
99
+      if (ignoreFile) {
100
+        fileChain.files.add(ignoreFile.filepath);
101
+      }
102
+      if (ignoreFile && shouldIgnore(context, ignoreFile.ignore, null, ignoreFile.dirname)) {
103
+        isIgnored = true;
104
+      }
105
+      if (babelrcFile && !isIgnored) {
106
+        const validatedFile = validateBabelrcFile(babelrcFile);
107
+        const babelrcLogger = new _printer.ConfigPrinter();
108
+        const result = yield* loadFileChain(validatedFile, context, undefined, babelrcLogger);
109
+        if (!result) {
110
+          isIgnored = true;
111
+        } else {
112
+          babelRcReport = yield* babelrcLogger.output();
113
+          mergeChain(fileChain, result);
114
+        }
115
+      }
116
+      if (babelrcFile && isIgnored) {
117
+        fileChain.files.add(babelrcFile.filepath);
118
+      }
119
+    }
120
+  }
121
+  if (context.showConfig) {
122
+    console.log(`Babel configs on "${context.filename}" (ascending priority):\n` + [configReport, babelRcReport, programmaticReport].filter(x => !!x).join("\n\n") + "\n-----End Babel configs-----");
123
+  }
124
+  const chain = mergeChain(mergeChain(mergeChain(emptyChain(), configFileChain), fileChain), programmaticChain);
125
+  return {
126
+    plugins: isIgnored ? [] : dedupDescriptors(chain.plugins),
127
+    presets: isIgnored ? [] : dedupDescriptors(chain.presets),
128
+    options: isIgnored ? [] : chain.options.map(o => normalizeOptions(o)),
129
+    fileHandling: isIgnored ? "ignored" : "transpile",
130
+    ignore: ignoreFile || undefined,
131
+    babelrc: babelrcFile || undefined,
132
+    config: configFile || undefined,
133
+    files: chain.files
134
+  };
135
+}
136
+function babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory) {
137
+  if (typeof babelrcRoots === "boolean") return babelrcRoots;
138
+  const absoluteRoot = context.root;
139
+  if (babelrcRoots === undefined) {
140
+    return pkgData.directories.includes(absoluteRoot);
141
+  }
142
+  let babelrcPatterns = babelrcRoots;
143
+  if (!Array.isArray(babelrcPatterns)) {
144
+    babelrcPatterns = [babelrcPatterns];
145
+  }
146
+  babelrcPatterns = babelrcPatterns.map(pat => {
147
+    return typeof pat === "string" ? _path().resolve(babelrcRootsDirectory, pat) : pat;
148
+  });
149
+  if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) {
150
+    return pkgData.directories.includes(absoluteRoot);
151
+  }
152
+  return babelrcPatterns.some(pat => {
153
+    if (typeof pat === "string") {
154
+      pat = (0, _patternToRegex.default)(pat, babelrcRootsDirectory);
155
+    }
156
+    return pkgData.directories.some(directory => {
157
+      return matchPattern(pat, babelrcRootsDirectory, directory, context);
158
+    });
159
+  });
160
+}
161
+const validateConfigFile = (0, _caching.makeWeakCacheSync)(file => ({
162
+  filepath: file.filepath,
163
+  dirname: file.dirname,
164
+  options: (0, _options.validate)("configfile", file.options, file.filepath)
165
+}));
166
+const validateBabelrcFile = (0, _caching.makeWeakCacheSync)(file => ({
167
+  filepath: file.filepath,
168
+  dirname: file.dirname,
169
+  options: (0, _options.validate)("babelrcfile", file.options, file.filepath)
170
+}));
171
+const validateExtendFile = (0, _caching.makeWeakCacheSync)(file => ({
172
+  filepath: file.filepath,
173
+  dirname: file.dirname,
174
+  options: (0, _options.validate)("extendsfile", file.options, file.filepath)
175
+}));
176
+const loadProgrammaticChain = makeChainWalker({
177
+  root: input => buildRootDescriptors(input, "base", _configDescriptors.createCachedDescriptors),
178
+  env: (input, envName) => buildEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, envName),
179
+  overrides: (input, index) => buildOverrideDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index),
180
+  overridesEnv: (input, index, envName) => buildOverrideEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index, envName),
181
+  createLogger: (input, context, baseLogger) => buildProgrammaticLogger(input, context, baseLogger)
182
+});
183
+const loadFileChainWalker = makeChainWalker({
184
+  root: file => loadFileDescriptors(file),
185
+  env: (file, envName) => loadFileEnvDescriptors(file)(envName),
186
+  overrides: (file, index) => loadFileOverridesDescriptors(file)(index),
187
+  overridesEnv: (file, index, envName) => loadFileOverridesEnvDescriptors(file)(index)(envName),
188
+  createLogger: (file, context, baseLogger) => buildFileLogger(file.filepath, context, baseLogger)
189
+});
190
+function* loadFileChain(input, context, files, baseLogger) {
191
+  const chain = yield* loadFileChainWalker(input, context, files, baseLogger);
192
+  chain == null || chain.files.add(input.filepath);
193
+  return chain;
194
+}
195
+const loadFileDescriptors = (0, _caching.makeWeakCacheSync)(file => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors));
196
+const loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName)));
197
+const loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index)));
198
+const loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName))));
199
+function buildFileLogger(filepath, context, baseLogger) {
200
+  if (!baseLogger) {
201
+    return () => {};
202
+  }
203
+  return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Config, {
204
+    filepath
205
+  });
206
+}
207
+function buildRootDescriptors({
208
+  dirname,
209
+  options
210
+}, alias, descriptors) {
211
+  return descriptors(dirname, options, alias);
212
+}
213
+function buildProgrammaticLogger(_, context, baseLogger) {
214
+  var _context$caller;
215
+  if (!baseLogger) {
216
+    return () => {};
217
+  }
218
+  return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Programmatic, {
219
+    callerName: (_context$caller = context.caller) == null ? void 0 : _context$caller.name
220
+  });
221
+}
222
+function buildEnvDescriptors({
223
+  dirname,
224
+  options
225
+}, alias, descriptors, envName) {
226
+  var _options$env;
227
+  const opts = (_options$env = options.env) == null ? void 0 : _options$env[envName];
228
+  return opts ? descriptors(dirname, opts, `${alias}.env["${envName}"]`) : null;
229
+}
230
+function buildOverrideDescriptors({
231
+  dirname,
232
+  options
233
+}, alias, descriptors, index) {
234
+  var _options$overrides;
235
+  const opts = (_options$overrides = options.overrides) == null ? void 0 : _options$overrides[index];
236
+  if (!opts) throw new Error("Assertion failure - missing override");
237
+  return descriptors(dirname, opts, `${alias}.overrides[${index}]`);
238
+}
239
+function buildOverrideEnvDescriptors({
240
+  dirname,
241
+  options
242
+}, alias, descriptors, index, envName) {
243
+  var _options$overrides2, _override$env;
244
+  const override = (_options$overrides2 = options.overrides) == null ? void 0 : _options$overrides2[index];
245
+  if (!override) throw new Error("Assertion failure - missing override");
246
+  const opts = (_override$env = override.env) == null ? void 0 : _override$env[envName];
247
+  return opts ? descriptors(dirname, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
248
+}
249
+function makeChainWalker({
250
+  root,
251
+  env,
252
+  overrides,
253
+  overridesEnv,
254
+  createLogger
255
+}) {
256
+  return function* chainWalker(input, context, files = new Set(), baseLogger) {
257
+    const {
258
+      dirname
259
+    } = input;
260
+    const flattenedConfigs = [];
261
+    const rootOpts = root(input);
262
+    if (configIsApplicable(rootOpts, dirname, context, input.filepath)) {
263
+      flattenedConfigs.push({
264
+        config: rootOpts,
265
+        envName: undefined,
266
+        index: undefined
267
+      });
268
+      const envOpts = env(input, context.envName);
269
+      if (envOpts && configIsApplicable(envOpts, dirname, context, input.filepath)) {
270
+        flattenedConfigs.push({
271
+          config: envOpts,
272
+          envName: context.envName,
273
+          index: undefined
274
+        });
275
+      }
276
+      (rootOpts.options.overrides || []).forEach((_, index) => {
277
+        const overrideOps = overrides(input, index);
278
+        if (configIsApplicable(overrideOps, dirname, context, input.filepath)) {
279
+          flattenedConfigs.push({
280
+            config: overrideOps,
281
+            index,
282
+            envName: undefined
283
+          });
284
+          const overrideEnvOpts = overridesEnv(input, index, context.envName);
285
+          if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname, context, input.filepath)) {
286
+            flattenedConfigs.push({
287
+              config: overrideEnvOpts,
288
+              index,
289
+              envName: context.envName
290
+            });
291
+          }
292
+        }
293
+      });
294
+    }
295
+    if (flattenedConfigs.some(({
296
+      config: {
297
+        options: {
298
+          ignore,
299
+          only
300
+        }
301
+      }
302
+    }) => shouldIgnore(context, ignore, only, dirname))) {
303
+      return null;
304
+    }
305
+    const chain = emptyChain();
306
+    const logger = createLogger(input, context, baseLogger);
307
+    for (const {
308
+      config,
309
+      index,
310
+      envName
311
+    } of flattenedConfigs) {
312
+      if (!(yield* mergeExtendsChain(chain, config.options, dirname, context, files, baseLogger))) {
313
+        return null;
314
+      }
315
+      logger(config, index, envName);
316
+      yield* mergeChainOpts(chain, config);
317
+    }
318
+    return chain;
319
+  };
320
+}
321
+function* mergeExtendsChain(chain, opts, dirname, context, files, baseLogger) {
322
+  if (opts.extends === undefined) return true;
323
+  const file = yield* (0, _index.loadConfig)(opts.extends, dirname, context.envName, context.caller);
324
+  if (files.has(file)) {
325
+    throw new Error(`Configuration cycle detected loading ${file.filepath}.\n` + `File already loaded following the config chain:\n` + Array.from(files, file => ` - ${file.filepath}`).join("\n"));
326
+  }
327
+  files.add(file);
328
+  const fileChain = yield* loadFileChain(validateExtendFile(file), context, files, baseLogger);
329
+  files.delete(file);
330
+  if (!fileChain) return false;
331
+  mergeChain(chain, fileChain);
332
+  return true;
333
+}
334
+function mergeChain(target, source) {
335
+  target.options.push(...source.options);
336
+  target.plugins.push(...source.plugins);
337
+  target.presets.push(...source.presets);
338
+  for (const file of source.files) {
339
+    target.files.add(file);
340
+  }
341
+  return target;
342
+}
343
+function* mergeChainOpts(target, {
344
+  options,
345
+  plugins,
346
+  presets
347
+}) {
348
+  target.options.push(options);
349
+  target.plugins.push(...(yield* plugins()));
350
+  target.presets.push(...(yield* presets()));
351
+  return target;
352
+}
353
+function emptyChain() {
354
+  return {
355
+    options: [],
356
+    presets: [],
357
+    plugins: [],
358
+    files: new Set()
359
+  };
360
+}
361
+function normalizeOptions(opts) {
362
+  const options = Object.assign({}, opts);
363
+  delete options.extends;
364
+  delete options.env;
365
+  delete options.overrides;
366
+  delete options.plugins;
367
+  delete options.presets;
368
+  delete options.passPerPreset;
369
+  delete options.ignore;
370
+  delete options.only;
371
+  delete options.test;
372
+  delete options.include;
373
+  delete options.exclude;
374
+  if (hasOwnProperty.call(options, "sourceMap")) {
375
+    options.sourceMaps = options.sourceMap;
376
+    delete options.sourceMap;
377
+  }
378
+  return options;
379
+}
380
+function dedupDescriptors(items) {
381
+  const map = new Map();
382
+  const descriptors = [];
383
+  for (const item of items) {
384
+    if (typeof item.value === "function") {
385
+      const fnKey = item.value;
386
+      let nameMap = map.get(fnKey);
387
+      if (!nameMap) {
388
+        nameMap = new Map();
389
+        map.set(fnKey, nameMap);
390
+      }
391
+      let desc = nameMap.get(item.name);
392
+      if (!desc) {
393
+        desc = {
394
+          value: item
395
+        };
396
+        descriptors.push(desc);
397
+        if (!item.ownPass) nameMap.set(item.name, desc);
398
+      } else {
399
+        desc.value = item;
400
+      }
401
+    } else {
402
+      descriptors.push({
403
+        value: item
404
+      });
405
+    }
406
+  }
407
+  return descriptors.reduce((acc, desc) => {
408
+    acc.push(desc.value);
409
+    return acc;
410
+  }, []);
411
+}
412
+function configIsApplicable({
413
+  options
414
+}, dirname, context, configName) {
415
+  return (options.test === undefined || configFieldIsApplicable(context, options.test, dirname, configName)) && (options.include === undefined || configFieldIsApplicable(context, options.include, dirname, configName)) && (options.exclude === undefined || !configFieldIsApplicable(context, options.exclude, dirname, configName));
416
+}
417
+function configFieldIsApplicable(context, test, dirname, configName) {
418
+  const patterns = Array.isArray(test) ? test : [test];
419
+  return matchesPatterns(context, patterns, dirname, configName);
420
+}
421
+function ignoreListReplacer(_key, value) {
422
+  if (value instanceof RegExp) {
423
+    return String(value);
424
+  }
425
+  return value;
426
+}
427
+function shouldIgnore(context, ignore, only, dirname) {
428
+  if (ignore && matchesPatterns(context, ignore, dirname)) {
429
+    var _context$filename;
430
+    const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname}"`;
431
+    debug(message);
432
+    if (context.showConfig) {
433
+      console.log(message);
434
+    }
435
+    return true;
436
+  }
437
+  if (only && !matchesPatterns(context, only, dirname)) {
438
+    var _context$filename2;
439
+    const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname}"`;
440
+    debug(message);
441
+    if (context.showConfig) {
442
+      console.log(message);
443
+    }
444
+    return true;
445
+  }
446
+  return false;
447
+}
448
+function matchesPatterns(context, patterns, dirname, configName) {
449
+  return patterns.some(pattern => matchPattern(pattern, dirname, context.filename, context, configName));
450
+}
451
+function matchPattern(pattern, dirname, pathToTest, context, configName) {
452
+  if (typeof pattern === "function") {
453
+    return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, {
454
+      dirname,
455
+      envName: context.envName,
456
+      caller: context.caller
457
+    });
458
+  }
459
+  if (typeof pathToTest !== "string") {
460
+    throw new _configError.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`, configName);
461
+  }
462
+  if (typeof pattern === "string") {
463
+    pattern = (0, _patternToRegex.default)(pattern, dirname);
464
+  }
465
+  return pattern.test(pathToTest);
466
+}
467
+0 && 0;
468
+
469
+//# sourceMappingURL=config-chain.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/config-chain.js.map
File diff suppressed because it is too large
View File


+ 190
- 0
node_modules/@babel/core/lib/config/config-descriptors.js View File

@@ -0,0 +1,190 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.createCachedDescriptors = createCachedDescriptors;
7
+exports.createDescriptor = createDescriptor;
8
+exports.createUncachedDescriptors = createUncachedDescriptors;
9
+function _gensync() {
10
+  const data = require("gensync");
11
+  _gensync = function () {
12
+    return data;
13
+  };
14
+  return data;
15
+}
16
+var _functional = require("../gensync-utils/functional.js");
17
+var _index = require("./files/index.js");
18
+var _item = require("./item.js");
19
+var _caching = require("./caching.js");
20
+var _resolveTargets = require("./resolve-targets.js");
21
+function isEqualDescriptor(a, b) {
22
+  var _a$file, _b$file, _a$file2, _b$file2;
23
+  return a.name === b.name && a.value === b.value && a.options === b.options && a.dirname === b.dirname && a.alias === b.alias && a.ownPass === b.ownPass && ((_a$file = a.file) == null ? void 0 : _a$file.request) === ((_b$file = b.file) == null ? void 0 : _b$file.request) && ((_a$file2 = a.file) == null ? void 0 : _a$file2.resolved) === ((_b$file2 = b.file) == null ? void 0 : _b$file2.resolved);
24
+}
25
+function* handlerOf(value) {
26
+  return value;
27
+}
28
+function optionsWithResolvedBrowserslistConfigFile(options, dirname) {
29
+  if (typeof options.browserslistConfigFile === "string") {
30
+    options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname);
31
+  }
32
+  return options;
33
+}
34
+function createCachedDescriptors(dirname, options, alias) {
35
+  const {
36
+    plugins,
37
+    presets,
38
+    passPerPreset
39
+  } = options;
40
+  return {
41
+    options: optionsWithResolvedBrowserslistConfigFile(options, dirname),
42
+    plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname)(alias) : () => handlerOf([]),
43
+    presets: presets ? () => createCachedPresetDescriptors(presets, dirname)(alias)(!!passPerPreset) : () => handlerOf([])
44
+  };
45
+}
46
+function createUncachedDescriptors(dirname, options, alias) {
47
+  return {
48
+    options: optionsWithResolvedBrowserslistConfigFile(options, dirname),
49
+    plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname, alias)),
50
+    presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname, alias, !!options.passPerPreset))
51
+  };
52
+}
53
+const PRESET_DESCRIPTOR_CACHE = new WeakMap();
54
+const createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => {
55
+  const dirname = cache.using(dir => dir);
56
+  return (0, _caching.makeStrongCacheSync)(alias => (0, _caching.makeStrongCache)(function* (passPerPreset) {
57
+    const descriptors = yield* createPresetDescriptors(items, dirname, alias, passPerPreset);
58
+    return descriptors.map(desc => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
59
+  }));
60
+});
61
+const PLUGIN_DESCRIPTOR_CACHE = new WeakMap();
62
+const createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => {
63
+  const dirname = cache.using(dir => dir);
64
+  return (0, _caching.makeStrongCache)(function* (alias) {
65
+    const descriptors = yield* createPluginDescriptors(items, dirname, alias);
66
+    return descriptors.map(desc => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
67
+  });
68
+});
69
+const DEFAULT_OPTIONS = {};
70
+function loadCachedDescriptor(cache, desc) {
71
+  const {
72
+    value,
73
+    options = DEFAULT_OPTIONS
74
+  } = desc;
75
+  if (options === false) return desc;
76
+  let cacheByOptions = cache.get(value);
77
+  if (!cacheByOptions) {
78
+    cacheByOptions = new WeakMap();
79
+    cache.set(value, cacheByOptions);
80
+  }
81
+  let possibilities = cacheByOptions.get(options);
82
+  if (!possibilities) {
83
+    possibilities = [];
84
+    cacheByOptions.set(options, possibilities);
85
+  }
86
+  if (!possibilities.includes(desc)) {
87
+    const matches = possibilities.filter(possibility => isEqualDescriptor(possibility, desc));
88
+    if (matches.length > 0) {
89
+      return matches[0];
90
+    }
91
+    possibilities.push(desc);
92
+  }
93
+  return desc;
94
+}
95
+function* createPresetDescriptors(items, dirname, alias, passPerPreset) {
96
+  return yield* createDescriptors("preset", items, dirname, alias, passPerPreset);
97
+}
98
+function* createPluginDescriptors(items, dirname, alias) {
99
+  return yield* createDescriptors("plugin", items, dirname, alias);
100
+}
101
+function* createDescriptors(type, items, dirname, alias, ownPass) {
102
+  const descriptors = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname, {
103
+    type,
104
+    alias: `${alias}$${index}`,
105
+    ownPass: !!ownPass
106
+  })));
107
+  assertNoDuplicates(descriptors);
108
+  return descriptors;
109
+}
110
+function* createDescriptor(pair, dirname, {
111
+  type,
112
+  alias,
113
+  ownPass
114
+}) {
115
+  const desc = (0, _item.getItemDescriptor)(pair);
116
+  if (desc) {
117
+    return desc;
118
+  }
119
+  let name;
120
+  let options;
121
+  let value = pair;
122
+  if (Array.isArray(value)) {
123
+    if (value.length === 3) {
124
+      [value, options, name] = value;
125
+    } else {
126
+      [value, options] = value;
127
+    }
128
+  }
129
+  let file = undefined;
130
+  let filepath = null;
131
+  if (typeof value === "string") {
132
+    if (typeof type !== "string") {
133
+      throw new Error("To resolve a string-based item, the type of item must be given");
134
+    }
135
+    const resolver = type === "plugin" ? _index.loadPlugin : _index.loadPreset;
136
+    const request = value;
137
+    ({
138
+      filepath,
139
+      value
140
+    } = yield* resolver(value, dirname));
141
+    file = {
142
+      request,
143
+      resolved: filepath
144
+    };
145
+  }
146
+  if (!value) {
147
+    throw new Error(`Unexpected falsy value: ${String(value)}`);
148
+  }
149
+  if (typeof value === "object" && value.__esModule) {
150
+    if (value.default) {
151
+      value = value.default;
152
+    } else {
153
+      throw new Error("Must export a default export when using ES6 modules.");
154
+    }
155
+  }
156
+  if (typeof value !== "object" && typeof value !== "function") {
157
+    throw new Error(`Unsupported format: ${typeof value}. Expected an object or a function.`);
158
+  }
159
+  if (filepath !== null && typeof value === "object" && value) {
160
+    throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
161
+  }
162
+  return {
163
+    name,
164
+    alias: filepath || alias,
165
+    value,
166
+    options,
167
+    dirname,
168
+    ownPass,
169
+    file
170
+  };
171
+}
172
+function assertNoDuplicates(items) {
173
+  const map = new Map();
174
+  for (const item of items) {
175
+    if (typeof item.value !== "function") continue;
176
+    let nameMap = map.get(item.value);
177
+    if (!nameMap) {
178
+      nameMap = new Set();
179
+      map.set(item.value, nameMap);
180
+    }
181
+    if (nameMap.has(item.name)) {
182
+      const conflicts = items.filter(i => i.value === item.value);
183
+      throw new Error([`Duplicate plugin/preset detected.`, `If you'd like to use two separate instances of a plugin,`, `they need separate names, e.g.`, ``, `  plugins: [`, `    ['some-plugin', {}],`, `    ['some-plugin', {}, 'some unique name'],`, `  ]`, ``, `Duplicates detected are:`, `${JSON.stringify(conflicts, null, 2)}`].join("\n"));
184
+    }
185
+    nameMap.add(item.name);
186
+  }
187
+}
188
+0 && 0;
189
+
190
+//# sourceMappingURL=config-descriptors.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/config-descriptors.js.map
File diff suppressed because it is too large
View File


+ 290
- 0
node_modules/@babel/core/lib/config/files/configuration.js View File

@@ -0,0 +1,290 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.ROOT_CONFIG_FILENAMES = void 0;
7
+exports.findConfigUpwards = findConfigUpwards;
8
+exports.findRelativeConfig = findRelativeConfig;
9
+exports.findRootConfig = findRootConfig;
10
+exports.loadConfig = loadConfig;
11
+exports.resolveShowConfigPath = resolveShowConfigPath;
12
+function _debug() {
13
+  const data = require("debug");
14
+  _debug = function () {
15
+    return data;
16
+  };
17
+  return data;
18
+}
19
+function _fs() {
20
+  const data = require("fs");
21
+  _fs = function () {
22
+    return data;
23
+  };
24
+  return data;
25
+}
26
+function _path() {
27
+  const data = require("path");
28
+  _path = function () {
29
+    return data;
30
+  };
31
+  return data;
32
+}
33
+function _json() {
34
+  const data = require("json5");
35
+  _json = function () {
36
+    return data;
37
+  };
38
+  return data;
39
+}
40
+function _gensync() {
41
+  const data = require("gensync");
42
+  _gensync = function () {
43
+    return data;
44
+  };
45
+  return data;
46
+}
47
+var _caching = require("../caching.js");
48
+var _configApi = require("../helpers/config-api.js");
49
+var _utils = require("./utils.js");
50
+var _moduleTypes = require("./module-types.js");
51
+var _patternToRegex = require("../pattern-to-regex.js");
52
+var _configError = require("../../errors/config-error.js");
53
+var fs = require("../../gensync-utils/fs.js");
54
+require("module");
55
+var _rewriteStackTrace = require("../../errors/rewrite-stack-trace.js");
56
+var _async = require("../../gensync-utils/async.js");
57
+const debug = _debug()("babel:config:loading:files:configuration");
58
+const ROOT_CONFIG_FILENAMES = exports.ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts", "babel.config.ts", "babel.config.mts"];
59
+const RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"];
60
+const BABELIGNORE_FILENAME = ".babelignore";
61
+const runConfig = (0, _caching.makeWeakCache)(function* runConfig(options, cache) {
62
+  yield* [];
63
+  return {
64
+    options: (0, _rewriteStackTrace.endHiddenCallStack)(options)((0, _configApi.makeConfigAPI)(cache)),
65
+    cacheNeedsConfiguration: !cache.configured()
66
+  };
67
+});
68
+function* readConfigCode(filepath, data) {
69
+  if (!_fs().existsSync(filepath)) return null;
70
+  let options = yield* (0, _moduleTypes.default)(filepath, (yield* (0, _async.isAsync)()) ? "auto" : "require", "You appear to be using a native ECMAScript module configuration " + "file, which is only supported when running Babel asynchronously " + "or when using the Node.js `--experimental-require-module` flag.", "You appear to be using a configuration file that contains top-level " + "await, which is only supported when running Babel asynchronously.");
71
+  let cacheNeedsConfiguration = false;
72
+  if (typeof options === "function") {
73
+    ({
74
+      options,
75
+      cacheNeedsConfiguration
76
+    } = yield* runConfig(options, data));
77
+  }
78
+  if (!options || typeof options !== "object" || Array.isArray(options)) {
79
+    throw new _configError.default(`Configuration should be an exported JavaScript object.`, filepath);
80
+  }
81
+  if (typeof options.then === "function") {
82
+    options.catch == null || options.catch(() => {});
83
+    throw new _configError.default(`You appear to be using an async configuration, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously return your config.`, filepath);
84
+  }
85
+  if (cacheNeedsConfiguration) throwConfigError(filepath);
86
+  return buildConfigFileObject(options, filepath);
87
+}
88
+const cfboaf = new WeakMap();
89
+function buildConfigFileObject(options, filepath) {
90
+  let configFilesByFilepath = cfboaf.get(options);
91
+  if (!configFilesByFilepath) {
92
+    cfboaf.set(options, configFilesByFilepath = new Map());
93
+  }
94
+  let configFile = configFilesByFilepath.get(filepath);
95
+  if (!configFile) {
96
+    configFile = {
97
+      filepath,
98
+      dirname: _path().dirname(filepath),
99
+      options
100
+    };
101
+    configFilesByFilepath.set(filepath, configFile);
102
+  }
103
+  return configFile;
104
+}
105
+const packageToBabelConfig = (0, _caching.makeWeakCacheSync)(file => {
106
+  const babel = file.options.babel;
107
+  if (babel === undefined) return null;
108
+  if (typeof babel !== "object" || Array.isArray(babel) || babel === null) {
109
+    throw new _configError.default(`.babel property must be an object`, file.filepath);
110
+  }
111
+  return {
112
+    filepath: file.filepath,
113
+    dirname: file.dirname,
114
+    options: babel
115
+  };
116
+});
117
+const readConfigJSON5 = (0, _utils.makeStaticFileCache)((filepath, content) => {
118
+  let options;
119
+  try {
120
+    options = _json().parse(content);
121
+  } catch (err) {
122
+    throw new _configError.default(`Error while parsing config - ${err.message}`, filepath);
123
+  }
124
+  if (!options) throw new _configError.default(`No config detected`, filepath);
125
+  if (typeof options !== "object") {
126
+    throw new _configError.default(`Config returned typeof ${typeof options}`, filepath);
127
+  }
128
+  if (Array.isArray(options)) {
129
+    throw new _configError.default(`Expected config object but found array`, filepath);
130
+  }
131
+  delete options.$schema;
132
+  return {
133
+    filepath,
134
+    dirname: _path().dirname(filepath),
135
+    options
136
+  };
137
+});
138
+const readIgnoreConfig = (0, _utils.makeStaticFileCache)((filepath, content) => {
139
+  const ignoreDir = _path().dirname(filepath);
140
+  const ignorePatterns = content.split("\n").map(line => line.replace(/#.*$/, "").trim()).filter(Boolean);
141
+  for (const pattern of ignorePatterns) {
142
+    if (pattern[0] === "!") {
143
+      throw new _configError.default(`Negation of file paths is not supported.`, filepath);
144
+    }
145
+  }
146
+  return {
147
+    filepath,
148
+    dirname: _path().dirname(filepath),
149
+    ignore: ignorePatterns.map(pattern => (0, _patternToRegex.default)(pattern, ignoreDir))
150
+  };
151
+});
152
+function findConfigUpwards(rootDir) {
153
+  let dirname = rootDir;
154
+  for (;;) {
155
+    for (const filename of ROOT_CONFIG_FILENAMES) {
156
+      if (_fs().existsSync(_path().join(dirname, filename))) {
157
+        return dirname;
158
+      }
159
+    }
160
+    const nextDir = _path().dirname(dirname);
161
+    if (dirname === nextDir) break;
162
+    dirname = nextDir;
163
+  }
164
+  return null;
165
+}
166
+function* findRelativeConfig(packageData, envName, caller) {
167
+  let config = null;
168
+  let ignore = null;
169
+  const dirname = _path().dirname(packageData.filepath);
170
+  for (const loc of packageData.directories) {
171
+    if (!config) {
172
+      var _packageData$pkg;
173
+      config = yield* loadOneConfig(RELATIVE_CONFIG_FILENAMES, loc, envName, caller, ((_packageData$pkg = packageData.pkg) == null ? void 0 : _packageData$pkg.dirname) === loc ? packageToBabelConfig(packageData.pkg) : null);
174
+    }
175
+    if (!ignore) {
176
+      const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
177
+      ignore = yield* readIgnoreConfig(ignoreLoc);
178
+      if (ignore) {
179
+        debug("Found ignore %o from %o.", ignore.filepath, dirname);
180
+      }
181
+    }
182
+  }
183
+  return {
184
+    config,
185
+    ignore
186
+  };
187
+}
188
+function findRootConfig(dirname, envName, caller) {
189
+  return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller);
190
+}
191
+function* loadOneConfig(names, dirname, envName, caller, previousConfig = null) {
192
+  const configs = yield* _gensync().all(names.map(filename => readConfig(_path().join(dirname, filename), envName, caller)));
193
+  const config = configs.reduce((previousConfig, config) => {
194
+    if (config && previousConfig) {
195
+      throw new _configError.default(`Multiple configuration files found. Please remove one:\n` + ` - ${_path().basename(previousConfig.filepath)}\n` + ` - ${config.filepath}\n` + `from ${dirname}`);
196
+    }
197
+    return config || previousConfig;
198
+  }, previousConfig);
199
+  if (config) {
200
+    debug("Found configuration %o from %o.", config.filepath, dirname);
201
+  }
202
+  return config;
203
+}
204
+function* loadConfig(name, dirname, envName, caller) {
205
+  const filepath = (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, {
206
+    paths: [b]
207
+  }, M = require("module")) => {
208
+    let f = M._findPath(r, M._nodeModulePaths(b).concat(b));
209
+    if (f) return f;
210
+    f = new Error(`Cannot resolve module '${r}'`);
211
+    f.code = "MODULE_NOT_FOUND";
212
+    throw f;
213
+  })(name, {
214
+    paths: [dirname]
215
+  });
216
+  const conf = yield* readConfig(filepath, envName, caller);
217
+  if (!conf) {
218
+    throw new _configError.default(`Config file contains no configuration data`, filepath);
219
+  }
220
+  debug("Loaded config %o from %o.", name, dirname);
221
+  return conf;
222
+}
223
+function readConfig(filepath, envName, caller) {
224
+  const ext = _path().extname(filepath);
225
+  switch (ext) {
226
+    case ".js":
227
+    case ".cjs":
228
+    case ".mjs":
229
+    case ".ts":
230
+    case ".cts":
231
+    case ".mts":
232
+      return readConfigCode(filepath, {
233
+        envName,
234
+        caller
235
+      });
236
+    default:
237
+      return readConfigJSON5(filepath);
238
+  }
239
+}
240
+function* resolveShowConfigPath(dirname) {
241
+  const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
242
+  if (targetPath != null) {
243
+    const absolutePath = _path().resolve(dirname, targetPath);
244
+    const stats = yield* fs.stat(absolutePath);
245
+    if (!stats.isFile()) {
246
+      throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
247
+    }
248
+    return absolutePath;
249
+  }
250
+  return null;
251
+}
252
+function throwConfigError(filepath) {
253
+  throw new _configError.default(`\
254
+Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured
255
+for various types of caching, using the first param of their handler functions:
256
+
257
+module.exports = function(api) {
258
+  // The API exposes the following:
259
+
260
+  // Cache the returned value forever and don't call this function again.
261
+  api.cache(true);
262
+
263
+  // Don't cache at all. Not recommended because it will be very slow.
264
+  api.cache(false);
265
+
266
+  // Cached based on the value of some function. If this function returns a value different from
267
+  // a previously-encountered value, the plugins will re-evaluate.
268
+  var env = api.cache(() => process.env.NODE_ENV);
269
+
270
+  // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for
271
+  // any possible NODE_ENV value that might come up during plugin execution.
272
+  var isProd = api.cache(() => process.env.NODE_ENV === "production");
273
+
274
+  // .cache(fn) will perform a linear search though instances to find the matching plugin based
275
+  // based on previous instantiated plugins. If you want to recreate the plugin and discard the
276
+  // previous instance whenever something changes, you may use:
277
+  var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");
278
+
279
+  // Note, we also expose the following more-verbose versions of the above examples:
280
+  api.cache.forever(); // api.cache(true)
281
+  api.cache.never();   // api.cache(false)
282
+  api.cache.using(fn); // api.cache(fn)
283
+
284
+  // Return the value that will be cached.
285
+  return { };
286
+};`, filepath);
287
+}
288
+0 && 0;
289
+
290
+//# sourceMappingURL=configuration.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/files/configuration.js.map
File diff suppressed because it is too large
View File


+ 6
- 0
node_modules/@babel/core/lib/config/files/import.cjs View File

@@ -0,0 +1,6 @@
1
+module.exports = function import_(filepath) {
2
+  return import(filepath);
3
+};
4
+0 && 0;
5
+
6
+//# sourceMappingURL=import.cjs.map

+ 1
- 0
node_modules/@babel/core/lib/config/files/import.cjs.map View File

@@ -0,0 +1 @@
1
+{"version":3,"names":["module","exports","import_","filepath"],"sources":["../../../src/config/files/import.cjs"],"sourcesContent":["// We keep this in a separate file so that in older node versions, where\n// import() isn't supported, we can try/catch around the require() call\n// when loading this file.\n\nmodule.exports = function import_(filepath) {\n  return import(filepath);\n};\n"],"mappings":"AAIAA,MAAM,CAACC,OAAO,GAAG,SAASC,OAAOA,CAACC,QAAQ,EAAE;EAC1C,OAAO,OAAOA,QAAQ,CAAC;AACzB,CAAC;AAAC","ignoreList":[]}

+ 58
- 0
node_modules/@babel/core/lib/config/files/index-browser.js View File

@@ -0,0 +1,58 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.ROOT_CONFIG_FILENAMES = void 0;
7
+exports.findConfigUpwards = findConfigUpwards;
8
+exports.findPackageData = findPackageData;
9
+exports.findRelativeConfig = findRelativeConfig;
10
+exports.findRootConfig = findRootConfig;
11
+exports.loadConfig = loadConfig;
12
+exports.loadPlugin = loadPlugin;
13
+exports.loadPreset = loadPreset;
14
+exports.resolvePlugin = resolvePlugin;
15
+exports.resolvePreset = resolvePreset;
16
+exports.resolveShowConfigPath = resolveShowConfigPath;
17
+function findConfigUpwards(rootDir) {
18
+  return null;
19
+}
20
+function* findPackageData(filepath) {
21
+  return {
22
+    filepath,
23
+    directories: [],
24
+    pkg: null,
25
+    isPackage: false
26
+  };
27
+}
28
+function* findRelativeConfig(pkgData, envName, caller) {
29
+  return {
30
+    config: null,
31
+    ignore: null
32
+  };
33
+}
34
+function* findRootConfig(dirname, envName, caller) {
35
+  return null;
36
+}
37
+function* loadConfig(name, dirname, envName, caller) {
38
+  throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`);
39
+}
40
+function* resolveShowConfigPath(dirname) {
41
+  return null;
42
+}
43
+const ROOT_CONFIG_FILENAMES = exports.ROOT_CONFIG_FILENAMES = [];
44
+function resolvePlugin(name, dirname) {
45
+  return null;
46
+}
47
+function resolvePreset(name, dirname) {
48
+  return null;
49
+}
50
+function loadPlugin(name, dirname) {
51
+  throw new Error(`Cannot load plugin ${name} relative to ${dirname} in a browser`);
52
+}
53
+function loadPreset(name, dirname) {
54
+  throw new Error(`Cannot load preset ${name} relative to ${dirname} in a browser`);
55
+}
56
+0 && 0;
57
+
58
+//# sourceMappingURL=index-browser.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/files/index-browser.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"names":["findConfigUpwards","rootDir","findPackageData","filepath","directories","pkg","isPackage","findRelativeConfig","pkgData","envName","caller","config","ignore","findRootConfig","dirname","loadConfig","name","Error","resolveShowConfigPath","ROOT_CONFIG_FILENAMES","exports","resolvePlugin","resolvePreset","loadPlugin","loadPreset"],"sources":["../../../src/config/files/index-browser.ts"],"sourcesContent":["/* c8 ignore start */\n\nimport type { Handler } from \"gensync\";\n\nimport type {\n  ConfigFile,\n  IgnoreFile,\n  RelativeConfig,\n  FilePackageData,\n} from \"./types.ts\";\n\nimport type { CallerMetadata } from \"../validation/options.ts\";\n\nexport type { ConfigFile, IgnoreFile, RelativeConfig, FilePackageData };\n\nexport function findConfigUpwards(\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  rootDir: string,\n): string | null {\n  return null;\n}\n\n// eslint-disable-next-line require-yield\nexport function* findPackageData(filepath: string): Handler<FilePackageData> {\n  return {\n    filepath,\n    directories: [],\n    pkg: null,\n    isPackage: false,\n  };\n}\n\n// eslint-disable-next-line require-yield\nexport function* findRelativeConfig(\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  pkgData: FilePackageData,\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  envName: string,\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  caller: CallerMetadata | undefined,\n): Handler<RelativeConfig> {\n  return { config: null, ignore: null };\n}\n\n// eslint-disable-next-line require-yield\nexport function* findRootConfig(\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  dirname: string,\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  envName: string,\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  caller: CallerMetadata | undefined,\n): Handler<ConfigFile | null> {\n  return null;\n}\n\n// eslint-disable-next-line require-yield\nexport function* loadConfig(\n  name: string,\n  dirname: string,\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  envName: string,\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  caller: CallerMetadata | undefined,\n): Handler<ConfigFile> {\n  throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`);\n}\n\n// eslint-disable-next-line require-yield\nexport function* resolveShowConfigPath(\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  dirname: string,\n): Handler<string | null> {\n  return null;\n}\n\nexport const ROOT_CONFIG_FILENAMES: string[] = [];\n\ntype Resolved =\n  | { loader: \"require\"; filepath: string }\n  | { loader: \"import\"; filepath: string };\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function resolvePlugin(name: string, dirname: string): Resolved | null {\n  return null;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function resolvePreset(name: string, dirname: string): Resolved | null {\n  return null;\n}\n\nexport function loadPlugin(\n  name: string,\n  dirname: string,\n): Handler<{\n  filepath: string;\n  value: unknown;\n}> {\n  throw new Error(\n    `Cannot load plugin ${name} relative to ${dirname} in a browser`,\n  );\n}\n\nexport function loadPreset(\n  name: string,\n  dirname: string,\n): Handler<{\n  filepath: string;\n  value: unknown;\n}> {\n  throw new Error(\n    `Cannot load preset ${name} relative to ${dirname} in a browser`,\n  );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAeO,SAASA,iBAAiBA,CAE/BC,OAAe,EACA;EACf,OAAO,IAAI;AACb;AAGO,UAAUC,eAAeA,CAACC,QAAgB,EAA4B;EAC3E,OAAO;IACLA,QAAQ;IACRC,WAAW,EAAE,EAAE;IACfC,GAAG,EAAE,IAAI;IACTC,SAAS,EAAE;EACb,CAAC;AACH;AAGO,UAAUC,kBAAkBA,CAEjCC,OAAwB,EAExBC,OAAe,EAEfC,MAAkC,EACT;EACzB,OAAO;IAAEC,MAAM,EAAE,IAAI;IAAEC,MAAM,EAAE;EAAK,CAAC;AACvC;AAGO,UAAUC,cAAcA,CAE7BC,OAAe,EAEfL,OAAe,EAEfC,MAAkC,EACN;EAC5B,OAAO,IAAI;AACb;AAGO,UAAUK,UAAUA,CACzBC,IAAY,EACZF,OAAe,EAEfL,OAAe,EAEfC,MAAkC,EACb;EACrB,MAAM,IAAIO,KAAK,CAAC,eAAeD,IAAI,gBAAgBF,OAAO,eAAe,CAAC;AAC5E;AAGO,UAAUI,qBAAqBA,CAEpCJ,OAAe,EACS;EACxB,OAAO,IAAI;AACb;AAEO,MAAMK,qBAA+B,GAAAC,OAAA,CAAAD,qBAAA,GAAG,EAAE;AAO1C,SAASE,aAAaA,CAACL,IAAY,EAAEF,OAAe,EAAmB;EAC5E,OAAO,IAAI;AACb;AAGO,SAASQ,aAAaA,CAACN,IAAY,EAAEF,OAAe,EAAmB;EAC5E,OAAO,IAAI;AACb;AAEO,SAASS,UAAUA,CACxBP,IAAY,EACZF,OAAe,EAId;EACD,MAAM,IAAIG,KAAK,CACb,sBAAsBD,IAAI,gBAAgBF,OAAO,eACnD,CAAC;AACH;AAEO,SAASU,UAAUA,CACxBR,IAAY,EACZF,OAAe,EAId;EACD,MAAM,IAAIG,KAAK,CACb,sBAAsBD,IAAI,gBAAgBF,OAAO,eACnD,CAAC;AACH;AAAC","ignoreList":[]}

+ 78
- 0
node_modules/@babel/core/lib/config/files/index.js View File

@@ -0,0 +1,78 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+Object.defineProperty(exports, "ROOT_CONFIG_FILENAMES", {
7
+  enumerable: true,
8
+  get: function () {
9
+    return _configuration.ROOT_CONFIG_FILENAMES;
10
+  }
11
+});
12
+Object.defineProperty(exports, "findConfigUpwards", {
13
+  enumerable: true,
14
+  get: function () {
15
+    return _configuration.findConfigUpwards;
16
+  }
17
+});
18
+Object.defineProperty(exports, "findPackageData", {
19
+  enumerable: true,
20
+  get: function () {
21
+    return _package.findPackageData;
22
+  }
23
+});
24
+Object.defineProperty(exports, "findRelativeConfig", {
25
+  enumerable: true,
26
+  get: function () {
27
+    return _configuration.findRelativeConfig;
28
+  }
29
+});
30
+Object.defineProperty(exports, "findRootConfig", {
31
+  enumerable: true,
32
+  get: function () {
33
+    return _configuration.findRootConfig;
34
+  }
35
+});
36
+Object.defineProperty(exports, "loadConfig", {
37
+  enumerable: true,
38
+  get: function () {
39
+    return _configuration.loadConfig;
40
+  }
41
+});
42
+Object.defineProperty(exports, "loadPlugin", {
43
+  enumerable: true,
44
+  get: function () {
45
+    return _plugins.loadPlugin;
46
+  }
47
+});
48
+Object.defineProperty(exports, "loadPreset", {
49
+  enumerable: true,
50
+  get: function () {
51
+    return _plugins.loadPreset;
52
+  }
53
+});
54
+Object.defineProperty(exports, "resolvePlugin", {
55
+  enumerable: true,
56
+  get: function () {
57
+    return _plugins.resolvePlugin;
58
+  }
59
+});
60
+Object.defineProperty(exports, "resolvePreset", {
61
+  enumerable: true,
62
+  get: function () {
63
+    return _plugins.resolvePreset;
64
+  }
65
+});
66
+Object.defineProperty(exports, "resolveShowConfigPath", {
67
+  enumerable: true,
68
+  get: function () {
69
+    return _configuration.resolveShowConfigPath;
70
+  }
71
+});
72
+var _package = require("./package.js");
73
+var _configuration = require("./configuration.js");
74
+var _plugins = require("./plugins.js");
75
+({});
76
+0 && 0;
77
+
78
+//# sourceMappingURL=index.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/files/index.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"names":["_package","require","_configuration","_plugins"],"sources":["../../../src/config/files/index.ts"],"sourcesContent":["type indexBrowserType = typeof import(\"./index-browser\");\ntype indexType = typeof import(\"./index\");\n\n// Kind of gross, but essentially asserting that the exports of this module are the same as the\n// exports of index-browser, since this file may be replaced at bundle time with index-browser.\n({}) as any as indexBrowserType as indexType;\n\nexport { findPackageData } from \"./package.ts\";\n\nexport {\n  findConfigUpwards,\n  findRelativeConfig,\n  findRootConfig,\n  loadConfig,\n  resolveShowConfigPath,\n  ROOT_CONFIG_FILENAMES,\n} from \"./configuration.ts\";\nexport type {\n  ConfigFile,\n  IgnoreFile,\n  RelativeConfig,\n  FilePackageData,\n} from \"./types.ts\";\nexport {\n  loadPlugin,\n  loadPreset,\n  resolvePlugin,\n  resolvePreset,\n} from \"./plugins.ts\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAcA,IAAAE,QAAA,GAAAF,OAAA;AAlBA,CAAC,CAAC,CAAC;AAA0C","ignoreList":[]}

+ 211
- 0
node_modules/@babel/core/lib/config/files/module-types.js View File

@@ -0,0 +1,211 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = loadCodeDefault;
7
+exports.supportsESM = void 0;
8
+var _async = require("../../gensync-utils/async.js");
9
+function _path() {
10
+  const data = require("path");
11
+  _path = function () {
12
+    return data;
13
+  };
14
+  return data;
15
+}
16
+function _url() {
17
+  const data = require("url");
18
+  _url = function () {
19
+    return data;
20
+  };
21
+  return data;
22
+}
23
+require("module");
24
+function _semver() {
25
+  const data = require("semver");
26
+  _semver = function () {
27
+    return data;
28
+  };
29
+  return data;
30
+}
31
+function _debug() {
32
+  const data = require("debug");
33
+  _debug = function () {
34
+    return data;
35
+  };
36
+  return data;
37
+}
38
+var _rewriteStackTrace = require("../../errors/rewrite-stack-trace.js");
39
+var _configError = require("../../errors/config-error.js");
40
+var _transformFile = require("../../transform-file.js");
41
+function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
42
+function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
43
+const debug = _debug()("babel:config:loading:files:module-types");
44
+{
45
+  try {
46
+    var import_ = require("./import.cjs");
47
+  } catch (_unused) {}
48
+}
49
+const supportsESM = exports.supportsESM = _semver().satisfies(process.versions.node, "^12.17 || >=13.2");
50
+const LOADING_CJS_FILES = new Set();
51
+function loadCjsDefault(filepath) {
52
+  if (LOADING_CJS_FILES.has(filepath)) {
53
+    debug("Auto-ignoring usage of config %o.", filepath);
54
+    return {};
55
+  }
56
+  let module;
57
+  try {
58
+    LOADING_CJS_FILES.add(filepath);
59
+    module = (0, _rewriteStackTrace.endHiddenCallStack)(require)(filepath);
60
+  } finally {
61
+    LOADING_CJS_FILES.delete(filepath);
62
+  }
63
+  {
64
+    return module != null && (module.__esModule || module[Symbol.toStringTag] === "Module") ? module.default || (arguments[1] ? module : undefined) : module;
65
+  }
66
+}
67
+const loadMjsFromPath = (0, _rewriteStackTrace.endHiddenCallStack)(function () {
68
+  var _loadMjsFromPath = _asyncToGenerator(function* (filepath) {
69
+    const url = (0, _url().pathToFileURL)(filepath).toString() + "?import";
70
+    {
71
+      if (!import_) {
72
+        throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n", filepath);
73
+      }
74
+      return yield import_(url);
75
+    }
76
+  });
77
+  function loadMjsFromPath(_x) {
78
+    return _loadMjsFromPath.apply(this, arguments);
79
+  }
80
+  return loadMjsFromPath;
81
+}());
82
+const tsNotSupportedError = ext => `\
83
+You are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either:
84
+- Use a .cts config file
85
+- Update to Node.js 23.6.0, which has native TypeScript support
86
+- Install tsx to transpile ${ext} files on the fly\
87
+`;
88
+const SUPPORTED_EXTENSIONS = {
89
+  ".js": "unknown",
90
+  ".mjs": "esm",
91
+  ".cjs": "cjs",
92
+  ".ts": "unknown",
93
+  ".mts": "esm",
94
+  ".cts": "cjs"
95
+};
96
+const asyncModules = new Set();
97
+function* loadCodeDefault(filepath, loader, esmError, tlaError) {
98
+  let async;
99
+  const ext = _path().extname(filepath);
100
+  const isTS = ext === ".ts" || ext === ".cts" || ext === ".mts";
101
+  const type = SUPPORTED_EXTENSIONS[hasOwnProperty.call(SUPPORTED_EXTENSIONS, ext) ? ext : ".js"];
102
+  const pattern = `${loader} ${type}`;
103
+  switch (pattern) {
104
+    case "require cjs":
105
+    case "auto cjs":
106
+      if (isTS) {
107
+        return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));
108
+      } else {
109
+        return loadCjsDefault(filepath, arguments[2]);
110
+      }
111
+    case "auto unknown":
112
+    case "require unknown":
113
+    case "require esm":
114
+      try {
115
+        if (isTS) {
116
+          return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));
117
+        } else {
118
+          return loadCjsDefault(filepath, arguments[2]);
119
+        }
120
+      } catch (e) {
121
+        if (e.code === "ERR_REQUIRE_ASYNC_MODULE" || e.code === "ERR_REQUIRE_CYCLE_MODULE" && asyncModules.has(filepath)) {
122
+          asyncModules.add(filepath);
123
+          if (!(async != null ? async : async = yield* (0, _async.isAsync)())) {
124
+            throw new _configError.default(tlaError, filepath);
125
+          }
126
+        } else if (e.code === "ERR_REQUIRE_ESM" || type === "esm") {} else {
127
+          throw e;
128
+        }
129
+      }
130
+    case "auto esm":
131
+      if (async != null ? async : async = yield* (0, _async.isAsync)()) {
132
+        const promise = isTS ? ensureTsSupport(filepath, ext, () => loadMjsFromPath(filepath)) : loadMjsFromPath(filepath);
133
+        return (yield* (0, _async.waitFor)(promise)).default;
134
+      }
135
+      if (isTS) {
136
+        throw new _configError.default(tsNotSupportedError(ext), filepath);
137
+      } else {
138
+        throw new _configError.default(esmError, filepath);
139
+      }
140
+    default:
141
+      throw new Error("Internal Babel error: unreachable code.");
142
+  }
143
+}
144
+function ensureTsSupport(filepath, ext, callback) {
145
+  if (process.features.typescript || require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]) {
146
+    return callback();
147
+  }
148
+  if (ext !== ".cts") {
149
+    throw new _configError.default(tsNotSupportedError(ext), filepath);
150
+  }
151
+  const opts = {
152
+    babelrc: false,
153
+    configFile: false,
154
+    sourceType: "unambiguous",
155
+    sourceMaps: "inline",
156
+    sourceFileName: _path().basename(filepath),
157
+    presets: [[getTSPreset(filepath), Object.assign({
158
+      onlyRemoveTypeImports: true,
159
+      optimizeConstEnums: true
160
+    }, {
161
+      allowDeclareFields: true
162
+    })]]
163
+  };
164
+  let handler = function (m, filename) {
165
+    if (handler && filename.endsWith(".cts")) {
166
+      try {
167
+        return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, {
168
+          filename
169
+        })).code, filename);
170
+      } catch (error) {
171
+        const packageJson = require("@babel/preset-typescript/package.json");
172
+        if (_semver().lt(packageJson.version, "7.21.4")) {
173
+          console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.");
174
+        }
175
+        throw error;
176
+      }
177
+    }
178
+    return require.extensions[".js"](m, filename);
179
+  };
180
+  require.extensions[ext] = handler;
181
+  try {
182
+    return callback();
183
+  } finally {
184
+    if (require.extensions[ext] === handler) delete require.extensions[ext];
185
+    handler = undefined;
186
+  }
187
+}
188
+function getTSPreset(filepath) {
189
+  try {
190
+    return require("@babel/preset-typescript");
191
+  } catch (error) {
192
+    if (error.code !== "MODULE_NOT_FOUND") throw error;
193
+    let message = "You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";
194
+    {
195
+      if (process.versions.pnp) {
196
+        message += `
197
+If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:
198
+
199
+packageExtensions:
200
+\t"@babel/core@*":
201
+\t\tpeerDependencies:
202
+\t\t\t"@babel/preset-typescript": "*"
203
+`;
204
+      }
205
+    }
206
+    throw new _configError.default(message, filepath);
207
+  }
208
+}
209
+0 && 0;
210
+
211
+//# sourceMappingURL=module-types.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/files/module-types.js.map
File diff suppressed because it is too large
View File


+ 61
- 0
node_modules/@babel/core/lib/config/files/package.js View File

@@ -0,0 +1,61 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.findPackageData = findPackageData;
7
+function _path() {
8
+  const data = require("path");
9
+  _path = function () {
10
+    return data;
11
+  };
12
+  return data;
13
+}
14
+var _utils = require("./utils.js");
15
+var _configError = require("../../errors/config-error.js");
16
+const PACKAGE_FILENAME = "package.json";
17
+const readConfigPackage = (0, _utils.makeStaticFileCache)((filepath, content) => {
18
+  let options;
19
+  try {
20
+    options = JSON.parse(content);
21
+  } catch (err) {
22
+    throw new _configError.default(`Error while parsing JSON - ${err.message}`, filepath);
23
+  }
24
+  if (!options) throw new Error(`${filepath}: No config detected`);
25
+  if (typeof options !== "object") {
26
+    throw new _configError.default(`Config returned typeof ${typeof options}`, filepath);
27
+  }
28
+  if (Array.isArray(options)) {
29
+    throw new _configError.default(`Expected config object but found array`, filepath);
30
+  }
31
+  return {
32
+    filepath,
33
+    dirname: _path().dirname(filepath),
34
+    options
35
+  };
36
+});
37
+function* findPackageData(filepath) {
38
+  let pkg = null;
39
+  const directories = [];
40
+  let isPackage = true;
41
+  let dirname = _path().dirname(filepath);
42
+  while (!pkg && _path().basename(dirname) !== "node_modules") {
43
+    directories.push(dirname);
44
+    pkg = yield* readConfigPackage(_path().join(dirname, PACKAGE_FILENAME));
45
+    const nextLoc = _path().dirname(dirname);
46
+    if (dirname === nextLoc) {
47
+      isPackage = false;
48
+      break;
49
+    }
50
+    dirname = nextLoc;
51
+  }
52
+  return {
53
+    filepath,
54
+    directories,
55
+    pkg,
56
+    isPackage
57
+  };
58
+}
59
+0 && 0;
60
+
61
+//# sourceMappingURL=package.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/files/package.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"names":["_path","data","require","_utils","_configError","PACKAGE_FILENAME","readConfigPackage","makeStaticFileCache","filepath","content","options","JSON","parse","err","ConfigError","message","Error","Array","isArray","dirname","path","findPackageData","pkg","directories","isPackage","basename","push","join","nextLoc"],"sources":["../../../src/config/files/package.ts"],"sourcesContent":["import path from \"node:path\";\nimport type { Handler } from \"gensync\";\nimport { makeStaticFileCache } from \"./utils.ts\";\n\nimport type { ConfigFile, FilePackageData } from \"./types.ts\";\n\nimport ConfigError from \"../../errors/config-error.ts\";\n\nconst PACKAGE_FILENAME = \"package.json\";\n\nconst readConfigPackage = makeStaticFileCache(\n  (filepath, content): ConfigFile => {\n    let options;\n    try {\n      options = JSON.parse(content) as unknown;\n    } catch (err) {\n      throw new ConfigError(\n        `Error while parsing JSON - ${err.message}`,\n        filepath,\n      );\n    }\n\n    if (!options) throw new Error(`${filepath}: No config detected`);\n\n    if (typeof options !== \"object\") {\n      throw new ConfigError(\n        `Config returned typeof ${typeof options}`,\n        filepath,\n      );\n    }\n    if (Array.isArray(options)) {\n      throw new ConfigError(`Expected config object but found array`, filepath);\n    }\n\n    return {\n      filepath,\n      dirname: path.dirname(filepath),\n      options,\n    };\n  },\n);\n\n/**\n * Find metadata about the package that this file is inside of. Resolution\n * of Babel's config requires general package information to decide when to\n * search for .babelrc files\n */\nexport function* findPackageData(filepath: string): Handler<FilePackageData> {\n  let pkg = null;\n  const directories = [];\n  let isPackage = true;\n\n  let dirname = path.dirname(filepath);\n  while (!pkg && path.basename(dirname) !== \"node_modules\") {\n    directories.push(dirname);\n\n    pkg = yield* readConfigPackage(path.join(dirname, PACKAGE_FILENAME));\n\n    const nextLoc = path.dirname(dirname);\n    if (dirname === nextLoc) {\n      isPackage = false;\n      break;\n    }\n    dirname = nextLoc;\n  }\n\n  return { filepath, directories, pkg, isPackage };\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,MAAA,GAAAD,OAAA;AAIA,IAAAE,YAAA,GAAAF,OAAA;AAEA,MAAMG,gBAAgB,GAAG,cAAc;AAEvC,MAAMC,iBAAiB,GAAG,IAAAC,0BAAmB,EAC3C,CAACC,QAAQ,EAAEC,OAAO,KAAiB;EACjC,IAAIC,OAAO;EACX,IAAI;IACFA,OAAO,GAAGC,IAAI,CAACC,KAAK,CAACH,OAAO,CAAY;EAC1C,CAAC,CAAC,OAAOI,GAAG,EAAE;IACZ,MAAM,IAAIC,oBAAW,CACnB,8BAA8BD,GAAG,CAACE,OAAO,EAAE,EAC3CP,QACF,CAAC;EACH;EAEA,IAAI,CAACE,OAAO,EAAE,MAAM,IAAIM,KAAK,CAAC,GAAGR,QAAQ,sBAAsB,CAAC;EAEhE,IAAI,OAAOE,OAAO,KAAK,QAAQ,EAAE;IAC/B,MAAM,IAAII,oBAAW,CACnB,0BAA0B,OAAOJ,OAAO,EAAE,EAC1CF,QACF,CAAC;EACH;EACA,IAAIS,KAAK,CAACC,OAAO,CAACR,OAAO,CAAC,EAAE;IAC1B,MAAM,IAAII,oBAAW,CAAC,wCAAwC,EAAEN,QAAQ,CAAC;EAC3E;EAEA,OAAO;IACLA,QAAQ;IACRW,OAAO,EAAEC,MAAGA,CAAC,CAACD,OAAO,CAACX,QAAQ,CAAC;IAC/BE;EACF,CAAC;AACH,CACF,CAAC;AAOM,UAAUW,eAAeA,CAACb,QAAgB,EAA4B;EAC3E,IAAIc,GAAG,GAAG,IAAI;EACd,MAAMC,WAAW,GAAG,EAAE;EACtB,IAAIC,SAAS,GAAG,IAAI;EAEpB,IAAIL,OAAO,GAAGC,MAAGA,CAAC,CAACD,OAAO,CAACX,QAAQ,CAAC;EACpC,OAAO,CAACc,GAAG,IAAIF,MAAGA,CAAC,CAACK,QAAQ,CAACN,OAAO,CAAC,KAAK,cAAc,EAAE;IACxDI,WAAW,CAACG,IAAI,CAACP,OAAO,CAAC;IAEzBG,GAAG,GAAG,OAAOhB,iBAAiB,CAACc,MAAGA,CAAC,CAACO,IAAI,CAACR,OAAO,EAAEd,gBAAgB,CAAC,CAAC;IAEpE,MAAMuB,OAAO,GAAGR,MAAGA,CAAC,CAACD,OAAO,CAACA,OAAO,CAAC;IACrC,IAAIA,OAAO,KAAKS,OAAO,EAAE;MACvBJ,SAAS,GAAG,KAAK;MACjB;IACF;IACAL,OAAO,GAAGS,OAAO;EACnB;EAEA,OAAO;IAAEpB,QAAQ;IAAEe,WAAW;IAAED,GAAG;IAAEE;EAAU,CAAC;AAClD;AAAC","ignoreList":[]}

+ 230
- 0
node_modules/@babel/core/lib/config/files/plugins.js View File

@@ -0,0 +1,230 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.loadPlugin = loadPlugin;
7
+exports.loadPreset = loadPreset;
8
+exports.resolvePreset = exports.resolvePlugin = void 0;
9
+function _debug() {
10
+  const data = require("debug");
11
+  _debug = function () {
12
+    return data;
13
+  };
14
+  return data;
15
+}
16
+function _path() {
17
+  const data = require("path");
18
+  _path = function () {
19
+    return data;
20
+  };
21
+  return data;
22
+}
23
+var _async = require("../../gensync-utils/async.js");
24
+var _moduleTypes = require("./module-types.js");
25
+function _url() {
26
+  const data = require("url");
27
+  _url = function () {
28
+    return data;
29
+  };
30
+  return data;
31
+}
32
+var _importMetaResolve = require("../../vendor/import-meta-resolve.js");
33
+require("module");
34
+function _fs() {
35
+  const data = require("fs");
36
+  _fs = function () {
37
+    return data;
38
+  };
39
+  return data;
40
+}
41
+const debug = _debug()("babel:config:loading:files:plugins");
42
+const EXACT_RE = /^module:/;
43
+const BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-plugin-)/;
44
+const BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-preset-)/;
45
+const BABEL_PLUGIN_ORG_RE = /^(@babel\/)(?!plugin-|[^/]+\/)/;
46
+const BABEL_PRESET_ORG_RE = /^(@babel\/)(?!preset-|[^/]+\/)/;
47
+const OTHER_PLUGIN_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/;
48
+const OTHER_PRESET_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/;
49
+const OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;
50
+const resolvePlugin = exports.resolvePlugin = resolveStandardizedName.bind(null, "plugin");
51
+const resolvePreset = exports.resolvePreset = resolveStandardizedName.bind(null, "preset");
52
+function* loadPlugin(name, dirname) {
53
+  const {
54
+    filepath,
55
+    loader
56
+  } = resolvePlugin(name, dirname, yield* (0, _async.isAsync)());
57
+  const value = yield* requireModule("plugin", loader, filepath);
58
+  debug("Loaded plugin %o from %o.", name, dirname);
59
+  return {
60
+    filepath,
61
+    value
62
+  };
63
+}
64
+function* loadPreset(name, dirname) {
65
+  const {
66
+    filepath,
67
+    loader
68
+  } = resolvePreset(name, dirname, yield* (0, _async.isAsync)());
69
+  const value = yield* requireModule("preset", loader, filepath);
70
+  debug("Loaded preset %o from %o.", name, dirname);
71
+  return {
72
+    filepath,
73
+    value
74
+  };
75
+}
76
+function standardizeName(type, name) {
77
+  if (_path().isAbsolute(name)) return name;
78
+  const isPreset = type === "preset";
79
+  return name.replace(isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE, `babel-${type}-`).replace(isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE, `$1${type}-`).replace(isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE, `$1babel-${type}-`).replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`).replace(EXACT_RE, "");
80
+}
81
+function* resolveAlternativesHelper(type, name) {
82
+  const standardizedName = standardizeName(type, name);
83
+  const {
84
+    error,
85
+    value
86
+  } = yield standardizedName;
87
+  if (!error) return value;
88
+  if (error.code !== "MODULE_NOT_FOUND") throw error;
89
+  if (standardizedName !== name && !(yield name).error) {
90
+    error.message += `\n- If you want to resolve "${name}", use "module:${name}"`;
91
+  }
92
+  if (!(yield standardizeName(type, "@babel/" + name)).error) {
93
+    error.message += `\n- Did you mean "@babel/${name}"?`;
94
+  }
95
+  const oppositeType = type === "preset" ? "plugin" : "preset";
96
+  if (!(yield standardizeName(oppositeType, name)).error) {
97
+    error.message += `\n- Did you accidentally pass a ${oppositeType} as a ${type}?`;
98
+  }
99
+  if (type === "plugin") {
100
+    const transformName = standardizedName.replace("-proposal-", "-transform-");
101
+    if (transformName !== standardizedName && !(yield transformName).error) {
102
+      error.message += `\n- Did you mean "${transformName}"?`;
103
+    }
104
+  }
105
+  error.message += `\n
106
+Make sure that all the Babel plugins and presets you are using
107
+are defined as dependencies or devDependencies in your package.json
108
+file. It's possible that the missing plugin is loaded by a preset
109
+you are using that forgot to add the plugin to its dependencies: you
110
+can workaround this problem by explicitly adding the missing package
111
+to your top-level package.json.
112
+`;
113
+  throw error;
114
+}
115
+function tryRequireResolve(id, dirname) {
116
+  try {
117
+    if (dirname) {
118
+      return {
119
+        error: null,
120
+        value: (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, {
121
+          paths: [b]
122
+        }, M = require("module")) => {
123
+          let f = M._findPath(r, M._nodeModulePaths(b).concat(b));
124
+          if (f) return f;
125
+          f = new Error(`Cannot resolve module '${r}'`);
126
+          f.code = "MODULE_NOT_FOUND";
127
+          throw f;
128
+        })(id, {
129
+          paths: [dirname]
130
+        })
131
+      };
132
+    } else {
133
+      return {
134
+        error: null,
135
+        value: require.resolve(id)
136
+      };
137
+    }
138
+  } catch (error) {
139
+    return {
140
+      error,
141
+      value: null
142
+    };
143
+  }
144
+}
145
+function tryImportMetaResolve(id, options) {
146
+  try {
147
+    return {
148
+      error: null,
149
+      value: (0, _importMetaResolve.resolve)(id, options)
150
+    };
151
+  } catch (error) {
152
+    return {
153
+      error,
154
+      value: null
155
+    };
156
+  }
157
+}
158
+function resolveStandardizedNameForRequire(type, name, dirname) {
159
+  const it = resolveAlternativesHelper(type, name);
160
+  let res = it.next();
161
+  while (!res.done) {
162
+    res = it.next(tryRequireResolve(res.value, dirname));
163
+  }
164
+  return {
165
+    loader: "require",
166
+    filepath: res.value
167
+  };
168
+}
169
+function resolveStandardizedNameForImport(type, name, dirname) {
170
+  const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname, "./babel-virtual-resolve-base.js")).href;
171
+  const it = resolveAlternativesHelper(type, name);
172
+  let res = it.next();
173
+  while (!res.done) {
174
+    res = it.next(tryImportMetaResolve(res.value, parentUrl));
175
+  }
176
+  return {
177
+    loader: "auto",
178
+    filepath: (0, _url().fileURLToPath)(res.value)
179
+  };
180
+}
181
+function resolveStandardizedName(type, name, dirname, allowAsync) {
182
+  if (!_moduleTypes.supportsESM || !allowAsync) {
183
+    return resolveStandardizedNameForRequire(type, name, dirname);
184
+  }
185
+  try {
186
+    const resolved = resolveStandardizedNameForImport(type, name, dirname);
187
+    if (!(0, _fs().existsSync)(resolved.filepath)) {
188
+      throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname}.`), {
189
+        type: "MODULE_NOT_FOUND"
190
+      });
191
+    }
192
+    return resolved;
193
+  } catch (e) {
194
+    try {
195
+      return resolveStandardizedNameForRequire(type, name, dirname);
196
+    } catch (e2) {
197
+      if (e.type === "MODULE_NOT_FOUND") throw e;
198
+      if (e2.type === "MODULE_NOT_FOUND") throw e2;
199
+      throw e;
200
+    }
201
+  }
202
+}
203
+{
204
+  var LOADING_MODULES = new Set();
205
+}
206
+function* requireModule(type, loader, name) {
207
+  {
208
+    if (!(yield* (0, _async.isAsync)()) && LOADING_MODULES.has(name)) {
209
+      throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored ` + "and is trying to load itself while compiling itself, leading to a dependency cycle. " + 'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.');
210
+    }
211
+  }
212
+  try {
213
+    {
214
+      LOADING_MODULES.add(name);
215
+    }
216
+    {
217
+      return yield* (0, _moduleTypes.default)(name, loader, `You appear to be using a native ECMAScript module ${type}, ` + "which is only supported when running Babel asynchronously " + "or when using the Node.js `--experimental-require-module` flag.", `You appear to be using a ${type} that contains top-level await, ` + "which is only supported when running Babel asynchronously.", true);
218
+    }
219
+  } catch (err) {
220
+    err.message = `[BABEL]: ${err.message} (While processing: ${name})`;
221
+    throw err;
222
+  } finally {
223
+    {
224
+      LOADING_MODULES.delete(name);
225
+    }
226
+  }
227
+}
228
+0 && 0;
229
+
230
+//# sourceMappingURL=plugins.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/files/plugins.js.map
File diff suppressed because it is too large
View File


+ 5
- 0
node_modules/@babel/core/lib/config/files/types.js View File

@@ -0,0 +1,5 @@
1
+"use strict";
2
+
3
+0 && 0;
4
+
5
+//# sourceMappingURL=types.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/files/types.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"names":[],"sources":["../../../src/config/files/types.ts"],"sourcesContent":["import type { InputOptions } from \"../index.ts\";\n\nexport type ConfigFile = {\n  filepath: string;\n  dirname: string;\n  options: InputOptions & { babel?: unknown };\n};\n\nexport type IgnoreFile = {\n  filepath: string;\n  dirname: string;\n  ignore: Array<RegExp>;\n};\n\nexport type RelativeConfig = {\n  // The actual config, either from package.json#babel, .babelrc, or\n  // .babelrc.js, if there was one.\n  config: ConfigFile | null;\n  // The .babelignore, if there was one.\n  ignore: IgnoreFile | null;\n};\n\nexport type FilePackageData = {\n  // The file in the package.\n  filepath: string;\n  // Any ancestor directories of the file that are within the package.\n  directories: Array<string>;\n  // The contents of the package.json. May not be found if the package just\n  // terminated at a node_modules folder without finding one.\n  pkg: ConfigFile | null;\n  // True if a package.json or node_modules folder was found while traversing\n  // the directory structure.\n  isPackage: boolean;\n};\n"],"mappings":"","ignoreList":[]}

+ 36
- 0
node_modules/@babel/core/lib/config/files/utils.js View File

@@ -0,0 +1,36 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.makeStaticFileCache = makeStaticFileCache;
7
+var _caching = require("../caching.js");
8
+var fs = require("../../gensync-utils/fs.js");
9
+function _fs2() {
10
+  const data = require("fs");
11
+  _fs2 = function () {
12
+    return data;
13
+  };
14
+  return data;
15
+}
16
+function makeStaticFileCache(fn) {
17
+  return (0, _caching.makeStrongCache)(function* (filepath, cache) {
18
+    const cached = cache.invalidate(() => fileMtime(filepath));
19
+    if (cached === null) {
20
+      return null;
21
+    }
22
+    return fn(filepath, yield* fs.readFile(filepath, "utf8"));
23
+  });
24
+}
25
+function fileMtime(filepath) {
26
+  if (!_fs2().existsSync(filepath)) return null;
27
+  try {
28
+    return +_fs2().statSync(filepath).mtime;
29
+  } catch (e) {
30
+    if (e.code !== "ENOENT" && e.code !== "ENOTDIR") throw e;
31
+  }
32
+  return null;
33
+}
34
+0 && 0;
35
+
36
+//# sourceMappingURL=utils.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/files/utils.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"names":["_caching","require","fs","_fs2","data","makeStaticFileCache","fn","makeStrongCache","filepath","cache","cached","invalidate","fileMtime","readFile","nodeFs","existsSync","statSync","mtime","e","code"],"sources":["../../../src/config/files/utils.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\n\nimport { makeStrongCache } from \"../caching.ts\";\nimport type { CacheConfigurator } from \"../caching.ts\";\nimport * as fs from \"../../gensync-utils/fs.ts\";\nimport nodeFs from \"node:fs\";\n\nexport function makeStaticFileCache<T>(\n  fn: (filepath: string, contents: string) => T,\n) {\n  return makeStrongCache(function* (\n    filepath: string,\n    cache: CacheConfigurator<void>,\n  ): Handler<null | T> {\n    const cached = cache.invalidate(() => fileMtime(filepath));\n\n    if (cached === null) {\n      return null;\n    }\n\n    return fn(filepath, yield* fs.readFile(filepath, \"utf8\"));\n  });\n}\n\nfunction fileMtime(filepath: string): number | null {\n  if (!nodeFs.existsSync(filepath)) return null;\n\n  try {\n    return +nodeFs.statSync(filepath).mtime;\n  } catch (e) {\n    if (e.code !== \"ENOENT\" && e.code !== \"ENOTDIR\") throw e;\n  }\n\n  return null;\n}\n"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,EAAA,GAAAD,OAAA;AACA,SAAAE,KAAA;EAAA,MAAAC,IAAA,GAAAH,OAAA;EAAAE,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,SAASC,mBAAmBA,CACjCC,EAA6C,EAC7C;EACA,OAAO,IAAAC,wBAAe,EAAC,WACrBC,QAAgB,EAChBC,KAA8B,EACX;IACnB,MAAMC,MAAM,GAAGD,KAAK,CAACE,UAAU,CAAC,MAAMC,SAAS,CAACJ,QAAQ,CAAC,CAAC;IAE1D,IAAIE,MAAM,KAAK,IAAI,EAAE;MACnB,OAAO,IAAI;IACb;IAEA,OAAOJ,EAAE,CAACE,QAAQ,EAAE,OAAON,EAAE,CAACW,QAAQ,CAACL,QAAQ,EAAE,MAAM,CAAC,CAAC;EAC3D,CAAC,CAAC;AACJ;AAEA,SAASI,SAASA,CAACJ,QAAgB,EAAiB;EAClD,IAAI,CAACM,KAAKA,CAAC,CAACC,UAAU,CAACP,QAAQ,CAAC,EAAE,OAAO,IAAI;EAE7C,IAAI;IACF,OAAO,CAACM,KAAKA,CAAC,CAACE,QAAQ,CAACR,QAAQ,CAAC,CAACS,KAAK;EACzC,CAAC,CAAC,OAAOC,CAAC,EAAE;IACV,IAAIA,CAAC,CAACC,IAAI,KAAK,QAAQ,IAAID,CAAC,CAACC,IAAI,KAAK,SAAS,EAAE,MAAMD,CAAC;EAC1D;EAEA,OAAO,IAAI;AACb;AAAC","ignoreList":[]}

+ 312
- 0
node_modules/@babel/core/lib/config/full.js View File

@@ -0,0 +1,312 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = void 0;
7
+function _gensync() {
8
+  const data = require("gensync");
9
+  _gensync = function () {
10
+    return data;
11
+  };
12
+  return data;
13
+}
14
+var _async = require("../gensync-utils/async.js");
15
+var _util = require("./util.js");
16
+var context = require("../index.js");
17
+var _plugin = require("./plugin.js");
18
+var _item = require("./item.js");
19
+var _configChain = require("./config-chain.js");
20
+var _deepArray = require("./helpers/deep-array.js");
21
+function _traverse() {
22
+  const data = require("@babel/traverse");
23
+  _traverse = function () {
24
+    return data;
25
+  };
26
+  return data;
27
+}
28
+var _caching = require("./caching.js");
29
+var _options = require("./validation/options.js");
30
+var _plugins = require("./validation/plugins.js");
31
+var _configApi = require("./helpers/config-api.js");
32
+var _partial = require("./partial.js");
33
+var _configError = require("../errors/config-error.js");
34
+var _default = exports.default = _gensync()(function* loadFullConfig(inputOpts) {
35
+  var _opts$assumptions;
36
+  const result = yield* (0, _partial.default)(inputOpts);
37
+  if (!result) {
38
+    return null;
39
+  }
40
+  const {
41
+    options,
42
+    context,
43
+    fileHandling
44
+  } = result;
45
+  if (fileHandling === "ignored") {
46
+    return null;
47
+  }
48
+  const optionDefaults = {};
49
+  const {
50
+    plugins,
51
+    presets
52
+  } = options;
53
+  if (!plugins || !presets) {
54
+    throw new Error("Assertion failure - plugins and presets exist");
55
+  }
56
+  const presetContext = Object.assign({}, context, {
57
+    targets: options.targets
58
+  });
59
+  const toDescriptor = item => {
60
+    const desc = (0, _item.getItemDescriptor)(item);
61
+    if (!desc) {
62
+      throw new Error("Assertion failure - must be config item");
63
+    }
64
+    return desc;
65
+  };
66
+  const presetsDescriptors = presets.map(toDescriptor);
67
+  const initialPluginsDescriptors = plugins.map(toDescriptor);
68
+  const pluginDescriptorsByPass = [[]];
69
+  const passes = [];
70
+  const externalDependencies = [];
71
+  const ignored = yield* enhanceError(context, function* recursePresetDescriptors(rawPresets, pluginDescriptorsPass) {
72
+    const presets = [];
73
+    for (let i = 0; i < rawPresets.length; i++) {
74
+      const descriptor = rawPresets[i];
75
+      if (descriptor.options !== false) {
76
+        try {
77
+          var preset = yield* loadPresetDescriptor(descriptor, presetContext);
78
+        } catch (e) {
79
+          if (e.code === "BABEL_UNKNOWN_OPTION") {
80
+            (0, _options.checkNoUnwrappedItemOptionPairs)(rawPresets, i, "preset", e);
81
+          }
82
+          throw e;
83
+        }
84
+        externalDependencies.push(preset.externalDependencies);
85
+        if (descriptor.ownPass) {
86
+          presets.push({
87
+            preset: preset.chain,
88
+            pass: []
89
+          });
90
+        } else {
91
+          presets.unshift({
92
+            preset: preset.chain,
93
+            pass: pluginDescriptorsPass
94
+          });
95
+        }
96
+      }
97
+    }
98
+    if (presets.length > 0) {
99
+      pluginDescriptorsByPass.splice(1, 0, ...presets.map(o => o.pass).filter(p => p !== pluginDescriptorsPass));
100
+      for (const {
101
+        preset,
102
+        pass
103
+      } of presets) {
104
+        if (!preset) return true;
105
+        pass.push(...preset.plugins);
106
+        const ignored = yield* recursePresetDescriptors(preset.presets, pass);
107
+        if (ignored) return true;
108
+        preset.options.forEach(opts => {
109
+          (0, _util.mergeOptions)(optionDefaults, opts);
110
+        });
111
+      }
112
+    }
113
+  })(presetsDescriptors, pluginDescriptorsByPass[0]);
114
+  if (ignored) return null;
115
+  const opts = optionDefaults;
116
+  (0, _util.mergeOptions)(opts, options);
117
+  const pluginContext = Object.assign({}, presetContext, {
118
+    assumptions: (_opts$assumptions = opts.assumptions) != null ? _opts$assumptions : {}
119
+  });
120
+  yield* enhanceError(context, function* loadPluginDescriptors() {
121
+    pluginDescriptorsByPass[0].unshift(...initialPluginsDescriptors);
122
+    for (const descs of pluginDescriptorsByPass) {
123
+      const pass = [];
124
+      passes.push(pass);
125
+      for (let i = 0; i < descs.length; i++) {
126
+        const descriptor = descs[i];
127
+        if (descriptor.options !== false) {
128
+          try {
129
+            var plugin = yield* loadPluginDescriptor(descriptor, pluginContext);
130
+          } catch (e) {
131
+            if (e.code === "BABEL_UNKNOWN_PLUGIN_PROPERTY") {
132
+              (0, _options.checkNoUnwrappedItemOptionPairs)(descs, i, "plugin", e);
133
+            }
134
+            throw e;
135
+          }
136
+          pass.push(plugin);
137
+          externalDependencies.push(plugin.externalDependencies);
138
+        }
139
+      }
140
+    }
141
+  })();
142
+  opts.plugins = passes[0];
143
+  opts.presets = passes.slice(1).filter(plugins => plugins.length > 0).map(plugins => ({
144
+    plugins
145
+  }));
146
+  opts.passPerPreset = opts.presets.length > 0;
147
+  return {
148
+    options: opts,
149
+    passes: passes,
150
+    externalDependencies: (0, _deepArray.finalize)(externalDependencies)
151
+  };
152
+});
153
+function enhanceError(context, fn) {
154
+  return function* (arg1, arg2) {
155
+    try {
156
+      return yield* fn(arg1, arg2);
157
+    } catch (e) {
158
+      if (!/^\[BABEL\]/.test(e.message)) {
159
+        var _context$filename;
160
+        e.message = `[BABEL] ${(_context$filename = context.filename) != null ? _context$filename : "unknown file"}: ${e.message}`;
161
+      }
162
+      throw e;
163
+    }
164
+  };
165
+}
166
+const makeDescriptorLoader = apiFactory => (0, _caching.makeWeakCache)(function* ({
167
+  value,
168
+  options,
169
+  dirname,
170
+  alias
171
+}, cache) {
172
+  if (options === false) throw new Error("Assertion failure");
173
+  options = options || {};
174
+  const externalDependencies = [];
175
+  let item = value;
176
+  if (typeof value === "function") {
177
+    const factory = (0, _async.maybeAsync)(value, `You appear to be using an async plugin/preset, but Babel has been called synchronously`);
178
+    const api = Object.assign({}, context, apiFactory(cache, externalDependencies));
179
+    try {
180
+      item = yield* factory(api, options, dirname);
181
+    } catch (e) {
182
+      if (alias) {
183
+        e.message += ` (While processing: ${JSON.stringify(alias)})`;
184
+      }
185
+      throw e;
186
+    }
187
+  }
188
+  if (!item || typeof item !== "object") {
189
+    throw new Error("Plugin/Preset did not return an object.");
190
+  }
191
+  if ((0, _async.isThenable)(item)) {
192
+    yield* [];
193
+    throw new Error(`You appear to be using a promise as a plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, ` + `you may need to upgrade your @babel/core version. ` + `As an alternative, you can prefix the promise with "await". ` + `(While processing: ${JSON.stringify(alias)})`);
194
+  }
195
+  if (externalDependencies.length > 0 && (!cache.configured() || cache.mode() === "forever")) {
196
+    let error = `A plugin/preset has external untracked dependencies ` + `(${externalDependencies[0]}), but the cache `;
197
+    if (!cache.configured()) {
198
+      error += `has not been configured to be invalidated when the external dependencies change. `;
199
+    } else {
200
+      error += ` has been configured to never be invalidated. `;
201
+    }
202
+    error += `Plugins/presets should configure their cache to be invalidated when the external ` + `dependencies change, for example using \`api.cache.invalidate(() => ` + `statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n` + `(While processing: ${JSON.stringify(alias)})`;
203
+    throw new Error(error);
204
+  }
205
+  return {
206
+    value: item,
207
+    options,
208
+    dirname,
209
+    alias,
210
+    externalDependencies: (0, _deepArray.finalize)(externalDependencies)
211
+  };
212
+});
213
+const pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI);
214
+const presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI);
215
+const instantiatePlugin = (0, _caching.makeWeakCache)(function* ({
216
+  value,
217
+  options,
218
+  dirname,
219
+  alias,
220
+  externalDependencies
221
+}, cache) {
222
+  const pluginObj = (0, _plugins.validatePluginObject)(value);
223
+  const plugin = Object.assign({}, pluginObj);
224
+  if (plugin.visitor) {
225
+    plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor));
226
+  }
227
+  if (plugin.inherits) {
228
+    const inheritsDescriptor = {
229
+      name: undefined,
230
+      alias: `${alias}$inherits`,
231
+      value: plugin.inherits,
232
+      options,
233
+      dirname
234
+    };
235
+    const inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, run => {
236
+      return cache.invalidate(data => run(inheritsDescriptor, data));
237
+    });
238
+    plugin.pre = chainMaybeAsync(inherits.pre, plugin.pre);
239
+    plugin.post = chainMaybeAsync(inherits.post, plugin.post);
240
+    plugin.manipulateOptions = chainMaybeAsync(inherits.manipulateOptions, plugin.manipulateOptions);
241
+    plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]);
242
+    if (inherits.externalDependencies.length > 0) {
243
+      if (externalDependencies.length === 0) {
244
+        externalDependencies = inherits.externalDependencies;
245
+      } else {
246
+        externalDependencies = (0, _deepArray.finalize)([externalDependencies, inherits.externalDependencies]);
247
+      }
248
+    }
249
+  }
250
+  return new _plugin.default(plugin, options, alias, externalDependencies);
251
+});
252
+function* loadPluginDescriptor(descriptor, context) {
253
+  if (descriptor.value instanceof _plugin.default) {
254
+    if (descriptor.options) {
255
+      throw new Error("Passed options to an existing Plugin instance will not work.");
256
+    }
257
+    return descriptor.value;
258
+  }
259
+  return yield* instantiatePlugin(yield* pluginDescriptorLoader(descriptor, context), context);
260
+}
261
+const needsFilename = val => val && typeof val !== "function";
262
+const validateIfOptionNeedsFilename = (options, descriptor) => {
263
+  if (needsFilename(options.test) || needsFilename(options.include) || needsFilename(options.exclude)) {
264
+    const formattedPresetName = descriptor.name ? `"${descriptor.name}"` : "/* your preset */";
265
+    throw new _configError.default([`Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`, `\`\`\``, `babel.transformSync(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`, `\`\`\``, `See https://babeljs.io/docs/en/options#filename for more information.`].join("\n"));
266
+  }
267
+};
268
+const validatePreset = (preset, context, descriptor) => {
269
+  if (!context.filename) {
270
+    var _options$overrides;
271
+    const {
272
+      options
273
+    } = preset;
274
+    validateIfOptionNeedsFilename(options, descriptor);
275
+    (_options$overrides = options.overrides) == null || _options$overrides.forEach(overrideOptions => validateIfOptionNeedsFilename(overrideOptions, descriptor));
276
+  }
277
+};
278
+const instantiatePreset = (0, _caching.makeWeakCacheSync)(({
279
+  value,
280
+  dirname,
281
+  alias,
282
+  externalDependencies
283
+}) => {
284
+  return {
285
+    options: (0, _options.validate)("preset", value),
286
+    alias,
287
+    dirname,
288
+    externalDependencies
289
+  };
290
+});
291
+function* loadPresetDescriptor(descriptor, context) {
292
+  const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context));
293
+  validatePreset(preset, context, descriptor);
294
+  return {
295
+    chain: yield* (0, _configChain.buildPresetChain)(preset, context),
296
+    externalDependencies: preset.externalDependencies
297
+  };
298
+}
299
+function chainMaybeAsync(a, b) {
300
+  if (!a) return b;
301
+  if (!b) return a;
302
+  return function (...args) {
303
+    const res = a.apply(this, args);
304
+    if (res && typeof res.then === "function") {
305
+      return res.then(() => b.apply(this, args));
306
+    }
307
+    return b.apply(this, args);
308
+  };
309
+}
310
+0 && 0;
311
+
312
+//# sourceMappingURL=full.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/full.js.map
File diff suppressed because it is too large
View File


+ 84
- 0
node_modules/@babel/core/lib/config/helpers/config-api.js View File

@@ -0,0 +1,84 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.makeConfigAPI = makeConfigAPI;
7
+exports.makePluginAPI = makePluginAPI;
8
+exports.makePresetAPI = makePresetAPI;
9
+function _semver() {
10
+  const data = require("semver");
11
+  _semver = function () {
12
+    return data;
13
+  };
14
+  return data;
15
+}
16
+var _index = require("../../index.js");
17
+var _caching = require("../caching.js");
18
+function makeConfigAPI(cache) {
19
+  const env = value => cache.using(data => {
20
+    if (value === undefined) return data.envName;
21
+    if (typeof value === "function") {
22
+      return (0, _caching.assertSimpleType)(value(data.envName));
23
+    }
24
+    return (Array.isArray(value) ? value : [value]).some(entry => {
25
+      if (typeof entry !== "string") {
26
+        throw new Error("Unexpected non-string value");
27
+      }
28
+      return entry === data.envName;
29
+    });
30
+  });
31
+  const caller = cb => cache.using(data => (0, _caching.assertSimpleType)(cb(data.caller)));
32
+  return {
33
+    version: _index.version,
34
+    cache: cache.simple(),
35
+    env,
36
+    async: () => false,
37
+    caller,
38
+    assertVersion
39
+  };
40
+}
41
+function makePresetAPI(cache, externalDependencies) {
42
+  const targets = () => JSON.parse(cache.using(data => JSON.stringify(data.targets)));
43
+  const addExternalDependency = ref => {
44
+    externalDependencies.push(ref);
45
+  };
46
+  return Object.assign({}, makeConfigAPI(cache), {
47
+    targets,
48
+    addExternalDependency
49
+  });
50
+}
51
+function makePluginAPI(cache, externalDependencies) {
52
+  const assumption = name => cache.using(data => data.assumptions[name]);
53
+  return Object.assign({}, makePresetAPI(cache, externalDependencies), {
54
+    assumption
55
+  });
56
+}
57
+function assertVersion(range) {
58
+  if (typeof range === "number") {
59
+    if (!Number.isInteger(range)) {
60
+      throw new Error("Expected string or integer value.");
61
+    }
62
+    range = `^${range}.0.0-0`;
63
+  }
64
+  if (typeof range !== "string") {
65
+    throw new Error("Expected string or integer value.");
66
+  }
67
+  if (range === "*" || _semver().satisfies(_index.version, range)) return;
68
+  const limit = Error.stackTraceLimit;
69
+  if (typeof limit === "number" && limit < 25) {
70
+    Error.stackTraceLimit = 25;
71
+  }
72
+  const err = new Error(`Requires Babel "${range}", but was loaded with "${_index.version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`);
73
+  if (typeof limit === "number") {
74
+    Error.stackTraceLimit = limit;
75
+  }
76
+  throw Object.assign(err, {
77
+    code: "BABEL_VERSION_UNSUPPORTED",
78
+    version: _index.version,
79
+    range
80
+  });
81
+}
82
+0 && 0;
83
+
84
+//# sourceMappingURL=config-api.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/helpers/config-api.js.map
File diff suppressed because it is too large
View File


+ 23
- 0
node_modules/@babel/core/lib/config/helpers/deep-array.js View File

@@ -0,0 +1,23 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.finalize = finalize;
7
+exports.flattenToSet = flattenToSet;
8
+function finalize(deepArr) {
9
+  return Object.freeze(deepArr);
10
+}
11
+function flattenToSet(arr) {
12
+  const result = new Set();
13
+  const stack = [arr];
14
+  while (stack.length > 0) {
15
+    for (const el of stack.pop()) {
16
+      if (Array.isArray(el)) stack.push(el);else result.add(el);
17
+    }
18
+  }
19
+  return result;
20
+}
21
+0 && 0;
22
+
23
+//# sourceMappingURL=deep-array.js.map

+ 1
- 0
node_modules/@babel/core/lib/config/helpers/deep-array.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"names":["finalize","deepArr","Object","freeze","flattenToSet","arr","result","Set","stack","length","el","pop","Array","isArray","push","add"],"sources":["../../../src/config/helpers/deep-array.ts"],"sourcesContent":["export type DeepArray<T> = Array<T | ReadonlyDeepArray<T>>;\n\n// Just to make sure that DeepArray<T> is not assignable to ReadonlyDeepArray<T>\ndeclare const __marker: unique symbol;\nexport type ReadonlyDeepArray<T> = ReadonlyArray<T | ReadonlyDeepArray<T>> & {\n  [__marker]: true;\n};\n\nexport function finalize<T>(deepArr: DeepArray<T>): ReadonlyDeepArray<T> {\n  return Object.freeze(deepArr) as ReadonlyDeepArray<T>;\n}\n\nexport function flattenToSet<T extends string>(\n  arr: ReadonlyDeepArray<T>,\n): Set<T> {\n  const result = new Set<T>();\n  const stack = [arr];\n  while (stack.length > 0) {\n    for (const el of stack.pop()) {\n      if (Array.isArray(el)) stack.push(el as ReadonlyDeepArray<T>);\n      else result.add(el as T);\n    }\n  }\n  return result;\n}\n"],"mappings":";;;;;;;AAQO,SAASA,QAAQA,CAAIC,OAAqB,EAAwB;EACvE,OAAOC,MAAM,CAACC,MAAM,CAACF,OAAO,CAAC;AAC/B;AAEO,SAASG,YAAYA,CAC1BC,GAAyB,EACjB;EACR,MAAMC,MAAM,GAAG,IAAIC,GAAG,CAAI,CAAC;EAC3B,MAAMC,KAAK,GAAG,CAACH,GAAG,CAAC;EACnB,OAAOG,KAAK,CAACC,MAAM,GAAG,CAAC,EAAE;IACvB,KAAK,MAAMC,EAAE,IAAIF,KAAK,CAACG,GAAG,CAAC,CAAC,EAAE;MAC5B,IAAIC,KAAK,CAACC,OAAO,CAACH,EAAE,CAAC,EAAEF,KAAK,CAACM,IAAI,CAACJ,EAA0B,CAAC,CAAC,KACzDJ,MAAM,CAACS,GAAG,CAACL,EAAO,CAAC;IAC1B;EACF;EACA,OAAOJ,MAAM;AACf;AAAC","ignoreList":[]}

+ 12
- 0
node_modules/@babel/core/lib/config/helpers/environment.js View File

@@ -0,0 +1,12 @@
1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.getEnv = getEnv;
7
+function getEnv(defaultValue = "development") {
8
+  return process.env.BABEL_ENV || process.env.NODE_ENV || defaultValue;
9
+}
10
+0 && 0;
11
+
12
+//# sourceMappingURL=environment.js.map

+ 0
- 0
node_modules/@babel/core/lib/config/helpers/environment.js.map View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save