@10yun/open-sdk 0.3.100 → 0.3.101

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.
@@ -1,5 +1,5 @@
1
1
  import { defineStore as De, mapState as Le } from "pinia";
2
- import { effectScope as ks, ref as Ps, shallowRef as Fs, computed as gt, watch as wn, isRef as Ms, defineComponent as Jn, getCurrentInstance as Nt, h as Aa, Fragment as he, inject as Us, onMounted as Bs, onUnmounted as xs, createVNode as w, Text as Vs, resolveComponent as B, createBlock as J, openBlock as U, withCtx as D, createElementVNode as k, createElementBlock as Q, renderList as Xe, createTextVNode as te, toDisplayString as ne, createCommentVNode as ue, Transition as Gs, normalizeClass as ya, resolveDynamicComponent as $s, withDirectives as Na, withModifiers as Ws, normalizeStyle as Dn, vShow as Ta, mergeProps as Ys, renderSlot as Hs } from "vue";
2
+ import { effectScope as ks, ref as Ps, shallowRef as Fs, computed as gt, watch as wn, isRef as Ms, defineComponent as Jn, getCurrentInstance as Nt, h as Aa, Fragment as he, inject as Us, onMounted as Bs, onUnmounted as xs, createVNode as w, Text as Vs, resolveComponent as B, createBlock as J, openBlock as U, withCtx as D, createElementVNode as k, createElementBlock as Q, renderList as Xe, createTextVNode as te, toDisplayString as ne, createCommentVNode as fe, Transition as Gs, normalizeClass as ya, resolveDynamicComponent as $s, withDirectives as Na, withModifiers as Ws, normalizeStyle as Dn, vShow as Ta, mergeProps as Ys, renderSlot as Hs } from "vue";
3
3
  import Ks, { ElMessage as vr, ElMessageBox as js, ElNotification as qs } from "element-plus";
4
4
  import * as Xs from "@element-plus/icons-vue";
5
5
  import "element-plus/dist/index.css";
@@ -4029,29 +4029,29 @@ const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
4029
4029
  },
4030
4030
  async __load_api_flag() {
4031
4031
  let e = await gbIdbObj.idbGetItem(On);
4032
- e || await fe.flagGet("BASE_LOAD_COMMON_API_FLAG", {}).then((t) => {
4032
+ e || await ue.flagGet("BASE_LOAD_COMMON_API_FLAG", {}).then((t) => {
4033
4033
  e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), gbIdbObj.idbSetItem(On, e);
4034
- }), await fe.appendApiFlag(e);
4034
+ }), await ue.appendApiFlag(e);
4035
4035
  },
4036
4036
  async __load_api_auth() {
4037
4037
  let e = await gbIdbObj.idbGetItem(In);
4038
- e || await fe.flagGet("BASE_LOAD_COMMON_API_AUTH", {}).then((t) => {
4038
+ e || await ue.flagGet("BASE_LOAD_COMMON_API_AUTH", {}).then((t) => {
4039
4039
  e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), gbIdbObj.idbSetItem(In, e);
4040
- }), await fe.appendApiAuth(e);
4040
+ }), await ue.appendApiAuth(e);
4041
4041
  },
4042
4042
  async __load_api_code() {
4043
4043
  let e = await gbIdbObj.idbGetItem(oa);
4044
- e || await fe.flagGet("BASE_LOAD_COMMON_API_CODE", {}).then((t) => {
4044
+ e || await ue.flagGet("BASE_LOAD_COMMON_API_CODE", {}).then((t) => {
4045
4045
  e = t.data || {}, gbIdbObj.idbSetItem(oa, e);
4046
4046
  });
4047
4047
  },
4048
4048
  async __load_api_key() {
4049
4049
  let e = await gbIdbObj.idbGetString(ca);
4050
- e || (e = cvUtils.randomString(6), await gbIdbObj.idbSetItem(ca, e)), this.cacheClientId = e, this.apiKeyData = await gbIdbObj.idbGetItem(ia), this.apiKeyData || await fe.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", {
4050
+ e || (e = cvUtils.randomString(6), await gbIdbObj.idbSetItem(ca, e)), this.cacheClientId = e, this.apiKeyData = await gbIdbObj.idbGetItem(ia), this.apiKeyData || await ue.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", {
4051
4051
  client_id: e
4052
4052
  }).then(({ data: t }) => {
4053
4053
  this.apiKeyData = t, gbIdbObj.idbSetItem(ia, this.apiKeyData);
4054
- }), fe.setHeaders({
4054
+ }), ue.setHeaders({
4055
4055
  "Sy-Client-Id": e
4056
4056
  });
4057
4057
  },
@@ -4060,7 +4060,7 @@ const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
4060
4060
  * @returns {Promise<unknown>}
4061
4061
  */
4062
4062
  async __load_system_config() {
4063
- this.systemConfig = await gbIdbObj.idbGetItem(la), this.systemConfig || await fe.flagGet("BASE_SYS_COMMON_PLAT_SETTING", {}).then(({ data: e }) => {
4063
+ this.systemConfig = await gbIdbObj.idbGetItem(la), this.systemConfig || await ue.flagGet("BASE_SYS_COMMON_PLAT_SETTING", {}).then(({ data: e }) => {
4064
4064
  this.systemConfig = Object.assign({}, this.systemConfig, e), gbIdbObj.idbSetItem(la, this.systemConfig);
4065
4065
  });
4066
4066
  },
@@ -4095,7 +4095,7 @@ const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
4095
4095
  const o = {
4096
4096
  keyId: s || e
4097
4097
  };
4098
- fe.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO", { ip: e }).then(() => {
4098
+ ue.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO", { ip: e }).then(() => {
4099
4099
  P.localSet(n, o), typeof t == "function" && t(s);
4100
4100
  });
4101
4101
  }
@@ -4156,7 +4156,7 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
4156
4156
  },
4157
4157
  accRoleIsAdmin: (e) => {
4158
4158
  var t;
4159
- return ((t = e.accountInfo) == null ? void 0 : t.acc_role_type) == "sy-org-admin";
4159
+ return ((t = e.accountInfo) == null ? void 0 : t.acc_rules_type) == "sy-org-admin";
4160
4160
  }
4161
4161
  },
4162
4162
  actions: {
@@ -4191,7 +4191,7 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
4191
4191
  },
4192
4192
  SA_ACCOUNT_INFO_REFRESH() {
4193
4193
  return new Promise((e, t) => {
4194
- fe.flagGet("BASE_ACCSYS_COMMON_INFO", {}).then(({ data: n }) => {
4194
+ ue.flagGet("BASE_ACCSYS_COMMON_INFO", {}).then(({ data: n }) => {
4195
4195
  n = this._SA_ACCOUNT_INFO_PARSE(n), e(n);
4196
4196
  }).catch((n) => {
4197
4197
  t(n);
@@ -4216,7 +4216,7 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
4216
4216
  return this.account_nick;
4217
4217
  },
4218
4218
  SA_ACCOUNT_REFRESH() {
4219
- this.accountInfo = P.localGet(at) || fa, this.accountToken = P.localGet(Me) || "", this.accountJwt = P.localGet(St) || "", fe.setDefHeaders({
4219
+ this.accountInfo = P.localGet(at) || fa, this.accountToken = P.localGet(Me) || "", this.accountJwt = P.localGet(St) || "", ue.setDefHeaders({
4220
4220
  syOpenAppToken: this.accountToken || "",
4221
4221
  Authorization: "Bearer " + this.accountJwt || ""
4222
4222
  });
@@ -4239,7 +4239,7 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt =
4239
4239
  return e = e || !1, new Promise(async (t) => {
4240
4240
  if (this.accountToken) {
4241
4241
  let n = P.localGet(vt) || "";
4242
- e && n == "" ? await fe.flagGet("ORG_SYS_BASE_MYRBAC", {}).then((r) => {
4242
+ e && n == "" ? await ue.flagGet("ORG_SYS_BASE_MYRBAC", {}).then((r) => {
4243
4243
  r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (P.localSet(vt, r.data || ""), t(r.data || ""));
4244
4244
  }).catch(() => {
4245
4245
  t("");
@@ -4366,7 +4366,7 @@ const Zt = De("cloudSdkProductStore", {
4366
4366
  isAlone: !0,
4367
4367
  name: "login",
4368
4368
  path: "/login",
4369
- component: () => import("./login-BAzOP8jW.js")
4369
+ component: () => import("./login-DVkilgn4.js")
4370
4370
  }
4371
4371
  ], Zl = [
4372
4372
  {
@@ -4374,14 +4374,14 @@ const Zt = De("cloudSdkProductStore", {
4374
4374
  isAlone: !0,
4375
4375
  name: "alone_run",
4376
4376
  path: "/alone_run",
4377
- component: () => import("./alone_run-D0vsS5Na.js")
4377
+ component: () => import("./alone_run-gL5Qffdi.js")
4378
4378
  },
4379
4379
  {
4380
4380
  meta: { title: "错误", isAlone: !0 },
4381
4381
  isAlone: !0,
4382
4382
  name: "404",
4383
4383
  path: "/:catchAll(.*)",
4384
- component: () => import("./404-Dge6mEmg.js")
4384
+ component: () => import("./404-uKWmIMt4.js")
4385
4385
  }
4386
4386
  ], ec = [
4387
4387
  {
@@ -4389,7 +4389,7 @@ const Zt = De("cloudSdkProductStore", {
4389
4389
  isAlone: !1,
4390
4390
  name: "none",
4391
4391
  path: "/none",
4392
- component: () => import("./none-CrgAZnxI.js")
4392
+ component: () => import("./none-DP3T-mji.js")
4393
4393
  }
4394
4394
  ], en = De("cloudSdkPermissionStore", {
4395
4395
  state: () => ({
@@ -4474,7 +4474,7 @@ const nc = De("cloudSdkApplicationStore", {
4474
4474
  });
4475
4475
  function rc() {
4476
4476
  return new Promise(async (e) => {
4477
- Pt().clear_cache(), Be().clear_cache(), fr().clear_cache(), Te().clear_cache(), Zt().clear_cache(), window.gbIdbObj.idbSetItem("clear_cache", "handle").then((t) => {
4477
+ Pt().clear_cache(), Be().clear_cache(), fr().clear_cache(), Te().clear_cache(), Zt().clear_cache(), window.gbIdbObj.idbSetItem("cacheClearHandle", "handle").then((t) => {
4478
4478
  e();
4479
4479
  });
4480
4480
  });
@@ -4646,7 +4646,7 @@ function lc(e, t, n, r, a, s) {
4646
4646
  w(f, { type: "cvSvgViewModeDark" })
4647
4647
  ]),
4648
4648
  _: 1
4649
- })) : ue("", !0),
4649
+ })) : fe("", !0),
4650
4650
  a.frameSysTheme == "dark" ? (U(), J(u, {
4651
4651
  key: 1,
4652
4652
  onClick: t[2] || (t[2] = (E) => a.frameSysTheme = "light"),
@@ -4656,7 +4656,7 @@ function lc(e, t, n, r, a, s) {
4656
4656
  w(f, { type: "cvSvgViewModeLight" })
4657
4657
  ]),
4658
4658
  _: 1
4659
- })) : ue("", !0)
4659
+ })) : fe("", !0)
4660
4660
  ]),
4661
4661
  _: 1
4662
4662
  }),
@@ -5093,8 +5093,8 @@ function Oc(e, t, n, r, a, s) {
5093
5093
  key: 0,
5094
5094
  type: u.meta.icon,
5095
5095
  size: "16"
5096
- }, null, 8, ["type"])) : ue("", !0),
5097
- !u.meta.icon && n.collapse ? (U(), Q("span", yc, ne(u.meta.short || u.meta.title), 1)) : ue("", !0)
5096
+ }, null, 8, ["type"])) : fe("", !0),
5097
+ !u.meta.icon && n.collapse ? (U(), Q("span", yc, ne(u.meta.short || u.meta.title), 1)) : fe("", !0)
5098
5098
  ]),
5099
5099
  k("span", null, ne(u.meta.title || u.meta.short), 1)
5100
5100
  ]),
@@ -5121,7 +5121,7 @@ function Oc(e, t, n, r, a, s) {
5121
5121
  key: 0,
5122
5122
  type: u.meta.icon,
5123
5123
  size: "16"
5124
- }, null, 8, ["type"])) : ue("", !0)
5124
+ }, null, 8, ["type"])) : fe("", !0)
5125
5125
  ])),
