(self.webpackChunkRemoteClient = self.webpackChunkRemoteClient || []).push([
  [9052, 2058],
  {
    73173: (e, t, n) => {
      'use strict';
      n.d(t, { g: () => l });
      var r = n(31450),
        o = (n(82058), n(60991)),
        s = n(92143),
        i = n(32101);
      const a = s.L.getLogger('esri.assets');
      function l(e) {
        if (!r.Z.assetsPath)
          throw (
            (a.errorOnce(
              'The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50',
            ),
            new o.Z('assets:path-not-set', 'config.assetsPath is not set'))
          );
        return (0, i.v_)(r.Z.assetsPath, e);
      }
    },
    39052: (e, t, n) => {
      'use strict';
      n.r(t), n.d(t, { registerFunctions: () => m });
      var r = n(88762),
        o = n(1886),
        s = n(21801),
        i = n(73796),
        a = n(42870),
        l = n(84069),
        u = n(91597),
        c = n(44567),
        f = n(92896),
        d = n(32422);
      function h(e) {
        return 0 === r.i8.indexOf('4.')
          ? c.Z.fromExtent(e)
          : new c.Z({
              spatialReference: e.spatialReference,
              rings: [
                [
                  [e.xmin, e.ymin],
                  [e.xmin, e.ymax],
                  [e.xmax, e.ymax],
                  [e.xmax, e.ymin],
                  [e.xmin, e.ymin],
                ],
              ],
            });
      }
      function g(e) {
        if (((0, o.p)(e, 2, 2), e[0] instanceof i.Z && e[1] instanceof i.Z));
        else if (e[0] instanceof i.Z && null === e[1]);
        else if (e[1] instanceof i.Z && null === e[0]);
        else if (null !== e[0] || null !== e[1]) throw new Error('Illegal Argument');
      }
      function m(e) {
        'async' === e.mode &&
          ((e.functions.disjoint = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return g((n = (0, o.Q)(n))), null === n[0] || null === n[1] || (0, a.ED)(n[0], n[1]);
            });
          }),
          (e.functions.intersects = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return g((n = (0, o.Q)(n))), null !== n[0] && null !== n[1] && (0, a.kK)(n[0], n[1]);
            });
          }),
          (e.functions.touches = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return g((n = (0, o.Q)(n))), null !== n[0] && null !== n[1] && (0, a.W4)(n[0], n[1]);
            });
          }),
          (e.functions.crosses = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return g((n = (0, o.Q)(n))), null !== n[0] && null !== n[1] && (0, a.jU)(n[0], n[1]);
            });
          }),
          (e.functions.within = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return g((n = (0, o.Q)(n))), null !== n[0] && null !== n[1] && (0, a.uh)(n[0], n[1]);
            });
          }),
          (e.functions.contains = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return g((n = (0, o.Q)(n))), null !== n[0] && null !== n[1] && (0, a.r3)(n[0], n[1]);
            });
          }),
          (e.functions.overlaps = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return g((n = (0, o.Q)(n))), null !== n[0] && null !== n[1] && (0, a.Nm)(n[0], n[1]);
            });
          }),
          (e.functions.equals = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return (
                (0, o.p)(n, 2, 2),
                n[0] === n[1] ||
                  (n[0] instanceof i.Z && n[1] instanceof i.Z
                    ? (0, a.fS)(n[0], n[1])
                    : !(!(0, o.L)(n[0]) || !(0, o.L)(n[1])) && n[0].getTime() === n[1].getTime())
              );
            });
          }),
          (e.functions.relate = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (
                ((n = (0, o.Q)(n)), (0, o.p)(n, 3, 3), n[0] instanceof i.Z && n[1] instanceof i.Z)
              )
                return (0, a.LV)(n[0], n[1], (0, o.t)(n[2]));
              if (n[0] instanceof i.Z && null === n[1]) return !1;
              if (n[1] instanceof i.Z && null === n[0]) return !1;
              if (null === n[0] && null === n[1]) return !1;
              throw new Error('Illegal Argument');
            });
          }),
          (e.functions.intersection = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return (
                g((n = (0, o.Q)(n))), null === n[0] || null === n[1] ? null : (0, a.wf)(n[0], n[1])
              );
            });
          }),
          (e.functions.union = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, n, r) {
              const s = [];
              if (0 === (r = (0, o.Q)(r)).length)
                throw new Error('Function called with wrong number of Parameters');
              if (1 === r.length)
                if ((0, o.u)(r[0])) {
                  const e = (0, o.Q)(r[0]);
                  for (let t = 0; t < e.length; t++)
                    if (null !== e[t]) {
                      if (!(e[t] instanceof i.Z)) throw new Error('Illegal Argument');
                      s.push(e[t]);
                    }
                } else {
                  if (!(0, o.x)(r[0])) {
                    if (r[0] instanceof i.Z) return (0, o.H)((0, o.S)(r[0]), t.spatialReference);
                    if (null === r[0]) return null;
                    throw new Error('Illegal Argument');
                  }
                  {
                    const e = (0, o.Q)(r[0].toArray());
                    for (let t = 0; t < e.length; t++)
                      if (null !== e[t]) {
                        if (!(e[t] instanceof i.Z)) throw new Error('Illegal Argument');
                        s.push(e[t]);
                      }
                  }
                }
              else
                for (let e = 0; e < r.length; e++)
                  if (null !== r[e]) {
                    if (!(r[e] instanceof i.Z)) throw new Error('Illegal Argument');
                    s.push(r[e]);
                  }
              return 0 === s.length ? null : (0, a.G0)(s);
            });
          }),
          (e.functions.difference = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return (
                g((n = (0, o.Q)(n))),
                null !== n[0] && null === n[1]
                  ? (0, o.S)(n[0])
                  : null === n[0]
                  ? null
                  : (0, a.e5)(n[0], n[1])
              );
            });
          }),
          (e.functions.symmetricdifference = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              return (
                g((n = (0, o.Q)(n))),
                null === n[0] && null === n[1]
                  ? null
                  : null === n[0]
                  ? (0, o.S)(n[1])
                  : null === n[1]
                  ? (0, o.S)(n[0])
                  : (0, a.Sp)(n[0], n[1])
              );
            });
          }),
          (e.functions.clip = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (((n = (0, o.Q)(n)), (0, o.p)(n, 2, 2), !(n[1] instanceof s.Z) && null !== n[1]))
                throw new Error('Illegal Argument');
              if (null === n[0]) return null;
              if (!(n[0] instanceof i.Z)) throw new Error('Illegal Argument');
              return null === n[1] ? null : (0, a.oq)(n[0], n[1]);
            });
          }),
          (e.functions.cut = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (((n = (0, o.Q)(n)), (0, o.p)(n, 2, 2), !(n[1] instanceof f.Z) && null !== n[1]))
                throw new Error('Illegal Argument');
              if (null === n[0]) return [];
              if (!(n[0] instanceof i.Z)) throw new Error('Illegal Argument');
              return null === n[1] ? [(0, o.S)(n[0])] : (0, a.z7)(n[0], n[1]);
            });
          }),
          (e.functions.area = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, n, r) {
              if (((0, o.p)(r, 1, 2), null === (r = (0, o.Q)(r))[0])) return 0;
              if ((0, o.z)(r[0]))
                return r[0].sumArea((0, o.T)((0, o.U)(r[1], -1)), !1, t.abortSignal).then((e) => {
                  if (t.abortSignal.aborted) throw new Error('Operation has been cancelled.');
                  return e;
                });
              if ((0, o.u)(r[0]) || (0, o.x)(r[0])) {
                const e = (0, o.V)(r[0], t.spatialReference);
                return null === e ? 0 : (0, a.CJ)(e, (0, o.T)((0, o.U)(r[1], -1)));
              }
              if (!(r[0] instanceof i.Z)) throw new Error('Illegal Argument');
              return (0, a.CJ)(r[0], (0, o.T)((0, o.U)(r[1], -1)));
            });
          }),
          (e.functions.areageodetic = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, n, r) {
              if (((0, o.p)(r, 1, 2), null === (r = (0, o.Q)(r))[0])) return 0;
              if ((0, o.z)(r[0]))
                return r[0].sumArea((0, o.T)((0, o.U)(r[1], -1)), !0, t.abortSignal).then((e) => {
                  if (t.abortSignal.aborted) throw new Error('Operation has been cancelled.');
                  return e;
                });
              if ((0, o.u)(r[0]) || (0, o.x)(r[0])) {
                const e = (0, o.V)(r[0], t.spatialReference);
                return null === e ? 0 : (0, a.Y4)(e, (0, o.T)((0, o.U)(r[1], -1)));
              }
              if (!(r[0] instanceof i.Z)) throw new Error('Illegal Argument');
              return (0, a.Y4)(r[0], (0, o.T)((0, o.U)(r[1], -1)));
            });
          }),
          (e.functions.length = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, n, r) {
              if (((0, o.p)(r, 1, 2), null === (r = (0, o.Q)(r))[0])) return 0;
              if ((0, o.z)(r[0]))
                return r[0].sumLength((0, o.W)((0, o.U)(r[1], -1)), !1, t.abortSignal).then((e) => {
                  if (t.abortSignal.aborted) throw new Error('Operation has been cancelled.');
                  return e;
                });
              if ((0, o.u)(r[0]) || (0, o.x)(r[0])) {
                const e = (0, o.X)(r[0], t.spatialReference);
                return null === e ? 0 : (0, a.sz)(e, (0, o.W)((0, o.U)(r[1], -1)));
              }
              if (!(r[0] instanceof i.Z)) throw new Error('Illegal Argument');
              return (0, a.sz)(r[0], (0, o.W)((0, o.U)(r[1], -1)));
            });
          }),
          (e.functions.lengthgeodetic = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, n, r) {
              if (((0, o.p)(r, 1, 2), null === (r = (0, o.Q)(r))[0])) return 0;
              if ((0, o.z)(r[0]))
                return r[0].sumLength((0, o.W)((0, o.U)(r[1], -1)), !0, t.abortSignal).then((e) => {
                  if (t.abortSignal.aborted) throw new Error('Operation has been cancelled.');
                  return e;
                });
              if ((0, o.u)(r[0]) || (0, o.x)(r[0])) {
                const e = (0, o.X)(r[0], t.spatialReference);
                return null === e ? 0 : (0, a.kQ)(e, (0, o.W)((0, o.U)(r[1], -1)));
              }
              if (!(r[0] instanceof i.Z)) throw new Error('Illegal Argument');
              return (0, a.kQ)(r[0], (0, o.W)((0, o.U)(r[1], -1)));
            });
          }),
          (e.functions.distance = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, n, r) {
              (r = (0, o.Q)(r)), (0, o.p)(r, 2, 3);
              let s = r[0];
              ((0, o.u)(r[0]) || (0, o.x)(r[0])) && (s = (0, o.Y)(r[0], t.spatialReference));
              let l = r[1];
              if (
                (((0, o.u)(r[1]) || (0, o.x)(r[1])) && (l = (0, o.Y)(r[1], t.spatialReference)),
                !(s instanceof i.Z))
              )
                throw new Error('Illegal Argument');
              if (!(l instanceof i.Z)) throw new Error('Illegal Argument');
              return (0, a.TE)(s, l, (0, o.W)((0, o.U)(r[2], -1)));
            });
          }),
          (e.functions.distancegeodetic = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              (n = (0, o.Q)(n)), (0, o.p)(n, 2, 3);
              const r = n[0],
                s = n[1];
              if (!(r instanceof u.Z)) throw new Error('Illegal Argument');
              if (!(s instanceof u.Z)) throw new Error('Illegal Argument');
              const i = new f.Z({ paths: [], spatialReference: r.spatialReference });
              return i.addPath([r, s]), (0, a.kQ)(i, (0, o.W)((0, o.U)(n[2], -1)));
            });
          }),
          (e.functions.densify = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (((n = (0, o.Q)(n)), (0, o.p)(n, 2, 3), null === n[0])) return null;
              if (!(n[0] instanceof i.Z)) throw new Error('Illegal Argument');
              const r = (0, o.C)(n[1]);
              if (isNaN(r)) throw new Error('Illegal Argument');
              if (r <= 0) throw new Error('Illegal Argument');
              return n[0] instanceof c.Z || n[0] instanceof f.Z
                ? (0, a.Cz)(n[0], r, (0, o.W)((0, o.U)(n[2], -1)))
                : n[0] instanceof s.Z
                ? (0, a.Cz)(h(n[0]), r, (0, o.W)((0, o.U)(n[2], -1)))
                : n[0];
            });
          }),
          (e.functions.densifygeodetic = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (((n = (0, o.Q)(n)), (0, o.p)(n, 2, 3), null === n[0])) return null;
              if (!(n[0] instanceof i.Z)) throw new Error('Illegal Argument');
              const r = (0, o.C)(n[1]);
              if (isNaN(r)) throw new Error('Illegal Argument');
              if (r <= 0) throw new Error('Illegal Argument');
              return n[0] instanceof c.Z || n[0] instanceof f.Z
                ? (0, a.j2)(n[0], r, (0, o.W)((0, o.U)(n[2], -1)))
                : n[0] instanceof s.Z
                ? (0, a.j2)(h(n[0]), r, (0, o.W)((0, o.U)(n[2], -1)))
                : n[0];
            });
          }),
          (e.functions.generalize = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (((n = (0, o.Q)(n)), (0, o.p)(n, 2, 4), null === n[0])) return null;
              if (!(n[0] instanceof i.Z)) throw new Error('Illegal Argument');
              const r = (0, o.C)(n[1]);
              if (isNaN(r)) throw new Error('Illegal Argument');
              return (0, a.D$)(n[0], r, (0, o.Z)((0, o.U)(n[2], !0)), (0, o.W)((0, o.U)(n[3], -1)));
            });
          }),
          (e.functions.buffer = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (((n = (0, o.Q)(n)), (0, o.p)(n, 2, 3), null === n[0])) return null;
              if (!(n[0] instanceof i.Z)) throw new Error('Illegal Argument');
              const r = (0, o.C)(n[1]);
              if (isNaN(r)) throw new Error('Illegal Argument');
              return 0 === r ? (0, o.S)(n[0]) : (0, a.f3)(n[0], r, (0, o.W)((0, o.U)(n[2], -1)));
            });
          }),
          (e.functions.buffergeodetic = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (((n = (0, o.Q)(n)), (0, o.p)(n, 2, 3), null === n[0])) return null;
              if (!(n[0] instanceof i.Z)) throw new Error('Illegal Argument');
              const r = (0, o.C)(n[1]);
              if (isNaN(r)) throw new Error('Illegal Argument');
              return 0 === r ? (0, o.S)(n[0]) : (0, a.rd)(n[0], r, (0, o.W)((0, o.U)(n[2], -1)));
            });
          }),
          (e.functions.offset = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (((n = (0, o.Q)(n)), (0, o.p)(n, 2, 6), null === n[0])) return null;
              if (!(n[0] instanceof c.Z || n[0] instanceof f.Z))
                throw new Error('Illegal Argument');
              const r = (0, o.C)(n[1]);
              if (isNaN(r)) throw new Error('Illegal Argument');
              const s = (0, o.C)((0, o.U)(n[4], 10));
              if (isNaN(s)) throw new Error('Illegal Argument');
              const i = (0, o.C)((0, o.U)(n[5], 0));
              if (isNaN(i)) throw new Error('Illegal Argument');
              return (0,
              a.cv)(n[0], r, (0, o.W)((0, o.U)(n[2], -1)), (0, o.t)((0, o.U)(n[3], 'round')).toLowerCase(), s, i);
            });
          }),
          (e.functions.rotate = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              (n = (0, o.Q)(n)), (0, o.p)(n, 2, 3);
              let r = n[0];
              if (null === r) return null;
              if (!(r instanceof i.Z)) throw new Error('Illegal Argument');
              r instanceof s.Z && (r = c.Z.fromExtent(r));
              const l = (0, o.C)(n[1]);
              if (isNaN(l)) throw new Error('Illegal Argument');
              const f = (0, o.U)(n[2], null);
              if (null === f) return (0, a.U1)(r, l);
              if (f instanceof u.Z) return (0, a.U1)(r, l, f);
              throw new Error('Illegal Argument');
            });
          }),
          (e.functions.centroid = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, n, r) {
              if (((r = (0, o.Q)(r)), (0, o.p)(r, 1, 1), null === r[0])) return null;
              let a = r[0];
              if (
                (((0, o.u)(r[0]) || (0, o.x)(r[0])) && (a = (0, o.Y)(r[0], t.spatialReference)),
                null === a)
              )
                return null;
              if (!(a instanceof i.Z)) throw new Error('Illegal Argument');
              return a instanceof u.Z
                ? (0, o.H)((0, o.S)(r[0]), t.spatialReference)
                : a instanceof c.Z
                ? a.centroid
                : a instanceof f.Z
                ? (0, o._)(a)
                : a instanceof l.Z
                ? (0, o.$)(a)
                : a instanceof s.Z
                ? a.center
                : null;
            });
          }),
          (e.functions.multiparttosinglepart = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, n, r) {
              (r = (0, o.Q)(r)), (0, o.p)(r, 1, 1);
              const h = [];
              if (null === r[0]) return null;
              if (!(r[0] instanceof i.Z)) throw new Error('Illegal Argument');
              return r[0] instanceof u.Z || r[0] instanceof s.Z
                ? [(0, o.H)((0, o.S)(r[0]), t.spatialReference)]
                : (0, a.og)(r[0]).then((e) => {
                    if (e instanceof c.Z) {
                      const t = [],
                        n = [];
                      for (let r = 0; r < e.rings.length; r++)
                        if (e.isClockwise(e.rings[r])) {
                          const n = (0, d.im)({
                            rings: [e.rings[r]],
                            hasZ: !0 === e.hasZ,
                            hazM: !0 === e.hasM,
                            spatialReference: e.spatialReference.toJSON(),
                          });
                          t.push(n);
                        } else n.push({ ring: e.rings[r], pt: e.getPoint(r, 0) });
                      for (let e = 0; e < n.length; e++)
                        for (let r = 0; r < t.length; r++)
                          if (t[r].contains(n[e].pt)) {
                            t[r].addRing(n[e].ring);
                            break;
                          }
                      return t;
                    }
                    if (e instanceof f.Z) {
                      const t = [];
                      for (let n = 0; n < e.paths.length; n++) {
                        const r = (0, d.im)({
                          paths: [e.paths[n]],
                          hasZ: !0 === e.hasZ,
                          hazM: !0 === e.hasM,
                          spatialReference: e.spatialReference.toJSON(),
                        });
                        t.push(r);
                      }
                      return t;
                    }
                    if (r[0] instanceof l.Z) {
                      const e = (0, o.H)((0, o.S)(r[0]), t.spatialReference);
                      for (let t = 0; t < e.points.length; t++) h.push(e.getPoint(t));
                      return h;
                    }
                    return null;
                  });
            });
          }),
          (e.functions.issimple = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (((n = (0, o.Q)(n)), (0, o.p)(n, 1, 1), null === n[0])) return !0;
              if (!(n[0] instanceof i.Z)) throw new Error('Illegal Argument');
              return (0, a.Gg)(n[0]);
            });
          }),
          (e.functions.simplify = function (t, n) {
            return e.standardFunctionAsync(t, n, function (e, t, n) {
              if (((n = (0, o.Q)(n)), (0, o.p)(n, 1, 1), null === n[0])) return null;
              if (!(n[0] instanceof i.Z)) throw new Error('Illegal Argument');
              return (0, a.og)(n[0]);
            });
          }));
      }
      n(76506),
        n(32101),
        n(31450),
        n(71552),
        n(60991),
        n(92143),
        n(40642),
        n(81172),
        n(50406),
        n(56240),
        n(3482),
        n(97546),
        n(57251),
        n(74673),
        n(21972),
        n(23639),
        n(34250),
        n(91306),
        n(86656),
        n(22723),
        n(91055),
        n(17533),
        n(27794),
        n(6906),
        n(26341),
        n(59465),
        n(97714),
        n(9801),
        n(53523),
        n(42911),
        n(46826),
        n(45433),
        n(54732),
        n(40267),
        n(60947),
        n(2906),
        n(21929),
        n(74569),
        n(22781),
        n(35132),
        n(89623),
        n(86787),
        n(98380),
        n(92228),
        n(65514),
        n(46987),
        n(37453),
        n(73173),
        n(82058),
        n(66284),
        n(33921);
    },
    33921: (e, t, n) => {
      'use strict';
      n.d(t, { a: () => y, b: () => E, c: () => w, f: () => A });
      var r = n(57251),
        o = n(3482),
        s = n(76506);
      const i = { year: 'numeric', month: 'numeric', day: 'numeric' },
        a = { year: 'numeric', month: 'long', day: 'numeric' },
        l = { year: 'numeric', month: 'short', day: 'numeric' },
        u = { year: 'numeric', month: 'long', weekday: 'long', day: 'numeric' },
        c = { hour: 'numeric', minute: 'numeric' },
        f = { ...c, second: 'numeric' },
        d = {
          'short-date': i,
          'short-date-short-time': { ...i, ...c },
          'short-date-short-time-24': { ...i, ...c, hour12: !1 },
          'short-date-long-time': { ...i, ...f },
          'short-date-long-time-24': { ...i, ...f, hour12: !1 },
          'short-date-le': i,
          'short-date-le-short-time': { ...i, ...c },
          'short-date-le-short-time-24': { ...i, ...c, hour12: !1 },
          'short-date-le-long-time': { ...i, ...f },
          'short-date-le-long-time-24': { ...i, ...f, hour12: !1 },
          'long-month-day-year': a,
          'long-month-day-year-short-time': { ...a, ...c },
          'long-month-day-year-short-time-24': { ...a, ...c, hour12: !1 },
          'long-month-day-year-long-time': { ...a, ...f },
          'long-month-day-year-long-time-24': { ...a, ...f, hour12: !1 },
          'day-short-month-year': l,
          'day-short-month-year-short-time': { ...l, ...c },
          'day-short-month-year-short-time-24': { ...l, ...c, hour12: !1 },
          'day-short-month-year-long-time': { ...l, ...f },
          'day-short-month-year-long-time-24': { ...l, ...f, hour12: !1 },
          'long-date': u,
          'long-date-short-time': { ...u, ...c },
          'long-date-short-time-24': { ...u, ...c, hour12: !1 },
          'long-date-long-time': { ...u, ...f },
          'long-date-long-time-24': { ...u, ...f, hour12: !1 },
          'long-month-year': { month: 'long', year: 'numeric' },
          'short-month-year': { month: 'short', year: 'numeric' },
          year: { year: 'numeric' },
          'short-time': c,
          'long-time': f,
        },
        h = (0, r.s)()({
          shortDate: 'short-date',
          shortDateShortTime: 'short-date-short-time',
          shortDateShortTime24: 'short-date-short-time-24',
          shortDateLongTime: 'short-date-long-time',
          shortDateLongTime24: 'short-date-long-time-24',
          shortDateLE: 'short-date-le',
          shortDateLEShortTime: 'short-date-le-short-time',
          shortDateLEShortTime24: 'short-date-le-short-time-24',
          shortDateLELongTime: 'short-date-le-long-time',
          shortDateLELongTime24: 'short-date-le-long-time-24',
          longMonthDayYear: 'long-month-day-year',
          longMonthDayYearShortTime: 'long-month-day-year-short-time',
          longMonthDayYearShortTime24: 'long-month-day-year-short-time-24',
          longMonthDayYearLongTime: 'long-month-day-year-long-time',
          longMonthDayYearLongTime24: 'long-month-day-year-long-time-24',
          dayShortMonthYear: 'day-short-month-year',
          dayShortMonthYearShortTime: 'day-short-month-year-short-time',
          dayShortMonthYearShortTime24: 'day-short-month-year-short-time-24',
          dayShortMonthYearLongTime: 'day-short-month-year-long-time',
          dayShortMonthYearLongTime24: 'day-short-month-year-long-time-24',
          longDate: 'long-date',
          longDateShortTime: 'long-date-short-time',
          longDateShortTime24: 'long-date-short-time-24',
          longDateLongTime: 'long-date-long-time',
          longDateLongTime24: 'long-date-long-time-24',
          longMonthYear: 'long-month-year',
          shortMonthYear: 'short-month-year',
          year: 'year',
        });
      h.toJSON.bind(h), h.fromJSON.bind(h);
      const g = { ar: 'ar-u-nu-latn-ca-gregory' };
      let m = new WeakMap(),
        p = d['short-date-short-time'];
      function w(e) {
        return d[e] || null;
      }
      function y(e, t) {
        return (function (e) {
          const t = e || p;
          if (!m.has(t)) {
            const e = (0, o.g)(),
              n = g[(0, o.g)()] || e;
            m.set(t, new Intl.DateTimeFormat(n, t));
          }
          return m.get(t);
        })(t).format(e);
      }
      (0, o.b)(() => {
        (m = new WeakMap()), (p = d['short-date-short-time']);
      });
      const b = { ar: 'ar-u-nu-latn' };
      let k = new WeakMap(),
        v = {};
      function E(e = {}) {
        const t = {};
        return (
          null != e.digitSeparator && (t.useGrouping = e.digitSeparator),
          null != e.places && (t.minimumFractionDigits = t.maximumFractionDigits = e.places),
          t
        );
      }
      function A(e, t) {
        return (function (e) {
          const t = e || v;
          if (!k.has(t)) {
            const n = (0, o.g)(),
              r = b[(0, o.g)()] || n;
            k.set(t, new Intl.NumberFormat(r, e));
          }
          return (0, s.a)(k.get(t));
        })(t).format(e);
      }
      (0, o.b)(() => {
        (k = new WeakMap()), (v = {});
      });
    },
    46987: (e, t, n) => {
      'use strict';
      n.d(t, { Z: () => l });
      var r = n(22723),
        o = n(92143),
        s = n(50406),
        i = n(37453);
      n(76506), n(31450), n(71552), n(40642), n(60991), n(81172), n(88762), n(32101);
      const a = o.L.getLogger('esri.core.workers.Connection'),
        l = class {
          constructor() {
            (this._clients = new Array()),
              (this._clientPromises = new Array()),
              (this._clientIdx = 0);
          }
          destroy() {
            this.close();
          }
          get closed() {
            return !this._clients || !this._clients.length;
          }
          open(e, t) {
            return new Promise((n, r) => {
              let o = !0;
              const a = (e) => {
                (0, s.k_)(t.signal), o && ((o = !1), e());
              };
              (this._clients.length = e.length), (this._clientPromises.length = e.length);
              for (let o = 0; o < e.length; ++o) {
                const l = e[o];
                (0, s.y8)(l)
                  ? (this._clientPromises[o] = l.then(
                      (e) => ((this._clients[o] = new i.default(e, t)), a(n), this._clients[o]),
                      () => (a(r), null),
                    ))
                  : ((this._clients[o] = new i.default(l, t)),
                    (this._clientPromises[o] = Promise.resolve(this._clients[o])),
                    a(n));
              }
            });
          }
          broadcast(e, t, n) {
            const r = new Array(this._clientPromises.length);
            for (let o = 0; o < this._clientPromises.length; ++o) {
              const s = this._clientPromises[o];
              r[o] = s.then((r) => r.invoke(e, t, n));
            }
            return r;
          }
          close() {
            for (const e of this._clientPromises) e.then((e) => e.close());
            (this._clients.length = 0), (this._clientPromises.length = 0);
          }
          getAvailableClient() {
            let e;
            for (let t = 0; t < this._clients.length; ++t) {
              const n = this._clients[t];
              if (n) {
                if (!n.isBusy()) return Promise.resolve(n);
              } else (e = e || []), e.push(this._clientPromises[t]);
            }
            return e
              ? Promise.race(e)
              : ((this._clientIdx = (this._clientIdx + 1) % this._clients.length),
                Promise.resolve(this._clients[this._clientIdx]));
          }
          invoke(e, t, n) {
            let r = null;
            return (
              Array.isArray(n)
                ? (a.warn(
                    'invoke()',
                    'The transferList parameter is deprecated, use the options object instead',
                  ),
                  (r = { transferList: n }))
                : (r = n),
              this.closed
                ? Promise.reject(new Error('Connection closed'))
                : this.getAvailableClient().then((n) => n.invoke(e, t, r))
            );
          }
          on(e, t) {
            return Promise.all(this._clientPromises).then(() =>
              (0, r.h)(this._clients.map((n) => n.on(e, t))),
            );
          }
          openPorts() {
            return new Promise((e) => {
              const t = new Array(this._clientPromises.length);
              let n = t.length;
              for (let r = 0; r < this._clientPromises.length; ++r)
                this._clientPromises[r].then((o) => {
                  (t[r] = o.openPort()), 0 == --n && e(t);
                });
            });
          }
          get test() {
            return { numClients: this._clients.length };
          }
        };
    },
    65514: (e, t, n) => {
      'use strict';
      n.d(t, { bA: () => q, Mz: () => D });
      var r = n(60991),
        o = n(76506),
        s = n(50406),
        i = n(46987),
        a = n(37453),
        l = n(88762),
        u = n(92143),
        c = n(73173),
        f = n(31450),
        d = (n(66284), n(32101)),
        h = n(3482);
      n(81172), n(71552), n(40642), n(22723), n(82058), n(33921), n(57251);
      let g = null;
      g = (0, d.hF)((0, c.g)('esri/core/workers/init.js'));
      const m = {};
      (m.baseUrl = (0, d.hF)((0, c.g)('dojo/'))),
        (m.packages = [{ name: 'esri', location: '../esri' }]);
      class p {
        constructor() {
          const e = document.createDocumentFragment();
          ['addEventListener', 'dispatchEvent', 'removeEventListener'].forEach((t) => {
            this[t] = (...n) => e[t](...n);
          });
        }
      }
      const w = o.g.MutationObserver || o.g.WebKitMutationObserver,
        y = (function () {
          let e;
          if (o.g.process && o.g.process.nextTick)
            e = (e) => {
              o.g.process.nextTick(e);
            };
          else if (o.g.Promise)
            e = (e) => {
              o.g.Promise.resolve().then(e);
            };
          else if (w) {
            const t = [],
              n = document.createElement('div');
            new w(() => {
              for (; t.length > 0; ) t.shift()();
            }).observe(n, { attributes: !0 }),
              (e = (e) => {
                t.push(e), n.setAttribute('queueStatus', '1');
              });
          }
          return e;
        })(),
        b = (() => {
          const e = o.g.MessageEvent;
          try {
            new e('message', { data: null });
          } catch {
            return (e, t = {}) => {
              const { data: n, bubbles: r = !1, cancelable: o = !1 } = t,
                s = document.createEvent('Event');
              return s.initEvent(e, r, o), (s.data = n), s;
            };
          }
          return (t, n) => new e(t, n);
        })();
      class k {
        constructor() {
          (this._dispatcher = new p()), this._workerPostMessage({ type: a.M.HANDSHAKE });
        }
        terminate() {}
        get onmessage() {
          return this._onmessageHandler;
        }
        set onmessage(e) {
          this._onmessageHandler && this.removeEventListener('message', this._onmessageHandler),
            (this._onmessageHandler = e),
            e && this.addEventListener('message', e);
        }
        get onmessageerror() {
          return this._onmessageerrorHandler;
        }
        set onmessageerror(e) {
          this._onmessageerrorHandler &&
            this.removeEventListener('messageerror', this._onmessageerrorHandler),
            (this._onmessageerrorHandler = e),
            e && this.addEventListener('messageerror', e);
        }
        get onerror() {
          return this._onerrorHandler;
        }
        set onerror(e) {
          this._onerrorHandler && this.removeEventListener('error', this._onerrorHandler),
            (this._onerrorHandler = e),
            e && this.addEventListener('error', e);
        }
        postMessage(e) {
          y(() => {
            this._workerMessageHandler(b('message', { data: e }));
          });
        }
        dispatchEvent(e) {
          return this._dispatcher.dispatchEvent(e);
        }
        addEventListener(e, t, n) {
          this._dispatcher.addEventListener(e, t, n);
        }
        removeEventListener(e, t, n) {
          this._dispatcher.removeEventListener(e, t, n);
        }
        _workerPostMessage(e) {
          y(() => {
            this.dispatchEvent(b('message', { data: e }));
          });
        }
        async _workerMessageHandler(e) {
          const t = (0, a.r)(e);
          if (t && t.type === a.M.OPEN) {
            const { modulePath: e, jobId: n } = t;
            let r = await a.default.loadWorker(e);
            r || (r = await import(e));
            const o = a.default.connect(r);
            this._workerPostMessage({ type: a.M.OPENED, jobId: n, data: o });
          }
        }
      }
      const v = u.L.getLogger('esri.core.workers'),
        { HANDSHAKE: E } = a.M;
      let A, _;
      const S = 'Failed to create Worker. Fallback to execute module in main thread';
      async function L(e) {
        return new Promise((t) => {
          function n(o) {
            const s = (0, a.r)(o);
            s &&
              s.type === E &&
              (e.removeEventListener('message', n), e.removeEventListener('error', r), t(e));
          }
          function r(t) {
            t.preventDefault(),
              e.removeEventListener('message', n),
              e.removeEventListener('error', r),
              v.warn('Failed to create Worker. Fallback to execute module in main thread', t),
              (e = new k()).addEventListener('message', n),
              e.addEventListener('error', r);
          }
          e.addEventListener('message', n), e.addEventListener('error', r);
        });
      }
      let P = 0;
      const O = u.L.getLogger('esri.core.workers'),
        { ABORT: I, INVOKE: Z, OPEN: T, OPENED: x, RESPONSE: C } = a.M;
      class U {
        constructor(e, t) {
          (this._outJobs = new Map()),
            (this._inJobs = new Map()),
            (this.worker = e),
            (this.id = t),
            e.addEventListener('message', this._onMessage.bind(this)),
            e.addEventListener('error', (e) => {
              e.preventDefault(), O.error(e);
            });
        }
        static async create(e) {
          const t = await (async function () {
            if (!(0, o.h)('esri-workers')) return L(new k());
            if (!A && !_)
              try {
                const e = 'let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace(
                  '"{CONFIGURATION}"',
                  `'${(function () {
                    let e;
                    if (null != f.Z.default) {
                      const t = { ...f.Z };
                      delete t.default, (e = JSON.parse(JSON.stringify(t)));
                    } else e = JSON.parse(JSON.stringify(f.Z));
                    (e.assetsPath = (0, d.hF)(e.assetsPath)),
                      (e.request.interceptors = []),
                      (e.log.interceptors = []),
                      (e.locale = (0, h.g)()),
                      (e.has = {
                        'csp-restrictions': (0, o.h)('csp-restrictions'),
                        'esri-2d-debug': !1,
                        'esri-2d-update-debug': (0, o.h)('esri-2d-update-debug'),
                        'esri-2d-query-centroid-enabled': (0, o.h)(
                          'esri-2d-query-centroid-enabled',
                        ),
                        'featurelayer-pbf': (0, o.h)('featurelayer-pbf'),
                        'esri-atomics': (0, o.h)('esri-atomics'),
                        'esri-shared-array-buffer': (0, o.h)('esri-shared-array-buffer'),
                        'esri-tiles-debug': (0, o.h)('esri-tiles-debug'),
                        'esri-workers-arraybuffer-transfer': (0, o.h)(
                          'esri-workers-arraybuffer-transfer',
                        ),
                        'host-webworker': 1,
                      }),
                      e.workers.loaderUrl
                        ? (e.workers.loaderUrl = (0, d.hF)(e.workers.loaderUrl))
                        : g && (e.workers.loaderUrl = g),
                      e.workers.workerPath
                        ? (e.workers.workerPath = (0, d.hF)(e.workers.workerPath))
                        : (e.workers.workerPath = 'esri/core/workers/RemoteClient');
                    const t = f.Z.workers.loaderConfig,
                      n = (function (e) {
                        var t;
                        const n = {
                          async: e.async,
                          isDebug: e.isDebug,
                          locale: e.locale,
                          baseUrl: e.baseUrl,
                          has: { ...e.has },
                          map: { ...e.map },
                          packages: (e.packages && e.packages.concat()) || [],
                          paths: { ...e.paths },
                        };
                        return (
                          e.hasOwnProperty('async') || (n.async = !0),
                          e.hasOwnProperty('isDebug') || (n.isDebug = !1),
                          e.baseUrl || (n.baseUrl = m.baseUrl),
                          null == (t = m.packages) ||
                            t.forEach((e) => {
                              !(function (e, t) {
                                for (const n of e) if (n.name === t.name) return;
                                e.push(t);
                              })(n.packages, e);
                            }),
                          n
                        );
                      })({
                        baseUrl: null == t ? void 0 : t.baseUrl,
                        locale: (0, h.g)(),
                        has: {
                          'csp-restrictions': (0, o.h)('csp-restrictions'),
                          'dojo-test-sniff': 0,
                          'host-webworker': 1,
                          ...(null == t ? void 0 : t.has),
                        },
                        map: { ...(null == t ? void 0 : t.map) },
                        paths: { ...(null == t ? void 0 : t.paths) },
                        packages: (null == t ? void 0 : t.packages) || [],
                      }),
                      r = { version: l.i8, buildDate: l.rh, revision: l.LB };
                    return JSON.stringify({ esriConfig: e, loaderConfig: n, kernelInfo: r });
                  })()}'`,
                );
                A = URL.createObjectURL(new Blob([e], { type: 'text/javascript' }));
              } catch (e) {
                _ = e || {};
              }
            let e;
            if (A)
              try {
                e = new Worker(A, { name: 'esri-worker-' + P++ });
              } catch (t) {
                v.warn(S, _), (e = new k());
              }
            else v.warn(S, _), (e = new k());
            return L(e);
          })();
          return new U(t, e);
        }
        terminate() {
          this.worker.terminate();
        }
        async open(e, t = {}) {
          const { signal: n } = t,
            r = (0, a.n)();
          return new Promise((t, o) => {
            const i = {
              resolve: t,
              reject: o,
              abortHandle: (0, s.$F)(n, () => {
                this._outJobs.delete(r), this._post({ type: I, jobId: r });
              }),
            };
            this._outJobs.set(r, i), this._post({ type: T, jobId: r, modulePath: e });
          });
        }
        _onMessage(e) {
          const t = (0, a.r)(e);
          if (t)
            switch (t.type) {
              case x:
                this._onOpenedMessage(t);
                break;
              case C:
                this._onResponseMessage(t);
                break;
              case I:
                this._onAbortMessage(t);
                break;
              case Z:
                this._onInvokeMessage(t);
            }
        }
        _onAbortMessage(e) {
          const t = this._inJobs,
            n = e.jobId,
            r = t.get(n);
          r && (r.controller && r.controller.abort(), t.delete(n));
        }
        _onInvokeMessage(e) {
          const { methodName: t, jobId: n, data: r, abortable: o } = e,
            i = o ? (0, s.yi)() : null,
            u = this._inJobs,
            c = l.Nv[t];
          let f;
          try {
            if ('function' != typeof c) throw new TypeError(`${t} is not a function`);
            f = c.call(null, r, { signal: i ? i.signal : null });
          } catch (e) {
            return void this._post({ type: C, jobId: n, error: (0, a.t)(e) });
          }
          (0, s.y8)(f)
            ? (u.set(n, { controller: i, promise: f }),
              f.then(
                (e) => {
                  u.has(n) && (u.delete(n), this._post({ type: C, jobId: n }, e));
                },
                (e) => {
                  u.has(n) &&
                    (u.delete(n),
                    e || (e = { message: 'Error encountered at method' + t }),
                    (0, s.D_)(e) ||
                      this._post({
                        type: C,
                        jobId: n,
                        error: (0, a.t)(e || { message: `Error encountered at method ${t}` }),
                      }));
                },
              ))
            : this._post({ type: C, jobId: n }, f);
        }
        _onOpenedMessage(e) {
          var t;
          const { jobId: n, data: r } = e,
            o = this._outJobs.get(n);
          o && (this._outJobs.delete(n), null == (t = o.abortHandle) || t.remove(), o.resolve(r));
        }
        _onResponseMessage(e) {
          var t;
          const { jobId: n, error: o, data: s } = e,
            i = this._outJobs.get(n);
          i &&
            (this._outJobs.delete(n),
            null == (t = i.abortHandle) || t.remove(),
            o ? i.reject(r.Z.fromJSON(JSON.parse(o))) : i.resolve(s));
        }
        _post(e, t, n) {
          return (0, a.p)(this.worker, e, t, n);
        }
      }
      let M = (0, o.h)('esri-workers-debug')
        ? 1
        : (0, o.h)('host-browser')
        ? navigator.hardwareConcurrency - 1
        : 0;
      M || (M = ((0, o.h)('safari') && (0, o.h)('mac')) || (0, o.h)('trident') ? 7 : 2);
      let N = 0;
      const R = [];
      function D(e, t) {
        return F(e, { client: t });
      }
      async function F(e, t) {
        const n = new i.Z();
        return await n.open(e, t), n;
      }
      async function q(e, t = {}) {
        if ('string' != typeof e)
          throw new r.Z('workers:undefined-module', 'modulePath is missing');
        let n = t.strategy || 'distributed';
        if (
          ((0, o.h)('host-webworker') && !(0, o.h)('esri-workers') && (n = 'local'), 'local' === n)
        ) {
          let n = await a.default.loadWorker(e);
          n || (n = await import(e)), (0, s.k_)(t.signal);
          const r = t.client || n;
          return F([a.default.connect(n)], { ...t, client: r });
        }
        if (
          (await (async function () {
            if (W) return W;
            j = (0, s.yi)();
            const e = [];
            for (let t = 0; t < M; t++) {
              const n = U.create(t).then((e) => ((R[t] = e), e));
              e.push(n);
            }
            return (W = Promise.all(e)), W;
          })(),
          (0, s.k_)(t.signal),
          'dedicated' === n)
        ) {
          const n = N++ % M;
          return F([await R[n].open(e, t)], t);
        }
        if (t.maxNumWorkers && t.maxNumWorkers > 0) {
          const n = Math.min(t.maxNumWorkers, M);
          if (n < M) {
            const r = new Array(n);
            for (let o = 0; o < n; ++o) {
              const n = N++ % M;
              r[o] = R[n].open(e, t);
            }
            return F(r, t);
          }
        }
        return F(
          R.map((n) => n.open(e, t)),
          t,
        );
      }
      let j,
        W = null;
    },
    42870: (e, t, n) => {
      'use strict';
      n.d(t, {
        f3: () => I,
        oq: () => c,
        r3: () => d,
        jU: () => h,
        z7: () => f,
        Cz: () => C,
        e5: () => _,
        ED: () => b,
        TE: () => g,
        fS: () => m,
        D$: () => x,
        Y4: () => R,
        rd: () => Z,
        j2: () => U,
        kQ: () => D,
        wf: () => L,
        kK: () => p,
        Gg: () => E,
        cv: () => O,
        Nm: () => k,
        CJ: () => M,
        sz: () => N,
        LV: () => v,
        U1: () => T,
        og: () => A,
        Sp: () => S,
        W4: () => w,
        G0: () => P,
        uh: () => y,
      }),
        n(74569);
      var r = n(65514),
        o = (n(91597), n(32422));
      function s(e) {
        var t;
        return Array.isArray(e)
          ? null == (t = e[0])
            ? void 0
            : t.spatialReference
          : null == e
          ? void 0
          : e.spatialReference;
      }
      function i(e) {
        return e ? (Array.isArray(e) ? e.map(i) : e.toJSON ? e.toJSON() : e) : e;
      }
      function a(e) {
        return Array.isArray(e) ? e.map((e) => (0, o.im)(e)) : (0, o.im)(e);
      }
      let l;
      async function u(e, t) {
        return (
          await (async function () {
            return l || (l = (0, r.bA)('geometryEngineWorker', { strategy: 'distributed' })), l;
          })()
        ).invoke('executeGEOperation', { operation: e, parameters: i(t) });
      }
      async function c(e, t) {
        return a(await u('clip', [s(e), e, t]));
      }
      async function f(e, t) {
        return a(await u('cut', [s(e), e, t]));
      }
      function d(e, t) {
        return u('contains', [s(e), e, t]);
      }
      function h(e, t) {
        return u('crosses', [s(e), e, t]);
      }
      function g(e, t, n) {
        return u('distance', [s(e), e, t, n]);
      }
      function m(e, t) {
        return u('equals', [s(e), e, t]);
      }
      function p(e, t) {
        return u('intersects', [s(e), e, t]);
      }
      function w(e, t) {
        return u('touches', [s(e), e, t]);
      }
      function y(e, t) {
        return u('within', [s(e), e, t]);
      }
      function b(e, t) {
        return u('disjoint', [s(e), e, t]);
      }
      function k(e, t) {
        return u('overlaps', [s(e), e, t]);
      }
      function v(e, t, n) {
        return u('relate', [s(e), e, t, n]);
      }
      function E(e) {
        return u('isSimple', [s(e), e]);
      }
      async function A(e) {
        return a(await u('simplify', [s(e), e]));
      }
      async function _(e, t) {
        return a(await u('difference', [s(e), e, t]));
      }
      async function S(e, t) {
        return a(await u('symmetricDifference', [s(e), e, t]));
      }
      async function L(e, t) {
        return a(await u('intersect', [s(e), e, t]));
      }
      async function P(e, t = null) {
        const n = (function (e, t) {
          let n;
          return Array.isArray(e) ? (n = e) : ((n = []), n.push(e), null != t && n.push(t)), n;
        })(e, t);
        return a(await u('union', [s(n), n]));
      }
      async function O(e, t, n, r, o, i) {
        return a(await u('offset', [s(e), e, t, n, r, o, i]));
      }
      async function I(e, t, n, r = !1) {
        const o = [s(e), e, t, n, r];
        return a(await u('buffer', o));
      }
      async function Z(e, t, n, r, o, i) {
        const l = [s(e), e, t, n, r, o, i];
        return a(await u('geodesicBuffer', l));
      }
      async function T(e, t, n) {
        var r;
        if (null == e) throw new Error('Illegal Argument Exception');
        const o = e.spatialReference;
        n =
          null != (r = n)
            ? r
            : (function (e) {
                return 'xmin' in e ? e.center : 'x' in e ? e : e.extent.center;
              })(e);
        const s = e.constructor.fromJSON(await u('rotate', [o, e, t, n]));
        return (s.spatialReference = o), s;
      }
      async function x(e, t, n, r) {
        return a(await u('generalize', [s(e), e, t, n, r]));
      }
      async function C(e, t, n) {
        return a(await u('densify', [s(e), e, t, n]));
      }
      async function U(e, t, n, r = 0) {
        return a(await u('geodesicDensify', [s(e), e, t, n, r]));
      }
      function M(e, t) {
        return u('planarArea', [s(e), e, t]);
      }
      function N(e, t) {
        return u('planarLength', [s(e), e, t]);
      }
      function R(e, t, n) {
        return u('geodesicArea', [s(e), e, t, n]);
      }
      function D(e, t, n) {
        return u('geodesicLength', [s(e), e, t, n]);
      }
      n(91306),
        n(76506),
        n(92143),
        n(31450),
        n(71552),
        n(40642),
        n(21801),
        n(34250),
        n(86656),
        n(22723),
        n(17533),
        n(81172),
        n(73796),
        n(74673),
        n(21972),
        n(23639),
        n(91055),
        n(27794),
        n(6906),
        n(50406),
        n(60991),
        n(26341),
        n(97714),
        n(60947),
        n(2906),
        n(35132),
        n(89623),
        n(86787),
        n(84069),
        n(44567),
        n(98380),
        n(92896),
        n(22781),
        n(57251),
        n(46987),
        n(37453),
        n(88762),
        n(32101),
        n(73173),
        n(82058),
        n(66284),
        n(33921),
        n(3482);
    },
    66284: (e, t, n) => {
      'use strict';
      n.d(t, { ME: () => v, ng: () => g });
      var r = n(33921),
        o = n(92143),
        s = n(71552),
        i = n(40642),
        a = n(3482),
        l = n(60991),
        u = n(50406),
        c = n(82058),
        f = n(76506),
        d = n(73173);
      n(57251), n(31450), n(81172), n(88762), n(32101);
      const h = o.L.getLogger('esri.intl');
      function g(e, t, n = {}) {
        const { format: o = {} } = n;
        return (0, i.r)(e, (e) =>
          (function (e, t, n) {
            let o, i;
            const a = e.indexOf(':');
            if (
              (-1 === a
                ? (o = e.trim())
                : ((o = e.slice(0, a).trim()), (i = e.slice(a + 1).trim())),
              !o)
            )
              return '';
            const l = (0, s.g)(o, t);
            if (null == l) return '';
            const u = n[i] || n[o];
            return u
              ? (function (e, t) {
                  switch (t.type) {
                    case 'date':
                      return (0, r.a)(e, t.intlOptions);
                    case 'number':
                      return (0, r.f)(e, t.intlOptions);
                    default:
                      return h.warn('missing format descriptor for key {key}'), m(e);
                  }
                })(l, u)
              : i
              ? (function (e, t) {
                  switch (t.toLowerCase()) {
                    case 'dateformat':
                      return (0, r.a)(e);
                    case 'numberformat':
                      return (0, r.f)(e);
                    default:
                      return (
                        h.warn(`inline format is unsupported since 4.12: ${t}`),
                        /^(dateformat|datestring)/i.test(t)
                          ? (0, r.a)(e)
                          : /^numberformat/i.test(t)
                          ? (0, r.f)(e)
                          : m(e)
                      );
                  }
                })(l, i)
              : m(l);
          })(e, t, o),
        );
      }
      function m(e) {
        switch (typeof e) {
          case 'string':
            return e;
          case 'number':
            return (0, r.f)(e);
          case 'boolean':
            return '' + e;
          default:
            return e instanceof Date ? (0, r.a)(e) : '';
        }
      }
      const p = /^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,
        w = {
          ar: !0,
          bs: !0,
          ca: !0,
          cs: !0,
          da: !0,
          de: !0,
          el: !0,
          en: !0,
          es: !0,
          et: !0,
          fi: !0,
          fr: !0,
          he: !0,
          hr: !0,
          hu: !0,
          id: !0,
          it: !0,
          ja: !0,
          ko: !0,
          lt: !0,
          lv: !0,
          nb: !0,
          nl: !0,
          pl: !0,
          'pt-BR': !0,
          'pt-PT': !0,
          ro: !0,
          ru: !0,
          sk: !0,
          sl: !0,
          sr: !0,
          sv: !0,
          th: !0,
          tr: !0,
          uk: !0,
          vi: !0,
          'zh-CN': !0,
          'zh-HK': !0,
          'zh-TW': !0,
        };
      function y(e) {
        var t;
        return null != (t = w[e]) && t;
      }
      const b = [],
        k = new Map();
      async function v(e) {
        const t = (0, a.g)();
        k.has(e) ||
          k.set(
            e,
            (async function (e, t) {
              const n = [];
              for (const r of b)
                if (E(r.pattern, e))
                  try {
                    return await r.fetchMessageBundle(e, t);
                  } catch (e) {
                    n.push(e);
                  }
              if (n.length)
                throw new l.Z('intl:message-bundle-error', `Errors occurred while loading "${e}"`, {
                  errors: n,
                });
              throw new l.Z(
                'intl:no-message-bundle-loader',
                `No loader found for message bundle "${e}"`,
              );
            })(e, t),
          );
        const n = k.get(e);
        return await A.add(n), n;
      }
      function E(e, t) {
        return 'string' == typeof e ? t.startsWith(e) : e.test(t);
      }
      (0, a.b)(() => {
        k.clear();
      });
      const A = new (class {
        constructor() {
          this._numLoading = 0;
        }
        async waitForAll() {
          this._dfd && (await this._dfd.promise);
        }
        add(e) {
          return (
            this._increase(),
            e.then(
              () => this._decrease(),
              () => this._decrease(),
            ),
            this.waitForAll()
          );
        }
        _increase() {
          this._numLoading++, this._dfd || (this._dfd = (0, u.dD)());
        }
        _decrease() {
          (this._numLoading = Math.max(this._numLoading - 1, 0)),
            this._dfd && 0 === this._numLoading && (this._dfd.resolve(), (this._dfd = null));
        }
      })();
      async function _(e) {
        if ((0, f.i)(L.fetchBundleAsset)) return L.fetchBundleAsset(e);
        const t = await (0, c.default)(e, { responseType: 'text' });
        return JSON.parse(t.data);
      }
      class S {
        constructor({ base: e = '', pattern: t, location: n = new URL(window.location.href) }) {
          let r;
          (r =
            'string' == typeof n
              ? (e) => new URL(e, new URL(n, f.g.location)).href
              : n instanceof URL
              ? (e) => new URL(e, n).href
              : n),
            (this.pattern = 'string' == typeof t ? new RegExp(`^${t}`) : t),
            (this.getAssetUrl = r),
            (e = e ? (e.endsWith('/') ? e : e + '/') : ''),
            (this.matcher = new RegExp(`^${e}(?:(.*)/)?(.*)$`));
        }
        fetchMessageBundle(e, t) {
          return (async function (e, t, n, r) {
            const o = t.exec(n);
            if (!o)
              throw new l.Z(
                'esri-intl:invalid-bundle',
                `Bundle id "${n}" is not compatible with the pattern "${t}"`,
              );
            const s = o[1] ? `${o[1]}/` : '',
              i = o[2],
              a = (function (e) {
                if (!p.test(e)) return null;
                const [, t, n] = p.exec(e),
                  r = t + (n ? '-' + n.toUpperCase() : '');
                return y(r) ? r : y(t) ? t : null;
              })(r),
              u = `${s}${i}.json`,
              c = a ? `${s}${i}_${a}.json` : u;
            let f;
            try {
              f = await _(e(c));
            } catch (t) {
              if (c === u)
                throw new l.Z('intl:unknown-bundle', `Bundle "${n}" cannot be loaded`, {
                  error: t,
                });
              try {
                f = await _(e(u));
              } catch (e) {
                throw new l.Z('intl:unknown-bundle', `Bundle "${n}" cannot be loaded`, {
                  error: e,
                });
              }
            }
            return f;
          })(this.getAssetUrl, this.matcher, e, t);
        }
      }
      const L = {};
      var P;
      !(function (e) {
        b.includes(e) ||
          ((function (e) {
            for (const t of k.keys()) E(e.pattern, t) && k.delete(t);
          })(e),
          b.unshift(e));
      })(((P = { pattern: 'esri/', location: d.g }), new S(P)));
    },
    82058: (e, t, n) => {
      'use strict';
      n.r(t), n.d(t, { default: () => T, l: () => f, r: () => Z, s: () => c });
      var r = n(31450),
        o = n(88762),
        s = n(60991),
        i = n(76506),
        a = n(50406),
        l = n(32101);
      n(71552), n(92143), n(40642), n(81172);
      const u = [
        'elevation3d.arcgis.com',
        'js.arcgis.com',
        'jsdev.arcgis.com',
        'jsqa.arcgis.com',
        'static.arcgis.com',
      ];
      function c(e) {
        const t = (0, l.P$)(e, !0);
        return (
          t &&
          t.endsWith('.arcgis.com') &&
          !u.includes(t) &&
          !e.endsWith('/sharing/rest/generateToken')
        );
      }
      function f(e, t, n = !1, r) {
        return new Promise((o, s) => {
          if ((0, a.Hc)(r)) return void s(d());
          let l = () => {
              f(), s(new Error(`Unable to load ${t}`));
            },
            u = () => {
              const t = e;
              f(), o(t);
            },
            c = () => {
              if (!e) return;
              const t = e;
              f(), (t.src = ''), s(d());
            };
          const f = () => {
            (0, i.h)('esri-image-decode') ||
              (e.removeEventListener('error', l), e.removeEventListener('load', u)),
              (l = null),
              (u = null),
              (e = null),
              (0, i.i)(r) && r.removeEventListener('abort', c),
              (c = null),
              n && URL.revokeObjectURL(t);
          };
          (0, i.i)(r) && r.addEventListener('abort', c),
            (0, i.h)('esri-image-decode')
              ? e.decode().then(u, l)
              : (e.addEventListener('error', l), e.addEventListener('load', u));
        });
      }
      function d() {
        try {
          return new DOMException('Aborted', 'AbortError');
        } catch {
          const e = new Error();
          return (e.name = 'AbortError'), e;
        }
      }
      async function h(e, t) {
        const u = (0, l.HK)(e),
          f = (0, l.jc)(e);
        f || u || (e = (0, l.Fv)(e));
        const d = { url: e, requestOptions: { ...(0, i.u)(t) } };
        let w = (0, l.oh)(e);
        if (w) {
          const e = await (async function (e, t) {
            if (null != e.responseData) return e.responseData;
            if (
              (e.headers &&
                (t.requestOptions.headers = { ...t.requestOptions.headers, ...e.headers }),
              e.query && (t.requestOptions.query = { ...t.requestOptions.query, ...e.query }),
              e.before)
            ) {
              let n, r;
              try {
                r = await e.before(t);
              } catch (e) {
                n = A('request:interceptor', e, t);
              }
              if (
                ((r instanceof Error || r instanceof s.Z) && (n = A('request:interceptor', r, t)),
                n)
              )
                throw (e.error && e.error(n), n);
              return r;
            }
          })(w, d);
          if (null != e)
            return { data: e, getHeader: k, requestOptions: d.requestOptions, url: d.url };
          w.after || w.error || (w = null);
        }
        if (((e = d.url), 'image' === (t = d.requestOptions).responseType)) {
          if ((0, i.h)('host-webworker') || (0, i.h)('host-node'))
            throw A(
              'request:invalid-parameters',
              new Error("responseType 'image' is not supported in Web Workers or Node environment"),
              d,
            );
        } else if (u)
          throw A(
            'request:invalid-parameters',
            new Error('Data URLs are not supported for responseType = ' + t.responseType),
            d,
          );
        if ('head' === t.method) {
          if (t.body)
            throw A(
              'request:invalid-parameters',
              new Error("body parameter cannot be set when method is 'head'"),
              d,
            );
          if (u || f)
            throw A(
              'request:invalid-parameters',
              new Error("data and blob URLs are not supported for method 'head'"),
              d,
            );
        }
        if (
          (await (async function () {
            (0, i.h)('host-webworker')
              ? g || (g = await n.e(9768).then(n.bind(n, 89768)))
              : h._abortableFetch || (h._abortableFetch = i.g.fetch.bind(i.g));
          })(),
          g)
        )
          return g.execute(e, t);
        const y = (0, a.yi)();
        (0, a.fu)(t, () => y.abort());
        const b = {
            controller: y,
            credential: null,
            credentialToken: null,
            fetchOptions: null,
            hasToken: !1,
            interceptor: w,
            params: d,
            redoRequest: !1,
            useIdentity: m.useIdentity,
            useProxy: !1,
            useSSL: !1,
            withCredentials: !1,
          },
          v = await (async function (e) {
            var t, n;
            let s, u;
            await (async function (e) {
              const t = e.params.url,
                n = e.params.requestOptions,
                s = e.controller.signal,
                l = n.body;
              let u = null,
                f = null,
                d = null;
              if (
                (p &&
                  'HTMLFormElement' in i.g &&
                  (l instanceof FormData
                    ? (u = l)
                    : l instanceof HTMLFormElement && ((f = l), (u = new FormData(f)))),
                'string' == typeof l && (d = l),
                (e.fetchOptions = {
                  cache: n.cacheBust && !h._abortableFetch.polyfill ? 'no-cache' : 'default',
                  credentials: 'same-origin',
                  headers: n.headers || {},
                  method: 'head' === n.method ? 'HEAD' : 'GET',
                  mode: 'cors',
                  redirect: 'follow',
                  signal: s,
                }),
                (u || d) && (e.fetchOptions.body = u || d),
                'anonymous' === n.authMode && (e.useIdentity = !1),
                (e.hasToken = !!(
                  /token=/i.test(t) ||
                  (n.query && n.query.token) ||
                  (u && u.get && u.get('token')) ||
                  (f && f.elements.token)
                )),
                !e.hasToken &&
                  r.Z.apiKey &&
                  c(t) &&
                  (n.query || (n.query = {}), (n.query.token = r.Z.apiKey), (e.hasToken = !0)),
                e.useIdentity && !e.hasToken && !e.credentialToken && !S(t) && !(0, a.Hc)(s))
              ) {
                let r;
                'immediate' === n.authMode
                  ? (await _(),
                    (r = await o.id.getCredential(t, { signal: s })),
                    (e.credential = r))
                  : 'no-prompt' === n.authMode
                  ? (await _(),
                    (r = await o.id.getCredential(t, { prompt: !1, signal: s }).catch(() => {})),
                    (e.credential = r))
                  : o.id && (r = o.id.findCredential(t)),
                  r && ((e.credentialToken = r.token), (e.useSSL = !!r.ssl));
              }
            })(e);
            try {
              do {
                [s, u] = await L(e);
              } while (!(await O(e, s, u)));
            } catch (t) {
              const n = A('request:server', t, e.params, s);
              throw (
                ((n.details.ssl = e.useSSL),
                e.interceptor && e.interceptor.error && e.interceptor.error(n),
                n)
              );
            }
            const f = e.params.url;
            if (
              /\/sharing\/rest\/(accounts|portals)\/self/i.test(f) &&
              !e.hasToken &&
              !e.credentialToken &&
              null != (t = u) &&
              null != (n = t.user) &&
              n.username &&
              !(0, l.kl)(f)
            ) {
              const e = (0, l.P$)(f, !0);
              e && m.trustedServers.push(e);
            }
            const d = e.credential;
            if (d && o.id) {
              const e = o.id.findServerInfo(d.server);
              let t = e && e.owningSystemUrl;
              if (t) {
                t = t.replace(/\/?$/, '/sharing');
                const e = o.id.findCredential(t, d.userId);
                e && -1 === o.id._getIdenticalSvcIdx(t, e) && e.resources.unshift(t);
              }
            }
            return {
              data: u,
              getHeader: s ? (e) => s.headers.get(e) : k,
              requestOptions: e.params.requestOptions,
              ssl: e.useSSL,
              url: e.params.url,
            };
          })(b);
        return w && w.after && w.after(v), v;
      }
      let g;
      const m = r.Z.request,
        p = 'FormData' in i.g,
        w = [499, 498, 403, 401],
        y = ['COM_0056', 'COM_0057', 'SB_0008'],
        b = [/\/arcgis\/tokens/i, /\/sharing(\/rest)?\/generatetoken/i, /\/rest\/info/i],
        k = () => null,
        v = Symbol();
      function E(e) {
        const t = (0, l.P$)(e);
        return !t || t.endsWith('.arcgis.com') || h._corsServers.includes(t) || (0, l.kl)(t);
      }
      function A(e, t, n, r) {
        let o = 'Error';
        const l = { url: n.url, requestOptions: n.requestOptions, getHeader: k, ssl: !1 };
        if (t instanceof s.Z)
          return (
            t.details
              ? ((t.details = (0, i.d9)(t.details)),
                (t.details.url = n.url),
                (t.details.requestOptions = n.requestOptions))
              : (t.details = l),
            t
          );
        if (t) {
          const e = r && ((e) => r.headers.get(e)),
            n = r && r.status,
            s = t.message;
          s && (o = s),
            e && (l.getHeader = e),
            (l.httpStatus = (null != t.httpCode ? t.httpCode : t.code) || n || 0),
            (l.subCode = t.subcode),
            (l.messageCode = t.messageCode),
            'string' == typeof t.details ? (l.messages = [t.details]) : (l.messages = t.details),
            (l.raw = v in t ? t[v] : t);
        }
        return (0, a.D_)(t) ? (0, a.zE)() : new s.Z(e, o, l);
      }
      async function _() {
        o.id || (await Promise.all([n.e(6229), n.e(1503), n.e(4494)]).then(n.bind(n, 64494)));
      }
      function S(e) {
        return b.some((t) => t.test(e));
      }
      async function L(e) {
        let t = e.params.url;
        const n = e.params.requestOptions,
          r = e.fetchOptions,
          s = (0, l.jc)(t) || (0, l.HK)(t),
          u = n.responseType || 'json',
          c = s ? 0 : null != n.timeout ? n.timeout : m.timeout;
        let f = !1;
        if (!s) {
          e.useSSL && (t = (0, l.hO)(t)),
            n.cacheBust &&
              'default' === r.cache &&
              (t = (0, l.ZN)(t, 'request.preventCache', Date.now()));
          let s = { ...n.query };
          e.credentialToken && (s.token = e.credentialToken);
          let a = (0, l.B7)(s);
          (0, i.h)('esri-url-encodes-apostrophe') && (a = a.replace(/'/g, '%27'));
          const u = t.length + 1 + a.length;
          let c;
          f =
            'delete' === n.method ||
            'post' === n.method ||
            'put' === n.method ||
            !!n.body ||
            u > m.maxUrlLength;
          const d = n.useProxy || !!(0, l.ed)(t);
          if (d) {
            const e = (0, l.b7)(t);
            (c = e.path),
              !f && c.length + 1 + u > m.maxUrlLength && (f = !0),
              e.query && (s = { ...e.query, ...s });
          }
          if ('HEAD' === r.method && (f || d)) {
            if (f) {
              if (u > m.maxUrlLength)
                throw A(
                  'request:invalid-parameters',
                  new Error('URL exceeds maximum length'),
                  e.params,
                );
              throw A(
                'request:invalid-parameters',
                new Error("cannot use POST request when method is 'head'"),
                e.params,
              );
            }
            if (d)
              throw A(
                'request:invalid-parameters',
                new Error("cannot use proxy when method is 'head'"),
                e.params,
              );
          }
          if (
            (f
              ? ((r.method =
                  'delete' === n.method ? 'DELETE' : 'put' === n.method ? 'PUT' : 'POST'),
                n.body
                  ? (t = (0, l.fl)(t, s))
                  : ((r.body = (0, l.B7)(s)),
                    (r.headers['Content-Type'] = 'application/x-www-form-urlencoded')))
              : (t = (0, l.fl)(t, s)),
            d && ((e.useProxy = !0), (t = `${c}?${t}`)),
            s.token && p && r.body instanceof FormData)
          ) {
            const e = r.body;
            e.set ? e.set('token', s.token) : e.append('token', s.token);
          }
          if (n.hasOwnProperty('withCredentials')) e.withCredentials = n.withCredentials;
          else if (!(0, l.D6)(t, l.Gd))
            if ((0, l.kl)(t)) e.withCredentials = !0;
            else if (o.id) {
              const n = o.id.findServerInfo(t);
              n && n.webTierAuth && (e.withCredentials = !0);
            }
          e.withCredentials && (r.credentials = 'include');
        }
        let d,
          g,
          w = 0,
          y = !1;
        c > 0 &&
          (w = setTimeout(() => {
            (y = !0), e.controller.abort();
          }, c));
        try {
          if ('native-request-init' === n.responseType) (g = r), (g.url = t);
          else if (
            'image' !== n.responseType ||
            'default' !== r.cache ||
            'GET' !== r.method ||
            f ||
            (function (e) {
              if (e) for (const t of Object.getOwnPropertyNames(e)) if (e[t]) return !0;
              return !1;
            })(n.headers) ||
            (!s && !e.useProxy && m.proxyUrl && !E(t))
          ) {
            if (
              ((d = await h._abortableFetch(t, r)),
              e.useProxy ||
                (function (e) {
                  const t = (0, l.P$)(e);
                  t && !h._corsServers.includes(t) && h._corsServers.push(t);
                })(t),
              'native' === n.responseType)
            )
              g = d;
            else if ('HEAD' !== r.method)
              if (d.ok) {
                switch (u) {
                  case 'array-buffer':
                    g = await d.arrayBuffer();
                    break;
                  case 'blob':
                  case 'image':
                    g = await d.blob();
                    break;
                  default:
                    g = await d.text();
                }
                if (
                  (w && (clearTimeout(w), (w = 0)), 'json' === u || 'xml' === u || 'document' === u)
                )
                  if (g)
                    switch (u) {
                      case 'json':
                        g = JSON.parse(g);
                        break;
                      case 'xml':
                        g = P(g, 'application/xml');
                        break;
                      case 'document':
                        g = P(g, 'text/html');
                    }
                  else g = null;
                if (g) {
                  if ('array-buffer' === u || 'blob' === u) {
                    const e = d.headers.get('Content-Type');
                    if (
                      /application\/json|text\/plain/i.test(e) &&
                      g['blob' === u ? 'size' : 'byteLength'] <= 750
                    )
                      try {
                        const e = await new Response(g).json();
                        e.error && (g = e);
                      } catch {}
                  }
                  'image' === u &&
                    g instanceof Blob &&
                    (g = await I(URL.createObjectURL(g), e, !0));
                }
              } else g = await d.text();
          } else g = await I(t, e);
        } catch (r) {
          if ('AbortError' === r.name) {
            if (y) throw new Error('Timeout exceeded');
            throw (0, a.zE)('Request canceled');
          }
          if (
            !(!d && r instanceof TypeError && m.proxyUrl) ||
            n.body ||
            'delete' === n.method ||
            'head' === n.method ||
            'post' === n.method ||
            'put' === n.method ||
            e.useProxy ||
            E(t)
          )
            throw r;
          (e.redoRequest = !0), (0, l.tD)({ proxyUrl: m.proxyUrl, urlPrefix: (0, l.P$)(t) });
        } finally {
          w && clearTimeout(w);
        }
        return [d, g];
      }
      function P(e, t) {
        let n;
        try {
          n = new DOMParser().parseFromString(e, t);
        } catch {}
        if (!n || n.getElementsByTagName('parsererror').length)
          throw new SyntaxError('XML Parse error');
        return n;
      }
      async function O(e, t, n) {
        if (e.redoRequest) return (e.redoRequest = !1), !1;
        const r = e.params.requestOptions;
        if (!t || 'native' === r.responseType || 'native-request-init' === r.responseType)
          return !0;
        let s, i, a, l;
        if (!t.ok)
          throw ((s = new Error(`Unable to load ${t.url} status: ${t.status}`)), (s[v] = n), s);
        null != n && n.error && (s = n.error),
          s &&
            ((i = Number(s.code)),
            (a = s.hasOwnProperty('subcode') ? Number(s.subcode) : null),
            (l = s.messageCode),
            (l = l && l.toUpperCase()));
        const u = r.authMode;
        if (
          403 === i &&
          (4 === a ||
            (s.message &&
              s.message.toLowerCase().indexOf('ssl') > -1 &&
              -1 === s.message.toLowerCase().indexOf('permission')))
        ) {
          if (!e.useSSL) return (e.useSSL = !0), !1;
        } else if (
          !e.hasToken &&
          e.useIdentity &&
          ('no-prompt' !== u || 498 === i) &&
          -1 !== w.indexOf(i) &&
          !S(e.params.url) &&
          (403 !== i || (-1 === y.indexOf(l) && (null == a || (2 === a && e.credentialToken))))
        ) {
          await _();
          try {
            const t = await o.id.getCredential(e.params.url, {
              error: A('request:server', s, e.params),
              prompt: 'no-prompt' !== u,
              signal: e.controller.signal,
              token: e.credentialToken,
            });
            return (
              (e.credential = t), (e.credentialToken = t.token), (e.useSSL = e.useSSL || t.ssl), !1
            );
          } catch (t) {
            if ('no-prompt' === u) return (e.credential = null), (e.credentialToken = null), !1;
            s = t;
          }
        }
        if (s) throw s;
        return !0;
      }
      function I(e, t, n = !1) {
        const r = t.controller.signal,
          o = new Image();
        return (
          t.withCredentials ? (o.crossOrigin = 'use-credentials') : (o.crossOrigin = 'anonymous'),
          (o.alt = ''),
          (o.src = e),
          f(o, e, n, r)
        );
      }
      (h._abortableFetch = null),
        (h._corsServers = ['https://server.arcgisonline.com', 'https://services.arcgisonline.com']);
      var Z = Object.freeze({ __proto__: null, default: h });
      const T = h;
    },
  },
]);
