@huyooo/ui 2.2.2 → 2.2.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 (50) hide show
  1. package/dist/{AuthkitAppSetting-BuaqfKEv.js → AuthkitAppSetting-ZopA9Gjq.js} +8 -8
  2. package/dist/{Contact-D-NTKkWc.js → Contact-BdBQ_FA4.js} +92 -89
  3. package/dist/{CustomTable-D9j5dgOH.js → CustomTable-B1KjkixL.js} +1 -1
  4. package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-CsgTdQQG.js → FeedbackModal.vue_vue_type_script_setup_true_lang-C7vaGD4R.js} +5 -5
  5. package/dist/{LandingPageLinkGroup-C4iHX7Hz.js → LandingPageLinkGroup-B8ERKG5f.js} +63 -61
  6. package/dist/{LandingPageSectionTabs-Bl6X2W5W.js → LandingPageSectionTabs-BEAnU8B0.js} +1 -1
  7. package/dist/{LegalDocViewer-DLpvpTeA.js → LegalDocViewer-wbdoeWU9.js} +10 -10
  8. package/dist/{MessageHandle-BVqmtDDc.js → MessageHandle-BKMBtqZM.js} +3 -3
  9. package/dist/{MessageList-CCUlHX_0.js → MessageList-BK4u5DCH.js} +1 -1
  10. package/dist/{PaySubscriptions-CwjgkL21.js → PaySubscriptions-OZ6OFeQJ.js} +7 -7
  11. package/dist/{PricingPlans-CjLXF7is.js → PricingPlans-Wf4QkUIz.js} +4 -4
  12. package/dist/{ReferrerReferees-RKmCkAIi.js → ReferrerReferees-DNE-htF1.js} +4 -4
  13. package/dist/{Upload.vue_vue_type_script_setup_true_lang-DX_PVh8A.js → Upload.vue_vue_type_script_setup_true_lang-DtciAodp.js} +1 -1
  14. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-RMTlKkD-.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-ELHt9JGf.js} +10 -10
  15. package/dist/{WidthContainer-iRk3r61v.js → WidthContainer-PjmYnZwk.js} +10 -10
  16. package/dist/{apiClients-cJElwYYN.js → apiClients-8_c5cDW5.js} +4 -3
  17. package/dist/authkit.js +10 -10
  18. package/dist/common/globalConfig.d.ts +7 -7
  19. package/dist/common.js +2 -2
  20. package/dist/components/MenuItem.vue.d.ts +1 -1
  21. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +14 -0
  22. package/dist/composables.js +13 -13
  23. package/dist/feedback.js +2 -2
  24. package/dist/{fetchAuthPageAboutUs-D-JEoE8N.js → fetchAuthPageAboutUs-D5w21LkF.js} +8 -10
  25. package/dist/{index-CHWVBunT.js → index-D9YtlhTa.js} +1 -1
  26. package/dist/landingPage.js +2 -2
  27. package/dist/main.js +33 -33
  28. package/dist/message.js +5 -5
  29. package/dist/pay.js +5 -5
  30. package/dist/privateCom.js +1 -1
  31. package/dist/referrer.js +1 -1
  32. package/dist/{runtime-7yUdSOYv.js → runtime-B_xhJ3i8.js} +156 -151
  33. package/dist/style.css +1 -1
  34. package/dist/types/api/auth.generated.d.ts +203 -13
  35. package/dist/types/app.d.ts +9 -0
  36. package/dist/upload.js +2 -2
  37. package/dist/{useAuthkitAppsAuthPageInfo-2qQf2lJP.js → useAuthkitAppsAuthPageInfo-KHO1mJvF.js} +18 -17
  38. package/dist/{useAuthkitAuth-C6RUN1mU.js → useAuthkitAuth-C0fVP17l.js} +2 -2
  39. package/dist/{useAuthkitCreateAndUpdate-piFGtY-A.js → useAuthkitCreateAndUpdate-CYIcEuub.js} +1 -1
  40. package/dist/{useAuthkitUsersProfile-D_9ttX6H.js → useAuthkitUsersProfile-BvldvaRx.js} +3 -3
  41. package/dist/{useBillingStatusOptions-Bo1wYzgB.js → useBillingStatusOptions-C8fwW-AI.js} +1 -1
  42. package/dist/{useBillingSubscriptionSummary-BabqnJ7S.js → useBillingSubscriptionSummary-C2E3p68U.js} +1 -1
  43. package/dist/{useEnsureAuthenticated-NADE0UVJ.js → useEnsureAuthenticated-BdXJDqVv.js} +2 -2
  44. package/dist/{useLegalDocs-CfIjSyik.js → useLegalDocs-BCWvu1ft.js} +2 -2
  45. package/dist/{useMessageNotifications-SMRRA3Kl.js → useMessageNotifications-BXimltcx.js} +1 -1
  46. package/dist/{usePageSEO-qRI2bful.js → usePageSEO-D7eyLr8d.js} +2 -2
  47. package/dist/{useRoutePermission-CkCE6-C3.js → useRoutePermission-BuKMkOTK.js} +3 -3
  48. package/dist/{useSubscriptionCheckout-B1CyTY9V.js → useSubscriptionCheckout-BHI3y7Cx.js} +3 -3
  49. package/dist/user.js +1 -1
  50. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
1
  import { ref as Nt, inject as Mt } from "vue";
2
- import { i as Kt } from "./apiClients-cJElwYYN.js";
2
+ import { i as Kt } from "./apiClients-8_c5cDW5.js";
3
3
  import { c as _t, g as Ht } from "./_commonjsHelpers-DaMA6jEr.js";
4
4
  const zt = Nt(void 0);