5126
5126
  u.meta.badge && s.currBadge(u.meta.badge) ? (U(), Q(he, { key: 2 }, [
5127
5127
  s.currBadge(u.meta.badge) > 0 ? (U(), J(c, {
@@ -5131,12 +5131,12 @@ function Oc(e, t, n, r, a, s) {
5131
5131
  max: 999,
5132
5132
  value: s.currBadge(u.meta.badge),
5133
5133
  style: Dn(s.badgeStyle)
5134
- }, null, 8, ["value", "style"])) : ue("", !0)
5135
- ], 64)) : ue("", !0)
5134
+ }, null, 8, ["value", "style"])) : fe("", !0)
5135
+ ], 64)) : fe("", !0)
5136
5136
  ]),
5137
5137
  _: 2
5138
5138
  }, 1032, ["index", "onClick"]))
5139
- ], 64)) : ue("", !0)
5139
+ ], 64)) : fe("", !0)
5140
5140
  ], 64))), 256);
5141
5141
  }
5142
5142
  const Ic = /* @__PURE__ */ Re(vc, [["render", Oc]]), Cc = {
@@ -5483,7 +5483,7 @@ function eu(e, t, n, r, a, s) {
5483
5483
  ]),
5484
5484
  k("div", Qc, [
5485
5485
  k("div", Jc, ne(u.business_name), 1),
5486
- k("div", zc, "【" + ne(u.acc_role_type_str) + "】", 1)
5486
+ k("div", zc, "【" + ne(u.acc_rules_type_str) + "】", 1)
5487
5487
  ]),
5488
5488
  k("div", Zc, [
5489
5489
  w(l, { type: "ElIconArrowRight" })
@@ -5625,7 +5625,7 @@ const tu = /* @__PURE__ */ Re(Bc, [["render", eu]]), nu = {
5625
5625
  },
5626
5626
  chainSelection(e) {
5627
5627
  let t = "";
5628
- e.acc_role_type == "sy-org-admin" ? t = "OrgAdminPwdLogin" : e.acc_role_type == "sy-org-staff" && (t = "OrgStaffPwdLogin"), this.$request.flagPost("ORG_SYS_BASE_CHANGE", {
5628
+ e.acc_rules_type == "sy-org-admin" ? t = "OrgAdminPwdLogin" : e.acc_rules_type == "sy-org-staff" && (t = "OrgStaffPwdLogin"), this.$request.flagPost("ORG_SYS_BASE_CHANGE", {
5629
5629
  handleType: t,
5630
5630
  business_id: e.business_id || 0
5631
5631
  }).then(async (n) => {
@@ -5670,12 +5670,12 @@ function pu(e, t, n, r, a, s) {
5670
5670
  key: 0,
5671
5671
  type: "ElIconFold",
5672
5672
  size: "20"
5673
- })) : ue("", !0),
5673
+ })) : fe("", !0),
5674
5674
  a.frameSidebarOpen == "off" ? (U(), J(o, {
5675
5675
  key: 1,
5676
5676
  type: "ElIconExpand",
5677
5677
  size: "20"
5678
- })) : ue("", !0)
5678
+ })) : fe("", !0)
5679
5679
  ]),
5680
5680
  k("div", {
5681
5681
  class: "cloud-header__opt",
@@ -5721,7 +5721,7 @@ function pu(e, t, n, r, a, s) {
5721
5721
  type: "ElIconChatLineRound",
5722
5722
  size: "20"
5723
5723
  }),
5724
- a.chatUnreadTotal > 0 ? (U(), Q("em", uu, ne(a.chatUnreadTotal > 99 ? "99+" : a.chatUnreadTotal), 1)) : ue("", !0)
5724
+ a.chatUnreadTotal > 0 ? (U(), Q("em", uu, ne(a.chatUnreadTotal > 99 ? "99+" : a.chatUnreadTotal), 1)) : fe("", !0)
5725
5725
  ]),
5726
5726
  k("div", {
5727
5727
  class: "cloud-header__opt chopt-relative",
@@ -5731,7 +5731,7 @@ function pu(e, t, n, r, a, s) {
5731
5731
  type: "ElIconMessage",
5732
5732
  size: "20"
5733
5733
  }),
5734
- a.emailUnreadTotal > 0 ? (U(), Q("em", fu, ne(a.emailUnreadTotal > 99 ? "99+" : a.emailUnreadTotal), 1)) : ue("", !0)
5734
+ a.emailUnreadTotal > 0 ? (U(), Q("em", fu, ne(a.emailUnreadTotal > 99 ? "99+" : a.emailUnreadTotal), 1)) : fe("", !0)
5735
5735
  ]),
