@foundbyte/uni-libs 1.0.4-alpha.1 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/es/_virtual/_@oxc-project_runtime@0.103.0/helpers/asyncToGenerator.js +28 -0
  2. package/es/_virtual/_@oxc-project_runtime@0.103.0/helpers/defineProperty.js +14 -0
  3. package/es/_virtual/_@oxc-project_runtime@0.103.0/helpers/objectSpread2.js +27 -0
  4. package/es/_virtual/_@oxc-project_runtime@0.103.0/helpers/objectWithoutProperties.js +15 -0
  5. package/es/_virtual/_@oxc-project_runtime@0.103.0/helpers/objectWithoutPropertiesLoose.js +13 -0
  6. package/es/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPrimitive.js +16 -0
  7. package/es/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPropertyKey.js +11 -0
  8. package/es/_virtual/_@oxc-project_runtime@0.103.0/helpers/typeof.js +12 -0
  9. package/es/configs/app/app.hwtest.js +1 -1
  10. package/es/configs/app/index.js +2 -4
  11. package/es/entry.js +5 -8
  12. package/es/services/goods/service.js +4 -7
  13. package/es/utils/uni-env/index.js +2 -4
  14. package/es/utils/web-view/index.js +14 -24
  15. package/package.json +1 -1
  16. package/es/_virtual/rolldown_runtime.js +0 -27
  17. package/es/node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js +0 -34
  18. package/es/node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js +0 -21
  19. package/es/node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js +0 -34
  20. package/es/node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js +0 -22
  21. package/es/node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js +0 -20
  22. package/es/node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js +0 -23
  23. package/es/node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js +0 -19
  24. package/es/node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/typeof.js +0 -19
