(self.webpackChunkRemoteClient = self.webpackChunkRemoteClient || []).push([
  [3092],
  {
    93092: (n, e, t) => {
      'use strict';
      t.r(e), t.d(e, { registerFunctions: () => a });
      var o = t(1886);
      function r(n) {
        return n && n.domain
          ? 'coded-value' === n.domain.type || 'codedValue' === n.domain.type
            ? o.D.convertObjectToArcadeDictionary({
                type: 'codedValue',
                name: n.domain.name,
                dataType: o.ap[n.field.type],
                codedValues: n.domain.codedValues.map((n) => ({ name: n.name, code: n.code })),
              })
            : o.D.convertObjectToArcadeDictionary({
                type: 'range',
                name: n.domain.name,
                dataType: o.ap[n.field.type],
                min: n.domain.min,
                max: n.domain.max,
              })
          : null;
      }
      function a(n) {
        'async' === n.mode &&
          ((n.functions.domain = function (e, t) {
            return n.standardFunctionAsync(e, t, function (n, e, t) {
              if (((0, o.p)(t, 2, 3), t[0] instanceof o.y))
                return r(
                  t[0].fullDomain((0, o.t)(t[1]), void 0 === t[2] ? void 0 : (0, o.C)(t[2])),
                );
              if ((0, o.z)(t[0]))
                return t[0]
                  ._ensureLoaded()
                  .then(() =>
                    r(
                      (0, o.al)(
                        (0, o.t)(t[1]),
                        t[0],
                        null,
                        void 0 === t[2] ? void 0 : (0, o.C)(t[2]),
                      ),
                    ),
                  );
              throw new Error('Invalid Parameter');
            });
          }),
          (n.functions.subtypes = function (e, t) {
            return n.standardFunctionAsync(e, t, function (n, e, t) {
              if (((0, o.p)(t, 1, 1), t[0] instanceof o.y)) {
                const n = t[0].subtypes();
                return n ? o.D.convertObjectToArcadeDictionary(n) : null;
              }
              if ((0, o.z)(t[0]))
                return t[0]._ensureLoaded().then(() => {
                  const n = t[0].subtypes();
                  return n ? o.D.convertObjectToArcadeDictionary(n) : null;
                });
              throw new Error('Invalid Parameter');
            });
          }),
          (n.functions.domainname = function (e, t) {
            return n.standardFunctionAsync(e, t, function (n, e, t) {
              if (((0, o.p)(t, 2, 4), t[0] instanceof o.y))
                return t[0].domainValueLookup(
                  (0, o.t)(t[1]),
                  t[2],
                  void 0 === t[3] ? void 0 : (0, o.C)(t[3]),
                );
              if ((0, o.z)(t[0]))
                return t[0]._ensureLoaded().then(() => {
                  const n = (0, o.al)(
                    (0, o.t)(t[1]),
                    t[0],
                    null,
                    void 0 === t[3] ? void 0 : (0, o.C)(t[3]),
                  );
                  return (0, o.am)(n, t[2]);
                });
              throw new Error('Invalid Parameter');
            });
          }),
          n.signatures.push({ name: 'domainname', min: '2', max: '4' }),
          (n.functions.domaincode = function (e, t) {
            return n.standardFunctionAsync(e, t, function (n, e, t) {
              if (((0, o.p)(t, 2, 4), t[0] instanceof o.y))
                return t[0].domainCodeLookup(
                  (0, o.t)(t[1]),
                  t[2],
                  void 0 === t[3] ? void 0 : (0, o.C)(t[3]),
                );
              if ((0, o.z)(t[0]))
                return t[0]._ensureLoaded().then(() => {
                  const n = (0, o.al)(
                    (0, o.t)(t[1]),
                    t[0],
                    null,
                    void 0 === t[3] ? void 0 : (0, o.C)(t[3]),
                  );
                  return (0, o.an)(n, t[2]);
                });
              throw new Error('Invalid Parameter');
            });
          }),
          n.signatures.push({ name: 'domaincode', min: '2', max: '4' })),
          (n.functions.text = function (e, t) {
            return n.standardFunctionAsync(e, t, function (n, e, t) {
              if (((0, o.p)(t, 1, 2), !(0, o.z)(t[0]))) return (0, o.ao)(t[0], t[1]);
              {
                const e = (0, o.U)(t[1], '');
                if ('' === e) return t[0].castToText();
                if ('schema' === e.toLowerCase())
                  return t[0].convertToText('schema', n.abortSignal);
                if ('featureset' === e.toLowerCase())
                  return t[0].convertToText('featureset', n.abortSignal);
              }
            });
          }),
          (n.functions.gdbversion = function (e, t) {
            return n.standardFunctionAsync(e, t, function (n, e, t) {
              if (((0, o.p)(t, 1, 1), t[0] instanceof o.y)) return t[0].gdbVersion();
              if ((0, o.z)(t[0])) return t[0].load().then((n) => n.gdbVersion);
              throw new Error('Invalid Parameter');
            });
          }),
          (n.functions.schema = function (e, t) {
            return n.standardFunctionAsync(e, t, function (n, e, t) {
              if (((0, o.p)(t, 1, 1), (0, o.z)(t[0])))
                return t[0].load().then(() => o.D.convertObjectToArcadeDictionary(t[0].schema()));
              if (t[0] instanceof o.y) {
                const n = t[0].schema();
                return n ? o.D.convertObjectToArcadeDictionary(n) : null;
              }
              throw new Error('Invalid Parameter');
            });
          });
      }
      t(91597),
        t(92143),
        t(31450),
        t(76506),
        t(71552),
        t(40642),
        t(34250),
        t(91306),
        t(86656),
        t(22723),
        t(86787),
        t(97714),
        t(17533),
        t(81172),
        t(2906),
        t(73796),
        t(74673),
        t(21972),
        t(23639),
        t(91055),
        t(27794),
        t(6906),
        t(50406),
        t(60991),
        t(26341),
        t(60947),
        t(35132),
        t(89623),
        t(21801),
        t(84069),
        t(44567),
        t(98380),
        t(92896),
        t(56240),
        t(3482),
        t(32422),
        t(97546),
        t(57251),
        t(59465),
        t(9801),
        t(53523),
        t(42911),
        t(46826),
        t(45433),
        t(54732),
        t(40267),
        t(88762),
        t(32101),
        t(21929),
        t(74569),
        t(22781),
        t(92228);
    },
  },
]);
