{"version":3,"sources":["node_modules/@arcgis/core/rest/query/executeForExtent.js","node_modules/@arcgis/core/rest/query/operations/pbfJSONFeatureSet.js","node_modules/@arcgis/core/rest/query/executeQueryPBF.js","node_modules/@arcgis/core/layers/graphics/sources/support/QueryTask.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport \"../../geometry.js\";\nimport { parseUrl as t } from \"../utils.js\";\nimport { executeQueryForExtent as o } from \"./operations/query.js\";\nimport r from \"../support/Query.js\";\nimport m from \"../../geometry/Extent.js\";\nasync function n(n, a, e) {\n const i = t(n),\n s = await o(i, r.from(a), {\n ...e\n }),\n u = s.data.extent;\n return !u || isNaN(u.xmin) || isNaN(u.ymin) || isNaN(u.xmax) || isNaN(u.ymax) ? {\n count: s.data.count,\n extent: null\n } : {\n count: s.data.count,\n extent: m.fromJSON(u)\n };\n}\nexport { n as executeForExtent };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { assertIsSome as e } from \"../../../core/maybe.js\";\nimport { getGeometryZScaler as t } from \"../../../geometry/support/zscale.js\";\nimport { unquantizeOptimizedGeometry as r, convertToGeometry as s } from \"../../../layers/graphics/featureConversionUtils.js\";\nfunction o(e, t) {\n return t;\n}\nfunction i(e, t, r, s) {\n switch (r) {\n case 0:\n return u(e, t + s, 0);\n case 1:\n return \"lowerLeft\" === e.originPosition ? u(e, t + s, 1) : l(e, t + s, 1);\n }\n}\nfunction n(e, t, r, s) {\n return 2 === r ? u(e, t, 2) : i(e, t, r, s);\n}\nfunction a(e, t, r, s) {\n return 2 === r ? 0 === t ? 0 : u(e, t, 3) : i(e, t, r, s);\n}\nfunction h(e, t, r, s) {\n return 3 === r ? 0 === t ? 0 : u(e, t, 3) : n(e, t, r, s);\n}\nfunction u({\n translate: e,\n scale: t\n}, r, s) {\n return e[s] + r * t[s];\n}\nfunction l({\n translate: e,\n scale: t\n}, r, s) {\n return e[s] - r * t[s];\n}\nclass d {\n constructor(e) {\n this._options = e, this.geometryTypes = [\"esriGeometryPoint\", \"esriGeometryMultipoint\", \"esriGeometryPolyline\", \"esriGeometryPolygon\"], this._previousCoordinate = [0, 0], this._transform = null, this._applyTransform = o, this._lengths = [], this._currentLengthIndex = 0, this._toAddInCurrentPath = 0, this._vertexDimension = 0, this._mValueOffset = null, this._coordinateBuffer = null, this._coordinateBufferPtr = 0, this._attributesConstructor = class {};\n }\n createFeatureResult() {\n return {\n fields: [],\n features: []\n };\n }\n finishFeatureResult(e) {\n if (this._options.applyTransform && (e.transform = null), this._attributesConstructor = class {}, this._coordinateBuffer = null, this._lengths.length = 0, !e.hasZ) return;\n const r = t(e.geometryType, this._options.sourceSpatialReference, e.spatialReference);\n if (null != r) for (const t of e.features) r(t.geometry);\n }\n createSpatialReference() {\n return {};\n }\n addField(t, r) {\n const s = t.fields;\n e(s), s.push(r);\n const o = s.map(e => e.name);\n this._attributesConstructor = function () {\n for (const e of o) this[e] = null;\n };\n }\n addFeature(e, t) {\n e.features.push(t);\n }\n prepareFeatures(e) {\n switch (this._transform = e.transform, this._options.applyTransform && e.transform && (this._applyTransform = this._deriveApplyTransform(e)), this._mValueOffset = null, this._vertexDimension = 2, e.hasZ && this._vertexDimension++, e.hasM && (this._mValueOffset = this._vertexDimension, this._vertexDimension++), e.geometryType) {\n case \"esriGeometryPoint\":\n this.addCoordinate = (e, t, r) => this.addCoordinatePoint(e, t, r), this.createGeometry = e => this.createPointGeometry(e);\n break;\n case \"esriGeometryPolygon\":\n this.addCoordinate = (e, t, r) => this._addCoordinatePolygon(e, t, r), this.createGeometry = e => this._createPolygonGeometry(e);\n break;\n case \"esriGeometryPolyline\":\n this.addCoordinate = (e, t, r) => this._addCoordinatePolyline(e, t, r), this.createGeometry = e => this._createPolylineGeometry(e);\n break;\n case \"esriGeometryMultipoint\":\n this.addCoordinate = (e, t, r) => this._addCoordinateMultipoint(e, t, r), this.createGeometry = e => this._createMultipointGeometry(e);\n }\n }\n createFeature() {\n return this._lengths.length = 0, this._currentLengthIndex = 0, this._previousCoordinate[0] = 0, this._previousCoordinate[1] = 0, this._coordinateBuffer = null, this._coordinateBufferPtr = 0, {\n attributes: new this._attributesConstructor()\n };\n }\n allocateCoordinates() {}\n addLength(e, t, r) {\n 0 === this._lengths.length && (this._toAddInCurrentPath = t), this._lengths.push(t);\n }\n addQueryGeometry(e, t) {\n const {\n queryGeometry: o,\n queryGeometryType: i\n } = t,\n n = r(o.clone(), o, !1, !1, this._transform),\n a = s(n, i, !1, !1);\n e.queryGeometryType = i, e.queryGeometry = {\n ...a\n };\n }\n createPointGeometry(e) {\n const t = {\n x: 0,\n y: 0,\n spatialReference: e.spatialReference\n };\n return e.hasZ && (t.z = 0), e.hasM && (t.m = 0), t;\n }\n addCoordinatePoint(e, t, r) {\n const s = this._transform;\n switch (t = this._applyTransform(s, t, r, 0), r) {\n case 0:\n e.x = t;\n break;\n case 1:\n e.y = t;\n break;\n case 2:\n \"z\" in e ? e.z = t : e.m = t;\n break;\n case 3:\n e.m = t;\n }\n }\n _transformPathLikeValue(e, t) {\n let r = 0;\n t <= 1 && (r = this._previousCoordinate[t], this._previousCoordinate[t] += e);\n const s = this._transform;\n return null !== this._mValueOffset && 0 === e && t > 0 && !(t % this._mValueOffset) ? 0 : this._applyTransform(s, e, t, r);\n }\n _addCoordinatePolyline(e, t, r) {\n this._dehydratedAddPointsCoordinate(e.paths, t, r);\n }\n _addCoordinatePolygon(e, t, r) {\n this._dehydratedAddPointsCoordinate(e.rings, t, r);\n }\n _addCoordinateMultipoint(e, t, r) {\n 0 === r && e.points.push([]);\n const s = this._transformPathLikeValue(t, r);\n e.points[e.points.length - 1].push(s);\n }\n _createPolygonGeometry(e) {\n return {\n rings: [[]],\n spatialReference: e.spatialReference,\n hasZ: !!e.hasZ,\n hasM: !!e.hasM\n };\n }\n _createPolylineGeometry(e) {\n return {\n paths: [[]],\n spatialReference: e.spatialReference,\n hasZ: !!e.hasZ,\n hasM: !!e.hasM\n };\n }\n _createMultipointGeometry(e) {\n return {\n points: [],\n spatialReference: e.spatialReference,\n hasZ: !!e.hasZ,\n hasM: !!e.hasM\n };\n }\n _dehydratedAddPointsCoordinate(e, t, r) {\n 0 === r && 0 == this._toAddInCurrentPath-- && (e.push([]), this._toAddInCurrentPath = this._lengths[++this._currentLengthIndex] - 1, this._previousCoordinate[0] = 0, this._previousCoordinate[1] = 0);\n const s = this._transformPathLikeValue(t, r),\n o = e[e.length - 1];\n 0 === r && (this._coordinateBufferPtr = 0, this._coordinateBuffer = new Array(this._vertexDimension), o.push(this._coordinateBuffer)), this._coordinateBuffer[this._coordinateBufferPtr++] = s;\n }\n _deriveApplyTransform(e) {\n const {\n hasZ: t,\n hasM: r\n } = e;\n return t && r ? h : t ? n : r ? a : i;\n }\n}\nexport { d as JSONFeatureSetParserContext };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { parseUrl as r } from \"../utils.js\";\nimport { JSONFeatureSetParserContext as e } from \"./operations/pbfJSONFeatureSet.js\";\nimport { executeQueryPBF as t } from \"./operations/query.js\";\nimport o from \"../support/FeatureSet.js\";\nimport a from \"../support/Query.js\";\nasync function s(r, e, t) {\n const s = await n(r, a.from(e), t);\n return o.fromJSON(s);\n}\nasync function n(o, s, n) {\n const p = r(o),\n i = {\n ...n\n },\n u = a.from(s),\n m = !u.quantizationParameters,\n {\n data: f\n } = await t(p, u, new e({\n sourceSpatialReference: u.sourceSpatialReference,\n applyTransform: m\n }), i);\n return f;\n}\nexport { s as executeQueryPBF, n as executeRawQueryPBF };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../../../chunks/tslib.es6.js\";\nimport t from \"../../../../core/Accessor.js\";\nimport r from \"../../../../core/Error.js\";\nimport has from \"../../../../core/has.js\";\nimport { whenOrAbort as o } from \"../../../../core/promiseUtils.js\";\nimport { urlToObject as s } from \"../../../../core/urlUtils.js\";\nimport { property as i } from \"../../../../core/accessorSupport/decorators/property.js\";\nimport \"../../../../core/Logger.js\";\nimport \"../../../../core/RandomLCG.js\";\nimport { subclass as u } from \"../../../../core/accessorSupport/decorators/subclass.js\";\nimport { equals as a } from \"../../../../geometry/support/spatialReferenceUtils.js\";\nimport { getGlbFormatId as n, getGltfFormatId as c } from \"../../../support/infoFor3D.js\";\nimport { DataLayerSource as p } from \"../../../support/source/DataLayerSource.js\";\nimport { parseUrl as l } from \"../../../../rest/utils.js\";\nimport { executeForCount as m } from \"../../../../rest/query/executeForCount.js\";\nimport { executeForExtent as y } from \"../../../../rest/query/executeForExtent.js\";\nimport { executeForIds as f } from \"../../../../rest/query/executeForIds.js\";\nimport { executeRawQueryJSON as d } from \"../../../../rest/query/executeQueryJSON.js\";\nimport { executeRawQueryPBF as h } from \"../../../../rest/query/executeQueryPBF.js\";\nimport S from \"../../../../rest/support/FeatureSet.js\";\nimport F from \"../../../../rest/support/Query.js\";\nlet x = class extends t {\n constructor(e) {\n super(e), this.dynamicDataSource = null, this.fieldsIndex = null, this.gdbVersion = null, this.infoFor3D = null, this.pbfSupported = !1, this.queryAttachmentsSupported = !1, this.sourceSpatialReference = null, this.url = null;\n }\n get parsedUrl() {\n return s(this.url);\n }\n async execute(e, t) {\n const r = await this.executeJSON(e, t);\n return this.featureSetFromJSON(e, r, t);\n }\n async executeJSON(e, t) {\n const r = this._normalizeQuery(e),\n o = null != e.outStatistics?.[0],\n s = has(\"featurelayer-pbf-statistics\"),\n i = !o || s;\n let u;\n if (this.pbfSupported && i) try {\n u = await h(this.url, r, t);\n } catch (a) {\n if (\"query:parsing-pbf\" !== a.name) throw a;\n this.pbfSupported = !1;\n }\n return this.pbfSupported && i || (u = await d(this.url, r, t)), this._normalizeFields(u.fields), u;\n }\n async featureSetFromJSON(e, t, r) {\n if (!this._queryIs3DObjectFormat(e) || null == this.infoFor3D || !t.features) return S.fromJSON(t);\n const {\n meshFeatureSetFromJSON: s\n } = await o(import(\"../../../../rest/support/meshFeatureSet.js\"), r);\n return s(e, this.infoFor3D, t);\n }\n executeForCount(e, t) {\n return m(this.url, this._normalizeQuery(e), t);\n }\n executeForExtent(e, t) {\n return y(this.url, this._normalizeQuery(e), t);\n }\n executeForIds(e, t) {\n return f(this.url, this._normalizeQuery(e), t);\n }\n async executeRelationshipQuery(e, t) {\n const [{\n default: r\n }, {\n executeRelationshipQuery: s\n }] = await o(Promise.all([import(\"../../../../rest/support/RelationshipQuery.js\"), import(\"../../../../rest/query/executeRelationshipQuery.js\")]), t);\n return e = r.from(e), (this.gdbVersion || this.dynamicDataSource) && ((e = e.clone()).gdbVersion = e.gdbVersion || this.gdbVersion, e.dynamicDataSource = e.dynamicDataSource || this.dynamicDataSource), s(this.url, e, t);\n }\n async executeRelationshipQueryForCount(e, t) {\n const [{\n default: r\n }, {\n executeRelationshipQueryForCount: s\n }] = await o(Promise.all([import(\"../../../../rest/support/RelationshipQuery.js\"), import(\"../../../../rest/query/executeRelationshipQuery.js\")]), t);\n return e = r.from(e), (this.gdbVersion || this.dynamicDataSource) && ((e = e.clone()).gdbVersion = e.gdbVersion || this.gdbVersion, e.dynamicDataSource = e.dynamicDataSource || this.dynamicDataSource), s(this.url, e, t);\n }\n async executeAttachmentQuery(e, t) {\n const {\n executeAttachmentQuery: r,\n fetchAttachments: s,\n processAttachmentQueryResult: i\n } = await o(import(\"../../../../rest/query/operations/queryAttachments.js\"), t),\n u = l(this.url);\n return i(u, await (this.queryAttachmentsSupported ? r(u, e, t) : s(u, e, t)));\n }\n async executeBinsQuery(e, t) {\n const {\n executeBinsQuery: r\n } = await o(import(\"../../../../rest/query/executeBinsQuery.js\"), t);\n return r(this.parsedUrl, e, t);\n }\n async executeTopFeaturesQuery(e, t) {\n const {\n executeTopFeaturesQuery: r\n } = await o(import(\"../../../../rest/query/executeTopFeaturesQuery.js\"), t);\n return r(this.parsedUrl, e, this.sourceSpatialReference, t);\n }\n async executeForTopIds(e, t) {\n const {\n executeForTopIds: r\n } = await o(import(\"../../../../rest/query/executeForTopIds.js\"), t);\n return r(this.parsedUrl, e, t);\n }\n async executeForTopExtents(e, t) {\n const {\n executeForTopExtents: r\n } = await o(import(\"../../../../rest/query/executeForTopExtents.js\"), t);\n return r(this.parsedUrl, e, t);\n }\n async executeForTopCount(e, t) {\n const {\n executeForTopCount: r\n } = await o(import(\"../../../../rest/query/executeForTopCount.js\"), t);\n return r(this.parsedUrl, e, t);\n }\n _normalizeQuery(e) {\n let t = F.from(e);\n t.sourceSpatialReference = t.sourceSpatialReference || this.sourceSpatialReference, (this.gdbVersion || this.dynamicDataSource) && (t = t === e ? t.clone() : t, t.gdbVersion = e.gdbVersion || this.gdbVersion, t.dynamicDataSource = e.dynamicDataSource ? p.from(e.dynamicDataSource) : this.dynamicDataSource);\n const {\n infoFor3D: o\n } = this;\n if (null != o && this._queryIs3DObjectFormat(e)) {\n t = t === e ? t.clone() : t, t.formatOf3DObjects = null;\n const s = n(o),\n i = c(o);\n for (const e of o.queryFormats) {\n if (e === s) {\n t.formatOf3DObjects = e;\n break;\n }\n e !== i || t.formatOf3DObjects || (t.formatOf3DObjects = e);\n }\n if (!t.formatOf3DObjects) throw new r(\"query:unsupported-3d-query-formats\", \"Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf\");\n if (t.outSpatialReference && !a(t.outSpatialReference, this.sourceSpatialReference)) throw new r(\"query:unsupported-out-spatial-reference\", \"3D object feature services do not support projection of geometries\");\n if (null == t.outFields || !t.outFields.includes(\"*\")) {\n t = t === e ? t.clone() : t, null == t.outFields && (t.outFields = []);\n const {\n originX: r,\n originY: s,\n originZ: i,\n translationX: u,\n translationY: a,\n translationZ: n,\n scaleX: c,\n scaleY: p,\n scaleZ: l,\n rotationX: m,\n rotationY: y,\n rotationZ: f,\n rotationDeg: d\n } = o.transformFieldRoles;\n t.outFields.push(r, s, i, u, a, n, c, p, l, m, y, f, d);\n }\n }\n return t;\n }\n _normalizeFields(e) {\n if (null != this.fieldsIndex && null != e) for (const t of e) {\n const e = this.fieldsIndex.get(t.name);\n e && Object.assign(t, e.toJSON());\n }\n }\n _queryIs3DObjectFormat(e) {\n return null != this.infoFor3D && !0 === e.returnGeometry && \"xyFootprint\" !== e.multipatchOption && !e.outStatistics;\n }\n};\ne([i({\n type: p\n})], x.prototype, \"dynamicDataSource\", void 0), e([i()], x.prototype, \"fieldsIndex\", void 0), e([i()], x.prototype, \"gdbVersion\", void 0), e([i()], x.prototype, \"infoFor3D\", void 0), e([i({\n readOnly: !0\n})], x.prototype, \"parsedUrl\", null), e([i()], x.prototype, \"pbfSupported\", void 0), e([i()], x.prototype, \"queryAttachmentsSupported\", void 0), e([i()], x.prototype, \"sourceSpatialReference\", void 0), e([i({\n type: String\n})], x.prototype, \"url\", void 0), x = e([u(\"esri.layers.graphics.sources.support.QueryTask\")], x);\nconst j = x;\nexport { j as default };"],"mappings":"62BASA,SAAeA,EAAEA,EAAGC,EAAG,EAAG,QAAAC,EAAA,sBACxB,IAAMC,EAAIC,EAAEJ,CAAC,EACX,EAAI,MAAMK,EAAEF,EAAGG,EAAE,KAAKL,CAAC,EAAGM,EAAA,GACrB,EACJ,EACDC,EAAI,EAAE,KAAK,OACb,MAAO,CAACA,GAAK,MAAMA,EAAE,IAAI,GAAK,MAAMA,EAAE,IAAI,GAAK,MAAMA,EAAE,IAAI,GAAK,MAAMA,EAAE,IAAI,EAAI,CAC9E,MAAO,EAAE,KAAK,MACd,OAAQ,IACV,EAAI,CACF,MAAO,EAAE,KAAK,MACd,OAAQ,EAAE,SAASA,CAAC,CACtB,CACF,GCfA,SAASC,EAAEC,EAAG,EAAG,CACf,OAAO,CACT,CACA,SAASC,EAAED,EAAG,EAAGE,EAAGC,EAAG,CACrB,OAAQD,EAAG,CACT,IAAK,GACH,OAAOE,EAAEJ,EAAG,EAA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6CA,EAAE,mBAApB,eAAwC,CAACA,EAAE,aACzG,CACF,EACAG,EAAE,CAAC,EAAE,CACH,KAAMU,CACR,CAAC,CAAC,EAAGf,EAAE,UAAW,oBAAqB,MAAM,EAAGK,EAAE,CAAC,EAAE,CAAC,EAAGL,EAAE,UAAW,cAAe,MAAM,EAAGK,EAAE,CAAC,EAAE,CAAC,EAAGL,EAAE,UAAW,aAAc,MAAM,EAAGK,EAAE,CAAC,EAAE,CAAC,EAAGL,EAAE,UAAW,YAAa,MAAM,EAAGK,EAAE,CAAC,EAAE,CAC1L,SAAU,EACZ,CAAC,CAAC,EAAGL,EAAE,UAAW,YAAa,IAAI,EAAGK,EAAE,CAAC,EAAE,CAAC,EAAGL,EAAE,UAAW,eAAgB,MAAM,EAAGK,EAAE,CAAC,EAAE,CAAC,EAAGL,EAAE,UAAW,4BAA6B,MAAM,EAAGK,EAAE,CAAC,EAAE,CAAC,EAAGL,EAAE,UAAW,yBAA0B,MAAM,EAAGK,EAAE,CAAC,EAAE,CAC7M,KAAM,MACR,CAAC,CAAC,EAAGL,EAAE,UAAW,MAAO,MAAM,EAAGA,EAAIK,EAAE,CAACI,EAAE,gDAAgD,CAAC,EAAGT,CAAC,EAChG,IAAMsB,GAAItB","names":["n","a","__async","i","f","x","b","__spreadValues","u","o","e","i","r","s","u","l","n","a","h","d","t","pt","rt","__spreadValues","n","o","s","__async","p","f","i","__spreadValues","u","b","m","d","x","b","e","I","__async","r","has","u","n","a","d","s","h","i","f","K","o","c","p","l","m","y","j"],"x_google_ignoreList":[0,1,2,3]}