@@ -0,0 +1,28 @@
1
+ //#region \0@oxc-project+runtime@0.103.0/helpers/asyncToGenerator.js
2
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
3
+ try {
4
+ var i = n[a](c), u = i.value;
5
+ } catch (n$1) {
6
+ e(n$1);
7
+ return;
8
+ }
9
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
10
+ }
11
+ function _asyncToGenerator(n) {
12
+ return function() {
13
+ var t = this, e = arguments;
14
+ return new Promise(function(r, o) {
15
+ var a = n.apply(t, e);
16
+ function _next(n$1) {
17
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n$1);
18
+ }
19
+ function _throw(n$1) {
20
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n$1);
21
+ }
22
+ _next(void 0);
23
+ });
24
+ };
25
+ }
26
+
27
+ //#endregion
28
+ export { _asyncToGenerator };
@@ -0,0 +1,14 @@
1
+ import { toPropertyKey } from "./toPropertyKey.js";
2
+
3
+ //#region \0@oxc-project+runtime@0.103.0/helpers/defineProperty.js
4
+ function _defineProperty(e, r, t) {
5
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
6
+ value: t,
7
+ enumerable: !0,
8
+ configurable: !0,
9
+ writable: !0
10
+ }) : e[r] = t, e;
11
+ }
12
+
13
+ //#endregion
14
+ export { _defineProperty };
@@ -0,0 +1,27 @@
1
+ import { _defineProperty } from "./defineProperty.js";
2
+
3
+ //#region \0@oxc-project+runtime@0.103.0/helpers/objectSpread2.js
4
+ function ownKeys(e, r) {
5
+ var t = Object.keys(e);
6
+ if (Object.getOwnPropertySymbols) {
7
+ var o = Object.getOwnPropertySymbols(e);
8
+ r && (o = o.filter(function(r$1) {
9
+ return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
10
+ })), t.push.apply(t, o);
11
+ }
12
+ return t;
13
+ }
14
+ function _objectSpread2(e) {
15
+ for (var r = 1; r < arguments.length; r++) {
16
+ var t = null != arguments[r] ? arguments[r] : {};
17
+ r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
18
+ _defineProperty(e, r$1, t[r$1]);
19
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
20
+ Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
21
+ });
22
+ }
23
+ return e;
24
+ }
25
+
26
+ //#endregion
27
+ export { _objectSpread2 };
@@ -0,0 +1,15 @@
1
+ import { _objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
2
+
3
+ //#region \0@oxc-project+runtime@0.103.0/helpers/objectWithoutProperties.js
4
+ function _objectWithoutProperties(e, t) {
5
+ if (null == e) return {};
6
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
7
+ if (Object.getOwnPropertySymbols) {
8
+ var s = Object.getOwnPropertySymbols(e);
9
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
10
+ }
11
+ return i;
12
+ }
13
+
14
+ //#endregion
15
+ export { _objectWithoutProperties };
@@ -0,0 +1,13 @@
1
+ //#region \0@oxc-project+runtime@0.103.0/helpers/objectWithoutPropertiesLoose.js
2
+ function _objectWithoutPropertiesLoose(r, e) {
3
+ if (null == r) return {};
4
+ var t = {};
5
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
6
+ if (e.includes(n)) continue;
7
+ t[n] = r[n];
8
+ }
9
+ return t;
10
+ }
11
+
12
+ //#endregion
13
+ export { _objectWithoutPropertiesLoose };
@@ -0,0 +1,16 @@
1
+ import { _typeof } from "./typeof.js";
2
+
3
+ //#region \0@oxc-project+runtime@0.103.0/helpers/toPrimitive.js
4
+ function toPrimitive(t, r) {
5
+ if ("object" != _typeof(t) || !t) return t;
6
+ var e = t[Symbol.toPrimitive];
7
+ if (void 0 !== e) {
8
+ var i = e.call(t, r || "default");
9
+ if ("object" != _typeof(i)) return i;
10
+ throw new TypeError("@@toPrimitive must return a primitive value.");
11
+ }
12
+ return ("string" === r ? String : Number)(t);
13
+ }
14
+
15
+ //#endregion
16
+ export { toPrimitive };
@@ -0,0 +1,11 @@
1
+ import { _typeof } from "./typeof.js";
2
+ import { toPrimitive } from "./toPrimitive.js";
3
+
4
+ //#region \0@oxc-project+runtime@0.103.0/helpers/toPropertyKey.js
5
+ function toPropertyKey(t) {
6
+ var i = toPrimitive(t, "string");
7
+ return "symbol" == _typeof(i) ? i : i + "";
8
+ }
9
+
10
+ //#endregion
11
+ export { toPropertyKey };
@@ -0,0 +1,12 @@
1
+ //#region \0@oxc-project+runtime@0.103.0/helpers/typeof.js
2
+ function _typeof(o) {
3
+ "@babel/helpers - typeof";
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
5
+ return typeof o$1;
6
+ } : function(o$1) {
7
+ return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ //#endregion
12
+ export { _typeof };
@@ -2,7 +2,7 @@
2
2
  const config = { domain: {
3
3
  shopping: "https://shopping-h5.onetravelgz.cn/#/",
4
4
  food: "https://food-h5.onetravelgz.cn/#/",
5
- onebuygz: "https://testb2ch5-travel.gcongo.com.cn/#/",
5
+ onebuygz: "https://testb2ch5-travel.gcongo.cn/#/",
6
6
  movie: "https://147gn9gm.life.mczjk.cn/#/"
7
7
  } };
8
8
  var app_hwtest_default = config;
@@ -1,11 +1,9 @@
1
- import { __toESM } from "../../_virtual/rolldown_runtime.js";
2
1
  import { EAppEnv } from "../../enums/environment/index.js";
3
- import { require_objectSpread2 } from "../../node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js";
2
+ import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.103.0/helpers/objectSpread2.js";
4
3
  import app_hwtest_default from "./app.hwtest.js";
5
4
  import app_prod_default from "./app.prod.js";
6
5
 
7
6
  //#region src/configs/app/index.ts
8
- var import_objectSpread2 = __toESM(require_objectSpread2(), 1);
9
7
  /**
10
8
  * 获取App配置信息
11
9
  * @param appEnv
@@ -20,7 +18,7 @@ function getAppConfig(appEnv) {
20
18
  config = app_prod_default;
21
19
  break;
22
20
  }
23
- return (0, import_objectSpread2.default)({ domain: {
21
+ return _objectSpread2({ domain: {
24
22
  shopping: "",
25
23
  food: "",
26
24
  onebuygz: "",
package/es/entry.js CHANGED
@@ -1,22 +1,19 @@
1
- import { __toESM } from "./_virtual/rolldown_runtime.js";
2
1
  import { EAppEnv } from "./enums/environment/index.js";
3
2
  import { ECaller } from "./enums/sdk/index.js";
4
- import { require_defineProperty } from "./node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js";
5
- import { require_objectSpread2 } from "./node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js";
3
+ import { _defineProperty } from "./_virtual/_@oxc-project_runtime@0.103.0/helpers/defineProperty.js";
4
+ import { _objectSpread2 } from "./_virtual/_@oxc-project_runtime@0.103.0/helpers/objectSpread2.js";
6
5
  import { getAppConfig } from "./configs/app/index.js";
7
6
  import { GoodsService } from "./services/goods/service.js";
8
7
 
9
8
  //#region src/entry.ts
10
- var import_defineProperty = __toESM(require_defineProperty());
11
- var import_objectSpread2 = __toESM(require_objectSpread2());
12
9
  /**
13
10
  * 一码游SDK
14
11
  */
15
12
  var OneTravelSDK = class {
16
13
  constructor(config) {
17
- (0, import_defineProperty.default)(this, "sdkConfig", void 0);
18
- (0, import_defineProperty.default)(this, "goodsService", void 0);
19
- const value = (0, import_objectSpread2.default)((0, import_objectSpread2.default)({}, {
14
+ _defineProperty(this, "sdkConfig", void 0);
15
+ _defineProperty(this, "goodsService", void 0);
16
+ const value = _objectSpread2(_objectSpread2({}, {
20
17
  appEnv: EAppEnv.prod,
21
18
  caller: ECaller.web
22
19
  }), config || {});
@@ -1,4 +1,3 @@
1
- import { __toESM } from "../../_virtual/rolldown_runtime.js";
2
1
  import { routePrefix } from "../../constants/routes/index.js";
3
2
  import { EBusinessLine, ESubBizType } from "../../enums/business-line/index.js";
4
3
  import { ECaller } from "../../enums/sdk/index.js";
@@ -8,16 +7,15 @@ import { EHotelType } from "../../enums/sub/hotel/index.js";
8
7
  import { getWebviewPage } from "../../utils/pages/webview/index.js";
9
8
  import { getFoodPackagePage, getFoodStorePage } from "../../utils/pages/food/index.js";
10
9
  import { getMoviePage } from "../../utils/pages/movie/index.js";
11
- import { require_defineProperty } from "../../node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js";
10
+ import { _defineProperty } from "../../_virtual/_@oxc-project_runtime@0.103.0/helpers/defineProperty.js";
12
11
  import { navigateTo } from "../../utils/web-view/index.js";
13
12
  import { getAppConfig } from "../../configs/app/index.js";
14
13
 
15
14
  //#region src/services/goods/service.ts
16
- var import_defineProperty = __toESM(require_defineProperty(), 1);
17
15
  var GoodsService = class {
18
16
  constructor(config) {
19
- (0, import_defineProperty.default)(this, "goodsServiceConfig", void 0);
20
- (0, import_defineProperty.default)(
17
+ _defineProperty(this, "goodsServiceConfig", void 0);
18
+ _defineProperty(
21
19
  this,
22
20
  /**
23
21
  * 跳转商品详情页面
@@ -46,8 +44,7 @@ var GoodsService = class {
46
44
  break;
47
45
  case EBusinessLine.Homestay:
48
46
  var _item$homestay, _item$common10;
49
- const homestayType = (item === null || item === void 0 || (_item$homestay = item.homestay) === null || _item$homestay === void 0 ? void 0 : _item$homestay.type) || (extInfo === null || extInfo === void 0 ? void 0 : extInfo.type) || (item === null || item === void 0 || (_item$common10 = item.common) === null || _item$common10 === void 0 ? void 0 : _item$common10.type) || "";
50
- if (homestayType === EHotelType.hotel) {
47
+ if (((item === null || item === void 0 || (_item$homestay = item.homestay) === null || _item$homestay === void 0 ? void 0 : _item$homestay.type) || (extInfo === null || extInfo === void 0 ? void 0 : extInfo.type) || (item === null || item === void 0 || (_item$common10 = item.common) === null || _item$common10 === void 0 ? void 0 : _item$common10.type) || "") === EHotelType.hotel) {
51
48
  var _item$homestay2, _item$common11;
52
49
  /** 酒店 (天下房仓酒店详情页) */
53
50
  const id = (item === null || item === void 0 || (_item$homestay2 = item.homestay) === null || _item$homestay2 === void 0 ? void 0 : _item$homestay2.id) || (extInfo === null || extInfo === void 0 ? void 0 : extInfo.storeId) || (item === null || item === void 0 || (_item$common11 = item.common) === null || _item$common11 === void 0 ? void 0 : _item$common11.storeId) || "";
@@ -1,9 +1,7 @@
1
- import { __toESM } from "../../_virtual/rolldown_runtime.js";
2
1
  import { EUniPlatform } from "../../enums/platform/index.js";
3
- import { require_objectSpread2 } from "../../node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js";
2
+ import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.103.0/helpers/objectSpread2.js";
4
3
 
5
4
  //#region src/utils/uni-env/index.ts
6
- var import_objectSpread2 = __toESM(require_objectSpread2(), 1);
7
5
  /**
8
6
  * 是否是支付宝小程序
9
7
  * @returns
@@ -57,7 +55,7 @@ const isiOSEnv = () => {
57
55
  return false;
58
56
  };
59
57
  function getSystemInfoSync() {
60
- return (0, import_objectSpread2.default)((0, import_objectSpread2.default)({}, uni.getDeviceInfo()), uni.getWindowInfo());
58
+ return _objectSpread2(_objectSpread2({}, uni.getDeviceInfo()), uni.getWindowInfo());
61
59
  }
62
60
 
63
61
  //#endregion
@@ -1,13 +1,9 @@
1
- import { __toESM } from "../../_virtual/rolldown_runtime.js";
2
- import { require_asyncToGenerator } from "../../node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js";
3
- import { require_objectWithoutProperties } from "../../node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js";
4
- import { require_objectSpread2 } from "../../node_modules/.pnpm/@oxc-project_runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js";
1
+ import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.103.0/helpers/asyncToGenerator.js";
2
+ import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.103.0/helpers/objectWithoutProperties.js";
3
+ import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.103.0/helpers/objectSpread2.js";
5
4
  import wx from "weixin-js-sdk";
6
5
 
7
6
  //#region src/utils/web-view/index.ts
8
- var import_asyncToGenerator = __toESM(require_asyncToGenerator(), 1);
9
- var import_objectWithoutProperties = __toESM(require_objectWithoutProperties(), 1);
10
- var import_objectSpread2 = __toESM(require_objectSpread2(), 1);
11
7
  const _excluded = ["shareUrl"];
12
8
  const userAgent = navigator.userAgent.toLowerCase();
13
9
  /** 判断是否是iOS还是安卓 */
@@ -27,14 +23,9 @@ function loadWebview() {
27
23
  return _loadWebview.apply(this, arguments);
28
24
  }
29
25
  function _loadWebview() {
30
- _loadWebview = (0, import_asyncToGenerator.default)(function* () {
31
- if (isIOSOrAndroid) {
32
- const res = yield import("../../assets/js/webview/uni.webview.1.5.6.js");
33
- uni = res.default;
34
- } else {
35
- const res = yield import("../../assets/js/webview/uni.webview.1.5.5.js");
36
- uni = res.default;
37
- }
26
+ _loadWebview = _asyncToGenerator(function* () {
27
+ if (isIOSOrAndroid) uni = (yield import("../../assets/js/webview/uni.webview.1.5.6.js")).default;
28
+ else uni = (yield import("../../assets/js/webview/uni.webview.1.5.5.js")).default;
38
29
  if (isAlipay) {
39
30
  const scriptTag = document.createElement("script");
40
31
  scriptTag.src = "https://appx/web-view.min.js";
@@ -67,7 +58,7 @@ const navigateTo = (parameters) => {
67
58
  var _uni$webView, _uni$webView$navigate, _my;
68
59
  uni === null || uni === void 0 || (_uni$webView = uni.webView) === null || _uni$webView === void 0 || (_uni$webView$navigate = _uni$webView.navigateTo) === null || _uni$webView$navigate === void 0 || _uni$webView$navigate.call(_uni$webView, { url });
69
60
  /** 不兼容上面的方法会自动往下执行 */
70
- wx.miniProgram.navigateTo({ url });
61
+ wx === null || wx === void 0 || wx.miniProgram.navigateTo({ url });
71
62
  (_my = my) === null || _my === void 0 || _my.navigateTo({ url });
72
63
  } catch (error) {
73
64
  console.error(error);
@@ -84,7 +75,7 @@ const redirectTo = (parameters) => {
84
75
  var _uni$webView2, _uni$webView2$redirec, _my2;
85
76
  uni === null || uni === void 0 || (_uni$webView2 = uni.webView) === null || _uni$webView2 === void 0 || (_uni$webView2$redirec = _uni$webView2.redirectTo) === null || _uni$webView2$redirec === void 0 || _uni$webView2$redirec.call(_uni$webView2, { url });
86
77
  /** 不兼容上面的方法会自动往下执行 */
87
- wx.miniProgram.redirectTo({ url });
78
+ wx === null || wx === void 0 || wx.miniProgram.redirectTo({ url });
88
79
  (_my2 = my) === null || _my2 === void 0 || _my2.redirectTo({ url });
89
80
  } catch (error) {
90
81
  console.error(error);
@@ -99,7 +90,7 @@ const navigateBack = (parameters) => {
99
90
  var _uni$webView3, _uni$webView3$navigat, _my3;
100
91
  uni === null || uni === void 0 || (_uni$webView3 = uni.webView) === null || _uni$webView3 === void 0 || (_uni$webView3$navigat = _uni$webView3.navigateBack) === null || _uni$webView3$navigat === void 0 || _uni$webView3$navigat.call(_uni$webView3, parameters);
101
92
  /** 不兼容上面的方法会自动往下执行 */
102
- wx.miniProgram.navigateBack(parameters);
93
+ wx === null || wx === void 0 || wx.miniProgram.navigateBack(parameters);
103
94
  (_my3 = my) === null || _my3 === void 0 || _my3.navigateBack(parameters);
104
95
  } catch (error) {
105
96
  console.error(error);
@@ -122,7 +113,7 @@ const postMessage = (data) => {
122
113
  try {
123
114
  var _uni$webView4, _my4;
124
115
  uni === null || uni === void 0 || (_uni$webView4 = uni.webView) === null || _uni$webView4 === void 0 || _uni$webView4.postMessage({ data });
125
- wx.miniProgram.postMessage({ data });
116
+ wx === null || wx === void 0 || wx.miniProgram.postMessage({ data });
126
117
  (_my4 = my) === null || _my4 === void 0 || _my4.postMessage({ data });
127
118
  } catch (error) {
128
119
  var _message;
@@ -135,8 +126,8 @@ const postMessage = (data) => {
135
126
  * @param data
136
127
  */
137
128
  const setShareParam = (data, businessType) => {
138
- const { shareUrl } = data, res = (0, import_objectWithoutProperties.default)(data, _excluded);
139
- const params = { data: (0, import_objectSpread2.default)((0, import_objectSpread2.default)({}, res), {}, {
129
+ const { shareUrl } = data;
130
+ const params = { data: _objectSpread2(_objectSpread2({}, _objectWithoutProperties(data, _excluded)), {}, {
140
131
  businessType,
141
132
  shareUrl: encodeURIComponent(shareUrl || "")
142
133
  }) };
@@ -159,11 +150,10 @@ const toPay = (data) => {
159
150
  });
160
151
  };
161
152
  function objectToQueryString(obj) {
162
- const params = Object.entries(obj).map(([key, value]) => {
153
+ return Object.entries(obj).map(([key, value]) => {
163
154
  if (Array.isArray(value)) return value.map((val) => `${encodeURI(key)}[]=${encodeURI(val)}`).join("&");
164
155
  return `${encodeURI(key)}=${encodeURI(value)}`;
165
- });
166
- return params.join("&");
156
+ }).join("&");
167
157
  }
168
158
 
169
159
  //#endregion
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@foundbyte/uni-libs",
3
3
  "description": "FoundByte Uni Libs",
4
4
  "author": "yangshuai <704807396@qq.com>",
5
- "version": "1.0.4-alpha.01",
5
+ "version": "1.0.4",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "es/index.js",
@@ -1,27 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
13
- key = keys[i];
14
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
- get: ((k) => from[k]).bind(null, key),
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
22
- value: mod,
23
- enumerable: true
24
- }) : target, mod));
25
-
26
- //#endregion
27
- export { __commonJS, __toESM };
@@ -1,34 +0,0 @@
1
- import { __commonJS } from "../../../../../../../../_virtual/rolldown_runtime.js";
2
-
3
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js
4
- var require_asyncToGenerator = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js"(exports, module) {
5
- function asyncGeneratorStep(n, t, e, r, o, a, c) {
6
- try {
7
- var i = n[a](c), u = i.value;
8
- } catch (n$1) {
9
- return void e(n$1);
10
- }
11
- i.done ? t(u) : Promise.resolve(u).then(r, o);
12
- }
13
- function _asyncToGenerator(n) {
14
- return function() {
15
- var t = this, e = arguments;
16
- return new Promise(function(r, o) {
17
- var a = n.apply(t, e);
18
- function _next(n$1) {
19
- asyncGeneratorStep(a, r, o, _next, _throw, "next", n$1);
20
- }
21
- function _throw(n$1) {
22
- asyncGeneratorStep(a, r, o, _next, _throw, "throw", n$1);
23
- }
24
- _next(void 0);
25
- });
26
- };
27
- }
28
- module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
29
- } });
30
-
31
- //#endregion
32
- export default require_asyncToGenerator();
33
-
34
- export { require_asyncToGenerator };
@@ -1,21 +0,0 @@
1
- import { __commonJS } from "../../../../../../../../_virtual/rolldown_runtime.js";
2
- import { require_toPropertyKey } from "./toPropertyKey.js";
3
-
4
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js
5
- var require_defineProperty = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(exports, module) {
6
- var toPropertyKey = require_toPropertyKey();
7
- function _defineProperty(e, r, t) {
8
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
9
- value: t,
10
- enumerable: !0,
11
- configurable: !0,
12
- writable: !0
13
- }) : e[r] = t, e;
14
- }
15
- module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
16
- } });
17
-
18
- //#endregion
19
- export default require_defineProperty();
20
-
21
- export { require_defineProperty };
@@ -1,34 +0,0 @@
1
- import { __commonJS } from "../../../../../../../../_virtual/rolldown_runtime.js";
2
- import { require_defineProperty } from "./defineProperty.js";
3
-
4
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js
5
- var require_objectSpread2 = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(exports, module) {
6
- var defineProperty = require_defineProperty();
7
- function ownKeys(e, r) {
8
- var t = Object.keys(e);
9
- if (Object.getOwnPropertySymbols) {
10
- var o = Object.getOwnPropertySymbols(e);
11
- r && (o = o.filter(function(r$1) {
12
- return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
13
- })), t.push.apply(t, o);
14
- }
15
- return t;
16
- }
17
- function _objectSpread2(e) {
18
- for (var r = 1; r < arguments.length; r++) {
19
- var t = null != arguments[r] ? arguments[r] : {};
20
- r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
21
- defineProperty(e, r$1, t[r$1]);
22
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
23
- Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
24
- });
25
- }
26
- return e;
27
- }
28
- module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
29
- } });
30
-
31
- //#endregion
32
- export default require_objectSpread2();
33
-
34
- export { require_objectSpread2 };
@@ -1,22 +0,0 @@
1
- import { __commonJS } from "../../../../../../../../_virtual/rolldown_runtime.js";
2
- import { require_objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
3
-
4
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js
5
- var require_objectWithoutProperties = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(exports, module) {
6
- var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose();
7
- function _objectWithoutProperties(e, t) {
8
- if (null == e) return {};
9
- var o, r, i = objectWithoutPropertiesLoose(e, t);
10
- if (Object.getOwnPropertySymbols) {
11
- var s = Object.getOwnPropertySymbols(e);
12
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
13
- }
14
- return i;
15
- }
16
- module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
17
- } });
18
-
19
- //#endregion
20
- export default require_objectWithoutProperties();
21
-
22
- export { require_objectWithoutProperties };
@@ -1,20 +0,0 @@
1
- import { __commonJS } from "../../../../../../../../_virtual/rolldown_runtime.js";
2
-
3
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js
4
- var require_objectWithoutPropertiesLoose = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
5
- function _objectWithoutPropertiesLoose(r, e) {
6
- if (null == r) return {};
7
- var t = {};
8
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
9
- if (e.includes(n)) continue;
10
- t[n] = r[n];
11
- }
12
- return t;
13
- }
14
- module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
15
- } });
16
-
17
- //#endregion
18
- export default require_objectWithoutPropertiesLoose();
19
-
20
- export { require_objectWithoutPropertiesLoose };
@@ -1,23 +0,0 @@
1
- import { __commonJS } from "../../../../../../../../_virtual/rolldown_runtime.js";
2
- import { require_typeof } from "./typeof.js";
3
-
4
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js
5
- var require_toPrimitive = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(exports, module) {
6
- var _typeof = require_typeof()["default"];
7
- function toPrimitive(t, r) {
8
- if ("object" != _typeof(t) || !t) return t;
9
- var e = t[Symbol.toPrimitive];
10
- if (void 0 !== e) {
11
- var i = e.call(t, r || "default");
12
- if ("object" != _typeof(i)) return i;
13
- throw new TypeError("@@toPrimitive must return a primitive value.");
14
- }
15
- return ("string" === r ? String : Number)(t);
16
- }
17
- module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
18
- } });
19
-
20
- //#endregion
21
- export default require_toPrimitive();
22
-
23
- export { require_toPrimitive };
@@ -1,19 +0,0 @@
1
- import { __commonJS } from "../../../../../../../../_virtual/rolldown_runtime.js";
2
- import { require_typeof } from "./typeof.js";
3
- import { require_toPrimitive } from "./toPrimitive.js";
4
-
5
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js
6
- var require_toPropertyKey = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(exports, module) {
7
- var _typeof = require_typeof()["default"];
8
- var toPrimitive = require_toPrimitive();
9
- function toPropertyKey(t) {
10
- var i = toPrimitive(t, "string");
11
- return "symbol" == _typeof(i) ? i : i + "";
12
- }
13
- module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
14
- } });
15
-
16
- //#endregion
17
- export default require_toPropertyKey();
18
-
19
- export { require_toPropertyKey };
@@ -1,19 +0,0 @@
1
- import { __commonJS } from "../../../../../../../../_virtual/rolldown_runtime.js";
2
-
3
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/typeof.js
4
- var require_typeof = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(exports, module) {
5
- function _typeof(o) {
6
- "@babel/helpers - typeof";
7
- return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
8
- return typeof o$1;
9
- } : function(o$1) {
10
- return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
11
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
12
- }
13
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
14
- } });
15
-
16
- //#endregion
17
- export default require_typeof();
18
-
19
- export { require_typeof };