5
- function Vt(W) {
6
- var Pe, _;
7
- return W === "system" ? typeof window < "u" && ((_ = (Pe = window.matchMedia) == null ? void 0 : Pe.call(window, "(prefers-color-scheme: dark)")) != null && _.matches) ? "dark" : "light" : W;
5
+ function Vt($) {
6
+ var Ee, _;
7
+ return $ === "system" ? typeof window < "u" && ((_ = (Ee = window.matchMedia) == null ? void 0 : Ee.call(window, "(prefers-color-scheme: dark)")) != null && _.matches) ? "dark" : "light" : $;
8
8
  }
9
- function Dt(W) {
10
- typeof document > "u" || (W === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
9
+ function Dt($) {
10
+ typeof document > "u" || ($ === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
11
11
  }
12
- function qt(W) {
13
- zt.value = W, Dt(Vt(W));
12
+ function qt($) {
13
+ zt.value = $, Dt(Vt($));
14
14
  }
15
15
  const it = {
16
16
  avatarBucketId: "68350c206888f565dc7d09e9",
@@ -19,27 +19,32 @@ const it = {
19
19
  region: "ap-beijing",
20
20
  web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
21
21
  };
22
- function Gt(W) {
23
- return W.theme !== void 0 && qt(W.theme), Object.freeze({
24
- appId: W.appId,
25
- clientKey: W.clientKey,
26
- platform: W.platform,
27
- appVersion: W.appVersion,
28
- authPrefixUrl: W.endpoints.auth,
29
- onesPrefixUrl: W.endpoints.ones,
30
- billingPrefixUrl: W.endpoints.billing,
31
- logPrefixUrl: W.endpoints.log,
32
- aiPrefixUrl: W.endpoints.ai,
33
- webhookPrefixUrl: W.endpoints.webhook,
34
- pricingUrl: W.pricingUrl || "/Pricing",
35
- openPricing: W.openPricing,
36
- avatarBucketId: W.avatarBucketId ?? it.avatarBucketId,
37
- feedbackBucketId: W.feedbackBucketId ?? it.feedbackBucketId,
38
- bucket: W.bucket ?? it.bucket,
39
- region: W.region ?? it.region,
40
- web3formsAccessKey: W.web3formsAccessKey ?? it.web3formsAccessKey,
41
- legalDocsMode: W.legalDocsMode ?? "builtin",
42
- getAccessToken: W.getAccessToken
22
+ function Gt($) {
23
+ var Ee, _;
24
+ if (!((Ee = $.clientKey) != null && Ee.trim()))
25
+ throw new Error("createHuyoooUI: clientKey 必填(web / desktop / ios / android)");
26
+ if (!((_ = $.platform) != null && _.trim()))
27
+ throw new Error("createHuyoooUI: platform 必填(browser / darwin / win32 / linux / ios / android)");
28
+ return $.theme !== void 0 && qt($.theme), Object.freeze({
29
+ appId: $.appId,
30
+ clientKey: $.clientKey.trim(),
31
+ platform: $.platform.trim(),
32
+ appVersion: $.appVersion,
33
+ authPrefixUrl: $.endpoints.auth,
34
+ onesPrefixUrl: $.endpoints.ones,
35
+ billingPrefixUrl: $.endpoints.billing,
36
+ logPrefixUrl: $.endpoints.log,
37
+ aiPrefixUrl: $.endpoints.ai,
38
+ webhookPrefixUrl: $.endpoints.webhook,
39
+ pricingUrl: $.pricingUrl || "/Pricing",
40
+ openPricing: $.openPricing,
41
+ avatarBucketId: $.avatarBucketId ?? it.avatarBucketId,
42
+ feedbackBucketId: $.feedbackBucketId ?? it.feedbackBucketId,
43
+ bucket: $.bucket ?? it.bucket,
44
+ region: $.region ?? it.region,
45
+ web3formsAccessKey: $.web3formsAccessKey ?? it.web3formsAccessKey,
46
+ legalDocsMode: $.legalDocsMode ?? "builtin",
47
+ getAccessToken: $.getAccessToken
43
48
  });
44
49
  }
45
50
  const $t = {
@@ -168,18 +173,18 @@ const $t = {
168
173
  log: "text/plain",
169
174
  plist: "application/x-plist"
170
175
  };
171
- function Wt(W, Pe) {
176
+ function Wt($, Ee) {
172
177
  var J;
173
- const _ = (J = W.split(".").pop()) == null ? void 0 : J.toLowerCase();
178
+ const _ = (J = $.split(".").pop()) == null ? void 0 : J.toLowerCase();
174
179
  return _ && $t[_] || "application/octet-stream";
175
180
  }
176
- function Qt(W) {
177
- return W.type && W.type !== "application/octet-stream" && W.type !== "" ? W.type : Wt(W.name);
181
+ function Qt($) {
182
+ return $.type && $.type !== "application/octet-stream" && $.type !== "" ? $.type : Wt($.name);
178
183
  }
179
184
  var wt = { exports: {} };
180
- (function(W, Pe) {
185
+ (function($, Ee) {
181
186
  (function(J, E) {
182
- W.exports = E();
187
+ $.exports = E();
183
188
  })(_t, function() {
184
189
  return (
185
190
  /******/
@@ -2522,8 +2527,8 @@ var wt = { exports: {} };
2522
2527
  var re = function(he) {
2523
2528
  if (he < de) {
2524
2529
  var pe = G[he];
2525
- ke(pe.PartNumber, function(ve, Ee) {
2526
- Ee && Ee.ETag === pe.ETag && Ee.Size === pe.Size ? re(he + 1) : te(null, !1);
2530
+ ke(pe.PartNumber, function(ve, Ae) {
2531
+ Ae && Ae.ETag === pe.ETag && Ae.Size === pe.Size ? re(he + 1) : te(null, !1);
2527
2532
  });
2528
2533
  } else
2529
2534
  te(null, !0);
@@ -2990,8 +2995,8 @@ var wt = { exports: {} };
2990
2995
  delay: t.options.TrackerDelay
2991
2996
  });
2992
2997
  }
2993
- N.each(ne, function(Ee, xe) {
2994
- U(Ee) !== "object" && typeof Ee != "function" && (se[xe] = Ee);
2998
+ N.each(ne, function(Ae, xe) {
2999
+ U(Ae) !== "object" && typeof Ae != "function" && (se[xe] = Ae);
2995
3000
  });
2996
3001
  var te = ne.onTaskReady, de = function(xe) {
2997
3002
  se.TaskId = xe, te && te(xe);
@@ -3058,7 +3063,7 @@ var wt = { exports: {} };
3058
3063
  var pe = N.filter(ae.PartList, function(ve) {
3059
3064
  return ve.Uploaded && (ee += ve.PartNumber >= se && G % oe || oe), !ve.Uploaded;
3060
3065
  });
3061
- j.eachLimit(pe, ke, function(ve, Ee) {
3066
+ j.eachLimit(pe, ke, function(ve, Ae) {
3062
3067
  var xe = ve.PartNumber, Ie = ve.CopySourceRange, Ge = ve.end - ve.start;
3063
3068
  j.retry(le, function(_e) {
3064
3069
  l.call(r, {
@@ -3073,11 +3078,11 @@ var wt = { exports: {} };
3073
3078
  calledBySdk: "sliceCopyFile"
3074
3079
  }, _e);
3075
3080
  }, function(_e, We) {
3076
- if (_e) return Ee(_e);
3081
+ if (_e) return Ae(_e);
3077
3082
  ee += Ge, te({
3078
3083
  loaded: ee,
3079
3084
  total: G
3080
- }), ve.ETag = We.ETag, Ee(_e || null, We);
3085
+ }), ve.ETag = We.ETag, Ae(_e || null, We);
3081
3086
  });
3082
3087
  }, function(ve) {
3083
3088
  if (ve)
@@ -3138,16 +3143,16 @@ var wt = { exports: {} };
3138
3143
  for (var he = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 5120], pe = 1024 * 1024, ve = 0; ve < he.length && (pe = he[ve] * 1024 * 1024, !(G / pe <= r.options.MaxPartNumber)); ve++)
3139
3144
  ;
3140
3145
  i.ChunkSize = oe = Math.max(oe, pe), se = Math.ceil(G / oe);
3141
- for (var Ee = [], xe = 1; xe <= se; xe++) {
3146
+ for (var Ae = [], xe = 1; xe <= se; xe++) {
3142
3147
  var Ie = (xe - 1) * oe, Ge = xe * oe < G ? xe * oe - 1 : G - 1, _e = {
3143
3148
  PartNumber: xe,
3144
3149
  start: Ie,
3145
3150
  end: Ge,
3146
3151
  CopySourceRange: "bytes=" + Ie + "-" + Ge
3147
3152
  };
3148
- Ee.push(_e);
3153
+ Ae.push(_e);
3149
3154
  }
3150
- i.PartList = Ee;
3155
+ i.PartList = Ae;
3151
3156
  }(), i.Headers["x-cos-metadata-directive"] === "Replaced" ? re = i.Headers : re = fe, re["x-cos-storage-class"] = i.Headers["x-cos-storage-class"] || fe["x-cos-storage-class"], re = N.clearKey(re), fe["x-cos-storage-class"] === "ARCHIVE" || fe["x-cos-storage-class"] === "DEEP_ARCHIVE") {
3152
3157
  var ae = fe["x-cos-restore"];
3153
3158
  if (!ae || ae === 'ongoing-request="true"') {
@@ -3178,13 +3183,13 @@ var wt = { exports: {} };
3178
3183
  }), te = N.throttleOnProgress.call(r, G, i.onProgress), G <= ne)
3179
3184
  i.Headers["x-cos-metadata-directive"] || (i.Headers["x-cos-metadata-directive"] = "Copy"), r.putObjectCopy(Object.assign(i, {
3180
3185
  calledBySdk: "sliceCopyFile"
3181
- }), function(ve, Ee) {
3186
+ }), function(ve, Ae) {
3182
3187
  if (ve)
3183
3188
  return te(null, !0), o(ve);
3184
3189
  te({
3185
3190
  loaded: G,
3186
3191
  total: G
3187
- }, !0), o(ve, Ee);
3192
+ }, !0), o(ve, Ae);
3188
3193
  });
3189
3194
  else {
3190
3195
  var pe = he.headers;
@@ -3195,9 +3200,9 @@ var wt = { exports: {} };
3195
3200
  "Content-Type": pe["content-type"],
3196
3201
  Expires: pe.expires,
3197
3202
  "x-cos-storage-class": pe["x-cos-storage-class"]
3198
- }, N.each(pe, function(ve, Ee) {
3203
+ }, N.each(pe, function(ve, Ae) {
3199
3204
  var xe = "x-cos-meta-";
3200
- Ee.indexOf(xe) === 0 && Ee.length > xe.length && (fe[Ee] = ve);
3205
+ Ae.indexOf(xe) === 0 && Ae.length > xe.length && (fe[Ae] = ve);
3201
3206
  }), t.emit("get_file_size_finish");
3202
3207
  }
3203
3208
  });
@@ -3331,10 +3336,10 @@ var wt = { exports: {} };
3331
3336
  if (ce) return c(ce);
3332
3337
  var Se = ue && ue.ListAllMyBucketsResult && ue.ListAllMyBucketsResult.Buckets && ue.ListAllMyBucketsResult.Buckets.Bucket || [];
3333
3338
  Se = s.isArray(Se) ? Se : [Se];
3334
- var $ = ue && ue.ListAllMyBucketsResult && ue.ListAllMyBucketsResult.Owner || {};
3339
+ var W = ue && ue.ListAllMyBucketsResult && ue.ListAllMyBucketsResult.Owner || {};
3335
3340
  c(null, {
3336
3341
  Buckets: Se,
3337
- Owner: $,
3342
+ Owner: W,
3338
3343
  statusCode: ue.statusCode,
3339
3344
  headers: ue.headers
3340
3345
  });
@@ -4360,7 +4365,7 @@ var wt = { exports: {} };
4360
4365
  function ve(e, c) {
4361
4366
  return he.call(this, "POST", e, c);
4362
4367
  }
4363
- function Ee(e, c) {
4368
+ function Ae(e, c) {
4364
4369
  Y.call(this, {
4365
4370
  Action: "name/cos:GetBucketInventory",
4366
4371
  method: "GET",
@@ -4862,7 +4867,7 @@ var wt = { exports: {} };
4862
4867
  tracker: e.tracker
4863
4868
  }, function(ce, ue) {
4864
4869
  if (ce) return c(ce);
4865
- var Se = s.clone(ue.CopyObjectResult || {}), $ = Ve({
4870
+ var Se = s.clone(ue.CopyObjectResult || {}), W = Ve({
4866
4871
  ForcePathStyle: n.options.ForcePathStyle,
4867
4872
  protocol: n.options.Protocol,
4868
4873
  domain: n.options.Domain,
@@ -4872,7 +4877,7 @@ var wt = { exports: {} };
4872
4877
  isLocation: !0
4873
4878
  });
4874
4879
  s.extend(Se, {
4875
- Location: $,
4880
+ Location: W,
4876
4881
  statusCode: ue.statusCode,
4877
4882
  headers: ue.headers
4878
4883
  }), c(null, Se);
@@ -4948,13 +4953,13 @@ var wt = { exports: {} };
4948
4953
  if (b) return c(b);
4949
4954
  var ce = H.DeleteResult || {}, ue = ce.Deleted || [], Se = ce.Error || [];
4950
4955
  ue = s.isArray(ue) ? ue : [ue], Se = s.isArray(Se) ? Se : [Se];
4951
- var $ = s.clone(ce);
4952
- s.extend($, {
4956
+ var W = s.clone(ce);
4957
+ s.extend(W, {
4953
4958
  Error: Se,
4954
4959
  Deleted: ue,
4955
4960
  statusCode: H.statusCode,
4956
4961
  headers: H.headers
4957
- }), c(null, $);
4962
+ }), c(null, W);
4958
4963
  });
4959
4964
  }
4960
4965
  function R(e, c) {
@@ -5210,7 +5215,7 @@ var wt = { exports: {} };
5210
5215
  return h && h.parent && h.parent.setParams({
5211
5216
  errorNode: "multipartComplete"
5212
5217
  }), c(ue);
5213
- var $ = Ve({
5218
+ var W = Ve({
5214
5219
  ForcePathStyle: n.options.ForcePathStyle,
5215
5220
  protocol: n.options.Protocol,
5216
5221
  domain: n.options.Domain,
@@ -5222,7 +5227,7 @@ var wt = { exports: {} };
5222
5227
  if (Te.ProcessResults && (Te.UploadResult = {
5223
5228
  OriginalInfo: {
5224
5229
  Key: Te.Key,
5225
- Location: $,
5230
+ Location: W,
5226
5231
  ETag: Te.ETag,
5227
5232
  ImageInfo: Te.ImageInfo
5228
5233
  },
@@ -5256,7 +5261,7 @@ var wt = { exports: {} };
5256
5261
  delete Te.ReturnBodyResult;
5257
5262
  }
5258
5263
  var Me = s.extend(Te, {
5259
- Location: $,
5264
+ Location: W,
5260
5265
  statusCode: Se.statusCode,
5261
5266
  headers: Se.headers
5262
5267
  });
@@ -5435,10 +5440,10 @@ var wt = { exports: {} };
5435
5440
  var Se = function(Fe) {
5436
5441
  var Le = Fe.match(/q-url-param-list.*?(?=&)/g)[0], Me = "q-url-param-list=" + encodeURIComponent(Le.replace(/q-url-param-list=/, "")).toLowerCase(), Ke = new RegExp(Le, "g"), Je = Fe.replace(Ke, Me);
5437
5442
  return Je;
5438
- }, $ = p;
5439
- $ += "?" + (ue.Authorization.indexOf("q-signature") > -1 ? Se(ue.Authorization) : "sign=" + encodeURIComponent(ue.Authorization)), ue.SecurityToken && ($ += "&x-cos-security-token=" + ue.SecurityToken), ue.ClientIP && ($ += "&clientIP=" + ue.ClientIP), ue.ClientUA && ($ += "&clientUA=" + ue.ClientUA), ue.Token && ($ += "&token=" + ue.Token), h && ($ += "&" + h), setTimeout(function() {
5443
+ }, W = p;
5444
+ W += "?" + (ue.Authorization.indexOf("q-signature") > -1 ? Se(ue.Authorization) : "sign=" + encodeURIComponent(ue.Authorization)), ue.SecurityToken && (W += "&x-cos-security-token=" + ue.SecurityToken), ue.ClientIP && (W += "&clientIP=" + ue.ClientIP), ue.ClientUA && (W += "&clientUA=" + ue.ClientUA), ue.Token && (W += "&token=" + ue.Token), h && (W += "&" + h), setTimeout(function() {
5440
5445
  c(null, {
5441
- Url: $
5446
+ Url: W
5442
5447
  });
5443
5448
  });
5444
5449
  }
@@ -5509,11 +5514,11 @@ var wt = { exports: {} };
5509
5514
  });
5510
5515
  var p = e.ForceSignHost !== !1;
5511
5516
  !u && e.SignHost && p && (n.Host = e.SignHost);
5512
- var h = !1, S = function(ye, Ae) {
5513
- h || (h = !0, Ae && Ae.XCosSecurityToken && !Ae.SecurityToken && (Ae = s.clone(Ae), Ae.SecurityToken = Ae.XCosSecurityToken, delete Ae.XCosSecurityToken), c && c(ye, Ae));
5517
+ var h = !1, S = function(ye, Pe) {
5518
+ h || (h = !0, Pe && Pe.XCosSecurityToken && !Pe.SecurityToken && (Pe = s.clone(Pe), Pe.SecurityToken = Pe.XCosSecurityToken, delete Pe.XCosSecurityToken), c && c(ye, Pe));
5514
5519
  }, b = this, H = e.Bucket || "", ce = e.Region || "", ue = e.Key || "";
5515
5520
  b.options.ForcePathStyle && H && (ue = H + "/" + ue);
5516
- var Se = "/" + ue, $ = {}, Te = e.Scope;
5521
+ var Se = "/" + ue, W = {}, Te = e.Scope;
5517
5522
  if (!Te) {
5518
5523
  var Fe = e.Action || "", Le = e.ResourceKey || e.Key || "";
5519
5524
  Te = e.Scope || [{
@@ -5528,23 +5533,23 @@ var wt = { exports: {} };
5528
5533
  var be, ye;
5529
5534
  for (be = b._StsCache.length - 1; be >= 0; be--) {
5530
5535
  ye = b._StsCache[be];
5531
- var Ae = Math.round(s.getSkewTime(b.options.SystemClockOffset) / 1e3) + 30;
5532
- if (ye.StartTime && Ae < ye.StartTime || Ae >= ye.ExpiredTime) {
5536
+ var Pe = Math.round(s.getSkewTime(b.options.SystemClockOffset) / 1e3) + 30;
5537
+ if (ye.StartTime && Pe < ye.StartTime || Pe >= ye.ExpiredTime) {
5533
5538
  b._StsCache.splice(be, 1);
5534
5539
  continue;
5535
5540
  }
5536
5541
  if (!ye.ScopeLimit || ye.ScopeLimit && ye.ScopeKey === Me) {
5537
- $ = ye;
5542
+ W = ye;
5538
5543
  break;
5539
5544
  }
5540
5545
  }
5541
5546
  }();
5542
5547
  var Ke = function() {
5543
5548
  var ye = "";
5544
- $.StartTime && e.Expires ? ye = $.StartTime + ";" + ($.StartTime + e.Expires * 1) : $.StartTime && $.ExpiredTime && (ye = $.StartTime + ";" + $.ExpiredTime);
5545
- var Ae = s.getAuth({
5546
- SecretId: $.TmpSecretId,
5547
- SecretKey: $.TmpSecretKey,
5549
+ W.StartTime && e.Expires ? ye = W.StartTime + ";" + (W.StartTime + e.Expires * 1) : W.StartTime && W.ExpiredTime && (ye = W.StartTime + ";" + W.ExpiredTime);
5550
+ var Pe = s.getAuth({
5551
+ SecretId: W.TmpSecretId,
5552
+ SecretKey: W.TmpSecretKey,
5548
5553
  Method: e.Method,
5549
5554
  Pathname: Se,
5550
5555
  Query: e.Query,
@@ -5555,28 +5560,28 @@ var wt = { exports: {} };
5555
5560
  KeyTime: ye,
5556
5561
  ForceSignHost: p
5557
5562
  }), me = {
5558
- Authorization: Ae,
5559
- SecurityToken: $.SecurityToken || $.XCosSecurityToken || "",
5560
- Token: $.Token || "",
5561
- ClientIP: $.ClientIP || "",
5562
- ClientUA: $.ClientUA || "",
5563
+ Authorization: Pe,
5564
+ SecurityToken: W.SecurityToken || W.XCosSecurityToken || "",
5565
+ Token: W.Token || "",
5566
+ ClientIP: W.ClientIP || "",
5567
+ ClientUA: W.ClientUA || "",
5563
5568
  SignFrom: "client"
5564
5569
  };
5565
5570
  S(null, me);
5566
5571
  }, Je = function(ye) {
5567
5572
  if (ye.Authorization) {
5568
- var Ae = !1, me = ye.Authorization;
5573
+ var Pe = !1, me = ye.Authorization;
5569
5574
  if (me)
5570
5575
  if (me.indexOf(" ") > -1)
5571
- Ae = !1;
5576
+ Pe = !1;
5572
5577
  else if (me.indexOf("q-sign-algorithm=") > -1 && me.indexOf("q-ak=") > -1 && me.indexOf("q-sign-time=") > -1 && me.indexOf("q-key-time=") > -1 && me.indexOf("q-url-param-list=") > -1)
5573
- Ae = !0;
5578
+ Pe = !0;
5574
5579
  else
5575
5580
  try {
5576
- me = atob(me), me.indexOf("a=") > -1 && me.indexOf("k=") > -1 && me.indexOf("t=") > -1 && me.indexOf("r=") > -1 && me.indexOf("b=") > -1 && (Ae = !0);
5581
+ me = atob(me), me.indexOf("a=") > -1 && me.indexOf("k=") > -1 && me.indexOf("t=") > -1 && me.indexOf("r=") > -1 && me.indexOf("b=") > -1 && (Pe = !0);
5577
5582
  } catch {
5578
5583
  }
5579
- if (!Ae) return s.error(new Error("getAuthorization callback params format error"));
5584
+ if (!Pe) return s.error(new Error("getAuthorization callback params format error"));
5580
5585
  } else {
5581
5586
  if (!ye.TmpSecretId) return s.error(new Error('getAuthorization callback params missing "TmpSecretId"'));
5582
5587
  if (!ye.TmpSecretKey) return s.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));
@@ -5587,7 +5592,7 @@ var wt = { exports: {} };
5587
5592
  }
5588
5593
  return !1;
5589
5594
  };
5590
- if ($.ExpiredTime && $.ExpiredTime - s.getSkewTime(b.options.SystemClockOffset) / 1e3 > 60)
5595
+ if (W.ExpiredTime && W.ExpiredTime - s.getSkewTime(b.options.SystemClockOffset) / 1e3 > 60)
5591
5596
  Ke();
5592
5597
  else if (b.options.getAuthorization)
5593
5598
  b.options.getAuthorization.call(b, {
@@ -5607,17 +5612,17 @@ var wt = { exports: {} };
5607
5612
  });
5608
5613
  var ye = Je(be);
5609
5614
  if (ye) return S(ye);
5610
- be.Authorization ? S(null, be) : ($ = be || {}, $.Scope = Te, $.ScopeKey = Me, b._StsCache.push($), Ke());
5615
+ be.Authorization ? S(null, be) : (W = be || {}, W.Scope = Te, W.ScopeKey = Me, b._StsCache.push(W), Ke());
5611
5616
  });
5612
5617
  else if (b.options.getSTS)
5613
5618
  b.options.getSTS.call(b, {
5614
5619
  Bucket: H,
5615
5620
  Region: ce
5616
5621
  }, function(be) {
5617
- $ = be || {}, $.Scope = Te, $.ScopeKey = Me, $.TmpSecretId || ($.TmpSecretId = $.SecretId), $.TmpSecretKey || ($.TmpSecretKey = $.SecretKey);
5618
- var ye = Je($);
5622
+ W = be || {}, W.Scope = Te, W.ScopeKey = Me, W.TmpSecretId || (W.TmpSecretId = W.SecretId), W.TmpSecretKey || (W.TmpSecretKey = W.SecretKey);
5623
+ var ye = Je(W);
5619
5624
  if (ye) return S(ye);
5620
- b._StsCache.push($), Ke();
5625
+ b._StsCache.push(W), Ke();
5621
5626
  });
5622
5627
  else
5623
5628
  return function() {
@@ -5645,12 +5650,12 @@ var wt = { exports: {} };
5645
5650
  UseRawKey: b.options.UseRawKey,
5646
5651
  SystemClockOffset: b.options.SystemClockOffset,
5647
5652
  ForceSignHost: p
5648
- }), Ae = {
5653
+ }), Pe = {
5649
5654
  Authorization: ye,
5650
5655
  SecurityToken: b.options.SecurityToken || b.options.XCosSecurityToken,
5651
5656
  SignFrom: "client"
5652
5657
  };
5653
- return S(null, Ae), Ae;
5658
+ return S(null, Pe), Pe;
5654
5659
  }();
5655
5660
  return "";
5656
5661
  }
@@ -5714,13 +5719,13 @@ var wt = { exports: {} };
5714
5719
  Scope: e.Scope,
5715
5720
  ForceSignHost: n.options.ForceSignHost,
5716
5721
  SwitchHost: e.SwitchHost
5717
- }, function($, Te) {
5718
- if ($) {
5722
+ }, function(W, Te) {
5723
+ if (W) {
5719
5724
  n.logger.error({
5720
5725
  cate: "PROCESS",
5721
5726
  tag: "base",
5722
- msg: "签名获取失败, err=".concat(JSON.stringify($.message))
5723
- }), c($);
5727
+ msg: "签名获取失败, err=".concat(JSON.stringify(W.message))
5728
+ }), c(W);
5724
5729
  return;
5725
5730
  }
5726
5731
  S && S.setParams({
@@ -5784,16 +5789,16 @@ var wt = { exports: {} };
5784
5789
  }), e.SwitchHost && (H = H.replace(/myqcloud.com/, "tencentcos.cn"));
5785
5790
  var Se = S ? H : "";
5786
5791
  e.action && (H = H + "?" + (s.isIOS_QQ ? "".concat(e.action, "=") : e.action)), e.qsStr && (H.indexOf("?") > -1 ? H = H + "&" + e.qsStr : H = H + "?" + e.qsStr);
5787
- var $ = {
5792
+ var W = {
5788
5793
  method: b,
5789
5794
  url: H,
5790
5795
  headers: e.headers,
5791
5796
  qs: e.qs,
5792
5797
  body: ce
5793
5798
  }, Te = "x-cos-security-token";
5794
- if (s.isCIHost(H) && (Te = "x-ci-security-token"), $.headers.Authorization = e.AuthData.Authorization, e.AuthData.Token && ($.headers.token = e.AuthData.Token), e.AuthData.ClientIP && ($.headers.clientIP = e.AuthData.ClientIP), e.AuthData.ClientUA && ($.headers.clientUA = e.AuthData.ClientUA), e.AuthData.SecurityToken && ($.headers[Te] = e.AuthData.SecurityToken), e.Action && ($.action = e.Action), $.key = e.Key || e.ResourceKey, $.headers && ($.headers = s.clearKey($.headers)), $ = s.clearKey($), e.onProgress && typeof e.onProgress == "function") {
5799
+ if (s.isCIHost(H) && (Te = "x-ci-security-token"), W.headers.Authorization = e.AuthData.Authorization, e.AuthData.Token && (W.headers.token = e.AuthData.Token), e.AuthData.ClientIP && (W.headers.clientIP = e.AuthData.ClientIP), e.AuthData.ClientUA && (W.headers.clientUA = e.AuthData.ClientUA), e.AuthData.SecurityToken && (W.headers[Te] = e.AuthData.SecurityToken), e.Action && (W.action = e.Action), W.key = e.Key || e.ResourceKey, W.headers && (W.headers = s.clearKey(W.headers)), W = s.clearKey(W), e.onProgress && typeof e.onProgress == "function") {
5795
5800
  var Fe = ce && (ce.size || ce.length) || 0;
5796
- $.onProgress = function(me) {
5801
+ W.onProgress = function(me) {
5797
5802
  if (!(u && !n._isRunningTask(u))) {
5798
5803
  var qe = me ? me.loaded : 0;
5799
5804
  e.onProgress({
@@ -5803,32 +5808,32 @@ var wt = { exports: {} };
5803
5808
  }
5804
5809
  };
5805
5810
  }
5806
- e.onDownloadProgress && ($.onDownloadProgress = e.onDownloadProgress), e.DataType && ($.dataType = e.DataType), this.options.Timeout && ($.timeout = this.options.Timeout), n.options.ForcePathStyle && ($.pathStyle = n.options.ForcePathStyle);
5811
+ e.onDownloadProgress && (W.onDownloadProgress = e.onDownloadProgress), e.DataType && (W.dataType = e.DataType), this.options.Timeout && (W.timeout = this.options.Timeout), n.options.ForcePathStyle && (W.pathStyle = n.options.ForcePathStyle);
5807
5812
  var Le = s.uuid();
5808
5813
  n.logger.info({
5809
5814
  cate: "PROCESS",
5810
5815
  tag: "network",
5811
- msg: "[Request] ".concat(Le, ", requestOpt=").concat(JSON.stringify($))
5812
- }), n.emit("before-send", $);
5813
- var Me = $.url.includes("accelerate."), Ke = $.qs ? Object.keys($.qs).map(function(me) {
5814
- return "".concat(me, "=").concat($.qs[me]);
5815
- }).join("&") : "", Je = Ke ? $.url + "?" + Ke : $.url;
5816
+ msg: "[Request] ".concat(Le, ", requestOpt=").concat(JSON.stringify(W))
5817
+ }), n.emit("before-send", W);
5818
+ var Me = W.url.includes("accelerate."), Ke = W.qs ? Object.keys(W.qs).map(function(me) {
5819
+ return "".concat(me, "=").concat(W.qs[me]);
5820
+ }).join("&") : "", Je = Ke ? W.url + "?" + Ke : W.url;
5816
5821
  if (e.tracker) {
5817
5822
  var be;
5818
5823
  e.tracker.setParams({
5819
5824
  url: Je,
5820
- httpMethod: $.method,
5825
+ httpMethod: W.method,
5821
5826
  accelerate: Me,
5822
- httpSize: ((be = $.body) === null || be === void 0 ? void 0 : be.size) || 0
5827
+ httpSize: ((be = W.body) === null || be === void 0 ? void 0 : be.size) || 0
5823
5828
  }), e.tracker.parent && !e.tracker.parent.params.url && e.tracker.parent.setParams({
5824
5829
  url: Se,
5825
5830
  accelerate: Me
5826
5831
  });
5827
5832
  }
5828
- var ye = (n.options.Request || N)($, function(me) {
5833
+ var ye = (n.options.Request || N)(W, function(me) {
5829
5834
  if (!(me && me.error === "abort")) {
5830
5835
  var qe = {
5831
- options: $,
5836
+ options: W,
5832
5837
  error: me && me.error,
5833
5838
  statusCode: me && me.statusCode || 0,
5834
5839
  statusMessage: me && me.statusMessage || "",
@@ -5847,11 +5852,11 @@ var wt = { exports: {} };
5847
5852
  msg: "[Response] ".concat(Le, ", ").concat(jt, ", response=").concat(JSON.stringify(Xe))
5848
5853
  });
5849
5854
  var Et, et = function(tt, je) {
5850
- if (u && n.off("inner-kill-task", Ae), !Et) {
5855
+ if (u && n.off("inner-kill-task", Pe), !Et) {
5851
5856
  Et = !0;
5852
5857
  var ot = {};
5853
5858
  if (Xe && Xe.statusCode && (ot.statusCode = Xe.statusCode), Xe && Xe.headers && (ot.headers = Xe.headers), tt)
5854
- $.url && (ot.url = $.url), $.method && (ot.method = $.method), tt = s.extend(tt || {}, ot), c(tt, null);
5859
+ W.url && (ot.url = W.url), W.method && (ot.method = W.method), tt = s.extend(tt || {}, ot), c(tt, null);
5855
5860
  else {
5856
5861
  if (e.Action === "name/cos:PutObject") {
5857
5862
  var Tt = {};
@@ -5892,10 +5897,10 @@ var wt = { exports: {} };
5892
5897
  code: "" + at
5893
5898
  })) : at && et(s.error(new Error("statusCode error")));
5894
5899
  }
5895
- }), Ae = function(qe) {
5896
- qe.TaskId === u && (ye && ye.abort && ye.abort(), n.off("inner-kill-task", Ae));
5900
+ }), Pe = function(qe) {
5901
+ qe.TaskId === u && (ye && ye.abort && ye.abort(), n.off("inner-kill-task", Pe));
5897
5902
  };
5898
- u && n.on("inner-kill-task", Ae);
5903
+ u && n.on("inner-kill-task", Pe);
5899
5904
  }
5900
5905
  }
5901
5906
  var bt = {
@@ -5956,7 +5961,7 @@ var wt = { exports: {} };
5956
5961
  putBucketInventory: pe,
5957
5962
  // BucketInventory
5958
5963
  postBucketInventory: ve,
5959
- getBucketInventory: Ee,
5964
+ getBucketInventory: Ae,
5960
5965
  listBucketInventory: xe,
5961
5966
  deleteBucketInventory: Ie,
5962
5967
  putBucketAccelerate: Ge,
@@ -7062,7 +7067,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7062
7067
  for (P = 0, O = R.length / 2; P < O; P++)
7063
7068
  q = parseInt(R[P * 2] + R[P * 2 + 1], 16), Q += String.fromCharCode(q);
7064
7069
  return btoa(Q);
7065
- }, Ee = function() {
7070
+ }, Ae = function() {
7066
7071
  var R = function() {
7067
7072
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
7068
7073
  };
@@ -7332,7 +7337,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7332
7337
  filter: pe,
7333
7338
  clone: se,
7334
7339
  attr: ee,
7335
- uuid: Ee,
7340
+ uuid: Ae,
7336
7341
  camSafeUrlEncode: l,
7337
7342
  throttleOnProgress: _e,
7338
7343
  getFileSize: We,
@@ -7367,7 +7372,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7367
7372
  var Jt = wt.exports;
7368
7373
  const Xt = /* @__PURE__ */ Ht(Jt), Zt = 5 * 1024 * 1024;
7369
7374
  function Yt() {
7370
- async function W(Pe) {
7375
+ async function $(Ee) {
7371
7376
  var A, j;
7372
7377
  let _ = null;
7373
7378
  const J = () => {
@@ -7375,64 +7380,64 @@ function Yt() {
7375
7380
  }, E = new Xt({
7376
7381
  getAuthorization(L, N) {
7377
7382
  N({
7378
- TmpSecretId: Pe.credentials.tmpSecretId,
7379
- TmpSecretKey: Pe.credentials.tmpSecretKey,
7380
- SecurityToken: Pe.credentials.sessionToken,
7381
- StartTime: Pe.credentials.startTime,
7382
- ExpiredTime: Pe.credentials.expiredTime,
7383
+ TmpSecretId: Ee.credentials.tmpSecretId,
7384
+ TmpSecretKey: Ee.credentials.tmpSecretKey,
7385
+ SecurityToken: Ee.credentials.sessionToken,
7386
+ StartTime: Ee.credentials.startTime,
7387
+ ExpiredTime: Ee.credentials.expiredTime,
7383
7388
  ScopeLimit: !0
7384
7389
  });
7385
7390
  }
7386
7391
  }), U = E.uploadFile({
7387
- Bucket: Pe.bucket,
7388
- Region: Pe.region,
7389
- Key: Pe.key,
7390
- Body: Pe.file,
7392
+ Bucket: Ee.bucket,
7393
+ Region: Ee.region,
7394
+ Key: Ee.key,
7395
+ Body: Ee.file,
7391
7396
  SliceSize: Zt,
7392
- onProgress: Pe.onProgress,
7397
+ onProgress: Ee.onProgress,
7393
7398
  onTaskReady(L) {
7394
7399
  var N;
7395
- _ = L, (N = Pe.signal) != null && N.aborted && E.cancelTask(L);
7400
+ _ = L, (N = Ee.signal) != null && N.aborted && E.cancelTask(L);
7396
7401
  }
7397
7402
  });
7398
- (A = Pe.signal) == null || A.addEventListener("abort", J, {
7403
+ (A = Ee.signal) == null || A.addEventListener("abort", J, {
7399
7404
  once: !0
7400
7405
  });
7401
7406
  try {
7402
7407
  return await U;
7403
7408
  } finally {
7404
- (j = Pe.signal) == null || j.removeEventListener("abort", J);
7409
+ (j = Ee.signal) == null || j.removeEventListener("abort", J);
7405
7410
  }
7406
7411
  }
7407
7412
  return {
7408
- upload: W
7413
+ upload: $
7409
7414
  };
7410
7415
  }
7411
- function en(W) {
7412
- return !!W && typeof W == "object" && "Key" in W && typeof W.Key == "string" && "Bucket" in W && typeof W.Bucket == "string" && "Region" in W && typeof W.Region == "string" && "TmpSecretId" in W && typeof W.TmpSecretId == "string" && "TmpSecretKey" in W && typeof W.TmpSecretKey == "string" && "SessionToken" in W && typeof W.SessionToken == "string" && "StartTime" in W && typeof W.StartTime == "number" && "ExpiredTime" in W && typeof W.ExpiredTime == "number";
7416
+ function en($) {
7417
+ return !!$ && typeof $ == "object" && "Key" in $ && typeof $.Key == "string" && "Bucket" in $ && typeof $.Bucket == "string" && "Region" in $ && typeof $.Region == "string" && "TmpSecretId" in $ && typeof $.TmpSecretId == "string" && "TmpSecretKey" in $ && typeof $.TmpSecretKey == "string" && "SessionToken" in $ && typeof $.SessionToken == "string" && "StartTime" in $ && typeof $.StartTime == "number" && "ExpiredTime" in $ && typeof $.ExpiredTime == "number";
7413
7418
  }
7414
- function tn(W) {
7415
- return W && typeof W == "object" && "id" in W ? String(W.id) : "";
7419
+ function tn($) {
7420
+ return $ && typeof $ == "object" && "id" in $ ? String($.id) : "";
7416
7421
  }
7417
- function Rt(W, Pe) {
7418
- return W && typeof W == "object" && "message" in W && typeof W.message == "string" ? new Error(W.message) : new Error(Pe);
7422
+ function Rt($, Ee) {
7423
+ return $ && typeof $ == "object" && "message" in $ && typeof $.message == "string" ? new Error($.message) : new Error(Ee);
7419
7424
  }
7420
7425
  function It() {
7421
7426
  return new DOMException("上传已取消", "AbortError");
7422
7427
  }
7423
- function Bt(W) {
7424
- if (W != null && W.aborted)
7428
+ function Bt($) {
7429
+ if ($ != null && $.aborted)
7425
7430
  throw It();
7426
7431
  }
7427
- function nn(W) {
7428
- return W instanceof Error ? W : new Error("上传失败");
7432
+ function nn($) {
7433
+ return $ instanceof Error ? $ : new Error("上传失败");
7429
7434
  }
7430
- function on(W, Pe = Yt()) {
7435
+ function on($, Ee = Yt()) {
7431
7436
  async function _(J) {
7432
7437
  var E;
7433
7438
  try {
7434
7439
  Bt(J.signal);
7435
- const U = Qt(J.file), A = await W.ones.files.getKeyAndCredentials.post({
7440
+ const U = Qt(J.file), A = await $.ones.files.getKeyAndCredentials.post({
7436
7441
  filename: J.file.name,
7437
7442
  bucketId: J.bucketId,
7438
7443
  size: J.file.size,
@@ -7442,7 +7447,7 @@ function on(W, Pe = Yt()) {
7442
7447
  throw Rt(A.error, "获取上传凭证失败");
7443
7448
  Bt(J.signal);
7444
7449
  const j = A.data;
7445
- await Pe.upload({
7450
+ await Ee.upload({
7446
7451
  file: J.file,
7447
7452
  bucket: j.Bucket,
7448
7453
  region: j.Region,
@@ -7460,7 +7465,7 @@ function on(W, Pe = Yt()) {
7460
7465
  },
7461
7466
  signal: J.signal
7462
7467
  }), Bt(J.signal);
7463
- const L = await W.ones.files.create.post({
7468
+ const L = await $.ones.files.create.post({
7464
7469
  bucketId: J.bucketId,
7465
7470
  filename: j.Key,
7466
7471
  name: J.file.name,
@@ -7470,7 +7475,7 @@ function on(W, Pe = Yt()) {
7470
7475
  }), N = tn(L.data);
7471
7476
  if (L.error || !N)
7472
7477
  throw Rt(L.error, "登记上传文件失败");
7473
- const s = await W.ones.files.update.post({
7478
+ const s = await $.ones.files.update.post({
7474
7479
  id: N,
7475
7480
  status: "success"
7476
7481
  });
@@ -7496,11 +7501,11 @@ function on(W, Pe = Yt()) {
7496
7501
  }
7497
7502
  const Ft = Symbol("huyooo-runtime");
7498
7503
  let lt = null;
7499
- function an(W) {
7504
+ function an($) {
7500
7505
  if (lt)
7501
7506
  throw new Error("Huyooo UI Runtime 已初始化,不能重复创建");
7502
- const Pe = Gt(W), _ = Kt(Pe), J = on(_), E = {
7503
- config: Pe,
7507
+ const Ee = Gt($), _ = Kt(Ee), J = on(_), E = {
7508
+ config: Ee,
7504
7509
  api: _,
7505
7510
  upload: J
7506
7511
  };
@@ -7517,10 +7522,10 @@ function cn() {
7517
7522
  return lt;
7518
7523
  }
7519
7524
  function ln() {
7520
- const W = Mt(Ft);
7521
- if (!W)
7525
+ const $ = Mt(Ft);
7526
+ if (!$)
7522
7527
  throw new Error("当前 Vue 应用未安装 createHuyoooUI(config)");
7523
- return W;
7528
+ return $;
7524
7529
  }
7525
7530
  export {
7526
7531
  Ft as H,