@tuotoo/kiwi-pc-plugin-toolbar 0.1.4 → 0.1.6

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.
package/dist/index.es.js CHANGED
@@ -6704,7 +6704,7 @@ const computed = (getterOrOptions, debugOptions) => {
6704
6704
  const c2 = computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
6705
6705
  return c2;
6706
6706
  };
6707
- function h$2(type, propsOrChildren, children) {
6707
+ function h$1(type, propsOrChildren, children) {
6708
6708
  try {
6709
6709
  setBlockTracking(-1);
6710
6710
  const l2 = arguments.length;
@@ -6847,7 +6847,7 @@ const decorate$1 = (t) => {
6847
6847
  return t;
6848
6848
  };
6849
6849
  const Transition = /* @__PURE__ */ decorate$1(
6850
- (props, { slots }) => h$2(BaseTransition, resolveTransitionProps(props), slots)
6850
+ (props, { slots }) => h$1(BaseTransition, resolveTransitionProps(props), slots)
6851
6851
  );
6852
6852
  const callHook = (hook, args = []) => {
6853
6853
  if (isArray$2(hook)) {
@@ -13089,7 +13089,7 @@ var E$2 = "top", R$1 = "bottom", W$1 = "right", P$2 = "left", me = "auto", G$1 =
13089
13089
  }, []), Ee = [].concat(G$1, [me]).reduce(function(t, e) {
13090
13090
  return t.concat([e, e + "-" + U$2, e + "-" + J$1]);
13091
13091
  }, []), Ge = "beforeRead", Je = "read", Ke = "afterRead", Qe = "beforeMain", Ze = "main", et = "afterMain", tt = "beforeWrite", nt = "write", rt = "afterWrite", ot = [Ge, Je, Ke, Qe, Ze, et, tt, nt, rt];
13092
- function C(t) {
13092
+ function C$1(t) {
13093
13093
  return t ? (t.nodeName || "").toLowerCase() : null;
13094
13094
  }
13095
13095
  function H$1(t) {
@@ -13117,7 +13117,7 @@ function Mt(t) {
13117
13117
  var e = t.state;
13118
13118
  Object.keys(e.elements).forEach(function(n2) {
13119
13119
  var r = e.styles[n2] || {}, o2 = e.attributes[n2] || {}, i = e.elements[n2];
13120
- !B$1(i) || !C(i) || (Object.assign(i.style, r), Object.keys(o2).forEach(function(a2) {
13120
+ !B$1(i) || !C$1(i) || (Object.assign(i.style, r), Object.keys(o2).forEach(function(a2) {
13121
13121
  var s2 = o2[a2];
13122
13122
  s2 === false ? i.removeAttribute(a2) : i.setAttribute(a2, s2 === true ? "" : s2);
13123
13123
  }));
@@ -13130,7 +13130,7 @@ function Rt(t) {
13130
13130
  var o2 = e.elements[r], i = e.attributes[r] || {}, a2 = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n2[r]), s2 = a2.reduce(function(f2, c2) {
13131
13131
  return f2[c2] = "", f2;
13132
13132
  }, {});
13133
- !B$1(o2) || !C(o2) || (Object.assign(o2.style, s2), Object.keys(i).forEach(function(f2) {
13133
+ !B$1(o2) || !C$1(o2) || (Object.assign(o2.style, s2), Object.keys(i).forEach(function(f2) {
13134
13134
  o2.removeAttribute(f2);
13135
13135
  }));
13136
13136
  });
@@ -13170,13 +13170,13 @@ function N$2(t) {
13170
13170
  return H$1(t).getComputedStyle(t);
13171
13171
  }
13172
13172
  function Wt(t) {
13173
- return ["table", "td", "th"].indexOf(C(t)) >= 0;
13173
+ return ["table", "td", "th"].indexOf(C$1(t)) >= 0;
13174
13174
  }
13175
13175
  function I$1(t) {
13176
13176
  return ((Q$1(t) ? t.ownerDocument : t.document) || window.document).documentElement;
13177
13177
  }
13178
13178
  function ge(t) {
13179
- return C(t) === "html" ? t : t.assignedSlot || t.parentNode || (Pe(t) ? t.host : null) || I$1(t);
13179
+ return C$1(t) === "html" ? t : t.assignedSlot || t.parentNode || (Pe(t) ? t.host : null) || I$1(t);
13180
13180
  }
13181
13181
  function at(t) {
13182
13182
  return !B$1(t) || N$2(t).position === "fixed" ? null : t.offsetParent;
@@ -13188,7 +13188,7 @@ function Bt(t) {
13188
13188
  if (r.position === "fixed") return null;
13189
13189
  }
13190
13190
  var o2 = ge(t);
13191
- for (Pe(o2) && (o2 = o2.host); B$1(o2) && ["html", "body"].indexOf(C(o2)) < 0; ) {
13191
+ for (Pe(o2) && (o2 = o2.host); B$1(o2) && ["html", "body"].indexOf(C$1(o2)) < 0; ) {
13192
13192
  var i = N$2(o2);
13193
13193
  if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none") return o2;
13194
13194
  o2 = o2.parentNode;
@@ -13197,7 +13197,7 @@ function Bt(t) {
13197
13197
  }
13198
13198
  function se(t) {
13199
13199
  for (var e = H$1(t), n2 = at(t); n2 && Wt(n2) && N$2(n2).position === "static"; ) n2 = at(n2);
13200
- return n2 && (C(n2) === "html" || C(n2) === "body" && N$2(n2).position === "static") ? e : n2 || Bt(t) || e;
13200
+ return n2 && (C$1(n2) === "html" || C$1(n2) === "body" && N$2(n2).position === "static") ? e : n2 || Bt(t) || e;
13201
13201
  }
13202
13202
  function Le(t) {
13203
13203
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
@@ -13315,7 +13315,7 @@ function Se(t) {
13315
13315
  return /auto|scroll|overlay|hidden/.test(n2 + o2 + r);
13316
13316
  }
13317
13317
  function dt(t) {
13318
- return ["html", "body", "#document"].indexOf(C(t)) >= 0 ? t.ownerDocument.body : B$1(t) && Se(t) ? t : dt(ge(t));
13318
+ return ["html", "body", "#document"].indexOf(C$1(t)) >= 0 ? t.ownerDocument.body : B$1(t) && Se(t) ? t : dt(ge(t));
13319
13319
  }
13320
13320
  function ce(t, e) {
13321
13321
  var n2;
@@ -13336,7 +13336,7 @@ function ht(t, e) {
13336
13336
  function Yt(t) {
13337
13337
  var e = ce(ge(t)), n2 = ["absolute", "fixed"].indexOf(N$2(t).position) >= 0, r = n2 && B$1(t) ? se(t) : t;
13338
13338
  return Q$1(r) ? e.filter(function(o2) {
13339
- return Q$1(o2) && it(o2, r) && C(o2) !== "body";
13339
+ return Q$1(o2) && it(o2, r) && C$1(o2) !== "body";
13340
13340
  }) : [];
13341
13341
  }
13342
13342
  function Gt(t, e, n2) {
@@ -13503,7 +13503,7 @@ function fn(t) {
13503
13503
  function cn(t, e, n2) {
13504
13504
  n2 === void 0 && (n2 = false);
13505
13505
  var r = B$1(e), o2 = B$1(e) && fn(e), i = I$1(e), a2 = ee$1(t, o2), s2 = { scrollLeft: 0, scrollTop: 0 }, f2 = { x: 0, y: 0 };
13506
- return (r || !r && !n2) && ((C(e) !== "body" || Se(i)) && (s2 = sn(e)), B$1(e) ? (f2 = ee$1(e, true), f2.x += e.clientLeft, f2.y += e.clientTop) : i && (f2.x = Be(i))), { x: a2.left + s2.scrollLeft - f2.x, y: a2.top + s2.scrollTop - f2.y, width: a2.width, height: a2.height };
13506
+ return (r || !r && !n2) && ((C$1(e) !== "body" || Se(i)) && (s2 = sn(e)), B$1(e) ? (f2 = ee$1(e, true), f2.x += e.clientLeft, f2.y += e.clientTop) : i && (f2.x = Be(i))), { x: a2.left + s2.scrollLeft - f2.x, y: a2.top + s2.scrollTop - f2.y, width: a2.width, height: a2.height };
13507
13507
  }
13508
13508
  function pn(t) {
13509
13509
  var e = /* @__PURE__ */ new Map(), n2 = /* @__PURE__ */ new Set(), r = [];
@@ -16587,7 +16587,7 @@ const useOrderedChildren = (vm, childComponentName) => {
16587
16587
  setup(_2, { slots }) {
16588
16588
  return () => {
16589
16589
  sortChildren();
16590
- return slots.default ? h$2(IsolatedRenderer, {
16590
+ return slots.default ? h$1(IsolatedRenderer, {
16591
16591
  render: slots.default
16592
16592
  }) : null;
16593
16593
  };
@@ -27355,10 +27355,10 @@ var TableHeader = /* @__PURE__ */ defineComponent({
27355
27355
  isTableLayoutAuto
27356
27356
  } = this;
27357
27357
  let rowSpan = 1;
27358
- return h$2("thead", {
27358
+ return h$1("thead", {
27359
27359
  ref: "theadRef",
27360
27360
  class: { [ns.is("group")]: isGroup }
27361
- }, columnRows.map((subColumns, rowIndex) => h$2("tr", {
27361
+ }, columnRows.map((subColumns, rowIndex) => h$1("tr", {
27362
27362
  class: getHeaderRowClass(rowIndex),
27363
27363
  key: rowIndex,
27364
27364
  style: getHeaderRowStyle(rowIndex)
@@ -27370,7 +27370,7 @@ var TableHeader = /* @__PURE__ */ defineComponent({
27370
27370
  if (isTableLayoutAuto && column.fixed) {
27371
27371
  saveIndexSelection.set(_class, column);
27372
27372
  }
27373
- return h$2("th", {
27373
+ return h$1("th", {
27374
27374
  class: _class,
27375
27375
  colspan: column.colSpan,
27376
27376
  key: `${column.id}-thead`,
@@ -27388,7 +27388,7 @@ var TableHeader = /* @__PURE__ */ defineComponent({
27388
27388
  onMousemove: ($event) => handleMouseMove($event, column),
27389
27389
  onMouseout: handleMouseOut
27390
27390
  }, [
27391
- h$2("div", {
27391
+ h$1("div", {
27392
27392
  class: [
27393
27393
  "cell",
27394
27394
  column.filteredValue && column.filteredValue.length > 0 ? "highlight" : ""
@@ -27400,20 +27400,20 @@ var TableHeader = /* @__PURE__ */ defineComponent({
27400
27400
  store,
27401
27401
  _self: $parent
27402
27402
  }) : column.label,
27403
- column.sortable && h$2("span", {
27403
+ column.sortable && h$1("span", {
27404
27404
  onClick: ($event) => handleSortClick($event, column),
27405
27405
  class: "caret-wrapper"
27406
27406
  }, [
27407
- h$2("i", {
27407
+ h$1("i", {
27408
27408
  onClick: ($event) => handleSortClick($event, column, "ascending"),
27409
27409
  class: "sort-caret ascending"
27410
27410
  }),
27411
- h$2("i", {
27411
+ h$1("i", {
27412
27412
  onClick: ($event) => handleSortClick($event, column, "descending"),
27413
27413
  class: "sort-caret descending"
27414
27414
  })
27415
27415
  ]),
27416
- column.filterable && h$2(FilterPanel, {
27416
+ column.filterable && h$1(FilterPanel, {
27417
27417
  store,
27418
27418
  placement: column.filterPlacement || "bottom-start",
27419
27419
  appendTo: $parent == null ? void 0 : $parent.appendFilterPanelTo,
@@ -27437,7 +27437,7 @@ function isGreaterThan(a2, b2, epsilon = 0.03) {
27437
27437
  function useEvents(props) {
27438
27438
  const parent2 = inject(TABLE_INJECTION_KEY);
27439
27439
  const tooltipContent = ref("");
27440
- const tooltipTrigger = ref(h$2("div"));
27440
+ const tooltipTrigger = ref(h$1("div"));
27441
27441
  const handleEvent = (event, row, name) => {
27442
27442
  var _a2, _b, _c;
27443
27443
  const table = parent2;
@@ -27750,7 +27750,7 @@ function useRender$1(props) {
27750
27750
  }
27751
27751
  rowClasses.push(...getRowClass(row, $index, displayIndex));
27752
27752
  const displayStyle = display ? null : { display: "none" };
27753
- return h$2("tr", {
27753
+ return h$1("tr", {
27754
27754
  style: [displayStyle, getRowStyle(row, $index)],
27755
27755
  class: rowClasses,
27756
27756
  key: getKeyOfRow(row, $index),
@@ -27795,7 +27795,7 @@ function useRender$1(props) {
27795
27795
  const mergedTooltipOptions = column.showOverflowTooltip && merge$1({
27796
27796
  effect: tooltipEffect
27797
27797
  }, tooltipOptions, column.showOverflowTooltip);
27798
- return h$2(TdWrapper, {
27798
+ return h$1(TdWrapper, {
27799
27799
  style: getCellStyle($index, cellIndex, row, column),
27800
27800
  class: getCellClass($index, cellIndex, row, column, colspan - 1),
27801
27801
  key: `${patchKey}${baseKey}`,
@@ -27827,11 +27827,11 @@ function useRender$1(props) {
27827
27827
  }
27828
27828
  const rows = [[tr]];
27829
27829
  if (parent2.props.preserveExpandedContent || expanded) {
27830
- rows[0].push(h$2("tr", {
27830
+ rows[0].push(h$1("tr", {
27831
27831
  key: `expanded-row__${tr.key}`,
27832
27832
  style: { display: expanded ? "" : "none" }
27833
27833
  }, [
27834
- h$2("td", {
27834
+ h$1("td", {
27835
27835
  colspan: columns.length,
27836
27836
  class: `${ns.e("cell")} ${ns.e("expanded-cell")}`
27837
27837
  }, [renderExpanded({ row, $index, store, expanded })])
@@ -28009,7 +28009,7 @@ var TableBody = /* @__PURE__ */ defineComponent({
28009
28009
  render() {
28010
28010
  const { wrappedRowRender, store } = this;
28011
28011
  const data = (store == null ? void 0 : store.states.data.value) || [];
28012
- return h$2("tbody", { tabIndex: -1 }, [
28012
+ return h$1("tbody", { tabIndex: -1 }, [
28013
28013
  data.reduce((acc, row) => {
28014
28014
  return acc.concat(wrappedRowRender(row, acc.length));
28015
28015
  }, [])
@@ -28161,16 +28161,16 @@ var TableFooter = /* @__PURE__ */ defineComponent({
28161
28161
  }
28162
28162
  });
28163
28163
  }
28164
- return h$2(h$2("tfoot", [
28165
- h$2("tr", {}, [
28166
- ...columns.map((column, cellIndex) => h$2("td", {
28164
+ return h$1(h$1("tfoot", [
28165
+ h$1("tr", {}, [
28166
+ ...columns.map((column, cellIndex) => h$1("td", {
28167
28167
  key: cellIndex,
28168
28168
  colspan: column.colSpan,
28169
28169
  rowspan: column.rowSpan,
28170
28170
  class: getCellClasses(columns, cellIndex),
28171
28171
  style: getCellStyles(column, cellIndex)
28172
28172
  }, [
28173
- h$2("div", {
28173
+ h$1("div", {
28174
28174
  class: ["cell", column.labelClassName]
28175
28175
  }, [sums[cellIndex]])
28176
28176
  ]))
@@ -28617,7 +28617,7 @@ function hColgroup(props) {
28617
28617
  }
28618
28618
  return propsData;
28619
28619
  };
28620
- return h$2("colgroup", {}, columns.map((column) => h$2("col", getPropsData(column))));
28620
+ return h$1("colgroup", {}, columns.map((column) => h$1("col", getPropsData(column))));
28621
28621
  }
28622
28622
  hColgroup.props = ["columns", "tableLayout"];
28623
28623
  const useScrollbar = () => {
@@ -28695,11 +28695,11 @@ var _ = { ie: function() {
28695
28695
  }, ipad: function() {
28696
28696
  return a$1() || E$1;
28697
28697
  } }, A$1 = _;
28698
- var c$1 = !!(typeof window < "u" && window.document && window.document.createElement), U$1 = { canUseDOM: c$1 }, h$1 = U$1;
28698
+ var c$1 = !!(typeof window < "u" && window.document && window.document.createElement), U$1 = { canUseDOM: c$1 }, h = U$1;
28699
28699
  var X;
28700
- h$1.canUseDOM && (X = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== true);
28700
+ h.canUseDOM && (X = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== true);
28701
28701
  function S(e, n2) {
28702
- if (!h$1.canUseDOM || n2 && !("addEventListener" in document)) return false;
28702
+ if (!h.canUseDOM || n2 && !("addEventListener" in document)) return false;
28703
28703
  var i = "on" + e, r = i in document;
28704
28704
  if (!r) {
28705
28705
  var t = document.createElement("div");
@@ -29133,7 +29133,7 @@ const cellForced = {
29133
29133
  function isDisabled() {
29134
29134
  return store.states.data.value && store.states.data.value.length === 0;
29135
29135
  }
29136
- return h$2(ElCheckbox, {
29136
+ return h$1(ElCheckbox, {
29137
29137
  disabled: isDisabled(),
29138
29138
  size: store.states.tableSize.value,
29139
29139
  indeterminate: store.states.selection.value.length > 0 && !store.states.isAllSelected.value,
@@ -29148,7 +29148,7 @@ const cellForced = {
29148
29148
  store,
29149
29149
  $index
29150
29150
  }) {
29151
- return h$2(ElCheckbox, {
29151
+ return h$1(ElCheckbox, {
29152
29152
  disabled: column.selectable ? !column.selectable.call(null, row, $index) : false,
29153
29153
  size: store.states.tableSize.value,
29154
29154
  onChange: () => {
@@ -29179,7 +29179,7 @@ const cellForced = {
29179
29179
  } else if (isFunction$3(index)) {
29180
29180
  i = index($index);
29181
29181
  }
29182
- return h$2("div", {}, [i]);
29182
+ return h$1("div", {}, [i]);
29183
29183
  },
29184
29184
  sortable: false
29185
29185
  },
@@ -29204,7 +29204,7 @@ const cellForced = {
29204
29204
  e.stopPropagation();
29205
29205
  store.toggleRowExpansion(row);
29206
29206
  };
29207
- return h$2("div", {
29207
+ return h$1("div", {
29208
29208
  class: classes,
29209
29209
  onClick: callback
29210
29210
  }, {
@@ -29217,9 +29217,9 @@ const cellForced = {
29217
29217
  ];
29218
29218
  }
29219
29219
  return [
29220
- h$2(ElIcon, null, {
29220
+ h$1(ElIcon, null, {
29221
29221
  default: () => {
29222
- return [h$2(arrow_right_default)];
29222
+ return [h$1(arrow_right_default)];
29223
29223
  }
29224
29224
  })
29225
29225
  ];
@@ -29252,7 +29252,7 @@ function treeCellPrefix({
29252
29252
  if (!treeNode) {
29253
29253
  if (createPlaceholder) {
29254
29254
  return [
29255
- h$2("span", {
29255
+ h$1("span", {
29256
29256
  class: ns.e("placeholder")
29257
29257
  })
29258
29258
  ];
@@ -29268,7 +29268,7 @@ function treeCellPrefix({
29268
29268
  store.loadOrToggle(row);
29269
29269
  };
29270
29270
  if (treeNode.indent) {
29271
- ele.push(h$2("span", {
29271
+ ele.push(h$1("span", {
29272
29272
  class: ns.e("indent"),
29273
29273
  style: { "padding-left": `${treeNode.indent}px` }
29274
29274
  }));
@@ -29282,20 +29282,20 @@ function treeCellPrefix({
29282
29282
  if (treeNode.loading) {
29283
29283
  icon = loading_default;
29284
29284
  }
29285
- ele.push(h$2("div", {
29285
+ ele.push(h$1("div", {
29286
29286
  class: expandClasses,
29287
29287
  onClick: callback
29288
29288
  }, {
29289
29289
  default: () => {
29290
29290
  return [
29291
- h$2(ElIcon, { class: { [ns.is("loading")]: treeNode.loading } }, {
29292
- default: () => [h$2(icon)]
29291
+ h$1(ElIcon, { class: { [ns.is("loading")]: treeNode.loading } }, {
29292
+ default: () => [h$1(icon)]
29293
29293
  })
29294
29294
  ];
29295
29295
  }
29296
29296
  }));
29297
29297
  } else {
29298
- ele.push(h$2("span", {
29298
+ ele.push(h$1("span", {
29299
29299
  class: ns.e("placeholder")
29300
29300
  }));
29301
29301
  }
@@ -29474,7 +29474,7 @@ function useRender(props, slots, owner) {
29474
29474
  }
29475
29475
  let originRenderCell = column.renderCell;
29476
29476
  if (column.type === "expand") {
29477
- column.renderCell = (data) => h$2("div", {
29477
+ column.renderCell = (data) => h$1("div", {
29478
29478
  class: "cell"
29479
29479
  }, [originRenderCell(data)]);
29480
29480
  owner.value.renderExpanded = (row) => {
@@ -29505,7 +29505,7 @@ function useRender(props, slots, owner) {
29505
29505
  };
29506
29506
  }
29507
29507
  checkSubColumn(children);
29508
- return h$2("div", props2, [prefix, children]);
29508
+ return h$1("div", props2, [prefix, children]);
29509
29509
  };
29510
29510
  }
29511
29511
  return column;
@@ -29730,10 +29730,10 @@ var ElTableColumn$1 = /* @__PURE__ */ defineComponent({
29730
29730
  }
29731
29731
  }
29732
29732
  }
29733
- const vnode = h$2("div", children);
29733
+ const vnode = h$1("div", children);
29734
29734
  return vnode;
29735
29735
  } catch (e) {
29736
- return h$2("div", []);
29736
+ return h$1("div", []);
29737
29737
  }
29738
29738
  }
29739
29739
  });
@@ -34545,658 +34545,655 @@ const _imports_0$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYA
34545
34545
  const _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAADP0lEQVR4AeyXjVHEIBCF0Uq0ErUStQM68OzgOlArUStRK9H3IZvBnJ4skHOcicO7hL/lvd2F4HH453+rgL8O4BqBNQKdHlhTqNOB3dPXCHS7sNOAOwIxxpMY43n8BO8JLTyyjRs9S1x5bLkEaKE7GX8RHjN4T1Dfi0C/uqrLjUZuZriTnXO1VZVqAdnoPu+caMUrjfOIuNacJ6G5VAvQCmcC5Wm73R7p5XSGe9Up1d6TnVdNuBWai0fAW14FTwcWL6G+B8FVovaRJpCOegTEBO+fR0DtAlWbek5eziCi7nTyCDDnpAhYpXiWAn8ak4b/QJ4+9sS9xFQLaRHAQjvQoqWAnf5Zw5Q2mofnU7feXwVEpHrNj0fARDB78Iv9WdveCGgiRydkJ/JqayrVAuQZBFhoL8vVMnnzKqeUnUjlsOldtm6FbvIYrBbAYMEETEelyONtI49XLzTuYMUhIHF6Tr8hcNJMInIbDxPI+0HgEqCwQ5BUglxKI7VRt43Hl/g7YYxfBC4BmYF9ObnQkT40Iwzwzl3G2qkvihYBEMXrkOQyFmZRoN1zH+oS6BaQye5EIbdbKhGdJK6LXcVkt4Bss4yCnUBEguOTM55hmxjj1EcDUBt3/2F7pUlA9rYdl5xIZcpwqTMRRIL/E0irIPIIoo/xj6rTx54B+67qaP8WTQKwlEVYyuDRlDK0C6QYRBkK+URWlfkJRR/EASIQqGH1pVkAS4goKQOokjJJBBX1IQKBtuEhS9eF+uz/CfqZD+gjYjaO+q/oEpCtQ9QIzEXQTqpZNK5Fnv0T9OSrzc0TEdjI5nyPbgEQ0ZIQMJKIIGWSJ+kX6Ic8gjR8XOkWABURxJuQNBHkOiLKlBpOnrWHCMAQkBBEkBKW90SDk2YSwriRGCoAYhKBp8u8J5VMCCcNJw5DSzAm1TUf8em95me4ABaFhEA0uPMjiGZIQh4R7zFGIkOa8U1ojtAiAmALJIK9QUohhKeJoRtB7BVE8aTN9hDvVVhUgDHIQuzIRAxAEEAUR+tG44iaTat6HkRAyUQkiQpAEOB45ePmJo/dgwtg0ZFYBYz0ZoutZSLQwqRxziqg0XHDpq0RGObKRkP/PgIfAAAA///EkZMiAAAABklEQVQDAOfjSnAM/aqlAAAAAElFTkSuQmCC";
34546
34546
  const _imports_2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAGO0lEQVR4AdRaW3bbOAwFlY04u5jkTN14JeP8TLOLpLuI58fuSuymc5zuIl5IbBYXlGQ9qAcfsmQewZIoEgQuAfDlhAZOT9u/Zk9v98t/f90/g7693a+/vd1t+f7BpJlwZ5I8/na/RnnQwKIJ+0EAgNJG2butvkk+NNFaaXoBEdGSSD0Q0YxMwp1J8vgbLVEeZMC52wIM8DTF4/5GBaCotFFWlAqRWIABGAASgKCNEIbVulEAgFAsnI6kdFXG4vsMbXBbH2iz+MH3OQiAp19/P0AYCOUrgGe9HAi4hycPqeYFAPwRgUzr05a5sJny7zjXDO6BToBMPiI4A4Behz+SCWQ0kTRjmbaQzVUeJwBgbmmvu7ZzifIzlm3tGht6AwDGMLdLaBLQhsQGyNqXRy8A4O8jBLq+OtTKQVaOC+vaB0tGJwCGUfB4bml68CyZfXa10gpAGlQwO+viM8nvsIQud2gEAMpzUMEwN0nl+grFICyhS1N5KwAYU69U+YNFURkdoJPlG1kB0DeqVwCxMRwp76BUslDH06KhfZ4n2HWqAWDM5ZqCnt6t5vvb1y//714Xv9kC9M4OgnqAbtVvNQC0Pj5XC031XRE9rubvTb1eE5vdumbZJQAw06NpTXGpIR3Y3G9f5/tN8TvmK9Quv2zOUCGVANBE19D7mxVMXsz9rEkP5aVwVcccANP7NObKjrqSMfn9Y7VcX+XTeiUryAHQpP9JC0zxJlG+avIQ1FF5VKGirjkA1O47NGKCvy8Q5asy+E/TzyOCAJCaf5X/BN7TIa7i7xAsldl/mq5P4u4CAAeGr2A6MeJgZx/iMJ6zzLUhzUX+zA0EAK7ojyRXHuBi5evBDu2I8mYrDq8BpIwFpKYUwChuVSWTG7vyaMk2mUG+B80AZmYBHvXjV4HytkiftWQiPknPUYR0otPXhH1pEv7fpbxZ1yucKEVQ/cwi2AK0ohfQmaX7k2Kzb+t5mKrS9EKRk9L6gQHQ3iaFJeh/X/bfk8/TD18QOpXnw1UdJejZ0WMAlA8AZmbGS1CwxTIUQLiCgPJtPQ/ew+5NqBkDQK4AHGQxkipPhQQQsErjLF6X82/7tUH5tiJmhFJBft/GH98AAO5OBJ9sqgBrYBAW/L0FBJnh1RY1XCe/sIWl+Vg9zxjmQSygRVBrq2aPjQ9GrV85MwMBJs6vlQvKvwOgSn75dVjTz9s6sAVoVwBQ24DAAQovNgIIMPEKCOw+3coPNeTV5dQAQPkAAF680ZhsYap4aSKAgNEC3/neavYoA35DDHngXSd1SLiHfAEgTr1AwFKWA6fCneu0Xhcy/VwGdoH82fehFwh9mF8i6hflUEQ/k4SSn8VMz2cBwbNuXk0PH/XztrKHhD4/Q1wg44P7jHdoPvDgQ1w3aH3v0yYmYQmiNZFuOExwZgsQnBVJ5xVL59bCKsiWusQARepHGK9S7aVrb45xGKOIxPUFADqeYllAhkRvEC4d+DIBM50FgMhukLXR6w8Kepzt+I3Rmc6nwyquGwgImNCYWZ281n7G6n2Vmj8EEgvAQ2oSsUYEYYmfNhBG6v0Doj9kA+UAwCQYme/IjE02EEbs/ZKOOQCitATDaEOisMx+GIRSTBiq97P27He9K/Y+ypQAECtQNyWEUCgS4T98S/S8GffVoBsdNpmVRbcSAKhkFizDWAHzx397n3mPz3myxHUDL+59yy5WDQC0oo4ay9boARG8mbAFB+LHi118wCo61Rq0AiCu0PyHoxqTqWcolTxCJ5ucVgBQEBUU79fj+ZqJlbcerWc6NQKAAoiYWtELXWmC7CamNSvQCgCqhRx6oP54pHfYjutqvxMAuMIVgsDH692brwCnEwAUAghAEyaF9ykT4hbvP2IU6yVmLwAyTgBBHU+3/D7UEMmsvS9zXFf572AXNycAwAzWwCAsIu4igW0o8XmD+busKyNnANAAQFjN3xcwt5GBkF5fzfewSojmTF4AZK1gmFQ8azRA0CXd4oB4BMW7hjnqSEEAgDeswQBxWkCogS0iVxzxCO2HUjAAmQAAAkKt4BocKI1VxFhU6R2AXc33iukWbWRtxrhHA6AoDMCAVawKYBhACFvRTAJM5jK4M0neBsqCUH4lSr8v2pSmwPQHAAD//xlmNnoAAAAGSURBVAMABTvLnpY7IesAAAAASUVORK5CYII=";
34547
34547
  const _imports_3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFi0lEQVR4AdxaTZKrNhBuMblH8EnezC6ZynJclV3skzznJHZ2qfJbppzs5r2T2LlHxsr3tZB/QIBBApunohEI1Orvo9USgkwGTvanX3P7y9uzfX377GS+tj/P3+3rfA+xEOb7omyNc8oC+WJg01T9IAQoaAIGUMk+9nI07yJm5UQWYuRZRHJxiXlelC1QRFkjJxGemAV1oiz5lpQAewmagB3QGKM9MWsSadVr3j7HKCzXTUKAJXAYJ2lAS0PKBW1YtGXRpiRIUQS4vj3fC4ySs0vjcPDtgog5u0zvBnsRwP7IoOX6tsAYuVdi2y5WINj2MaIzAXzq7I9F0OrT5hB1ctjEkaWzN3QiQMFrRB8CQ7ROeoMOtV003UyABp3HBe8xgwSzUlt9SUt+EwHa312ga1H3KJdBAucgN5jTSoCyaYQTF5lUgs32dc4JVaPZjQRon5/Uk69gxZS6eeJUS4CCf/w+X0FcLTALxVK9oCVBAjjOF2O83jTxXQ4sa8UUABIkQMxHa98J6HrkorwOU4UAdRcEkEdG08s2YCK2ct0KAfJhkr5tlRu86/nRVDz7igAMG4sHm+Km5itXjBdarwhAeYqnf4AeCrKk20GsfJX4dIXxREDBTB6pf2l225kcn15ELFaAIrWdq6te8/f2RTIL3ecLPY6uvOBEANj9rYeyqyoAv2GB+efPg9l9+R3HS0jcBsBeLxWZv758ha1xnmDlhPVMAKIkG4iQitsXhvcngeAJuGyUkThPBVY/IigBhftLZIJrVaedvUmoAV/YGkcAgR6N6lACcP4JkmDDtDOwVteZhDrwWF6HkWtI/FZ0A0/AIl6jagCrkSQ0gU/5blJ0o6xwKbU+0a4/CWOBd0D1g433AFeUbt+dhHHBO6RH+QQC7I/uLPn+dhLuAb6ACwJcNCzOU2ftJNwRvFjzDAJk6NRIgk5sShboGJ0y4JX0X56SgOfLgoGOa0kotzcmeLz45SSgbMNQ560kDAG+DcyYBNAWkvAvD4JSzM6C14YphAdYqczhZbjEtzp9YQo10XnGGFLSrewwpgc0gvd2j0oCHn6GQDCGBwTBs8/bFO8Onr2uuRF6gB2agFrwWK5+F4l8d5C4lImY+qAk0akFvOpnYAx+wRmhO3zLsMQ0lAfcAl4ZwO5uJGTy3w9DENAFPPDrNjoJ9LCM63diJW6NTa5SH/BewZgk6HCMGIC2nywXMHEQu9kVWS1rYbR3Aa98JXg+Fgnf2LojIFE3KFaCqfckHcH7es0kpPDY45N6vRKQqBtUYklP8K0k+Bsi8o1ihgIlALlgQvSHxCWsCp//2YsE7y2peILqxbK2v6Fnru7PumcC6BLxruX+2Xud2w59nnY0CUlYWf07dL5PoBcfbbYb3+CJAHWJNMEQBnv1SXPqpcQqvQr4JwKoVVdn4r2Aqu4mjQ0DW3mUuiJAK6fxAlX1cLsAtgoB360X8OkHvjNWCNCnZp/4QbMyrOm1ae4O+mk9YHuQAA2I+o0/UGOKRZnlAw1aHiSAdyoJIrUVec8kpOa7g7e9lgDe4CKmXfF4mmJXGtMajG8kgPXc/N5OjwQGPfeXCmHUSisBrDk9EuyqLugRz6XcRAArOBImEBPY52948sREuZkA3qwx4fg0w/EjDpEHLO+9tPV52H61dSKANXV0cEPk6YWC5XcV7e/bWVfwtLkzAaxEEuANS6E3oHGW3UncU+f/gz0N6EWAb0uJcI1zvjBmt2BbXHvs9dS9/cyjCKACCrxhA2/gH5zLxAusVH8pAI4Iv4O7787v9Jc3dD1OQgAbVW+AUTr8sGu4WWRsnDg4QhW0AdGzYjRik0kkGQGX1pzI2G2X8AyOGuwiEMsJ1UZBWeGiJJ6oOHHnIIz3QHQ4285IaBNoiUz/AwAA//878XESAAAABklEQVQDAPJDlJLj/TutAAAAAElFTkSuQmCC";
34548
- const _0x3a757e = _0x548d;
34549
- (function(_0x2dd4ed, _0x1bc7a1) {
34550
- const _0x29160a = _0x548d, _0x21890a = _0x2dd4ed();
34548
+ const _0x5609b8 = _0x4084;
34549
+ (function(_0x134f03, _0x2bf0eb) {
34550
+ const _0x304de1 = _0x4084, _0x155bac = _0x134f03();
34551
34551
  while (!![]) {
34552
34552
  try {
34553
- const _0x186e59 = parseInt(_0x29160a(234)) / 1 * (-parseInt(_0x29160a(387)) / 2) + -parseInt(_0x29160a(350)) / 3 * (-parseInt(_0x29160a(259)) / 4) + -parseInt(_0x29160a(450)) / 5 * (parseInt(_0x29160a(305)) / 6) + parseInt(_0x29160a(422)) / 7 * (parseInt(_0x29160a(520)) / 8) + parseInt(_0x29160a(395)) / 9 + -parseInt(_0x29160a(382)) / 10 + parseInt(_0x29160a(255)) / 11 * (parseInt(_0x29160a(385)) / 12);
34554
- if (_0x186e59 === _0x1bc7a1) break;
34555
- else _0x21890a["push"](_0x21890a["shift"]());
34556
- } catch (_0x3bab99) {
34557
- _0x21890a["push"](_0x21890a["shift"]());
34553
+ const _0x14a20f = -parseInt(_0x304de1(210)) / 1 * (parseInt(_0x304de1(419)) / 2) + -parseInt(_0x304de1(338)) / 3 * (-parseInt(_0x304de1(298)) / 4) + parseInt(_0x304de1(160)) / 5 * (parseInt(_0x304de1(295)) / 6) + -parseInt(_0x304de1(314)) / 7 + -parseInt(_0x304de1(391)) / 8 * (-parseInt(_0x304de1(396)) / 9) + -parseInt(_0x304de1(208)) / 10 + -parseInt(_0x304de1(360)) / 11 * (parseInt(_0x304de1(363)) / 12);
34554
+ if (_0x14a20f === _0x2bf0eb) break;
34555
+ else _0x155bac["push"](_0x155bac["shift"]());
34556
+ } catch (_0x473b21) {
34557
+ _0x155bac["push"](_0x155bac["shift"]());
34558
34558
  }
34559
34559
  }
34560
- })(_0x37f6, 431987);
34561
- var K = Object[_0x3a757e(481)], N = (_0x556d43, _0x156ce7, _0x9f57cb) => _0x156ce7 in _0x556d43 ? K(_0x556d43, _0x156ce7, { "enumerable": true, "configurable": true, "writable": true, "value": _0x9f57cb }) : _0x556d43[_0x156ce7] = _0x9f57cb, w = (_0x5d7c50, _0x4a21df, _0x3d59d1) => N(_0x5d7c50, typeof _0x4a21df != _0x3a757e(221) ? _0x4a21df + "" : _0x4a21df, _0x3d59d1);
34560
+ })(_0x446f, 840083);
34561
+ var K = Object[_0x5609b8(381)], N = (_0x590dbe, _0x41feff, _0x428ec6) => _0x41feff in _0x590dbe ? K(_0x590dbe, _0x41feff, { "enumerable": true, "configurable": true, "writable": true, "value": _0x428ec6 }) : _0x590dbe[_0x41feff] = _0x428ec6, w = (_0x3a7c7e, _0x5191c5, _0x37f9b4) => N(_0x3a7c7e, typeof _0x5191c5 != _0x5609b8(294) ? _0x5191c5 + "" : _0x5191c5, _0x37f9b4);
34562
34562
  let k = false;
34563
- const Y = function(_0x18b718, _0x41d8ee) {
34564
- const _0xfe73aa = _0x3a757e;
34565
- this[_0xfe73aa(465)] = new AudioContext({ "sampleRate": 8e3 });
34566
- let _0xc1e0f = this[_0xfe73aa(465)][_0xfe73aa(297)](_0x18b718), _0x151e33 = this[_0xfe73aa(465)][_0xfe73aa(321)](2048, 1, 1);
34567
- const _0x484110 = { "size": 0, "buffer": [], "inputSampleRate": 8e3, "inputSampleBits": 16, "outputSampleRate": 8e3, "outputSampleBits": 16, "clear": function() {
34568
- const _0xb3ddee = _0xfe73aa;
34569
- this[_0xb3ddee(444)] = [], this[_0xb3ddee(275)] = 0;
34570
- }, "input": function(_0x478de6) {
34571
- const _0x14bda4 = _0xfe73aa;
34572
- this["buffer"][_0x14bda4(485)](new Float32Array(_0x478de6)), this[_0x14bda4(275)] += _0x478de6[_0x14bda4(374)];
34563
+ function _0x446f() {
34564
+ const _0x1154b0 = ["manualControlSeat", "deviceId", "handleError", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dududu.mp3", "缺少参数", "getMaxValue", "actionSeatReconnectWSAfterClosed", "QualityMonitorIDs", "robot", "token过期", "stringify", "state.voiceInstance", "getTypedArray", "/seat/call/", "Hangup", "length", "浏览器不支持硬件设备。", "CustomerCancel", "flush", "RobotSay", "symbol", "54QwgQoc", "wss://", "aiToSeatRobotHangup", "8EqGbkH", "qualityNoticeToCaller", "onopen", "recorder", "currentDeviceInfoOutput", "status", "typedArray", "toString", "您已触发质检规则", "autoClosed", "Error", "channels", "addEventListener", "connectInfo", "SendMsg", "NotSupportedError", "7325976vShQly", "Say", "connect", "actionSeatHandleIncoming", "phoneRingAudio", "recordsData", "actionSeatInitWSInstance", "客户说话", "close", "Offline", "CustomerID", "actionSeatStartWS", "qualityMonitorIDs", "inputSampleBits", "onceCall", "name", "maskPhoneNumber", "振铃中", "max", "parse", "then", "start", "SeatConnectClientFailedResp", "closed", "476961wsvujL", "onerror", "getterSeatCurrentDeviceInfoInputID", "catch", "呼出成功", "feed", "LineListID", "actions", "坐席正忙", "set", "pause", "CustomerSayText", "DictionaryName", "buffer", "16bitInt", "seatStatus", "push", "createBufferSource", "钱包/通话余量不足", "employeeID", "mobile", "PlanID", "132880PQpfyF", "actionSeatSendVoice", "operator", "132GRJecs", "gainNode", "ringing", "onclose", "客户已挂机", "getTracks", "src", "play", "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。", "CallBack", "WSConnected", "起呼中", "destroy", "aiToSeat", "arraybuffer", "stop", "VoiceFrom", "SEAT_SET_VoiceWS", "defineProperty", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dingdong.mp3", "rtmp://", "Answer", "Reject", "循环响铃", "SEAT_PLAY_AUDIO", "CallUnexpected", "SEAT_SET_RECORDSDATA", "split", "1219384eCQikY", "/websocket?access_token=", "Time", "用户拒绝提供信息。", "CallOnceFailed", "99kRcNHx", "readAsArrayBuffer", "enumerateDevices", "getFormatedValue", "encodePCM", "Text", "无法打开麦克风。异常信息:", "CustomerRefuse", "MANDATORY_UNSATISFIED_ERROR", "reconnectCount", "kind", "Data", "planID", "audio", "SeatCancel", "坐席说话", "substr", "assign", "key", "actionSeatInitVoiceWSInstance", "startTime", "call", "SeatSayText", "22518QeIgFW", "CustomerHangUp", "isTypedArray", "botStatus", "handleData", "OutPlanID", "ended", "callOnceStage", "setInt16", "Msg", "errMsg", "RobotPID", "hangup", "getterSeatCurrentDeviceInfoOutputID", "option", "wss://api.kiwi.tuotoo.org", "outputSampleBits", "通话中", "坐席拒接", "callingStage", "companyID", "devices", "QualityDictionaryIDs", "SEAT_SAVE_KEY_VALUE", "QualityNoticeToCaller", "getTime", "SeatConflict", "map", "includes", "callOptions", "CustomerConnected", "getBlob", "坐席已挂机", "未处理情况", "坐席上线成功", "actionSeatInitVoiceWSInstance异常", "通话异常", "updateConfig", "replace", "indexOf", "actionHandleCallBack", "destination", "result", "taskID", "坐席在其他地方上线", "客户拒接", "SEAT_SET_WS", "PERMISSION_DENIED", "bind", "maxValue", "869945lsZNWH", "SeatSay", "encoding", "SEAT_SEND_RAW_MESSAGE", "clear", "onmessage", "state", "0001-01-01T00:00:00Z", "onaudioprocess", "呼叫参数", "SeatBusy", "context", "value", "getUserMedia", "机器人说话", "createElement", "NOT_SUPPORTED_ERROR", "binaryType", "CallOnceSuccess", "seatData", "MandatoryUnsatisfiedError", "min", "test", "customer", "wss://api.kiwi.tuotoo.com", "env", "CallConnected", "byteLength", "CallOnceRinging", "InsufficientBalance", "object", "init", "SeatQualityNotice", "AudioContext", "坐席下线", "createContext", "actionSeatStartTalk", "mediaDevice", "CallNext", "RuleName", "offline", "size", "error", "actionSeatVoiceWS", "SeatConnectedResp", "ping", "token", "aiToSeatVoiceUrl", "11919680JRSvzg", "SeatConnected", "31qOkvHt", "sampleRate", "onMessage", "target", "CallConnecting", "disconnect", "?key=", "Cancel", "Messages", "connected", "answer", "forEach", "getterSeatIsConnected", "volume", "无法发现指定的硬件设备。", "prototype", "SEAT_UPDATE_WEBSOCKET_STATUS", "message", "CustomerSay", "currentTime", "createMediaStreamSource", "SeatRefuse", "SEAT_RESET_AUDIO", "TypeAIToSeat", "isAutoAnswer", "$1****$2", "initial", "TaskID", "qualityDictionaryIDs", "SeatHangUp", "samples", "WSConnectedReplace", "url", "instance", "voiceInstance", "Code", "响铃中", "instanceClose", "getterSeatIsRinging", "find", "Mobile", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/du_4s.mp3", "log", "Type", "InternetErrorHangUp", "SEAT_SEND_MESSAGE", "filter", "customerInfo", "send", "audioCtx", "actionSeatStartPlayer", "CallOnce", "getterSeatCallOnceStage", "getChannelData", "random", "mediaDevices", "通话连接中", "srcObject", "lineListID", "TypeCallOnce", "data", "interval", "flushingTime", "gain"];
34565
+ _0x446f = function() {
34566
+ return _0x1154b0;
34567
+ };
34568
+ return _0x446f();
34569
+ }
34570
+ const Y = function(_0x48358c, _0x110e60) {
34571
+ const _0x28345c = _0x5609b8;
34572
+ this["context"] = new AudioContext({ "sampleRate": 8e3 });
34573
+ let _0x376a25 = this[_0x28345c(171)][_0x28345c(230)](_0x48358c), _0x3531a4 = this[_0x28345c(171)]["createScriptProcessor"](2048, 1, 1);
34574
+ const _0x2aa5b3 = { "size": 0, "buffer": [], "inputSampleRate": 8e3, "inputSampleBits": 16, "outputSampleRate": 8e3, "outputSampleBits": 16, "clear": function() {
34575
+ const _0x43a85a = _0x28345c;
34576
+ this["buffer"] = [], this[_0x43a85a(201)] = 0;
34577
+ }, "input": function(_0x41dc6d) {
34578
+ const _0x1d7eba = _0x28345c;
34579
+ this[_0x1d7eba(351)]["push"](new Float32Array(_0x41dc6d)), this["size"] += _0x41dc6d["length"];
34573
34580
  }, "compress": function() {
34574
- const _0x45b8b7 = _0xfe73aa;
34575
- for (var _0x2de757 = new Float32Array(this["size"]), _0x46d41e = 0, _0x477455 = 0; _0x477455 < this[_0x45b8b7(444)][_0x45b8b7(374)]; _0x477455++) _0x2de757["set"](this[_0x45b8b7(444)][_0x477455], _0x46d41e), _0x46d41e += this["buffer"][_0x477455][_0x45b8b7(374)];
34576
- for (var _0x512121 = parseInt(String(this[_0x45b8b7(478)] / this[_0x45b8b7(292)])), _0x72ac21 = _0x2de757[_0x45b8b7(374)] / _0x512121, _0x32503c = new Float32Array(_0x72ac21), _0x18e396 = 0, _0x45b955 = 0; _0x18e396 < _0x72ac21; ) _0x32503c[_0x18e396] = _0x2de757[_0x45b955], _0x45b955 += _0x512121, _0x18e396++;
34577
- return _0x32503c;
34581
+ const _0x6b8c5a = _0x28345c;
34582
+ for (var _0x4a4049 = new Float32Array(this[_0x6b8c5a(201)]), _0x367a6c = 0, _0x14e42f = 0; _0x14e42f < this[_0x6b8c5a(351)][_0x6b8c5a(289)]; _0x14e42f++) _0x4a4049["set"](this[_0x6b8c5a(351)][_0x14e42f], _0x367a6c), _0x367a6c += this[_0x6b8c5a(351)][_0x14e42f][_0x6b8c5a(289)];
34583
+ for (var _0x583a37 = parseInt(String(this["inputSampleRate"] / this["outputSampleRate"])), _0x2495f0 = _0x4a4049["length"] / _0x583a37, _0x35802a = new Float32Array(_0x2495f0), _0x440362 = 0, _0x59c042 = 0; _0x440362 < _0x2495f0; ) _0x35802a[_0x440362] = _0x4a4049[_0x59c042], _0x59c042 += _0x583a37, _0x440362++;
34584
+ return _0x35802a;
34578
34585
  }, "encodePCM": function() {
34579
- const _0x286cc0 = _0xfe73aa;
34580
- for (var _0x182d4d = Math[_0x286cc0(280)](this[_0x286cc0(375)], this[_0x286cc0(222)]), _0x1e7235 = this[_0x286cc0(393)](), _0x584619 = _0x1e7235[_0x286cc0(374)] * (_0x182d4d / 8), _0x5cb90d = new ArrayBuffer(_0x584619), _0x4305f3 = new DataView(_0x5cb90d), _0x5551ce = 0, _0x5bae0b = 0; _0x5bae0b < _0x1e7235[_0x286cc0(374)]; _0x5bae0b++, _0x5551ce += 2) {
34581
- var _0x483e75 = Math[_0x286cc0(262)](-1, Math["min"](1, _0x1e7235[_0x5bae0b]));
34582
- _0x4305f3[_0x286cc0(424)](_0x5551ce, _0x483e75 < 0 ? _0x483e75 * 32768 : _0x483e75 * 32767, true);
34586
+ const _0x5ad952 = _0x28345c;
34587
+ for (var _0x485681 = Math["min"](this[_0x5ad952(327)], this[_0x5ad952(435)]), _0x1bfeab = this["compress"](), _0x13e4ab = _0x1bfeab[_0x5ad952(289)] * (_0x485681 / 8), _0x2d4902 = new ArrayBuffer(_0x13e4ab), _0x54d1f1 = new DataView(_0x2d4902), _0x2458e2 = 0, _0x4515f6 = 0; _0x4515f6 < _0x1bfeab["length"]; _0x4515f6++, _0x2458e2 += 2) {
34588
+ var _0xb11476 = Math[_0x5ad952(332)](-1, Math[_0x5ad952(181)](1, _0x1bfeab[_0x4515f6]));
34589
+ _0x54d1f1[_0x5ad952(427)](_0x2458e2, _0xb11476 < 0 ? _0xb11476 * 32768 : _0xb11476 * 32767, true);
34583
34590
  }
34584
- return new Blob([_0x4305f3]);
34591
+ return new Blob([_0x54d1f1]);
34585
34592
  } };
34586
- var _0x322995 = function() {
34587
- const _0x980942 = _0xfe73aa;
34588
- var _0x592e65 = new FileReader();
34589
- _0x592e65["onload"] = (_0x1db9ba) => {
34590
- const _0x1f0a54 = _0x548d;
34591
- if (!(!_0x1db9ba[_0x1f0a54(480)] || !k)) {
34592
- var _0x32d807 = _0x1db9ba[_0x1f0a54(480)][_0x1f0a54(369)];
34593
- if (!(!_0x32d807 || typeof _0x32d807 == _0x1f0a54(380))) {
34594
- var _0x19ab05 = new Int16Array(_0x32d807);
34595
- _0x41d8ee(_0x19ab05);
34596
- }
34597
- }
34598
- }, _0x592e65[_0x980942(273)](_0x484110[_0x980942(509)]()), _0x484110[_0x980942(405)]();
34599
- };
34600
- this[_0xfe73aa(469)] = function() {
34601
- const _0x1e1c17 = _0xfe73aa;
34602
- k = true, _0xc1e0f["connect"](_0x151e33), _0x151e33[_0x1e1c17(476)](this[_0x1e1c17(465)][_0x1e1c17(441)]);
34603
- }, this[_0xfe73aa(493)] = function() {
34604
- const _0x47512b = _0xfe73aa;
34605
- k = false, _0x18b718[_0x47512b(311)]()[_0x47512b(252)]((_0x5aa7ea) => _0x5aa7ea[_0x47512b(493)]()), _0x151e33 && (_0x151e33[_0x47512b(327)] = null, _0x151e33[_0x47512b(241)]()), _0xc1e0f && _0xc1e0f[_0x47512b(241)](), this[_0x47512b(465)] && this[_0x47512b(465)]["close"](), _0x151e33 = null, _0xc1e0f = null, this[_0x47512b(465)] = null;
34606
- }, this[_0xfe73aa(316)] = function() {
34607
- const _0x40a11d = _0xfe73aa;
34608
- return _0x484110[_0x40a11d(509)]();
34609
- }, this[_0xfe73aa(405)] = function() {
34610
- const _0x529c9e = _0xfe73aa;
34611
- _0x484110[_0x529c9e(405)](), this[_0x529c9e(465)] && (this["context"][_0x529c9e(308)](), this[_0x529c9e(465)] = null);
34612
- }, _0x151e33[_0xfe73aa(327)] = function(_0x5004b5) {
34613
- const _0x2a1fdc = _0xfe73aa;
34614
- if (!(!k || !this[_0x2a1fdc(465)] || this[_0x2a1fdc(465)][_0x2a1fdc(318)] === _0x2a1fdc(449))) {
34615
- var _0x5cd98c = _0x5004b5[_0x2a1fdc(364)][_0x2a1fdc(527)](0);
34616
- _0x484110[_0x2a1fdc(359)](_0x5cd98c), _0x322995();
34617
- }
34618
- };
34619
- }, O = (_0x8af3cf) => {
34620
- const _0x4e262b = _0x3a757e;
34621
- switch (_0x8af3cf[_0x4e262b(507)] || _0x8af3cf["name"]) {
34622
- case _0x4e262b(489):
34593
+ var _0x3df9d1 = function() {
34594
+ const _0x22c76c = _0x28345c;
34595
+ var _0x3aa263 = new FileReader();
34596
+ _0x3aa263["onload"] = (_0x59d153) => {
34597
+ const _0x24eb7a = _0x4084;
34598
+ if (!(!_0x59d153[_0x24eb7a(213)] || !k)) {
34599
+ var _0x34a1e1 = _0x59d153[_0x24eb7a(213)][_0x24eb7a(152)];
34600
+ if (!(!_0x34a1e1 || typeof _0x34a1e1 == "string")) {
34601
+ var _0x168da2 = new Int16Array(_0x34a1e1);
34602
+ _0x110e60(_0x168da2);
34603
+ }
34604
+ }
34605
+ }, _0x3aa263[_0x22c76c(397)](_0x2aa5b3[_0x22c76c(400)]()), _0x2aa5b3["clear"]();
34606
+ };
34607
+ this[_0x28345c(335)] = function() {
34608
+ const _0x293aa3 = _0x28345c;
34609
+ k = true, _0x376a25[_0x293aa3(316)](_0x3531a4), _0x3531a4[_0x293aa3(316)](this[_0x293aa3(171)]["destination"]);
34610
+ }, this[_0x28345c(378)] = function() {
34611
+ const _0x49a374 = _0x28345c;
34612
+ k = false, _0x48358c["getTracks"]()[_0x49a374(221)]((_0x38ed20) => _0x38ed20["stop"]()), _0x3531a4 && (_0x3531a4[_0x49a374(168)] = null, _0x3531a4["disconnect"]()), _0x376a25 && _0x376a25[_0x49a374(215)](), this[_0x49a374(171)] && this[_0x49a374(171)][_0x49a374(322)](), _0x3531a4 = null, _0x376a25 = null, this["context"] = null;
34613
+ }, this[_0x28345c(450)] = function() {
34614
+ const _0x5a705e = _0x28345c;
34615
+ return _0x2aa5b3[_0x5a705e(400)]();
34616
+ }, this[_0x28345c(164)] = function() {
34617
+ const _0x4edf3c = _0x28345c;
34618
+ _0x2aa5b3[_0x4edf3c(164)](), this[_0x4edf3c(171)] && (this["context"][_0x4edf3c(322)](), this["context"] = null);
34619
+ }, _0x3531a4["onaudioprocess"] = function(_0xb9de1a) {
34620
+ const _0x4d3cc0 = _0x28345c;
34621
+ if (!(!k || !this[_0x4d3cc0(171)] || this["context"][_0x4d3cc0(166)] === _0x4d3cc0(337))) {
34622
+ var _0x1b35da = _0xb9de1a["inputBuffer"][_0x4d3cc0(263)](0);
34623
+ _0x2aa5b3["input"](_0x1b35da), _0x3df9d1();
34624
+ }
34625
+ };
34626
+ }, O = (_0x3b6f59) => {
34627
+ const _0x3f5cc7 = _0x5609b8;
34628
+ switch (_0x3b6f59[_0x3f5cc7(227)] || _0x3b6f59[_0x3f5cc7(329)]) {
34629
+ case _0x3f5cc7(157):
34623
34630
  case "PermissionDeniedError":
34624
- return _0x4e262b(461);
34625
- case "NOT_SUPPORTED_ERROR":
34626
- case _0x4e262b(253):
34627
- return _0x4e262b(226);
34628
- case _0x4e262b(242):
34629
- case _0x4e262b(328):
34630
- return _0x4e262b(457);
34631
+ return _0x3f5cc7(394);
34632
+ case _0x3f5cc7(176):
34633
+ case _0x3f5cc7(313):
34634
+ return _0x3f5cc7(290);
34635
+ case _0x3f5cc7(404):
34636
+ case _0x3f5cc7(180):
34637
+ return _0x3f5cc7(224);
34631
34638
  default:
34632
- return "无法打开麦克风。异常信息:" + _0x8af3cf;
34639
+ return _0x3f5cc7(402) + _0x3b6f59;
34633
34640
  }
34634
- }, x = () => !navigator[_0x3a757e(249)] || !navigator[_0x3a757e(249)][_0x3a757e(319)] ? (console[_0x3a757e(265)](_0x3a757e(365)), false) : true;
34641
+ }, x = () => !navigator["mediaDevices"] || !navigator[_0x5609b8(265)][_0x5609b8(173)] ? (console[_0x5609b8(252)]("当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。"), false) : true;
34635
34642
  let T = "";
34636
34643
  const V = () => {
34637
- const _0x382d12 = _0x3a757e;
34644
+ const _0x386af6 = _0x5609b8;
34638
34645
  E();
34639
- let _0x59ac61 = "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/du_4s.mp3";
34640
- T = new Audio(_0x59ac61), T["addEventListener"](_0x382d12(420), (_0x31ae9d) => {
34641
- const _0x1e5d28 = _0x382d12;
34642
- console["log"](_0x1e5d28(420), _0x31ae9d);
34643
- }), T[_0x382d12(330)]("ended", () => {
34644
- const _0x3fd984 = _0x382d12;
34645
- T[_0x3fd984(279)](), console[_0x3fd984(265)](_0x3fd984(530));
34646
- }), T[_0x382d12(279)]();
34646
+ let _0x4c6275 = _0x386af6(251);
34647
+ T = new Audio(_0x4c6275), T[_0x386af6(310)]("error", (_0x43a9b0) => {
34648
+ const _0x8577f = _0x386af6;
34649
+ console[_0x8577f(252)]("error", _0x43a9b0);
34650
+ }), T[_0x386af6(310)]("ended", () => {
34651
+ const _0x38fd0b = _0x386af6;
34652
+ T[_0x38fd0b(370)](), console[_0x38fd0b(252)](_0x38fd0b(386));
34653
+ }), T[_0x386af6(370)]();
34647
34654
  }, E = () => {
34648
- const _0x432f4c = _0x3a757e;
34649
- T && (console[_0x432f4c(265)]("停止响铃"), T[_0x432f4c(499)](), T = "");
34655
+ const _0x5e6efc = _0x5609b8;
34656
+ T && (console[_0x5e6efc(252)]("停止响铃"), T[_0x5e6efc(348)](), T = "");
34650
34657
  }, W = () => {
34651
- const _0x35ae41 = _0x3a757e;
34652
- let _0x241adf = _0x35ae41(413);
34653
- const _0x2da622 = new Audio(_0x241adf);
34654
- _0x2da622[_0x35ae41(330)](_0x35ae41(420), (_0x3c4d00) => {
34655
- const _0x1b7ca5 = _0x35ae41;
34656
- console[_0x1b7ca5(265)](_0x1b7ca5(420), _0x3c4d00);
34657
- }), _0x2da622[_0x35ae41(330)](_0x35ae41(296), () => {
34658
- const _0x341a2f = _0x35ae41;
34659
- _0x2da622[_0x341a2f(499)]();
34660
- }), _0x2da622["play"]();
34658
+ const _0x5e564c = _0x5609b8;
34659
+ let _0x2fddb9 = _0x5e564c(382);
34660
+ const _0x5b6b98 = new Audio(_0x2fddb9);
34661
+ _0x5b6b98["addEventListener"](_0x5e564c(202), (_0x92ba7b) => {
34662
+ const _0x55990b = _0x5e564c;
34663
+ console[_0x55990b(252)]("error", _0x92ba7b);
34664
+ }), _0x5b6b98[_0x5e564c(310)](_0x5e564c(425), () => {
34665
+ const _0x34f52c = _0x5e564c;
34666
+ _0x5b6b98[_0x34f52c(348)]();
34667
+ }), _0x5b6b98[_0x5e564c(370)]();
34661
34668
  }, v = () => {
34662
- const _0x2f2ff1 = _0x3a757e;
34663
- let _0x212bfa = _0x2f2ff1(371);
34664
- const _0xeea020 = new Audio(_0x212bfa);
34665
- _0xeea020[_0x2f2ff1(330)](_0x2f2ff1(420), (_0x5084be) => {
34666
- const _0x19ab40 = _0x2f2ff1;
34667
- console["log"](_0x19ab40(420), _0x5084be);
34668
- }), _0xeea020["addEventListener"](_0x2f2ff1(296), () => {
34669
- _0xeea020["pause"]();
34670
- }), _0xeea020[_0x2f2ff1(279)]();
34671
- }, B = (_0x5e31ed, _0x531556) => {
34672
- const _0x203fcc = _0x3a757e;
34673
- navigator[_0x203fcc(249)][_0x203fcc(319)]({ "audio": {} })[_0x203fcc(487)]((_0xb5a1b5) => {
34674
- const _0x2f1cc4 = _0x203fcc;
34675
- _0x5e31ed && _0x5e31ed(), _0xb5a1b5[_0x2f1cc4(311)]()[_0x2f1cc4(252)]((_0x441e5f) => _0x441e5f[_0x2f1cc4(493)]());
34676
- })[_0x203fcc(430)]((_0xa15330) => {
34677
- const _0x2538d9 = O(_0xa15330);
34678
- _0x531556 && _0x531556({ "errMsg": _0x2538d9 });
34669
+ const _0x2de133 = _0x5609b8;
34670
+ let _0x4fa2fc = _0x2de133(277);
34671
+ const _0x1cccda = new Audio(_0x4fa2fc);
34672
+ _0x1cccda["addEventListener"](_0x2de133(202), (_0x23aef2) => {
34673
+ const _0x113530 = _0x2de133;
34674
+ console["log"](_0x113530(202), _0x23aef2);
34675
+ }), _0x1cccda[_0x2de133(310)](_0x2de133(425), () => {
34676
+ const _0x25ef07 = _0x2de133;
34677
+ _0x1cccda[_0x25ef07(348)]();
34678
+ }), _0x1cccda["play"]();
34679
+ }, B = (_0x5cd449, _0x103307) => {
34680
+ const _0x34681b = _0x5609b8;
34681
+ navigator["mediaDevices"]["getUserMedia"]({ "audio": {} })[_0x34681b(334)]((_0x6823a8) => {
34682
+ const _0x2f4ad7 = _0x34681b;
34683
+ _0x5cd449 && _0x5cd449(), _0x6823a8[_0x2f4ad7(368)]()["forEach"]((_0xc7684c) => _0xc7684c[_0x2f4ad7(378)]());
34684
+ })[_0x34681b(341)]((_0xe59fe1) => {
34685
+ const _0x25d89e = O(_0xe59fe1);
34686
+ _0x103307 && _0x103307({ "errMsg": _0x25d89e });
34679
34687
  });
34680
- }, b = () => (Math[_0x3a757e(396)]() * 1e7)["toString"](16)[_0x3a757e(299)](0, 4) + "-" + (/* @__PURE__ */ new Date())[_0x3a757e(399)]() + "-" + Math[_0x3a757e(396)]()["toString"]()[_0x3a757e(299)](2, 5);
34681
- function F(_0x332f23) {
34682
- const _0x463aa1 = _0x3a757e;
34683
- let _0x44a37c;
34688
+ }, b = () => (Math[_0x5609b8(264)]() * 1e7)[_0x5609b8(305)](16)[_0x5609b8(412)](0, 4) + "-" + (/* @__PURE__ */ new Date())[_0x5609b8(444)]() + "-" + Math[_0x5609b8(264)]()[_0x5609b8(305)]()["substr"](2, 5);
34689
+ function _0x4084(_0x562c0d, _0x48998d) {
34690
+ const _0x446f6b = _0x446f();
34691
+ return _0x4084 = function(_0x408455, _0x419986) {
34692
+ _0x408455 = _0x408455 - 149;
34693
+ let _0x3377bc = _0x446f6b[_0x408455];
34694
+ return _0x3377bc;
34695
+ }, _0x4084(_0x562c0d, _0x48998d);
34696
+ }
34697
+ function F(_0x1d239a) {
34698
+ const _0x35a9fc = _0x5609b8;
34699
+ let _0x38cbbb;
34684
34700
  try {
34685
- _0x44a37c = JSON[_0x463aa1(272)](atob(_0x332f23[_0x463aa1(482)](".")[1]))[_0x463aa1(260)];
34701
+ _0x38cbbb = JSON[_0x35a9fc(333)](atob(_0x1d239a[_0x35a9fc(390)](".")[1]))["exp"];
34686
34702
  } catch {
34687
- _0x44a37c = 0;
34688
- }
34689
- return _0x44a37c > Date["now"]() / 1e3;
34690
- }
34691
- const j = (_0x23c3ed) => _0x23c3ed[_0x3a757e(267)](new RegExp(/(\d{3})\d*(\d{4})/), _0x3a757e(343));
34692
- function A(_0x3ff4b9) {
34693
- this["init"](_0x3ff4b9);
34694
- }
34695
- A["prototype"][_0x3a757e(429)] = function(_0xc28806) {
34696
- const _0x321a72 = _0x3a757e;
34697
- var _0x3c34c4 = { "encoding": _0x321a72(237), "channels": 1, "sampleRate": 8e3, "flushingTime": 1e3 };
34698
- this[_0x321a72(294)] = Object[_0x321a72(500)]({}, _0x3c34c4, _0xc28806), this[_0x321a72(288)] = new Float32Array(), this["flush"] = this[_0x321a72(410)][_0x321a72(401)](this), this[_0x321a72(301)] = setInterval(this["flush"], this[_0x321a72(294)][_0x321a72(448)]), this["maxValue"] = this[_0x321a72(257)](), this[_0x321a72(339)] = this["getTypedArray"](), this[_0x321a72(417)]();
34699
- }, A["prototype"][_0x3a757e(257)] = function() {
34700
- const _0x4ead78 = _0x3a757e;
34701
- var _0x5f413e = { "8bitInt": 128, "16bitInt": 32768, "32bitInt": 2147483648, "32bitFloat": 1 };
34702
- return _0x5f413e[this[_0x4ead78(294)][_0x4ead78(362)]] ? _0x5f413e[this["option"]["encoding"]] : _0x5f413e[_0x4ead78(237)];
34703
- }, A[_0x3a757e(445)][_0x3a757e(285)] = function() {
34704
- const _0x2bb36d = _0x3a757e;
34705
- var _0x2f2c32 = { "8bitInt": Int8Array, "16bitInt": Int16Array, "32bitInt": Int32Array, "32bitFloat": Float32Array };
34706
- return _0x2f2c32[this[_0x2bb36d(294)]["encoding"]] ? _0x2f2c32[this[_0x2bb36d(294)][_0x2bb36d(362)]] : _0x2f2c32["16bitInt"];
34707
- }, A[_0x3a757e(445)][_0x3a757e(417)] = function() {
34708
- const _0x19e7df = _0x3a757e;
34709
- this[_0x19e7df(338)] = new (window[_0x19e7df(344)] || window[_0x19e7df(231)])(), this[_0x19e7df(372)] = this[_0x19e7df(338)][_0x19e7df(256)](), this[_0x19e7df(372)][_0x19e7df(463)]["value"] = 1, this[_0x19e7df(372)][_0x19e7df(476)](this[_0x19e7df(338)][_0x19e7df(441)]), this[_0x19e7df(295)] = this[_0x19e7df(338)][_0x19e7df(503)];
34710
- }, A[_0x3a757e(445)]["isTypedArray"] = function(_0x49fa25) {
34711
- const _0x29a454 = _0x3a757e;
34712
- return _0x49fa25[_0x29a454(466)] && _0x49fa25[_0x29a454(444)] && _0x49fa25[_0x29a454(444)][_0x29a454(313)] == ArrayBuffer;
34713
- }, A["prototype"]["feed"] = function(_0x460701) {
34714
- const _0x4a3f59 = _0x3a757e;
34715
- if (this["isTypedArray"](_0x460701)) {
34716
- _0x460701 = this[_0x4a3f59(345)](_0x460701);
34717
- var _0x5df3cb = new Float32Array(this[_0x4a3f59(288)]["length"] + _0x460701[_0x4a3f59(374)]);
34718
- _0x5df3cb[_0x4a3f59(402)](this[_0x4a3f59(288)], 0), _0x5df3cb["set"](_0x460701, this[_0x4a3f59(288)][_0x4a3f59(374)]), this[_0x4a3f59(288)] = _0x5df3cb;
34719
- }
34720
- }, A[_0x3a757e(445)][_0x3a757e(345)] = function(_0xcb6998) {
34721
- const _0x2dbee0 = _0x3a757e;
34722
- var _0xcb6998 = new this["typedArray"](_0xcb6998[_0x2dbee0(444)]), _0x21d3c6 = new Float32Array(_0xcb6998[_0x2dbee0(374)]), _0x4d9c94;
34723
- for (_0x4d9c94 = 0; _0x4d9c94 < _0xcb6998[_0x2dbee0(374)]; _0x4d9c94++) _0x21d3c6[_0x4d9c94] = _0xcb6998[_0x4d9c94] / this[_0x2dbee0(269)];
34724
- return _0x21d3c6;
34725
- }, A["prototype"][_0x3a757e(408)] = function(_0x33b9bf) {
34726
- const _0x2ec98c = _0x3a757e;
34727
- this["gainNode"][_0x2ec98c(463)][_0x2ec98c(219)] = _0x33b9bf;
34728
- }, A[_0x3a757e(445)][_0x3a757e(373)] = function() {
34729
- const _0x1bb947 = _0x3a757e;
34730
- this["interval"] && clearInterval(this[_0x1bb947(301)]), this[_0x1bb947(288)] = null, this[_0x1bb947(338)] && this[_0x1bb947(338)][_0x1bb947(308)](), this[_0x1bb947(338)] = null;
34731
- }, A[_0x3a757e(445)][_0x3a757e(410)] = function() {
34732
- const _0x3fc705 = _0x3a757e;
34733
- if (this[_0x3fc705(288)][_0x3fc705(374)]) {
34734
- var _0x3b3988 = this[_0x3fc705(338)][_0x3fc705(452)](), _0x601e56 = this["samples"][_0x3fc705(374)] / this[_0x3fc705(294)][_0x3fc705(492)], _0x9d448d = this[_0x3fc705(338)][_0x3fc705(440)](this["option"]["channels"], _0x601e56, this[_0x3fc705(294)][_0x3fc705(238)]), _0x3b2356, _0x3883a4, _0x13c68, _0x1506de, _0xceb2f9;
34735
- for (_0x3883a4 = 0; _0x3883a4 < this[_0x3fc705(294)][_0x3fc705(492)]; _0x3883a4++) for (_0x3b2356 = _0x9d448d[_0x3fc705(527)](_0x3883a4), _0x13c68 = _0x3883a4, _0xceb2f9 = 50, _0x1506de = 0; _0x1506de < _0x601e56; _0x1506de++) _0x3b2356[_0x1506de] = this["samples"][_0x13c68], _0x1506de < 50 && (_0x3b2356[_0x1506de] = _0x3b2356[_0x1506de] * _0x1506de / 50), _0x1506de >= _0x601e56 - 51 && (_0x3b2356[_0x1506de] = _0x3b2356[_0x1506de] * _0xceb2f9-- / 50), _0x13c68 += this[_0x3fc705(294)][_0x3fc705(492)];
34736
- this[_0x3fc705(295)] < this[_0x3fc705(338)][_0x3fc705(503)] && (this["startTime"] = this[_0x3fc705(338)][_0x3fc705(503)]), _0x3b3988["buffer"] = _0x9d448d, _0x3b3988[_0x3fc705(476)](this[_0x3fc705(372)]), _0x3b3988[_0x3fc705(469)](this[_0x3fc705(295)]), this[_0x3fc705(295)] += _0x9d448d[_0x3fc705(495)], this["samples"] = new Float32Array();
34703
+ _0x38cbbb = 0;
34704
+ }
34705
+ return _0x38cbbb > Date["now"]() / 1e3;
34706
+ }
34707
+ const j = (_0xc698cc) => _0xc698cc[_0x5609b8(457)](new RegExp(/(\d{3})\d*(\d{4})/), _0x5609b8(235));
34708
+ function A(_0x3ccebd) {
34709
+ const _0x586a1b = _0x5609b8;
34710
+ this[_0x586a1b(191)](_0x3ccebd);
34711
+ }
34712
+ A[_0x5609b8(225)][_0x5609b8(191)] = function(_0x15c10f) {
34713
+ const _0x531861 = _0x5609b8;
34714
+ var _0x213537 = { "encoding": _0x531861(352), "channels": 1, "sampleRate": 8e3, "flushingTime": 1e3 };
34715
+ this["option"] = Object[_0x531861(413)]({}, _0x213537, _0x15c10f), this[_0x531861(240)] = new Float32Array(), this[_0x531861(292)] = this[_0x531861(292)][_0x531861(158)](this), this[_0x531861(271)] = setInterval(this["flush"], this[_0x531861(433)][_0x531861(272)]), this[_0x531861(159)] = this[_0x531861(279)](), this[_0x531861(304)] = this[_0x531861(286)](), this[_0x531861(195)]();
34716
+ }, A[_0x5609b8(225)]["getMaxValue"] = function() {
34717
+ const _0x734ea7 = _0x5609b8;
34718
+ var _0x2fd9a8 = { "8bitInt": 128, "16bitInt": 32768, "32bitInt": 2147483648, "32bitFloat": 1 };
34719
+ return _0x2fd9a8[this[_0x734ea7(433)][_0x734ea7(162)]] ? _0x2fd9a8[this[_0x734ea7(433)][_0x734ea7(162)]] : _0x2fd9a8[_0x734ea7(352)];
34720
+ }, A[_0x5609b8(225)]["getTypedArray"] = function() {
34721
+ const _0x236815 = _0x5609b8;
34722
+ var _0x2f95e2 = { "8bitInt": Int8Array, "16bitInt": Int16Array, "32bitInt": Int32Array, "32bitFloat": Float32Array };
34723
+ return _0x2f95e2[this[_0x236815(433)][_0x236815(162)]] ? _0x2f95e2[this[_0x236815(433)]["encoding"]] : _0x2f95e2[_0x236815(352)];
34724
+ }, A[_0x5609b8(225)]["createContext"] = function() {
34725
+ const _0x50b71b = _0x5609b8;
34726
+ this[_0x50b71b(259)] = new (window[_0x50b71b(193)] || window["webkitAudioContext"])(), this[_0x50b71b(364)] = this[_0x50b71b(259)]["createGain"](), this["gainNode"]["gain"][_0x50b71b(172)] = 1, this[_0x50b71b(364)][_0x50b71b(316)](this["audioCtx"][_0x50b71b(151)]), this[_0x50b71b(416)] = this[_0x50b71b(259)][_0x50b71b(229)];
34727
+ }, A[_0x5609b8(225)][_0x5609b8(421)] = function(_0x25c93f) {
34728
+ const _0x259d5e = _0x5609b8;
34729
+ return _0x25c93f[_0x259d5e(187)] && _0x25c93f[_0x259d5e(351)] && _0x25c93f["buffer"]["constructor"] == ArrayBuffer;
34730
+ }, A[_0x5609b8(225)][_0x5609b8(343)] = function(_0x2563e5) {
34731
+ const _0x1ba46e = _0x5609b8;
34732
+ if (this[_0x1ba46e(421)](_0x2563e5)) {
34733
+ _0x2563e5 = this["getFormatedValue"](_0x2563e5);
34734
+ var _0x3045f2 = new Float32Array(this[_0x1ba46e(240)]["length"] + _0x2563e5["length"]);
34735
+ _0x3045f2[_0x1ba46e(347)](this[_0x1ba46e(240)], 0), _0x3045f2[_0x1ba46e(347)](_0x2563e5, this[_0x1ba46e(240)][_0x1ba46e(289)]), this[_0x1ba46e(240)] = _0x3045f2;
34736
+ }
34737
+ }, A["prototype"][_0x5609b8(399)] = function(_0x4b8c6f) {
34738
+ const _0x126b64 = _0x5609b8;
34739
+ var _0x4b8c6f = new this[_0x126b64(304)](_0x4b8c6f["buffer"]), _0x23db34 = new Float32Array(_0x4b8c6f[_0x126b64(289)]), _0x5316f0;
34740
+ for (_0x5316f0 = 0; _0x5316f0 < _0x4b8c6f[_0x126b64(289)]; _0x5316f0++) _0x23db34[_0x5316f0] = _0x4b8c6f[_0x5316f0] / this[_0x126b64(159)];
34741
+ return _0x23db34;
34742
+ }, A[_0x5609b8(225)][_0x5609b8(223)] = function(_0x3bc603) {
34743
+ const _0x97ac88 = _0x5609b8;
34744
+ this[_0x97ac88(364)][_0x97ac88(273)][_0x97ac88(172)] = _0x3bc603;
34745
+ }, A[_0x5609b8(225)][_0x5609b8(375)] = function() {
34746
+ const _0x14eda6 = _0x5609b8;
34747
+ this["interval"] && clearInterval(this[_0x14eda6(271)]), this[_0x14eda6(240)] = null, this[_0x14eda6(259)] && this["audioCtx"]["close"](), this[_0x14eda6(259)] = null;
34748
+ }, A["prototype"]["flush"] = function() {
34749
+ const _0x577fca = _0x5609b8;
34750
+ if (this["samples"][_0x577fca(289)]) {
34751
+ var _0x39e59a = this[_0x577fca(259)][_0x577fca(355)](), _0x16b8d8 = this[_0x577fca(240)]["length"] / this["option"][_0x577fca(309)], _0xdb848e = this[_0x577fca(259)]["createBuffer"](this[_0x577fca(433)][_0x577fca(309)], _0x16b8d8, this[_0x577fca(433)][_0x577fca(211)]), _0x1051c8, _0x6382fb, _0x55d5d2, _0x3711bb, _0x3a9699;
34752
+ for (_0x6382fb = 0; _0x6382fb < this["option"][_0x577fca(309)]; _0x6382fb++) for (_0x1051c8 = _0xdb848e[_0x577fca(263)](_0x6382fb), _0x55d5d2 = _0x6382fb, _0x3a9699 = 50, _0x3711bb = 0; _0x3711bb < _0x16b8d8; _0x3711bb++) _0x1051c8[_0x3711bb] = this[_0x577fca(240)][_0x55d5d2], _0x3711bb < 50 && (_0x1051c8[_0x3711bb] = _0x1051c8[_0x3711bb] * _0x3711bb / 50), _0x3711bb >= _0x16b8d8 - 51 && (_0x1051c8[_0x3711bb] = _0x1051c8[_0x3711bb] * _0x3a9699-- / 50), _0x55d5d2 += this[_0x577fca(433)][_0x577fca(309)];
34753
+ this[_0x577fca(416)] < this[_0x577fca(259)][_0x577fca(229)] && (this[_0x577fca(416)] = this[_0x577fca(259)][_0x577fca(229)]), _0x39e59a[_0x577fca(351)] = _0xdb848e, _0x39e59a[_0x577fca(316)](this[_0x577fca(364)]), _0x39e59a[_0x577fca(335)](this[_0x577fca(416)]), this[_0x577fca(416)] += _0xdb848e["duration"], this[_0x577fca(240)] = new Float32Array();
34737
34754
  }
34738
34755
  };
34739
34756
  let l = { "companyID": "", "employeeID": "", "token": "", "callOptions": {}, "onMessage": () => {
34740
34757
  } };
34741
- function H(_0x46161f) {
34742
- const _0xeece3 = _0x3a757e;
34743
- let _0x462cdc = "";
34758
+ function H(_0x3898f4) {
34759
+ const _0x134deb = _0x5609b8;
34760
+ let _0x19660c = "";
34744
34761
  try {
34745
- _0x462cdc = JSON["stringify"](_0x46161f);
34746
- } catch (_0x33c11b) {
34747
- console[_0xeece3(265)](_0xeece3(428), _0x33c11b);
34762
+ _0x19660c = JSON[_0x134deb(284)](_0x3898f4);
34763
+ } catch (_0x321b5a) {
34764
+ console["log"](_0x134deb(423), _0x321b5a);
34748
34765
  }
34749
- return _0x462cdc;
34766
+ return _0x19660c;
34750
34767
  }
34751
- function G(_0x3e99cb) {
34752
- const _0x514bec = _0x3a757e;
34753
- return _0x3e99cb === _0x514bec(459) ? _0x514bec(289) : _0x514bec(529);
34768
+ function G(_0x1edb92) {
34769
+ const _0x3de77b = _0x5609b8;
34770
+ return _0x1edb92 === _0x3de77b(182) ? _0x3de77b(434) : _0x3de77b(184);
34754
34771
  }
34755
- let M = "";
34772
+ let U = "";
34756
34773
  function $() {
34757
- U(), M = setInterval(() => {
34758
- const _0x5c817 = _0x548d;
34759
- c[_0x5c817(416)]({ "type": "SendMsg" });
34774
+ M(), U = setInterval(() => {
34775
+ const _0x45f353 = _0x4084;
34776
+ c["actionSeatHandleIncoming"]({ "type": _0x45f353(312) });
34760
34777
  }, 3e4);
34761
34778
  }
34762
- function _0x548d(_0x3113e7, _0x12a02c) {
34763
- const _0x37f668 = _0x37f6();
34764
- return _0x548d = function(_0x548d65, _0x37fb73) {
34765
- _0x548d65 = _0x548d65 - 215;
34766
- let _0x15e7d1 = _0x37f668[_0x548d65];
34767
- return _0x15e7d1;
34768
- }, _0x548d(_0x3113e7, _0x12a02c);
34769
- }
34770
- function U() {
34771
- M && clearInterval(M);
34779
+ function M() {
34780
+ U && clearInterval(U);
34772
34781
  }
34773
- const a = { "onceCall": false, "seatData": {}, "seatStatus": { "IsOnline": false, "IsAutoAnswer": false }, "instance": "", "voiceInstance": "", "status": _0x3a757e(498), "botStatus": _0x3a757e(498), "audio": document[_0x3a757e(284)](_0x3a757e(224)), "mediaDevice": [], "currentDeviceInfoInput": null, "currentDeviceInfoOutput": null, "recorder": "", "mediaConfig": { "sampleRate": 8e3 }, "customerInfo": null, "callingStage": "", "connectInfo": null, "connectKiwiSeat": null, "phoneRingAudio": "", "recordsData": [], "aiToSeatVoiceUrl": "", "aiToSeat": false, "autoClosed": false, "reconnectCount": 3, "callOnceStage": "" }, p = { "getterSeatAllList": () => a[_0x3a757e(332)][_0x3a757e(366)] || [], "getterSeatAudioInput"() {
34774
- const _0x2b4084 = _0x3a757e;
34775
- return a[_0x2b4084(519)][_0x2b4084(228)]((_0x18ef77) => _0x18ef77[_0x2b4084(432)] === _0x2b4084(404));
34782
+ const a = { "onceCall": false, "seatData": {}, "seatStatus": { "IsOnline": false, "IsAutoAnswer": false }, "instance": "", "voiceInstance": "", "status": _0x5609b8(236), "botStatus": "initial", "audio": document[_0x5609b8(175)](_0x5609b8(409)), "mediaDevice": [], "currentDeviceInfoInput": null, "currentDeviceInfoOutput": null, "recorder": "", "mediaConfig": { "sampleRate": 8e3 }, "customerInfo": null, "callingStage": "", "connectInfo": null, "connectKiwiSeat": null, "phoneRingAudio": "", "recordsData": [], "aiToSeatVoiceUrl": "", "aiToSeat": false, "autoClosed": false, "reconnectCount": 3, "callOnceStage": "" }, p = { "getterSeatAllList": () => a[_0x5609b8(179)]["results"] || [], "getterSeatAudioInput"() {
34783
+ const _0x5b9605 = _0x5609b8;
34784
+ return a["mediaDevice"][_0x5b9605(256)]((_0xfc9506) => _0xfc9506["kind"] === "audioinput");
34776
34785
  }, "getterSeatAudioOutput"() {
34777
- const _0x5a0527 = _0x3a757e;
34778
- return a[_0x5a0527(519)][_0x5a0527(228)]((_0x108450) => _0x108450[_0x5a0527(432)] === _0x5a0527(291));
34786
+ const _0x213740 = _0x5609b8;
34787
+ return a[_0x213740(197)][_0x213740(256)]((_0x3bd68a) => _0x3bd68a[_0x213740(406)] === "audiooutput");
34779
34788
  }, "getterSeatCurrentDeviceInfoInputID"() {
34780
- const _0x217d70 = _0x3a757e;
34781
- return a[_0x217d70(248)] ? a[_0x217d70(248)][_0x217d70(531)] : "";
34789
+ const _0x580954 = _0x5609b8;
34790
+ return a["currentDeviceInfoInput"] ? a["currentDeviceInfoInput"][_0x580954(275)] : "";
34782
34791
  }, "getterSeatCurrentDeviceInfoOutputID"() {
34783
- const _0x515d6c = _0x3a757e;
34784
- return a[_0x515d6c(462)] ? a["currentDeviceInfoOutput"][_0x515d6c(531)] : "";
34785
- }, "getterSeatCurrentPhoneRingAudio"(_0x18a169) {
34786
- const _0x2d82ce = _0x3a757e;
34787
- return _0x18a169[_0x2d82ce(394)];
34792
+ const _0xf9ae85 = _0x5609b8;
34793
+ return a[_0xf9ae85(302)] ? a[_0xf9ae85(302)][_0xf9ae85(275)] : "";
34794
+ }, "getterSeatCurrentPhoneRingAudio"(_0x289731) {
34795
+ const _0x59da90 = _0x5609b8;
34796
+ return _0x289731[_0x59da90(318)];
34788
34797
  }, "getterSeatCustomerInfo"() {
34789
- const _0x19c719 = _0x3a757e;
34790
- return a["customerInfo"] ? a[_0x19c719(355)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
34798
+ const _0x1a30b3 = _0x5609b8;
34799
+ return a[_0x1a30b3(257)] ? a[_0x1a30b3(257)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
34791
34800
  }, "getterSeatConnectInfo"() {
34792
- const _0x2a06a3 = _0x3a757e;
34793
- return a[_0x2a06a3(504)] ? a["connectInfo"] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
34801
+ const _0x353568 = _0x5609b8;
34802
+ return a[_0x353568(311)] ? a[_0x353568(311)] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
34794
34803
  }, "getterSeatIsRinging"() {
34795
- const _0xf446fa = _0x3a757e;
34796
- return a["callingStage"] === _0xf446fa(510);
34804
+ const _0x1c3131 = _0x5609b8;
34805
+ return a[_0x1c3131(438)] === _0x1c3131(365);
34797
34806
  }, "getterSeatIsConnected"() {
34798
- const _0x2aec96 = _0x3a757e;
34799
- return a[_0x2aec96(218)] === "connected";
34807
+ const _0x3d3104 = _0x5609b8;
34808
+ return a[_0x3d3104(438)] === _0x3d3104(219);
34800
34809
  }, "getterSeatIsHangup"() {
34801
- const _0x101e09 = _0x3a757e;
34802
- return a[_0x101e09(218)] === _0x101e09(232);
34810
+ const _0x1d14e6 = _0x5609b8;
34811
+ return a[_0x1d14e6(438)] === _0x1d14e6(431);
34803
34812
  }, "getterSeatStatus"() {
34804
- const _0x57c162 = _0x3a757e;
34805
- return a[_0x57c162(258)];
34813
+ const _0x546a43 = _0x5609b8;
34814
+ return a[_0x546a43(353)];
34806
34815
  }, "getterSeatCanCallout"() {
34807
- const _0x574b65 = _0x3a757e;
34808
- return a[_0x574b65(220)] === _0x574b65(314);
34816
+ const _0x296e13 = _0x5609b8;
34817
+ return a[_0x296e13(303)] === _0x296e13(219);
34809
34818
  }, "getterSeatBotStatus"() {
34810
34819
  return a["botStatus"];
34811
34820
  }, "getterSeatRecordsData"() {
34812
- const _0x28789a = _0x3a757e;
34813
- return a[_0x28789a(473)];
34821
+ return a["recordsData"];
34814
34822
  }, "getterSeatOnceCall"() {
34815
- const _0x7da418 = _0x3a757e;
34816
- return a[_0x7da418(442)];
34823
+ const _0x369095 = _0x5609b8;
34824
+ return a[_0x369095(328)];
34817
34825
  }, "getterAIToSeat"() {
34818
- const _0x24d52e = _0x3a757e;
34819
- return a[_0x24d52e(458)];
34826
+ const _0x44cbf8 = _0x5609b8;
34827
+ return a[_0x44cbf8(376)];
34820
34828
  }, "getterSeatCallOnceStage"() {
34821
- const _0x45ab10 = _0x3a757e;
34822
- return a[_0x45ab10(436)];
34829
+ const _0x5613fe = _0x5609b8;
34830
+ return a[_0x5613fe(426)];
34823
34831
  }, "getterSeatCallingStage"() {
34824
- const _0x17709e = _0x3a757e;
34825
- return a[_0x17709e(218)];
34832
+ const _0x1a24d6 = _0x5609b8;
34833
+ return a[_0x1a24d6(438)];
34826
34834
  } };
34827
34835
  let R = false, m = "";
34828
- const c = { "actionSeatInitVoiceWSInstance": (_0x347388) => {
34829
- const _0x53ca98 = _0x3a757e;
34830
- a[_0x53ca98(451)] && (console["log"](_0x53ca98(309), a[_0x53ca98(451)]), a["voiceInstance"][_0x53ca98(308)]());
34831
- const _0x24ca10 = new WebSocket(_0x347388["url"]);
34832
- _0x24ca10[_0x53ca98(370)] = _0x53ca98(397), _0x24ca10[_0x53ca98(446)] = () => {
34833
- const _0x395a76 = _0x53ca98;
34834
- n[_0x395a76(386)]({ "key": _0x395a76(521), "status": _0x395a76(314) });
34835
- }, _0x24ca10["onmessage"] = (_0x69e1b) => {
34836
- const _0x2fbf8e = _0x53ca98;
34837
- if (typeof _0x69e1b[_0x2fbf8e(437)] == _0x2fbf8e(526)) {
34838
- a[_0x2fbf8e(442)] && E(), n[_0x2fbf8e(304)]({ "type": _0x2fbf8e(363), "value": _0x69e1b["data"], "outputID": p[_0x2fbf8e(491)]() });
34836
+ const c = { "actionSeatInitVoiceWSInstance": (_0x36d0d5) => {
34837
+ const _0x5ab0e4 = _0x5609b8;
34838
+ a["voiceInstance"] && (console["log"](_0x5ab0e4(285), a[_0x5ab0e4(244)]), a[_0x5ab0e4(244)][_0x5ab0e4(322)]());
34839
+ const _0x2e7aaf = new WebSocket(_0x36d0d5[_0x5ab0e4(242)]);
34840
+ _0x2e7aaf[_0x5ab0e4(177)] = _0x5ab0e4(377), _0x2e7aaf["onopen"] = () => {
34841
+ const _0x5d7fad = _0x5ab0e4;
34842
+ n[_0x5d7fad(226)]({ "key": _0x5d7fad(422), "status": _0x5d7fad(219) });
34843
+ }, _0x2e7aaf[_0x5ab0e4(165)] = (_0xdc5ff) => {
34844
+ const _0x51b12f = _0x5ab0e4;
34845
+ if (typeof _0xdc5ff[_0x51b12f(270)] == _0x51b12f(190)) {
34846
+ a[_0x51b12f(328)] && E(), n[_0x51b12f(387)]({ "type": "srcStream", "value": _0xdc5ff[_0x51b12f(270)], "outputID": p[_0x51b12f(432)]() });
34839
34847
  return;
34840
34848
  }
34841
- let _0xbb46d6 = JSON[_0x2fbf8e(272)](_0x69e1b["data"]);
34842
- if (_0xbb46d6[_0x2fbf8e(239)] !== 0) {
34843
- c["actionHandleCallBack"]("Error", _0xbb46d6[_0x2fbf8e(488)]);
34849
+ let _0x1908f5 = JSON[_0x51b12f(333)](_0xdc5ff[_0x51b12f(270)]);
34850
+ if (_0x1908f5[_0x51b12f(245)] !== 0) {
34851
+ c["actionHandleCallBack"](_0x51b12f(308), _0x1908f5[_0x51b12f(428)]);
34844
34852
  return;
34845
34853
  }
34846
- switch (_0xbb46d6[_0x2fbf8e(435)]) {
34847
- case _0x2fbf8e(283):
34848
- n[_0x2fbf8e(386)]({ "key": "botStatus", "status": _0x2fbf8e(314) }), c[_0x2fbf8e(416)]({ "type": _0x2fbf8e(453), "wsType": _0x2fbf8e(497) });
34854
+ switch (_0x1908f5[_0x51b12f(253)]) {
34855
+ case _0x51b12f(373):
34856
+ n["SEAT_UPDATE_WEBSOCKET_STATUS"]({ "key": _0x51b12f(422), "status": _0x51b12f(219) }), c[_0x51b12f(317)]({ "type": "VoiceFrom", "wsType": "VoiceFromOther" });
34849
34857
  break;
34850
34858
  }
34851
- }, _0x24ca10["onclose"] = () => {
34852
- const _0x34b430 = _0x53ca98;
34853
- n[_0x34b430(233)](""), n[_0x34b430(386)]({ "key": _0x34b430(521), "status": _0x34b430(449) });
34854
- }, _0x24ca10[_0x53ca98(325)] = () => {
34855
- const _0x5b4553 = _0x53ca98;
34856
- console[_0x5b4553(265)](_0x5b4553(494)), [_0x5b4553(510), _0x5b4553(314)]["indexOf"](a[_0x5b4553(218)]) > -1 && n["SEAT_SEND_MESSAGE"]({ "Type": _0x5b4553(346), "Data": {}, "Code": 0, "Msg": "" + (a[_0x5b4553(458)] ? _0x5b4553(276) : a[_0x5b4553(442)] ? "TypeCallOnce" : ""), "TaskID": "" });
34857
- }, n["SEAT_SET_VoiceWS"](_0x24ca10);
34858
- }, "actionSeatInitWSInstance": (_0x366b08) => {
34859
- const _0xadddd8 = _0x3a757e;
34860
- if (a[_0xadddd8(368)]) {
34861
- console[_0xadddd8(265)]("已有websocket连接,重新连接。"), c["instanceClose"](), R = true;
34859
+ }, _0x2e7aaf[_0x5ab0e4(366)] = () => {
34860
+ const _0x4d1a33 = _0x5ab0e4;
34861
+ n[_0x4d1a33(380)](""), n[_0x4d1a33(226)]({ "key": _0x4d1a33(422), "status": "closed" });
34862
+ }, _0x2e7aaf[_0x5ab0e4(339)] = () => {
34863
+ const _0x46a700 = _0x5ab0e4;
34864
+ console[_0x46a700(252)](_0x46a700(454)), ["ringing", _0x46a700(219)][_0x46a700(149)](a["callingStage"]) > -1 && n[_0x46a700(255)]({ "Type": "SeatConnectClientFailed", "Data": {}, "Code": 0, "Msg": "" + (a[_0x46a700(376)] ? _0x46a700(233) : a["onceCall"] ? _0x46a700(269) : ""), "TaskID": "" });
34865
+ }, n[_0x5ab0e4(380)](_0x2e7aaf);
34866
+ }, "actionSeatInitWSInstance": (_0x2c75ae) => {
34867
+ const _0x1f32a2 = _0x5609b8;
34868
+ if (a[_0x1f32a2(243)]) {
34869
+ console[_0x1f32a2(252)]("已有websocket连接,重新连接。"), c[_0x1f32a2(247)](), R = true;
34862
34870
  return;
34863
34871
  }
34864
- L(_0x366b08);
34872
+ L(_0x2c75ae);
34865
34873
  }, async "actionSeatTestEquipment"() {
34866
- const _0x105001 = _0x3a757e;
34867
- if (n[_0x105001(243)](), !x()) {
34868
- c["actionHandleCallBack"](_0x105001(467), _0x105001(365));
34874
+ const _0xcd0b57 = _0x5609b8;
34875
+ if (n[_0xcd0b57(232)](), !x()) {
34876
+ c[_0xcd0b57(150)](_0xcd0b57(308), _0xcd0b57(371));
34869
34877
  return;
34870
34878
  }
34871
34879
  try {
34872
- const _0x48954f = await navigator[_0x105001(249)][_0x105001(319)]({ "audio": { "advanced": [{ "deviceId": p[_0x105001(502)]() }] } });
34873
- return n[_0x105001(304)]({ "type": _0x105001(312), "value": _0x48954f, "outputID": p[_0x105001(491)]() }), navigator[_0x105001(249)][_0x105001(300)]();
34874
- } catch (_0x66e7a5) {
34875
- O(_0x66e7a5);
34880
+ const _0x3fab88 = await navigator[_0xcd0b57(265)][_0xcd0b57(173)]({ "audio": { "advanced": [{ "deviceId": p[_0xcd0b57(340)]() }] } });
34881
+ return n[_0xcd0b57(387)]({ "type": _0xcd0b57(267), "value": _0x3fab88, "outputID": p[_0xcd0b57(432)]() }), navigator[_0xcd0b57(265)][_0xcd0b57(398)]();
34882
+ } catch (_0x187a33) {
34883
+ O(_0x187a33);
34876
34884
  }
34877
34885
  }, async "actionSeatStartPlayer"() {
34878
- const _0x587869 = _0x3a757e;
34886
+ const _0x965c58 = _0x5609b8;
34879
34887
  try {
34880
- m = new A({ "encoding": _0x587869(237), "channels": 1, "sampleRate": 8e3, "flushingTime": 0 });
34881
- } catch (_0x2683e8) {
34882
- console[_0x587869(265)](_0x2683e8);
34888
+ m = new A({ "encoding": _0x965c58(352), "channels": 1, "sampleRate": 8e3, "flushingTime": 0 });
34889
+ } catch (_0x1ecbfd) {
34890
+ console[_0x965c58(252)](_0x1ecbfd);
34883
34891
  }
34884
34892
  }, async "actionSeatStartTalk"() {
34885
- const _0x538c11 = _0x3a757e;
34893
+ const _0x18c7ff = _0x5609b8;
34886
34894
  if (!x()) {
34887
- c[_0x538c11(431)](_0x538c11(467), _0x538c11(365));
34895
+ c["actionHandleCallBack"](_0x18c7ff(308), "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。");
34888
34896
  return;
34889
34897
  }
34890
34898
  try {
34891
- a["recorder"] && a[_0x538c11(278)]["clear"]();
34892
- const _0x77e15a = await navigator[_0x538c11(249)]["getUserMedia"]({ "audio": { "advanced": [{ "deviceId": p[_0x538c11(502)]() }] } });
34893
- a[_0x538c11(278)] = new Y(_0x77e15a, (_0x17fa21) => {
34894
- const _0x2b7f4c = _0x538c11;
34895
- c[_0x2b7f4c(475)](_0x17fa21);
34896
- }), a["recorder"][_0x538c11(469)]();
34897
- } catch (_0x37e7e8) {
34898
- O(_0x37e7e8);
34899
+ a[_0x18c7ff(301)] && a["recorder"][_0x18c7ff(164)]();
34900
+ const _0x17b594 = await navigator[_0x18c7ff(265)][_0x18c7ff(173)]({ "audio": { "advanced": [{ "deviceId": p[_0x18c7ff(340)]() }] } });
34901
+ a[_0x18c7ff(301)] = new Y(_0x17b594, (_0x55f73d) => {
34902
+ const _0x4d4d63 = _0x18c7ff;
34903
+ c[_0x4d4d63(361)](_0x55f73d);
34904
+ }), a[_0x18c7ff(301)][_0x18c7ff(335)]();
34905
+ } catch (_0x160ff3) {
34906
+ O(_0x160ff3);
34899
34907
  }
34900
34908
  }, "actionSeatStartWS"() {
34901
- const _0x56bf35 = _0x3a757e;
34902
- c[_0x56bf35(464)]({ "url": G(l[_0x56bf35(315)]) + "/v1/company/" + l["companyID"] + _0x56bf35(216) + l[_0x56bf35(223)] + _0x56bf35(246) + l["token"] });
34903
- }, "actionSeatVoiceWS"(_0x262aaa) {
34904
- const _0x2f8a8a = _0x3a757e;
34905
- let _0x5334dd = "";
34909
+ const _0x294eb1 = _0x5609b8;
34910
+ c[_0x294eb1(320)]({ "url": G(l[_0x294eb1(185)]) + "/v1/company/" + l["companyID"] + _0x294eb1(287) + l[_0x294eb1(357)] + _0x294eb1(392) + l["token"] });
34911
+ }, "actionSeatVoiceWS"(_0x284b20) {
34912
+ const _0x27f1e8 = _0x5609b8;
34913
+ let _0x9c8a94 = "";
34906
34914
  try {
34907
- _0x5334dd = (_0x262aaa && _0x262aaa[_0x2f8a8a(488)] ? JSON[_0x2f8a8a(272)](_0x262aaa["Msg"]) : [])[_0x2f8a8a(426)]((_0x31c507) => !_0x31c507[_0x2f8a8a(525)](_0x2f8a8a(528)));
34915
+ _0x9c8a94 = (_0x284b20 && _0x284b20[_0x27f1e8(428)] ? JSON["parse"](_0x284b20[_0x27f1e8(428)]) : [])[_0x27f1e8(249)]((_0x2e685d) => !_0x2e685d[_0x27f1e8(447)](_0x27f1e8(383)));
34908
34916
  } catch {
34909
- _0x5334dd = _0x262aaa && _0x262aaa[_0x2f8a8a(488)];
34917
+ _0x9c8a94 = _0x284b20 && _0x284b20["Msg"];
34910
34918
  }
34911
- c["actionSeatInitVoiceWSInstance"]({ "url": _0x2f8a8a(524) + _0x5334dd + "?key=" + (_0x262aaa && _0x262aaa[_0x2f8a8a(419)][_0x2f8a8a(381)]) });
34912
- }, "actionSeatSendVoice"(_0x27a03a) {
34913
- const _0x1c9559 = _0x3a757e;
34914
- n[_0x1c9559(379)](_0x27a03a);
34919
+ c[_0x27f1e8(415)]({ "url": _0x27f1e8(296) + _0x9c8a94 + _0x27f1e8(216) + (_0x284b20 && _0x284b20["Data"][_0x27f1e8(359)]) });
34920
+ }, "actionSeatSendVoice"(_0x4dd732) {
34921
+ const _0x11f0ad = _0x5609b8;
34922
+ n[_0x11f0ad(163)](_0x4dd732);
34915
34923
  }, async "actionGetMediaDevices"() {
34916
- const _0x70204c = _0x3a757e;
34924
+ const _0x354740 = _0x5609b8;
34917
34925
  try {
34918
- const _0x3648b1 = await navigator[_0x70204c(249)][_0x70204c(300)]();
34919
- n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x70204c(519), "value": _0x3648b1 }), console[_0x70204c(265)]("devices", _0x3648b1);
34926
+ const _0x1f975a = await navigator[_0x354740(265)]["enumerateDevices"]();
34927
+ n[_0x354740(442)]({ "key": "mediaDevice", "value": _0x1f975a }), console[_0x354740(252)](_0x354740(440), _0x1f975a);
34920
34928
  } catch {
34921
- c[_0x70204c(431)](_0x70204c(467), _0x70204c(245));
34929
+ c["actionHandleCallBack"](_0x354740(308), "获取设备列表失败,请检查浏览器权限设置");
34922
34930
  }
34923
- }, "actionSeatHandleIncoming"(_0x243052) {
34924
- const _0x3d4769 = _0x3a757e, { type: _0x345afe, data: _0x2df65c, wsType: _0x140cbe } = _0x243052;
34925
- switch (_0x345afe) {
34926
- case _0x3d4769(323):
34927
- n[_0x3d4769(423)]({ "Type": _0x3d4769(376), "Data": {}, "Code": 0, "Msg": "" + (a[_0x3d4769(458)] ? _0x3d4769(276) : a[_0x3d4769(442)] ? _0x3d4769(286) : ""), "TaskID": "" });
34931
+ }, "actionSeatHandleIncoming"(_0x100031) {
34932
+ const _0x4ece09 = _0x5609b8, { type: _0x4b00cd, data: _0x749880, wsType: _0x3a6109 } = _0x100031;
34933
+ switch (_0x4b00cd) {
34934
+ case "Answer":
34935
+ n["SEAT_SEND_MESSAGE"]({ "Type": _0x4ece09(209), "Data": {}, "Code": 0, "Msg": "" + (a[_0x4ece09(376)] ? _0x4ece09(233) : a[_0x4ece09(328)] ? _0x4ece09(269) : ""), "TaskID": "" });
34928
34936
  break;
34929
- case _0x3d4769(264):
34930
- n["SEAT_SEND_MESSAGE"]({ "Type": _0x3d4769(261), "Data": {}, "Code": 0, "Msg": "" + (a["aiToSeat"] ? _0x3d4769(276) : a[_0x3d4769(442)] ? _0x3d4769(286) : ""), "TaskID": "" });
34937
+ case _0x4ece09(385):
34938
+ n["SEAT_SEND_MESSAGE"]({ "Type": _0x4ece09(231), "Data": {}, "Code": 0, "Msg": a[_0x4ece09(376)] ? "TypeAIToSeat" : a["onceCall"] ? "TypeCallOnce" : "", "TaskID": "" });
34931
34939
  break;
34932
- case _0x3d4769(455):
34933
- n["SEAT_SEND_MESSAGE"]({ "Type": _0x3d4769(351), "Data": {}, "Code": 0, "Msg": "" + (a[_0x3d4769(458)] ? _0x3d4769(276) : a[_0x3d4769(442)] ? _0x3d4769(286) : ""), "TaskID": "" });
34940
+ case _0x4ece09(288):
34941
+ n["SEAT_SEND_MESSAGE"]({ "Type": _0x4ece09(239), "Data": {}, "Code": 0, "Msg": "" + (a[_0x4ece09(376)] ? _0x4ece09(233) : a[_0x4ece09(328)] ? _0x4ece09(269) : ""), "TaskID": "" });
34934
34942
  break;
34935
- case _0x3d4769(334):
34936
- n[_0x3d4769(423)]({ "Type": _0x3d4769(324), "Data": _0x2df65c, "Code": 0, "Msg": _0x3d4769(286), "TaskID": "" });
34943
+ case _0x4ece09(217):
34944
+ n[_0x4ece09(255)]({ "Type": _0x4ece09(410), "Data": _0x749880, "Code": 0, "Msg": "TypeCallOnce", "TaskID": "" });
34937
34945
  break;
34938
- case "CallNext":
34939
- n[_0x3d4769(423)]({ "Type": "CallNext", "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
34946
+ case _0x4ece09(198):
34947
+ n["SEAT_SEND_MESSAGE"]({ "Type": _0x4ece09(198), "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
34940
34948
  break;
34941
- case _0x3d4769(367):
34942
- console[_0x3d4769(265)](_0x3d4769(390), _0x2df65c), n[_0x3d4769(423)]({ "Type": "TypeCallOnce", "Data": _0x2df65c, "Code": 0, "Msg": "", "TaskID": "" }), n[_0x3d4769(513)]({ "key": _0x3d4769(355), "value": Object["assign"]({}, { "CustomerID": "", "Mobile": "", "Name": "", "PlanID": "", "Text": "", "Time": /* @__PURE__ */ new Date() }, _0x2df65c) });
34949
+ case _0x4ece09(261):
34950
+ console[_0x4ece09(252)](_0x4ece09(169), _0x749880), n[_0x4ece09(255)]({ "Type": _0x4ece09(269), "Data": _0x749880, "Code": 0, "Msg": "", "TaskID": "" }), n[_0x4ece09(442)]({ "key": _0x4ece09(257), "value": Object["assign"]({}, { "CustomerID": "", "Mobile": "", "Name": "", "PlanID": "", "Text": "", "Time": /* @__PURE__ */ new Date() }, _0x749880) });
34943
34951
  break;
34944
- case _0x3d4769(453):
34945
- n[_0x3d4769(379)](H({ "Type": _0x140cbe, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
34952
+ case _0x4ece09(379):
34953
+ n[_0x4ece09(163)](H({ "Type": _0x3a6109, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
34946
34954
  break;
34947
- case "SendMsg":
34948
- n[_0x3d4769(423)](_0x3d4769(409));
34955
+ case _0x4ece09(312):
34956
+ n[_0x4ece09(255)](_0x4ece09(205));
34949
34957
  break;
34950
34958
  }
34951
34959
  }, "instanceClose"() {
34952
- const _0x5e62a3 = _0x3a757e;
34953
- a[_0x5e62a3(368)] && (a[_0x5e62a3(368)][_0x5e62a3(308)](), n[_0x5e62a3(513)]({ "key": _0x5e62a3(368), "value": "" }));
34954
- }, "actionSeatUpdatePhoneRingAudio"(_0xbc3fa8) {
34955
- n["SEAT_SET_PHONERINGAUDIO"](_0xbc3fa8);
34956
- }, "actionSeatReconnectWSAfterClosed"(_0x14a6e6) {
34957
- const _0x5eb184 = _0x3a757e;
34958
- n[_0x5eb184(513)]({ "key": _0x5eb184(474), "value": _0x14a6e6 });
34959
- }, "actionHandleCallBack"(_0x52e0ea, _0x4e0cb2, _0x95f04 = {}) {
34960
- const _0x27f649 = _0x3a757e;
34961
- _0x95f04[_0x27f649(438)] !== void 0 && (_0x95f04[_0x27f649(361)] = btoa(_0x95f04[_0x27f649(438)] || "")), _0x95f04 && _0x95f04["Mobile"] && l[_0x27f649(307)] !== false && (_0x95f04[_0x27f649(438)] = j(_0x95f04[_0x27f649(438)])), l["callOptions"] && l["callOptions"][_0x27f649(293)] && (_0x95f04[_0x27f649(293)] = l["callOptions"][_0x27f649(293)]), l["callOptions"] && l[_0x27f649(460)]["CallBack"] && (_0x95f04[_0x27f649(250)] = l["callOptions"][_0x27f649(250)]), l[_0x27f649(353)] && l["onMessage"]({ "type": _0x52e0ea, "msg": _0x4e0cb2, "data": _0x95f04 });
34962
- } }, n = { "SEAT_SET_LIST"(_0xcb9b88) {
34963
- const _0x307bbe = _0x3a757e;
34964
- a[_0x307bbe(332)] = _0xcb9b88;
34965
- }, "SEAT_SET_WS"(_0x13b184) {
34966
- const _0x30e79c = _0x3a757e;
34967
- a[_0x30e79c(368)] = _0x13b184;
34968
- }, "SEAT_SET_VoiceWS"(_0x3ca8d6) {
34969
- a["voiceInstance"] = _0x3ca8d6;
34970
- }, "SEAT_SEND_MESSAGE"(_0x2ec306) {
34971
- const _0x209f93 = _0x3a757e;
34972
- a[_0x209f93(220)] === _0x209f93(314) && a["instance"] && a[_0x209f93(368)][_0x209f93(434)](H(_0x2ec306));
34973
- }, "SEAT_SEND_RAW_MESSAGE"(_0x46d231) {
34974
- const _0x261ab1 = _0x3a757e;
34975
- a[_0x261ab1(220)] === "connected" && a[_0x261ab1(451)] && a["botStatus"] === "connected" && a[_0x261ab1(451)][_0x261ab1(434)](_0x46d231);
34976
- }, "SEAT_UPDATE_WEBSOCKET_STATUS"(_0x25d258) {
34977
- const _0x56f439 = _0x3a757e;
34978
- a[_0x25d258[_0x56f439(421)]] = _0x25d258["status"];
34979
- }, "SEAT_SAVE_KEY_VALUE"(_0x5d6e05) {
34980
- const _0x583a4d = _0x3a757e, { key: _0x1d69b8, value: _0x21770f } = _0x5d6e05;
34981
- a[_0x1d69b8] = _0x21770f, _0x1d69b8 === "callingStage" && _0x21770f === _0x583a4d(232) && (c[_0x583a4d(416)]({ "type": "CallNext" }), h());
34982
- }, "SEAT_PLAY_AUDIO"(_0x34d24f) {
34983
- const _0x425ec8 = _0x3a757e;
34984
- let { type: _0x53dba9, value: _0x492be8 } = _0x34d24f;
34985
- if (_0x53dba9 === _0x425ec8(312)) a[_0x425ec8(224)][_0x425ec8(312)] = _0x492be8;
34960
+ const _0x3d2bcd = _0x5609b8;
34961
+ a[_0x3d2bcd(243)] && (a[_0x3d2bcd(243)][_0x3d2bcd(322)](), n[_0x3d2bcd(442)]({ "key": _0x3d2bcd(243), "value": "" }));
34962
+ }, "actionSeatUpdatePhoneRingAudio"(_0x30fcdd) {
34963
+ n["SEAT_SET_PHONERINGAUDIO"](_0x30fcdd);
34964
+ }, "actionSeatReconnectWSAfterClosed"(_0x20ce8f) {
34965
+ const _0x7aee91 = _0x5609b8;
34966
+ n[_0x7aee91(442)]({ "key": _0x7aee91(307), "value": _0x20ce8f });
34967
+ }, "actionHandleCallBack"(_0x44aa3e, _0x30287d, _0xba09bb = {}) {
34968
+ const _0x94fc3d = _0x5609b8;
34969
+ _0xba09bb[_0x94fc3d(250)] !== void 0 && (_0xba09bb["Str"] = btoa(_0xba09bb[_0x94fc3d(250)] || "")), _0xba09bb && _0xba09bb[_0x94fc3d(250)] && l[_0x94fc3d(330)] !== false && (_0xba09bb["Mobile"] = j(_0xba09bb[_0x94fc3d(250)])), l["callOptions"] && l["callOptions"][_0x94fc3d(424)] && (_0xba09bb[_0x94fc3d(424)] = l[_0x94fc3d(448)][_0x94fc3d(424)]), l[_0x94fc3d(448)] && l[_0x94fc3d(448)][_0x94fc3d(372)] && (_0xba09bb[_0x94fc3d(372)] = l[_0x94fc3d(448)][_0x94fc3d(372)]), l["onMessage"] && l[_0x94fc3d(212)]({ "type": _0x44aa3e, "msg": _0x30287d, "data": _0xba09bb });
34970
+ } }, n = { "SEAT_SET_LIST"(_0x35ee6d) {
34971
+ const _0x2e91ed = _0x5609b8;
34972
+ a[_0x2e91ed(179)] = _0x35ee6d;
34973
+ }, "SEAT_SET_WS"(_0x2d2f48) {
34974
+ const _0x27e0ed = _0x5609b8;
34975
+ a[_0x27e0ed(243)] = _0x2d2f48;
34976
+ }, "SEAT_SET_VoiceWS"(_0x2c436e) {
34977
+ const _0x5f33e7 = _0x5609b8;
34978
+ a[_0x5f33e7(244)] = _0x2c436e;
34979
+ }, "SEAT_SEND_MESSAGE"(_0x228fcd) {
34980
+ const _0x391e70 = _0x5609b8;
34981
+ a["status"] === _0x391e70(219) && a[_0x391e70(243)] && a[_0x391e70(243)][_0x391e70(258)](H(_0x228fcd));
34982
+ }, "SEAT_SEND_RAW_MESSAGE"(_0x305dfd) {
34983
+ const _0x39bcb7 = _0x5609b8;
34984
+ a[_0x39bcb7(303)] === _0x39bcb7(219) && a["voiceInstance"] && a[_0x39bcb7(422)] === _0x39bcb7(219) && a[_0x39bcb7(244)][_0x39bcb7(258)](_0x305dfd);
34985
+ }, "SEAT_UPDATE_WEBSOCKET_STATUS"(_0x46ec9f) {
34986
+ const _0x52100 = _0x5609b8;
34987
+ a[_0x46ec9f[_0x52100(414)]] = _0x46ec9f[_0x52100(303)];
34988
+ }, "SEAT_SAVE_KEY_VALUE"(_0x449e96) {
34989
+ const _0x4de005 = _0x5609b8, { key: _0x1bd62d, value: _0x58cb49 } = _0x449e96;
34990
+ a[_0x1bd62d] = _0x58cb49, _0x1bd62d === _0x4de005(438) && _0x58cb49 === _0x4de005(431) && C(true);
34991
+ }, "SEAT_PLAY_AUDIO"(_0x28d28f) {
34992
+ const _0x1cba50 = _0x5609b8;
34993
+ let { type: _0x1336c5, value: _0x30f39c } = _0x28d28f;
34994
+ if (_0x1336c5 === _0x1cba50(267)) a[_0x1cba50(409)][_0x1cba50(267)] = _0x30f39c;
34986
34995
  else {
34987
- if (_0x53dba9 === "src") a[_0x425ec8(224)][_0x425ec8(512)] = _0x492be8;
34996
+ if (_0x1336c5 === _0x1cba50(369)) a[_0x1cba50(409)]["src"] = _0x30f39c;
34988
34997
  else {
34989
- if (_0x53dba9 === _0x425ec8(363)) {
34990
- m && m[_0x425ec8(414)](new Int16Array(_0x492be8));
34998
+ if (_0x1336c5 === "srcStream") {
34999
+ m && m["feed"](new Int16Array(_0x30f39c));
34991
35000
  return;
34992
35001
  }
34993
35002
  }
34994
35003
  }
34995
35004
  }, "SEAT_RESET_AUDIO"() {
34996
- const _0xff5a60 = _0x3a757e;
34997
- a[_0xff5a60(224)] && a[_0xff5a60(224)][_0xff5a60(499)](), a[_0xff5a60(224)][_0xff5a60(312)] = null, a["audio"][_0xff5a60(512)] = "", a["audio"] = document[_0xff5a60(284)](_0xff5a60(224));
34998
- }, "SEAT_SET_PHONERINGAUDIO"(_0x4452be) {
34999
- const _0x19285a = _0x3a757e;
35000
- a[_0x19285a(394)] = _0x4452be;
35001
- }, "SEAT_SET_RECORDSDATA"(_0x2eb8d6) {
35002
- const _0x49ae46 = _0x3a757e;
35003
- if (!_0x2eb8d6) return;
35004
- if ([_0x49ae46(358)][_0x49ae46(347)](_0x2eb8d6[_0x49ae46(435)]) > -1) {
35005
- a[_0x49ae46(473)] = [];
35005
+ const _0x207cfc = _0x5609b8;
35006
+ a[_0x207cfc(409)] && a[_0x207cfc(409)][_0x207cfc(348)](), a["audio"][_0x207cfc(267)] = null, a["audio"][_0x207cfc(369)] = "", a[_0x207cfc(409)] = document[_0x207cfc(175)](_0x207cfc(409));
35007
+ }, "SEAT_SET_PHONERINGAUDIO"(_0x5d0a3e) {
35008
+ const _0x1a546c = _0x5609b8;
35009
+ a[_0x1a546c(318)] = _0x5d0a3e;
35010
+ }, "SEAT_SET_RECORDSDATA"(_0x24079a) {
35011
+ const _0x24d8df = _0x5609b8;
35012
+ if (!_0x24079a) return;
35013
+ if ([_0x24d8df(449)][_0x24d8df(149)](_0x24079a[_0x24d8df(253)]) > -1) {
35014
+ a["recordsData"] = [];
35006
35015
  return;
35007
35016
  }
35008
- let _0xdae1c4 = [];
35009
- if (_0x2eb8d6[_0x49ae46(435)] === _0x49ae46(360) && _0x2eb8d6[_0x49ae46(488)] === _0x49ae46(276) && (a["recordsData"] = [], _0xdae1c4 = (JSON[_0x49ae46(272)](_0x2eb8d6["Data"][_0x49ae46(383)])[_0x49ae46(336)] || [])[_0x49ae46(230)]((_0x1994f3) => Object["assign"]({}, _0x1994f3, { "ID": b() }))), a["recordsData"][_0x49ae46(374)] === 0) {
35010
- const _0x1219e8 = { "ID": b(), "PlanID": _0x2eb8d6["Data"][_0x49ae46(381)] ? _0x2eb8d6[_0x49ae46(419)][_0x49ae46(381)] : b(), "Messages": _0x2eb8d6["Type"] === _0x49ae46(360) && _0x2eb8d6[_0x49ae46(488)] === "TypeAIToSeat" ? _0xdae1c4 : [], "HangupBy": "", "ConvrVars": [], "Mobile": _0x2eb8d6["Data"] && _0x2eb8d6[_0x49ae46(419)][_0x49ae46(438)] ? _0x2eb8d6["Data"][_0x49ae46(438)] : "", "Sip": "", "VoiceID": "", "CallAt": _0x2eb8d6[_0x49ae46(419)] && _0x2eb8d6[_0x49ae46(419)]["Time"] ? _0x2eb8d6[_0x49ae46(419)]["Time"] : /* @__PURE__ */ new Date() };
35011
- a[_0x49ae46(473)] = [_0x1219e8];
35017
+ let _0x5e7477 = [];
35018
+ if (_0x24079a[_0x24d8df(253)] === "SeatConnectedResp" && _0x24079a[_0x24d8df(428)] === _0x24d8df(233) && (a[_0x24d8df(319)] = [], _0x5e7477 = (JSON[_0x24d8df(333)](_0x24079a[_0x24d8df(407)][_0x24d8df(401)])[_0x24d8df(218)] || [])[_0x24d8df(446)]((_0x39db5a) => Object[_0x24d8df(413)]({}, _0x39db5a, { "ID": b() }))), a[_0x24d8df(319)][_0x24d8df(289)] === 0) {
35019
+ const _0x3efe7c = { "ID": b(), "PlanID": _0x24079a[_0x24d8df(407)][_0x24d8df(359)] ? _0x24079a[_0x24d8df(407)][_0x24d8df(359)] : b(), "Messages": _0x24079a[_0x24d8df(253)] === "SeatConnectedResp" && _0x24079a[_0x24d8df(428)] === _0x24d8df(233) ? _0x5e7477 : [], "HangupBy": "", "ConvrVars": [], "Mobile": _0x24079a[_0x24d8df(407)] && _0x24079a[_0x24d8df(407)]["Mobile"] ? _0x24079a[_0x24d8df(407)]["Mobile"] : "", "Sip": "", "VoiceID": "", "CallAt": _0x24079a["Data"] && _0x24079a[_0x24d8df(407)][_0x24d8df(393)] ? _0x24079a[_0x24d8df(407)][_0x24d8df(393)] : /* @__PURE__ */ new Date() };
35020
+ a[_0x24d8df(319)] = [_0x3efe7c];
35012
35021
  }
35013
- const _0x42228e = a["recordsData"][0]["Messages"][_0x49ae46(374)] || 0, _0x3ecec2 = { "ID": b(), "Index": _0x42228e, "ProduceBy": _0x2eb8d6["Type"] === _0x49ae46(287) ? _0x49ae46(384) : _0x2eb8d6[_0x49ae46(435)] === _0x49ae46(456) ? _0x49ae46(514) : _0x49ae46(320), "VoiceID": "", "VoiceText": _0x2eb8d6[_0x49ae46(435)] === _0x49ae46(456) ? _0x2eb8d6[_0x49ae46(488)] : _0x2eb8d6["Data"][_0x49ae46(383)], "DurationSec": "", "RecordID": "", "RobotPID": "", "UpdatedAt": _0x49ae46(251), "Events": null, "CreatedAt": _0x49ae46(251), "DeletedAt": null };
35014
- (_0x2eb8d6[_0x49ae46(435)] !== _0x49ae46(360) && _0x2eb8d6["Type"] !== _0x49ae46(456) && _0x2eb8d6[_0x49ae46(419)][_0x49ae46(383)] || _0x2eb8d6[_0x49ae46(435)] === "RobotSay") && a[_0x49ae46(473)][0][_0x49ae46(336)][_0x49ae46(485)](_0x3ecec2);
35022
+ const _0x3c6a08 = a["recordsData"][0]["Messages"][_0x24d8df(289)] || 0, _0x3b1a04 = { "ID": b(), "Index": _0x3c6a08, "ProduceBy": _0x24079a[_0x24d8df(253)] === "CustomerSayText" ? _0x24d8df(183) : _0x24079a[_0x24d8df(253)] === _0x24d8df(293) ? _0x24d8df(282) : _0x24d8df(362), "VoiceID": "", "VoiceText": _0x24079a[_0x24d8df(253)] === _0x24d8df(293) ? _0x24079a["Msg"] : _0x24079a["Data"][_0x24d8df(401)], "DurationSec": "", "RecordID": "", "RobotPID": "", "UpdatedAt": "0001-01-01T00:00:00Z", "Events": null, "CreatedAt": _0x24d8df(167), "DeletedAt": null };
35023
+ (_0x24079a[_0x24d8df(253)] !== "SeatConnectedResp" && _0x24079a[_0x24d8df(253)] !== _0x24d8df(293) && _0x24079a["Data"][_0x24d8df(401)] || _0x24079a["Type"] === "RobotSay") && a[_0x24d8df(319)][0]["Messages"][_0x24d8df(354)](_0x3b1a04);
35015
35024
  } };
35016
- function _0x37f6() {
35017
- const _0x44a1c4 = ["CallBack", "0001-01-01T00:00:00Z", "forEach", "NotSupportedError", "SeatBusy", "22KdeIYo", "createGain", "getMaxValue", "seatStatus", "2690444XjdXwT", "exp", "SeatRefuse", "max", "坐席下线", "Reject", "log", "通话异常", "replace", "坐席说话", "maxValue", "SeatCancelResp", "Say", "parse", "readAsArrayBuffer", "CallConnected", "size", "TypeAIToSeat", "坐席拒接", "recorder", "play", "min", "mobile", "MatchKeyword", "WSConnected", "createElement", "getTypedArray", "TypeCallOnce", "CustomerSayText", "samples", "wss://api.kiwi.tuotoo.org", "缺少companyID、employeeID、token参数", "audiooutput", "outputSampleRate", "OutPlanID", "option", "startTime", "ended", "createMediaStreamSource", "updateConfig", "substr", "enumerateDevices", "interval", "reconnectCount", "aiToSeatRobotHangup", "SEAT_PLAY_AUDIO", "18DpeePt", "LineListID", "maskPhoneNumber", "close", "state.voiceInstance", "坐席上线成功", "getTracks", "srcObject", "constructor", "connected", "env", "getBlob", "InternetErrorHangUp", "state", "getUserMedia", "operator", "createScriptProcessor", "CallNext", "Answer", "SeatCancel", "onerror", "呼出成功", "onaudioprocess", "MandatoryUnsatisfiedError", "terminate", "addEventListener", "manualControlSeat", "seatData", "QualityNotice", "Cancel", "handleError", "Messages", "WSConnectedReplace", "audioCtx", "typedArray", "onmessage", "token过期", "CustomerCancel", "$1****$2", "AudioContext", "getFormatedValue", "SeatConnectClientFailed", "indexOf", "actionSeatVoiceWS", "缺少参数", "3OMLiYm", "SeatHangUp", "振铃中", "onMessage", "CallOnceFailed", "customerInfo", "onclose", "CustomerID", "CustomerConnected", "input", "SeatConnectedResp", "Str", "encoding", "srcStream", "inputBuffer", "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。", "results", "CallOnce", "instance", "result", "binaryType", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dududu.mp3", "gainNode", "destroy", "length", "inputSampleBits", "SeatConnected", "actionSeatStartWS", "SeatSayText", "SEAT_SEND_RAW_MESSAGE", "string", "PlanID", "4082780BRrgbO", "Text", "customer", "8736804ENwDVm", "SEAT_UPDATE_WEBSOCKET_STATUS", "10nCiHRE", "起呼中", "actionSeatStartPlayer", "呼叫参数", "坐席已挂机", "TaskID", "compress", "phoneRingAudio", "332955DGUztl", "random", "arraybuffer", "SeatRefuseResp", "getTime", "Time", "bind", "set", "instanceClose", "audioinput", "clear", "isAutoAnswer", "token", "volume", "ping", "flush", "planID", "RuleName", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dingdong.mp3", "feed", "online", "actionSeatHandleIncoming", "createContext", "自动接听", "Data", "error", "key", "77LVRRnh", "SEAT_SEND_MESSAGE", "setInt16", "坐席在其他地方上线", "find", "actionSeatStartTalk", "handleData", "init", "catch", "actionHandleCallBack", "kind", "qualityDictionaryIDs", "send", "Type", "callOnceStage", "data", "Mobile", "CallUnexpected", "createBuffer", "destination", "onceCall", "通话中", "buffer", "prototype", "onopen", "客户说话", "flushingTime", "closed", "1339965FbdQUh", "voiceInstance", "createBufferSource", "VoiceFrom", "lineListID", "Hangup", "RobotSay", "无法发现指定的硬件设备。", "aiToSeat", "test", "callOptions", "用户拒绝提供信息。", "currentDeviceInfoOutput", "gain", "actionSeatInitWSInstance", "context", "byteLength", "Error", "响铃中", "start", "呼叫失败", "qualityMonitorIDs", "errMsg", "recordsData", "autoClosed", "actionSeatSendVoice", "connect", "通话连接中", "inputSampleRate", "Online", "target", "defineProperty", "split", "未处理情况", "人机切换自动接听", "push", "InsufficientBalance", "then", "Msg", "PERMISSION_DENIED", "Offline", "getterSeatCurrentDeviceInfoOutputID", "channels", "stop", "actionSeatInitVoiceWSInstance异常", "duration", "companyID", "VoiceFromOther", "initial", "pause", "assign", "offline", "getterSeatCurrentDeviceInfoInputID", "currentTime", "connectInfo", "QualityDictionaryIDs", "actionSeatReconnectWSAfterClosed", "message", "SEAT_SET_RECORDSDATA", "encodePCM", "ringing", "SEAT_SET_WS", "src", "SEAT_SAVE_KEY_VALUE", "robot", "QualityMonitorIDs", "客户拒接", "CallConnecting", "aiToSeatVoiceUrl", "mediaDevice", "133312hTjdSG", "botStatus", "actions", "getterSeatCallOnceStage", "wss://", "includes", "object", "getChannelData", "rtmp://", "wss://api.kiwi.tuotoo.com", "循环响铃", "deviceId", "钱包/通话余量不足", "/seat/call/", "call", "callingStage", "value", "status", "symbol", "outputSampleBits", "employeeID", "audio", "CallOnceSuccess", "浏览器不支持硬件设备。", "qualityNoticeToCaller", "filter", "机器人说话", "map", "webkitAudioContext", "hangup", "SEAT_SET_VoiceWS", "140960RIjVrM", "QualityNoticeToCaller", "CustomerHangUp", "16bitInt", "sampleRate", "Code", "RobotPID", "disconnect", "MANDATORY_UNSATISFIED_ERROR", "SEAT_RESET_AUDIO", "SeatSay", "获取设备列表失败,请检查浏览器权限设置", "/websocket?access_token=", "taskID", "currentDeviceInfoInput", "mediaDevices"];
35018
- _0x37f6 = function() {
35019
- return _0x44a1c4;
35020
- };
35021
- return _0x37f6();
35022
- }
35023
- function L(_0xf89ad5) {
35024
- const _0x221e5c = _0x3a757e, _0x337915 = new WebSocket(_0xf89ad5["url"]);
35025
- _0x337915[_0x221e5c(446)] = () => {
35026
- const _0x1c9604 = _0x221e5c;
35027
- n[_0x1c9604(386)]({ "key": _0x1c9604(220), "status": _0x1c9604(314) });
35028
- }, _0x337915[_0x221e5c(340)] = (_0x515e03) => {
35029
- const _0x15507f = _0x221e5c;
35030
- let _0x474262 = JSON[_0x15507f(272)](_0x515e03[_0x15507f(437)]);
35031
- if (_0x474262[_0x15507f(239)] !== 0) {
35032
- c[_0x15507f(431)](_0x15507f(467), _0x474262[_0x15507f(488)]);
35033
- return;
35034
- }
35035
- switch (_0x474262["Type"]) {
35025
+ function L(_0x2d70c1) {
35026
+ const _0x579e74 = _0x5609b8, _0x1e2873 = new WebSocket(_0x2d70c1[_0x579e74(242)]);
35027
+ _0x1e2873[_0x579e74(300)] = () => {
35028
+ const _0x30040a = _0x579e74;
35029
+ n[_0x30040a(226)]({ "key": _0x30040a(303), "status": _0x30040a(219) });
35030
+ }, _0x1e2873[_0x579e74(165)] = (_0xa87661) => {
35031
+ const _0x5cb876 = _0x579e74;
35032
+ let _0xe374a4 = JSON["parse"](_0xa87661[_0x5cb876(270)]);
35033
+ switch (_0xe374a4[_0x5cb876(253)]) {
35036
35034
  case "WSConnected":
35037
- n[_0x15507f(386)]({ "key": _0x15507f(220), "status": _0x15507f(314) }), n[_0x15507f(511)](_0x337915), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(258), "value": { "IsOnline": true, "IsAutoAnswer": l[_0x15507f(406)] } }), n[_0x15507f(513)]({ "key": _0x15507f(302), "value": 3 }), c[_0x15507f(431)](_0x15507f(479), _0x15507f(310)), $(), l[_0x15507f(331)] || c["actionSeatHandleIncoming"]({ "type": "CallOnce", "data": l[_0x15507f(460)] });
35035
+ n[_0x5cb876(226)]({ "key": _0x5cb876(303), "status": "connected" }), n[_0x5cb876(156)](_0x1e2873), n[_0x5cb876(442)]({ "key": _0x5cb876(353), "value": { "IsOnline": true, "IsAutoAnswer": l["isAutoAnswer"] } }), n[_0x5cb876(442)]({ "key": "reconnectCount", "value": 3 }), c[_0x5cb876(150)]("Online", _0x5cb876(453)), $(), l[_0x5cb876(274)] || c["actionSeatHandleIncoming"]({ "type": _0x5cb876(261), "data": l["callOptions"] });
35038
35036
  break;
35039
- case _0x15507f(337):
35040
- c[_0x15507f(506)](false), c[_0x15507f(431)]("SeatConflict", _0x15507f(425));
35037
+ case _0x5cb876(241):
35038
+ c[_0x5cb876(280)](false), c[_0x5cb876(150)](_0x5cb876(445), _0x5cb876(154));
35041
35039
  break;
35042
- case "CallOnceRinging":
35043
- V(), n[_0x15507f(513)]({ "key": _0x15507f(518), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(436), "value": _0x15507f(352) }), n[_0x15507f(513)]({ "key": _0x15507f(355), "value": _0x474262["Data"] }), c[_0x15507f(431)](_0x15507f(517), _0x15507f(468), { "PlanID": _0x474262[_0x15507f(419)][_0x15507f(381)], "Mobile": _0x474262[_0x15507f(419)]["Mobile"] }), a[_0x15507f(442)] && (c[_0x15507f(389)](), c[_0x15507f(348)](_0x474262));
35040
+ case _0x5cb876(188):
35041
+ V(), n[_0x5cb876(442)]({ "key": _0x5cb876(207), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(426), "value": _0x5cb876(331) }), n[_0x5cb876(442)]({ "key": "customerInfo", "value": _0xe374a4[_0x5cb876(407)] }), c["actionHandleCallBack"](_0x5cb876(214), "响铃中", { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "Mobile": _0xe374a4["Data"][_0x5cb876(250)] }), a[_0x5cb876(328)] && (c["actionSeatStartPlayer"](), c[_0x5cb876(203)](_0xe374a4));
35044
35042
  break;
35045
- case "SeatQualityNotice":
35046
- const _0x7da539 = _0x474262[_0x15507f(419)];
35047
- c[_0x15507f(431)](_0x15507f(333), "您已触发质检规则", { "PlanID": _0x474262["Data"][_0x15507f(381)], "RuleName": _0x7da539[_0x15507f(412)], "DictionaryName": _0x7da539["DictionaryName"], "MatchKeyword": _0x7da539[_0x15507f(282)] });
35043
+ case _0x5cb876(192):
35044
+ const _0x57613c = _0xe374a4[_0x5cb876(407)];
35045
+ c["actionHandleCallBack"]("QualityNotice", _0x5cb876(306), { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "RuleName": _0x57613c[_0x5cb876(199)], "DictionaryName": _0x57613c[_0x5cb876(350)], "MatchKeyword": _0x57613c["MatchKeyword"] });
35048
35046
  break;
35049
- case _0x15507f(271):
35047
+ case _0x5cb876(315):
35050
35048
  break;
35051
- case _0x15507f(354):
35052
- n[_0x15507f(513)]({ "key": "callOnceStage", "value": Number(_0x474262[_0x15507f(239)]) === 203 ? _0x15507f(215) : _0x15507f(470) }), h(), c[_0x15507f(431)](Number(_0x474262["Code"]) === 203 ? _0x15507f(486) : _0x15507f(439), _0x474262[_0x15507f(488)]);
35049
+ case _0x5cb876(395):
35050
+ n["SEAT_SAVE_KEY_VALUE"]({ "key": "callOnceStage", "value": Number(_0xe374a4[_0x5cb876(245)]) === 203 ? _0x5cb876(356) : "呼叫失败" }), C(true), c[_0x5cb876(150)](Number(_0xe374a4[_0x5cb876(245)]) === 203 ? _0x5cb876(189) : _0x5cb876(388), _0xe374a4[_0x5cb876(428)]);
35053
35051
  break;
35054
- case "SeatConnectedResp":
35055
- n[_0x15507f(513)]({ "key": "connectInfo", "value": Object[_0x15507f(500)]({}, _0x474262["Data"], { "CustomerID": a[_0x15507f(504)] && a[_0x15507f(504)][_0x15507f(357)], "Time": a["connectInfo"] && a[_0x15507f(504)][_0x15507f(400)] }) }), n[_0x15507f(513)]({ "key": _0x15507f(218), "value": _0x15507f(314) }), n[_0x15507f(508)](_0x474262), E(), W(), a[_0x15507f(458)] && c[_0x15507f(348)](Object[_0x15507f(500)]({}, _0x474262, { "Msg": a[_0x15507f(518)] })), a[_0x15507f(442)] || (c[_0x15507f(389)](), c[_0x15507f(427)]()), c[_0x15507f(431)](_0x15507f(274), _0x15507f(443), { "PlanID": _0x474262[_0x15507f(419)][_0x15507f(381)], "Mobile": _0x474262["Data"][_0x15507f(438)] });
35052
+ case _0x5cb876(204):
35053
+ n[_0x5cb876(442)]({ "key": _0x5cb876(311), "value": Object[_0x5cb876(413)]({}, _0xe374a4[_0x5cb876(407)], { "CustomerID": a[_0x5cb876(311)] && a[_0x5cb876(311)][_0x5cb876(324)], "Time": a["connectInfo"] && a[_0x5cb876(311)][_0x5cb876(393)] }) }), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": _0x5cb876(219) }), n["SEAT_SET_RECORDSDATA"](_0xe374a4), E(), W(), a[_0x5cb876(376)] && c["actionSeatVoiceWS"](Object[_0x5cb876(413)]({}, _0xe374a4, { "Msg": a[_0x5cb876(207)] })), a[_0x5cb876(328)] || (c[_0x5cb876(260)](), c[_0x5cb876(196)]()), c[_0x5cb876(150)](_0x5cb876(186), _0x5cb876(436), { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "Mobile": _0xe374a4[_0x5cb876(407)]["Mobile"] });
35056
35054
  break;
35057
- case _0x15507f(358):
35058
- n[_0x15507f(513)]({ "key": "callingStage", "value": "ringing" }), n[_0x15507f(513)]({ "key": _0x15507f(436), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": "connectInfo", "value": _0x474262[_0x15507f(419)] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": "customerInfo", "value": _0x474262[_0x15507f(419)] }), n[_0x15507f(513)]({ "key": _0x15507f(458), "value": false }), n[_0x15507f(513)]({ "key": "aiToSeatVoiceUrl", "value": "" }), n["SEAT_SET_RECORDSDATA"](_0x474262), a["onceCall"] ? (c["actionSeatHandleIncoming"]({ "type": _0x15507f(323) }), n[_0x15507f(513)]({ "key": _0x15507f(218), "value": _0x15507f(314) }), c[_0x15507f(427)]()) : (V(), c[_0x15507f(348)](_0x474262), l[_0x15507f(406)] && setTimeout(() => {
35059
- const _0x577ebb = _0x15507f;
35060
- c[_0x577ebb(416)]({ "type": _0x577ebb(323) }), console[_0x577ebb(265)](_0x577ebb(418));
35061
- }, 500), c[_0x15507f(431)](_0x15507f(517), _0x15507f(477), { "PlanID": _0x474262["Data"][_0x15507f(381)], "Mobile": _0x474262[_0x15507f(419)][_0x15507f(438)] }));
35055
+ case _0x5cb876(449):
35056
+ n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": _0x5cb876(365) }), n[_0x5cb876(442)]({ "key": "callOnceStage", "value": "" }), n[_0x5cb876(442)]({ "key": _0x5cb876(311), "value": _0xe374a4[_0x5cb876(407)] }), n[_0x5cb876(442)]({ "key": "customerInfo", "value": _0xe374a4["Data"] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(376), "value": false }), n[_0x5cb876(442)]({ "key": _0x5cb876(207), "value": "" }), n[_0x5cb876(389)](_0xe374a4), a[_0x5cb876(328)] ? (c[_0x5cb876(317)]({ "type": _0x5cb876(384) }), n[_0x5cb876(442)]({ "key": "callingStage", "value": "connected" }), c["actionSeatStartTalk"]()) : (V(), c[_0x5cb876(203)](_0xe374a4), l[_0x5cb876(234)] && setTimeout(() => {
35057
+ const _0x525aa4 = _0x5cb876;
35058
+ c["actionSeatHandleIncoming"]({ "type": _0x525aa4(384) }), console["log"]("自动接听");
35059
+ }, 500), c[_0x5cb876(150)](_0x5cb876(214), _0x5cb876(266), { "PlanID": _0xe374a4[_0x5cb876(407)]["PlanID"], "Mobile": _0xe374a4[_0x5cb876(407)][_0x5cb876(250)] }));
35062
35060
  break;
35063
- case "SeatConnectClientFailedResp":
35064
- E(), h(), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(218), "value": "" }), c[_0x15507f(403)](), v(), c[_0x15507f(431)](_0x15507f(439), _0x15507f(266));
35061
+ case _0x5cb876(336):
35062
+ E(), C(), n[_0x5cb876(442)]({ "key": "callingStage", "value": "" }), c[_0x5cb876(247)](), v(), c[_0x5cb876(150)](_0x5cb876(388), _0x5cb876(455));
35065
35063
  break;
35066
- case _0x15507f(317):
35067
- E(), a[_0x15507f(278)] && a["recorder"][_0x15507f(493)](), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(218), "value": _0x15507f(232) }), c[_0x15507f(431)](_0x15507f(439), _0x15507f(266)), v();
35064
+ case _0x5cb876(254):
35065
+ E(), a["recorder"] && a[_0x5cb876(301)]["stop"](), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(438), "value": _0x5cb876(431) }), c[_0x5cb876(150)](_0x5cb876(388), "通话异常"), v();
35068
35066
  break;
35069
- case _0x15507f(236):
35070
- case _0x15507f(342):
35071
- a[_0x15507f(278)] && a[_0x15507f(278)][_0x15507f(493)](), E(), n[_0x15507f(513)]({ "key": _0x15507f(442), "value": false }), a[_0x15507f(218)] !== "connected" && c["actionSeatHandleIncoming"]({ "type": _0x15507f(322) }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(218), "value": a[_0x15507f(218)] === _0x15507f(314) ? _0x15507f(232) : "" }), c[_0x15507f(431)](_0x15507f(236), "客户已挂机"), v();
35067
+ case _0x5cb876(420):
35068
+ case _0x5cb876(291):
35069
+ a[_0x5cb876(301)] && a[_0x5cb876(301)]["stop"](), E(), n[_0x5cb876(442)]({ "key": _0x5cb876(328), "value": false }), a[_0x5cb876(438)] !== _0x5cb876(219) && c["actionSeatHandleIncoming"]({ "type": "CallNext" }), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": a["callingStage"] === _0x5cb876(219) ? _0x5cb876(431) : "" }), c[_0x5cb876(150)](_0x5cb876(420), _0x5cb876(367)), v();
35072
35070
  break;
35073
- case "CustomerRefuse":
35074
- h(), n[_0x15507f(513)]({ "key": _0x15507f(436), "value": _0x15507f(516) }), n[_0x15507f(513)]({ "key": _0x15507f(218), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(442), "value": false }), E(), c[_0x15507f(431)]("CustomerRefuse", _0x15507f(516)), v();
35071
+ case _0x5cb876(403):
35072
+ C(), n[_0x5cb876(442)]({ "key": "callOnceStage", "value": "客户拒接" }), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": "" }), n[_0x5cb876(442)]({ "key": _0x5cb876(328), "value": false }), E(), c[_0x5cb876(150)](_0x5cb876(403), _0x5cb876(155)), v();
35075
35073
  break;
35076
- case _0x15507f(351):
35077
- a[_0x15507f(278)] && a[_0x15507f(278)][_0x15507f(493)](), n[_0x15507f(513)]({ "key": _0x15507f(218), "value": _0x15507f(232) }), E();
35074
+ case _0x5cb876(239):
35075
+ a[_0x5cb876(301)] && a[_0x5cb876(301)][_0x5cb876(378)](), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": _0x5cb876(431) }), E();
35078
35076
  break;
35079
35077
  case "SeatHangUpResp":
35080
- a[_0x15507f(278)] && (a[_0x15507f(278)][_0x15507f(493)](), a[_0x15507f(278)] = null), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(218), "value": "hangup" }), n[_0x15507f(513)]({ "key": "onceCall", "value": false }), c[_0x15507f(431)]("SeatHangUp", _0x15507f(391));
35078
+ a[_0x5cb876(301)] && (a[_0x5cb876(301)][_0x5cb876(378)](), a["recorder"] = null), n[_0x5cb876(442)]({ "key": "callingStage", "value": _0x5cb876(431) }), n[_0x5cb876(442)]({ "key": _0x5cb876(328), "value": false }), c[_0x5cb876(150)](_0x5cb876(239), _0x5cb876(451));
35081
35079
  break;
35082
- case _0x15507f(398):
35083
- console[_0x15507f(265)](_0x15507f(277)), n[_0x15507f(513)]({ "key": _0x15507f(218), "value": "" }), E(), c[_0x15507f(416)]({ "type": "CallNext" });
35080
+ case "SeatRefuseResp":
35081
+ console[_0x5cb876(252)](_0x5cb876(437)), n["SEAT_SAVE_KEY_VALUE"]({ "key": "callingStage", "value": "" }), E(), c[_0x5cb876(317)]({ "type": _0x5cb876(198) });
35084
35082
  break;
35085
- case _0x15507f(270):
35086
- n[_0x15507f(513)]({ "key": _0x15507f(436), "value": "" }), n[_0x15507f(513)]({ "key": _0x15507f(442), "value": false }), c[_0x15507f(431)](_0x15507f(351), _0x15507f(391)), E();
35083
+ case "SeatCancelResp":
35084
+ n["SEAT_SAVE_KEY_VALUE"]({ "key": "callOnceStage", "value": "" }), n[_0x5cb876(442)]({ "key": "onceCall", "value": false }), c[_0x5cb876(150)](_0x5cb876(239), _0x5cb876(451)), E();
35087
35085
  break;
35088
- case _0x15507f(287):
35089
- n[_0x15507f(508)](_0x474262), c["actionHandleCallBack"]("CustomerSay", _0x15507f(447), { "PlanID": _0x474262[_0x15507f(419)][_0x15507f(381)], "Text": _0x474262["Data"]["Text"], "Time": _0x474262[_0x15507f(419)][_0x15507f(400)] });
35086
+ case _0x5cb876(349):
35087
+ n["SEAT_SET_RECORDSDATA"](_0xe374a4), c[_0x5cb876(150)](_0x5cb876(228), _0x5cb876(321), { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "Text": _0xe374a4[_0x5cb876(407)][_0x5cb876(401)], "Time": _0xe374a4["Data"][_0x5cb876(393)] });
35090
35088
  break;
35091
- case _0x15507f(378):
35092
- n[_0x15507f(508)](_0x474262), c[_0x15507f(431)](_0x15507f(244), _0x15507f(268), { "PlanID": _0x474262[_0x15507f(419)]["PlanID"], "Text": _0x474262[_0x15507f(419)]["Text"], "Time": _0x474262[_0x15507f(419)][_0x15507f(400)] });
35089
+ case _0x5cb876(418):
35090
+ n[_0x5cb876(389)](_0xe374a4), c["actionHandleCallBack"](_0x5cb876(161), _0x5cb876(411), { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "Text": _0xe374a4[_0x5cb876(407)][_0x5cb876(401)], "Time": _0xe374a4[_0x5cb876(407)][_0x5cb876(393)] });
35093
35091
  break;
35094
- case "RobotSay":
35095
- n[_0x15507f(508)](_0x474262), c[_0x15507f(431)](_0x15507f(456), _0x15507f(229), { "PlanID": _0x474262["Data"][_0x15507f(381)], "Text": _0x474262[_0x15507f(419)][_0x15507f(383)], "Time": _0x474262[_0x15507f(419)]["Time"] });
35092
+ case _0x5cb876(293):
35093
+ n[_0x5cb876(389)](_0xe374a4), c["actionHandleCallBack"](_0x5cb876(293), _0x5cb876(174), { "PlanID": _0xe374a4["Data"][_0x5cb876(359)], "Text": _0xe374a4[_0x5cb876(407)]["Text"], "Time": _0xe374a4[_0x5cb876(407)][_0x5cb876(393)] });
35096
35094
  break;
35097
- case _0x15507f(254):
35098
- c[_0x15507f(431)](_0x15507f(254), "坐席正忙");
35095
+ case _0x5cb876(170):
35096
+ c["actionHandleCallBack"]("SeatBusy", _0x5cb876(346));
35099
35097
  break;
35100
- case _0x15507f(225):
35101
- n[_0x15507f(513)]({ "key": _0x15507f(442), "value": true }), n[_0x15507f(513)]({ "key": _0x15507f(436), "value": _0x15507f(388) }), c[_0x15507f(431)]("CallOnceSuccess", _0x15507f(326));
35098
+ case "CallOnceSuccess":
35099
+ n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(328), "value": true }), n[_0x5cb876(442)]({ "key": _0x5cb876(426), "value": _0x5cb876(374) }), c[_0x5cb876(150)](_0x5cb876(178), _0x5cb876(342));
35102
35100
  break;
35103
- case _0x15507f(276):
35104
- n[_0x15507f(513)]({ "key": _0x15507f(218), "value": _0x15507f(510) }), V(), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(458), "value": true }), n[_0x15507f(513)]({ "key": _0x15507f(518), "value": _0x474262["Msg"] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(355), "value": _0x474262[_0x15507f(419)] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(504), "value": _0x474262["Data"] }), l[_0x15507f(406)] && setTimeout(() => {
35105
- const _0x27fcc3 = _0x15507f;
35106
- c[_0x27fcc3(416)]({ "type": _0x27fcc3(323) }), console[_0x27fcc3(265)](_0x27fcc3(484));
35107
- }, 500), c[_0x15507f(431)](_0x15507f(517), _0x15507f(468), { "PlanID": _0x474262[_0x15507f(419)][_0x15507f(381)], "Mobile": _0x474262["Data"]["Mobile"], "IsAIToSeat": true });
35101
+ case "TypeAIToSeat":
35102
+ n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(438), "value": _0x5cb876(365) }), V(), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(376), "value": true }), n[_0x5cb876(442)]({ "key": "aiToSeatVoiceUrl", "value": _0xe374a4["Msg"] }), n[_0x5cb876(442)]({ "key": "customerInfo", "value": _0xe374a4["Data"] }), n[_0x5cb876(442)]({ "key": "connectInfo", "value": _0xe374a4[_0x5cb876(407)] }), l[_0x5cb876(234)] && setTimeout(() => {
35103
+ const _0x56f306 = _0x5cb876;
35104
+ c[_0x56f306(317)]({ "type": _0x56f306(384) }), console[_0x56f306(252)]("人机切换自动接听");
35105
+ }, 500), c[_0x5cb876(150)](_0x5cb876(214), _0x5cb876(246), { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "Mobile": _0xe374a4[_0x5cb876(407)]["Mobile"], "IsAIToSeat": true });
35108
35106
  break;
35109
- case _0x15507f(303):
35110
- a[_0x15507f(278)] && a[_0x15507f(278)]["stop"](), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(218), "value": "" }), c[_0x15507f(416)]({ "type": _0x15507f(322) }), E();
35107
+ case _0x5cb876(297):
35108
+ a[_0x5cb876(301)] && a[_0x5cb876(301)][_0x5cb876(378)](), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": "" }), c[_0x5cb876(317)]({ "type": _0x5cb876(198) }), E();
35111
35109
  break;
35112
35110
  default:
35113
- console[_0x15507f(265)](_0x15507f(483));
35111
+ console[_0x5cb876(252)](_0x5cb876(452));
35114
35112
  break;
35115
35113
  }
35116
- }, _0x337915[_0x221e5c(356)] = () => {
35117
- const _0x39834e = _0x221e5c;
35118
- if (U(), c[_0x39834e(431)]("Offline", _0x39834e(263)), n[_0x39834e(511)](""), n[_0x39834e(386)]({ "key": _0x39834e(220), "status": _0x39834e(449) }), n[_0x39834e(513)]({ "key": _0x39834e(218), "value": "" }), n[_0x39834e(513)]({ "key": "seatStatus", "value": { "IsOnline": false, "IsAutoAnswer": l[_0x39834e(406)] } }), E(), a[_0x39834e(278)] && a[_0x39834e(278)][_0x39834e(493)](), m && m[_0x39834e(373)](), (R || a["autoClosed"]) && a[_0x39834e(302)] > 0) {
35119
- const _0x504edc = a[_0x39834e(302)] - 1;
35120
- console[_0x39834e(265)]("object"), R = false, L(_0xf89ad5), n[_0x39834e(513)]({ "key": _0x39834e(302), "value": _0x504edc });
35114
+ }, _0x1e2873["onclose"] = () => {
35115
+ const _0x25a0f8 = _0x579e74;
35116
+ if (M(), c[_0x25a0f8(150)](_0x25a0f8(323), _0x25a0f8(194)), n[_0x25a0f8(156)](""), n[_0x25a0f8(226)]({ "key": _0x25a0f8(303), "status": "closed" }), n[_0x25a0f8(442)]({ "key": _0x25a0f8(438), "value": "" }), n[_0x25a0f8(442)]({ "key": _0x25a0f8(353), "value": { "IsOnline": false, "IsAutoAnswer": l[_0x25a0f8(234)] } }), E(), a["recorder"] && a[_0x25a0f8(301)][_0x25a0f8(378)](), m && m["destroy"](), (R || a["autoClosed"]) && a[_0x25a0f8(405)] > 0) {
35117
+ const _0x55f036 = a["reconnectCount"] - 1;
35118
+ R = false, L(_0x2d70c1), n[_0x25a0f8(442)]({ "key": "reconnectCount", "value": _0x55f036 });
35121
35119
  }
35122
- }, _0x337915["onerror"] = () => {
35123
- const _0x5a8946 = _0x221e5c;
35124
- U(), c[_0x5a8946(431)](_0x5a8946(490), _0x5a8946(263)), c[_0x5a8946(403)](), c["actionHandleCallBack"](_0x5a8946(439), "通话异常");
35120
+ }, _0x1e2873[_0x579e74(339)] = () => {
35121
+ const _0x373373 = _0x579e74;
35122
+ M(), c[_0x373373(150)]("Offline", "坐席下线"), c["instanceClose"](), c[_0x373373(150)](_0x373373(388), _0x373373(455));
35125
35123
  };
35126
35124
  }
35127
- const q = (_0x31d3e3) => {
35128
- const _0x1e0562 = _0x3a757e;
35129
- l = _0x31d3e3, _0x31d3e3[_0x1e0562(331)] ? P[_0x1e0562(522)][_0x1e0562(416)]({ "type": _0x1e0562(367), "data": l["callOptions"] }) : c[_0x1e0562(377)]();
35130
- }, z = (_0x4da26f) => {
35131
- const _0x492f91 = _0x3a757e;
35132
- l = _0x4da26f, c[_0x492f91(377)]();
35125
+ const q = (_0x22f8bc) => {
35126
+ const _0x5282f8 = _0x5609b8;
35127
+ l = _0x22f8bc, _0x22f8bc[_0x5282f8(274)] ? P["actions"][_0x5282f8(317)]({ "type": "CallOnce", "data": l[_0x5282f8(448)] }) : c[_0x5282f8(325)]();
35128
+ }, z = (_0x558458) => {
35129
+ const _0x236722 = _0x5609b8;
35130
+ l = _0x558458, c[_0x236722(325)]();
35133
35131
  }, J = () => {
35134
- const _0x53c136 = _0x3a757e, _0x24045e = p[_0x53c136(523)]();
35135
- p["getterSeatIsRinging"]() ? c["actionSeatHandleIncoming"]({ "type": _0x53c136(264) }) : p["getterSeatIsConnected"]() ? c[_0x53c136(416)]({ "type": _0x53c136(455) }) : (_0x24045e === _0x53c136(352) || _0x24045e === _0x53c136(388)) && c[_0x53c136(416)]({ "type": "Cancel" }), h();
35136
- }, h = () => {
35132
+ const _0x21b722 = _0x5609b8, _0x173128 = p[_0x21b722(262)]();
35133
+ p[_0x21b722(248)]() ? c[_0x21b722(317)]({ "type": _0x21b722(385) }) : p[_0x21b722(222)]() ? c[_0x21b722(317)]({ "type": _0x21b722(288) }) : (_0x173128 === "振铃中" || _0x173128 === _0x21b722(374)) && c[_0x21b722(317)]({ "type": _0x21b722(217) }), C();
35134
+ }, C = (_0x27f898 = false) => {
35137
35135
  setTimeout(() => {
35138
- const _0x3a0b48 = _0x548d;
35139
- a[_0x3a0b48(451)] && a[_0x3a0b48(451)]["close"](), l["manualControlSeat"] || c["instanceClose"]();
35136
+ const _0x363751 = _0x4084;
35137
+ a[_0x363751(244)] && a[_0x363751(244)][_0x363751(322)](), l[_0x363751(274)] ? _0x27f898 && c[_0x363751(317)]({ "type": _0x363751(198) }) : c["instanceClose"]();
35140
35138
  }, 800);
35141
35139
  }, Q = () => {
35142
- const _0x4f07dd = _0x3a757e;
35143
- c[_0x4f07dd(416)]({ "type": _0x4f07dd(323) });
35144
- }, Z = (_0x4150ce) => {
35145
- const _0x1f812c = _0x3a757e;
35146
- _0x4150ce && (l = Object[_0x1f812c(500)]({}, l, _0x4150ce));
35140
+ c["actionSeatHandleIncoming"]({ "type": "Answer" });
35141
+ }, Z = (_0x7ba243) => {
35142
+ const _0x110e38 = _0x5609b8;
35143
+ _0x7ba243 && (l = Object[_0x110e38(413)]({}, l, _0x7ba243));
35147
35144
  }, P = { "actions": c };
35148
35145
  class ee {
35149
- constructor(_0x22222a) {
35150
- const _0x590005 = _0x3a757e;
35151
- w(this, "data"), this[_0x590005(437)] = _0x22222a;
35152
- }
35153
- [_0x3a757e(217)](_0x3b4331) {
35154
- const _0x398ea2 = _0x3a757e, { mobile: _0x5ec550, callBack: _0x2569e6 = "", outPlanID: _0x109087 = "", robotPID: _0x351478 = "" } = _0x3b4331;
35155
- if (!this["data"][_0x398ea2(496)] || !this[_0x398ea2(437)][_0x398ea2(223)] || !this[_0x398ea2(437)]["token"]) {
35156
- this[_0x398ea2(335)](_0x398ea2(290));
35146
+ constructor(_0x481aad) {
35147
+ const _0xa31d99 = _0x5609b8;
35148
+ w(this, _0xa31d99(270)), this["data"] = _0x481aad;
35149
+ }
35150
+ [_0x5609b8(417)](_0x49115b) {
35151
+ const _0x2d2967 = _0x5609b8, { mobile: _0x28702a, callBack: _0x3a23be = "", outPlanID: _0x5ef403 = "", robotPID: _0xb9254d = "" } = _0x49115b;
35152
+ if (!this[_0x2d2967(270)][_0x2d2967(439)] || !this[_0x2d2967(270)][_0x2d2967(357)] || !this[_0x2d2967(270)][_0x2d2967(206)]) {
35153
+ this[_0x2d2967(276)]("缺少companyID、employeeID、token参数");
35157
35154
  return;
35158
35155
  }
35159
- if (!_0x5ec550 && !_0x3b4331[_0x398ea2(411)]) {
35160
- this[_0x398ea2(335)](_0x398ea2(349));
35156
+ if (!_0x28702a && !_0x49115b["planID"]) {
35157
+ this[_0x2d2967(276)](_0x2d2967(278));
35161
35158
  return;
35162
35159
  }
35163
- if (!F(this[_0x398ea2(437)][_0x398ea2(407)])) {
35164
- this[_0x398ea2(335)](_0x398ea2(341));
35160
+ if (!F(this[_0x2d2967(270)][_0x2d2967(206)])) {
35161
+ this[_0x2d2967(276)](_0x2d2967(283));
35165
35162
  return;
35166
35163
  }
35167
- let _0x1edbe6 = { "Mobile": _0x3b4331[_0x398ea2(281)] };
35168
- _0x3b4331[_0x398ea2(454)] && (_0x1edbe6[_0x398ea2(306)] = _0x3b4331[_0x398ea2(454)]), _0x3b4331[_0x398ea2(411)] && (_0x1edbe6[_0x398ea2(381)] = _0x3b4331[_0x398ea2(411)]), _0x3b4331["taskID"] && (_0x1edbe6[_0x398ea2(392)] = _0x3b4331[_0x398ea2(247)]), _0x351478 && (_0x1edbe6[_0x398ea2(240)] = _0x351478), _0x109087 && (_0x1edbe6[_0x398ea2(293)] = _0x109087), _0x2569e6 && (_0x1edbe6[_0x398ea2(250)] = _0x2569e6), _0x3b4331[_0x398ea2(433)] && (_0x1edbe6[_0x398ea2(505)] = _0x3b4331[_0x398ea2(433)]), _0x3b4331[_0x398ea2(471)] && (_0x1edbe6[_0x398ea2(515)] = _0x3b4331[_0x398ea2(471)]), _0x3b4331[_0x398ea2(227)] && (_0x1edbe6[_0x398ea2(235)] = _0x3b4331[_0x398ea2(227)]), B(() => {
35169
- const _0x41c18c = _0x398ea2;
35170
- q(Object[_0x41c18c(500)]({}, this["data"], { "callOptions": _0x1edbe6 }));
35171
- }, (_0x386c83) => {
35172
- const _0x57c130 = _0x398ea2;
35173
- this[_0x57c130(335)](_0x386c83[_0x57c130(472)]);
35164
+ let _0x565e35 = { "Mobile": _0x49115b[_0x2d2967(358)] };
35165
+ _0x49115b[_0x2d2967(268)] && (_0x565e35[_0x2d2967(344)] = _0x49115b[_0x2d2967(268)]), _0x49115b[_0x2d2967(408)] && (_0x565e35[_0x2d2967(359)] = _0x49115b["planID"]), _0x49115b[_0x2d2967(153)] && (_0x565e35[_0x2d2967(237)] = _0x49115b[_0x2d2967(153)]), _0xb9254d && (_0x565e35[_0x2d2967(430)] = _0xb9254d), _0x5ef403 && (_0x565e35[_0x2d2967(424)] = _0x5ef403), _0x3a23be && (_0x565e35[_0x2d2967(372)] = _0x3a23be), _0x49115b[_0x2d2967(238)] && (_0x565e35[_0x2d2967(441)] = _0x49115b[_0x2d2967(238)]), _0x49115b[_0x2d2967(326)] && (_0x565e35[_0x2d2967(281)] = _0x49115b[_0x2d2967(326)]), _0x49115b[_0x2d2967(299)] && (_0x565e35[_0x2d2967(443)] = _0x49115b["qualityNoticeToCaller"]), B(() => {
35166
+ const _0x5b5edc = _0x2d2967;
35167
+ q(Object[_0x5b5edc(413)]({}, this[_0x5b5edc(270)], { "callOptions": _0x565e35 }));
35168
+ }, (_0x3ed876) => {
35169
+ const _0x288edc = _0x2d2967;
35170
+ this[_0x288edc(276)](_0x3ed876[_0x288edc(429)]);
35174
35171
  });
35175
35172
  }
35176
- [_0x3a757e(335)](_0x59ead4) {
35177
- const _0x3d4e52 = _0x3a757e;
35178
- this[_0x3d4e52(437)][_0x3d4e52(353)] && this[_0x3d4e52(437)][_0x3d4e52(353)]({ "type": _0x3d4e52(467), "msg": _0x59ead4 });
35173
+ ["handleError"](_0x42be27) {
35174
+ const _0x194525 = _0x5609b8;
35175
+ this[_0x194525(270)][_0x194525(212)] && this["data"][_0x194525(212)]({ "type": "Error", "msg": _0x42be27 });
35179
35176
  }
35180
- [_0x3a757e(329)]() {
35177
+ ["terminate"]() {
35181
35178
  J();
35182
35179
  }
35183
- ["answer"]() {
35180
+ [_0x5609b8(220)]() {
35184
35181
  Q();
35185
35182
  }
35186
- [_0x3a757e(415)]() {
35183
+ ["online"]() {
35187
35184
  B(() => {
35188
35185
  z(this["data"]);
35189
- }, (_0x207836) => {
35190
- const _0x9d6169 = _0x548d;
35191
- this["handleError"](_0x207836[_0x9d6169(472)]);
35186
+ }, (_0x586f73) => {
35187
+ const _0x3f0668 = _0x4084;
35188
+ this[_0x3f0668(276)](_0x586f73["errMsg"]);
35192
35189
  });
35193
35190
  }
35194
- [_0x3a757e(501)]() {
35195
- const _0x4f5ff4 = _0x3a757e;
35196
- P[_0x4f5ff4(522)][_0x4f5ff4(403)]();
35191
+ [_0x5609b8(200)]() {
35192
+ const _0x4d593b = _0x5609b8;
35193
+ P[_0x4d593b(345)][_0x4d593b(247)]();
35197
35194
  }
35198
- [_0x3a757e(298)](_0x387c0f) {
35199
- Z(_0x387c0f);
35195
+ [_0x5609b8(456)](_0xef22d8) {
35196
+ Z(_0xef22d8);
35200
35197
  }
35201
35198
  }
35202
35199
  const _hoisted_1$3 = {
@@ -36156,14 +36153,10 @@ const _sfc_main = {
36156
36153
  handleCallEnded();
36157
36154
  break;
36158
36155
  case "Error":
36159
- showError.value = true;
36160
- closeMsg.value = e.msg;
36161
- initData();
36162
- break;
36156
+ case "SeatBusy":
36163
36157
  case "CallUnexpected":
36164
36158
  showError.value = true;
36165
36159
  closeMsg.value = e.msg;
36166
- seatStatus.value = false;
36167
36160
  initData();
36168
36161
  break;
36169
36162
  case "Offline":