@zhangqingcq/vgce 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
package/dist/vgce.js CHANGED
@@ -6060,14 +6060,14 @@ var PathProxy = function() {
6060
6060
  break;
6061
6061
  }
6062
6062
  case CMD$2.A:
6063
- var xe = o[M++], At = o[M++], Cn = o[M++], In = o[M++], Dt = o[M++], he = o[M++], Et = o[M++], hn = !o[M++], vn = Cn > In ? Cn : In, kt = mathAbs$1(Cn - In) > 1e-3, Ce = Dt + he, de = !1;
6063
+ var xe = o[M++], At = o[M++], In = o[M++], Cn = o[M++], Dt = o[M++], he = o[M++], Et = o[M++], hn = !o[M++], vn = In > Cn ? In : Cn, kt = mathAbs$1(In - Cn) > 1e-3, Ce = Dt + he, de = !1;
6064
6064
  if (y) {
6065
6065
  var D = b[S++];
6066
6066
  w + D > T && (Ce = Dt + he * (T - w) / D, de = !0), w += D;
6067
6067
  }
6068
- if (kt && r.ellipse ? r.ellipse(xe, At, Cn, In, Et, Dt, Ce, hn) : r.arc(xe, At, vn, Dt, Ce, hn), de)
6068
+ if (kt && r.ellipse ? r.ellipse(xe, At, In, Cn, Et, Dt, Ce, hn) : r.arc(xe, At, vn, Dt, Ce, hn), de)
6069
6069
  break e;
6070
- ie && (d = mathCos$3(Dt) * Cn + xe, f = mathSin$3(Dt) * In + At), p = mathCos$3(Ce) * Cn + xe, _ = mathSin$3(Ce) * In + At;
6070
+ ie && (d = mathCos$3(Dt) * In + xe, f = mathSin$3(Dt) * Cn + At), p = mathCos$3(Ce) * In + xe, _ = mathSin$3(Ce) * Cn + At;
6071
6071
  break;
6072
6072
  case CMD$2.R:
6073
6073
  d = p = o[M], f = _ = o[M + 1], v = o[M++], g = o[M++];
@@ -7451,9 +7451,9 @@ function buildPath$1(i, r) {
7451
7451
  xe && (n = normalizeCornerRadius(xe), A = n[0], w = n[1], S = n[2], T = n[3]);
7452
7452
  var At = mathAbs(o - a) / 2;
7453
7453
  if (x = mathMin$1(At, S), L = mathMin$1(At, T), O = mathMin$1(At, A), M = mathMin$1(At, w), $ = k = mathMax$1(x, L), Y = ie = mathMax$1(O, M), (k > e || ie > e) && (D = o * mathCos$1(p), re = o * mathSin$1(p), F = a * mathCos$1(f), _e = a * mathSin$1(f), y < PI$3)) {
7454
- var Cn = intersect(ue, pe, F, _e, D, re, Fe, Ie);
7455
- if (Cn) {
7456
- var In = ue - Cn[0], Dt = pe - Cn[1], he = D - Cn[0], Et = re - Cn[1], hn = 1 / mathSin$1(mathACos((In * he + Dt * Et) / (mathSqrt(In * In + Dt * Dt) * mathSqrt(he * he + Et * Et))) / 2), vn = mathSqrt(Cn[0] * Cn[0] + Cn[1] * Cn[1]);
7454
+ var In = intersect(ue, pe, F, _e, D, re, Fe, Ie);
7455
+ if (In) {
7456
+ var Cn = ue - In[0], Dt = pe - In[1], he = D - In[0], Et = re - In[1], hn = 1 / mathSin$1(mathACos((Cn * he + Dt * Et) / (mathSqrt(Cn * Cn + Dt * Dt) * mathSqrt(he * he + Et * Et))) / 2), vn = mathSqrt(In[0] * In[0] + In[1] * In[1]);
7457
7457
  $ = mathMin$1(k, (o - vn) / (hn + 1)), Y = mathMin$1(ie, (a - vn) / (hn - 1));
7458
7458
  }
7459
7459
  }
@@ -13030,8 +13030,8 @@ function createOrUpdatePatternFromDecal(i, r) {
13030
13030
  if (At <= 0)
13031
13031
  break;
13032
13032
  if (Lt % 2 === 0) {
13033
- var Cn = (1 - c.symbolSize) * 0.5, In = Ie + w[pe][Lt] * Cn, Dt = F + S[_e] * Cn, he = w[pe][Lt] * c.symbolSize, Et = S[_e] * c.symbolSize, hn = xe / 2 % T[Fe].length;
13034
- vn(In, Dt, he, Et, T[Fe][hn]);
13033
+ var In = (1 - c.symbolSize) * 0.5, Cn = Ie + w[pe][Lt] * In, Dt = F + S[_e] * In, he = w[pe][Lt] * c.symbolSize, Et = S[_e] * c.symbolSize, hn = xe / 2 % T[Fe].length;
13034
+ vn(Cn, Dt, he, Et, T[Fe][hn]);
13035
13035
  }
13036
13036
  Ie += w[pe][Lt], ++xe, ++Lt, Lt === w[pe].length && (Lt = 0);
13037
13037
  }
@@ -15359,20 +15359,20 @@ function createCSSAnimation(i, r, n, o) {
15359
15359
  return ANIMATE_STYLE_MAP[de];
15360
15360
  });
15361
15361
  }
