(self.webpackChunkRemoteClient = self.webpackChunkRemoteClient || []).push([
  [487],
  {
    50487: (e, r, t) => {
      'use strict';
      t.r(r), t.d(r, { default: () => R });
      var i = t(29768),
        s = t(34250),
        a = t(76506),
        o = (t(91306), t(92143), t(17533)),
        n = t(82058),
        l = t(62206),
        u = t(95533),
        p = t(45937),
        c = t(81731),
        y = (t(74569), t(23761)),
        f = t(74673),
        d = t(97714),
        B = t(60947),
        m = t(37265),
        v = t(32422),
        g = t(91597),
        h = t(92896),
        P = t(44567);
      function b(e) {
        return e.features.map((r) => {
          const t = B.Z.fromJSON(e.spatialReference),
            i = y.Z.fromJSON(r);
          return ((0, a.u)(i.geometry).spatialReference = t), i;
        });
      }
      function C(e) {
        return e.features.map(
          (r) => ((r.geometry.spatialReference = e.spatialReference), (0, v.im)(r.geometry)),
        );
      }
      t(21801),
        t(40642),
        t(71552),
        t(73796),
        t(21972),
        t(23639),
        t(86656),
        t(22723),
        t(91055),
        t(27794),
        t(6906),
        t(50406),
        t(60991),
        t(81172),
        t(31450),
        t(26341),
        t(2906),
        t(35132),
        t(89623),
        t(86787),
        t(84069),
        t(22781),
        t(57251),
        t(98380),
        t(86748),
        t(15324),
        t(76996),
        t(14249),
        t(9801),
        t(53523),
        t(59465),
        t(42911),
        t(46826),
        t(45433),
        t(60217),
        t(29107),
        t(30574),
        t(2157),
        t(25977),
        t(7471),
        t(54414),
        t(1648),
        t(8925),
        t(33921),
        t(3482),
        t(45154),
        t(16769),
        t(55531),
        t(30582),
        t(593),
        t(85699),
        t(63136),
        t(96055),
        t(47776),
        t(18033),
        t(6331),
        t(62048),
        t(4292),
        t(75626),
        t(72652),
        t(29641),
        t(30493),
        t(70821),
        t(82673),
        t(34229),
        t(37029),
        t(96467),
        t(63571),
        t(30776),
        t(48027),
        t(54174),
        t(82426),
        t(63130),
        t(25696),
        t(66396),
        t(42775),
        t(95834),
        t(34394),
        t(57150),
        t(76726),
        t(20444),
        t(76393),
        t(78548),
        t(2497),
        t(49906),
        t(46527),
        t(48649),
        t(9960),
        t(3101),
        t(5853),
        t(39141),
        t(32101),
        t(38742),
        t(48243),
        t(34635),
        t(10401),
        t(49900),
        t(66284),
        t(88762),
        t(73173),
        t(22739),
        t(20543),
        t(67477),
        t(78533),
        t(74653),
        t(91091),
        t(58943),
        t(70737),
        t(8487),
        t(17817),
        t(90814),
        t(15459),
        t(61847),
        t(16796),
        t(16955),
        t(22401),
        t(77894),
        t(55187),
        t(8586),
        t(44509),
        t(69814),
        t(11305),
        t(62259),
        t(44790),
        t(5909),
        t(60669),
        t(48208),
        t(51589),
        t(2710);
      let _ = class extends f.a {
        constructor(e) {
          super(e),
            (this.facilities = null),
            (this.messages = null),
            (this.pointBarriers = null),
            (this.polylineBarriers = null),
            (this.polygonBarriers = null),
            (this.serviceAreaPolylines = null),
            (this.serviceAreaPolygons = null);
        }
        readFacilities(e) {
          return C(e);
        }
        readPointBarriers(e, r) {
          return C(r.barriers);
        }
        readPolylineBarriers(e) {
          return C(e);
        }
        readPolygonBarriers(e) {
          return C(e);
        }
        readIncidents(e, r) {
          return b(r.saPolylines);
        }
        readServiceAreaPolygons(e, r) {
          return b(r.saPolygons);
        }
      };
      (0, i._)([(0, s.Cb)({ type: [g.Z] })], _.prototype, 'facilities', void 0),
        (0, i._)([(0, d.r)('facilities')], _.prototype, 'readFacilities', null),
        (0, i._)([(0, s.Cb)({ type: [m.Z] })], _.prototype, 'messages', void 0),
        (0, i._)([(0, s.Cb)({ type: [g.Z] })], _.prototype, 'pointBarriers', void 0),
        (0, i._)([(0, d.r)('pointBarriers', ['barriers'])], _.prototype, 'readPointBarriers', null),
        (0, i._)([(0, s.Cb)({ type: [h.Z] })], _.prototype, 'polylineBarriers', void 0),
        (0, i._)([(0, d.r)('polylineBarriers')], _.prototype, 'readPolylineBarriers', null),
        (0, i._)([(0, s.Cb)({ type: [P.Z] })], _.prototype, 'polygonBarriers', void 0),
        (0, i._)([(0, d.r)('polygonBarriers')], _.prototype, 'readPolygonBarriers', null),
        (0, i._)([(0, s.Cb)({ type: [y.Z] })], _.prototype, 'serviceAreaPolylines', void 0),
        (0, i._)(
          [(0, d.r)('serviceAreaPolylines', ['saPolylines'])],
          _.prototype,
          'readIncidents',
          null,
        ),
        (0, i._)([(0, s.Cb)({ type: [y.Z] })], _.prototype, 'serviceAreaPolygons', void 0),
        (0, i._)(
          [(0, d.r)('serviceAreaPolygons', ['saPolygons'])],
          _.prototype,
          'readServiceAreaPolygons',
          null,
        ),
        (_ = (0, i._)([(0, o.j)('esri.rest.support.ServiceAreaSolveResult')], _));
      const A = _;
      t(94751), t(64560), t(87258), t(97546), t(54732), t(24204), t(8021);
      const k = (0, l.c)({
        accumulateAttributes: { name: 'accumulateAttributeNames' },
        attributeParameterValues: !0,
        defaultBreaks: !0,
        facilities: !0,
        outSpatialReference: { name: 'outSR', getter: (e) => e.outSpatialReference.wkid },
        pointBarriers: { name: 'barriers' },
        polylineBarriers: !0,
        polygonBarriers: !0,
        restrictionAttributes: { name: 'restrictionAttributeNames' },
        returnPointBarriers: { name: 'returnBarriers' },
        travelMode: !0,
      });
      var S = t(658);
      let Z = class extends S.Z {
        constructor(e) {
          super(e), (this.url = null);
        }
        solve(e, r) {
          return (async function (e, r, t) {
            const i = [],
              s = [],
              a = {},
              o = {},
              l = (0, c.p)(e);
            return (
              r.facilities &&
                r.facilities.features &&
                (0, p.et)(r.facilities.features, s, 'facilities.features', a),
              r.pointBarriers &&
                r.pointBarriers.features &&
                (0, p.et)(r.pointBarriers.features, s, 'pointBarriers.features', a),
              r.polylineBarriers &&
                r.polylineBarriers.features &&
                (0, p.et)(r.polylineBarriers.features, s, 'polylineBarriers.features', a),
              r.polygonBarriers &&
                r.polygonBarriers.features &&
                (0, p.et)(r.polygonBarriers.features, s, 'polygonBarriers.features', a),
              (0, u.aX)(s)
                .then((e) => {
                  for (const r in a) {
                    const t = a[r];
                    i.push(r), (o[r] = e.slice(t[0], t[1]));
                  }
                  return (0, p.Wf)(o, i)
                    ? (0, p.bI)(l.path).catch(() => ({ dontCheck: !0 }))
                    : Promise.resolve({ dontCheck: !0 });
                })
                .then((e) => {
                  ('dontCheck' in e ? e.dontCheck : e.hasZ) || (0, p.ef)(o, i);
                  for (const e in o)
                    o[e].forEach((t, i) => {
                      r.get(e)[i].geometry = t;
                    });
                  let s = { query: { ...l.query, f: 'json', ...k.toQueryParams(r) } };
                  return t && (s = { ...t, ...s }), (0, n.default)(`${l.path}/solveServiceArea`, s);
                })
                .then((e) => A.fromJSON(e.data))
            );
          })(this.url, e, r);
        }
      };
      (0, i._)([(0, s.Cb)()], Z.prototype, 'url', void 0),
        (Z = (0, i._)([(0, o.j)('esri.tasks.ServiceAreaTask')], Z));
      const R = Z;
    },
  },
]);
