chunk-F3LA3K3M.js 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961
  1. import {
  2. p as p4
  3. } from "./chunk-F2GA7W55.js";
  4. import {
  5. a2 as a3,
  6. h,
  7. i as i2,
  8. n2 as n5,
  9. u2 as u
  10. } from "./chunk-3BKH6ISD.js";
  11. import {
  12. c,
  13. d,
  14. g as g3,
  15. l as l3
  16. } from "./chunk-TLDCDW5L.js";
  17. import {
  18. g as g2
  19. } from "./chunk-TDS6IBMU.js";
  20. import {
  21. M,
  22. N
  23. } from "./chunk-I26BWYY3.js";
  24. import {
  25. u as u2
  26. } from "./chunk-OUUXJOLT.js";
  27. import {
  28. x
  29. } from "./chunk-NLLFSKB2.js";
  30. import {
  31. v as v3
  32. } from "./chunk-WOXHUQGM.js";
  33. import {
  34. f,
  35. i,
  36. s as s3
  37. } from "./chunk-FMPQIGFA.js";
  38. import {
  39. C,
  40. _,
  41. a as a2,
  42. n as n3,
  43. n2 as n4,
  44. y as y5
  45. } from "./chunk-3FNKD2EB.js";
  46. import {
  47. j,
  48. j2
  49. } from "./chunk-ZOO4I2U4.js";
  50. import {
  51. p as p3
  52. } from "./chunk-HZ2WKB3G.js";
  53. import {
  54. T as T2,
  55. m as m3
  56. } from "./chunk-Y74D3LKQ.js";
  57. import {
  58. g
  59. } from "./chunk-7C23ILQ4.js";
  60. import {
  61. m as m2,
  62. n as n2,
  63. y as y4
  64. } from "./chunk-3Z755LKF.js";
  65. import {
  66. y as y3
  67. } from "./chunk-JGBXYDGB.js";
  68. import {
  69. a,
  70. m,
  71. p as p2
  72. } from "./chunk-FNA5GLRW.js";
  73. import {
  74. o as o3
  75. } from "./chunk-UVVU4UUO.js";
  76. import {
  77. l as l2
  78. } from "./chunk-X4SA4ELJ.js";
  79. import {
  80. r as r3
  81. } from "./chunk-5N7JLUJJ.js";
  82. import {
  83. v as v2
  84. } from "./chunk-RMDDCMKS.js";
  85. import {
  86. v2 as v
  87. } from "./chunk-VCH45Q2I.js";
  88. import {
  89. o,
  90. s as s2
  91. } from "./chunk-HZRKBTHJ.js";
  92. import {
  93. U
  94. } from "./chunk-DVUG3KID.js";
  95. import {
  96. o as o2,
  97. p,
  98. w,
  99. w2
  100. } from "./chunk-6T6G6LCQ.js";
  101. import {
  102. k2 as k,
  103. r as r2
  104. } from "./chunk-PQFTYGF5.js";
  105. import {
  106. e,
  107. l3 as l,
  108. n5 as n,
  109. t5 as t2,
  110. y3 as y2
  111. } from "./chunk-2Z2TG5CU.js";
  112. import {
  113. T
  114. } from "./chunk-SQOPWYIT.js";
  115. import {
  116. s3 as s
  117. } from "./chunk-E5O6P5I2.js";
  118. import {
  119. y
  120. } from "./chunk-SPWQ3AWG.js";
  121. import {
  122. e as e2,
  123. r,
  124. t
  125. } from "./chunk-YXWMMD76.js";
  126. // node_modules/@arcgis/core/renderers/FlowRenderer.js
  127. var c2;
  128. var d2 = new s2({ flow_from: "flow-from", flow_to: "flow-to" });
  129. var h2 = c2 = class extends y5(l) {
  130. constructor(o5) {
  131. super(o5), this.density = 0.8, this.color = new l2([255, 255, 255, 1]), this.maxPathLength = 200, this.trailWidth = 1.5, this.flowSpeed = 10, this.trailLength = 100, this.smoothing = 0, this.flowRepresentation = "flow-from", this.type = "flow", this.authoringInfo = null, this.legendOptions = null, this.trailCap = "butt", this.background = "none";
  132. }
  133. clone() {
  134. var _a, _b;
  135. const { density: o5, maxPathLength: t3, trailWidth: e3, flowSpeed: r4, trailLength: i5, smoothing: s4, flowRepresentation: n7, trailCap: p8, background: a5 } = this, l9 = this.color.clone(), m9 = (this.visualVariables || []).map((o6) => o6.clone()), d6 = (_a = this.authoringInfo) == null ? void 0 : _a.clone(), h5 = (_b = this.legendOptions) == null ? void 0 : _b.clone();
  136. return new c2({ density: o5, color: l9, maxPathLength: t3, trailWidth: e3, flowSpeed: r4, trailLength: i5, trailCap: p8, background: a5, smoothing: s4, flowRepresentation: n7, visualVariables: m9, authoringInfo: d6, legendOptions: h5 });
  137. }
  138. getSymbol(o5, t3) {
  139. }
  140. async getSymbolAsync(o5, t3) {
  141. }
  142. getSymbols() {
  143. return [];
  144. }
  145. };
  146. e([y2({ type: Number, json: { write: true } })], h2.prototype, "density", void 0), e([y2({ type: l2, json: { write: { allowNull: true } } })], h2.prototype, "color", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], h2.prototype, "maxPathLength", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], h2.prototype, "trailWidth", void 0), e([y2({ type: Number, json: { write: true } })], h2.prototype, "flowSpeed", void 0), e([y2({ type: Number, json: { write: true } })], h2.prototype, "trailLength", void 0), e([y2({ type: Number, cast: o3, json: { write: false } })], h2.prototype, "smoothing", void 0), e([y2({ type: d2.apiValues, json: { type: d2.jsonValues, read: { reader: d2.read }, write: { writer: d2.write } } })], h2.prototype, "flowRepresentation", void 0), e([r3({ flowRenderer: "flow" })], h2.prototype, "type", void 0), e([y2({ type: j, json: { write: true } })], h2.prototype, "authoringInfo", void 0), e([y2({ type: p3, json: { write: true } })], h2.prototype, "legendOptions", void 0), e([y2({ type: String, json: { write: true } })], h2.prototype, "trailCap", void 0), e([y2({ type: String, json: { write: true } })], h2.prototype, "background", void 0), h2 = c2 = e([n("esri.renderers.FlowRenderer")], h2);
  147. var u3 = h2;
  148. // node_modules/@arcgis/core/renderers/support/ColormapInfo.js
  149. var l4 = class extends l {
  150. constructor() {
  151. super(...arguments), this.value = null, this.label = null, this.color = null;
  152. }
  153. };
  154. e([y2({ type: Number, json: { write: true } })], l4.prototype, "value", void 0), e([y2({ type: String, json: { write: true } })], l4.prototype, "label", void 0), e([y2({ type: l2, json: { type: [T], write: true } })], l4.prototype, "color", void 0), l4 = e([n("esri.renderers.support.ColormapInfo")], l4);
  155. var c3 = l4;
  156. // node_modules/@arcgis/core/renderers/RasterColormapRenderer.js
  157. var c4;
  158. var m4 = c4 = class extends l {
  159. constructor(o5) {
  160. super(o5), this.colormapInfos = null, this.type = "raster-colormap";
  161. }
  162. static createFromColormap(o5, r4) {
  163. if (!o5)
  164. return null;
  165. const t3 = 5 === o5[0].length, e3 = [...o5].sort((o6) => o6[0][0] - o6[1][0]).map((o6) => {
  166. var _a;
  167. return c3.fromJSON({ value: o6[0], color: t3 ? o6.slice(1, 5) : o6.slice(1, 4).concat([255]), label: r4 ? (_a = r4[o6[0]]) != null ? _a : "" : o6[0] });
  168. });
  169. return new c4({ colormapInfos: e3 });
  170. }
  171. static createFromColorramp(o5) {
  172. const r4 = h(o5, 256);
  173. return c4.createFromColormap(r4);
  174. }
  175. clone() {
  176. return new c4({ colormapInfos: this.colormapInfos.map((o5) => o5.toJSON()) });
  177. }
  178. extractColormap() {
  179. return this.colormapInfos.map(({ value: o5, color: r4 }) => [o5, r4.r, r4.g, r4.b, r4.a > 1 ? r4.a : 255 * r4.a & 255]).sort((o5, r4) => o5[0] - r4[0]);
  180. }
  181. };
  182. e([y2({ type: [c3], json: { write: true } })], m4.prototype, "colormapInfos", void 0), e([r3({ rasterColormap: "raster-colormap" })], m4.prototype, "type", void 0), m4 = c4 = e([n("esri.renderers.RasterColormapRenderer")], m4);
  183. var l5 = m4;
  184. // node_modules/@arcgis/core/renderers/RasterShadedReliefRenderer.js
  185. var c5;
  186. var d3 = c5 = class extends l {
  187. constructor(e3) {
  188. super(e3), this.altitude = 45, this.azimuth = 315, this.colorRamp = null, this.hillshadeType = "traditional", this.pixelSizePower = 0.664, this.pixelSizeFactor = 0.024, this.scalingType = "none", this.type = "raster-shaded-relief", this.zFactor = 1;
  189. }
  190. readColorRamp(e3) {
  191. return p2(e3);
  192. }
  193. clone() {
  194. return new c5({ hillshadeType: this.hillshadeType, altitude: this.altitude, azimuth: this.azimuth, zFactor: this.zFactor, scalingType: this.scalingType, pixelSizeFactor: this.pixelSizeFactor, pixelSizePower: this.pixelSizePower, colorRamp: y(this.colorRamp) });
  195. }
  196. };
  197. e([y2({ type: Number, json: { write: true } })], d3.prototype, "altitude", void 0), e([y2({ type: Number, json: { write: true } })], d3.prototype, "azimuth", void 0), e([y2({ types: m, json: { write: true } })], d3.prototype, "colorRamp", void 0), e([o2("colorRamp")], d3.prototype, "readColorRamp", null), e([y2({ type: ["traditional", "multi-directional"], json: { write: true } })], d3.prototype, "hillshadeType", void 0), e([y2({ type: Number, json: { write: true } })], d3.prototype, "pixelSizePower", void 0), e([y2({ type: Number, json: { write: true } })], d3.prototype, "pixelSizeFactor", void 0), e([y2({ type: ["none", "adjusted"], json: { write: true } })], d3.prototype, "scalingType", void 0), e([r3({ rasterShadedRelief: "raster-shaded-relief" })], d3.prototype, "type", void 0), e([y2({ type: Number, json: { write: true } })], d3.prototype, "zFactor", void 0), d3 = c5 = e([n("esri.renderers.RasterShadedReliefRenderer")], d3);
  198. var m5 = d3;
  199. // node_modules/@arcgis/core/renderers/RasterStretchRenderer.js
  200. var d4;
  201. var h3 = d4 = class extends l {
  202. constructor(t3) {
  203. super(t3), this.colorRamp = null, this.computeGamma = false, this.dynamicRangeAdjustment = false, this.gamma = [], this.maxPercent = null, this.minPercent = null, this.numberOfStandardDeviations = null, this.outputMax = null, this.outputMin = null, this.sigmoidStrengthLevel = null, this.statistics = [], this.histograms = null, this.useGamma = false, this.stretchType = "none", this.type = "raster-stretch";
  204. }
  205. readColorRamp(t3) {
  206. if (t3)
  207. return p2(t3);
  208. }
  209. writeStatistics(t3, e3, r4) {
  210. (t3 == null ? void 0 : t3.length) && (Array.isArray(t3[0]) || (t3 = t3.map((t4) => [t4.min, t4.max, t4.avg, t4.stddev])), e3[r4] = t3);
  211. }
  212. readStretchType(t3, e3) {
  213. let r4 = e3.stretchType;
  214. return "number" == typeof r4 && (r4 = a3[r4]), n5.read(r4);
  215. }
  216. clone() {
  217. return new d4({ stretchType: this.stretchType, outputMin: this.outputMin, outputMax: this.outputMax, useGamma: this.useGamma, computeGamma: this.computeGamma, statistics: y(this.statistics), gamma: y(this.gamma), sigmoidStrengthLevel: this.sigmoidStrengthLevel, numberOfStandardDeviations: this.numberOfStandardDeviations, minPercent: this.minPercent, maxPercent: this.maxPercent, colorRamp: y(this.colorRamp), histograms: y(this.histograms), dynamicRangeAdjustment: this.dynamicRangeAdjustment });
  218. }
  219. };
  220. e([y2({ types: m, json: { write: true } })], h3.prototype, "colorRamp", void 0), e([o2("colorRamp")], h3.prototype, "readColorRamp", null), e([y2({ type: Boolean, json: { write: true } })], h3.prototype, "computeGamma", void 0), e([y2({ type: Boolean, json: { write: { target: "dra" }, read: { source: "dra" } } })], h3.prototype, "dynamicRangeAdjustment", void 0), e([y2({ type: [Number], json: { write: true } })], h3.prototype, "gamma", void 0), e([y2({ type: Number, json: { write: true } })], h3.prototype, "maxPercent", void 0), e([y2({ type: Number, json: { write: true } })], h3.prototype, "minPercent", void 0), e([y2({ type: Number, json: { write: true } })], h3.prototype, "numberOfStandardDeviations", void 0), e([y2({ type: Number, json: { read: { source: "max" }, write: { target: "max" } } })], h3.prototype, "outputMax", void 0), e([y2({ type: Number, json: { read: { source: "min" }, write: { target: "min" } } })], h3.prototype, "outputMin", void 0), e([y2({ type: Number, json: { write: true } })], h3.prototype, "sigmoidStrengthLevel", void 0), e([y2({ json: { type: [[Number]], write: true } })], h3.prototype, "statistics", void 0), e([y2()], h3.prototype, "histograms", void 0), e([r2("statistics")], h3.prototype, "writeStatistics", null), e([y2({ type: Boolean, json: { write: true } })], h3.prototype, "useGamma", void 0), e([y2({ type: n5.apiValues, json: { type: n5.jsonValues, write: n5.write } })], h3.prototype, "stretchType", void 0), e([o2("stretchType", ["stretchType"])], h3.prototype, "readStretchType", null), e([r3({ rasterStretch: "raster-stretch" })], h3.prototype, "type", void 0), h3 = d4 = e([n("esri.renderers.RasterStretchRenderer")], h3);
  221. var y6 = h3;
  222. // node_modules/@arcgis/core/renderers/VectorFieldRenderer.js
  223. var u4;
  224. var Z = /* @__PURE__ */ new Set(["esriMetersPerSecond", "esriKilometersPerHour", "esriKnots", "esriFeetPerSecond", "esriMilesPerHour"]);
  225. var b = new s2({ beaufort_ft: "beaufort-ft", beaufort_km: "beaufort-km", beaufort_kn: "beaufort-kn", beaufort_m: "beaufort-m", beaufort_mi: "beaufort-mi", classified_arrow: "classified-arrow", ocean_current_kn: "ocean-current-kn", ocean_current_m: "ocean-current-m", simple_scalar: "simple-scalar", single_arrow: "single-arrow", wind_speed: "wind-barb" });
  226. var h4 = new s2({ flow_from: "flow-from", flow_to: "flow-to" });
  227. var E = u4 = class extends y5(l) {
  228. constructor(e3) {
  229. super(e3), this.attributeField = "Magnitude", this.flowRepresentation = "flow-from", this.rotationType = "arithmetic", this.style = "single-arrow", this.symbolTileSize = 50, this.type = "vector-field";
  230. }
  231. readInputUnit(e3, M2) {
  232. return Z.has(e3) ? c.fromJSON(e3) : null;
  233. }
  234. readOutputUnit(e3, M2) {
  235. return Z.has(e3) ? c.fromJSON(e3) : null;
  236. }
  237. get styleRenderer() {
  238. const e3 = this.style, M2 = this.attributeField, i5 = this._createStyleRenderer(e3);
  239. return i5.field = M2, i5;
  240. }
  241. get sizeVariables() {
  242. const e3 = [];
  243. if (this.visualVariables)
  244. for (const M2 of this.visualVariables)
  245. "size" === M2.type && e3.push(M2);
  246. if (0 === e3.length) {
  247. const M2 = new j2({ field: "Magnitude", minSize: 0.2 * this.symbolTileSize, maxSize: 0.8 * this.symbolTileSize });
  248. this.visualVariables ? this.visualVariables.push(M2) : this._set("visualVariables", [M2]), e3.push(M2);
  249. }
  250. return e3;
  251. }
  252. get rotationVariables() {
  253. const e3 = [];
  254. if (this.visualVariables)
  255. for (const M2 of this.visualVariables)
  256. "rotation" === M2.type && e3.push(M2);
  257. if (0 === e3.length) {
  258. const M2 = new n3({ field: "Direction", rotationType: this.rotationType });
  259. this.visualVariables ? this.visualVariables.push(M2) : this._set("visualVariables", [M2]), e3.push(M2);
  260. }
  261. return e3;
  262. }
  263. clone() {
  264. return new u4({ attributeField: this.attributeField, flowRepresentation: this.flowRepresentation, rotationType: this.rotationType, symbolTileSize: this.symbolTileSize, style: this.style, visualVariables: y(this.visualVariables), inputUnit: this.inputUnit, outputUnit: this.outputUnit });
  265. }
  266. async getGraphicsFromPixelData(e3, M2 = false, t3 = []) {
  267. var _a;
  268. const a5 = new Array(), I2 = l3(this.inputUnit, this.outputUnit), o5 = ((_a = this.rotationVariables[0]) == null ? void 0 : _a.rotationType) || this.rotationType, A2 = M2 ? d(e3.pixelBlock, "vector-uv", o5, I2) : g3(e3.pixelBlock, "vector-magdir", I2);
  269. if (t(A2))
  270. return a5;
  271. const s4 = e3.extent, d6 = r(A2.mask) && A2.mask.length > 0;
  272. let n7 = 0;
  273. const y8 = (s4.xmax - s4.xmin) / A2.width, C2 = (s4.ymax - s4.ymin) / A2.height;
  274. for (let r4 = 0; r4 < A2.height; r4++)
  275. for (let e4 = 0; e4 < A2.width; e4++, n7++) {
  276. let M3 = new w({ x: s4.xmin + e4 * y8 + y8 / 2, y: s4.ymax - r4 * C2 - C2 / 2, spatialReference: s4.spatialReference });
  277. M3 = (await v3(M3))[0];
  278. const I3 = t3.some((e5) => e5.intersects(M3));
  279. if ((!d6 || A2.mask[n7]) && !I3) {
  280. const e5 = { Magnitude: A2.pixels[0][n7], Direction: A2.pixels[1][n7] }, t4 = new g({ geometry: { type: "point", x: M3.x, y: M3.y, spatialReference: s4.spatialReference }, attributes: e5 });
  281. t4.symbol = this._getVisualVariablesAppliedSymbol(t4), a5.push(t4);
  282. }
  283. }
  284. return a5;
  285. }
  286. getSymbol(e3, M2) {
  287. }
  288. async getSymbolAsync(e3, M2) {
  289. }
  290. getSymbols() {
  291. return [];
  292. }
  293. getClassBreakInfos() {
  294. var _a;
  295. return (_a = this.styleRenderer) == null ? void 0 : _a.classBreakInfos;
  296. }
  297. getDefaultSymbol() {
  298. var _a;
  299. return (_a = this.styleRenderer) == null ? void 0 : _a.defaultSymbol;
  300. }
  301. _getDefaultSymbol(e3) {
  302. return new y4({ path: "M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z", outline: new m2({ width: 0 }), size: 20, color: e3 || new l2([0, 92, 230]) });
  303. }
  304. _getVisualVariablesAppliedSymbol(e3) {
  305. var _a, _b;
  306. if (!e3)
  307. return;
  308. const M2 = (_b = (_a = this.styleRenderer) == null ? void 0 : _a.getSymbol(e3)) == null ? void 0 : _b.clone(), i5 = this.sizeVariables, t3 = this.rotationVariables;
  309. if (i5 && i5.length && this.sizeVariables.forEach((i6) => M(M2, T2([i6], e3))), t3 && t3.length) {
  310. const i6 = "flow-to" === this.flowRepresentation === ("ocean-current-kn" === this.style || "ocean-current-m" === this.style) ? 0 : 180;
  311. e3.attributes.Direction = e3.attributes.Direction + i6, this.rotationVariables.forEach((i7) => N(M2, m3(i7, e3), i7.axis));
  312. }
  313. return M2;
  314. }
  315. _createStyleRenderer(e3) {
  316. let M2 = { defaultSymbol: this._getDefaultSymbol(), classBreakInfos: [] };
  317. switch (e3) {
  318. case "single-arrow":
  319. M2 = this._createSingleArrowRenderer();
  320. break;
  321. case "beaufort-kn":
  322. M2 = this._createBeaufortKnotsRenderer();
  323. break;
  324. case "beaufort-m":
  325. M2 = this._createBeaufortMeterRenderer();
  326. break;
  327. case "beaufort-ft":
  328. M2 = this._createBeaufortFeetRenderer();
  329. break;
  330. case "beaufort-mi":
  331. M2 = this._createBeaufortMilesRenderer();
  332. break;
  333. case "beaufort-km":
  334. M2 = this._createBeaufortKilometersRenderer();
  335. break;
  336. case "ocean-current-m":
  337. M2 = this._createCurrentMeterRenderer();
  338. break;
  339. case "ocean-current-kn":
  340. M2 = this._createCurrentKnotsRenderer();
  341. break;
  342. case "simple-scalar":
  343. M2 = this._createSimpleScalarRenderer();
  344. break;
  345. case "wind-barb":
  346. M2 = this._createWindBarbsRenderer();
  347. break;
  348. case "classified-arrow":
  349. M2 = this._createClassifiedArrowRenderer();
  350. }
  351. return new _(M2);
  352. }
  353. _createSingleArrowRenderer() {
  354. return { defaultSymbol: this._getDefaultSymbol() };
  355. }
  356. _createBeaufortKnotsRenderer() {
  357. const e3 = [0, 1, 3, 6, 10, 16, 21, 27, 33, 40, 47, 55, 63], i5 = [[40, 146, 199], [89, 162, 186], [129, 179, 171], [160, 194, 155], [191, 212, 138], [218, 230, 119], [250, 250, 100], [252, 213, 83], [252, 179, 102], [250, 141, 52], [247, 110, 42], [240, 71, 29]];
  358. return { defaultSymbol: this._getDefaultSymbol(new l2([214, 47, 39])), classBreakInfos: this._getClassBreaks(e3, i5) };
  359. }
  360. _createBeaufortMeterRenderer() {
  361. const e3 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7], i5 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]];
  362. return { defaultSymbol: this._getDefaultSymbol(new l2([214, 47, 39])), classBreakInfos: this._getClassBreaks(e3, i5) };
  363. }
  364. _createBeaufortFeetRenderer() {
  365. const e3 = this._getDefaultSymbol(new l2([214, 47, 39]));
  366. let i5 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7];
  367. const t3 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]], a5 = 3.28084;
  368. i5 = i5.map((e4) => e4 * a5);
  369. return { defaultSymbol: e3, classBreakInfos: this._getClassBreaks(i5, t3) };
  370. }
  371. _createBeaufortMilesRenderer() {
  372. const e3 = this._getDefaultSymbol(new l2([214, 47, 39]));
  373. let i5 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7];
  374. const t3 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]], a5 = 2.23694;
  375. i5 = i5.map((e4) => e4 * a5);
  376. return { defaultSymbol: e3, classBreakInfos: this._getClassBreaks(i5, t3) };
  377. }
  378. _createBeaufortKilometersRenderer() {
  379. const e3 = this._getDefaultSymbol(new l2([214, 47, 39]));
  380. let i5 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7];
  381. const t3 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]], a5 = 3.6;
  382. i5 = i5.map((e4) => e4 * a5);
  383. return { defaultSymbol: e3, classBreakInfos: this._getClassBreaks(i5, t3) };
  384. }
  385. _createCurrentMeterRenderer() {
  386. const e3 = [0, 0.5, 1, 1.5, 2], i5 = [[78, 26, 153], [179, 27, 26], [202, 128, 26], [177, 177, 177]];
  387. return { defaultSymbol: this._getDefaultSymbol(new l2([177, 177, 177])), classBreakInfos: this._getClassBreaks(e3, i5) };
  388. }
  389. _createCurrentKnotsRenderer() {
  390. const e3 = [0, 0.25, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4], i5 = [[0, 0, 0], [0, 37, 100], [78, 26, 153], [151, 0, 100], [179, 27, 26], [177, 78, 26], [202, 128, 26], [177, 179, 52], [177, 177, 177]];
  391. return { defaultSymbol: this._getDefaultSymbol(new l2([177, 177, 177])), classBreakInfos: this._getClassBreaks(e3, i5) };
  392. }
  393. _createClassifiedArrowRenderer() {
  394. var _a;
  395. const e3 = this._getDefaultSymbol(new l2([56, 168, 0]));
  396. let i5 = [0, 1e-6, 3.5, 7, 10.5, 14];
  397. if ((_a = this.sizeVariables) == null ? void 0 : _a.length) {
  398. const e4 = this.sizeVariables[0].minDataValue, M2 = this.sizeVariables[0].maxDataValue;
  399. if (e4 && M2) {
  400. const t4 = (M2 - e4) / 5;
  401. i5 = Array.from(Array(6).keys()).map((M3) => e4 + t4 * M3);
  402. }
  403. }
  404. const t3 = [[56, 168, 0], [139, 309, 0], [255, 255, 0], [255, 128, 0], [255, 0, 0]];
  405. return { defaultSymbol: e3, classBreakInfos: this._getClassBreaks(i5, t3) };
  406. }
  407. _createSimpleScalarRenderer() {
  408. return { defaultSymbol: n2.fromJSON({ imageData: "iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=", height: 20, width: 20, type: "esriPMS", angle: 0 }) };
  409. }
  410. _createWindBarbsRenderer() {
  411. const e3 = Array.from(Array(31).keys()).map((e4) => 5 * e4), M2 = [{ range: "0-5", path: "M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "5-10", path: "M25 0 L25 40 M25 35 L17.5 37.5", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "10-15", path: "M25 0 L25 40 L10 45 L25 40", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "15-20", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "20-25", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "25-30", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "30-35", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "35-40", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "40-45", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "45-50", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "50-55", path: "M25 0 L25 40 L10 40 L25 35", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "55-60", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "60-65", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "65-70", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "70-75", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "75-80", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "80-85", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "85-90", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "90-95", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "95-100", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "100-105", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "105-110", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "110-115", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "115-120", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "120-125", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "125-130", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "130-135", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "135-140", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "140-145", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "145-150", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }], i5 = n2.fromJSON({ imageData: "iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC", height: 20, width: 20, type: "esriPMS", angle: 0 }), t3 = e3.map((t4, a5) => {
  412. let I2;
  413. if (a5 !== e3.length - 1)
  414. if (0 === a5)
  415. I2 = { minValue: t4, maxValue: e3[a5 + 1], symbol: i5 };
  416. else {
  417. const i6 = n2.fromJSON({ type: "esriPMS", imageData: M2[a5].imageData, contentType: "image/svg+xml", height: 32, width: 32, angle: 0 });
  418. I2 = { minValue: t4, maxValue: e3[a5 + 1], symbol: i6 };
  419. }
  420. return new a2(I2);
  421. });
  422. return { defaultSymbol: i5, classBreakInfos: t3 };
  423. }
  424. _getClassBreaks(e3, i5) {
  425. return i5.map((i6, t3) => new a2({ minValue: e3[t3], maxValue: e3[t3 + 1], symbol: this._getDefaultSymbol(new l2(i6)) }));
  426. }
  427. };
  428. e([y2({ type: String, json: { write: true } })], E.prototype, "attributeField", void 0), e([y2({ type: h4.apiValues, json: { type: h4.jsonValues, read: { reader: h4.read }, write: { writer: h4.write } } })], E.prototype, "flowRepresentation", void 0), e([y2({ type: ["geographic", "arithmetic"], json: { write: true } })], E.prototype, "rotationType", void 0), e([y2({ type: b.apiValues, json: { type: b.jsonValues, read: { reader: b.read }, write: { writer: b.write } } })], E.prototype, "style", void 0), e([y2({ json: { write: true } })], E.prototype, "symbolTileSize", void 0), e([y2({ type: c.apiValues, json: { type: c.jsonValues, write: { writer: c.write } } })], E.prototype, "inputUnit", void 0), e([o2("inputUnit")], E.prototype, "readInputUnit", null), e([y2({ type: c.apiValues, json: { type: c.jsonValues, read: { reader: c.read }, write: { writer: c.write } } })], E.prototype, "outputUnit", void 0), e([o2("outputUnit")], E.prototype, "readOutputUnit", null), e([r3({ vectorField: "vector-field" })], E.prototype, "type", void 0), e([y2({ type: _ })], E.prototype, "styleRenderer", null), e([y2({ type: j2 })], E.prototype, "sizeVariables", null), e([y2({ type: n3 })], E.prototype, "rotationVariables", null), E = u4 = e([n("esri.renderers.VectorFieldRenderer")], E);
  429. var x2 = E;
  430. // node_modules/@arcgis/core/rasterRenderers.js
  431. var l6 = { key: "type", base: null, typeMap: { "unique-value": C, "class-breaks": _, "raster-colormap": l5, "raster-stretch": y6, "vector-field": x2, "raster-shaded-relief": m5, flow: u3 } };
  432. var i3 = { ...l6, typeMap: { ...l6.typeMap } };
  433. delete i3.typeMap["vector-field"], delete i3.typeMap.flow;
  434. var f2 = { uniqueValue: C, classBreaks: _, rasterStretch: y6, rasterColormap: l5, vectorField: x2, rasterShadedRelief: m5, flowRenderer: u3 };
  435. function p5(e3) {
  436. return e3 && f2[e3.type] || null;
  437. }
  438. function u5(r4, s4) {
  439. if (!r4)
  440. return null;
  441. if ("classBreaks" === r4.type && r4.classificationMethod) {
  442. const e3 = r4.authoringInfo || { classificationMethod: "" };
  443. e3.classificationMethod = r4.classificationMethod, r4.authoringInfo = e3;
  444. }
  445. "vectorField" === r4.type && r4.visualVariables && !Array.isArray(r4.visualVariables) && (r4.visualVariables = [r4.visualVariables]);
  446. const t3 = p5(r4);
  447. if (t3) {
  448. const e3 = new t3();
  449. return e3.read(r4, s4), e3;
  450. }
  451. return s4 && s4.messages && r4 && s4.messages.push(new t2("renderer:unsupported", "Renderers of type '" + (r4.type || "unknown") + "' are not supported", { definition: r4, context: s4 })), null;
  452. }
  453. // node_modules/@arcgis/core/layers/support/rasterEnums.js
  454. var o4 = o()({ RSP_NearestNeighbor: "nearest", RSP_BilinearInterpolation: "bilinear", RSP_CubicConvolution: "cubic", RSP_Majority: "majority" });
  455. var i4 = o()({ esriNoDataMatchAny: "any", esriNoDataMatchAll: "all" });
  456. // node_modules/@arcgis/core/layers/support/RasterFunction.js
  457. var u6;
  458. var c6 = /* @__PURE__ */ new Set(["raster", "raster2", "dem", "fillraster"]);
  459. var p6 = /* @__PURE__ */ new Set(["rasters"]);
  460. var m6 = (t3) => t3 && t3.rasterFunction ? d5.fromJSON(t3) : t3;
  461. var f3 = (t3) => t3 && t3 instanceof d5 ? t3.toJSON() : t3;
  462. var l7 = (t3) => (t3 == null ? void 0 : t3.functionName) && !t3.declaredClass;
  463. var y7 = (t3) => l7(t3) ? new d5(t3) : t3;
  464. var F = (t3) => {
  465. if (null == t3)
  466. return null;
  467. t3 = y(t3);
  468. const r4 = {};
  469. for (const e3 of Object.keys(t3))
  470. c6.has(e3.toLowerCase()) ? r4[e3] = m6(t3[e3]) : p6.has(e3.toLowerCase()) && Array.isArray(t3[e3]) ? r4[e3] = t3[e3].map(m6) : r4[e3] = t3[e3];
  471. return r4;
  472. };
  473. var d5 = u6 = class extends l {
  474. constructor(t3) {
  475. super(t3), this.functionName = null, this.outputPixelType = "unknown", this.variableName = null, this.rasterFunctionDefinition = null;
  476. }
  477. set functionArguments(t3) {
  478. if (t3) {
  479. const r4 = Object.keys(t3);
  480. if (r4.some((r5) => c6.has(r5.toLowerCase()) && l7(t3[r5])) || r4.some((r5) => p6.has(r5.toLowerCase()) && Array.isArray(t3[r5]) && t3[r5].some((t4) => l7(t4)))) {
  481. t3 = y(t3);
  482. for (const e3 of r4)
  483. c6.has(e3.toLowerCase()) ? t3[e3] = y7(t3[e3]) : p6.has(e3.toLowerCase()) && Array.isArray(t3[e3]) && (t3[e3] = t3[e3].map((t4) => y7(t4)));
  484. }
  485. }
  486. this._set("functionArguments", t3);
  487. }
  488. readFunctionArguments(t3) {
  489. return F(t3);
  490. }
  491. writeFunctionArguments(t3, r4, e3) {
  492. const o5 = {};
  493. for (const n7 of Object.keys(t3))
  494. c6.has(n7.toLowerCase()) ? o5[n7] = f3(t3[n7]) : p6.has(n7.toLowerCase()) && Array.isArray(t3[n7]) ? o5[n7] = t3[n7].map(f3) : o5[n7] = f3(t3[n7]);
  495. r4[e3] = o5;
  496. }
  497. readFunctionName(t3, r4) {
  498. const e3 = r4.rasterFunctionInfos, o5 = r4.name;
  499. return o5 || (e3 && e3.length && "None" !== e3[0].name ? e3[0].name : r4.rasterFunctionDefinition ? r4.rasterFunctionDefinition.name : r4.rasterFunction);
  500. }
  501. clone() {
  502. return new u6({ functionName: this.functionName, functionArguments: y(this.functionArguments), outputPixelType: this.outputPixelType, variableName: this.variableName, rasterFunctionDefinition: y(this.rasterFunctionDefinition) });
  503. }
  504. };
  505. e([y2({ json: { type: Object, name: "rasterFunctionArguments" } })], d5.prototype, "functionArguments", null), e([o2("functionArguments")], d5.prototype, "readFunctionArguments", null), e([r2("functionArguments")], d5.prototype, "writeFunctionArguments", null), e([y2({ json: { type: String, write: { target: "rasterFunction" } } })], d5.prototype, "functionName", void 0), e([o2("functionName", ["rasterFunction", "rasterFunctionInfos", "rasterFunctionDefinition"])], d5.prototype, "readFunctionName", null), e([r3({ C128: "c128", C64: "c64", F32: "f32", F64: "f64", S16: "s16", S32: "s32", S8: "s8", U1: "u1", U16: "u16", U2: "u2", U32: "u32", U4: "u4", U8: "u8", UNKNOWN: "unknown" }, { ignoreUnknown: false }), y2({ json: { default: "unknown" } })], d5.prototype, "outputPixelType", void 0), e([y2({ type: String, json: { read: true, write: true } })], d5.prototype, "variableName", void 0), e([y2({ type: Object, json: { name: "rasterFunctionDefinition" } })], d5.prototype, "rasterFunctionDefinition", void 0), d5 = u6 = e([n("esri.layers.support.RasterFunction")], d5);
  506. var w3 = d5;
  507. // node_modules/@arcgis/core/layers/support/MultidimensionalSubset.js
  508. var p7;
  509. var m7 = { base: p, key: "type", typeMap: { extent: w2, polygon: v } };
  510. var u7 = p7 = class extends l {
  511. constructor(e3) {
  512. super(e3), this.areaOfInterest = null, this.subsetDefinitions = null;
  513. }
  514. get dimensions() {
  515. const { subsetDefinitions: e3 } = this;
  516. if (null == e3 || 0 === e3.length)
  517. return [];
  518. const t3 = /* @__PURE__ */ new Map();
  519. e3.forEach((e4) => {
  520. if (!e4.dimensionName)
  521. return;
  522. let s5, r4;
  523. if (Array.isArray(e4.values[0])) {
  524. const t4 = e4.values;
  525. s5 = t4[0][0], r4 = t4[e4.values.length - 1][1];
  526. } else {
  527. const t4 = e4.values;
  528. s5 = t4[0], r4 = t4[e4.values.length - 1];
  529. }
  530. if (t3.has(e4.dimensionName)) {
  531. const o5 = t3.get(e4.dimensionName);
  532. o5[0] = Math.min(s5, o5[0]), o5[1] = Math.max(r4, o5[1]);
  533. } else
  534. t3.set(e4.dimensionName, [s5, r4]);
  535. });
  536. const s4 = [];
  537. for (const r4 of t3)
  538. s4.push({ name: r4[0], extent: r4[1] });
  539. return s4;
  540. }
  541. get variables() {
  542. const { subsetDefinitions: e3 } = this;
  543. if (null == e3 || 0 === e3.length)
  544. return [];
  545. const t3 = /* @__PURE__ */ new Set();
  546. return e3.forEach((e4) => {
  547. e4.variableName && t3.add(e4.variableName);
  548. }), [...t3];
  549. }
  550. clone() {
  551. var _a;
  552. const e3 = (_a = this.subsetDefinitions) == null ? void 0 : _a.map((e4) => e4.clone()), t3 = this.areaOfInterest ? this.areaOfInterest.clone() : this.areaOfInterest;
  553. return new p7({ areaOfInterest: t3, subsetDefinitions: e3 });
  554. }
  555. };
  556. e([y2({ types: m7, json: { read: v2, write: true } })], u7.prototype, "areaOfInterest", void 0), e([y2({ readOnly: true })], u7.prototype, "dimensions", null), e([y2({ readOnly: true })], u7.prototype, "variables", null), e([y2({ type: [p4], json: { write: true } })], u7.prototype, "subsetDefinitions", void 0), u7 = p7 = e([n("esri.layers.support.MultidimensionalSubset")], u7);
  557. var c7 = u7;
  558. // node_modules/@arcgis/core/layers/support/RasterJobHandler.js
  559. var n6 = class {
  560. constructor() {
  561. this._workerThread = null, this._destroyed = false;
  562. }
  563. async initialize() {
  564. const e3 = await u2("RasterWorker");
  565. this._destroyed ? e3.close() : this._workerThread = e3;
  566. }
  567. destroy() {
  568. this._destroyed = true, this._workerThread && (this._workerThread.close(), this._workerThread = null);
  569. }
  570. async convertVectorFieldData(r4, o5) {
  571. if (!this._workerThread)
  572. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  573. const n7 = await this._workerThread.invoke("convertVectorFieldData", { pixelBlock: r4.pixelBlock.toJSON(), type: r4.dataType }, o5);
  574. return n7 ? new g2(n7) : null;
  575. }
  576. async decode(r4, o5) {
  577. if (!this._workerThread)
  578. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  579. const n7 = await this._workerThread.invoke("decode", r4, o5);
  580. return n7 ? new g2(n7) : null;
  581. }
  582. async symbolize(o5, n7) {
  583. if (!this._workerThread)
  584. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  585. const a5 = { extent: o5.extent && o5.extent.toJSON(), pixelBlock: r(o5.pixelBlock) && o5.pixelBlock.toJSON(), simpleStretchParams: o5.simpleStretchParams, bandIds: o5.bandIds }, i5 = await this._workerThread.invoke("symbolize", a5, n7);
  586. return i5 ? new g2(i5) : null;
  587. }
  588. async updateSymbolizer(r4, o5) {
  589. var _a;
  590. if (!this._workerThread)
  591. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  592. const t3 = (_a = r4 == null ? void 0 : r4.rendererJSON) == null ? void 0 : _a.histograms;
  593. await Promise.all(this._workerThread.broadcast("updateSymbolizer", { symbolizerJSON: r4.toJSON(), histograms: t3 }, o5));
  594. }
  595. async updateRasterFunction(r4, o5) {
  596. if (!this._workerThread)
  597. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  598. await Promise.all(this._workerThread.broadcast("updateRasterFunction", { rasterFunctionJSON: r4.toJSON() }, o5));
  599. }
  600. async process(o5, n7) {
  601. var _a;
  602. if (!this._workerThread)
  603. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  604. const a5 = await this._workerThread.invoke("process", { extent: (_a = o5.extent) == null ? void 0 : _a.toJSON(), primaryPixelBlocks: o5.primaryPixelBlocks.map((e3) => r(e3) ? e3.toJSON() : null), primaryRasterIds: o5.primaryRasterIds }, n7);
  605. return a5 ? new g2(a5) : null;
  606. }
  607. async stretch(r4, o5) {
  608. if (!this._workerThread)
  609. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  610. if (!(r4 == null ? void 0 : r4.pixelBlock))
  611. return null;
  612. const n7 = { srcPixelBlock: r4.pixelBlock.toJSON(), stretchParams: r4.stretchParams }, a5 = await this._workerThread.invoke("stretch", n7, o5);
  613. return a5 ? new g2(a5) : null;
  614. }
  615. async split(r4, o5) {
  616. if (!this._workerThread)
  617. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  618. if (!(r4 == null ? void 0 : r4.pixelBlock))
  619. return null;
  620. const n7 = { srcPixelBlock: r4.pixelBlock.toJSON(), tileSize: r4.tileSize, maximumPyramidLevel: r4.maximumPyramidLevel }, a5 = await this._workerThread.invoke("split", n7, o5);
  621. return a5 && a5.forEach((e3, r5) => {
  622. a5.set(r5, e3 ? g2.fromJSON(e3) : null);
  623. }), a5;
  624. }
  625. async estimateStatisticsHistograms(r4, o5) {
  626. if (!this._workerThread)
  627. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  628. if (!(r4 == null ? void 0 : r4.pixelBlock))
  629. return null;
  630. const t3 = { srcPixelBlock: r4.pixelBlock.toJSON() };
  631. return await this._workerThread.invoke("estimateStatisticsHistograms", t3, o5);
  632. }
  633. async mosaicAndTransform(o5, n7) {
  634. var _a;
  635. if (!this._workerThread)
  636. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  637. if (!((_a = o5 == null ? void 0 : o5.srcPixelBlocks) == null ? void 0 : _a.length))
  638. return { pixelBlock: null };
  639. const a5 = { ...o5, srcPixelBlocks: o5.srcPixelBlocks.map((e3) => r(e3) ? e3.toJSON() : null) }, i5 = await this._workerThread.invoke("mosaicAndTransform", a5, n7);
  640. return { pixelBlock: i5.pixelBlock ? new g2(i5.pixelBlock) : null, localNorthDirections: i5.localNorthDirections };
  641. }
  642. async createFlowMesh(r4, o5) {
  643. if (!this._workerThread)
  644. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  645. const t3 = { buffer: r4.flowData.data.buffer, maskBuffer: r4.flowData.mask.buffer, width: r4.flowData.width, height: r4.flowData.height }, { meshType: n7, simulationSettings: a5 } = r4, i5 = await this._workerThread.invoke("createFlowMesh", { meshType: n7, flowData: t3, simulationSettings: a5 }, { ...o5, transferList: [t3.buffer, t3.maskBuffer] });
  646. return { vertexData: new Float32Array(i5.vertexBuffer), indexData: new Uint32Array(i5.indexBuffer) };
  647. }
  648. getProjectionOffsetGrid(o5, t3) {
  649. if (!this._workerThread)
  650. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  651. const n7 = r(o5.datumTransformation) ? o5.datumTransformation.steps.map((e3) => ({ wkid: e3.wkid, wkt: e3.wkt, isInverse: e3.isInverse })) : null, a5 = r(o5.rasterTransform) ? o5.rasterTransform.toJSON() : null, i5 = { projectedExtent: o5.projectedExtent.toJSON(), srcBufferExtent: o5.srcBufferExtent.toJSON(), pixelSize: o5.pixelSize, hasWrapAround: o5.hasWrapAround, spacing: o5.spacing, datumTransformationSteps: n7, rasterTransform: a5, isAdaptive: o5.isAdaptive, includeGCSGrid: o5.includeGCSGrid };
  652. return this._workerThread.invoke("getProjectionOffsetGrid", i5, t3);
  653. }
  654. };
  655. // node_modules/@arcgis/core/renderers/support/rasterRendererHelper.js
  656. var w4 = 0.25;
  657. var x3 = a.fromJSON({ type: "multipart", colorRamps: [{ fromColor: [0, 0, 255], toColor: [0, 255, 255] }, { fromColor: [0, 255, 255], toColor: [255, 255, 0] }, { fromColor: [255, 255, 0], toColor: [255, 0, 0] }] });
  658. var T3 = a.fromJSON(i2[0]);
  659. var R = /* @__PURE__ */ new Set(["scientific", "standard-time", "vector-uv", "vector-magdir", "vector-u", "vector-v", "vector-magnitude", "vector-direction"]);
  660. function j3(e3, n7) {
  661. const { attributeTable: a5, colormap: r4 } = e3;
  662. if (K(e3)) {
  663. const n8 = Y(e3);
  664. if (r(n8))
  665. return n8;
  666. }
  667. if (r(r4)) {
  668. const n8 = U2(e3);
  669. if (r(n8))
  670. return n8;
  671. }
  672. if (r(a5)) {
  673. const n8 = F2(e3);
  674. if (r(n8))
  675. return n8;
  676. }
  677. return I(e3, n7);
  678. }
  679. function k2(e3, t3 = false) {
  680. const n7 = ["raster-stretch"];
  681. return O(e3) && n7.push("raster-colormap"), W(e3) && n7.push("unique-value"), J(e3, t3) && n7.push("class-breaks"), A(e3) && n7.push("raster-shaded-relief"), K(e3) && n7.push("vector-field"), Q(e3) && n7.push("flow"), n7;
  682. }
  683. function V(e3, t3, n7) {
  684. const a5 = ["nearest", "bilinear", "cubic", "majority"].find((e4) => e4 === (n7 == null ? void 0 : n7.toLowerCase()));
  685. if ("Map" === t3)
  686. return a5 != null ? a5 : "bilinear";
  687. if ("standard-time" === e3.dataType)
  688. return a5 != null ? a5 : "nearest";
  689. return "thematic" === e3.dataType || e3.attributeTable || e3.colormap ? "nearest" === a5 || "majority" === a5 ? a5 : "nearest" : a5 != null ? a5 : "bilinear";
  690. }
  691. function I(e3, a5) {
  692. e3 = S(e3, a5 == null ? void 0 : a5.variableName);
  693. const { bandCount: r4 } = e3;
  694. let { bandIds: s4, stretchType: i5 } = a5 || {};
  695. (s4 == null ? void 0 : s4.some((e4) => e4 >= r4)) && (s4 = null);
  696. let o5 = e2(e3.statistics), l9 = e2(e3.histograms);
  697. r4 > 1 ? (s4 = (s4 == null ? void 0 : s4.length) ? s4 : L(e3), o5 = null == o5 ? null : s4 == null ? void 0 : s4.map((e4) => o5[e4]), l9 = null == l9 ? null : s4 == null ? void 0 : s4.map((e4) => l9[e4])) : s4 = [0], null == i5 && (i5 = q(e3));
  698. let u9 = false;
  699. switch (i5) {
  700. case "none":
  701. u9 = false;
  702. break;
  703. case "percent-clip":
  704. u9 = !(l9 == null ? void 0 : l9.length);
  705. break;
  706. default:
  707. u9 = !(o5 == null ? void 0 : o5.length);
  708. }
  709. const { dataType: c8 } = e3, m9 = 1 === (s4 == null ? void 0 : s4.length) && R.has(c8) ? x3 : null, f5 = new y6({ stretchType: i5, dynamicRangeAdjustment: u9, colorRamp: m9, outputMin: 0, outputMax: 255, gamma: 1 === (s4 == null ? void 0 : s4.length) ? [1] : [1, 1, 1], useGamma: false });
  710. return "percent-clip" === i5 ? f5.maxPercent = f5.minPercent = w4 : "standard-deviation" === i5 && (f5.numberOfStandardDeviations = 2), u9 || !r(e3.multidimensionalInfo) && !(a5 == null ? void 0 : a5.includeStatisticsInStretch) || ("percent-clip" === i5 ? f5.histograms = l9 : "min-max" !== i5 && "standard-deviation" !== i5 || (f5.statistics = o5)), f5;
  711. }
  712. function S(e3, a5) {
  713. if (null == a5)
  714. return e3;
  715. let r4 = e2(e3.statistics), s4 = e2(e3.histograms);
  716. const { multidimensionalInfo: o5 } = e3;
  717. if (a5 && r(o5)) {
  718. const e4 = o5.variables.find((e5) => e5.name === a5);
  719. if (e4) {
  720. const { statistics: t3, histograms: n7 } = e4;
  721. (t3 == null ? void 0 : t3.length) && (r4 = t3), (n7 == null ? void 0 : n7.length) && (s4 = n7);
  722. }
  723. }
  724. return u.fromJSON({ ...e3.toJSON(), statistics: r4, histograms: s4 });
  725. }
  726. function L(e3) {
  727. const t3 = e3.bandCount;
  728. if (1 === t3)
  729. return null;
  730. if (2 === t3)
  731. return [0];
  732. const n7 = e3.keyProperties && e3.keyProperties.BandProperties;
  733. let a5;
  734. if (n7 && n7.length === t3) {
  735. const { red: e4, green: t4, blue: r4, nir: s4 } = E2(n7);
  736. null != e4 && null != t4 && null != r4 ? a5 = [e4, t4, r4] : null != s4 && null != e4 && null != t4 && (a5 = [s4, e4, t4]);
  737. }
  738. return !a5 && t3 >= 3 && (a5 = [0, 1, 2]), a5;
  739. }
  740. function E2(e3) {
  741. var _a;
  742. const t3 = {};
  743. for (let n7 = 0; n7 < e3.length; n7++) {
  744. const a5 = e3[n7], r4 = (_a = a5.BandName) == null ? void 0 : _a.toLowerCase();
  745. if ("red" === r4)
  746. t3.red = n7;
  747. else if ("green" === r4)
  748. t3.green = n7;
  749. else if ("blue" === r4)
  750. t3.blue = n7;
  751. else if ("nearinfrared" === r4 || "nearinfrared_1" === r4 || "nir" === r4)
  752. t3.nir = n7;
  753. else if (a5.WavelengthMax && a5.WavelengthMin) {
  754. const e4 = a5.WavelengthMin, r5 = a5.WavelengthMax;
  755. null == t3.blue && e4 >= 410 && e4 <= 480 && r5 >= 480 && r5 <= 540 ? t3.blue = n7 : null == t3.green && e4 >= 490 && e4 <= 560 && r5 >= 560 && r5 <= 610 ? t3.green = n7 : null == t3.red && e4 >= 595 && e4 <= 670 && r5 >= 660 && r5 <= 730 ? t3.red = n7 : null == t3.nir && e4 >= 700 && e4 <= 860 && r5 >= 800 && r5 <= 950 && (t3.nir = n7);
  756. }
  757. }
  758. return t3;
  759. }
  760. function q(e3) {
  761. let n7 = "percent-clip";
  762. const { pixelType: a5, dataType: r4, histograms: s4, statistics: i5 } = e3;
  763. return "u8" !== a5 || "processed" !== r4 && r(s4) && r(i5) ? "u8" === a5 || "elevation" === r4 || R.has(r4) ? n7 = "min-max" : r(s4) ? n7 = "percent-clip" : r(i5) && (n7 = "min-max") : n7 = "none", n7;
  764. }
  765. function F2(n7, a5, r4, s4) {
  766. if (!W(n7, a5))
  767. return null;
  768. const { attributeTable: i5, statistics: o5 } = n7, u9 = N2(i5, a5), c8 = z(i5, "red"), p8 = z(i5, "green"), d6 = z(i5, "blue"), b2 = new j(), h5 = [], g4 = /* @__PURE__ */ new Set(), v4 = !!(c8 && p8 && d6);
  769. if (r(i5))
  770. i5.features.forEach((t3) => {
  771. const n8 = t3.attributes[u9.name];
  772. if (!g4.has(t3.attributes[u9.name]) && null != n8) {
  773. g4.add(n8);
  774. const a6 = v4 && ("single" === c8.type || "double" === c8.type) && ("single" === p8.type || "double" === p8.type) && ("single" === d6.type || "double" === d6.type) && !i5.features.some((e3) => e3.attributes[c8.name] > 1 || e3.attributes[p8.name] > 1 || e3.attributes[d6.name] > 1), r5 = a6 ? 255 : 1;
  775. h5.push(new n4({ value: t3.attributes[u9.name], label: t3.attributes[u9.name] + "", symbol: { type: "simple-fill", style: "solid", outline: null, color: new l2(v4 ? [t3.attributes[c8.name] * r5, t3.attributes[p8.name] * r5, t3.attributes[d6.name] * r5, 1] : [0, 0, 0, 0]) } }));
  776. }
  777. });
  778. else if (o5 == null ? void 0 : o5[0])
  779. for (let t3 = o5[0].min; t3 <= o5[0].max; t3++)
  780. h5.push(new n4({ value: t3, label: t3.toString(), symbol: { type: "simple-fill", style: "solid", outline: null, color: new l2([0, 0, 0, 0]) } }));
  781. if (h5.sort((e3, t3) => e3.value && "string" == typeof e3.value.valueOf() ? 0 : e3.value > t3.value ? 1 : -1), !v4) {
  782. const t3 = h(T3, h5.length);
  783. h5.forEach((n8, a6) => n8.symbol.color = new l2(t3[a6].slice(1, 4))), b2.colorRamp = T3;
  784. }
  785. if (r4 || s4) {
  786. const t3 = r4 || h(s4, h5.length).map((e3) => e3.slice(1));
  787. h5.forEach((n8, a6) => n8.symbol.color = new l2(t3[a6])), b2.colorRamp = s4;
  788. }
  789. return new C({ field: u9.name, uniqueValueInfos: h5, authoringInfo: b2 });
  790. }
  791. function N2(e3, n7, a5) {
  792. let r4;
  793. return r(e3) ? (r4 = n7 ? e3.fields.find((e4) => n7.toLowerCase() === e4.name.toLowerCase()) : P(e3.fields), r4 || (a5 || (r4 = e3.fields.find((e4) => "string" === e4.type)), r4 || (r4 = z(e3, "value")))) : r4 = new y3({ name: "value" }), r4;
  794. }
  795. function P(e3) {
  796. let t3;
  797. for (let n7 = 0; n7 < e3.length; n7++) {
  798. const a5 = e3[n7].name.toLowerCase();
  799. if ("string" === e3[n7].type) {
  800. if (a5.startsWith("class")) {
  801. t3 = e3[n7];
  802. break;
  803. }
  804. null == t3 && (a5.endsWith("name") || a5.endsWith("type")) && (t3 = e3[n7]);
  805. }
  806. }
  807. return t3;
  808. }
  809. function z(e3, t3) {
  810. return t(e3) ? null : e3.fields.find((e4) => e4.name.toLowerCase() === t3);
  811. }
  812. function W(e3, t3) {
  813. const { attributeTable: n7, bandCount: r4 } = e3;
  814. if (t(n7) && H(e3))
  815. return true;
  816. if (t(n7) || r4 > 1)
  817. return false;
  818. if (t3) {
  819. if (null == n7.fields.find((e4) => e4.name.toLowerCase() === t3.toLowerCase()))
  820. return false;
  821. }
  822. return true;
  823. }
  824. function O(e3) {
  825. const { bandCount: n7, colormap: a5 } = e3;
  826. return r(a5) && a5.length > 0 && 1 === n7;
  827. }
  828. function U2(e3) {
  829. if (!O(e3))
  830. return null;
  831. let a5;
  832. const { attributeTable: r4, colormap: s4 } = e3;
  833. if (r(r4)) {
  834. const e4 = z(r4, "value"), t3 = N2(r4, null, true);
  835. "string" === t3.type && (a5 = {}, r4.features.forEach((n7) => {
  836. const r5 = n7.attributes;
  837. a5[r5[e4.name]] = t3 ? r5[t3.name] : r5[e4.name];
  838. }));
  839. }
  840. return l5.createFromColormap(e2(s4), a5);
  841. }
  842. function A(e3) {
  843. const { bandCount: t3, dataType: n7, pixelType: a5 } = e3;
  844. return "elevation" === n7 || "generic" === n7 && 1 === t3 && ("s16" === a5 || "s32" === a5 || "f32" === a5 || "f64" === a5);
  845. }
  846. function J(e3, n7 = false) {
  847. const { attributeTable: a5, bandCount: r4 } = e3;
  848. return 1 === r4 && (!n7 || r(a5) || r(e3.histograms));
  849. }
  850. function H(e3) {
  851. var _a, _b, _c;
  852. return ["u8", "s8"].includes(e3.pixelType) && null != ((_b = (_a = e3.statistics) == null ? void 0 : _a[0]) == null ? void 0 : _b.min) && null != ((_c = e3.statistics[0]) == null ? void 0 : _c.max) && 1 === e3.bandCount;
  853. }
  854. function K(e3) {
  855. const { dataType: t3 } = e3;
  856. return "vector-uv" === t3 || "vector-magdir" === t3;
  857. }
  858. function Q(e3) {
  859. const { dataType: t3 } = e3;
  860. return "vector-uv" === t3 || "vector-magdir" === t3;
  861. }
  862. var X = /* @__PURE__ */ new Map([["m/s", "meter-per-second"], ["km/h", "kilometer-per-hour"], ["knots", "knots"], ["ft/s", "feet-per-second"], ["mph", "mile-per-hour"]]);
  863. function Y(e3) {
  864. if (!K(e3))
  865. return null;
  866. let n7;
  867. if (r(e3.statistics) && e3.statistics.length && ("vector-magdir" === e3.dataType || "vector-uv" === e3.dataType)) {
  868. const { minMagnitude: t3, maxMagnitude: a6 } = te(e3.dataType, e3.statistics);
  869. n7 = [{ type: "size", field: "Magnitude", minSize: 10, maxSize: 40, minDataValue: t3, maxDataValue: a6 }];
  870. }
  871. const a5 = r(e3.multidimensionalInfo) ? X.get(e3.multidimensionalInfo.variables[0].unit) : null, r4 = new x2({ visualVariables: n7, inputUnit: a5, rotationType: "geographic" });
  872. return r4.visualVariables = [...r4.sizeVariables, ...r4.rotationVariables], r4;
  873. }
  874. function Z2(e3) {
  875. var _a;
  876. return { color: (_a = e3.symbolLayers[0].material) == null ? void 0 : _a.color, type: "esriSFS", style: "esriSFSSolid" };
  877. }
  878. function $2(e3) {
  879. var _a, _b, _c;
  880. if ("uniqueValue" === e3.type) {
  881. const t3 = e3.uniqueValueInfos, n7 = t3 == null ? void 0 : t3[0].symbol;
  882. return ((_a = n7 == null ? void 0 : n7.symbolLayers) == null ? void 0 : _a.length) && (e3.uniqueValueInfos = t3 == null ? void 0 : t3.map((e4) => ({ value: e4.value, label: e4.label, symbol: e4.symbol ? Z2(e4.symbol) : null }))), e3;
  883. }
  884. if ("classBreaks" === e3.type) {
  885. const t3 = e3.classBreakInfos;
  886. return ((_c = (_b = t3[0].symbol) == null ? void 0 : _b.symbolLayers) == null ? void 0 : _c.length) && (e3.classBreakInfos = t3.map((e4) => ({ classMinValue: e4.classMinValue, classMaxValue: e4.classMaxValue, label: e4.label, symbol: e4.symbol ? Z2(e4.symbol) : null }))), e3;
  887. }
  888. return e3;
  889. }
  890. function te(e3, t3) {
  891. let n7, a5;
  892. if ("vector-magdir" === e3)
  893. n7 = t3[0].min, a5 = t3[0].max;
  894. else {
  895. const e4 = t3[0].min, r4 = t3[0].max, s4 = t3[1].min, i5 = t3[1].max;
  896. n7 = 0, a5 = Math.max(Math.abs(e4), Math.abs(s4), Math.abs(r4), Math.abs(i5));
  897. }
  898. return { minMagnitude: n7, maxMagnitude: a5 };
  899. }
  900. // node_modules/@arcgis/core/rest/imageService/fetchRasterInfo.js
  901. async function u8(u9, m9, f5) {
  902. var _a, _b, _c, _d, _e, _f, _g;
  903. const p8 = f(u9), { renderingRule: c8, sourceJSON: d6 } = m9 || {}, h5 = c8 ? JSON.stringify(c8.rasterFunctionDefinition || c8) : null, g4 = s3({ ...p8.query, renderingRule: h5, f: "json" }), v4 = i(g4, f5);
  904. u9 = p8.path;
  905. const y8 = d6 || await U(u9, v4).then((e3) => e3.data), S2 = y8.hasRasterAttributeTable ? U(`${u9}/rasterAttributeTable`, v4) : null, V2 = y8.hasColormap ? U(`${u9}/colormap`, v4) : null, x4 = y8.hasHistograms ? U(`${u9}/histograms`, v4) : null, b2 = y8.currentVersion >= 10.3 ? U(`${u9}/keyProperties`, v4) : null, D = y8.hasMultidimensions ? U(`${u9}/multidimensionalInfo`, v4) : null, R2 = await Promise.allSettled([S2, V2, x4, b2, D]);
  906. let T4 = null;
  907. if (y8.minValues && y8.minValues.length === y8.bandCount) {
  908. T4 = [];
  909. for (let e3 = 0; e3 < y8.minValues.length; e3++)
  910. T4.push({ min: y8.minValues[e3], max: y8.maxValues[e3], avg: y8.meanValues[e3], stddev: y8.stdvValues[e3] });
  911. }
  912. const j4 = w2.fromJSON(y8.extent), w5 = Math.ceil(j4.width / y8.pixelSizeX - 0.1), J2 = Math.ceil(j4.height / y8.pixelSizeY - 0.1), N3 = k.fromJSON(y8.spatialReference || y8.extent.spatialReference), O2 = "fulfilled" === R2[0].status && R2[0].value ? x.fromJSON(R2[0].value.data) : null, I2 = "fulfilled" === R2[1].status ? (_a = R2[1].value) == null ? void 0 : _a.data.colormap : null, z2 = "fulfilled" === R2[2].status ? (_b = R2[2].value) == null ? void 0 : _b.data.histograms : null, C2 = "fulfilled" === R2[3].status ? (_d = (_c = R2[3].value) == null ? void 0 : _c.data) != null ? _d : {} : {}, $3 = "fulfilled" === R2[4].status ? (_e = R2[4].value) == null ? void 0 : _e.data.multidimensionalInfo : null;
  913. ((_f = $3 == null ? void 0 : $3.variables) == null ? void 0 : _f.length) && $3.variables.forEach((e3) => {
  914. var _a2;
  915. ((_a2 = e3.statistics) == null ? void 0 : _a2.length) && e3.statistics.forEach((e4) => {
  916. e4.avg = e4.mean, e4.stddev = e4.standardDeviation;
  917. });
  918. });
  919. const { defaultVariable: P2, serviceDataType: E3 } = y8;
  920. P2 && P2 !== C2.DefaultVariable && (C2.DefaultVariable = P2), E3 && E3.includes("esriImageServiceDataTypeVector") && !E3.includes(C2.DataType) && (C2.DataType = E3.replace("esriImageServiceDataType", ""));
  921. let M2 = y8.noDataValue;
  922. return ((_g = y8.noDataValues) == null ? void 0 : _g.length) && y8.noDataValues.some((e3) => e3 !== M2) && (M2 = y8.noDataValues), new u({ width: w5, height: J2, bandCount: y8.bandCount, extent: w2.fromJSON(y8.extent), spatialReference: N3, pixelSize: new w({ x: y8.pixelSizeX, y: y8.pixelSizeY, spatialReference: N3 }), pixelType: y8.pixelType.toLowerCase(), statistics: T4, attributeTable: O2, colormap: I2, histograms: z2, keyProperties: C2, noDataValue: M2, multidimensionalInfo: $3 });
  923. }
  924. function m8(e3, t3, a5) {
  925. return u8(e3, { sourceJSON: t3 }, a5);
  926. }
  927. function f4(e3, t3, a5) {
  928. return u8(e3, { renderingRule: t3 }, a5);
  929. }
  930. export {
  931. l6 as l,
  932. i3 as i,
  933. u5 as u,
  934. w3 as w,
  935. o4 as o,
  936. i4 as i2,
  937. c7 as c,
  938. n6 as n,
  939. j3 as j,
  940. k2 as k,
  941. V,
  942. L,
  943. $2 as $,
  944. m8 as m,
  945. f4 as f
  946. };
  947. //# sourceMappingURL=chunk-F3LA3K3M.js.map