15362
- for (var Cn = keys(k), In = !0, Dt, Y = 1; Y < Cn.length; Y++) {
15363
- var he = Cn[Y - 1], Et = Cn[Y];
15362
+ for (var In = keys(k), Cn = !0, Dt, Y = 1; Y < In.length; Y++) {
15363
+ var he = In[Y - 1], Et = In[Y];
15364
15364
  if (k[he][transformOriginKey] !== k[Et][transformOriginKey]) {
15365
- In = !1;
15365
+ Cn = !1;
15366
15366
  break;
15367
15367
  }
15368
15368
  Dt = k[he][transformOriginKey];
15369
15369
  }
15370
- if (In && Dt) {
15370
+ if (Cn && Dt) {
15371
15371
  for (var F in k)
15372
15372
  k[F][transformOriginKey] && delete k[F][transformOriginKey];
15373
15373
  r[transformOriginKey] = Dt;
15374
15374
  }
15375
- if (filter(Cn, function(vn) {
15375
+ if (filter(In, function(vn) {
15376
15376
  return keys(k[vn]).length > 0;
15377
15377
  }).length) {
15378
15378
  var hn = addAnimation(k, n);
@@ -15944,11 +15944,11 @@ function pieLayout(i, r, n) {
15944
15944
  return;
15945
15945
  }
15946
15946
  O !== "area" ? Lt = T === 0 && M ? x : Fe * x : Lt = re / S, Lt < w ? (Lt = w, F -= w) : _e += Fe;
15947
- var xe = ue + ie * Lt, At = 0, Cn = 0;
15948
- b > Lt ? (At = ue + ie * Lt / 2, Cn = At) : (At = ue + Y, Cn = xe - Y), a.setItemLayout(Ie, {
15947
+ var xe = ue + ie * Lt, At = 0, In = 0;
15948
+ b > Lt ? (At = ue + ie * Lt / 2, In = At) : (At = ue + Y, In = xe - Y), a.setItemLayout(Ie, {
15949
15949
  angle: Lt,
15950
15950
  startAngle: At,
15951
- endAngle: Cn,
15951
+ endAngle: In,
15952
15952
  clockwise: L,
15953
15953
  cx: f,
15954
15954
  cy: p,
@@ -15969,8 +15969,8 @@ function pieLayout(i, r, n) {
15969
15969
  } else
15970
15970
  x = F / _e, ue = g, a.each(u, function(Fe, Ie) {
15971
15971
  if (!isNaN(Fe)) {
15972
- var Lt = a.getItemLayout(Ie), xe = Lt.angle === w ? w : Fe * x, At = 0, Cn = 0;
15973
- xe < b ? (At = ue + ie * xe / 2, Cn = At) : (At = ue + Y, Cn = ue + ie * xe - Y), Lt.startAngle = At, Lt.endAngle = Cn, ue += ie * xe;
15972
+ var Lt = a.getItemLayout(Ie), xe = Lt.angle === w ? w : Fe * x, At = 0, In = 0;
15973
+ xe < b ? (At = ue + ie * xe / 2, In = At) : (At = ue + Y, In = ue + ie * xe - Y), Lt.startAngle = At, Lt.endAngle = In, ue += ie * xe;
15974
15974
  }
15975
15975
  });
15976
15976
  });
@@ -16102,18 +16102,18 @@ function pieLabelLayout(i) {
16102
16102
  return;
16103
16103
  }
16104
16104
  if (b($)) {
16105
- var At = (ie.startAngle + ie.endAngle) / 2, Cn = Math.cos(At), In = Math.sin(At), Dt, he, Et, hn;
16105
+ var At = (ie.startAngle + ie.endAngle) / 2, In = Math.cos(At), Cn = Math.sin(At), Dt, he, Et, hn;
16106
16106
  o = ie.cx, a = ie.cy;
16107
16107
  var vn = F === "inside" || F === "inner";
16108
16108
  if (F === "center")
16109
16109
  Dt = ie.cx, he = ie.cy, hn = "center";
16110
16110
  else {
16111
- var kt = (vn ? (ie.r + ie.r0) / 2 * Cn : ie.r * Cn) + o, Ce = (vn ? (ie.r + ie.r0) / 2 * In : ie.r * In) + a;
16112
- if (Dt = kt + Cn * 3, he = Ce + In * 3, !vn) {
16113
- var de = kt + Cn * (Lt + f - ie.r), ze = Ce + In * (Lt + f - ie.r), Ne = de + (Cn < 0 ? -1 : 1) * xe, Ve = ze;
16114
- ue === "edge" ? Dt = Cn < 0 ? _ + pe : _ + p - pe : Dt = Ne + (Cn < 0 ? -_e : _e), he = Ve, Et = [[kt, Ce], [de, ze], [Ne, Ve]];
16111
+ var kt = (vn ? (ie.r + ie.r0) / 2 * In : ie.r * In) + o, Ce = (vn ? (ie.r + ie.r0) / 2 * Cn : ie.r * Cn) + a;
16112
+ if (Dt = kt + In * 3, he = Ce + Cn * 3, !vn) {
16113
+ var de = kt + In * (Lt + f - ie.r), ze = Ce + Cn * (Lt + f - ie.r), Ne = de + (In < 0 ? -1 : 1) * xe, Ve = ze;
16114
+ ue === "edge" ? Dt = In < 0 ? _ + pe : _ + p - pe : Dt = Ne + (In < 0 ? -_e : _e), he = Ve, Et = [[kt, Ce], [de, ze], [Ne, Ve]];
16115
16115
  }
16116
- hn = vn ? "center" : ue === "edge" ? Cn > 0 ? "right" : "left" : Cn > 0 ? "left" : "right";
16116
+ hn = vn ? "center" : ue === "edge" ? In > 0 ? "right" : "left" : In > 0 ? "left" : "right";
16117
16117
  }
16118
16118
  var Pt = Math.PI, jt = 0, _n = re.get("rotate");
16119
16119
  if (isNumber$1(_n))
@@ -16121,12 +16121,12 @@ function pieLabelLayout(i) {
16121
16121
  else if (F === "center")
16122
16122
  jt = 0;
16123
16123
  else if (_n === "radial" || _n === !0) {
16124
- var oe = Cn < 0 ? -At + Pt : -At;
16124
+ var oe = In < 0 ? -At + Pt : -At;
16125
16125
  jt = oe;
16126
16126
  } else if (_n === "tangential" && F !== "outside" && F !== "outer") {
16127
- var le = Math.atan2(Cn, In);
16127
+ var le = Math.atan2(In, Cn);
16128
16128
  le < 0 && (le = Pt * 2 + le);
16129
- var j = In > 0;
16129
+ var j = Cn > 0;
16130
16130
  j && (le = Pt + le), jt = le - Pt;
16131
16131
  }
16132
16132
  if (u = !!jt, $.x = Dt, $.y = he, $.rotation = jt, $.setStyle({
@@ -16149,7 +16149,7 @@ function pieLabelLayout(i) {
16149
16149
  len2: xe,
16150
16150
  minTurnAngle: Ie.get("minTurnAngle"),
16151
16151
  maxSurfaceAngle: Ie.get("maxSurfaceAngle"),
16152
- surfaceNormal: new Point$1(Cn, In),
16152
+ surfaceNormal: new Point$1(In, Cn),
16153
16153
  linePoints: Et,
16154
16154
  textAlign: hn,
16155
16155
  labelDistance: _e,
@@ -21445,7 +21445,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21445
21445
  },
21446
21446
  setup(i, { expose: r }) {
21447
21447
  useCssVars((Ie) => ({
21448
- "4dc61978": unref(v)
21448
+ "98c6b174": unref(v)
21449
21449
  }));
21450
21450
  const n = useGlobalStore(pinia), o = useConfigStore(pinia), a = useSvgEditLayoutStore(pinia), u = useEditPrivateStore(pinia), c = useContextMenuStore(pinia);
21451
21451
  componentsRegister(i.vueComp);
@@ -21498,7 +21498,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21498
21498
  console.error("要创建的数据获取失败");
21499
21499
  return;
21500
21500
  }
21501
- const xe = Math.floor(Ie.offsetX / o.svg.scale - a.center_offset.x), At = Math.floor(Ie.offsetY / o.svg.scale - a.center_offset.y), Cn = {
21501
+ const xe = Math.floor(Ie.offsetX / o.svg.scale - a.center_offset.x), At = Math.floor(Ie.offsetY / o.svg.scale - a.center_offset.y), In = {
21502
21502
  id: randomString(),
21503
21503
  x: xe,
21504
21504
  y: At,
@@ -21556,7 +21556,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21556
21556
  selected: !1,
21557
21557
  ...objectDeepClone(n.create_svg_info)
21558
21558
  };
21559
- n.setDoneJson(Cn), n.setHandleSvgInfo(Cn, n.done_json.length), n.intention = EGlobalStoreIntention.None;
21559
+ n.setDoneJson(In), n.setHandleSvgInfo(In, n.done_json.length), n.intention = EGlobalStoreIntention.None;
21560
21560
  }
21561
21561
  (Lt = p.value) == null || Lt.focus();
21562
21562
  }
@@ -21565,7 +21565,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21565
21565
  }, L = (Ie) => {
21566
21566
  Ie.preventDefault();
21567
21567
  }, O = (Ie, Lt, xe) => {
21568
- var At, Cn, In;
21568
+ var At, In, Cn;
21569
21569
  if ((At = p.value) == null || At.focus(), n.intention === EGlobalStoreIntention.Connection) {
21570
21570
  if (xe.stopPropagation(), n.handle_svg_info)
21571
21571
  if (xe.button === 0) {
@@ -21579,7 +21579,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21579
21579
  return;
21580
21580
  }
21581
21581
  if (xe.preventDefault(), xe.stopPropagation(), xe.ctrlKey && xe.button === 0)
21582
- ((Cn = n.handle_svg_info) != null && Cn.index || ((In = n.handle_svg_info) == null ? void 0 : In.index) === 0) && (n.done_json[n.handle_svg_info.index].selected = !0, n.setHandleSvgInfo(null), n.intention = EGlobalStoreIntention.None), Ie.selected = !Ie.selected;
21582
+ ((In = n.handle_svg_info) != null && In.index || ((Cn = n.handle_svg_info) == null ? void 0 : Cn.index) === 0) && (n.done_json[n.handle_svg_info.index].selected = !0, n.setHandleSvgInfo(null), n.intention = EGlobalStoreIntention.None), Ie.selected = !Ie.selected;
21583
21583
  else if (A.value) {
21584
21584
  n.intention = EGlobalStoreIntention.GroupMove, n.mouse_info = {
21585
21585
  state: EMouseInfoState.Down,
@@ -21627,7 +21627,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21627
21627
  }, ie = (Ie, Lt, xe) => {
21628
21628
  xe.preventDefault(), xe.stopPropagation(), !((n.intention === EGlobalStoreIntention.Connection || n.intention === EGlobalStoreIntention.SetConnectionLineNode) && Ie.type === EDoneJsonType.ConnectionLine) && (g.connection_panel = !1, g.connection_line = !1, g.select_item.info = null, g.select_item.index = -1);
21629
21629
  }, $ = (Ie) => {
21630
- var In, Dt, he, Et, hn, vn, kt, Ce, de, ze, Ne, Ve, Pt, jt, _n, oe;
21630
+ var Cn, Dt, he, Et, hn, vn, kt, Ce, de, ze, Ne, Ve, Pt, jt, _n, oe;
21631
21631
  if (n.mouse_info.state != EMouseInfoState.Down && n.intention !== EGlobalStoreIntention.Connection)
21632
21632
  return;
21633
21633
  const { clientX: Lt, clientY: xe } = Ie;
@@ -21638,13 +21638,13 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21638
21638
  );
21639
21639
  const At = Math.round(
21640
21640
  n.mouse_info.new_position_x - n.mouse_info.position_x + n.mouse_info.now_position_x
21641
- ), Cn = Math.round(
21641
+ ), In = Math.round(
21642
21642
  n.mouse_info.new_position_y - n.mouse_info.position_y + n.mouse_info.now_position_y
21643
21643
  );
21644
- if ((In = n.handle_svg_info) != null && In.info && (n.intention === EGlobalStoreIntention.Select || n.intention === EGlobalStoreIntention.Move)) {
21645
- if (n.handle_svg_info.info.x = At, n.handle_svg_info.info.y = Cn, n.handle_svg_info.info.client = {
21644
+ if ((Cn = n.handle_svg_info) != null && Cn.info && (n.intention === EGlobalStoreIntention.Select || n.intention === EGlobalStoreIntention.Move)) {
21645
+ if (n.handle_svg_info.info.x = At, n.handle_svg_info.info.y = In, n.handle_svg_info.info.client = {
21646
21646
  x: At,
21647
- y: Cn
21647
+ y: In
21648
21648
  }, n.intention = EGlobalStoreIntention.Move, moveHandlePoint(n.handle_svg_info.info), moveAnchors(n.handle_svg_info.info), n.handle_svg_info.info.type === EDoneJsonType.ConnectionLine) {
21649
21649
  if ((Dt = n.handle_svg_info.info.bind_anchors) != null && Dt.start) {
21650
21650
  let le = null;
@@ -21660,7 +21660,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21660
21660
  }
21661
21661
  }
21662
21662
  } else if (n.intention === EGlobalStoreIntention.MoveCanvas)
21663
- a.center_offset.x = At, a.center_offset.y = Cn;
21663
+ a.center_offset.x = At, a.center_offset.y = In;
21664
21664
  else if (n.intention === EGlobalStoreIntention.SelectArea)
21665
21665
  y.value.b.x = n.mouse_info.new_position_x - a.center_offset.x, y.value.b.y = n.mouse_info.new_position_y - a.center_offset.y;
21666
21666
  else if (n.intention === EGlobalStoreIntention.GroupMove) {
@@ -21796,9 +21796,13 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21796
21796
  if (n.mouse_info.state == EMouseInfoState.Down) {
21797
21797
  if ((Ie = n.handle_svg_info) != null && Ie.info && n.intention == EGlobalStoreIntention.Move)
21798
21798
  setSvgActualInfo(n.done_json[n.handle_svg_info.index]), n.intention = EGlobalStoreIntention.None, n.setDoneJson(n.done_json);
21799
- else if (n.intention == EGlobalStoreIntention.GroupMove)
21800
- w && (w = !1, n.intention = EGlobalStoreIntention.None);
21801
- else if ((Lt = n.handle_svg_info) != null && Lt.info && n.intention == EGlobalStoreIntention.Zoom)
21799
+ else if (n.intention == EGlobalStoreIntention.GroupMove) {
21800
+ if (w) {
21801
+ for (let In of n.done_json)
21802
+ In.selected && setSvgActualInfo(In);
21803
+ w = !1, n.intention = EGlobalStoreIntention.None, n.setDoneJson(n.done_json);
21804
+ }
21805
+ } else if ((Lt = n.handle_svg_info) != null && Lt.info && n.intention == EGlobalStoreIntention.Zoom)
21802
21806
  n.handle_svg_info.info.client = {
21803
21807
  x: n.handle_svg_info.info.x,
21804
21808
  y: n.handle_svg_info.info.y
@@ -21812,9 +21816,9 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21812
21816
  S && ((At = n.handle_svg_info) != null && At.info.bind_anchors) && (n.connection_line_node_info.point_index === 0 ? n.handle_svg_info.info.bind_anchors.start = null : n.handle_svg_info.info.bind_anchors.end = null), n.intention = EGlobalStoreIntention.None, S = !1;
21813
21817
  else if (n.intention === EGlobalStoreIntention.SelectArea) {
21814
21818
  n.setHandleSvgInfo(null);
21815
- for (let Cn of n.done_json) {
21816
- const In = b.value;
21817
- Cn.selected = Cn.center_position.x > In.x && Cn.center_position.x < In.x + In.with && Cn.center_position.y > In.y && Cn.center_position.y < In.y + In.height;
21819
+ for (let In of n.done_json) {
21820
+ const Cn = b.value;
21821
+ In.selected = In.center_position.x > Cn.x && In.center_position.x < Cn.x + Cn.with && In.center_position.y > Cn.y && In.center_position.y < Cn.y + Cn.height;
21818
21822
  }
21819
21823
  n.intention = EGlobalStoreIntention.None;
21820
21824
  } else
@@ -21984,7 +21988,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
21984
21988
  transform: `translate(${unref(a).center_offset.x * unref(o).svg.scale},${unref(a).center_offset.y * unref(o).svg.scale})rotate(0)scale(${unref(o).svg.scale})`
21985
21989
  }, [
21986
21990
  (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(n).done_json, (xe, At) => {
21987
- var Cn, In, Dt, he, Et, hn, vn, kt, Ce, de, ze, Ne, Ve, Pt;
21991
+ var In, Cn, Dt, he, Et, hn, vn, kt, Ce, de, ze, Ne, Ve, Pt;
21988
21992
  return withDirectives((openBlock(), createElementBlock("g", {
21989
21993
  key: xe.id,
21990
21994
  transform: `translate(${xe.x},${xe.y})rotate(0)scale(1)`
@@ -22003,13 +22007,13 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
22003
22007
  xe.type === unref(EDoneJsonType).ConnectionLine ? (openBlock(), createBlock(_sfc_main$z, {
22004
22008
  key: 0,
22005
22009
  "item-info": xe,
22006
- "point-visible": unref(g).connection_line && ((Cn = unref(g).select_item.info) == null ? void 0 : Cn.id) == xe.id
22010
+ "point-visible": unref(g).connection_line && ((In = unref(g).select_item.info) == null ? void 0 : In.id) == xe.id
22007
22011
  }, null, 8, ["item-info", "point-visible"])) : xe.type === unref(EDoneJsonType).File ? (openBlock(), createElementBlock("use", mergeProps({
22008
22012
  key: 1,
22009
22013
  "xlink:href": `#svg-${xe.name}`,
22010
22014
  ref_for: !0
22011
22015
  }, unref(prosToVBind)(xe, ["height", "width"]), {
22012
- width: ((Dt = (In = xe.props) == null ? void 0 : In.width) == null ? void 0 : Dt.val) ?? 100,
22016
+ width: ((Dt = (Cn = xe.props) == null ? void 0 : Cn.width) == null ? void 0 : Dt.val) ?? 100,
22013
22017
  height: ((Et = (he = xe.props) == null ? void 0 : he.height) == null ? void 0 : Et.val) ?? 100,
22014
22018
  id: xe.id,
22015
22019
  transform: `translate(${xe.actual_bound.x + xe.actual_bound.width / 2},${xe.actual_bound.y + xe.actual_bound.height / 2}) scale(${xe.scale_x},${xe.scale_y}) translate(${-(xe.actual_bound.x + xe.actual_bound.width / 2)},${-(xe.actual_bound.y + xe.actual_bound.height / 2)})`
@@ -22099,7 +22103,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
22099
22103
  }, [
22100
22104
  (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(c).info, (xe, At) => (openBlock(), createElementBlock("li", {
22101
22105
  key: xe.title,
22102
- onClick: (Cn) => unref(c).onContextMenuClick(At)
22106
+ onClick: (In) => unref(c).onContextMenuClick(At)
22103
22107
  }, [
22104
22108
  createElementVNode("p", {
22105
22109
  class: normalizeClass(xe.enable ? "" : "disabled")
@@ -22113,7 +22117,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScope
22113
22117
  ])
22114
22118
  ], 64));
22115
22119
  }
22116
- }), centerPanel_vue_vue_type_style_index_0_scoped_19d2841e_lang = "", CenterPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["__scopeId", "data-v-19d2841e"]]);
22120
+ }), centerPanel_vue_vue_type_style_index_0_scoped_53bcd690_lang = "", CenterPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["__scopeId", "data-v-53bcd690"]]);
22117
22121
  /*! Element Plus Icons Vue v2.3.1 */
22118
22122
  var aim_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
22119
22123
  name: "Aim",
@@ -24019,9 +24023,9 @@ function Qt(i) {
24019
24023
  });
24020
24024
  if (he)
24021
24025
  return $ = he, "break";
24022
- }, Cn = xe; Cn > 0; Cn--) {
24023
- var In = At(Cn);
24024
- if (In === "break")
24026
+ }, In = xe; In > 0; In--) {
24027
+ var Cn = At(In);
24028
+ if (Cn === "break")
24025
24029
  break;
24026
24030
  }
24027
24031
  r.placement !== $ && (r.modifiersData[o]._skip = !0, r.placement = $, r.reset = !0);
@@ -24064,7 +24068,7 @@ function on(i) {
24064
24068
  var r = i.state, n = i.options, o = i.name, a = n.mainAxis, u = a === void 0 ? !0 : a, c = n.altAxis, d = c === void 0 ? !1 : c, f = n.boundary, p = n.rootBoundary, _ = n.altBoundary, v = n.padding, g = n.tether, y = g === void 0 ? !0 : g, b = n.tetherOffset, A = b === void 0 ? 0 : b, w = ne(r, { boundary: f, rootBoundary: p, padding: v, altBoundary: _ }), S = q(r.placement), T = te(r.placement), x = !T, L = Le(S), O = rn(L), M = r.modifiersData.popperOffsets, k = r.rects.reference, ie = r.rects.popper, $ = typeof A == "function" ? A(Object.assign({}, r.rects, { placement: r.placement })) : A, Y = typeof $ == "number" ? { mainAxis: $, altAxis: $ } : Object.assign({ mainAxis: 0, altAxis: 0 }, $), D = r.modifiersData.offset ? r.modifiersData.offset[r.placement] : null, re = { x: 0, y: 0 };
24065
24069
  if (M) {
24066
24070
  if (u) {
24067
- var F, _e = L === "y" ? E : P, ue = L === "y" ? R : W, pe = L === "y" ? "height" : "width", Fe = M[L], Ie = Fe + w[_e], Lt = Fe - w[ue], xe = y ? -ie[pe] / 2 : 0, At = T === U ? k[pe] : ie[pe], Cn = T === U ? -ie[pe] : -k[pe], In = r.elements.arrow, Dt = y && In ? ke(In) : { width: 0, height: 0 }, he = r.modifiersData["arrow#persistent"] ? r.modifiersData["arrow#persistent"].padding : st(), Et = he[_e], hn = he[ue], vn = fe(0, k[pe], Dt[pe]), kt = x ? k[pe] / 2 - xe - vn - Et - Y.mainAxis : At - vn - Et - Y.mainAxis, Ce = x ? -k[pe] / 2 + xe + vn + hn + Y.mainAxis : Cn + vn + hn + Y.mainAxis, de = r.elements.arrow && se(r.elements.arrow), ze = de ? L === "y" ? de.clientTop || 0 : de.clientLeft || 0 : 0, Ne = (F = D == null ? void 0 : D[L]) != null ? F : 0, Ve = Fe + kt - Ne - ze, Pt = Fe + Ce - Ne, jt = fe(y ? ve(Ie, Ve) : Ie, Fe, y ? X(Lt, Pt) : Lt);
24071
+ var F, _e = L === "y" ? E : P, ue = L === "y" ? R : W, pe = L === "y" ? "height" : "width", Fe = M[L], Ie = Fe + w[_e], Lt = Fe - w[ue], xe = y ? -ie[pe] / 2 : 0, At = T === U ? k[pe] : ie[pe], In = T === U ? -ie[pe] : -k[pe], Cn = r.elements.arrow, Dt = y && Cn ? ke(Cn) : { width: 0, height: 0 }, he = r.modifiersData["arrow#persistent"] ? r.modifiersData["arrow#persistent"].padding : st(), Et = he[_e], hn = he[ue], vn = fe(0, k[pe], Dt[pe]), kt = x ? k[pe] / 2 - xe - vn - Et - Y.mainAxis : At - vn - Et - Y.mainAxis, Ce = x ? -k[pe] / 2 + xe + vn + hn + Y.mainAxis : In + vn + hn + Y.mainAxis, de = r.elements.arrow && se(r.elements.arrow), ze = de ? L === "y" ? de.clientTop || 0 : de.clientLeft || 0 : 0, Ne = (F = D == null ? void 0 : D[L]) != null ? F : 0, Ve = Fe + kt - Ne - ze, Pt = Fe + Ce - Ne, jt = fe(y ? ve(Ie, Ve) : Ie, Fe, y ? X(Lt, Pt) : Lt);
24068
24072
  M[L] = jt, re[L] = jt - Fe;
24069
24073
  }
24070
24074
  if (d) {
@@ -25588,7 +25592,7 @@ const __default__$a = defineComponent({
25588
25592
  return new Schema({
25589
25593
  [kt]: vn
25590
25594
  }).validate({ [kt]: D.value }, { firstFields: !0 }).then(() => (xe(), !0)).catch((de) => (Lt(de), Promise.reject(de)));
25591
- }, Cn = async (vn, kt) => {
25595
+ }, In = async (vn, kt) => {
25592
25596
  if (A || !n.prop)
25593
25597
  return !1;
25594
25598
  const Ce = isFunction(kt);
@@ -25599,14 +25603,14 @@ const __default__$a = defineComponent({
25599
25603
  const { fields: Ne } = ze;
25600
25604
  return kt == null || kt(!1, Ne), Ce ? !1 : Promise.reject(Ne);
25601
25605
  }));
25602
- }, In = () => {
25606
+ }, Cn = () => {
25603
25607
  Ie(""), g.value = "", A = !1;
25604
25608
  }, Dt = async () => {
25605
25609
  const vn = a == null ? void 0 : a.model;
25606
25610
  if (!vn || !n.prop)
25607
25611
  return;
25608
25612
  const kt = getProp(vn, n.prop);
25609
- A = !0, kt.value = clone$3(b), await nextTick(), In(), A = !1;
25613
+ A = !0, kt.value = clone$3(b), await nextTick(), Cn(), A = !1;
25610
25614
  }, he = (vn) => {
25611
25615
  p.value.includes(vn) || p.value.push(vn);
25612
25616
  }, Et = (vn) => {
@@ -25628,8 +25632,8 @@ const __default__$a = defineComponent({
25628
25632
  addInputId: he,
25629
25633
  removeInputId: Et,
25630
25634
  resetField: Dt,
25631
- clearValidate: In,
25632
- validate: Cn
25635
+ clearValidate: Cn,
25636
+ validate: In
25633
25637
  });
25634
25638
  return provide(formItemContextKey, hn), onMounted(() => {
25635
25639
  n.prop && (a == null || a.addField(hn), b = clone$3(D.value));
@@ -25639,8 +25643,8 @@ const __default__$a = defineComponent({
25639
25643
  size: c,
25640
25644
  validateMessage: g,
25641
25645
  validateState: _,
25642
- validate: Cn,
25643
- clearValidate: In,
25646
+ validate: In,
25647
+ clearValidate: Cn,
25644
25648
  resetField: Dt
25645
25649
  }), (vn, kt) => {
25646
25650
  var Ce;
@@ -25861,7 +25865,7 @@ const inputProps = buildProps({
25861
25865
  o.type === "textarea" ? w.b() : A.b(),
25862
25866
  A.m(y.value),
25863
25867
  A.is("disabled", b.value),
25864
- A.is("exceed", In.value),
25868
+ A.is("exceed", Cn.value),
25865
25869
  {
25866
25870
  [A.b("group")]: u.prepend || u.append,
25867
25871
  [A.m("prefix")]: u.prefix || o.prefixIcon,
@@ -25894,7 +25898,7 @@ const inputProps = buildProps({
25894
25898
  o.inputStyle,
25895
25899
  M.value,
25896
25900
  { resize: o.resize }
25897
- ]), Ie = computed(() => isNil(o.modelValue) ? "" : String(o.modelValue)), Lt = computed(() => o.clearable && !b.value && !o.readonly && !!Ie.value && ($.value || x.value)), xe = computed(() => o.showPassword && !b.value && !!Ie.value && (!!Ie.value || $.value)), At = computed(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !b.value && !o.readonly && !o.showPassword), Cn = computed(() => Ie.value.length), In = computed(() => !!At.value && Cn.value > Number(o.maxlength)), Dt = computed(() => !!u.suffix || !!o.suffixIcon || Lt.value || o.showPassword || At.value || !!F.value && re.value), [he, Et] = useCursor(S);
25901
+ ]), Ie = computed(() => isNil(o.modelValue) ? "" : String(o.modelValue)), Lt = computed(() => o.clearable && !b.value && !o.readonly && !!Ie.value && ($.value || x.value)), xe = computed(() => o.showPassword && !b.value && !!Ie.value && (!!Ie.value || $.value)), At = computed(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !b.value && !o.readonly && !o.showPassword), In = computed(() => Ie.value.length), Cn = computed(() => !!At.value && In.value > Number(o.maxlength)), Dt = computed(() => !!u.suffix || !!o.suffixIcon || Lt.value || o.showPassword || At.value || !!F.value && re.value), [he, Et] = useCursor(S);
25898
25902
  useResizeObserver(T, (Ue) => {
25899
25903
  if (kt(), !At.value || o.resize !== "both")
25900
25904
  return;
@@ -26104,7 +26108,7 @@ const inputProps = buildProps({
26104
26108
  }, [
26105
26109
  createElementVNode("span", {
26106
26110
  class: normalizeClass(unref(A).e("count-inner"))
26107
- }, toDisplayString(unref(Cn)) + " / " + toDisplayString(Ue.maxlength), 3)
26111
+ }, toDisplayString(unref(In)) + " / " + toDisplayString(Ue.maxlength), 3)
26108
26112
  ], 2)) : createCommentVNode("v-if", !0),
26109
26113
  unref(F) && unref(_e) && unref(re) ? (openBlock(), createBlock(unref(ElIcon), {
26110
26114
  key: 4,
@@ -26162,7 +26166,7 @@ const inputProps = buildProps({
26162
26166
  key: 0,
26163
26167
  style: normalizeStyle$1(O.value),
26164
26168
  class: normalizeClass(unref(A).e("count"))
26165
- }, toDisplayString(unref(Cn)) + " / " + toDisplayString(Ue.maxlength), 7)) : createCommentVNode("v-if", !0)
26169
+ }, toDisplayString(unref(In)) + " / " + toDisplayString(Ue.maxlength), 7)) : createCommentVNode("v-if", !0)
26166
26170
  ], 64))
26167
26171
  ], 16, ["role"]));
26168
26172
  }
@@ -27940,7 +27944,7 @@ const MINIMUM_INPUT_WIDTH = 11, useSelect = (i, r) => {
27940
27944
  }
27941
27945
  }), Y = ref(!1), D = ref(), { form: re, formItem: F } = useFormItem(), { inputId: _e } = useFormItemInputId(i, {
27942
27946
  formItemContext: F
27943
- }), { valueOnClear: ue, isEmptyValue: pe } = useEmptyValues(i), Fe = computed(() => i.disabled || (re == null ? void 0 : re.disabled)), Ie = computed(() => isArray(i.modelValue) ? i.modelValue.length > 0 : !pe(i.modelValue)), Lt = computed(() => i.clearable && !Fe.value && c.inputHovering && Ie.value), xe = computed(() => i.remote && i.filterable && !i.remoteShowSuffix ? "" : i.suffixIcon), At = computed(() => a.is("reverse", xe.value && Y.value)), Cn = computed(() => (F == null ? void 0 : F.validateState) || ""), In = computed(() => ValidateComponentsMap[Cn.value]), Dt = computed(() => i.remote ? 300 : 0), he = computed(() => i.loading ? i.loadingText || n("el.select.loading") : i.remote && !c.inputValue && c.options.size === 0 ? !1 : i.filterable && c.inputValue && c.options.size > 0 && Et.value === 0 ? i.noMatchText || n("el.select.noMatch") : c.options.size === 0 ? i.noDataText || n("el.select.noData") : null), Et = computed(() => hn.value.filter((An) => An.visible).length), hn = computed(() => {
27947
+ }), { valueOnClear: ue, isEmptyValue: pe } = useEmptyValues(i), Fe = computed(() => i.disabled || (re == null ? void 0 : re.disabled)), Ie = computed(() => isArray(i.modelValue) ? i.modelValue.length > 0 : !pe(i.modelValue)), Lt = computed(() => i.clearable && !Fe.value && c.inputHovering && Ie.value), xe = computed(() => i.remote && i.filterable && !i.remoteShowSuffix ? "" : i.suffixIcon), At = computed(() => a.is("reverse", xe.value && Y.value)), In = computed(() => (F == null ? void 0 : F.validateState) || ""), Cn = computed(() => ValidateComponentsMap[In.value]), Dt = computed(() => i.remote ? 300 : 0), he = computed(() => i.loading ? i.loadingText || n("el.select.loading") : i.remote && !c.inputValue && c.options.size === 0 ? !1 : i.filterable && c.inputValue && c.options.size > 0 && Et.value === 0 ? i.noMatchText || n("el.select.noMatch") : c.options.size === 0 ? i.noDataText || n("el.select.noData") : null), Et = computed(() => hn.value.filter((An) => An.visible).length), hn = computed(() => {
27944
27948
  const An = Array.from(c.options.values()), Tn = [];
27945
27949
  return c.optionValues.forEach((Bn) => {
27946
27950
  const Mn = An.findIndex((Gn) => Gn.value === Bn);
@@ -28196,8 +28200,8 @@ const MINIMUM_INPUT_WIDTH = 11, useSelect = (i, r) => {
28196
28200
  showClose: Lt,
28197
28201
  iconComponent: xe,
28198
28202
  iconReverse: At,
28199
- validateState: Cn,
28200
- validateIcon: In,
28203
+ validateState: In,
28204
+ validateIcon: Cn,
28201
28205
  showNewOption: kt,
28202
28206
  updateOptions: Ce,
28203
28207
  collapseTagSize: ze,
@@ -30065,9 +30069,9 @@ const _hoisted_1$4 = { class: "c-wall-d" }, _sfc_main$7 = /* @__PURE__ */ define
30065
30069
  var de, ze;
30066
30070
  (ze = (de = Ce.events) == null ? void 0 : de.target) != null && ze.hasOwnProperty("scale") && Fe();
30067
30071
  }), onMounted(() => {
30068
- c(document, "mousemove", Lt), c(document, "mouseup", Cn), re(), c(window, "resize", F);
30072
+ c(document, "mousemove", Lt), c(document, "mouseup", In), re(), c(window, "resize", F);
30069
30073
  }), onBeforeUnmount(() => {
30070
- d(document, "mousemove", Lt), d(document, "mouseup", Cn), d(window, "resize", F);
30074
+ d(document, "mousemove", Lt), d(document, "mouseup", In), d(window, "resize", F);
30071
30075
  });
30072
30076
  const re = () => {
30073
30077
  pe(), Fe();
@@ -30106,9 +30110,9 @@ const _hoisted_1$4 = { class: "c-wall-d" }, _sfc_main$7 = /* @__PURE__ */ define
30106
30110
  }
30107
30111
  }, At = (Ce) => {
30108
30112
  b.value = !0, A = Ce;
30109
- }, Cn = (Ce) => {
30110
- In(Ce);
30111
30113
  }, In = (Ce) => {
30114
+ Cn(Ce);
30115
+ }, Cn = (Ce) => {
30112
30116
  if (b.value) {
30113
30117
  switch (b.value = !1, A) {
30114
30118
  case "x":
@@ -30612,8 +30616,8 @@ var mqtt = { exports: {} };
30612
30616
  this.log("work :: packet pulled from queue"), (0, L.default)(this, At, Ie);
30613
30617
  else {
30614
30618
  this.log("work :: no packets in queue");
30615
- const Cn = ue;
30616
- ue = null, this.log("work :: done flag is %s", !!Cn), Cn && Cn();
30619
+ const In = ue;
30620
+ ue = null, this.log("work :: done flag is %s", !!In), In && In();
30617
30621
  }
30618
30622
  }, Ie = () => {
30619
30623
  if (pe.length)
@@ -30623,8 +30627,8 @@ var mqtt = { exports: {} };
30623
30627
  ue = null, At();
30624
30628
  }
30625
30629
  };
30626
- F._write = (At, Cn, In) => {
30627
- ue = In, this.log("writable stream :: parsing buffer"), _e.parse(At), Fe();
30630
+ F._write = (At, In, Cn) => {
30631
+ ue = Cn, this.log("writable stream :: parsing buffer"), _e.parse(At), Fe();
30628
30632
  };
30629
30633
  const Lt = (At) => {
30630
30634
  this.log("streamErrorHandler :: error", At.message), $.includes(At.code) ? (this.log("streamErrorHandler :: emitting error"), this.emit("error", At)) : this.noop(At);
@@ -30663,10 +30667,10 @@ var mqtt = { exports: {} };
30663
30667
  retain: !1,
30664
30668
  dup: !1
30665
30669
  }), _e);
30666
- const { qos: Ie, retain: Lt, dup: xe, properties: At, cbStorePut: Cn } = _e;
30670
+ const { qos: Ie, retain: Lt, dup: xe, properties: At, cbStorePut: In } = _e;
30667
30671
  if (this._checkDisconnecting(ue))
30668
30672
  return this;
30669
- const In = () => {
30673
+ const Cn = () => {
30670
30674
  let Dt = 0;
30671
30675
  if ((Ie === 1 || Ie === 2) && (Dt = this._nextId(), Dt === null))
30672
30676
  return this.log("No messageId left"), !1;
@@ -30685,16 +30689,16 @@ var mqtt = { exports: {} };
30685
30689
  this.outgoing[he.messageId] = {
30686
30690
  volatile: !1,
30687
30691
  cb: ue || this.noop
30688
- }, this.log("MqttClient:publish: packet cmd: %s", he.cmd), this._sendPacket(he, void 0, Cn);
30692
+ }, this.log("MqttClient:publish: packet cmd: %s", he.cmd), this._sendPacket(he, void 0, In);
30689
30693
  break;
30690
30694
  default:
30691
- this.log("MqttClient:publish: packet cmd: %s", he.cmd), this._sendPacket(he, ue, Cn);
30695
+ this.log("MqttClient:publish: packet cmd: %s", he.cmd), this._sendPacket(he, ue, In);
30692
30696
  break;
30693
30697
  }
30694
30698
  return !0;
30695
30699
  };
30696
- return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !In()) && this._storeProcessingQueue.push({
30697
- invoke: In,
30700
+ return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !Cn()) && this._storeProcessingQueue.push({
30701
+ invoke: Cn,
30698
30702
  cbStorePut: _e.cbStorePut,
30699
30703
  callback: ue
30700
30704
  }), this;
@@ -30720,7 +30724,7 @@ var mqtt = { exports: {} };
30720
30724
  qos: 0
30721
30725
  };
30722
30726
  ue === 5 && (Lt.nl = !1, Lt.rap = !1, Lt.rh = 0), F = Object.assign(Object.assign({}, Lt), F);
30723
- const xe = F.properties, At = [], Cn = (Dt, he) => {
30727
+ const xe = F.properties, At = [], In = (Dt, he) => {
30724
30728
  if (he = he || F, !Object.prototype.hasOwnProperty.call(this._resubscribeTopics, Dt) || this._resubscribeTopics[Dt].qos < he.qos || pe) {
30725
30729
  const Et = {
30726
30730
  topic: Dt,
@@ -30730,12 +30734,12 @@ var mqtt = { exports: {} };
30730
30734
  }
30731
30735
  };
30732
30736
  if (Array.isArray(re) ? re.forEach((Dt) => {
30733
- this.log("subscribe: array topic %s", Dt), Cn(Dt);
30737
+ this.log("subscribe: array topic %s", Dt), In(Dt);
30734
30738
  }) : Object.keys(re).forEach((Dt) => {
30735
- this.log("subscribe: object topic %s, %o", Dt, re[Dt]), Cn(Dt, re[Dt]);
30739
+ this.log("subscribe: object topic %s, %o", Dt, re[Dt]), In(Dt, re[Dt]);
30736
30740
  }), !At.length)
30737
30741
  return _e(null, []), this;
30738
- const In = () => {
30742
+ const Cn = () => {
30739
30743
  const Dt = this._nextId();
30740
30744
  if (Dt === null)
30741
30745
  return this.log("No messageId left"), !1;
@@ -30766,8 +30770,8 @@ var mqtt = { exports: {} };
30766
30770
  }
30767
30771
  }, this.log("subscribe :: call _sendPacket"), this._sendPacket(he), !0;
30768
30772
  };
30769
- return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !In()) && this._storeProcessingQueue.push({
30770
- invoke: In,
30773
+ return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !Cn()) && this._storeProcessingQueue.push({
30774
+ invoke: Cn,
30771
30775
  callback: _e
30772
30776
  }), this;
30773
30777
  }
@@ -31341,15 +31345,15 @@ var mqtt = { exports: {} };
31341
31345
  }, L = (O, M) => {
31342
31346
  g("browserStreamBuilder");
31343
31347
  let k;
31344
- const $ = w(M).browserBufferSize || 1024 * 512, Y = M.browserBufferTimeout || 1e3, D = !M.objectMode, re = T(O, M), F = ue(M, At, Cn);
31348
+ const $ = w(M).browserBufferSize || 1024 * 512, Y = M.browserBufferTimeout || 1e3, D = !M.objectMode, re = T(O, M), F = ue(M, At, In);
31345
31349
  M.objectMode || (F._writev = xe), F.on("close", () => {
31346
31350
  re.close();
31347
31351
  });
31348
31352
  const _e = typeof re.addEventListener < "u";
31349
31353
  re.readyState === re.OPEN ? k = F : (k = (0, p.default)(void 0, void 0, M), M.objectMode || (k._writev = xe), _e ? re.addEventListener("open", pe) : re.onopen = pe), k.socket = re, _e ? (re.addEventListener("close", Fe), re.addEventListener("error", Ie), re.addEventListener("message", Lt)) : (re.onclose = Fe, re.onerror = Ie, re.onmessage = Lt);
31350
- function ue(In, Dt, he) {
31354
+ function ue(Cn, Dt, he) {
31351
31355
  const Et = new _.Transform({
31352
- objectMode: In.objectMode
31356
+ objectMode: Cn.objectMode
31353
31357
  });
31354
31358
  return Et._write = Dt, Et._flush = he, Et;
31355
31359
  }
@@ -31359,30 +31363,30 @@ var mqtt = { exports: {} };
31359
31363
  function Fe() {
31360
31364
  k.end(), k.destroy();
31361
31365
  }
31362
- function Ie(In) {
31363
- k.destroy(In);
31366
+ function Ie(Cn) {
31367
+ k.destroy(Cn);
31364
31368
  }
31365
- function Lt(In) {
31366
- let { data: Dt } = In;
31369
+ function Lt(Cn) {
31370
+ let { data: Dt } = Cn;
31367
31371
  Dt instanceof ArrayBuffer ? Dt = c.Buffer.from(Dt) : Dt = c.Buffer.from(Dt, "utf8"), F.push(Dt);
31368
31372
  }
31369
- function xe(In, Dt) {
31370
- const he = new Array(In.length);
31371
- for (let Et = 0; Et < In.length; Et++)
31372
- typeof In[Et].chunk == "string" ? he[Et] = c.Buffer.from(In[Et], "utf8") : he[Et] = In[Et].chunk;
31373
+ function xe(Cn, Dt) {
31374
+ const he = new Array(Cn.length);
31375
+ for (let Et = 0; Et < Cn.length; Et++)
31376
+ typeof Cn[Et].chunk == "string" ? he[Et] = c.Buffer.from(Cn[Et], "utf8") : he[Et] = Cn[Et].chunk;
31373
31377
  this._write(c.Buffer.concat(he), "binary", Dt);
31374
31378
  }
31375
- function At(In, Dt, he) {
31376
- re.bufferedAmount > $ && setTimeout(At, Y, In, Dt, he), D && typeof In == "string" && (In = c.Buffer.from(In, "utf8"));
31379
+ function At(Cn, Dt, he) {
31380
+ re.bufferedAmount > $ && setTimeout(At, Y, Cn, Dt, he), D && typeof Cn == "string" && (Cn = c.Buffer.from(Cn, "utf8"));
31377
31381
  try {
31378
- re.send(In);
31382
+ re.send(Cn);
31379
31383
  } catch (Et) {
31380
31384
  return he(Et);
31381
31385
  }
31382
31386
  he();
31383
31387
  }
31384
- function Cn(In) {
31385
- re.close(), In();
31388
+ function In(Cn) {
31389
+ re.close(), Cn();
31386
31390
  }
31387
31391
  return k;
31388
31392
  };
@@ -32440,7 +32444,7 @@ var mqtt = { exports: {} };
32440
32444
  for (j || (j = "utf8"); ; )
32441
32445
  switch (j) {
32442
32446
  case "hex":
32443
- return In(this, V, z);
32447
+ return Cn(this, V, z);
32444
32448
  case "utf8":
32445
32449
  case "utf-8":
32446
32450
  return Ie(this, V, z);
@@ -32448,7 +32452,7 @@ var mqtt = { exports: {} };
32448
32452
  return At(this, V, z);
32449
32453
  case "latin1":
32450
32454
  case "binary":
32451
- return Cn(this, V, z);
32455
+ return In(this, V, z);
32452
32456
  case "base64":
32453
32457
  return Fe(this, V, z);
32454
32458
  case "ucs2":
@@ -32696,14 +32700,14 @@ var mqtt = { exports: {} };
32696
32700
  ae += String.fromCharCode(j[Oe] & 127);
32697
32701
  return ae;
32698
32702
  }
32699
- function Cn(j, V, z) {
32703
+ function In(j, V, z) {
32700
32704
  var ae = "";
32701
32705
  z = Math.min(j.length, z);
32702
32706
  for (var Oe = V; Oe < z; ++Oe)
32703
32707
  ae += String.fromCharCode(j[Oe]);
32704
32708
  return ae;
32705
32709
  }
32706
- function In(j, V, z) {
32710
+ function Cn(j, V, z) {
32707
32711
  var ae = j.length;
32708
32712
  (!V || V < 0) && (V = 0), (!z || z < 0 || z > ae) && (z = ae);
32709
32713
  for (var Oe = "", Ue = V; Ue < z; ++Ue)
@@ -33535,7 +33539,7 @@ var mqtt = { exports: {} };
33535
33539
  A("readableAddChunk", le);
33536
33540
  var ae = oe._readableState;
33537
33541
  if (le === null)
33538
- ae.reading = !1, In(oe, ae);
33542
+ ae.reading = !1, Cn(oe, ae);
33539
33543
  else {
33540
33544
  var Oe;
33541
33545
  if (z || (Oe = Lt(ae, le)), Oe)
@@ -33576,7 +33580,7 @@ var mqtt = { exports: {} };
33576
33580
  function At(oe) {
33577
33581
  return oe >= xe ? oe = xe : (oe--, oe |= oe >>> 1, oe |= oe >>> 2, oe |= oe >>> 4, oe |= oe >>> 8, oe |= oe >>> 16, oe++), oe;
33578
33582
  }
33579
- function Cn(oe, le) {
33583
+ function In(oe, le) {
33580
33584
  return oe <= 0 || le.length === 0 && le.ended ? 0 : le.objectMode ? 1 : oe !== oe ? le.flowing && le.length ? le.buffer.head.data.length : le.length : (oe > le.highWaterMark && (le.highWaterMark = At(oe)), oe <= le.length ? oe : le.ended ? le.length : (le.needReadable = !0, 0));
33581
33585
  }
33582
33586
  pe.prototype.read = function(oe) {
@@ -33584,14 +33588,14 @@ var mqtt = { exports: {} };
33584
33588
  var le = this._readableState, j = oe;
33585
33589
  if (oe !== 0 && (le.emittedReadable = !1), oe === 0 && le.needReadable && ((le.highWaterMark !== 0 ? le.length >= le.highWaterMark : le.length > 0) || le.ended))
33586
33590
  return A("read: emitReadable", le.length, le.ended), le.length === 0 && le.ended ? Pt(this) : Dt(this), null;
33587
- if (oe = Cn(oe, le), oe === 0 && le.ended)
33591
+ if (oe = In(oe, le), oe === 0 && le.ended)
33588
33592
  return le.length === 0 && Pt(this), null;
33589
33593
  var V = le.needReadable;
33590
- A("need readable", V), (le.length === 0 || le.length - oe < le.highWaterMark) && (V = !0, A("length less than watermark", V)), le.ended || le.reading ? (V = !1, A("reading or ended", V)) : V && (A("do read"), le.reading = !0, le.sync = !0, le.length === 0 && (le.needReadable = !0), this._read(le.highWaterMark), le.sync = !1, le.reading || (oe = Cn(j, le)));
33594
+ A("need readable", V), (le.length === 0 || le.length - oe < le.highWaterMark) && (V = !0, A("length less than watermark", V)), le.ended || le.reading ? (V = !1, A("reading or ended", V)) : V && (A("do read"), le.reading = !0, le.sync = !0, le.length === 0 && (le.needReadable = !0), this._read(le.highWaterMark), le.sync = !1, le.reading || (oe = In(j, le)));
33591
33595
  var z;
33592
33596
  return oe > 0 ? z = Ve(oe, le) : z = null, z === null ? (le.needReadable = le.length <= le.highWaterMark, oe = 0) : (le.length -= oe, le.awaitDrain = 0), le.length === 0 && (le.ended || (le.needReadable = !0), j !== oe && le.ended && Pt(this)), z !== null && this.emit("data", z), z;
33593
33597
  };
33594
- function In(oe, le) {
33598
+ function Cn(oe, le) {
33595
33599
  if (A("onEofChunk"), !le.ended) {
33596
33600
  if (le.decoder) {
33597
33601
  var j = le.decoder.end();
@@ -33911,7 +33915,7 @@ var mqtt = { exports: {} };
33911
33915
  f = f || n("./_stream_duplex"), Ne = Ne || {}, typeof Pt != "boolean" && (Pt = Ve instanceof f), this.objectMode = !!Ne.objectMode, Pt && (this.objectMode = this.objectMode || !!Ne.writableObjectMode), this.highWaterMark = S(this, Ne, "writableHighWaterMark", Pt), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
33912
33916
  var jt = Ne.decodeStrings === !1;
33913
33917
  this.decodeStrings = !jt, this.defaultEncoding = Ne.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(_n) {
33914
- In(Ve, _n);
33918
+ Cn(Ve, _n);
33915
33919
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = Ne.emitClose !== !1, this.autoDestroy = !!Ne.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new d(this);
33916
33920
  }
33917
33921
  F.prototype.getBuffer = function() {
@@ -34014,14 +34018,14 @@ var mqtt = { exports: {} };
34014
34018
  function At(Ne, Ve, Pt, jt, _n) {
34015
34019
  --Ve.pendingcb, Pt ? (u.nextTick(_n, jt), u.nextTick(Ce, Ne, Ve), Ne._writableState.errorEmitted = !0, D(Ne, jt)) : (_n(jt), Ne._writableState.errorEmitted = !0, D(Ne, jt), Ce(Ne, Ve));
34016
34020
  }
34017
- function Cn(Ne) {
34021
+ function In(Ne) {
34018
34022
  Ne.writing = !1, Ne.writecb = null, Ne.length -= Ne.writelen, Ne.writelen = 0;
34019
34023
  }
34020
- function In(Ne, Ve) {
34024
+ function Cn(Ne, Ve) {
34021
34025
  var Pt = Ne._writableState, jt = Pt.sync, _n = Pt.writecb;
34022
34026
  if (typeof _n != "function")
34023
34027
  throw new O();
34024
- if (Cn(Pt), Ve)
34028
+ if (In(Pt), Ve)
34025
34029
  At(Ne, Pt, jt, Ve, _n);
34026
34030
  else {
34027
34031
  var oe = hn(Pt) || Ne.destroyed;
@@ -36654,8 +36658,8 @@ var mqtt = { exports: {} };
36654
36658
  noDisposeOnSet: Lt,
36655
36659
  noUpdateTTL: xe,
36656
36660
  maxSize: At = 0,
36657
- maxEntrySize: Cn = 0,
36658
- sizeCalculation: In,
36661
+ maxEntrySize: In = 0,
36662
+ sizeCalculation: Cn,
36659
36663
  fetchMethod: Dt,
36660
36664
  fetchContext: he,
36661
36665
  noDeleteOnFetchRejection: Et,
@@ -36669,7 +36673,7 @@ var mqtt = { exports: {} };
36669
36673
  const Ve = Y ? L(Y) : Array;
36670
36674
  if (!Ve)
36671
36675
  throw new Error("invalid max value: " + Y);
36672
- if (this.max = Y, this.maxSize = At, this.maxEntrySize = Cn || this.maxSize, this.sizeCalculation = In || de, this.sizeCalculation) {
36676
+ if (this.max = Y, this.maxSize = At, this.maxEntrySize = In || this.maxSize, this.sizeCalculation = Cn || de, this.sizeCalculation) {
36673
36677
  if (!this.maxSize && !this.maxEntrySize)
36674
36678
  throw new TypeError(
36675
36679
  "cannot set sizeCalculation without setting maxSize or maxEntrySize"
@@ -36966,18 +36970,18 @@ var mqtt = { exports: {} };
36966
36970
  signal: _e.signal,
36967
36971
  options: D,
36968
36972
  context: re
36969
- }, pe = (At, Cn = !1) => {
36970
- const { aborted: In } = _e.signal, Dt = D.ignoreFetchAbort && At !== void 0;
36971
- return D.status && (In && !Cn ? (D.status.fetchAborted = !0, D.status.fetchError = _e.signal.reason, Dt && (D.status.fetchAbortIgnored = !0)) : D.status.fetchResolved = !0), In && !Dt && !Cn ? Ie(_e.signal.reason) : (this.valList[Y] === xe && (At === void 0 ? xe.__staleWhileFetching ? this.valList[Y] = xe.__staleWhileFetching : this.delete($) : (D.status && (D.status.fetchUpdated = !0), this.set($, At, ue.options))), At);
36973
+ }, pe = (At, In = !1) => {
36974
+ const { aborted: Cn } = _e.signal, Dt = D.ignoreFetchAbort && At !== void 0;
36975
+ return D.status && (Cn && !In ? (D.status.fetchAborted = !0, D.status.fetchError = _e.signal.reason, Dt && (D.status.fetchAbortIgnored = !0)) : D.status.fetchResolved = !0), Cn && !Dt && !In ? Ie(_e.signal.reason) : (this.valList[Y] === xe && (At === void 0 ? xe.__staleWhileFetching ? this.valList[Y] = xe.__staleWhileFetching : this.delete($) : (D.status && (D.status.fetchUpdated = !0), this.set($, At, ue.options))), At);
36972
36976
  }, Fe = (At) => (D.status && (D.status.fetchRejected = !0, D.status.fetchError = At), Ie(At)), Ie = (At) => {
36973
- const { aborted: Cn } = _e.signal, In = Cn && D.allowStaleOnFetchAbort, Dt = In || D.allowStaleOnFetchRejection, he = Dt || D.noDeleteOnFetchRejection;
36974
- if (this.valList[Y] === xe && (!he || xe.__staleWhileFetching === void 0 ? this.delete($) : In || (this.valList[Y] = xe.__staleWhileFetching)), Dt)
36977
+ const { aborted: In } = _e.signal, Cn = In && D.allowStaleOnFetchAbort, Dt = Cn || D.allowStaleOnFetchRejection, he = Dt || D.noDeleteOnFetchRejection;
36978
+ if (this.valList[Y] === xe && (!he || xe.__staleWhileFetching === void 0 ? this.delete($) : Cn || (this.valList[Y] = xe.__staleWhileFetching)), Dt)
36975
36979
  return D.status && xe.__staleWhileFetching !== void 0 && (D.status.returnedStale = !0), xe.__staleWhileFetching;
36976
36980
  if (xe.__returned === xe)
36977
36981
  throw At;
36978
- }, Lt = (At, Cn) => {
36979
- this.fetchMethod($, F, ue).then((In) => At(In), Cn), _e.signal.addEventListener("abort", () => {
36980
- (!D.ignoreFetchAbort || D.allowStaleOnFetchAbort) && (At(), D.allowStaleOnFetchAbort && (At = (In) => pe(In, !0)));
36982
+ }, Lt = (At, In) => {
36983
+ this.fetchMethod($, F, ue).then((Cn) => At(Cn), In), _e.signal.addEventListener("abort", () => {
36984
+ (!D.ignoreFetchAbort || D.allowStaleOnFetchAbort) && (At(), D.allowStaleOnFetchAbort && (At = (Cn) => pe(Cn, !0)));
36981
36985
  });
36982
36986
  };
36983
36987
  D.status && (D.status.fetchDispatched = !0);
@@ -37007,8 +37011,8 @@ var mqtt = { exports: {} };
37007
37011
  allowStaleOnFetchRejection: Lt = this.allowStaleOnFetchRejection,
37008
37012
  ignoreFetchAbort: xe = this.ignoreFetchAbort,
37009
37013
  allowStaleOnFetchAbort: At = this.allowStaleOnFetchAbort,
37010
- fetchContext: Cn = this.fetchContext,
37011
- forceRefresh: In = !1,
37014
+ fetchContext: In = this.fetchContext,
37015
+ forceRefresh: Cn = !1,
37012
37016
  status: Dt,
37013
37017
  signal: he
37014
37018
  } = {}) {
@@ -37038,7 +37042,7 @@ var mqtt = { exports: {} };
37038
37042
  let hn = this.keyMap.get($);
37039
37043
  if (hn === void 0) {
37040
37044
  Dt && (Dt.fetch = "miss");
37041
- const vn = this.backgroundFetch($, hn, Et, Cn);
37045
+ const vn = this.backgroundFetch($, hn, Et, In);
37042
37046
  return vn.__returned = vn;
37043
37047
  } else {
37044
37048
  const vn = this.valList[hn];
@@ -37047,9 +37051,9 @@ var mqtt = { exports: {} };
37047
37051
  return Dt && (Dt.fetch = "inflight", Ne && (Dt.returnedStale = !0)), Ne ? vn.__staleWhileFetching : vn.__returned = vn;
37048
37052
  }
37049
37053
  const kt = this.isStale(hn);
37050
- if (!In && !kt)
37054
+ if (!Cn && !kt)
37051
37055
  return Dt && (Dt.fetch = "hit"), this.moveToTail(hn), D && this.updateItemAge(hn), this.statusTTL(Dt, hn), vn;
37052
- const Ce = this.backgroundFetch($, hn, Et, Cn), de = Ce.__staleWhileFetching !== void 0, ze = de && Y;
37056
+ const Ce = this.backgroundFetch($, hn, Et, In), de = Ce.__staleWhileFetching !== void 0, ze = de && Y;
37053
37057
  return Dt && (Dt.fetch = de && kt ? "stale" : "refresh", ze && kt && (Dt.returnedStale = !0)), ze ? Ce.__staleWhileFetching : Ce.__returned = Ce;
37054
37058
  }
37055
37059
  }
@@ -38152,11 +38156,11 @@ var mqtt = { exports: {} };
38152
38156
  else
38153
38157
  return de.destroy(new Error("Invalid password")), !1;
38154
38158
  }
38155
- de.write(u.CONNECT_HEADER), Fe(de, ae), In(de, Ve), Ne.bridgeMode && (Pt += 128), de.write(
38159
+ de.write(u.CONNECT_HEADER), Fe(de, ae), Cn(de, Ve), Ne.bridgeMode && (Pt += 128), de.write(
38156
38160
  Pt === 131 ? u.VERSION131 : Pt === 132 ? u.VERSION132 : Pt === 4 ? u.VERSION4 : Pt === 5 ? u.VERSION5 : u.VERSION3
38157
38161
  );
38158
38162
  let Sn = 0;
38159
- return Sn |= j != null ? u.USERNAME_MASK : 0, Sn |= V != null ? u.PASSWORD_MASK : 0, Sn |= jt && jt.retain ? u.WILL_RETAIN_MASK : 0, Sn |= jt && jt.qos ? jt.qos << u.WILL_QOS_SHIFT : 0, Sn |= jt ? u.WILL_FLAG_MASK : 0, Sn |= _n ? u.CLEAN_SESSION_MASK : 0, de.write(c.from([Sn])), S(de, oe), Pt === 5 && Oe.write(), In(de, le), jt && (Pt === 5 && Ue.write(), Ie(de, jt.topic), In(de, jt.payload)), j != null && In(de, j), V != null && In(de, V), !0;
38163
+ return Sn |= j != null ? u.USERNAME_MASK : 0, Sn |= V != null ? u.PASSWORD_MASK : 0, Sn |= jt && jt.retain ? u.WILL_RETAIN_MASK : 0, Sn |= jt && jt.qos ? jt.qos << u.WILL_QOS_SHIFT : 0, Sn |= jt ? u.WILL_FLAG_MASK : 0, Sn |= _n ? u.CLEAN_SESSION_MASK : 0, de.write(c.from([Sn])), S(de, oe), Pt === 5 && Oe.write(), Cn(de, le), jt && (Pt === 5 && Ue.write(), Ie(de, jt.topic), Cn(de, jt.payload)), j != null && Cn(de, j), V != null && Cn(de, V), !0;
38160
38164
  }
38161
38165
  function M(Ce, de, ze) {
38162
38166
  const Ne = ze ? ze.protocolVersion : 4, Ve = Ce || {}, Pt = Ne === 5 ? Ve.reasonCode : Ve.returnCode, jt = Ve.properties;
@@ -38358,11 +38362,11 @@ var mqtt = { exports: {} };
38358
38362
  const ze = y(de);
38359
38363
  return v("writeNumberGenerated: %o", ze), Ce.write(ze);
38360
38364
  }
38361
- function Cn(Ce, de) {
38365
+ function In(Ce, de) {
38362
38366
  const ze = w(de);
38363
38367
  return v("write4ByteNumber: %o", ze), Ce.write(ze);
38364
38368
  }
38365
- function In(Ce, de) {
38369
+ function Cn(Ce, de) {
38366
38370
  typeof de == "string" ? Ie(Ce, de) : de ? (S(Ce, de.length), Ce.write(de)) : S(Ce, 0);
38367
38371
  }
38368
38372
  function Dt(Ce, de) {
@@ -38484,7 +38488,7 @@ var mqtt = { exports: {} };
38484
38488
  break;
38485
38489
  }
38486
38490
  case "binary": {
38487
- Ce.write(c.from([u.properties[de]])), In(Ce, ze);
38491
+ Ce.write(c.from([u.properties[de]])), Cn(Ce, ze);
38488
38492
  break;
38489
38493
  }
38490
38494
  case "int16": {
@@ -38492,7 +38496,7 @@ var mqtt = { exports: {} };
38492
38496
  break;
38493
38497
  }
38494
38498
  case "int32": {
38495
- Ce.write(c.from([u.properties[de]])), Cn(Ce, ze);
38499
+ Ce.write(c.from([u.properties[de]])), In(Ce, ze);
38496
38500
  break;
38497
38501
  }
38498
38502
  case "var": {
@@ -38916,12 +38920,12 @@ var mqtt = { exports: {} };
38916
38920
  }
38917
38921
  return jt.join("");
38918
38922
  }
38919
- function Cn(Dt) {
38923
+ function In(Dt) {
38920
38924
  return _e(Dt, function(he) {
38921
38925
  return L.test(he) ? xe(he.slice(4).toLowerCase()) : he;
38922
38926
  });
38923
38927
  }
38924
- function In(Dt) {
38928
+ function Cn(Dt) {
38925
38929
  return _e(Dt, function(he) {
38926
38930
  return O.test(he) ? "xn--" + At(he) : he;
38927
38931
  });
@@ -38946,8 +38950,8 @@ var mqtt = { exports: {} };
38946
38950
  },
38947
38951
  decode: xe,
38948
38952
  encode: At,
38949
- toASCII: In,
38950
- toUnicode: Cn
38953
+ toASCII: Cn,
38954
+ toUnicode: In
38951
38955
  }, d && f)
38952
38956
  if (o.exports == d)
38953
38957
  f.exports = _;
@@ -39213,8 +39217,8 @@ var mqtt = { exports: {} };
39213
39217
  try {
39214
39218
  await Ie.ready, Ie.write(Lt).catch(() => {
39215
39219
  }), At();
39216
- } catch (Cn) {
39217
- At(Cn);
39220
+ } catch (In) {
39221
+ At(In);
39218
39222
  }
39219
39223
  }, Y._final = async function(Lt) {
39220
39224
  try {
@@ -39296,8 +39300,8 @@ var mqtt = { exports: {} };
39296
39300
  if (Ie)
39297
39301
  return;
39298
39302
  Ie = !0;
39299
- const At = ue._readableState, Cn = ue._writableState;
39300
- w(xe, Cn, At), Cn && (Cn.closed = !0), At && (At.closed = !0), typeof Fe == "function" && Fe(xe), xe ? u.nextTick(x, ue, xe) : u.nextTick(L, ue);
39303
+ const At = ue._readableState, In = ue._writableState;
39304
+ w(xe, In, At), In && (In.closed = !0), At && (At.closed = !0), typeof Fe == "function" && Fe(xe), xe ? u.nextTick(x, ue, xe) : u.nextTick(L, ue);
39301
39305
  }
39302
39306
  try {
39303
39307
  ue._destroy(pe || null, Lt);
@@ -39503,21 +39507,21 @@ var mqtt = { exports: {} };
39503
39507
  final: xe,
39504
39508
  destroy: At
39505
39509
  });
39506
- const Cn = Ie == null ? void 0 : Ie.then;
39507
- if (typeof Cn == "function") {
39508
- let In;
39510
+ const In = Ie == null ? void 0 : Ie.then;
39511
+ if (typeof In == "function") {
39512
+ let Cn;
39509
39513
  const Dt = Y(
39510
- Cn,
39514
+ In,
39511
39515
  Ie,
39512
39516
  (he) => {
39513
39517
  if (he != null)
39514
39518
  throw new S("nully", "body", he);
39515
39519
  },
39516
39520
  (he) => {
39517
- T(In, he);
39521
+ T(Cn, he);
39518
39522
  }
39519
39523
  );
39520
- return In = new D({
39524
+ return Cn = new D({
39521
39525
  // TODO (ronag): highWaterMark?
39522
39526
  objectMode: !0,
39523
39527
  readable: !1,
@@ -39595,8 +39599,8 @@ var mqtt = { exports: {} };
39595
39599
  for (; ; ) {
39596
39600
  const xe = ue;
39597
39601
  ue = null;
39598
- const { chunk: At, done: Cn, cb: In } = await xe;
39599
- if (u.nextTick(In), Cn)
39602
+ const { chunk: At, done: In, cb: Cn } = await xe;
39603
+ if (u.nextTick(Cn), In)
39600
39604
  return;
39601
39605
  if (Ie.aborted)
39602
39606
  throw new A(void 0, {
@@ -39609,12 +39613,12 @@ var mqtt = { exports: {} };
39609
39613
  signal: Ie
39610
39614
  }
39611
39615
  ),
39612
- write(xe, At, Cn) {
39613
- const In = pe;
39614
- pe = null, In({
39616
+ write(xe, At, In) {
39617
+ const Cn = pe;
39618
+ pe = null, Cn({
39615
39619
  chunk: xe,
39616
39620
  done: !1,
39617
- cb: Cn
39621
+ cb: In
39618
39622
  });
39619
39623
  },
39620
39624
  final(xe) {
@@ -39631,12 +39635,12 @@ var mqtt = { exports: {} };
39631
39635
  }
39632
39636
  function F(_e) {
39633
39637
  const ue = _e.readable && typeof _e.readable.read != "function" ? L.wrap(_e.readable) : _e.readable, pe = _e.writable;
39634
- let Fe = !!d(ue), Ie = !!f(pe), Lt, xe, At, Cn, In;
39638
+ let Fe = !!d(ue), Ie = !!f(pe), Lt, xe, At, In, Cn;
39635
39639
  function Dt(he) {
39636
- const Et = Cn;
39637
- Cn = null, Et ? Et(he) : he && In.destroy(he);
39640
+ const Et = In;
39641
+ In = null, Et ? Et(he) : he && Cn.destroy(he);
39638
39642
  }
39639
- return In = new D({
39643
+ return Cn = new D({
39640
39644
  // TODO (ronag): highWaterMark?
39641
39645
  readableObjectMode: !!(ue != null && ue.readableObjectMode),
39642
39646
  writableObjectMode: !!(pe != null && pe.writableObjectMode),
@@ -39644,9 +39648,9 @@ var mqtt = { exports: {} };
39644
39648
  writable: Ie
39645
39649
  }), Ie && (b(pe, (he) => {
39646
39650
  Ie = !1, he && T(ue, he), Dt(he);
39647
- }), In._write = function(he, Et, hn) {
39651
+ }), Cn._write = function(he, Et, hn) {
39648
39652
  pe.write(he, Et) ? hn() : Lt = hn;
39649
- }, In._final = function(he) {
39653
+ }, Cn._final = function(he) {
39650
39654
  pe.end(), xe = he;
39651
39655
  }, pe.on("drain", function() {
39652
39656
  if (Lt) {
@@ -39666,20 +39670,20 @@ var mqtt = { exports: {} };
39666
39670
  At = null, he();
39667
39671
  }
39668
39672
  }), ue.on("end", function() {
39669
- In.push(null);
39670
- }), In._read = function() {
39673
+ Cn.push(null);
39674
+ }), Cn._read = function() {
39671
39675
  for (; ; ) {
39672
39676
  const he = ue.read();
39673
39677
  if (he === null) {
39674
- At = In._read;
39678
+ At = Cn._read;
39675
39679
  return;
39676
39680
  }
39677
- if (!In.push(he))
39681
+ if (!Cn.push(he))
39678
39682
  return;
39679
39683
  }
39680
- }), In._destroy = function(he, Et) {
39681
- !he && Cn !== null && (he = new A()), At = null, Lt = null, xe = null, Cn === null ? Et(he) : (Cn = Et, T(pe, he), T(ue, he));
39682
- }, In;
39684
+ }), Cn._destroy = function(he, Et) {
39685
+ !he && In !== null && (he = new A()), At = null, Lt = null, xe = null, In === null ? Et(he) : (In = Et, T(pe, he), T(ue, he));
39686
+ }, Cn;
39683
39687
  }
39684
39688
  }, { "../../ours/errors": 126, "../../ours/primordials": 127, "../../ours/util": 128, "./destroy": 110, "./duplex": 111, "./end-of-stream": 113, "./from": 114, "./readable": 119, "./utils": 122, "abort-controller": 24, buffer: 29, "process/": 102 }], 113: [function(n, o, a) {
39685
39689
  const u = n("process/"), { AbortError: c, codes: d } = n("../../ours/errors"), { ERR_INVALID_ARG_TYPE: f, ERR_STREAM_PREMATURE_CLOSE: p } = d, { kEmptyObject: _, once: v } = n("../../ours/util"), { validateAbortSignal: g, validateFunction: y, validateObject: b, validateBoolean: A } = n("../validators"), { Promise: w, PromisePrototypeThen: S } = n("../../ours/primordials"), {
@@ -39703,98 +39707,98 @@ var mqtt = { exports: {} };
39703
39707
  }
39704
39708
  const Fe = () => {
39705
39709
  };
39706
- function Ie(At, Cn, In) {
39710
+ function Ie(At, In, Cn) {
39707
39711
  var Dt, he;
39708
- if (arguments.length === 2 ? (In = Cn, Cn = _) : Cn == null ? Cn = _ : b(Cn, "options"), y(In, "callback"), g(Cn.signal, "options.signal"), In = v(In), O(At) || Y(At))
39709
- return Lt(At, Cn, In);
39712
+ if (arguments.length === 2 ? (Cn = In, In = _) : In == null ? In = _ : b(In, "options"), y(Cn, "callback"), g(In.signal, "options.signal"), Cn = v(Cn), O(At) || Y(At))
39713
+ return Lt(At, In, Cn);
39710
39714
  if (!F(At))
39711
39715
  throw new f("stream", ["ReadableStream", "WritableStream", "Stream"], At);
39712
- const Et = (Dt = Cn.readable) !== null && Dt !== void 0 ? Dt : L(At), hn = (he = Cn.writable) !== null && he !== void 0 ? he : $(At), vn = At._writableState, kt = At._readableState, Ce = () => {
39716
+ const Et = (Dt = In.readable) !== null && Dt !== void 0 ? Dt : L(At), hn = (he = In.writable) !== null && he !== void 0 ? he : $(At), vn = At._writableState, kt = At._readableState, Ce = () => {
39713
39717
  At.writable || Ne();
39714
39718
  };
39715
39719
  let de = _e(At) && L(At) === Et && $(At) === hn, ze = D(At, !1);
39716
39720
  const Ne = () => {
39717
- ze = !0, At.destroyed && (de = !1), !(de && (!At.readable || Et)) && (!Et || Ve) && In.call(At);
39721
+ ze = !0, At.destroyed && (de = !1), !(de && (!At.readable || Et)) && (!Et || Ve) && Cn.call(At);
39718
39722
  };
39719
39723
  let Ve = M(At, !1);
39720
39724
  const Pt = () => {
39721
- Ve = !0, At.destroyed && (de = !1), !(de && (!At.writable || hn)) && (!hn || ze) && In.call(At);
39725
+ Ve = !0, At.destroyed && (de = !1), !(de && (!At.writable || hn)) && (!hn || ze) && Cn.call(At);
39722
39726
  }, jt = (z) => {
39723
- In.call(At, z);
39727
+ Cn.call(At, z);
39724
39728
  };
39725
39729
  let _n = T(At);
39726
39730
  const oe = () => {
39727
39731
  _n = !0;
39728
39732
  const z = re(At) || k(At);
39729
39733
  if (z && typeof z != "boolean")
39730
- return In.call(At, z);
39734
+ return Cn.call(At, z);
39731
39735
  if (Et && !Ve && L(At, !0) && !M(At, !1))
39732
- return In.call(At, new p());
39736
+ return Cn.call(At, new p());
39733
39737
  if (hn && !ze && !D(At, !1))
39734
- return In.call(At, new p());
39735
- In.call(At);
39738
+ return Cn.call(At, new p());
39739
+ Cn.call(At);
39736
39740
  }, le = () => {
39737
39741
  _n = !0;
39738
39742
  const z = re(At) || k(At);
39739
39743
  if (z && typeof z != "boolean")
39740
- return In.call(At, z);
39741
- In.call(At);
39744
+ return Cn.call(At, z);
39745
+ Cn.call(At);
39742
39746
  }, j = () => {
39743
39747
  At.req.on("finish", Ne);
39744
39748
  };
39745
- pe(At) ? (At.on("complete", Ne), de || At.on("abort", oe), At.req ? j() : At.on("request", j)) : hn && !vn && (At.on("end", Ce), At.on("close", Ce)), !de && typeof At.aborted == "boolean" && At.on("aborted", oe), At.on("end", Pt), At.on("finish", Ne), Cn.error !== !1 && At.on("error", jt), At.on("close", oe), _n ? u.nextTick(oe) : vn != null && vn.errorEmitted || kt != null && kt.errorEmitted ? de || u.nextTick(le) : (!Et && (!de || x(At)) && (ze || ie(At) === !1) || !hn && (!de || ie(At)) && (Ve || x(At) === !1) || kt && At.req && At.aborted) && u.nextTick(le);
39749
+ pe(At) ? (At.on("complete", Ne), de || At.on("abort", oe), At.req ? j() : At.on("request", j)) : hn && !vn && (At.on("end", Ce), At.on("close", Ce)), !de && typeof At.aborted == "boolean" && At.on("aborted", oe), At.on("end", Pt), At.on("finish", Ne), In.error !== !1 && At.on("error", jt), At.on("close", oe), _n ? u.nextTick(oe) : vn != null && vn.errorEmitted || kt != null && kt.errorEmitted ? de || u.nextTick(le) : (!Et && (!de || x(At)) && (ze || ie(At) === !1) || !hn && (!de || ie(At)) && (Ve || x(At) === !1) || kt && At.req && At.aborted) && u.nextTick(le);
39746
39750
  const V = () => {
39747
- In = Fe, At.removeListener("aborted", oe), At.removeListener("complete", Ne), At.removeListener("abort", oe), At.removeListener("request", j), At.req && At.req.removeListener("finish", Ne), At.removeListener("end", Ce), At.removeListener("close", Ce), At.removeListener("finish", Ne), At.removeListener("end", Pt), At.removeListener("error", jt), At.removeListener("close", oe);
39751
+ Cn = Fe, At.removeListener("aborted", oe), At.removeListener("complete", Ne), At.removeListener("abort", oe), At.removeListener("request", j), At.req && At.req.removeListener("finish", Ne), At.removeListener("end", Ce), At.removeListener("close", Ce), At.removeListener("finish", Ne), At.removeListener("end", Pt), At.removeListener("error", jt), At.removeListener("close", oe);
39748
39752
  };
39749
- if (Cn.signal && !_n) {
39753
+ if (In.signal && !_n) {
39750
39754
  const z = () => {
39751
- const ae = In;
39755
+ const ae = Cn;
39752
39756
  V(), ae.call(
39753
39757
  At,
39754
39758
  new c(void 0, {
39755
- cause: Cn.signal.reason
39759
+ cause: In.signal.reason
39756
39760
  })
39757
39761
  );
39758
39762
  };
39759
- if (Cn.signal.aborted)
39763
+ if (In.signal.aborted)
39760
39764
  u.nextTick(z);
39761
39765
  else {
39762
- const ae = In;
39763
- In = v((...Oe) => {
39764
- Cn.signal.removeEventListener("abort", z), ae.apply(At, Oe);
39765
- }), Cn.signal.addEventListener("abort", z);
39766
+ const ae = Cn;
39767
+ Cn = v((...Oe) => {
39768
+ In.signal.removeEventListener("abort", z), ae.apply(At, Oe);
39769
+ }), In.signal.addEventListener("abort", z);
39766
39770
  }
39767
39771
  }
39768
39772
  return V;
39769
39773
  }
39770
- function Lt(At, Cn, In) {
39774
+ function Lt(At, In, Cn) {
39771
39775
  let Dt = !1, he = Fe;
39772
- if (Cn.signal)
39776
+ if (In.signal)
39773
39777
  if (he = () => {
39774
- Dt = !0, In.call(
39778
+ Dt = !0, Cn.call(
39775
39779
  At,
39776
39780
  new c(void 0, {
39777
- cause: Cn.signal.reason
39781
+ cause: In.signal.reason
39778
39782
  })
39779
39783
  );
39780
- }, Cn.signal.aborted)
39784
+ }, In.signal.aborted)
39781
39785
  u.nextTick(he);
39782
39786
  else {
39783
- const hn = In;
39784
- In = v((...vn) => {
39785
- Cn.signal.removeEventListener("abort", he), hn.apply(At, vn);
39786
- }), Cn.signal.addEventListener("abort", he);
39787
+ const hn = Cn;
39788
+ Cn = v((...vn) => {
39789
+ In.signal.removeEventListener("abort", he), hn.apply(At, vn);
39790
+ }), In.signal.addEventListener("abort", he);
39787
39791
  }
39788
39792
  const Et = (...hn) => {
39789
- Dt || u.nextTick(() => In.apply(At, hn));
39793
+ Dt || u.nextTick(() => Cn.apply(At, hn));
39790
39794
  };
39791
39795
  return S(At[ue].promise, Et, Et), Fe;
39792
39796
  }
39793
- function xe(At, Cn) {
39794
- var In;
39797
+ function xe(At, In) {
39798
+ var Cn;
39795
39799
  let Dt = !1;
39796
- return Cn === null && (Cn = _), (In = Cn) !== null && In !== void 0 && In.cleanup && (A(Cn.cleanup, "cleanup"), Dt = Cn.cleanup), new w((he, Et) => {
39797
- const hn = Ie(At, Cn, (vn) => {
39800
+ return In === null && (In = _), (Cn = In) !== null && Cn !== void 0 && Cn.cleanup && (A(In.cleanup, "cleanup"), Dt = In.cleanup), new w((he, Et) => {
39801
+ const hn = Ie(At, In, (vn) => {
39798
39802
  Dt && hn(), vn ? Et(vn) : he();
39799
39803
  });
39800
39804
  });
@@ -40040,12 +40044,12 @@ var mqtt = { exports: {} };
40040
40044
  }
40041
40045
  return ue.call(this, de, Ce);
40042
40046
  }
40043
- class Cn extends f {
40047
+ class In extends f {
40044
40048
  constructor() {
40045
40049
  super("reduce"), this.message = "Reduce of an empty stream requires an initial value";
40046
40050
  }
40047
40051
  }
40048
- async function In(kt, Ce, de) {
40052
+ async function Cn(kt, Ce, de) {
40049
40053
  var ze;
40050
40054
  if (typeof kt != "function")
40051
40055
  throw new d("reducer", ["Function", "AsyncFunction"], kt);
@@ -40077,7 +40081,7 @@ var mqtt = { exports: {} };
40077
40081
  }) : (Ce = oe, Ne = !0);
40078
40082
  }
40079
40083
  if (!jt && !Ne)
40080
- throw new Cn();
40084
+ throw new In();
40081
40085
  } finally {
40082
40086
  Ve.abort();
40083
40087
  }
@@ -40150,7 +40154,7 @@ var mqtt = { exports: {} };
40150
40154
  }, o.exports.promiseReturningOperators = {
40151
40155
  every: Ie,
40152
40156
  forEach: xe,
40153
- reduce: In,
40157
+ reduce: Cn,
40154
40158
  toArray: Dt,
40155
40159
  some: Fe,
40156
40160
  find: Lt
@@ -40256,7 +40260,7 @@ var mqtt = { exports: {} };
40256
40260
  Ve(), hn.off("drain", ze);
40257
40261
  }
40258
40262
  }
40259
- async function Cn(Et, hn, vn, { end: kt }) {
40263
+ async function In(Et, hn, vn, { end: kt }) {
40260
40264
  Y(hn) && (hn = hn.writable);
40261
40265
  const Ce = hn.getWriter();
40262
40266
  try {
@@ -40272,7 +40276,7 @@ var mqtt = { exports: {} };
40272
40276
  }
40273
40277
  }
40274
40278
  }
40275
- function In(...Et) {
40279
+ function Cn(...Et) {
40276
40280
  return Dt(Et, _(Ie(Et)));
40277
40281
  }
40278
40282
  function Dt(Et, hn, vn) {
@@ -40387,15 +40391,15 @@ var mqtt = { exports: {} };
40387
40391
  j = Oe;
40388
40392
  } else if (D(Oe)) {
40389
40393
  if (ie(j))
40390
- _n++, Cn(Lt(j), Oe, oe, {
40394
+ _n++, In(Lt(j), Oe, oe, {
40391
40395
  end: Sn
40392
40396
  });
40393
40397
  else if (re(j) || M(j))
40394
- _n++, Cn(j, Oe, oe, {
40398
+ _n++, In(j, Oe, oe, {
40395
40399
  end: Sn
40396
40400
  });
40397
40401
  else if (Y(j))
40398
- _n++, Cn(j.readable, Oe, oe, {
40402
+ _n++, In(j.readable, Oe, oe, {
40399
40403
  end: Sn
40400
40404
  });
40401
40405
  else
@@ -40444,7 +40448,7 @@ var mqtt = { exports: {} };
40444
40448
  }
40445
40449
  o.exports = {
40446
40450
  pipelineImpl: Dt,
40447
- pipeline: In
40451
+ pipeline: Cn
40448
40452
  };
40449
40453
  }, { "../../ours/errors": 126, "../../ours/primordials": 127, "../../ours/util": 128, "../validators": 124, "./destroy": 110, "./duplex": 111, "./end-of-stream": 113, "./passthrough": 117, "./readable": 119, "./utils": 122, "abort-controller": 24, "process/": 102 }], 119: [function(n, o, a) {
40450
40454
  const u = n("process/"), {
@@ -40476,8 +40480,8 @@ var mqtt = { exports: {} };
40476
40480
  }
40477
40481
  } = n("../../ours/errors"), { validateObject: Ie } = n("../validators"), Lt = w("kPaused"), { StringDecoder: xe } = n("string_decoder"), At = n("./from");
40478
40482
  g(he.prototype, T.prototype), g(he, T);
40479
- const Cn = () => {
40480
- }, { errorOrDestroy: In } = $;
40483
+ const In = () => {
40484
+ }, { errorOrDestroy: Cn } = $;
40481
40485
  function Dt($e, qe, En) {
40482
40486
  typeof En != "boolean" && (En = qe instanceof n("./duplex")), this.objectMode = !!($e && $e.objectMode), En && (this.objectMode = this.objectMode || !!($e && $e.readableObjectMode)), this.highWaterMark = $e ? Y(this, $e, "readableHighWaterMark", En) : D(!1), this.buffer = new ie(), this.length = 0, this.pipes = [], this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.constructed = !0, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this[Lt] = null, this.errorEmitted = !1, this.emitClose = !$e || $e.emitClose !== !1, this.autoDestroy = !$e || $e.autoDestroy !== !1, this.destroyed = !1, this.errored = null, this.closed = !1, this.closeEmitted = !1, this.defaultEncoding = $e && $e.defaultEncoding || "utf8", this.awaitDrainWriters = null, this.multiAwaitDrain = !1, this.readingMore = !1, this.dataEmitted = !1, this.decoder = null, this.encoding = null, $e && $e.encoding && (this.decoder = new xe($e.encoding), this.encoding = $e.encoding);
40483
40487
  }
@@ -40503,20 +40507,20 @@ var mqtt = { exports: {} };
40503
40507
  const Ln = $e._readableState;
40504
40508
  let Nn;
40505
40509
  if (Ln.objectMode || (typeof qe == "string" ? (En = En || Ln.defaultEncoding, Ln.encoding !== En && (wn && Ln.encoding ? qe = L.from(qe, En).toString(Ln.encoding) : (qe = L.from(qe, En), En = ""))) : qe instanceof L ? En = "" : T._isUint8Array(qe) ? (qe = T._uint8ArrayToBuffer(qe), En = "") : qe != null && (Nn = new F("chunk", ["string", "Buffer", "Uint8Array"], qe))), Nn)
40506
- In($e, Nn);
40510
+ Cn($e, Nn);
40507
40511
  else if (qe === null)
40508
40512
  Ln.reading = !1, de($e, Ln);
40509
40513
  else if (Ln.objectMode || qe && qe.length > 0)
40510
40514
  if (wn)
40511
40515
  if (Ln.endEmitted)
40512
- In($e, new Fe());
40516
+ Cn($e, new Fe());
40513
40517
  else {
40514
40518
  if (Ln.destroyed || Ln.errored)
40515
40519
  return !1;
40516
40520
  hn($e, Ln, qe, !0);
40517
40521
  }
40518
40522
  else if (Ln.ended)
40519
- In($e, new pe());
40523
+ Cn($e, new pe());
40520
40524
  else {
40521
40525
  if (Ln.destroyed || Ln.errored)
40522
40526
  return !1;
@@ -40565,7 +40569,7 @@ var mqtt = { exports: {} };
40565
40569
  try {
40566
40570
  this._read(qe.highWaterMark);
40567
40571
  } catch (Nn) {
40568
- In(this, Nn);
40572
+ Cn(this, Nn);
40569
40573
  }
40570
40574
  qe.sync = !1, qe.reading || ($e = Ce(En, qe));
40571
40575
  }
@@ -40629,7 +40633,7 @@ var mqtt = { exports: {} };
40629
40633
  function zn(kn) {
40630
40634
  if (k("onerror", kn), Wn(), $e.removeListener("error", zn), $e.listenerCount("error") === 0) {
40631
40635
  const On = $e._writableState || $e._readableState;
40632
- On && !On.errorEmitted ? In($e, kn) : $e.emit("error", kn);
40636
+ On && !On.errorEmitted ? Cn($e, kn) : $e.emit("error", kn);
40633
40637
  }
40634
40638
  }
40635
40639
  x($e, "error", zn);
@@ -40711,7 +40715,7 @@ var mqtt = { exports: {} };
40711
40715
  }), $e.on("end", () => {
40712
40716
  this.push(null);
40713
40717
  }), $e.on("error", (wn) => {
40714
- In(this, wn);
40718
+ Cn(this, wn);
40715
40719
  }), $e.on("close", () => {
40716
40720
  this.destroy();
40717
40721
  }), $e.on("destroy", () => {
@@ -40738,9 +40742,9 @@ var mqtt = { exports: {} };
40738
40742
  return En.stream = $e, En;
40739
40743
  }
40740
40744
  async function* ae($e, qe) {
40741
- let En = Cn;
40745
+ let En = In;
40742
40746
  function wn(Pn) {
40743
- this === $e ? (En(), En = Cn) : En = Pn;
40747
+ this === $e ? (En(), En = In) : En = Pn;
40744
40748
  }
40745
40749
  $e.on("readable", wn);
40746
40750
  let Ln;
@@ -40750,7 +40754,7 @@ var mqtt = { exports: {} };
40750
40754
  writable: !1
40751
40755
  },
40752
40756
  (Pn) => {
40753
- Ln = Pn ? re(Ln, Pn) : null, En(), En = Cn;
40757
+ Ln = Pn ? re(Ln, Pn) : null, En(), En = In;
40754
40758
  }
40755
40759
  );
40756
40760
  try {
@@ -41115,13 +41119,13 @@ var mqtt = { exports: {} };
41115
41119
  var Et;
41116
41120
  return typeof he._consuming == "boolean" && typeof he._dumped == "boolean" && ((Et = he.req) === null || Et === void 0 ? void 0 : Et.upgradeOrConnect) === void 0;
41117
41121
  }
41118
- function Cn(he) {
41122
+ function In(he) {
41119
41123
  if (!T(he))
41120
41124
  return null;
41121
41125
  const Et = he._writableState, hn = he._readableState, vn = Et || hn;
41122
41126
  return !vn && xe(he) || !!(vn && vn.autoDestroy && vn.emitClose && vn.closed === !1);
41123
41127
  }
41124
- function In(he) {
41128
+ function Cn(he) {
41125
41129
  var Et;
41126
41130
  return !!(he && ((Et = he[g]) !== null && Et !== void 0 ? Et : he.readableDidRead || he.readableAborted));
41127
41131
  }
@@ -41131,7 +41135,7 @@ var mqtt = { exports: {} };
41131
41135
  }
41132
41136
  o.exports = {
41133
41137
  kDestroyed: p,
41134
- isDisturbed: In,
41138
+ isDisturbed: Cn,
41135
41139
  kIsDisturbed: g,
41136
41140
  isErrored: Dt,
41137
41141
  kIsErrored: _,
@@ -41159,7 +41163,7 @@ var mqtt = { exports: {} };
41159
41163
  isWritableErrored: pe,
41160
41164
  isServerRequest: At,
41161
41165
  isServerResponse: xe,
41162
- willEmitClose: Cn,
41166
+ willEmitClose: In,
41163
41167
  isTransformStream: O
41164
41168
  };
41165
41169
  }, { "../../ours/primordials": 127 }], 123: [function(n, o, a) {
@@ -41246,7 +41250,7 @@ var mqtt = { exports: {} };
41246
41250
  else
41247
41251
  throw new M("chunk", ["string", "Buffer", "Uint8Array"], le);
41248
41252
  let ae;
41249
- return z.ending ? ae = new F() : z.destroyed && (ae = new Y("write")), ae ? (u.nextTick(V, ae), ue(oe, ae, !0), ae) : (z.pendingcb++, Cn(oe, z, le, j, V));
41253
+ return z.ending ? ae = new F() : z.destroyed && (ae = new Y("write")), ae ? (u.nextTick(V, ae), ue(oe, ae, !0), ae) : (z.pendingcb++, In(oe, z, le, j, V));
41250
41254
  }
41251
41255
  xe.prototype.write = function(oe, le, j) {
41252
41256
  return At(this, oe, le, j) === !0;
@@ -41260,7 +41264,7 @@ var mqtt = { exports: {} };
41260
41264
  throw new _e(le);
41261
41265
  return this._writableState.defaultEncoding = le, this;
41262
41266
  };
41263
- function Cn(oe, le, j, V, z) {
41267
+ function In(oe, le, j, V, z) {
41264
41268
  const ae = le.objectMode ? 1 : j.length;
41265
41269
  le.length += ae;
41266
41270
  const Oe = le.length < le.highWaterMark;
@@ -41270,7 +41274,7 @@ var mqtt = { exports: {} };
41270
41274
  callback: z
41271
41275
  }), le.allBuffers && V !== "buffer" && (le.allBuffers = !1), le.allNoop && z !== pe && (le.allNoop = !1)) : (le.writelen = ae, le.writecb = z, le.writing = !0, le.sync = !0, oe._write(j, V, le.onwrite), le.sync = !1), Oe && !le.errored && !le.destroyed;
41272
41276
  }
41273
- function In(oe, le, j, V, z, ae, Oe) {
41277
+ function Cn(oe, le, j, V, z, ae, Oe) {
41274
41278
  le.writelen = V, le.writecb = Oe, le.writing = !0, le.sync = !0, le.destroyed ? le.onwrite(new Y("write")) : j ? oe._writev(z, le.onwrite) : oe._write(z, ae, le.onwrite), le.sync = !1;
41275
41279
  }
41276
41280
  function Dt(oe, le, j, V) {
@@ -41329,13 +41333,13 @@ var mqtt = { exports: {} };
41329
41333
  for (let xn = Oe; xn < j.length; ++xn)
41330
41334
  j[xn].callback(Sn);
41331
41335
  }, bn = le.allNoop && Oe === 0 ? j : c(j, Oe);
41332
- bn.allBuffers = le.allBuffers, In(oe, le, !0, le.length, bn, "", Ue), Lt(le);
41336
+ bn.allBuffers = le.allBuffers, Cn(oe, le, !0, le.length, bn, "", Ue), Lt(le);
41333
41337
  } else {
41334
41338
  do {
41335
41339
  const { chunk: Ue, encoding: bn, callback: Sn } = j[Oe];
41336
41340
  j[Oe++] = null;
41337
41341
  const xn = z ? 1 : Ue.length;
41338
- In(oe, le, !1, xn, Ue, bn, Sn);
41342
+ Cn(oe, le, !1, xn, Ue, bn, Sn);
41339
41343
  } while (Oe < j.length && !le.writing);
41340
41344
  Oe === j.length ? Lt(le) : Oe > 256 ? (j.splice(0, Oe), le.bufferedIndex = 0) : le.bufferedIndex = Oe;
41341
41345
  }
@@ -41584,7 +41588,7 @@ var mqtt = { exports: {} };
41584
41588
  if (typeof ae != "string")
41585
41589
  throw new O(Oe, "string", ae);
41586
41590
  }
41587
- function Cn(ae, Oe, Ue = void 0, bn) {
41591
+ function In(ae, Oe, Ue = void 0, bn) {
41588
41592
  if (typeof ae != "number")
41589
41593
  throw new O(Oe, "number", ae);
41590
41594
  if (Ue != null && ae < Ue || bn != null && ae > bn || (Ue != null || bn != null) && _(ae))
@@ -41594,7 +41598,7 @@ var mqtt = { exports: {} };
41594
41598
  ae
41595
41599
  );
41596
41600
  }
41597
- const In = x((ae, Oe, Ue) => {
41601
+ const Cn = x((ae, Oe, Ue) => {
41598
41602
  if (!c(Ue, ae)) {
41599
41603
  const Sn = "must be one of: " + d(
41600
41604
  f(Ue, (xn) => typeof xn == "string" ? `'${xn}'` : w(xn)),
@@ -41713,9 +41717,9 @@ var mqtt = { exports: {} };
41713
41717
  validateFunction: jt,
41714
41718
  validateInt32: Lt,
41715
41719
  validateInteger: Ie,
41716
- validateNumber: Cn,
41720
+ validateNumber: In,
41717
41721
  validateObject: Et,
41718
- validateOneOf: In,
41722
+ validateOneOf: Cn,
41719
41723
  validatePlainFunction: _n,
41720
41724
  validatePort: Ve,
41721
41725
  validateSignalName: de,
@@ -42490,21 +42494,21 @@ var mqtt = { exports: {} };
42490
42494
  this.protocol = At, Ie = Ie.substr(xe.length);
42491
42495
  }
42492
42496
  if (F || xe || Ie.match(/^\/\/[^@\/]+@[^@\/]+/)) {
42493
- var Cn = Ie.substr(0, 2) === "//";
42494
- Cn && !(xe && L[xe]) && (Ie = Ie.substr(2), this.slashes = !0);
42497
+ var In = Ie.substr(0, 2) === "//";
42498
+ In && !(xe && L[xe]) && (Ie = Ie.substr(2), this.slashes = !0);
42495
42499
  }
42496
- if (!L[xe] && (Cn || xe && !O[xe])) {
42497
- for (var In = -1, Dt = 0; Dt < A.length; Dt++) {
42500
+ if (!L[xe] && (In || xe && !O[xe])) {
42501
+ for (var Cn = -1, Dt = 0; Dt < A.length; Dt++) {
42498
42502
  var he = Ie.indexOf(A[Dt]);
42499
- he !== -1 && (In === -1 || he < In) && (In = he);
42503
+ he !== -1 && (Cn === -1 || he < Cn) && (Cn = he);
42500
42504
  }
42501
42505
  var Et, hn;
42502
- In === -1 ? hn = Ie.lastIndexOf("@") : hn = Ie.lastIndexOf("@", In), hn !== -1 && (Et = Ie.slice(0, hn), Ie = Ie.slice(hn + 1), this.auth = decodeURIComponent(Et)), In = -1;
42506
+ Cn === -1 ? hn = Ie.lastIndexOf("@") : hn = Ie.lastIndexOf("@", Cn), hn !== -1 && (Et = Ie.slice(0, hn), Ie = Ie.slice(hn + 1), this.auth = decodeURIComponent(Et)), Cn = -1;
42503
42507
  for (var Dt = 0; Dt < b.length; Dt++) {
42504
42508
  var he = Ie.indexOf(b[Dt]);
42505
- he !== -1 && (In === -1 || he < In) && (In = he);
42509
+ he !== -1 && (Cn === -1 || he < Cn) && (Cn = he);
42506
42510
  }
42507
- In === -1 && (In = Ie.length), this.host = Ie.slice(0, In), Ie = Ie.slice(In), this.parseHost(), this.hostname = this.hostname || "";
42511
+ Cn === -1 && (Cn = Ie.length), this.host = Ie.slice(0, Cn), Ie = Ie.slice(Cn), this.parseHost(), this.hostname = this.hostname || "";
42508
42512
  var vn = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
42509
42513
  if (!vn)
42510
42514
  for (var kt = this.hostname.split(/\./), Dt = 0, Ce = kt.length; Dt < Ce; Dt++) {
@@ -42583,8 +42587,8 @@ var mqtt = { exports: {} };
42583
42587
  if (D.protocol && D.protocol !== F.protocol) {
42584
42588
  if (!O[D.protocol]) {
42585
42589
  for (var xe = Object.keys(D), At = 0; At < xe.length; At++) {
42586
- var Cn = xe[At];
42587
- F[Cn] = D[Cn];
42590
+ var In = xe[At];
42591
+ F[In] = D[In];
42588
42592
  }
42589
42593
  return F.href = F.format(), F;
42590
42594
  }
@@ -42595,8 +42599,8 @@ var mqtt = { exports: {} };
42595
42599
  } else
42596
42600
  F.pathname = D.pathname;
42597
42601
  if (F.search = D.search, F.query = D.query, F.host = D.host || "", F.auth = D.auth, F.hostname = D.hostname || D.host, F.port = D.port, F.pathname || F.search) {
42598
- var In = F.pathname || "", Dt = F.search || "";
42599
- F.path = In + Dt;
42602
+ var Cn = F.pathname || "", Dt = F.search || "";
42603
+ F.path = Cn + Dt;
42600
42604
  }
42601
42605
  return F.slashes = F.slashes || D.slashes, F.href = F.format(), F;
42602
42606
  }