import { c } from "./chunk-4D6PVVFX.js"; import "./chunk-WQJRLXWG.js"; import { Ke } from "./chunk-6NQ3AA2U.js"; import "./chunk-524XACB7.js"; import "./chunk-XKHC7KKF.js"; import "./chunk-HGDNY7J3.js"; import "./chunk-GD5TMIPM.js"; import "./chunk-ZRX5UNQH.js"; import { u } from "./chunk-VEAEIBHK.js"; import "./chunk-6SASJ6IM.js"; import "./chunk-3OHML7FO.js"; import "./chunk-JGOAMEPM.js"; import "./chunk-Z64YKYHD.js"; import { x as x2 } from "./chunk-2VFJVI2I.js"; import "./chunk-F37AVPUF.js"; import "./chunk-FUEX356Y.js"; import "./chunk-TNLRDNTC.js"; import "./chunk-OSNKP4CI.js"; import "./chunk-435DJNTD.js"; import "./chunk-T3EUPDKL.js"; import "./chunk-2SJEIKRW.js"; import "./chunk-PHRSJJ3U.js"; import "./chunk-VVBOYBFX.js"; import "./chunk-S7R5EXHN.js"; import "./chunk-FMKGHOGD.js"; import "./chunk-6URTNEGN.js"; import "./chunk-KN7TOKVN.js"; import "./chunk-RQJNTZAL.js"; import "./chunk-QTOOFNRV.js"; import "./chunk-7O56JPWQ.js"; import "./chunk-6B2LQBKM.js"; import "./chunk-MFI6BALW.js"; import "./chunk-CIG5OHC7.js"; import "./chunk-FUD7XO3N.js"; import "./chunk-6EU7GFUT.js"; import "./chunk-MFUAILAT.js"; import "./chunk-HZJYXMI6.js"; import "./chunk-27P5ZSC7.js"; import "./chunk-UPD4MTCL.js"; import "./chunk-GRBROWI6.js"; import "./chunk-5NKYXKIA.js"; import "./chunk-MPWGHCZG.js"; import "./chunk-FTI5VP6T.js"; import "./chunk-RZFGRBD7.js"; import "./chunk-PUSPZYFZ.js"; import "./chunk-EN7YGJWG.js"; import "./chunk-VBNMTM7L.js"; import "./chunk-3D3QEPRE.js"; import "./chunk-JFNNSBWL.js"; import { b } from "./chunk-UD63WBG3.js"; import "./chunk-X7DBH4KK.js"; import "./chunk-LY74KTXV.js"; import "./chunk-EWE6EXPY.js"; import "./chunk-KUXNUNAI.js"; import "./chunk-KMAHKQ2G.js"; import "./chunk-522WBHUO.js"; import "./chunk-WNCU6BFU.js"; import "./chunk-PIGRDDRG.js"; import "./chunk-BJHM4JNS.js"; import "./chunk-F6A2QQ26.js"; import "./chunk-XLV7RUSE.js"; import "./chunk-NTUXR253.js"; import "./chunk-EOSZHC5H.js"; import "./chunk-C43UE3Z5.js"; import "./chunk-H2KDMZTR.js"; import "./chunk-RMX2AZ4P.js"; import "./chunk-NE3ESGA6.js"; import "./chunk-YIS6BAC3.js"; import "./chunk-7XXXCK2A.js"; import "./chunk-7ZIDBK7B.js"; import "./chunk-KHA63LLS.js"; import "./chunk-FGKNEJKJ.js"; import "./chunk-PSV473TI.js"; import "./chunk-I3OBGWNS.js"; import "./chunk-FONIFA5N.js"; import "./chunk-EG5OI4V4.js"; import { m, p } from "./chunk-65BYCSII.js"; import "./chunk-WZQZRKNH.js"; import "./chunk-LRDX4TO7.js"; import "./chunk-6A4U74YA.js"; import "./chunk-CYI7KFYB.js"; import "./chunk-5LXROFTA.js"; import "./chunk-GJXW4HL5.js"; import "./chunk-WJW5DUN6.js"; import "./chunk-W72F6AS3.js"; import "./chunk-PJ7ZQ4VD.js"; import "./chunk-WDLTDV2L.js"; import "./chunk-TERAW6FT.js"; import "./chunk-N2663GRX.js"; import "./chunk-O4FY3ITT.js"; import "./chunk-WEMIK25H.js"; import "./chunk-4DDBH2K5.js"; import "./chunk-7N4X6GF3.js"; import "./chunk-JXW4QTJA.js"; import "./chunk-UXF37FQ4.js"; import "./chunk-ZOEK6QHJ.js"; import "./chunk-XNLG7T2T.js"; import "./chunk-IR4PV7VK.js"; import "./chunk-2Z6LERTI.js"; import "./chunk-OWVBLVP3.js"; import "./chunk-AFZ7XSEW.js"; import "./chunk-EGZW6HC3.js"; import "./chunk-4NKD334K.js"; import "./chunk-65K7LC56.js"; import "./chunk-ATPLLI5W.js"; import "./chunk-WJ3OEUD3.js"; import "./chunk-MXB2XLKV.js"; import "./chunk-XH7RUGVZ.js"; import { m as m2 } from "./chunk-TBBTRX4O.js"; import "./chunk-YBSUITLL.js"; import "./chunk-ALDCDSPV.js"; import "./chunk-DT6EAZQ5.js"; import "./chunk-HNOZUNJ4.js"; import "./chunk-VNFRAYHO.js"; import "./chunk-R5IG2D6H.js"; import { j } from "./chunk-VBRY5KJM.js"; import "./chunk-PDKDCAAD.js"; import { M2 as M, o } from "./chunk-ECW2QABR.js"; import "./chunk-GCDJLKH4.js"; import { k2 as k } from "./chunk-MRJEICT6.js"; import { d, e, n2 as n } from "./chunk-Y3WMVFTW.js"; import "./chunk-SAS7RONY.js"; import "./chunk-WSRBH7BF.js"; import "./chunk-IHXECKQQ.js"; import { x } from "./chunk-ULGDPLM2.js"; import { s3 as s } from "./chunk-EMJ4ZSM2.js"; import "./chunk-IKP3YN53.js"; import { a, r } from "./chunk-GZT4BVFP.js"; import "./chunk-A5ICIBVI.js"; // node_modules/@arcgis/core/layers/graphics/sources/CSVSource.js var l = class extends m2 { constructor(t) { super(t), this.type = "csv", this.refresh = x(async (t2) => { await this.load(); const { extent: e2, timeExtent: o2 } = await this._connection.invoke("refresh", t2); return this.sourceJSON.extent = e2, o2 && (this.sourceJSON.timeInfo.timeExtent = [o2.start, o2.end]), { dataChanged: true, updates: { extent: this.sourceJSON.extent, timeInfo: this.sourceJSON.timeInfo } }; }); } load(t) { const e2 = r(t) ? t.signal : null; return this.addResolvingPromise(this._startWorker(e2)), Promise.resolve(this); } destroy() { this._connection?.close(), this._connection = null; } async openPorts() { return await this.load(), this._connection.openPorts(); } async queryFeatures(t, e2 = {}) { await this.load(e2); const o2 = await this._connection.invoke("queryFeatures", t ? t.toJSON() : null, e2); return x2.fromJSON(o2); } async queryFeaturesJSON(t, e2 = {}) { return await this.load(e2), this._connection.invoke("queryFeatures", t ? t.toJSON() : null, e2); } async queryFeatureCount(t, e2 = {}) { return await this.load(e2), this._connection.invoke("queryFeatureCount", t ? t.toJSON() : null, e2); } async queryObjectIds(t, e2 = {}) { return await this.load(e2), this._connection.invoke("queryObjectIds", t ? t.toJSON() : null, e2); } async queryExtent(t, e2 = {}) { await this.load(e2); const o2 = await this._connection.invoke("queryExtent", t ? t.toJSON() : null, e2); return { count: o2.count, extent: M.fromJSON(o2.extent) }; } async querySnapping(t, e2 = {}) { return await this.load(e2), this._connection.invoke("querySnapping", t, e2); } async _startWorker(t) { this._connection = await u("CSVSourceWorker", { strategy: a("feature-layers-workers") ? "dedicated" : "local", signal: t }); const { url: o2, delimiter: r2, fields: s2, latitudeField: n2, longitudeField: a2, spatialReference: c2, timeInfo: u2 } = this.loadOptions, l2 = await this._connection.invoke("load", { url: o2, customParameters: this.customParameters, parsingOptions: { delimiter: r2, fields: s2?.map((t2) => t2.toJSON()), latitudeField: n2, longitudeField: a2, spatialReference: c2?.toJSON(), timeInfo: u2?.toJSON() } }, { signal: t }); this.locationInfo = l2.locationInfo, this.sourceJSON = l2.layerDefinition, this.delimiter = l2.delimiter; } }; e([d()], l.prototype, "type", void 0), e([d()], l.prototype, "loadOptions", void 0), e([d()], l.prototype, "customParameters", void 0), e([d()], l.prototype, "locationInfo", void 0), e([d()], l.prototype, "sourceJSON", void 0), e([d()], l.prototype, "delimiter", void 0), l = e([n("esri.layers.graphics.sources.CSVSource")], l); // node_modules/@arcgis/core/layers/CSVLayer.js function h(e2, r2) { throw new s(r2, `CSVLayer (title: ${e2.title}, id: ${e2.id}) cannot be saved to a portal item`); } var m3 = class extends Ke { constructor(...e2) { super(...e2), this.capabilities = c(false, false), this.delimiter = null, this.editingEnabled = false, this.fields = null, this.latitudeField = null, this.locationType = "coordinates", this.longitudeField = null, this.operationalLayerType = "CSV", this.outFields = ["*"], this.path = null, this.portalItem = null, this.spatialReference = k.WGS84, this.source = null, this.type = "csv"; } normalizeCtorArgs(e2, t) { return typeof e2 == "string" ? { url: e2, ...t } : e2; } get isTable() { return this.loaded && this.geometryType == null; } readWebMapLabelsVisible(e2, t) { return t.showLabels != null ? t.showLabels : !!(t.layerDefinition && t.layerDefinition.drawingInfo && t.layerDefinition.drawingInfo.labelingInfo); } set url(e2) { if (!e2) return void this._set("url", e2); const t = j(e2); this._set("url", t.path), t.query && (this.customParameters = { ...this.customParameters, ...t.query }); } async createGraphicsSource(e2) { const t = new l({ loadOptions: { delimiter: this.delimiter, fields: this.fields, latitudeField: this.latitudeField, longitudeField: this.longitudeField, spatialReference: this.spatialReference, timeInfo: this.timeInfo, url: this.url }, customParameters: this.customParameters }); return this._set("source", t), await t.load({ signal: e2 }), this.read({ locationInfo: t.locationInfo, columnDelimiter: t.delimiter }, { origin: "service", url: this.parsedUrl }), t; } queryFeatures(e2, t) { return this.load().then(() => this.source.queryFeatures(b.from(e2) || this.createQuery())).then((e3) => { if (e3?.features) for (const t2 of e3.features) t2.layer = t2.sourceLayer = this; return e3; }); } queryObjectIds(e2, t) { return this.load().then(() => this.source.queryObjectIds(b.from(e2) || this.createQuery())); } queryFeatureCount(e2, t) { return this.load().then(() => this.source.queryFeatureCount(b.from(e2) || this.createQuery())); } queryExtent(e2, t) { return this.load().then(() => this.source.queryExtent(b.from(e2) || this.createQuery())); } write(e2, t) { return super.write(e2, { ...t, writeLayerSchema: true }); } clone() { throw new s("csv-layer:clone", `CSVLayer (title: ${this.title}, id: ${this.id}) cannot be cloned`); } async save(e2) { return h(this, "csv-layer:save"); } async saveAs(e2, t) { return h(this, "csv-layer:save-as"); } async hasDataChanged() { try { const { dataChanged: e2, updates: t } = await this.source.refresh(this.customParameters); return r(t) && this.read(t, { origin: "service", url: this.parsedUrl, ignoreDefaults: true }), e2; } catch { } return false; } _verifyFields() { } _verifySource() { } _hasMemorySource() { return false; } }; e([d({ readOnly: true, json: { read: false, write: false } })], m3.prototype, "capabilities", void 0), e([d({ type: [",", " ", ";", "|", " "], json: { read: { source: "columnDelimiter" }, write: { target: "columnDelimiter", ignoreOrigin: true } } })], m3.prototype, "delimiter", void 0), e([d({ readOnly: true, type: Boolean, json: { origins: { "web-scene": { read: false, write: false } } } })], m3.prototype, "editingEnabled", void 0), e([d({ json: { read: { source: "layerDefinition.fields" }, write: { target: "layerDefinition.fields" } } })], m3.prototype, "fields", void 0), e([d({ type: Boolean, readOnly: true })], m3.prototype, "isTable", null), e([o("web-map", "labelsVisible", ["layerDefinition.drawingInfo.labelingInfo", "showLabels"])], m3.prototype, "readWebMapLabelsVisible", null), e([d({ type: String, json: { read: { source: "locationInfo.latitudeFieldName" }, write: { target: "locationInfo.latitudeFieldName", ignoreOrigin: true } } })], m3.prototype, "latitudeField", void 0), e([d({ type: ["show", "hide"] })], m3.prototype, "listMode", void 0), e([d({ type: ["coordinates"], json: { read: { source: "locationInfo.locationType" }, write: { target: "locationInfo.locationType", ignoreOrigin: true, isRequired: true } } })], m3.prototype, "locationType", void 0), e([d({ type: String, json: { read: { source: "locationInfo.longitudeFieldName" }, write: { target: "locationInfo.longitudeFieldName", ignoreOrigin: true } } })], m3.prototype, "longitudeField", void 0), e([d({ type: ["CSV"] })], m3.prototype, "operationalLayerType", void 0), e([d()], m3.prototype, "outFields", void 0), e([d({ type: String, json: { origins: { "web-scene": { read: false, write: false } }, read: false, write: false } })], m3.prototype, "path", void 0), e([d({ json: { read: false, write: false, origins: { "web-document": { read: false, write: false } } } })], m3.prototype, "portalItem", void 0), e([d({ json: { read: false }, cast: null, type: l, readOnly: true })], m3.prototype, "source", void 0), e([d({ json: { read: false }, value: "csv", readOnly: true })], m3.prototype, "type", void 0), e([d({ json: { read: m, write: { isRequired: true, ignoreOrigin: true, writer: p } } })], m3.prototype, "url", null), m3 = e([n("esri.layers.CSVLayer")], m3); var f = m3; export { f as default }; //# sourceMappingURL=CSVLayer-PX22PS2D.js.map