@zyzgroup/core-web 0.1.35 → 0.1.37

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.
@@ -606,10 +606,10 @@ class ke {
606
606
  }
607
607
  }
608
608
  function Jr() {
609
- return ei().openLog || !1;
609
+ return ei().OPEN_LOG || !1;
610
610
  }
611
611
  function Qr(i, t) {
612
- const e = ei().logUploadFn;
612
+ const e = ei().LOG_UPLOAD_FN;
613
613
  e && e(i, t);
614
614
  }
615
615
  function Ce(i) {
@@ -17278,9 +17278,6 @@ function xp(i) {
17278
17278
  !1
17279
17279
  );
17280
17280
  }
17281
- function wp(i, t = import.meta.url) {
17282
- return new URL(i, t);
17283
- }
17284
17281
  function vn(i = window.location.href) {
17285
17282
  try {
17286
17283
  return new URL(i);
@@ -17298,7 +17295,7 @@ function vn(i = window.location.href) {
17298
17295
  };
17299
17296
  }
17300
17297
  }
17301
- function bp(i) {
17298
+ function wp(i) {
17302
17299
  const t = vn(i);
17303
17300
  return t.protocol === "http:" || t.protocol === "https:";
17304
17301
  }
@@ -17306,7 +17303,7 @@ function Ju(i = window.location.href) {
17306
17303
  const t = vn(i), e = t.href.indexOf(t.hash);
17307
17304
  return t.hash && e >= 0 ? t.href.substring(0, e) : t.href;
17308
17305
  }
17309
- function Sp(i = vn().search) {
17306
+ function bp(i = vn().search) {
17310
17307
  i = decodeURIComponent(i).replace(/^[#?&]/, "");
17311
17308
  const t = {};
17312
17309
  if (!i)
@@ -17317,7 +17314,7 @@ function Sp(i = vn().search) {
17317
17314
  t[s[1]] = s[2], s = e.exec(i);
17318
17315
  return t;
17319
17316
  }
17320
- const vp = (i = window.location.href) => JSON.parse(
17317
+ const Sp = (i = window.location.href) => JSON.parse(
17321
17318
  '{"' + decodeURI(i.split("?")[1]).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}'
17322
17319
  );
17323
17320
  function Cn(i) {
@@ -17331,16 +17328,16 @@ function Qu(i) {
17331
17328
  function Ku(i, t) {
17332
17329
  return i.replace(/(?:\?.*)?$/, t.replace(/^[&?]/, "?"));
17333
17330
  }
17334
- function Cp(i, t) {
17331
+ function vp(i, t) {
17335
17332
  return Ku(i, Cn(t));
17336
17333
  }
17337
17334
  function wa(i, t) {
17338
17335
  return i + t.replace(/^[&?]/, i.indexOf("?") >= 0 ? "&" : "?");
17339
17336
  }
17340
- function _p(i, t) {
17337
+ function Cp(i, t) {
17341
17338
  return wa(i, Cn(t));
17342
17339
  }
17343
- class Tp {
17340
+ class _p {
17344
17341
  worker;
17345
17342
  cbs = {};
17346
17343
  constructor(t) {
@@ -17412,7 +17409,7 @@ class Tp {
17412
17409
  });
17413
17410
  }
17414
17411
  }
17415
- class Pp {
17412
+ class Tp {
17416
17413
  port1;
17417
17414
  port2;
17418
17415
  port1MessageCbs = [];
@@ -17482,7 +17479,7 @@ function tf() {
17482
17479
  i = new XMLHttpRequest();
17483
17480
  return i;
17484
17481
  }
17485
- function Mp(i, t) {
17482
+ function Pp(i, t) {
17486
17483
  return new Promise((e, s) => {
17487
17484
  const {
17488
17485
  method: n = "GET",
@@ -17550,7 +17547,7 @@ function Mp(i, t) {
17550
17547
  }
17551
17548
  });
17552
17549
  }
17553
- async function Ep(i) {
17550
+ async function Mp(i) {
17554
17551
  const t = {
17555
17552
  url: i.action || "",
17556
17553
  data: {},
@@ -17604,7 +17601,7 @@ Content-Type: ` + d.type + `\r
17604
17601
  `) + "--" + t.boundary + `--\r
17605
17602
  `, t;
17606
17603
  }
17607
- class Ap {
17604
+ class Ep {
17608
17605
  controller;
17609
17606
  ctx;
17610
17607
  shapes = [];
@@ -17837,7 +17834,7 @@ function ef(i, t) {
17837
17834
  }
17838
17835
  }
17839
17836
  }
17840
- class kp {
17837
+ class Ap {
17841
17838
  localVideoUtil;
17842
17839
  remoteVideoUtil;
17843
17840
  localPeerConnection = null;
@@ -17960,7 +17957,7 @@ ${t.sdp}.`), this.remotePeerConnection && (this.trace("remotePeerConnection setL
17960
17957
  return t === this.localPeerConnection ? "localPeerConnection" : "remotePeerConnection";
17961
17958
  }
17962
17959
  }
17963
- class Ip {
17960
+ class kp {
17964
17961
  canvas;
17965
17962
  gl;
17966
17963
  constructor(t) {
@@ -17974,7 +17971,7 @@ const ba = [], Xr = {};
17974
17971
  function Sa(i) {
17975
17972
  ba.push(i);
17976
17973
  }
17977
- function Dp(i, t = !1) {
17974
+ function Ip(i, t = !1) {
17978
17975
  const e = Ju();
17979
17976
  if (Xr[e])
17980
17977
  return;
@@ -18032,7 +18029,7 @@ function Dp(i, t = !1) {
18032
18029
  })
18033
18030
  ), Xr[e] = !0;
18034
18031
  }
18035
- function Rp(i) {
18032
+ function Dp(i) {
18036
18033
  return new Promise((t, e) => {
18037
18034
  wx.checkJsApi({
18038
18035
  jsApiList: [i],
@@ -18045,74 +18042,74 @@ function Rp(i) {
18045
18042
  });
18046
18043
  });
18047
18044
  }
18048
- function Lp(i) {
18045
+ function Rp(i) {
18049
18046
  Sa(function() {
18050
18047
  wx.updateAppMessageShareData(i);
18051
18048
  });
18052
18049
  }
18053
- function zp(i) {
18050
+ function Lp(i) {
18054
18051
  Sa(function() {
18055
18052
  wx.updateTimelineShareData(i);
18056
18053
  });
18057
18054
  }
18058
- function Op(i) {
18055
+ function zp(i) {
18059
18056
  wx.chooseImage(i);
18060
18057
  }
18061
- function Fp(i) {
18058
+ function Op(i) {
18062
18059
  wx.previewImage(i);
18063
18060
  }
18064
- function Np(i) {
18061
+ function Fp(i) {
18065
18062
  wx.uploadImage(i);
18066
18063
  }
18067
- function Bp(i) {
18064
+ function Np(i) {
18068
18065
  wx.downloadImage(i);
18069
18066
  }
18070
- function Yp(i) {
18067
+ function Bp(i) {
18071
18068
  wx.getLocalImgData(i);
18072
18069
  }
18073
- function Xp() {
18070
+ function Yp() {
18074
18071
  wx.startRecord();
18075
18072
  }
18076
- function Up(i) {
18073
+ function Xp(i) {
18077
18074
  wx.stopRecord(i);
18078
18075
  }
18079
- function Vp(i) {
18076
+ function Up(i) {
18080
18077
  wx.onVoiceRecordEnd(i);
18081
18078
  }
18082
- function Gp(i) {
18079
+ function Vp(i) {
18083
18080
  wx.playVoice(i);
18084
18081
  }
18085
- function qp(i) {
18082
+ function Gp(i) {
18086
18083
  wx.pauseVoice(i);
18087
18084
  }
18088
- function jp(i) {
18085
+ function qp(i) {
18089
18086
  wx.stopVoice(i);
18090
18087
  }
18091
- function Hp(i) {
18088
+ function jp(i) {
18092
18089
  wx.onVoicePlayEnd(i);
18093
18090
  }
18094
- function $p(i) {
18091
+ function Hp(i) {
18095
18092
  wx.uploadVoice(i);
18096
18093
  }
18097
- function Wp(i) {
18094
+ function $p(i) {
18098
18095
  wx.downloadVoice(i);
18099
18096
  }
18100
- function Zp(i) {
18097
+ function Wp(i) {
18101
18098
  wx.translateVoice(i);
18102
18099
  }
18103
- function Jp(i) {
18100
+ function Zp(i) {
18104
18101
  wx.getNetworkType(i);
18105
18102
  }
18106
- function Qp(i) {
18103
+ function Jp(i) {
18107
18104
  wx.openLocation(i);
18108
18105
  }
18109
- function Kp(i) {
18106
+ function Qp(i) {
18110
18107
  wx.getLocation(i);
18111
18108
  }
18112
- function t0(i) {
18109
+ function Kp(i) {
18113
18110
  wx.scanQRCode(i);
18114
18111
  }
18115
- function e0(i, t, e) {
18112
+ function t0(i, t, e) {
18116
18113
  function s() {
18117
18114
  WeixinJSBridge.invoke("getBrandWCPayRequest", i, function(n) {
18118
18115
  n.err_msg == "get_brand_wcpay_request:ok" ? t() : e(n.err_msg);
@@ -18120,12 +18117,12 @@ function e0(i, t, e) {
18120
18117
  }
18121
18118
  typeof WeixinJSBridge > "u" ? document.addEventListener ? document.addEventListener("WeixinJSBridgeReady", s, !1) : document.attachEvent && (document.attachEvent("WeixinJSBridgeReady", s), document.attachEvent("onWeixinJSBridgeReady", s)) : s();
18122
18119
  }
18123
- function s0(i, t, e = "snsapi_userinfo", s = "") {
18120
+ function e0(i, t, e = "snsapi_userinfo", s = "") {
18124
18121
  return `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${i}&redirect_uri=${encodeURIComponent(
18125
18122
  t
18126
18123
  )}&response_type=code&scope=${e}&state=${s}#wechat_redirect`;
18127
18124
  }
18128
- function i0(i) {
18125
+ function s0(i) {
18129
18126
  window.AlipayJSBridge ? i && i() : document.addEventListener("AlipayJSBridgeReady", i, !1);
18130
18127
  }
18131
18128
  function ms(i, t) {
@@ -18167,7 +18164,7 @@ function ms(i, t) {
18167
18164
  }
18168
18165
  return `${i.error}(${e}): ${i.errorMessage}`;
18169
18166
  }
18170
- function n0(i, t, e) {
18167
+ function i0(i, t, e) {
18171
18168
  ap.tradePay(
18172
18169
  Object.assign(i, {
18173
18170
  // fail: (res: commonFailOption) => {
@@ -18199,7 +18196,7 @@ function n0(i, t, e) {
18199
18196
  }
18200
18197
  );
18201
18198
  }
18202
- function r0(i, t, e) {
18199
+ function n0(i, t, e) {
18203
18200
  ap.scan(
18204
18201
  Object.assign(i, {
18205
18202
  fail: (s) => {
@@ -18211,7 +18208,7 @@ function r0(i, t, e) {
18211
18208
  }
18212
18209
  );
18213
18210
  }
18214
- function o0(i, t, e) {
18211
+ function r0(i, t, e) {
18215
18212
  ap.getLocation(
18216
18213
  Object.assign(i, {
18217
18214
  fail: (s) => {
@@ -18223,7 +18220,7 @@ function o0(i, t, e) {
18223
18220
  }
18224
18221
  );
18225
18222
  }
18226
- function a0(i, t, e) {
18223
+ function o0(i, t, e) {
18227
18224
  ap.openLocation(
18228
18225
  Object.assign(i, {
18229
18226
  fail: (s) => {
@@ -18235,7 +18232,7 @@ function a0(i, t, e) {
18235
18232
  }
18236
18233
  );
18237
18234
  }
18238
- function h0(i, t, e) {
18235
+ function a0(i, t, e) {
18239
18236
  ap.chooseImage(
18240
18237
  Object.assign(i, {
18241
18238
  fail: (s) => {
@@ -18247,7 +18244,7 @@ function h0(i, t, e) {
18247
18244
  }
18248
18245
  );
18249
18246
  }
18250
- function c0(i, t, e) {
18247
+ function h0(i, t, e) {
18251
18248
  ap.previewImage(
18252
18249
  Object.assign(i, {
18253
18250
  fail: (s) => {
@@ -18259,13 +18256,13 @@ function c0(i, t, e) {
18259
18256
  }
18260
18257
  );
18261
18258
  }
18262
- class l0 {
18259
+ class c0 {
18263
18260
  map;
18264
18261
  constructor(t, e = 120.619585, s = 31.299379, n = 18) {
18265
18262
  this.map = new T.Map(t), this.map.centerAndZoom(new T.LngLat(e, s), n);
18266
18263
  }
18267
18264
  }
18268
- class u0 {
18265
+ class l0 {
18269
18266
  /// 当前页数,从0开始
18270
18267
  currentPage;
18271
18268
  /// 每页item数量
@@ -18398,7 +18395,7 @@ export {
18398
18395
  ds as Matrix3,
18399
18396
  Tt as Matrix4,
18400
18397
  Du as NoColorSpace,
18401
- u0 as Pagination,
18398
+ l0 as Pagination,
18402
18399
  pe as Point,
18403
18400
  ks as Point3D,
18404
18401
  Fm as Point3Ds,
@@ -18436,30 +18433,30 @@ export {
18436
18433
  Ot as Vector3,
18437
18434
  Zo as Vector4,
18438
18435
  Is as WebGLCoordinateSystem,
18439
- Ip as WebGLRenderer,
18436
+ kp as WebGLRenderer,
18440
18437
  gr as WebGPUCoordinateSystem,
18441
- kp as WebRTCClient,
18438
+ Ap as WebRTCClient,
18442
18439
  yp as WebSocketClient,
18443
- Ap as YZCanvas,
18440
+ Ep as YZCanvas,
18444
18441
  Wi as YZCanvasContext,
18445
- Pp as YZMessageChannel,
18442
+ Tp as YZMessageChannel,
18446
18443
  Sm as YZSVG,
18447
- Tp as YZWorker,
18444
+ _p as YZWorker,
18448
18445
  Wt as __color,
18449
18446
  sp as addClass,
18450
18447
  om as addWatermark,
18451
18448
  Sa as addWxJsReadyFnBeforeConfig,
18452
- Mp as ajax,
18453
- h0 as aliJsChooseImage,
18454
- o0 as aliJsGetLocation,
18455
- a0 as aliJsOpenLocation,
18456
- c0 as aliJsPreviewImage,
18457
- i0 as aliJsReady,
18458
- r0 as aliJsScan,
18459
- n0 as aliJsTradePay,
18449
+ Pp as ajax,
18450
+ a0 as aliJsChooseImage,
18451
+ r0 as aliJsGetLocation,
18452
+ o0 as aliJsOpenLocation,
18453
+ h0 as aliJsPreviewImage,
18454
+ s0 as aliJsReady,
18455
+ n0 as aliJsScan,
18456
+ i0 as aliJsTradePay,
18460
18457
  De as angle,
18461
18458
  wa as appendURL,
18462
- _p as appendURLRecord,
18459
+ Cp as appendURLRecord,
18463
18460
  lu as atomReadAttribute,
18464
18461
  ia as atomReadAttributes,
18465
18462
  Zf as atomReadStyle,
@@ -18481,7 +18478,7 @@ export {
18481
18478
  nm as changeBrightness,
18482
18479
  rm as changeDiaphaneity,
18483
18480
  im as changeSize,
18484
- Rp as checkWxJsApi,
18481
+ Dp as checkWxJsApi,
18485
18482
  cf as clearCookies,
18486
18483
  lf as clearLocalStorage,
18487
18484
  Jf as combineTransformToMatrix,
@@ -18504,7 +18501,7 @@ export {
18504
18501
  Ld as flipSideToSide,
18505
18502
  zd as flipUpsideDown,
18506
18503
  Ku as flushURL,
18507
- Cp as flushURLRecord,
18504
+ vp as flushURLRecord,
18508
18505
  Qu as formDataToSearch,
18509
18506
  Bm as getBitmapFromCanvas,
18510
18507
  id as getBodyPosition,
@@ -18522,7 +18519,7 @@ export {
18522
18519
  rf as getFileExtension,
18523
18520
  yl as getFileMD5Hash,
18524
18521
  nf as getFileTypeFromFile,
18525
- Ep as getFormSubmitData,
18522
+ Mp as getFormSubmitData,
18526
18523
  Pu as getImageData,
18527
18524
  hm as getImageDataByAIData,
18528
18525
  Rd as getImageMainColor,
@@ -18536,8 +18533,7 @@ export {
18536
18533
  dn as getOperatingSystem,
18537
18534
  xf as getOperatingSystemVersion,
18538
18535
  nd as getPageSize,
18539
- vp as getParameters,
18540
- wp as getPath,
18536
+ Sp as getParameters,
18541
18537
  od as getRelativeBoundingClientRect,
18542
18538
  sd as getScreenPosition,
18543
18539
  Xe as getStyle,
@@ -18561,7 +18557,7 @@ export {
18561
18557
  kd as imageDataToDataURL,
18562
18558
  qf as immediateVnode,
18563
18559
  cu as injectStyle,
18564
- Dp as injectWxJsConfig,
18560
+ Ip as injectWxJsConfig,
18565
18561
  kl as isAliBrowser,
18566
18562
  kf as isAliMiniProgram,
18567
18563
  Ml as isAndroid,
@@ -18578,13 +18574,13 @@ export {
18578
18574
  _f as isMobile,
18579
18575
  Ai as isNative,
18580
18576
  Ff as isTouchSupport,
18581
- bp as isURL,
18577
+ wp as isURL,
18582
18578
  Al as isWxBrowser,
18583
18579
  Af as isWxMiniProgram,
18584
18580
  Kd as jpgToPng,
18585
18581
  Od as leftRotate,
18586
18582
  pn as length,
18587
- l0 as mapTDTJSSDK,
18583
+ c0 as mapTDTJSSDK,
18588
18584
  Qd as marginSharpen,
18589
18585
  Xf as microTask,
18590
18586
  am as mosaic,
@@ -18619,7 +18615,7 @@ export {
18619
18615
  $o as scheduleVnode,
18620
18616
  zo as scheduleYZIdle,
18621
18617
  Cd as scrollTo,
18622
- Sp as searchToRecord,
18618
+ bp as searchToRecord,
18623
18619
  Ao as selectFileInBrowser,
18624
18620
  xd as setCSSVar,
18625
18621
  Nf as setIntervalAccurate,
@@ -18706,28 +18702,28 @@ export {
18706
18702
  Md as useWindowVisible,
18707
18703
  Wm as waitForStyleSheetsLoaded,
18708
18704
  df as writeToIndexDB,
18709
- Op as wxJsChooseImage,
18710
- Bp as wxJsDownloadImage,
18711
- Wp as wxJsDownloadVoice,
18712
- Yp as wxJsGetLocalImgData,
18713
- Kp as wxJsGetLocation,
18714
- Jp as wxJsGetNetworkType,
18715
- s0 as wxJsLogin,
18716
- Hp as wxJsOnVoicePlayEnd,
18717
- Vp as wxJsOnVoiceRecordEnd,
18718
- Qp as wxJsOpenLocation,
18719
- qp as wxJsPauseVoice,
18720
- e0 as wxJsPay,
18721
- Gp as wxJsPlayVoice,
18722
- Fp as wxJsPreviewImage,
18723
- t0 as wxJsScanQRCode,
18724
- Xp as wxJsStartRecord,
18725
- Up as wxJsStopRecord,
18726
- jp as wxJsStopVoice,
18727
- Zp as wxJsTranslateVoice,
18728
- Lp as wxJsUpdateAppMessageShareData,
18729
- zp as wxJsUpdateTimelineShareData,
18730
- Np as wxJsUploadImage,
18731
- $p as wxJsUploadVoice
18705
+ zp as wxJsChooseImage,
18706
+ Np as wxJsDownloadImage,
18707
+ $p as wxJsDownloadVoice,
18708
+ Bp as wxJsGetLocalImgData,
18709
+ Qp as wxJsGetLocation,
18710
+ Zp as wxJsGetNetworkType,
18711
+ e0 as wxJsLogin,
18712
+ jp as wxJsOnVoicePlayEnd,
18713
+ Up as wxJsOnVoiceRecordEnd,
18714
+ Jp as wxJsOpenLocation,
18715
+ Gp as wxJsPauseVoice,
18716
+ t0 as wxJsPay,
18717
+ Vp as wxJsPlayVoice,
18718
+ Op as wxJsPreviewImage,
18719
+ Kp as wxJsScanQRCode,
18720
+ Yp as wxJsStartRecord,
18721
+ Xp as wxJsStopRecord,
18722
+ qp as wxJsStopVoice,
18723
+ Wp as wxJsTranslateVoice,
18724
+ Rp as wxJsUpdateAppMessageShareData,
18725
+ Lp as wxJsUpdateTimelineShareData,
18726
+ Fp as wxJsUploadImage,
18727
+ Hp as wxJsUploadVoice
18732
18728
  };
18733
18729
  //# sourceMappingURL=zyzgroup_core_web.js.map