import { n as n2 } from "./chunk-YASLQAXE.js"; import { x } from "./chunk-2VFJVI2I.js"; import { c } from "./chunk-GS2NUWMB.js"; import { b } from "./chunk-UD63WBG3.js"; import { d, e, l3 as l, n2 as n } from "./chunk-Y3WMVFTW.js"; import { S } from "./chunk-IHXECKQQ.js"; // node_modules/@arcgis/core/rest/query/executeQueryJSON.js async function s(r, t2, e2) { const s3 = await a(r, t2, e2); return x.fromJSON(s3); } async function a(o, s3, a3) { const n4 = n2(o), i = { ...a3 }, p2 = b.from(s3), { data: u } = await c(n4, p2, p2.sourceSpatialReference, i); return u; } // node_modules/@arcgis/core/layers/support/exifUtils.js function n3(n4) { const { exifInfo: e2, exifName: a3, tagName: u } = n4; if (!e2 || !a3 || !u) return null; const f = e2.find((n5) => n5.name === a3); return f ? t({ tagName: u, tags: f.tags }) : null; } function t(n4) { const { tagName: t2, tags: e2 } = n4; if (!e2 || !t2) return null; const a3 = e2.find((n5) => n5.name === t2); return a3 && a3.value || null; } // node_modules/@arcgis/core/rest/query/support/AttachmentInfo.js var s2; var p = { 1: { id: 1, rotation: 0, mirrored: false }, 2: { id: 2, rotation: 0, mirrored: true }, 3: { id: 3, rotation: 180, mirrored: false }, 4: { id: 4, rotation: 180, mirrored: true }, 5: { id: 5, rotation: -90, mirrored: true }, 6: { id: 6, rotation: 90, mirrored: false }, 7: { id: 7, rotation: 90, mirrored: true }, 8: { id: 8, rotation: -90, mirrored: false } }; var a2 = s2 = class extends l { constructor(t2) { super(t2), this.contentType = null, this.exifInfo = null, this.id = null, this.globalId = null, this.keywords = null, this.name = null, this.parentGlobalId = null, this.parentObjectId = null, this.size = null, this.url = null; } get orientationInfo() { const { exifInfo: t2 } = this, o = n3({ exifName: "Exif IFD0", tagName: "Orientation", exifInfo: t2 }); return p[o] || null; } clone() { return new s2({ contentType: this.contentType, exifInfo: this.exifInfo, id: this.id, globalId: this.globalId, keywords: this.keywords, name: this.name, parentGlobalId: this.parentGlobalId, parentObjectId: this.parentObjectId, size: this.size, url: this.url }); } }; e([d({ type: String })], a2.prototype, "contentType", void 0), e([d()], a2.prototype, "exifInfo", void 0), e([d({ readOnly: true })], a2.prototype, "orientationInfo", null), e([d({ type: S })], a2.prototype, "id", void 0), e([d({ type: String })], a2.prototype, "globalId", void 0), e([d({ type: String })], a2.prototype, "keywords", void 0), e([d({ type: String })], a2.prototype, "name", void 0), e([d({ json: { read: false } })], a2.prototype, "parentGlobalId", void 0), e([d({ json: { read: false } })], a2.prototype, "parentObjectId", void 0), e([d({ type: S })], a2.prototype, "size", void 0), e([d({ json: { read: false } })], a2.prototype, "url", void 0), a2 = s2 = e([n("esri.layers.support.AttachmentInfo")], a2); var l2 = a2; export { s, a, l2 as l }; //# sourceMappingURL=chunk-MTFA4FTA.js.map