12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import {
- j
- } from "./chunk-VBRY5KJM.js";
- import {
- m
- } from "./chunk-IKP3YN53.js";
- // node_modules/@arcgis/core/rest/utils.js
- function e(r, t) {
- return t ? { ...t, query: { ...r, ...t.query } } : { query: r };
- }
- function n(e2) {
- return typeof e2 == "string" ? j(e2) : m(e2);
- }
- function o(r, t, e2) {
- const n2 = {};
- for (const i in r) {
- if (i === "declaredClass")
- continue;
- const f = r[i];
- if (f != null && typeof f != "function")
- if (Array.isArray(f)) {
- n2[i] = [];
- for (let r2 = 0; r2 < f.length; r2++)
- n2[i][r2] = o(f[r2]);
- } else if (typeof f == "object")
- if (f.toJSON) {
- const r2 = f.toJSON(e2 && e2[i]);
- n2[i] = t ? r2 : JSON.stringify(r2);
- } else
- n2[i] = t ? f : JSON.stringify(f);
- else
- n2[i] = f;
- }
- return n2;
- }
- export {
- e,
- n,
- o
- };
- //# sourceMappingURL=chunk-YASLQAXE.js.map
|