chunk-YASLQAXE.js 921 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import {
  2. j
  3. } from "./chunk-VBRY5KJM.js";
  4. import {
  5. m
  6. } from "./chunk-IKP3YN53.js";
  7. // node_modules/@arcgis/core/rest/utils.js
  8. function e(r, t) {
  9. return t ? { ...t, query: { ...r, ...t.query } } : { query: r };
  10. }
  11. function n(e2) {
  12. return typeof e2 == "string" ? j(e2) : m(e2);
  13. }
  14. function o(r, t, e2) {
  15. const n2 = {};
  16. for (const i in r) {
  17. if (i === "declaredClass")
  18. continue;
  19. const f = r[i];
  20. if (f != null && typeof f != "function")
  21. if (Array.isArray(f)) {
  22. n2[i] = [];
  23. for (let r2 = 0; r2 < f.length; r2++)
  24. n2[i][r2] = o(f[r2]);
  25. } else if (typeof f == "object")
  26. if (f.toJSON) {
  27. const r2 = f.toJSON(e2 && e2[i]);
  28. n2[i] = t ? r2 : JSON.stringify(r2);
  29. } else
  30. n2[i] = t ? f : JSON.stringify(f);
  31. else
  32. n2[i] = f;
  33. }
  34. return n2;
  35. }
  36. export {
  37. e,
  38. n,
  39. o
  40. };
  41. //# sourceMappingURL=chunk-YASLQAXE.js.map