5736
5736
  k("div", _u, [
5737
5737
  w(u, {
@@ -5808,7 +5808,7 @@ function pu(e, t, n, r, a, s) {
5808
5808
  onClick: t[4] || (t[4] = (...g) => s.frameFullScreen && s.frameFullScreen(...g)),
5809
5809
  style: { "min-width": "50px" }
5810
5810
  }, [
5811
- a.full_screen ? ue("", !0) : (U(), J(o, {
5811
+ a.full_screen ? fe("", !0) : (U(), J(o, {
5812
5812
  key: 0,
5813
5813
  type: "cvSvgArrowScreenUnfold",
5814
5814
  size: "20"
@@ -5817,7 +5817,7 @@ function pu(e, t, n, r, a, s) {
5817
5817
  key: 1,
5818
5818
  type: "cvSvgArrowScreenFold",
5819
5819
  size: "20"
5820
- })) : ue("", !0)
5820
+ })) : fe("", !0)
5821
5821
  ]),
5822
5822
  k("div", {
5823
5823
  title: "设置",
@@ -5858,7 +5858,7 @@ function pu(e, t, n, r, a, s) {
5858
5858
  onReselectFunc: s.chainReselection,
5859
5859
  onSelectFunc: s.chainSelection,
5860
5860
  style: { background: "#fff", "z-index": "1005" }
5861
- }, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : ue("", !0)
5861
+ }, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : fe("", !0)
5862
5862
  ]);
5863
5863
  }
5864
5864
  const Kf = /* @__PURE__ */ Re(nu, [["render", pu]]), Eu = {
@@ -8032,7 +8032,7 @@ function Ds(e = {}) {
8032
8032
  function Df() {
8033
8033
  return qe || (qe = Ds()), qe;
8034
8034
  }
8035
- const fe = new Proxy(
8035
+ const ue = new Proxy(
8036
8036
  {},
8037
8037
  {
8038
8038
  get(e, t) {
@@ -8294,13 +8294,16 @@ function Ff(e) {
8294
8294
  }
8295
8295
  function Mf(e) {
8296
8296
  e.use(Qs, {
8297
+ cvCodeSms: {
8298
+ apiFunc: ue.flagPost("SDK_SMS_COMMON_SMS_SEND")
8299
+ },
8297
8300
  // 所有和上传相关(上传图片, 上传视频, 富文本中图片上传)
8298
8301
  uploadImg: {
8299
8302
  // fileSize: 5,
8300
8303
  file_name: "file",
8301
8304
  upName: "file",
8302
8305
  upProceedFn: (t, n) => {
8303
- fe.flagUpload("SDK_FILE_COMMON_UPLOAD_IMG", {
8306
+ ue.flagUpload("SDK_FILE_COMMON_UPLOAD_IMG", {
8304
8307
  file: t
8305
8308
  }).then((r) => {
8306
8309
  n(r, t);
@@ -8333,7 +8336,7 @@ async function Xf(e, t, n, r, a = "", s = null) {
8333
8336
  let o = e.config.globalProperties;
8334
8337
  o.$onLaunched = new Promise((l) => {
8335
8338
  o.$isResolve = l;
8336
- }), o.$request = fe, o.$cache = P, Ff(e), Mf(e), kf(e, o), e.mixin(ac()), e.mixin(Rf), await Uf(t, r, a), e.use(os);
8339
+ }), o.$request = ue, o.$cache = P, Ff(e), Mf(e), kf(e, o), e.mixin(ac()), e.mixin(Rf), await Uf(t, r, a), e.use(os);
8337
8340
  let i = Pt().SA_LANGUAGE_GET();
8338
8341
  xl(i, s), window.$t = Ke.t;
8339
8342
  }
@@ -8373,7 +8376,7 @@ async function Qf(e, t, n) {
8373
8376
  me.__POWERED_BY_QIANKUN__ ? ro(e, t, n) : t();
8374
8377
  }
8375
8378
  export {
8376
- fe as H,
8379
+ ue as H,
8377
8380
  tu as S,
8378
8381
  Re as _,
8379
8382
  Be as a,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index-zX3YjWaQ.cjs");require("pinia");const s=require("vue");function K(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var V={exports:{}},J=V.exports,H;function X(){return H||(H=1,function(r,l){var _;(function(p,h){r.exports=h()})(J,function(){function p(e){this.mode=g.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,o=this.data.length;t<o;t++){var i=[],n=this.data.charCodeAt(t);n>65536?(i[0]=240|(n&1835008)>>>18,i[1]=128|(n&258048)>>>12,i[2]=128|(n&4032)>>>6,i[3]=128|n&63):n>2048?(i[0]=224|(n&61440)>>>12,i[1]=128|(n&4032)>>>6,i[2]=128|n&63):n>128?(i[0]=192|(n&1984)>>>6,i[1]=128|n&63):i[0]=n,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}p.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,o=this.parsedData.length;t<o;t++)e.put(this.parsedData[t],8)}};function h(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}h.prototype={addData:function(e){var t=new p(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++){this.modules[o]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[o][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=h.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var o=-1;o<=7;o++)if(!(e+o<=-1||this.moduleCount<=e+o))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(0<=o&&o<=6&&(i==0||i==6)||0<=i&&i<=6&&(o==0||o==6)||2<=o&&o<=4&&2<=i&&i<=4?this.modules[e+o][t+i]=!0:this.modules[e+o][t+i]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,o=0;o<8;o++){this.makeImpl(!0,o);var i=v.getLostPoint(this);(o==0||e>i)&&(e=i,t=o)}return t},createMovieClip:function(e,t,o){var i=e.createEmptyMovieClip(t,o),n=1;this.make();for(var c=0;c<this.modules.length;c++)for(var u=c*n,a=0;a<this.modules[c].length;a++){var d=a*n,m=this.modules[c][a];m&&(i.beginFill(0,100),i.moveTo(d,u),i.lineTo(d+n,u),i.lineTo(d+n,u+n),i.lineTo(d,u+n),i.endFill())}return i},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=v.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var o=0;o<e.length;o++){var i=e[t],n=e[o];if(this.modules[i][n]==null)for(var c=-2;c<=2;c++)for(var u=-2;u<=2;u++)c==-2||c==2||u==-2||u==2||c==0&&u==0?this.modules[i+c][n+u]=!0:this.modules[i+c][n+u]=!1}},setupTypeNumber:function(e){for(var t=v.getBCHTypeNumber(this.typeNumber),o=0;o<18;o++){var i=!e&&(t>>o&1)==1;this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=i}for(var o=0;o<18;o++){var i=!e&&(t>>o&1)==1;this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=i}},setupTypeInfo:function(e,t){for(var o=this.errorCorrectLevel<<3|t,i=v.getBCHTypeInfo(o),n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<6?this.modules[n][8]=c:n<8?this.modules[n+1][8]=c:this.modules[this.moduleCount-15+n][8]=c}for(var n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=c:n<9?this.modules[8][15-n-1+1]=c:this.modules[8][15-n-1]=c}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var o=-1,i=this.moduleCount-1,n=7,c=0,u=this.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(var a=0;a<2;a++)if(this.modules[i][u-a]==null){var d=!1;c<e.length&&(d=(e[c]>>>n&1)==1);var m=v.getMask(t,i,u-a);m&&(d=!d),this.modules[i][u-a]=d,n--,n==-1&&(c++,n=7)}if(i+=o,i<0||this.moduleCount<=i){i-=o,o=-o;break}}}},h.PAD0=236,h.PAD1=17,h.createData=function(e,t,o){for(var i=L.getRSBlocks(e,t),n=new w,c=0;c<o.length;c++){var u=o[c];n.put(u.mode,4),n.put(u.getLength(),v.getLengthInBits(u.mode,e)),u.write(n)}for(var a=0,c=0;c<i.length;c++)a+=i[c].dataCount;if(n.getLengthInBits()>a*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+a*8+")");for(n.getLengthInBits()+4<=a*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=a*8||(n.put(h.PAD0,8),n.getLengthInBits()>=a*8));)n.put(h.PAD1,8);return h.createBytes(n,i)},h.createBytes=function(e,t){for(var o=0,i=0,n=0,c=new Array(t.length),u=new Array(t.length),a=0;a<t.length;a++){var d=t[a].dataCount,m=t[a].totalCount-d;i=Math.max(i,d),n=Math.max(n,m),c[a]=new Array(d);for(var f=0;f<c[a].length;f++)c[a][f]=255&e.buffer[f+o];o+=d;var S=v.getErrorCorrectPolynomial(m),k=new A(c[a],S.getLength()-1),N=k.mod(S);u[a]=new Array(S.getLength()-1);for(var f=0;f<u[a].length;f++){var T=f+N.getLength()-u[a].length;u[a][f]=T>=0?N.get(T):0}}for(var D=0,f=0;f<t.length;f++)D+=t[f].totalCount;for(var I=new Array(D),M=0,f=0;f<i;f++)for(var a=0;a<t.length;a++)f<c[a].length&&(I[M++]=c[a][f]);for(var f=0;f<n;f++)for(var a=0;a<t.length;a++)f<u[a].length&&(I[M++]=u[a][f]);return I};for(var g={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},y={L:1,M:0,Q:3,H:2},b={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},v={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;v.getBCHDigit(t)-v.getBCHDigit(v.G15)>=0;)t^=v.G15<<v.getBCHDigit(t)-v.getBCHDigit(v.G15);return(e<<10|t)^v.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;v.getBCHDigit(t)-v.getBCHDigit(v.G18)>=0;)t^=v.G18<<v.getBCHDigit(t)-v.getBCHDigit(v.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return v.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,o){switch(e){case b.PATTERN000:return(t+o)%2==0;case b.PATTERN001:return t%2==0;case b.PATTERN010:return o%3==0;case b.PATTERN011:return(t+o)%3==0;case b.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2==0;case b.PATTERN101:return t*o%2+t*o%3==0;case b.PATTERN110:return(t*o%2+t*o%3)%2==0;case b.PATTERN111:return(t*o%3+(t+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new A([1],0),o=0;o<e;o++)t=t.multiply(new A([1,C.gexp(o)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case g.MODE_NUMBER:return 10;case g.MODE_ALPHA_NUM:return 9;case g.MODE_8BIT_BYTE:return 8;case g.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case g.MODE_NUMBER:return 12;case g.MODE_ALPHA_NUM:return 11;case g.MODE_8BIT_BYTE:return 16;case g.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case g.MODE_NUMBER:return 14;case g.MODE_ALPHA_NUM:return 13;case g.MODE_8BIT_BYTE:return 16;case g.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),o=0,i=0;i<t;i++)for(var n=0;n<t;n++){for(var c=0,u=e.isDark(i,n),a=-1;a<=1;a++)if(!(i+a<0||t<=i+a))for(var d=-1;d<=1;d++)n+d<0||t<=n+d||a==0&&d==0||u==e.isDark(i+a,n+d)&&c++;c>5&&(o+=3+c-5)}for(var i=0;i<t-1;i++)for(var n=0;n<t-1;n++){var m=0;e.isDark(i,n)&&m++,e.isDark(i+1,n)&&m++,e.isDark(i,n+1)&&m++,e.isDark(i+1,n+1)&&m++,(m==0||m==4)&&(o+=3)}for(var i=0;i<t;i++)for(var n=0;n<t-6;n++)e.isDark(i,n)&&!e.isDark(i,n+1)&&e.isDark(i,n+2)&&e.isDark(i,n+3)&&e.isDark(i,n+4)&&!e.isDark(i,n+5)&&e.isDark(i,n+6)&&(o+=40);for(var n=0;n<t;n++)for(var i=0;i<t-6;i++)e.isDark(i,n)&&!e.isDark(i+1,n)&&e.isDark(i+2,n)&&e.isDark(i+3,n)&&e.isDark(i+4,n)&&!e.isDark(i+5,n)&&e.isDark(i+6,n)&&(o+=40);for(var f=0,n=0;n<t;n++)for(var i=0;i<t;i++)e.isDark(i,n)&&f++;var S=Math.abs(100*f/t/t-50)/5;return o+=S*10,o}},C={glog:function(e){if(e<1)throw new Error("glog("+e+")");return C.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return C.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},E=0;E<8;E++)C.EXP_TABLE[E]=1<<E;for(var E=8;E<256;E++)C.EXP_TABLE[E]=C.EXP_TABLE[E-4]^C.EXP_TABLE[E-5]^C.EXP_TABLE[E-6]^C.EXP_TABLE[E-8];for(var E=0;E<255;E++)C.LOG_TABLE[C.EXP_TABLE[E]]=E;function A(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var o=0;o<e.length&&e[o]==0;)o++;this.num=new Array(e.length-o+t);for(var i=0;i<e.length-o;i++)this.num[i]=e[i+o]}A.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),o=0;o<this.getLength();o++)for(var i=0;i<e.getLength();i++)t[o+i]^=C.gexp(C.glog(this.get(o))+C.glog(e.get(i)));return new A(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=C.glog(this.get(0))-C.glog(e.get(0)),o=new Array(this.getLength()),i=0;i<this.getLength();i++)o[i]=this.get(i);for(var i=0;i<e.getLength();i++)o[i]^=C.gexp(C.glog(e.get(i))+t);return new A(o,0).mod(e)}};function L(e,t){this.totalCount=e,this.dataCount=t}L.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],L.getRSBlocks=function(e,t){var o=L.getRsBlockTable(e,t);if(o==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=o.length/3,n=[],c=0;c<i;c++)for(var u=o[c*3+0],a=o[c*3+1],d=o[c*3+2],m=0;m<u;m++)n.push(new L(a,d));return n},L.getRsBlockTable=function(e,t){switch(t){case y.L:return L.RS_BLOCK_TABLE[(e-1)*4+0];case y.M:return L.RS_BLOCK_TABLE[(e-1)*4+1];case y.Q:return L.RS_BLOCK_TABLE[(e-1)*4+2];case y.H:return L.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function w(){this.buffer=[],this.length=0}w.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var o=0;o<t;o++)this.putBit((e>>>t-o-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var P=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function q(){return typeof CanvasRenderingContext2D<"u"}function O(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var o=t.toString().match(/android ([0-9]\.[0-9])/i);o&&o[1]&&(e=parseFloat(o[1]))}return e}var U=function(){var e=function(t,o){this._el=t,this._htOption=o};return e.prototype.draw=function(t){var o=this._htOption,i=this._el,n=t.getModuleCount();Math.floor(o.width/n),Math.floor(o.height/n),this.clear();function c(f,S){var k=document.createElementNS("http://www.w3.org/2000/svg",f);for(var N in S)S.hasOwnProperty(N)&&k.setAttribute(N,S[N]);return k}var u=c("svg",{viewBox:"0 0 "+String(n)+" "+String(n),width:"100%",height:"100%",fill:o.colorLight});u.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(u),u.appendChild(c("rect",{fill:o.colorLight,width:"100%",height:"100%"})),u.appendChild(c("rect",{fill:o.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<n;a++)for(var d=0;d<n;d++)if(t.isDark(a,d)){var m=c("use",{x:String(d),y:String(a)});m.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),u.appendChild(m)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e}(),Q=document.documentElement.tagName.toLowerCase()==="svg",R=Q?U:q()?function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this&&this._android&&this._android<=2.1){var t=1/window.devicePixelRatio,o=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(c,u,a,d,m,f,S,k,N){if("nodeName"in c&&/img/i.test(c.nodeName))for(var T=arguments.length-1;T>=1;T--)arguments[T]=arguments[T]*t;else typeof k>"u"&&(arguments[1]*=t,arguments[2]*=t,arguments[3]*=t,arguments[4]*=t);o.apply(this,arguments)}}function i(c,u){var a=this;if(a._fFail=u,a._fSuccess=c,a._bSupportDataURI===null){var d=document.createElement("img"),m=function(){a._bSupportDataURI=!1,a._fFail&&a._fFail.call(a)},f=function(){a._bSupportDataURI=!0,a._fSuccess&&a._fSuccess.call(a)};d.onabort=m,d.onerror=m,d.onload=f,d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";return}else a._bSupportDataURI===!0&&a._fSuccess?a._fSuccess.call(a):a._bSupportDataURI===!1&&a._fFail&&a._fFail.call(a)}var n=function(c,u){this._bIsPainted=!1,this._android=O(),this._htOption=u,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=u.width,this._elCanvas.height=u.height,c.appendChild(this._elCanvas),this._el=c,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return n.prototype.draw=function(c){var u=this._elImage,a=this._oContext,d=this._htOption,m=c.getModuleCount(),f=d.width/m,S=d.height/m,k=Math.round(f),N=Math.round(S);u.style.display="none",this.clear();for(var T=0;T<m;T++)for(var D=0;D<m;D++){var I=c.isDark(T,D),M=D*f,x=T*S;a.strokeStyle=I?d.colorDark:d.colorLight,a.lineWidth=1,a.fillStyle=I?d.colorDark:d.colorLight,a.fillRect(M,x,f,S),a.strokeRect(Math.floor(M)+.5,Math.floor(x)+.5,k,N),a.strokeRect(Math.ceil(M)-.5,Math.ceil(x)-.5,k,N)}this._bIsPainted=!0},n.prototype.makeImage=function(){this._bIsPainted&&i.call(this,e)},n.prototype.isPainted=function(){return this._bIsPainted},n.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},n.prototype.round=function(c){return c&&Math.floor(c*1e3)/1e3},n}():function(){var e=function(t,o){this._el=t,this._htOption=o};return e.prototype.draw=function(t){for(var o=this._htOption,i=this._el,n=t.getModuleCount(),c=Math.floor(o.width/n),u=Math.floor(o.height/n),a=['<table style="border:0;border-collapse:collapse;">'],d=0;d<n;d++){a.push("<tr>");for(var m=0;m<n;m++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+c+"px;height:"+u+"px;background-color:"+(t.isDark(d,m)?o.colorDark:o.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),i.innerHTML=a.join("");var f=i.childNodes[0],S=(o.width-f.offsetWidth)/2,k=(o.height-f.offsetHeight)/2;S>0&&k>0&&(f.style.margin=k+"px "+S+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}();function G(e,t){for(var o=1,i=$(e),n=0,c=P.length;n<=c;n++){var u=0;switch(t){case y.L:u=P[n][0];break;case y.M:u=P[n][1];break;case y.Q:u=P[n][2];break;case y.H:u=P[n][3];break}if(i<=u)break;o++}if(o>P.length)throw new Error("Too long data");return o}function $(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}return _=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:y.H},typeof t=="string"&&(t={text:t}),t)for(var o in t)this._htOption[o]=t[o];typeof e=="string"&&(e=document.getElementById(e)),this._htOption.useSVG&&(R=U),this._android=O(),this._el=e,this._oQRCode=null,this._oDrawing=new R(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},_.prototype.makeCode=function(e){this._oQRCode=new h(G(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},_.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},_.prototype.clear=function(){this._oDrawing.clear()},_.CorrectLevel=y,_})}(V)),V.exports}var z=X();const F=K(z),Y={components:{SwitchBusiness:B.SwitchBusiness},data(){return{loadOngoing:!1,loginMode:"access",loginJump:!1,cache_remember:"off",cache_privacy:"off",account_mobile:"",account_password:"",account_password2:"",captcha_code:"",sms_code:"",account_business_id:0,reg_invite:"",regInviteNeed:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",chainShowFlag:!1,chainAccountList:[],chainTempToken:"",qrcodeExpiredShow:!1,qrcodeTimer:null,qrcodeLoad:!1,qrcodeScanVernum:15,qrcodeScanVererr:0,copyright_info:""}},watch:{$route({query:r}){r.type=="reg"&&this.$nextTick(()=>{this.loginMode="reg"})},account_mobile(r){this.$nextTick(()=>{let l=this.$refs.account_mobile.$el.querySelector("input");const p=getComputedStyle(l).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);p&&p[0]==="rgb(232, 240, 254)"&&this.onBlur()})},loginMode(r){r=="reg"&&(this.regInviteNeed=!!this.systemConfig.reg_invite_need)}},computed:{openCasePrivacyUrl(){var r;return((r=this.openCaseInfo)==null?void 0:r.privacy_url)||""},loginLastLogo(){return this.openCaseInfo.platinfo_log||"/logo-nobg.png"},loginLastTitle(){var p,h;let r=(p=this.openProductInfo)==null?void 0:p.info_title,l=(h=this.openCaseInfo)==null?void 0:h.system_type;return r||l},currentLanguage(){return this.languageList[this.languageName]||"Language"}},created(){this.cache_remember=localStorage.getItem("cacheLoginRemember")||"off",this.cache_privacy=localStorage.getItem("cacheLoginPrivacy")||"off",this.account_mobile=localStorage.getItem("cacheLoginMobile")||""},async mounted(){this.loginMode=this.$route.query.type==="reg"?"reg":"access",this.$Electron&&(this.$Electron.sendMessage("webTabDestroyAll"),this.$Electron.sendMessage("childWindowDestroyAll")),B.useSdkSystemStore().$subscribe((r,l)=>{r.events.key=="useSSOLogin"&&l.useSSOLogin==!0&&this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.loginJump=!1,this.account_password="",this.account_password2="",this.captcha_code="",this.reg_invite=""},methods:{handleRemember(r){r=="on"?localStorage.setItem("cacheLoginRemember",r):localStorage.removeItem("cacheLoginRemember")},handleRrivacy(r){r=="on"?(localStorage.setItem("cacheLoginPrivacy",r),this.chackServerUrl().catch(l=>{})):localStorage.removeItem("cacheLoginPrivacy"),this.cache_privacy=r},handleForgot(){this.$message.warning("请联系管理员!")},chackServerUrl(r){return new Promise((l,_)=>{l()})},switchLoginMode(r){this.chackServerUrl(!0).then(()=>{clearInterval(this.qrcodeTimer),r==="qrcode"?(this.loginMode="qrcode",this.scanQrcodeRefresh()):r==="access"?this.loginMode="access":r==="smsLogin"?(this.loginMode="smsLogin",this.refreshCode()):this.loginMode=r})},refreshCode(){this.captcha_code="",!(this.codeLoad>0)&&(setTimeout(r=>{this.codeLoad++},600),this.$request.flagGet("BASE_PASSPORT_CODE_DATA",{account_mobile:this.account_mobile}).then(({data:r})=>{var l;this.codeKey=r.key,this.codeUrl=r.img,(l=this.$refs.captcha_code)==null||l.focus()}).catch(r=>{this.codeUrl="error"}).finally(r=>{this.codeLoad--}))},onBlur(){if(!this.account_mobile){this.codeNeed=!1;return}this.loadOngoing=!0,this.$request.flagGet("BASE_PASSPORT_CODE_NEED",{account_mobile:this.account_mobile}).then(r=>{this.loadOngoing=!1,r.data=="need"?(this.refreshCode(),this.codeNeed=!0):this.codeNeed=!1}).catch(r=>{this.loadOngoing=!1}).finally(r=>{this.loadOngoing=!1})},accessLoginFunc(){if(this.loadOngoing)return this.$message({type:"warning",message:"正在登录中,请勿重新确认~"}),!1;this.chackServerUrl(!0).then(()=>{if(this.account_mobile=cvUtils.strTrimAll(this.account_mobile),this.account_password=cvUtils.strTrimAll(this.account_password),this.account_password2=cvUtils.strTrimAll(this.account_password2),this.captcha_code=cvUtils.strTrimAll(this.captcha_code),this.reg_invite=cvUtils.strTrimAll(this.reg_invite),this.cache_privacy!="on"){this.$message.warning("请同意协议");return}if(!cvUtils.isMobile(this.account_mobile)){this.$message.warning("请输入正确的手机号码"),this.$refs.account_mobile.focus();return}if(!this.account_password){this.$message.warning("请输入密码"),this.$refs.account_password.focus();return}if(this.loginMode=="reg"&&this.account_password!=this.account_password2){this.$message.warning("确认密码输入不一致"),this.$refs.account_password2.focus();return}if(this.codeNeed&&!this.captcha_code){this.$message.warning("请输入验证码"),this.$refs.captcha_code.focus();return}this.passportHandle2(null,"MobilePwdLogin")})},loginBusinessCheck(r){this.account_mobile=r.account_mobile_show,this.account_business_id=r.business_id,r.acc_role_type=="sy-org-admin"?this.passportHandle2(null,"OrgAdminPwdLogin"):r.acc_role_type=="sy-org-staff"&&this.passportHandle2(null,"OrgStaffPwdLogin")},passportHandle2(r,l){let _=this.$message({iconClass:"ElIconLoading",message:"正在登录...",duration:0});this.loadOngoing=!0,localStorage.setItem("cacheLoginMobile",this.account_mobile);try{let p={};this.loginMode=="access"?(p={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey},(l=="OrgAdminPwdLogin"||l=="OrgStaffPwdLogin")&&(p.temp_token=this.chainTempToken)):this.loginMode=="reg"&&(p={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey,reg_invite:this.reg_invite}),this.$request.setOptions({timeout:1e4}).flagPost("BASE_PASSPORT_PASSPORT",{handleType:l,...p}).then(h=>{_.close(),this.loadOngoing=!1,h.status==200?this.adminLoginSucc(h):h.status==403?(this.$message.error("验证码有误!"),this.refreshCode(),this.codeNeed=!0):(this.$message.error(h.msg),this.refreshCode())}).catch(h=>{this.loadOngoing=!1,this.chainShowFlag=!1,_.close(),this.refreshCode(),this.codeNeed=!0})}catch{this.$message.error("登录异常"),_.close(),this.loadOngoing=!1,this.refreshCode()}},async adminLoginSucc(r){let l=r.data||{};if(l.result_type=="chain")this.chainAccountList=l.result_data||[],this.chainShowFlag=!0,this.chainTempToken=l.result_token||"";else{const _=l.result_data||{};await B.useSdkAccountStore().SA_ACCOUNT_SIGNIN(_),this.codeNeed=!1,this.$message({type:"success",message:"登录成功...",duration:800,onClose:()=>{this.goNext()}})}},chainReselection(){this.refreshCode(),this.chainShowFlag=!1},scanCreate(r){new F(this.$refs.qrCodeUrl,{text:r,width:180,height:180,margin:2,colorDark:"#000000",colorLight:"#ffffff",correctLevel:F.CorrectLevel.L})},scanQrcodeRefresh(){if(this.loginMode!="qrcode"||this.qrcodeLoad)return!1;this.qrcodeExpiredShow=!1,this.qrcodeScanVererr=0,this.$nextTick(()=>{document.getElementById("qrcode").innerHTML="",clearInterval(this.qrcodeTimer),this.qrcodeLoad=!0,this.$request.flagGet("BASE_PASSPORT_SCAN_QRCODE",{name:"app",fun:"scanQrcode"}).then(r=>{var l;r.status==200?(this.scanCreate((l=r==null?void 0:r.data)==null?void 0:l.checkLogin),this.qrcodeTimer=window.setInterval(()=>{var _;this.scanCheckFunc((_=r==null?void 0:r.data)==null?void 0:_.scanCode)},3e3)):result.status==404}).catch(r=>{}).finally(r=>{this.qrcodeLoad=!1})})},scanCheckFunc(r){if(this.qrcodeScanVererr++,this.qrcodeScanVererr>this.qrcodeScanVernum)return clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0,!1;this.$request.flagPost("BASE_PASSPORT_SCAN_CHECK",{name:"app",fun:"scanCheck",scanCode:r||""}).then(l=>{var p,h;if(l.status==200){var _=l.msg&&((p=l==null?void 0:l.data)==null?void 0:p.scanCVal)||"";_!=""&&(clearInterval(this.qrcodeTimer),this.scanLoginFunc(r,(h=l==null?void 0:l.data)==null?void 0:h.scanCVal))}else l.status==405&&(clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0)}).catch(()=>{})},scanLoginFunc(r,l){this.$message({type:"success",message:"扫码成功,请稍后...",duration:1500}),this.$request.flagPost("BASE_PASSPORT_SCAN_LOGIN",{name:"app",fun:"scanLogin",scanCode:r,scanCVal:l}).then(_=>{if(_.status==200){let p=this.$message({iconClass:"ElIconLoading",message:"正在安全登录中,请稍后...",duration:0});setTimeout(()=>{p.close(),this.$message({message:_.msg,type:_.status==200?"success":"error"})},2e3)}}).catch(()=>{})},goNext(){this.loginJump=!0;let r=cvUtils.urlQueryToObj(this.$route.query);const l=decodeURIComponent(r.from||"");l?gbIdbObj.idbSetItem("clearCache","login").then(_=>{window.location.replace(l)}):this.$router.push({path:"/"})},setTheme(r){B.useSdkThemesStore().SA_THEMES_SET(r)},setLanguage(r){B.useSdkLanguageStore().SA_LANGUAGE_SET(r)},inputServerUrl(){},inputServerChack(r){return new Promise((l,_)=>{let p=r;/\/api\/$/.test(p)||(p=p+(cvUtils.strRightExists(p,"/")?"api/":"/api/")),/^https*:\/\//i.test(p)||(p=`https://${p}`),B.HttpObj.setOptions({checkNetwork:!1}).flagGet("SYS_SETT_ALL",{}).then(async({data:h})=>{typeof h.server_version>"u"&&typeof h.all_group_mute>"u"?_(`服务器(${cvUtils.urlGetDomain(r)})版本过低`):(p!=this.cacheServerUrl&&(await gbIdbObj.idbSetItem("cacheServerUrl",p),window.location.reload()),l())}).catch(({ret:h,msg:g})=>{if(h===-1001){if(!/^https*:\/\//i.test(r)){this.inputServerChack(`http://${r}`).then(l).catch(_);return}g="服务器地址无效"}_(g)})})}}},W={class:"cloud-login-wrap"},j={key:0,class:"cloud-login-main"},Z={class:"cloud-login-logo no-dark-content can-click"},ee=["src"],te={key:0,class:"cloud-login-box"},oe={class:"login-title"},ie={class:"login-subtitle"},ne={class:"cloud-login-mode-access"},se={class:"login-switch"},re={key:1,class:"cloud-login-box"},ae={class:"login-mode-switch"},le={class:"login-mode-switch-box"},ce={class:"login-title"},he={class:"login-subtitle"},ue={class:"cloud-login-mode-access"},de={key:0,class:"code-load"},ge={key:1,class:"code-error"},fe=["src"],me={class:"cloud-login-other"},pe=["href"],_e={class:"cloud-login-other"},ve={key:0,class:"login-switch"},we={key:1,class:"page-login-oauth"},Ce={key:2,class:"cloud-login-box"},Ee={class:"login-mode-switch"},Se={class:"login-mode-switch-box"},ye={class:"login-title"},Le={class:"login-subtitle"},ke={id:"qrcode",ref:"qrCodeUrl"},Te={key:3,class:"cloud-login-box"},be={class:"login-title"},Ne={class:"login-subtitle"},Ae={class:"cloud-login-mode-access"},De={class:"page-login-oauth"};function Be(r,l,_,p,h,g){const y=s.resolveComponent("el-input"),b=s.resolveComponent("el-button"),v=s.resolveComponent("cv-icons"),C=s.resolveComponent("el-tooltip"),E=s.resolveComponent("ElIconLoading"),A=s.resolveComponent("el-checkbox"),L=s.resolveComponent("SwitchBusiness");return s.openBlock(),s.createElementBlock("div",W,[h.chainShowFlag?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",j,[s.createElementVNode("div",Z,[s.createElementVNode("img",{src:g.loginLastLogo,alt:""},null,8,ee)]),h.loginMode=="reg"?(s.openBlock(),s.createElementBlock("div",te,[s.createElementVNode("div",oe,s.toDisplayString(g.loginLastTitle),1),s.createElementVNode("div",ie,s.toDisplayString(r.$t("输入您的信息以创建帐户。")),1),s.createElementVNode("div",ne,[s.createElementVNode("form",null,[s.createVNode(y,{modelValue:h.account_password2,"onUpdate:modelValue":l[0]||(l[0]=w=>h.account_password2=w),ref:"account_password2","prefix-icon":"ElIconLock",placeholder:r.$t("输入确认密码"),type:"password",size:"large",clearable:""},null,8,["modelValue","placeholder"]),h.regInviteNeed?(s.openBlock(),s.createBlock(y,{key:0,modelValue:h.reg_invite,"onUpdate:modelValue":l[1]||(l[1]=w=>h.reg_invite=w),ref:"reg_invite",class:"login-code",placeholder:r.$t("请输入注册邀请码"),type:"text",size:"large",clearable:""},{prepend:s.withCtx(()=>[s.createTextVNode(" "+s.toDisplayString(r.$t("邀请码"))+" ",1)]),_:1},8,["modelValue","placeholder"])):s.createCommentVNode("",!0)]),s.createVNode(b,null,{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(h.loginJump?"注册成功":"注册"),1)]),_:1}),s.createElementVNode("div",se,[s.createTextVNode(s.toDisplayString(r.$t("已经有帐号?"))+" ",1),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[2]||(l[2]=w=>g.switchLoginMode("access"))},s.toDisplayString(r.$t("登录帐号")),1)])])])):s.createCommentVNode("",!0),h.loginMode=="access"?(s.openBlock(),s.createElementBlock("div",re,[s.createElementVNode("div",ae,[s.createElementVNode("div",le,[s.createVNode(C,{content:"扫码登录",placement:"left"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:"login-mode-switch-icon",onClick:l[3]||(l[3]=w=>g.switchLoginMode("qrcode"))},[s.createVNode(v,{type:"cvSvgBaseQrcode",size:"45"})])]),_:1})])]),s.createElementVNode("div",ce,s.toDisplayString(g.loginLastTitle),1),s.createElementVNode("div",he,s.toDisplayString(r.$t("输入您的凭证以访问您的帐户。")),1),s.createElementVNode("div",ue,[s.createElementVNode("form",null,[s.createVNode(y,{modelValue:h.account_mobile,"onUpdate:modelValue":l[4]||(l[4]=w=>h.account_mobile=w),ref:"account_mobile","prefix-icon":"ElIconUser",placeholder:r.$t("输入您的手机账号"),type:"text",size:"large",maxlength:"11",onBlur:g.onBlur,clearable:""},null,8,["modelValue","placeholder","onBlur"]),s.createVNode(y,{modelValue:h.account_password,"onUpdate:modelValue":l[5]||(l[5]=w=>h.account_password=w),ref:"account_password","prefix-icon":"ElIconLock",placeholder:r.$t("输入您的密码"),type:"password",size:"large",clearable:"",onKeydown:s.withKeys(g.accessLoginFunc,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),h.codeNeed?(s.openBlock(),s.createBlock(y,{key:0,modelValue:h.captcha_code,"onUpdate:modelValue":l[7]||(l[7]=w=>h.captcha_code=w),ref:"captcha_code",class:"login-code",placeholder:r.$t("输入图形验证码"),type:"text",size:"large",clearable:""},{prefix:s.withCtx(()=>[s.createVNode(v,{type:"cvSvgCircleCheck"})]),append:s.withCtx(()=>[s.createElementVNode("div",{class:"login-code-end",onClick:l[6]||(l[6]=(...w)=>g.refreshCode&&g.refreshCode(...w))},[h.codeLoad>0?(s.openBlock(),s.createElementBlock("div",de,[s.createVNode(E)])):h.codeUrl==="error"?(s.openBlock(),s.createElementBlock("span",ge,s.toDisplayString(r.$t("加载失败")),1)):(s.openBlock(),s.createElementBlock("img",{key:2,src:h.codeUrl},null,8,fe))])]),_:1},8,["modelValue","placeholder"])):s.createCommentVNode("",!0)]),s.createVNode(b,{type:"primary",loading:h.loadOngoing||h.loginJump,size:"large",style:{width:"100%","margin-bottom":"15px"},onClick:g.accessLoginFunc},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(h.loginJump?"登录成功":"登录"),1)]),_:1},8,["loading","onClick"]),s.createElementVNode("div",me,[s.createVNode(A,{modelValue:h.cache_privacy,"onUpdate:modelValue":l[8]||(l[8]=w=>h.cache_privacy=w),"true-value":"on","false-value":"off",onChange:g.handleRrivacy},{default:s.withCtx(()=>[l[16]||(l[16]=s.createTextVNode(" 同意 ")),s.createElementVNode("a",{href:g.openCasePrivacyUrl,target:"_blank"},"《隐私条款》",8,pe)]),_:1},8,["modelValue","onChange"]),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[9]||(l[9]=(...w)=>g.handleForgot&&g.handleForgot(...w))},s.toDisplayString(r.$t("忘记密码了?")),1)]),s.createElementVNode("div",_e,[r.systemConfig.open_business_reg=="on"?(s.openBlock(),s.createElementBlock("div",ve,[s.createTextVNode(s.toDisplayString(r.$t("还没有帐号?"))+" ",1),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[10]||(l[10]=w=>g.switchLoginMode("reg"))},s.toDisplayString(r.$t("注册帐号")),1)])):s.createCommentVNode("",!0),r.systemConfig.open_business_oauth2=="on"?(s.openBlock(),s.createElementBlock("div",we,[s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[11]||(l[11]=w=>g.switchLoginMode("oauth2"))},s.toDisplayString(r.$t("OAuth2授权登陆")),1)])):s.createCommentVNode("",!0)])])])):s.createCommentVNode("",!0),h.loginMode=="qrcode"?(s.openBlock(),s.createElementBlock("div",Ce,[s.createElementVNode("div",Ee,[s.createElementVNode("div",Se,[s.createVNode(C,{content:"帐号登录",placement:"left"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:"login-mode-switch-icon",onClick:l[12]||(l[12]=w=>g.switchLoginMode("access"))},[s.createVNode(v,{type:"cvSvgBasePc",size:"45"})])]),_:1})])]),s.createElementVNode("div",ye,s.toDisplayString(r.$t("扫码登录")),1),s.createElementVNode("div",Le,[s.createVNode(v,{type:"cvSvgActionScan",size:"20",style:{"margin-right":"10px"}}),s.createTextVNode(" "+s.toDisplayString(r.$t(`请使用【${g.loginLastTitle}】移动端扫描二维码`)),1)]),s.createElementVNode("div",{class:"login-qrcode",onClick:l[13]||(l[13]=(...w)=>g.scanQrcodeRefresh&&g.scanQrcodeRefresh(...w))},[s.createElementVNode("div",ke,null,512)])])):s.createCommentVNode("",!0),h.loginMode=="oauth2"?(s.openBlock(),s.createElementBlock("div",Te,[s.createElementVNode("div",be,s.toDisplayString(g.loginLastTitle),1),s.createElementVNode("div",Ne,s.toDisplayString(r.$t("输入您的信息以创建帐户。")),1),s.createElementVNode("div",Ae,[s.createElementVNode("div",De,[s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[14]||(l[14]=w=>g.switchLoginMode("access"))},s.toDisplayString(r.$t("帐号登录")),1)])])])):s.createCommentVNode("",!0)])),h.chainShowFlag?(s.openBlock(),s.createBlock(L,{key:1,modelValue:h.chainAccountList,"onUpdate:modelValue":l[15]||(l[15]=w=>h.chainAccountList=w),reselectTitle:"重新登录",onReselectFunc:g.chainReselection,onSelectFunc:g.loginBusinessCheck},null,8,["modelValue","onReselectFunc","onSelectFunc"])):s.createCommentVNode("",!0)])}const Pe=B._export_sfc(Y,[["render",Be]]);exports.default=Pe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index-By9sDe3y.cjs");require("pinia");const s=require("vue");function K(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var V={exports:{}},J=V.exports,H;function X(){return H||(H=1,function(r,l){var _;(function(p,h){r.exports=h()})(J,function(){function p(e){this.mode=g.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,o=this.data.length;t<o;t++){var i=[],n=this.data.charCodeAt(t);n>65536?(i[0]=240|(n&1835008)>>>18,i[1]=128|(n&258048)>>>12,i[2]=128|(n&4032)>>>6,i[3]=128|n&63):n>2048?(i[0]=224|(n&61440)>>>12,i[1]=128|(n&4032)>>>6,i[2]=128|n&63):n>128?(i[0]=192|(n&1984)>>>6,i[1]=128|n&63):i[0]=n,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}p.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,o=this.parsedData.length;t<o;t++)e.put(this.parsedData[t],8)}};function h(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}h.prototype={addData:function(e){var t=new p(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++){this.modules[o]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[o][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=h.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var o=-1;o<=7;o++)if(!(e+o<=-1||this.moduleCount<=e+o))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(0<=o&&o<=6&&(i==0||i==6)||0<=i&&i<=6&&(o==0||o==6)||2<=o&&o<=4&&2<=i&&i<=4?this.modules[e+o][t+i]=!0:this.modules[e+o][t+i]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,o=0;o<8;o++){this.makeImpl(!0,o);var i=v.getLostPoint(this);(o==0||e>i)&&(e=i,t=o)}return t},createMovieClip:function(e,t,o){var i=e.createEmptyMovieClip(t,o),n=1;this.make();for(var c=0;c<this.modules.length;c++)for(var u=c*n,a=0;a<this.modules[c].length;a++){var d=a*n,m=this.modules[c][a];m&&(i.beginFill(0,100),i.moveTo(d,u),i.lineTo(d+n,u),i.lineTo(d+n,u+n),i.lineTo(d,u+n),i.endFill())}return i},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=v.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var o=0;o<e.length;o++){var i=e[t],n=e[o];if(this.modules[i][n]==null)for(var c=-2;c<=2;c++)for(var u=-2;u<=2;u++)c==-2||c==2||u==-2||u==2||c==0&&u==0?this.modules[i+c][n+u]=!0:this.modules[i+c][n+u]=!1}},setupTypeNumber:function(e){for(var t=v.getBCHTypeNumber(this.typeNumber),o=0;o<18;o++){var i=!e&&(t>>o&1)==1;this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=i}for(var o=0;o<18;o++){var i=!e&&(t>>o&1)==1;this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=i}},setupTypeInfo:function(e,t){for(var o=this.errorCorrectLevel<<3|t,i=v.getBCHTypeInfo(o),n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<6?this.modules[n][8]=c:n<8?this.modules[n+1][8]=c:this.modules[this.moduleCount-15+n][8]=c}for(var n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=c:n<9?this.modules[8][15-n-1+1]=c:this.modules[8][15-n-1]=c}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var o=-1,i=this.moduleCount-1,n=7,c=0,u=this.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(var a=0;a<2;a++)if(this.modules[i][u-a]==null){var d=!1;c<e.length&&(d=(e[c]>>>n&1)==1);var m=v.getMask(t,i,u-a);m&&(d=!d),this.modules[i][u-a]=d,n--,n==-1&&(c++,n=7)}if(i+=o,i<0||this.moduleCount<=i){i-=o,o=-o;break}}}},h.PAD0=236,h.PAD1=17,h.createData=function(e,t,o){for(var i=L.getRSBlocks(e,t),n=new w,c=0;c<o.length;c++){var u=o[c];n.put(u.mode,4),n.put(u.getLength(),v.getLengthInBits(u.mode,e)),u.write(n)}for(var a=0,c=0;c<i.length;c++)a+=i[c].dataCount;if(n.getLengthInBits()>a*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+a*8+")");for(n.getLengthInBits()+4<=a*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=a*8||(n.put(h.PAD0,8),n.getLengthInBits()>=a*8));)n.put(h.PAD1,8);return h.createBytes(n,i)},h.createBytes=function(e,t){for(var o=0,i=0,n=0,c=new Array(t.length),u=new Array(t.length),a=0;a<t.length;a++){var d=t[a].dataCount,m=t[a].totalCount-d;i=Math.max(i,d),n=Math.max(n,m),c[a]=new Array(d);for(var f=0;f<c[a].length;f++)c[a][f]=255&e.buffer[f+o];o+=d;var S=v.getErrorCorrectPolynomial(m),k=new A(c[a],S.getLength()-1),N=k.mod(S);u[a]=new Array(S.getLength()-1);for(var f=0;f<u[a].length;f++){var T=f+N.getLength()-u[a].length;u[a][f]=T>=0?N.get(T):0}}for(var D=0,f=0;f<t.length;f++)D+=t[f].totalCount;for(var I=new Array(D),M=0,f=0;f<i;f++)for(var a=0;a<t.length;a++)f<c[a].length&&(I[M++]=c[a][f]);for(var f=0;f<n;f++)for(var a=0;a<t.length;a++)f<u[a].length&&(I[M++]=u[a][f]);return I};for(var g={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},y={L:1,M:0,Q:3,H:2},b={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},v={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;v.getBCHDigit(t)-v.getBCHDigit(v.G15)>=0;)t^=v.G15<<v.getBCHDigit(t)-v.getBCHDigit(v.G15);return(e<<10|t)^v.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;v.getBCHDigit(t)-v.getBCHDigit(v.G18)>=0;)t^=v.G18<<v.getBCHDigit(t)-v.getBCHDigit(v.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return v.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,o){switch(e){case b.PATTERN000:return(t+o)%2==0;case b.PATTERN001:return t%2==0;case b.PATTERN010:return o%3==0;case b.PATTERN011:return(t+o)%3==0;case b.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2==0;case b.PATTERN101:return t*o%2+t*o%3==0;case b.PATTERN110:return(t*o%2+t*o%3)%2==0;case b.PATTERN111:return(t*o%3+(t+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new A([1],0),o=0;o<e;o++)t=t.multiply(new A([1,C.gexp(o)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case g.MODE_NUMBER:return 10;case g.MODE_ALPHA_NUM:return 9;case g.MODE_8BIT_BYTE:return 8;case g.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case g.MODE_NUMBER:return 12;case g.MODE_ALPHA_NUM:return 11;case g.MODE_8BIT_BYTE:return 16;case g.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case g.MODE_NUMBER:return 14;case g.MODE_ALPHA_NUM:return 13;case g.MODE_8BIT_BYTE:return 16;case g.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),o=0,i=0;i<t;i++)for(var n=0;n<t;n++){for(var c=0,u=e.isDark(i,n),a=-1;a<=1;a++)if(!(i+a<0||t<=i+a))for(var d=-1;d<=1;d++)n+d<0||t<=n+d||a==0&&d==0||u==e.isDark(i+a,n+d)&&c++;c>5&&(o+=3+c-5)}for(var i=0;i<t-1;i++)for(var n=0;n<t-1;n++){var m=0;e.isDark(i,n)&&m++,e.isDark(i+1,n)&&m++,e.isDark(i,n+1)&&m++,e.isDark(i+1,n+1)&&m++,(m==0||m==4)&&(o+=3)}for(var i=0;i<t;i++)for(var n=0;n<t-6;n++)e.isDark(i,n)&&!e.isDark(i,n+1)&&e.isDark(i,n+2)&&e.isDark(i,n+3)&&e.isDark(i,n+4)&&!e.isDark(i,n+5)&&e.isDark(i,n+6)&&(o+=40);for(var n=0;n<t;n++)for(var i=0;i<t-6;i++)e.isDark(i,n)&&!e.isDark(i+1,n)&&e.isDark(i+2,n)&&e.isDark(i+3,n)&&e.isDark(i+4,n)&&!e.isDark(i+5,n)&&e.isDark(i+6,n)&&(o+=40);for(var f=0,n=0;n<t;n++)for(var i=0;i<t;i++)e.isDark(i,n)&&f++;var S=Math.abs(100*f/t/t-50)/5;return o+=S*10,o}},C={glog:function(e){if(e<1)throw new Error("glog("+e+")");return C.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return C.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},E=0;E<8;E++)C.EXP_TABLE[E]=1<<E;for(var E=8;E<256;E++)C.EXP_TABLE[E]=C.EXP_TABLE[E-4]^C.EXP_TABLE[E-5]^C.EXP_TABLE[E-6]^C.EXP_TABLE[E-8];for(var E=0;E<255;E++)C.LOG_TABLE[C.EXP_TABLE[E]]=E;function A(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var o=0;o<e.length&&e[o]==0;)o++;this.num=new Array(e.length-o+t);for(var i=0;i<e.length-o;i++)this.num[i]=e[i+o]}A.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),o=0;o<this.getLength();o++)for(var i=0;i<e.getLength();i++)t[o+i]^=C.gexp(C.glog(this.get(o))+C.glog(e.get(i)));return new A(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=C.glog(this.get(0))-C.glog(e.get(0)),o=new Array(this.getLength()),i=0;i<this.getLength();i++)o[i]=this.get(i);for(var i=0;i<e.getLength();i++)o[i]^=C.gexp(C.glog(e.get(i))+t);return new A(o,0).mod(e)}};function L(e,t){this.totalCount=e,this.dataCount=t}L.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],L.getRSBlocks=function(e,t){var o=L.getRsBlockTable(e,t);if(o==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=o.length/3,n=[],c=0;c<i;c++)for(var u=o[c*3+0],a=o[c*3+1],d=o[c*3+2],m=0;m<u;m++)n.push(new L(a,d));return n},L.getRsBlockTable=function(e,t){switch(t){case y.L:return L.RS_BLOCK_TABLE[(e-1)*4+0];case y.M:return L.RS_BLOCK_TABLE[(e-1)*4+1];case y.Q:return L.RS_BLOCK_TABLE[(e-1)*4+2];case y.H:return L.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function w(){this.buffer=[],this.length=0}w.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var o=0;o<t;o++)this.putBit((e>>>t-o-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var P=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function q(){return typeof CanvasRenderingContext2D<"u"}function O(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var o=t.toString().match(/android ([0-9]\.[0-9])/i);o&&o[1]&&(e=parseFloat(o[1]))}return e}var U=function(){var e=function(t,o){this._el=t,this._htOption=o};return e.prototype.draw=function(t){var o=this._htOption,i=this._el,n=t.getModuleCount();Math.floor(o.width/n),Math.floor(o.height/n),this.clear();function c(f,S){var k=document.createElementNS("http://www.w3.org/2000/svg",f);for(var N in S)S.hasOwnProperty(N)&&k.setAttribute(N,S[N]);return k}var u=c("svg",{viewBox:"0 0 "+String(n)+" "+String(n),width:"100%",height:"100%",fill:o.colorLight});u.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(u),u.appendChild(c("rect",{fill:o.colorLight,width:"100%",height:"100%"})),u.appendChild(c("rect",{fill:o.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<n;a++)for(var d=0;d<n;d++)if(t.isDark(a,d)){var m=c("use",{x:String(d),y:String(a)});m.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),u.appendChild(m)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e}(),Q=document.documentElement.tagName.toLowerCase()==="svg",R=Q?U:q()?function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this&&this._android&&this._android<=2.1){var t=1/window.devicePixelRatio,o=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(c,u,a,d,m,f,S,k,N){if("nodeName"in c&&/img/i.test(c.nodeName))for(var T=arguments.length-1;T>=1;T--)arguments[T]=arguments[T]*t;else typeof k>"u"&&(arguments[1]*=t,arguments[2]*=t,arguments[3]*=t,arguments[4]*=t);o.apply(this,arguments)}}function i(c,u){var a=this;if(a._fFail=u,a._fSuccess=c,a._bSupportDataURI===null){var d=document.createElement("img"),m=function(){a._bSupportDataURI=!1,a._fFail&&a._fFail.call(a)},f=function(){a._bSupportDataURI=!0,a._fSuccess&&a._fSuccess.call(a)};d.onabort=m,d.onerror=m,d.onload=f,d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";return}else a._bSupportDataURI===!0&&a._fSuccess?a._fSuccess.call(a):a._bSupportDataURI===!1&&a._fFail&&a._fFail.call(a)}var n=function(c,u){this._bIsPainted=!1,this._android=O(),this._htOption=u,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=u.width,this._elCanvas.height=u.height,c.appendChild(this._elCanvas),this._el=c,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return n.prototype.draw=function(c){var u=this._elImage,a=this._oContext,d=this._htOption,m=c.getModuleCount(),f=d.width/m,S=d.height/m,k=Math.round(f),N=Math.round(S);u.style.display="none",this.clear();for(var T=0;T<m;T++)for(var D=0;D<m;D++){var I=c.isDark(T,D),M=D*f,x=T*S;a.strokeStyle=I?d.colorDark:d.colorLight,a.lineWidth=1,a.fillStyle=I?d.colorDark:d.colorLight,a.fillRect(M,x,f,S),a.strokeRect(Math.floor(M)+.5,Math.floor(x)+.5,k,N),a.strokeRect(Math.ceil(M)-.5,Math.ceil(x)-.5,k,N)}this._bIsPainted=!0},n.prototype.makeImage=function(){this._bIsPainted&&i.call(this,e)},n.prototype.isPainted=function(){return this._bIsPainted},n.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},n.prototype.round=function(c){return c&&Math.floor(c*1e3)/1e3},n}():function(){var e=function(t,o){this._el=t,this._htOption=o};return e.prototype.draw=function(t){for(var o=this._htOption,i=this._el,n=t.getModuleCount(),c=Math.floor(o.width/n),u=Math.floor(o.height/n),a=['<table style="border:0;border-collapse:collapse;">'],d=0;d<n;d++){a.push("<tr>");for(var m=0;m<n;m++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+c+"px;height:"+u+"px;background-color:"+(t.isDark(d,m)?o.colorDark:o.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),i.innerHTML=a.join("");var f=i.childNodes[0],S=(o.width-f.offsetWidth)/2,k=(o.height-f.offsetHeight)/2;S>0&&k>0&&(f.style.margin=k+"px "+S+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}();function G(e,t){for(var o=1,i=$(e),n=0,c=P.length;n<=c;n++){var u=0;switch(t){case y.L:u=P[n][0];break;case y.M:u=P[n][1];break;case y.Q:u=P[n][2];break;case y.H:u=P[n][3];break}if(i<=u)break;o++}if(o>P.length)throw new Error("Too long data");return o}function $(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}return _=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:y.H},typeof t=="string"&&(t={text:t}),t)for(var o in t)this._htOption[o]=t[o];typeof e=="string"&&(e=document.getElementById(e)),this._htOption.useSVG&&(R=U),this._android=O(),this._el=e,this._oQRCode=null,this._oDrawing=new R(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},_.prototype.makeCode=function(e){this._oQRCode=new h(G(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},_.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},_.prototype.clear=function(){this._oDrawing.clear()},_.CorrectLevel=y,_})}(V)),V.exports}var z=X();const F=K(z),Y={components:{SwitchBusiness:B.SwitchBusiness},data(){return{loadOngoing:!1,loginMode:"access",loginJump:!1,cache_remember:"off",cache_privacy:"off",account_mobile:"",account_password:"",account_password2:"",captcha_code:"",sms_code:"",account_business_id:0,reg_invite:"",regInviteNeed:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",chainShowFlag:!1,chainAccountList:[],chainTempToken:"",qrcodeExpiredShow:!1,qrcodeTimer:null,qrcodeLoad:!1,qrcodeScanVernum:15,qrcodeScanVererr:0,copyright_info:""}},watch:{$route({query:r}){r.type=="reg"&&this.$nextTick(()=>{this.loginMode="reg"})},account_mobile(r){this.$nextTick(()=>{let l=this.$refs.account_mobile.$el.querySelector("input");const p=getComputedStyle(l).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);p&&p[0]==="rgb(232, 240, 254)"&&this.onBlur()})},loginMode(r){r=="reg"&&(this.regInviteNeed=!!this.systemConfig.reg_invite_need)}},computed:{openCasePrivacyUrl(){var r;return((r=this.openCaseInfo)==null?void 0:r.privacy_url)||""},loginLastLogo(){return this.openCaseInfo.platinfo_log||"/logo-nobg.png"},loginLastTitle(){var p,h;let r=(p=this.openProductInfo)==null?void 0:p.info_title,l=(h=this.openCaseInfo)==null?void 0:h.system_type;return r||l},currentLanguage(){return this.languageList[this.languageName]||"Language"}},created(){this.cache_remember=localStorage.getItem("cacheLoginRemember")||"off",this.cache_privacy=localStorage.getItem("cacheLoginPrivacy")||"off",this.account_mobile=localStorage.getItem("cacheLoginMobile")||""},async mounted(){this.loginMode=this.$route.query.type==="reg"?"reg":"access",this.$Electron&&(this.$Electron.sendMessage("webTabDestroyAll"),this.$Electron.sendMessage("childWindowDestroyAll")),B.useSdkSystemStore().$subscribe((r,l)=>{r.events.key=="useSSOLogin"&&l.useSSOLogin==!0&&this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.loginJump=!1,this.account_password="",this.account_password2="",this.captcha_code="",this.reg_invite=""},methods:{handleRemember(r){r=="on"?localStorage.setItem("cacheLoginRemember",r):localStorage.removeItem("cacheLoginRemember")},handleRrivacy(r){r=="on"?(localStorage.setItem("cacheLoginPrivacy",r),this.chackServerUrl().catch(l=>{})):localStorage.removeItem("cacheLoginPrivacy"),this.cache_privacy=r},handleForgot(){this.$message.warning("请联系管理员!")},chackServerUrl(r){return new Promise((l,_)=>{l()})},switchLoginMode(r){this.chackServerUrl(!0).then(()=>{clearInterval(this.qrcodeTimer),r==="qrcode"?(this.loginMode="qrcode",this.scanQrcodeRefresh()):r==="access"?this.loginMode="access":r==="smsLogin"?(this.loginMode="smsLogin",this.refreshCode()):this.loginMode=r})},refreshCode(){this.captcha_code="",!(this.codeLoad>0)&&(setTimeout(r=>{this.codeLoad++},600),this.$request.flagGet("BASE_PASSPORT_CODE_DATA",{account_mobile:this.account_mobile}).then(({data:r})=>{var l;this.codeKey=r.key,this.codeUrl=r.img,(l=this.$refs.captcha_code)==null||l.focus()}).catch(r=>{this.codeUrl="error"}).finally(r=>{this.codeLoad--}))},onBlur(){if(!this.account_mobile){this.codeNeed=!1;return}this.loadOngoing=!0,this.$request.flagGet("BASE_PASSPORT_CODE_NEED",{account_mobile:this.account_mobile}).then(r=>{this.loadOngoing=!1,r.data=="need"?(this.refreshCode(),this.codeNeed=!0):this.codeNeed=!1}).catch(r=>{this.loadOngoing=!1}).finally(r=>{this.loadOngoing=!1})},accessLoginFunc(){if(this.loadOngoing)return this.$message({type:"warning",message:"正在登录中,请勿重新确认~"}),!1;this.chackServerUrl(!0).then(()=>{if(this.account_mobile=cvUtils.strTrimAll(this.account_mobile),this.account_password=cvUtils.strTrimAll(this.account_password),this.account_password2=cvUtils.strTrimAll(this.account_password2),this.captcha_code=cvUtils.strTrimAll(this.captcha_code),this.reg_invite=cvUtils.strTrimAll(this.reg_invite),this.cache_privacy!="on"){this.$message.warning("请同意协议");return}if(!cvUtils.isMobile(this.account_mobile)){this.$message.warning("请输入正确的手机号码"),this.$refs.account_mobile.focus();return}if(!this.account_password){this.$message.warning("请输入密码"),this.$refs.account_password.focus();return}if(this.loginMode=="reg"&&this.account_password!=this.account_password2){this.$message.warning("确认密码输入不一致"),this.$refs.account_password2.focus();return}if(this.codeNeed&&!this.captcha_code){this.$message.warning("请输入验证码"),this.$refs.captcha_code.focus();return}this.passportHandle2(null,"MobilePwdLogin")})},loginBusinessCheck(r){this.account_mobile=r.account_mobile_show,this.account_business_id=r.business_id,r.acc_rules_type=="sy-org-admin"?this.passportHandle2(null,"OrgAdminPwdLogin"):r.acc_rules_type=="sy-org-staff"&&this.passportHandle2(null,"OrgStaffPwdLogin")},passportHandle2(r,l){let _=this.$message({iconClass:"ElIconLoading",message:"正在登录...",duration:0});this.loadOngoing=!0,localStorage.setItem("cacheLoginMobile",this.account_mobile);try{let p={};this.loginMode=="access"?(p={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey},(l=="OrgAdminPwdLogin"||l=="OrgStaffPwdLogin")&&(p.temp_token=this.chainTempToken)):this.loginMode=="reg"&&(p={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey,reg_invite:this.reg_invite}),this.$request.setOptions({timeout:1e4}).flagPost("BASE_PASSPORT_PASSPORT",{handleType:l,...p}).then(h=>{_.close(),this.loadOngoing=!1,h.status==200?this.adminLoginSucc(h):h.status==403?(this.$message.error("验证码有误!"),this.refreshCode(),this.codeNeed=!0):(this.$message.error(h.msg),this.refreshCode())}).catch(h=>{this.loadOngoing=!1,this.chainShowFlag=!1,_.close(),this.refreshCode(),this.codeNeed=!0})}catch{this.$message.error("登录异常"),_.close(),this.loadOngoing=!1,this.refreshCode()}},async adminLoginSucc(r){let l=r.data||{};if(l.result_type=="chain")this.chainAccountList=l.result_data||[],this.chainShowFlag=!0,this.chainTempToken=l.result_token||"";else{const _=l.result_data||{};await B.useSdkAccountStore().SA_ACCOUNT_SIGNIN(_),this.codeNeed=!1,this.$message({type:"success",message:"登录成功...",duration:800,onClose:()=>{this.goNext()}})}},chainReselection(){this.refreshCode(),this.chainShowFlag=!1},scanCreate(r){new F(this.$refs.qrCodeUrl,{text:r,width:180,height:180,margin:2,colorDark:"#000000",colorLight:"#ffffff",correctLevel:F.CorrectLevel.L})},scanQrcodeRefresh(){if(this.loginMode!="qrcode"||this.qrcodeLoad)return!1;this.qrcodeExpiredShow=!1,this.qrcodeScanVererr=0,this.$nextTick(()=>{document.getElementById("qrcode").innerHTML="",clearInterval(this.qrcodeTimer),this.qrcodeLoad=!0,this.$request.flagGet("BASE_PASSPORT_SCAN_QRCODE",{name:"app",fun:"scanQrcode"}).then(r=>{var l;r.status==200?(this.scanCreate((l=r==null?void 0:r.data)==null?void 0:l.checkLogin),this.qrcodeTimer=window.setInterval(()=>{var _;this.scanCheckFunc((_=r==null?void 0:r.data)==null?void 0:_.scanCode)},3e3)):result.status==404}).catch(r=>{}).finally(r=>{this.qrcodeLoad=!1})})},scanCheckFunc(r){if(this.qrcodeScanVererr++,this.qrcodeScanVererr>this.qrcodeScanVernum)return clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0,!1;this.$request.flagPost("BASE_PASSPORT_SCAN_CHECK",{name:"app",fun:"scanCheck",scanCode:r||""}).then(l=>{var p,h;if(l.status==200){var _=l.msg&&((p=l==null?void 0:l.data)==null?void 0:p.scanCVal)||"";_!=""&&(clearInterval(this.qrcodeTimer),this.scanLoginFunc(r,(h=l==null?void 0:l.data)==null?void 0:h.scanCVal))}else l.status==405&&(clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0)}).catch(()=>{})},scanLoginFunc(r,l){this.$message({type:"success",message:"扫码成功,请稍后...",duration:1500}),this.$request.flagPost("BASE_PASSPORT_SCAN_LOGIN",{name:"app",fun:"scanLogin",scanCode:r,scanCVal:l}).then(_=>{if(_.status==200){let p=this.$message({iconClass:"ElIconLoading",message:"正在安全登录中,请稍后...",duration:0});setTimeout(()=>{p.close(),this.$message({message:_.msg,type:_.status==200?"success":"error"})},2e3)}}).catch(()=>{})},goNext(){this.loginJump=!0;let r=cvUtils.urlQueryToObj(this.$route.query);const l=decodeURIComponent(r.from||"");l?gbIdbObj.idbSetItem("clearCache","login").then(_=>{window.location.replace(l)}):this.$router.push({path:"/"})},setTheme(r){B.useSdkThemesStore().SA_THEMES_SET(r)},setLanguage(r){B.useSdkLanguageStore().SA_LANGUAGE_SET(r)},inputServerUrl(){},inputServerChack(r){return new Promise((l,_)=>{let p=r;/\/api\/$/.test(p)||(p=p+(cvUtils.strRightExists(p,"/")?"api/":"/api/")),/^https*:\/\//i.test(p)||(p=`https://${p}`),B.HttpObj.setOptions({checkNetwork:!1}).flagGet("SYS_SETT_ALL",{}).then(async({data:h})=>{typeof h.server_version>"u"&&typeof h.all_group_mute>"u"?_(`服务器(${cvUtils.urlGetDomain(r)})版本过低`):(p!=this.cacheServerUrl&&(await gbIdbObj.idbSetItem("cacheServerUrl",p),window.location.reload()),l())}).catch(({ret:h,msg:g})=>{if(h===-1001){if(!/^https*:\/\//i.test(r)){this.inputServerChack(`http://${r}`).then(l).catch(_);return}g="服务器地址无效"}_(g)})})}}},W={class:"cloud-login-wrap"},j={key:0,class:"cloud-login-main"},Z={class:"cloud-login-logo no-dark-content can-click"},ee=["src"],te={key:0,class:"cloud-login-box"},oe={class:"login-title"},ie={class:"login-subtitle"},ne={class:"cloud-login-mode-access"},se={class:"login-switch"},re={key:1,class:"cloud-login-box"},ae={class:"login-mode-switch"},le={class:"login-mode-switch-box"},ce={class:"login-title"},he={class:"login-subtitle"},ue={class:"cloud-login-mode-access"},de={key:0,class:"code-load"},ge={key:1,class:"code-error"},fe=["src"],me={class:"cloud-login-other"},pe=["href"],_e={class:"cloud-login-other"},ve={key:0,class:"login-switch"},we={key:1,class:"page-login-oauth"},Ce={key:2,class:"cloud-login-box"},Ee={class:"login-mode-switch"},Se={class:"login-mode-switch-box"},ye={class:"login-title"},Le={class:"login-subtitle"},ke={id:"qrcode",ref:"qrCodeUrl"},Te={key:3,class:"cloud-login-box"},be={class:"login-title"},Ne={class:"login-subtitle"},Ae={class:"cloud-login-mode-access"},De={class:"page-login-oauth"};function Be(r,l,_,p,h,g){const y=s.resolveComponent("el-input"),b=s.resolveComponent("el-button"),v=s.resolveComponent("cv-icons"),C=s.resolveComponent("el-tooltip"),E=s.resolveComponent("ElIconLoading"),A=s.resolveComponent("el-checkbox"),L=s.resolveComponent("SwitchBusiness");return s.openBlock(),s.createElementBlock("div",W,[h.chainShowFlag?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",j,[s.createElementVNode("div",Z,[s.createElementVNode("img",{src:g.loginLastLogo,alt:""},null,8,ee)]),h.loginMode=="reg"?(s.openBlock(),s.createElementBlock("div",te,[s.createElementVNode("div",oe,s.toDisplayString(g.loginLastTitle),1),s.createElementVNode("div",ie,s.toDisplayString(r.$t("输入您的信息以创建帐户。")),1),s.createElementVNode("div",ne,[s.createElementVNode("form",null,[s.createVNode(y,{modelValue:h.account_password2,"onUpdate:modelValue":l[0]||(l[0]=w=>h.account_password2=w),ref:"account_password2","prefix-icon":"ElIconLock",placeholder:r.$t("输入确认密码"),type:"password",size:"large",clearable:""},null,8,["modelValue","placeholder"]),h.regInviteNeed?(s.openBlock(),s.createBlock(y,{key:0,modelValue:h.reg_invite,"onUpdate:modelValue":l[1]||(l[1]=w=>h.reg_invite=w),ref:"reg_invite",class:"login-code",placeholder:r.$t("请输入注册邀请码"),type:"text",size:"large",clearable:""},{prepend:s.withCtx(()=>[s.createTextVNode(" "+s.toDisplayString(r.$t("邀请码"))+" ",1)]),_:1},8,["modelValue","placeholder"])):s.createCommentVNode("",!0)]),s.createVNode(b,null,{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(h.loginJump?"注册成功":"注册"),1)]),_:1}),s.createElementVNode("div",se,[s.createTextVNode(s.toDisplayString(r.$t("已经有帐号?"))+" ",1),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[2]||(l[2]=w=>g.switchLoginMode("access"))},s.toDisplayString(r.$t("登录帐号")),1)])])])):s.createCommentVNode("",!0),h.loginMode=="access"?(s.openBlock(),s.createElementBlock("div",re,[s.createElementVNode("div",ae,[s.createElementVNode("div",le,[s.createVNode(C,{content:"扫码登录",placement:"left"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:"login-mode-switch-icon",onClick:l[3]||(l[3]=w=>g.switchLoginMode("qrcode"))},[s.createVNode(v,{type:"cvSvgBaseQrcode",size:"45"})])]),_:1})])]),s.createElementVNode("div",ce,s.toDisplayString(g.loginLastTitle),1),s.createElementVNode("div",he,s.toDisplayString(r.$t("输入您的凭证以访问您的帐户。")),1),s.createElementVNode("div",ue,[s.createElementVNode("form",null,[s.createVNode(y,{modelValue:h.account_mobile,"onUpdate:modelValue":l[4]||(l[4]=w=>h.account_mobile=w),ref:"account_mobile","prefix-icon":"ElIconUser",placeholder:r.$t("输入您的手机账号"),type:"text",size:"large",maxlength:"11",onBlur:g.onBlur,clearable:""},null,8,["modelValue","placeholder","onBlur"]),s.createVNode(y,{modelValue:h.account_password,"onUpdate:modelValue":l[5]||(l[5]=w=>h.account_password=w),ref:"account_password","prefix-icon":"ElIconLock",placeholder:r.$t("输入您的密码"),type:"password",size:"large",clearable:"",onKeydown:s.withKeys(g.accessLoginFunc,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),h.codeNeed?(s.openBlock(),s.createBlock(y,{key:0,modelValue:h.captcha_code,"onUpdate:modelValue":l[7]||(l[7]=w=>h.captcha_code=w),ref:"captcha_code",class:"login-code",placeholder:r.$t("输入图形验证码"),type:"text",size:"large",clearable:""},{prefix:s.withCtx(()=>[s.createVNode(v,{type:"cvSvgCircleCheck"})]),append:s.withCtx(()=>[s.createElementVNode("div",{class:"login-code-end",onClick:l[6]||(l[6]=(...w)=>g.refreshCode&&g.refreshCode(...w))},[h.codeLoad>0?(s.openBlock(),s.createElementBlock("div",de,[s.createVNode(E)])):h.codeUrl==="error"?(s.openBlock(),s.createElementBlock("span",ge,s.toDisplayString(r.$t("加载失败")),1)):(s.openBlock(),s.createElementBlock("img",{key:2,src:h.codeUrl},null,8,fe))])]),_:1},8,["modelValue","placeholder"])):s.createCommentVNode("",!0)]),s.createVNode(b,{type:"primary",loading:h.loadOngoing||h.loginJump,size:"large",style:{width:"100%","margin-bottom":"15px"},onClick:g.accessLoginFunc},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(h.loginJump?"登录成功":"登录"),1)]),_:1},8,["loading","onClick"]),s.createElementVNode("div",me,[s.createVNode(A,{modelValue:h.cache_privacy,"onUpdate:modelValue":l[8]||(l[8]=w=>h.cache_privacy=w),"true-value":"on","false-value":"off",onChange:g.handleRrivacy},{default:s.withCtx(()=>[l[16]||(l[16]=s.createTextVNode(" 同意 ")),s.createElementVNode("a",{href:g.openCasePrivacyUrl,target:"_blank"},"《隐私条款》",8,pe)]),_:1},8,["modelValue","onChange"]),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[9]||(l[9]=(...w)=>g.handleForgot&&g.handleForgot(...w))},s.toDisplayString(r.$t("忘记密码了?")),1)]),s.createElementVNode("div",_e,[r.systemConfig.open_business_reg=="on"?(s.openBlock(),s.createElementBlock("div",ve,[s.createTextVNode(s.toDisplayString(r.$t("还没有帐号?"))+" ",1),s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[10]||(l[10]=w=>g.switchLoginMode("reg"))},s.toDisplayString(r.$t("注册帐号")),1)])):s.createCommentVNode("",!0),r.systemConfig.open_business_oauth2=="on"?(s.openBlock(),s.createElementBlock("div",we,[s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[11]||(l[11]=w=>g.switchLoginMode("oauth2"))},s.toDisplayString(r.$t("OAuth2授权登陆")),1)])):s.createCommentVNode("",!0)])])])):s.createCommentVNode("",!0),h.loginMode=="qrcode"?(s.openBlock(),s.createElementBlock("div",Ce,[s.createElementVNode("div",Ee,[s.createElementVNode("div",Se,[s.createVNode(C,{content:"帐号登录",placement:"left"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:"login-mode-switch-icon",onClick:l[12]||(l[12]=w=>g.switchLoginMode("access"))},[s.createVNode(v,{type:"cvSvgBasePc",size:"45"})])]),_:1})])]),s.createElementVNode("div",ye,s.toDisplayString(r.$t("扫码登录")),1),s.createElementVNode("div",Le,[s.createVNode(v,{type:"cvSvgActionScan",size:"20",style:{"margin-right":"10px"}}),s.createTextVNode(" "+s.toDisplayString(r.$t(`请使用【${g.loginLastTitle}】移动端扫描二维码`)),1)]),s.createElementVNode("div",{class:"login-qrcode",onClick:l[13]||(l[13]=(...w)=>g.scanQrcodeRefresh&&g.scanQrcodeRefresh(...w))},[s.createElementVNode("div",ke,null,512)])])):s.createCommentVNode("",!0),h.loginMode=="oauth2"?(s.openBlock(),s.createElementBlock("div",Te,[s.createElementVNode("div",be,s.toDisplayString(g.loginLastTitle),1),s.createElementVNode("div",Ne,s.toDisplayString(r.$t("输入您的信息以创建帐户。")),1),s.createElementVNode("div",Ae,[s.createElementVNode("div",De,[s.createElementVNode("a",{href:"javascript:void(0)",onClick:l[14]||(l[14]=w=>g.switchLoginMode("access"))},s.toDisplayString(r.$t("帐号登录")),1)])])])):s.createCommentVNode("",!0)])),h.chainShowFlag?(s.openBlock(),s.createBlock(L,{key:1,modelValue:h.chainAccountList,"onUpdate:modelValue":l[15]||(l[15]=w=>h.chainAccountList=w),reselectTitle:"重新登录",onReselectFunc:g.chainReselection,onSelectFunc:g.loginBusinessCheck},null,8,["modelValue","onReselectFunc","onSelectFunc"])):s.createCommentVNode("",!0)])}const Pe=B._export_sfc(Y,[["render",Be]]);exports.default=Pe;
@@ -1,4 +1,4 @@
1
- import { _ as ee, S as te, H as ie, u as se, a as oe, b as ne, c as re } from "./index-BNhYVmAX.js";
1
+ import { _ as ee, S as te, H as ie, u as se, a as oe, b as ne, c as re } from "./index-Cs5uxUAb.js";
2
2
  import "pinia";
3
3
  import { resolveComponent as U, createElementBlock as I, openBlock as y, createCommentVNode as B, createBlock as G, createElementVNode as f, toDisplayString as b, createVNode as E, withCtx as N, createTextVNode as R, withKeys as ae } from "vue";
4
4
  function le(n) {
@@ -978,7 +978,7 @@ const z = /* @__PURE__ */ le(ue), de = {
978
978
  },
979
979
  // 多商户选择登录
980
980
  loginBusinessCheck(n) {
981
- this.account_mobile = n.account_mobile_show, this.account_business_id = n.business_id, n.acc_role_type == "sy-org-admin" ? this.passportHandle2(null, "OrgAdminPwdLogin") : n.acc_role_type == "sy-org-staff" && this.passportHandle2(null, "OrgStaffPwdLogin");
981
+ this.account_mobile = n.account_mobile_show, this.account_business_id = n.business_id, n.acc_rules_type == "sy-org-admin" ? this.passportHandle2(null, "OrgAdminPwdLogin") : n.acc_rules_type == "sy-org-staff" && this.passportHandle2(null, "OrgStaffPwdLogin");
982
982
  },
983
983
  passportHandle2(n, a) {
984
984
  let v = this.$message({
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as n, openBlock as s, createElementVNode as o } from "vue";
2
- import { _ as c } from "./index-BNhYVmAX.js";
2
+ import { _ as c } from "./index-Cs5uxUAb.js";
3
3
  const r = {}, t = {
4
4
  class: "cloud-none-wrap",
5
5
  style: { "background-color": "none" }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-zX3YjWaQ.cjs"),c={},t={class:"cloud-none-wrap",style:{"background-color":"none"}};function s(d,o){return e.openBlock(),e.createElementBlock("div",t,o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-none-box"},[e.createElementVNode("div",{class:"cloud-none-code"},"没有权限"),e.createElementVNode("div",{class:"cloud-none-message"},"Not Permission")],-1)]))}const r=n._export_sfc(c,[["render",s]]);exports.default=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-By9sDe3y.cjs"),c={},t={class:"cloud-none-wrap",style:{"background-color":"none"}};function s(d,o){return e.openBlock(),e.createElementBlock("div",t,o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-none-box"},[e.createElementVNode("div",{class:"cloud-none-code"},"没有权限"),e.createElementVNode("div",{class:"cloud-none-message"},"Not Permission")],-1)]))}const r=n._export_sfc(c,[["render",s]]);exports.default=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-zX3YjWaQ.cjs");exports.HttpObj=e.HttpObj;exports.SameFrame=e.console;exports.SameRouteView=e.SameRouteView;exports.SameWatermark=e.SameWatermark;exports.StorageObj=e.StorageObj;exports.SwitchBusiness=e.SwitchBusiness;exports.createHttp=e.createHttp;exports.qiankunWindow=e.qiankunWindow;exports.sdkBootstrap=e.sdkBootstrap;exports.sdkConfigGet=e.sdkConfigGet;exports.sdkConfigSet=e.sdkConfigSet;exports.sdkStartBefore=e.sdkStartBefore;exports.sdkStarup=e.sdkStarup;exports.useSdkAccountStore=e.useSdkAccountStore;exports.useSdkLanguageStore=e.useSdkLanguageStore;exports.useSdkPermissionStore=e.useSdkPermissionStore;exports.useSdkProductStore=e.useSdkProductStore;exports.useSdkQiankunStore=e.useSdkQiankunStore;exports.useSdkSystemStore=e.useSdkSystemStore;exports.useSdkThemesStore=e.useSdkThemesStore;exports.useSdkWindowStore=e.useSdkWindowStore;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-By9sDe3y.cjs");exports.HttpObj=e.HttpObj;exports.SameFrame=e.console;exports.SameRouteView=e.SameRouteView;exports.SameWatermark=e.SameWatermark;exports.StorageObj=e.StorageObj;exports.SwitchBusiness=e.SwitchBusiness;exports.createHttp=e.createHttp;exports.qiankunWindow=e.qiankunWindow;exports.sdkBootstrap=e.sdkBootstrap;exports.sdkConfigGet=e.sdkConfigGet;exports.sdkConfigSet=e.sdkConfigSet;exports.sdkStartBefore=e.sdkStartBefore;exports.sdkStarup=e.sdkStarup;exports.useSdkAccountStore=e.useSdkAccountStore;exports.useSdkLanguageStore=e.useSdkLanguageStore;exports.useSdkPermissionStore=e.useSdkPermissionStore;exports.useSdkProductStore=e.useSdkProductStore;exports.useSdkQiankunStore=e.useSdkQiankunStore;exports.useSdkSystemStore=e.useSdkSystemStore;exports.useSdkThemesStore=e.useSdkThemesStore;exports.useSdkWindowStore=e.useSdkWindowStore;
@@ -1,4 +1,4 @@
1
- import { H as a, e as t, f as S, g as o, l as r, S as d, m as k, q as u, p as n, d as i, s as m, n as c, o as g, b as p, u as f, k as w, j as b, h, c as j, a as B, i as H } from "./index-BNhYVmAX.js";
1
+ import { H as a, e as t, f as S, g as o, l as r, S as d, m as k, q as u, p as n, d as i, s as m, n as c, o as g, b as p, u as f, k as w, j as b, h, c as j, a as B, i as H } from "./index-Cs5uxUAb.js";
2
2
  export {
3
3
  a as HttpObj,
4
4
  t as SameFrame,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10yun/open-sdk",
3
- "version": "0.3.100",
3
+ "version": "0.3.101",
4
4
  "version2": "0.2.1",
5
5
  "description": "开放平台接入sdk",
6
6
  "author": "10yun.com",