chunk-3Z755LKF.js 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241
  1. import {
  2. a as a4,
  3. i as i2,
  4. u
  5. } from "./chunk-LTZ5XXDV.js";
  6. import {
  7. d
  8. } from "./chunk-DLMAGHHC.js";
  9. import {
  10. i
  11. } from "./chunk-JOYXMSKE.js";
  12. import {
  13. a as a3
  14. } from "./chunk-MCWCB5IY.js";
  15. import {
  16. c,
  17. f as f2,
  18. m as m2,
  19. p
  20. } from "./chunk-4ONPMX2F.js";
  21. import {
  22. e as e2,
  23. o as o3
  24. } from "./chunk-UVVU4UUO.js";
  25. import {
  26. l as l2
  27. } from "./chunk-X4SA4ELJ.js";
  28. import {
  29. r as r3
  30. } from "./chunk-5N7JLUJJ.js";
  31. import {
  32. n as n2,
  33. t as t3
  34. } from "./chunk-ZAY3CMAZ.js";
  35. import {
  36. n as n3,
  37. r as r4
  38. } from "./chunk-P3XKUGLS.js";
  39. import {
  40. j as j2
  41. } from "./chunk-LU5IJZB4.js";
  42. import {
  43. a as a2
  44. } from "./chunk-RYY6632W.js";
  45. import {
  46. j
  47. } from "./chunk-LBW34VZ2.js";
  48. import {
  49. o,
  50. s as s3
  51. } from "./chunk-HZRKBTHJ.js";
  52. import {
  53. F,
  54. G,
  55. K,
  56. N,
  57. X,
  58. et,
  59. nt
  60. } from "./chunk-VEGAOVMY.js";
  61. import {
  62. o as o2
  63. } from "./chunk-6T6G6LCQ.js";
  64. import {
  65. s as s4
  66. } from "./chunk-YEJL5NEF.js";
  67. import {
  68. r as r2
  69. } from "./chunk-PQFTYGF5.js";
  70. import {
  71. e,
  72. l3 as l,
  73. m,
  74. n5 as n,
  75. s5 as s2,
  76. t5 as t2,
  77. y3 as y2
  78. } from "./chunk-2Z2TG5CU.js";
  79. import {
  80. S,
  81. T,
  82. a
  83. } from "./chunk-SQOPWYIT.js";
  84. import {
  85. f
  86. } from "./chunk-V6P2MAQQ.js";
  87. import {
  88. s2 as s
  89. } from "./chunk-E5O6P5I2.js";
  90. import {
  91. y
  92. } from "./chunk-SPWQ3AWG.js";
  93. import {
  94. r,
  95. t
  96. } from "./chunk-YXWMMD76.js";
  97. // node_modules/@arcgis/core/symbols/LineSymbol.js
  98. var i3 = class extends a3 {
  99. constructor(r7) {
  100. super(r7), this.type = "simple-line", this.width = 0.75;
  101. }
  102. hash() {
  103. return `${this.type}.${this.width}`;
  104. }
  105. };
  106. e([r3({ esriSLS: "simple-line" }, { readOnly: true })], i3.prototype, "type", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], i3.prototype, "width", void 0), i3 = e([n("esri.symbols.LineSymbol")], i3);
  107. var c2 = i3;
  108. // node_modules/@arcgis/core/symbols/support/lineMarkers.js
  109. var e3 = ["begin", "end", "begin-end"];
  110. var n4 = ["arrow", "circle", "square", "diamond", "cross", "x"];
  111. // node_modules/@arcgis/core/symbols/LineSymbolMarker.js
  112. var n5;
  113. var m3 = n5 = class extends l {
  114. constructor(r7) {
  115. super(r7), this.placement = "begin-end", this.type = "line-marker", this.style = "arrow";
  116. }
  117. writeStyle(r7, o9, e7, t13) {
  118. o9[e7] = "web-map" === (t13 == null ? void 0 : t13.origin) ? "arrow" : r7;
  119. }
  120. set color(r7) {
  121. this._set("color", r7);
  122. }
  123. readColor(r7) {
  124. return r7 && null != r7[0] ? [r7[0], r7[1], r7[2], r7[3] / 255] : r7;
  125. }
  126. writeColor(r7, o9, e7, t13) {
  127. "web-map" === (t13 == null ? void 0 : t13.origin) || (o9[e7] = r7);
  128. }
  129. clone() {
  130. return new n5({ color: y(this.color), placement: this.placement, style: this.style });
  131. }
  132. hash() {
  133. var _a;
  134. return `${this.placement}.${(_a = this.color) == null ? void 0 : _a.hash()}.${this.style}`;
  135. }
  136. };
  137. e([y2({ type: ["begin", "end", "begin-end"], json: { write: true } })], m3.prototype, "placement", void 0), e([r3({ "line-marker": "line-marker" }, { readOnly: true }), y2({ json: { origins: { "web-map": { write: false } } } })], m3.prototype, "type", void 0), e([y2({ type: n4 })], m3.prototype, "style", void 0), e([r2("style")], m3.prototype, "writeStyle", null), e([y2({ type: l2, value: null, json: { write: { allowNull: true } } })], m3.prototype, "color", null), e([o2("color")], m3.prototype, "readColor", null), e([r2("color")], m3.prototype, "writeColor", null), m3 = n5 = e([n("esri.symbols.LineSymbolMarker")], m3);
  138. var u2 = m3;
  139. // node_modules/@arcgis/core/symbols/SimpleLineSymbol.js
  140. var p2;
  141. var h = new s3({ esriSLSSolid: "solid", esriSLSDash: "dash", esriSLSDot: "dot", esriSLSDashDot: "dash-dot", esriSLSDashDotDot: "long-dash-dot-dot", esriSLSNull: "none", esriSLSInsideFrame: "inside-frame", esriSLSShortDash: "short-dash", esriSLSShortDot: "short-dot", esriSLSShortDashDot: "short-dash-dot", esriSLSShortDashDotDot: "short-dash-dot-dot", esriSLSLongDash: "long-dash", esriSLSLongDashDot: "long-dash-dot" });
  142. var d2 = p2 = class extends c2 {
  143. constructor(...r7) {
  144. super(...r7), this.type = "simple-line", this.style = "solid", this.cap = "round", this.join = "round", this.marker = null, this.miterLimit = 2;
  145. }
  146. normalizeCtorArgs(r7, o9, e7, s8, i9, n17) {
  147. if (r7 && "string" != typeof r7)
  148. return r7;
  149. const l20 = {};
  150. return null != r7 && (l20.style = r7), null != o9 && (l20.color = o9), null != e7 && (l20.width = o3(e7)), null != s8 && (l20.cap = s8), null != i9 && (l20.join = i9), null != n17 && (l20.miterLimit = o3(n17)), l20;
  151. }
  152. clone() {
  153. var _a;
  154. return new p2({ color: y(this.color), style: this.style, width: this.width, cap: this.cap, join: this.join, miterLimit: this.miterLimit, marker: (_a = this.marker) == null ? void 0 : _a.clone() });
  155. }
  156. hash() {
  157. var _a, _b;
  158. return `${super.hash()}.${(_a = this.color) == null ? void 0 : _a.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${(_b = this.marker) == null ? void 0 : _b.hash()}`;
  159. }
  160. };
  161. e([r3({ esriSLS: "simple-line" }, { readOnly: true })], d2.prototype, "type", void 0), e([y2({ type: h.apiValues, json: { read: h.read, write: h.write } })], d2.prototype, "style", void 0), e([y2({ type: ["butt", "round", "square"], json: { write: { overridePolicy: (r7, o9, e7) => ({ enabled: "round" !== r7 && (null == e7 || null == e7.origin) }) } } })], d2.prototype, "cap", void 0), e([y2({ type: ["miter", "round", "bevel"], json: { write: { overridePolicy: (r7, o9, e7) => ({ enabled: "round" !== r7 && (null == e7 || null == e7.origin) }) } } })], d2.prototype, "join", void 0), e([y2({ types: { key: "type", base: null, defaultKeyValue: "line-marker", typeMap: { "line-marker": u2 } }, json: { write: true, origins: { "web-scene": { write: false } } } })], d2.prototype, "marker", void 0), e([y2({ type: Number, json: { read: false, write: false } })], d2.prototype, "miterLimit", void 0), d2 = p2 = e([n("esri.symbols.SimpleLineSymbol")], d2);
  162. var m4 = d2;
  163. // node_modules/@arcgis/core/symbols/support/IconSymbol3DLayerResource.js
  164. var l3;
  165. var d3 = o()({ circle: "circle", square: "square", cross: "cross", x: "x", kite: "kite", triangle: "triangle" });
  166. var h2 = l3 = class extends l {
  167. constructor(r7) {
  168. super(r7);
  169. }
  170. readHref(r7, e7, o9) {
  171. return r7 ? c(r7, o9) : e7.dataURI;
  172. }
  173. writeHref(r7, e7, o9, c20) {
  174. r7 && (X(r7) ? e7.dataURI = r7 : (e7.href = m2(r7, c20), K(e7.href) && (e7.href = F(e7.href))));
  175. }
  176. clone() {
  177. return new l3({ href: this.href, primitive: this.primitive });
  178. }
  179. };
  180. e([y2({ type: String, json: { write: true, read: { source: ["href", "dataURI"] } } })], h2.prototype, "href", void 0), e([o2("href")], h2.prototype, "readHref", null), e([r2("href", { href: { type: String }, dataURI: { type: String } })], h2.prototype, "writeHref", null), e([r3(d3)], h2.prototype, "primitive", void 0), h2 = l3 = e([n("esri.symbols.support.IconSymbol3DLayerResource")], h2);
  181. var j3 = "circle";
  182. // node_modules/@arcgis/core/symbols/support/ObjectSymbol3DLayerResource.js
  183. var n6;
  184. var a5 = o()({ sphere: "sphere", cylinder: "cylinder", cube: "cube", cone: "cone", diamond: "diamond", tetrahedron: "tetrahedron", invertedCone: "inverted-cone" });
  185. var m5 = n6 = class extends l {
  186. clone() {
  187. return new n6({ href: this.href, primitive: this.primitive });
  188. }
  189. };
  190. e([y2({ type: String, json: { read: p, write: f2 } })], m5.prototype, "href", void 0), e([r3(a5)], m5.prototype, "primitive", void 0), m5 = n6 = e([n("esri.symbols.support.ObjectSymbol3DLayerResource")], m5);
  191. var d4 = "sphere";
  192. // node_modules/@arcgis/core/symbols/support/StyleOrigin.js
  193. var p3;
  194. var l4 = p3 = class extends m {
  195. constructor(t13) {
  196. super(t13), this.name = null, this.styleUrl = null, this.styleName = null, this.portal = null;
  197. }
  198. clone() {
  199. return new p3({ name: this.name, styleUrl: this.styleUrl, styleName: this.styleName, portal: this.portal });
  200. }
  201. };
  202. e([y2({ type: String })], l4.prototype, "name", void 0), e([y2({ type: String })], l4.prototype, "styleUrl", void 0), e([y2({ type: String })], l4.prototype, "styleName", void 0), e([y2({ type: j2 })], l4.prototype, "portal", void 0), l4 = p3 = e([n("esri.symbols.support.StyleOrigin")], l4);
  203. var a6 = l4;
  204. // node_modules/@arcgis/core/symbols/support/Thumbnail.js
  205. var t4;
  206. var p4 = t4 = class extends m {
  207. constructor() {
  208. super(...arguments), this.url = "";
  209. }
  210. clone() {
  211. return new t4({ url: this.url });
  212. }
  213. };
  214. e([y2({ type: String })], p4.prototype, "url", void 0), p4 = t4 = e([n("esri.symbols.support.Thumbnail")], p4);
  215. // node_modules/@arcgis/core/symbols/MarkerSymbol.js
  216. var p5 = class extends a3 {
  217. constructor(t13) {
  218. super(t13), this.angle = 0, this.type = null, this.xoffset = 0, this.yoffset = 0, this.size = 9;
  219. }
  220. hash() {
  221. return `${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`;
  222. }
  223. };
  224. e([y2({ type: Number, json: { read: (t13) => t13 && -1 * t13, write: (t13, e7) => e7.angle = t13 && -1 * t13 } })], p5.prototype, "angle", void 0), e([y2({ type: ["simple-marker", "picture-marker"], readOnly: true })], p5.prototype, "type", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], p5.prototype, "xoffset", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], p5.prototype, "yoffset", void 0), e([y2({ type: Number, cast: (t13) => "auto" === t13 ? t13 : o3(t13), json: { write: true } })], p5.prototype, "size", void 0), p5 = e([n("esri.symbols.MarkerSymbol")], p5);
  225. var i4 = p5;
  226. // node_modules/@arcgis/core/symbols/support/urlUtils.js
  227. function o4(a17, r7, t13) {
  228. return r7.imageData ? et({ mediaType: r7.contentType || "image/png", isBase64: true, data: r7.imageData }) : s5(r7.url, t13);
  229. }
  230. function s5(e7, t13) {
  231. var _a;
  232. return p6(t13) && !K(e7) && ((_a = t13 == null ? void 0 : t13.layer) == null ? void 0 : _a.parsedUrl) ? G(t13.layer.parsedUrl.path, "images", e7) : c(e7, t13);
  233. }
  234. function u3(e7, a17, r7, n17) {
  235. if (X(e7)) {
  236. const t13 = nt(e7);
  237. if (!t13)
  238. return;
  239. a17.contentType = t13.mediaType, a17.imageData = t13.data, r7 && r7.imageData === a17.imageData && r7.url && f2(r7.url, a17, "url", n17);
  240. } else
  241. f2(e7, a17, "url", n17);
  242. }
  243. var m6 = { json: { read: { source: ["imageData", "url"], reader: o4 }, write: { writer(e7, a17, r7, t13) {
  244. u3(e7, a17, this.source, t13);
  245. } } } };
  246. var c3 = { readOnly: true, json: { read: { source: ["imageData", "url"], reader(e7, a17, r7) {
  247. const t13 = {};
  248. return a17.imageData && (t13.imageData = a17.imageData), a17.contentType && (t13.contentType = a17.contentType), a17.url && (t13.url = s5(a17.url, r7)), t13;
  249. } } } };
  250. function p6(e7) {
  251. var _a, _b;
  252. return !(null == e7 || "service" !== e7.origin && "portal-item" !== e7.origin || "feature" !== ((_a = e7.layer) == null ? void 0 : _a.type) && "stream" !== ((_b = e7.layer) == null ? void 0 : _b.type));
  253. }
  254. // node_modules/@arcgis/core/symbols/PictureMarkerSymbol.js
  255. var l5;
  256. var a7 = l5 = class extends i4 {
  257. constructor(...r7) {
  258. super(...r7), this.color = null, this.type = "picture-marker", this.url = null, this.source = null, this.height = 12, this.width = 12, this.size = null;
  259. }
  260. normalizeCtorArgs(r7, t13, o9) {
  261. if (r7 && "string" != typeof r7 && null == r7.imageData)
  262. return r7;
  263. const s8 = {};
  264. return r7 && (s8.url = r7), null != t13 && (s8.width = o3(t13)), null != o9 && (s8.height = o3(o9)), s8;
  265. }
  266. readHeight(r7, t13) {
  267. return t13.size || r7;
  268. }
  269. readWidth(r7, t13) {
  270. return t13.size || r7;
  271. }
  272. clone() {
  273. const r7 = new l5({ angle: this.angle, height: this.height, url: this.url, width: this.width, xoffset: this.xoffset, yoffset: this.yoffset });
  274. return r7._set("source", y(this.source)), r7;
  275. }
  276. hash() {
  277. return `${super.hash()}.${this.height}.${this.url}.${this.width}`;
  278. }
  279. };
  280. e([y2({ json: { write: false } })], a7.prototype, "color", void 0), e([r3({ esriPMS: "picture-marker" }, { readOnly: true })], a7.prototype, "type", void 0), e([y2(m6)], a7.prototype, "url", void 0), e([y2(c3)], a7.prototype, "source", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], a7.prototype, "height", void 0), e([o2("height", ["height", "size"])], a7.prototype, "readHeight", null), e([y2({ type: Number, cast: o3, json: { write: true } })], a7.prototype, "width", void 0), e([y2({ json: { write: false } })], a7.prototype, "size", void 0), a7 = l5 = e([n("esri.symbols.PictureMarkerSymbol")], a7);
  281. var n7 = a7;
  282. // node_modules/@arcgis/core/symbols/FillSymbol.js
  283. var l6 = class extends a3 {
  284. constructor(e7) {
  285. super(e7), this.outline = null, this.type = null;
  286. }
  287. hash() {
  288. return `${this.type}.${this.outline && this.outline.hash()}`;
  289. }
  290. };
  291. e([y2({ types: { key: "type", base: null, defaultKeyValue: "simple-line", typeMap: { "simple-line": m4 } }, json: { default: null, write: true } })], l6.prototype, "outline", void 0), e([y2({ type: ["simple-fill", "picture-fill"], readOnly: true })], l6.prototype, "type", void 0), l6 = e([n("esri.symbols.FillSymbol")], l6);
  292. var p7 = l6;
  293. // node_modules/@arcgis/core/symbols/SimpleFillSymbol.js
  294. var p8;
  295. var c4 = new s3({ esriSFSSolid: "solid", esriSFSNull: "none", esriSFSHorizontal: "horizontal", esriSFSVertical: "vertical", esriSFSForwardDiagonal: "forward-diagonal", esriSFSBackwardDiagonal: "backward-diagonal", esriSFSCross: "cross", esriSFSDiagonalCross: "diagonal-cross" });
  296. var m7 = p8 = class extends p7 {
  297. constructor(...o9) {
  298. super(...o9), this.color = new l2([0, 0, 0, 0.25]), this.outline = new m4(), this.type = "simple-fill", this.style = "solid";
  299. }
  300. normalizeCtorArgs(o9, r7, s8) {
  301. if (o9 && "string" != typeof o9)
  302. return o9;
  303. const e7 = {};
  304. return o9 && (e7.style = o9), r7 && (e7.outline = r7), s8 && (e7.color = s8), e7;
  305. }
  306. clone() {
  307. return new p8({ color: y(this.color), outline: this.outline && this.outline.clone(), style: this.style });
  308. }
  309. hash() {
  310. return `${super.hash()}${this.style}.${this.color && this.color.hash()}`;
  311. }
  312. };
  313. e([y2()], m7.prototype, "color", void 0), e([y2()], m7.prototype, "outline", void 0), e([r3({ esriSFS: "simple-fill" }, { readOnly: true })], m7.prototype, "type", void 0), e([y2({ type: c4.apiValues, json: { read: c4.read, write: c4.write } })], m7.prototype, "style", void 0), m7 = p8 = e([n("esri.symbols.SimpleFillSymbol")], m7);
  314. var S2 = m7;
  315. // node_modules/@arcgis/core/symbols/SimpleMarkerSymbol.js
  316. var h3;
  317. var m8 = new s3({ esriSMSCircle: "circle", esriSMSSquare: "square", esriSMSCross: "cross", esriSMSX: "x", esriSMSDiamond: "diamond", esriSMSTriangle: "triangle", esriSMSPath: "path" });
  318. var u4 = h3 = class extends i4 {
  319. constructor(...e7) {
  320. super(...e7), this.color = new l2([255, 255, 255, 0.25]), this.type = "simple-marker", this.size = 12, this.style = "circle", this.outline = new m4();
  321. }
  322. normalizeCtorArgs(e7, o9, r7, t13) {
  323. if (e7 && "string" != typeof e7)
  324. return e7;
  325. const i9 = {};
  326. return e7 && (i9.style = e7), null != o9 && (i9.size = o3(o9)), r7 && (i9.outline = r7), t13 && (i9.color = t13), i9;
  327. }
  328. writeColor(e7, o9) {
  329. e7 && "x" !== this.style && "cross" !== this.style && (o9.color = e7.toJSON()), null === e7 && (o9.color = null);
  330. }
  331. set path(e7) {
  332. this.style = "path", this._set("path", e7);
  333. }
  334. clone() {
  335. return new h3({ angle: this.angle, color: y(this.color), outline: this.outline && this.outline.clone(), path: this.path, size: this.size, style: this.style, xoffset: this.xoffset, yoffset: this.yoffset });
  336. }
  337. hash() {
  338. var _a;
  339. return `${super.hash()}.${this.color && this.color.hash()}.${this.path}.${this.style}.${(_a = this.outline) == null ? void 0 : _a.hash()}`;
  340. }
  341. };
  342. e([y2()], u4.prototype, "color", void 0), e([r2("color")], u4.prototype, "writeColor", null), e([r3({ esriSMS: "simple-marker" }, { readOnly: true })], u4.prototype, "type", void 0), e([y2()], u4.prototype, "size", void 0), e([y2({ type: m8.apiValues, json: { read: m8.read, write: m8.write } })], u4.prototype, "style", void 0), e([y2({ type: String, json: { write: true } })], u4.prototype, "path", null), e([y2({ types: { key: "type", base: null, defaultKeyValue: "simple-line", typeMap: { "simple-line": m4 } }, json: { default: null, write: true } })], u4.prototype, "outline", void 0), u4 = h3 = e([n("esri.symbols.SimpleMarkerSymbol")], u4);
  343. var y3 = u4;
  344. // node_modules/@arcgis/core/symbols/support/textUtils.js
  345. var l7 = ["none", "underline", "line-through"];
  346. var t5 = ["normal", "italic", "oblique"];
  347. var r5 = ["normal", "lighter", "bold", "bolder"];
  348. var n8 = { type: Number, cast: (l20) => {
  349. const t13 = a(l20);
  350. return 0 === t13 ? 1 : a2(t13, 0.1, 4);
  351. }, nonNullable: true };
  352. var i5 = ["left", "right", "center"];
  353. var a8 = ["baseline", "top", "middle", "bottom"];
  354. var m9 = { type: i5, nonNullable: true };
  355. var p9 = { type: a8, nonNullable: true };
  356. // node_modules/@arcgis/core/symbols/Font.js
  357. var c5;
  358. var l8 = c5 = class extends l {
  359. constructor(t13) {
  360. super(t13), this.decoration = "none", this.family = "sans-serif", this.size = 9, this.style = "normal", this.weight = "normal";
  361. }
  362. castSize(t13) {
  363. return o3(t13);
  364. }
  365. clone() {
  366. return new c5({ decoration: this.decoration, family: this.family, size: this.size, style: this.style, weight: this.weight });
  367. }
  368. hash() {
  369. return `${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`;
  370. }
  371. };
  372. e([y2({ type: l7, json: { default: "none", write: true } })], l8.prototype, "decoration", void 0), e([y2({ type: String, json: { write: true } })], l8.prototype, "family", void 0), e([y2({ type: Number, json: { write: { overridePolicy: (t13, o9, e7) => ({ enabled: !e7 || !e7.textSymbol3D }) } } })], l8.prototype, "size", void 0), e([s4("size")], l8.prototype, "castSize", null), e([y2({ type: t5, json: { default: "normal", write: true } })], l8.prototype, "style", void 0), e([y2({ type: r5, json: { default: "normal", write: true } })], l8.prototype, "weight", void 0), l8 = c5 = e([n("esri.symbols.Font")], l8);
  373. var m10 = l8;
  374. // node_modules/@arcgis/core/symbols/TextSymbol.js
  375. var f3;
  376. var g = f3 = class extends a3 {
  377. constructor(...t13) {
  378. super(...t13), this.backgroundColor = null, this.borderLineColor = null, this.borderLineSize = null, this.font = new m10(), this.horizontalAlignment = "center", this.kerning = true, this.haloColor = null, this.haloSize = null, this.rightToLeft = null, this.rotated = false, this.text = "", this.type = "text", this.verticalAlignment = "baseline", this.xoffset = 0, this.yoffset = 0, this.angle = 0, this.width = null, this.lineWidth = 192, this.lineHeight = 1;
  379. }
  380. normalizeCtorArgs(t13, o9, e7) {
  381. if (t13 && "string" != typeof t13)
  382. return t13;
  383. const i9 = {};
  384. return t13 && (i9.text = t13), o9 && (i9.font = o9), e7 && (i9.color = e7), i9;
  385. }
  386. writeLineWidth(t13, o9, e7, i9) {
  387. i9 && "string" != typeof i9 ? i9.origin : o9[e7] = t13;
  388. }
  389. castLineWidth(t13) {
  390. return o3(t13);
  391. }
  392. writeLineHeight(t13, o9, e7, i9) {
  393. i9 && "string" != typeof i9 ? i9.origin : o9[e7] = t13;
  394. }
  395. clone() {
  396. return new f3({ angle: this.angle, backgroundColor: y(this.backgroundColor), borderLineColor: y(this.borderLineColor), borderLineSize: this.borderLineSize, color: y(this.color), font: this.font && this.font.clone(), haloColor: y(this.haloColor), haloSize: this.haloSize, horizontalAlignment: this.horizontalAlignment, kerning: this.kerning, lineHeight: this.lineHeight, lineWidth: this.lineWidth, rightToLeft: this.rightToLeft, rotated: this.rotated, text: this.text, verticalAlignment: this.verticalAlignment, width: this.width, xoffset: this.xoffset, yoffset: this.yoffset });
  397. }
  398. hash() {
  399. var _a;
  400. return `${this.backgroundColor && this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${(_a = this.color) == null ? void 0 : _a.hash()}.${this.font && this.font.hash()}.${this.haloColor && this.haloColor.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`;
  401. }
  402. };
  403. e([y2({ type: l2, json: { write: true } })], g.prototype, "backgroundColor", void 0), e([y2({ type: l2, json: { write: true } })], g.prototype, "borderLineColor", void 0), e([y2({ type: Number, json: { write: true } })], g.prototype, "borderLineSize", void 0), e([y2({ type: m10, json: { write: true } })], g.prototype, "font", void 0), e([y2({ ...m9, json: { write: true } })], g.prototype, "horizontalAlignment", void 0), e([y2({ type: Boolean, json: { write: true } })], g.prototype, "kerning", void 0), e([y2({ type: l2, json: { write: true } })], g.prototype, "haloColor", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], g.prototype, "haloSize", void 0), e([y2({ type: Boolean, json: { write: true } })], g.prototype, "rightToLeft", void 0), e([y2({ type: Boolean, json: { write: true } })], g.prototype, "rotated", void 0), e([y2({ type: String, json: { write: true } })], g.prototype, "text", void 0), e([r3({ esriTS: "text" }, { readOnly: true })], g.prototype, "type", void 0), e([y2({ ...p9, json: { write: true } })], g.prototype, "verticalAlignment", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], g.prototype, "xoffset", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], g.prototype, "yoffset", void 0), e([y2({ type: Number, json: { read: (t13) => t13 && -1 * t13, write: (t13, o9) => o9.angle = t13 && -1 * t13 } })], g.prototype, "angle", void 0), e([y2({ type: Number, json: { write: true } })], g.prototype, "width", void 0), e([y2({ type: Number })], g.prototype, "lineWidth", void 0), e([r2("lineWidth")], g.prototype, "writeLineWidth", null), e([s4("lineWidth")], g.prototype, "castLineWidth", null), e([y2(n8)], g.prototype, "lineHeight", void 0), e([r2("lineHeight")], g.prototype, "writeLineHeight", null), g = f3 = e([n("esri.symbols.TextSymbol")], g);
  404. var m11 = g;
  405. // node_modules/@arcgis/core/symbols/Symbol3DLayer.js
  406. var p10 = class extends l {
  407. constructor(e7) {
  408. super(e7), this.enabled = true, this.type = null;
  409. }
  410. writeEnabled(e7, r7, o9) {
  411. e7 || (r7[o9] = e7);
  412. }
  413. };
  414. e([y2({ type: Boolean, json: { read: { source: "enable" }, write: { target: "enable" } } })], p10.prototype, "enabled", void 0), e([r2("enabled")], p10.prototype, "writeEnabled", null), e([y2({ type: ["icon", "object", "line", "path", "fill", "water", "extrude", "text"], readOnly: true })], p10.prototype, "type", void 0), p10 = e([n("esri.symbols.Symbol3DLayer")], p10);
  415. var a9 = p10;
  416. // node_modules/@arcgis/core/symbols/support/materialUtils.js
  417. function s6(o9, t13) {
  418. const n17 = null != t13.transparency ? r4(t13.transparency) : 1, s8 = t13.color;
  419. return s8 && Array.isArray(s8) ? new l2([s8[0] || 0, s8[1] || 0, s8[2] || 0, n17]) : null;
  420. }
  421. function c6(r7, o9) {
  422. o9.color = r7.toJSON().slice(0, 3);
  423. const t13 = n3(r7.a);
  424. 0 !== t13 && (o9.transparency = t13);
  425. }
  426. var p11 = { type: l2, json: { type: [T], default: null, read: { source: ["color", "transparency"], reader: s6 }, write: { target: { color: { type: [T] }, transparency: { type: T } }, writer: c6 } } };
  427. var a10 = { type: Number, cast: o3, json: { write: true } };
  428. // node_modules/@arcgis/core/symbols/edges/Edges3D.js
  429. var l9 = class extends l {
  430. constructor(o9) {
  431. super(o9), this.color = new l2([0, 0, 0, 1]), this.extensionLength = 0, this.size = e2(1);
  432. }
  433. clone() {
  434. }
  435. cloneProperties() {
  436. return { color: y(this.color), size: this.size, extensionLength: this.extensionLength };
  437. }
  438. };
  439. e([y2({ type: ["solid", "sketch"], readOnly: true, json: { read: true, write: { ignoreOrigin: true } } })], l9.prototype, "type", void 0), e([y2(p11)], l9.prototype, "color", void 0), e([y2({ ...a10, json: { write: { overridePolicy: (o9) => ({ enabled: !!o9 }) } } })], l9.prototype, "extensionLength", void 0), e([y2(a10)], l9.prototype, "size", void 0), l9 = e([n("esri.symbols.edges.Edges3D")], l9);
  440. var m12 = l9;
  441. // node_modules/@arcgis/core/symbols/edges/SketchEdges3D.js
  442. var t6;
  443. var c7 = t6 = class extends m12 {
  444. constructor(r7) {
  445. super(r7), this.type = "sketch";
  446. }
  447. clone() {
  448. return new t6(this.cloneProperties());
  449. }
  450. };
  451. e([r3({ sketch: "sketch" }, { readOnly: true })], c7.prototype, "type", void 0), c7 = t6 = e([n("esri.symbols.edges.SketchEdges3D")], c7);
  452. var p12 = c7;
  453. // node_modules/@arcgis/core/symbols/edges/SolidEdges3D.js
  454. var t7;
  455. var p13 = t7 = class extends m12 {
  456. constructor(r7) {
  457. super(r7), this.type = "solid";
  458. }
  459. clone() {
  460. return new t7(this.cloneProperties());
  461. }
  462. };
  463. e([r3({ solid: "solid" }, { readOnly: true })], p13.prototype, "type", void 0), p13 = t7 = e([n("esri.symbols.support.SolidEdges3D")], p13);
  464. var c8 = p13;
  465. // node_modules/@arcgis/core/symbols/edges/utils.js
  466. var t8 = { types: { key: "type", base: m12, typeMap: { solid: c8, sketch: p12 } }, json: { write: true } };
  467. // node_modules/@arcgis/core/symbols/support/Symbol3DMaterial.js
  468. var p14;
  469. var l10 = p14 = class extends l {
  470. constructor(o9) {
  471. super(o9), this.color = null;
  472. }
  473. clone() {
  474. const o9 = { color: r(this.color) ? this.color.clone() : null };
  475. return new p14(o9);
  476. }
  477. };
  478. e([y2(p11)], l10.prototype, "color", void 0), l10 = p14 = e([n("esri.symbols.support.Symbol3DMaterial")], l10);
  479. // node_modules/@arcgis/core/symbols/ExtrudeSymbol3DLayer.js
  480. var l11;
  481. var c9 = l11 = class extends a9 {
  482. constructor(e7) {
  483. super(e7), this.type = "extrude", this.size = 1, this.material = null, this.castShadows = true, this.edges = null;
  484. }
  485. clone() {
  486. return new l11({ edges: this.edges && this.edges.clone(), enabled: this.enabled, material: r(this.material) ? this.material.clone() : null, castShadows: this.castShadows, size: this.size });
  487. }
  488. };
  489. e([r3({ Extrude: "extrude" }, { readOnly: true })], c9.prototype, "type", void 0), e([y2({ type: Number, json: { write: { enabled: true, isRequired: true } }, nonNullable: true })], c9.prototype, "size", void 0), e([y2({ type: l10, json: { write: true } })], c9.prototype, "material", void 0), e([y2({ type: Boolean, nonNullable: true, json: { write: true, default: true } })], c9.prototype, "castShadows", void 0), e([y2(t8)], c9.prototype, "edges", void 0), c9 = l11 = e([n("esri.symbols.ExtrudeSymbol3DLayer")], c9);
  490. var d5 = c9;
  491. // node_modules/@arcgis/core/symbols/patterns/LinePattern3D.js
  492. var t9 = class extends l {
  493. constructor(r7) {
  494. super(r7);
  495. }
  496. clone() {
  497. }
  498. };
  499. e([y2({ type: ["style"], readOnly: true, json: { read: true, write: { ignoreOrigin: true } } })], t9.prototype, "type", void 0), t9 = e([n("esri.symbols.patterns.LinePattern3D")], t9);
  500. var p15 = t9;
  501. // node_modules/@arcgis/core/symbols/patterns/lineStyles.js
  502. var o5 = ["dash", "dash-dot", "dot", "long-dash", "long-dash-dot", "long-dash-dot-dot", "none", "short-dash", "short-dash-dot", "short-dash-dot-dot", "short-dot", "solid"];
  503. // node_modules/@arcgis/core/symbols/patterns/LineStylePattern3D.js
  504. var p16;
  505. var h4 = o()({ dash: "dash", "dash-dot": "dash-dot", "dash-dot-dot": "long-dash-dot-dot", dot: "dot", "long-dash": "long-dash", "long-dash-dot": "long-dash-dot", null: "none", "short-dash": "short-dash", "short-dash-dot": "short-dash-dot", "short-dash-dot-dot": "short-dash-dot-dot", "short-dot": "short-dot", solid: "solid" });
  506. var l12 = p16 = class extends p15 {
  507. constructor(o9) {
  508. super(o9), this.type = "style", this.style = "solid";
  509. }
  510. clone() {
  511. const o9 = { style: this.style };
  512. return new p16(o9);
  513. }
  514. };
  515. e([y2({ type: ["style"] })], l12.prototype, "type", void 0), e([r3(h4), y2({ type: o5 })], l12.prototype, "style", void 0), l12 = p16 = e([n("esri.symbols.patterns.LineStylePattern3D")], l12);
  516. var n9 = l12;
  517. // node_modules/@arcgis/core/symbols/patterns/Pattern3D.js
  518. var t10 = class extends l {
  519. constructor(r7) {
  520. super(r7);
  521. }
  522. clone() {
  523. }
  524. };
  525. e([y2({ type: ["style"], readOnly: true, json: { read: true, write: { ignoreOrigin: true } } })], t10.prototype, "type", void 0), t10 = e([n("esri.symbols.patterns.Pattern3D")], t10);
  526. var p17 = t10;
  527. // node_modules/@arcgis/core/symbols/patterns/styles.js
  528. var a11 = ["backward-diagonal", "cross", "diagonal-cross", "forward-diagonal", "horizontal", "none", "solid", "vertical"];
  529. // node_modules/@arcgis/core/symbols/patterns/StylePattern3D.js
  530. var p18;
  531. var c10 = p18 = class extends p17 {
  532. constructor(t13) {
  533. super(t13), this.type = "style", this.style = "solid";
  534. }
  535. clone() {
  536. const t13 = { style: this.style };
  537. return new p18(t13);
  538. }
  539. };
  540. e([y2({ type: ["style"] })], c10.prototype, "type", void 0), e([y2({ type: a11, json: { read: true, write: true } })], c10.prototype, "style", void 0), c10 = p18 = e([n("esri.symbols.patterns.StylePattern3D")], c10);
  541. var y4 = c10;
  542. // node_modules/@arcgis/core/symbols/patterns/utils.js
  543. var s7 = { types: { key: "type", base: p17, typeMap: { style: y4 } }, json: { write: true } };
  544. var o6 = { types: { key: "type", base: p15, typeMap: { style: n9 } }, json: { write: true } };
  545. // node_modules/@arcgis/core/symbols/support/colors.js
  546. var o7 = new l2("white");
  547. var r6 = new l2("black");
  548. var e4 = new l2([255, 255, 255, 0]);
  549. function t11(n17) {
  550. return 0 === n17.r && 0 === n17.g && 0 === n17.b;
  551. }
  552. // node_modules/@arcgis/core/symbols/support/Symbol3DFillMaterial.js
  553. var c11;
  554. var l13 = c11 = class extends l10 {
  555. constructor(o9) {
  556. super(o9), this.colorMixMode = null;
  557. }
  558. clone() {
  559. const o9 = { color: r(this.color) ? this.color.clone() : null, colorMixMode: this.colorMixMode };
  560. return new c11(o9);
  561. }
  562. };
  563. e([r3({ multiply: "multiply", replace: "replace", tint: "tint" })], l13.prototype, "colorMixMode", void 0), l13 = c11 = e([n("esri.symbols.support.Symbol3DFillMaterial")], l13);
  564. // node_modules/@arcgis/core/symbols/support/Symbol3DOutline.js
  565. var m13;
  566. var u5 = m13 = class extends l {
  567. constructor(t13) {
  568. super(t13), this.color = new l2([0, 0, 0, 1]), this.size = e2(1), this.pattern = null, this.patternCap = "butt";
  569. }
  570. clone() {
  571. const t13 = { color: r(this.color) ? this.color.clone() : null, size: this.size, pattern: r(this.pattern) ? this.pattern.clone() : null, patternCap: this.patternCap };
  572. return new m13(t13);
  573. }
  574. };
  575. e([y2(p11)], u5.prototype, "color", void 0), e([y2(a10)], u5.prototype, "size", void 0), e([y2(o6)], u5.prototype, "pattern", void 0), e([y2({ type: u, json: { default: "butt", write: { overridePolicy() {
  576. return { enabled: r(this.pattern) };
  577. } } } })], u5.prototype, "patternCap", void 0), u5 = m13 = e([n("esri.symbols.support.Symbol3DOutline")], u5);
  578. // node_modules/@arcgis/core/symbols/FillSymbol3DLayer.js
  579. var d6;
  580. var h5 = d6 = class extends a9 {
  581. constructor(t13) {
  582. super(t13), this.type = "fill", this.material = null, this.pattern = null, this.castShadows = true, this.outline = null, this.edges = null;
  583. }
  584. clone() {
  585. const t13 = { edges: r(this.edges) ? this.edges.clone() : null, enabled: this.enabled, material: r(this.material) ? this.material.clone() : null, pattern: r(this.pattern) ? this.pattern.clone() : null, castShadows: this.castShadows, outline: r(this.outline) ? this.outline.clone() : null };
  586. return new d6(t13);
  587. }
  588. static fromSimpleFillSymbol(t13) {
  589. var _a, _b, _c, _d, _e, _f;
  590. const e7 = t13.outline && t13.outline.style && "inside-frame" !== t13.outline.style && "solid" !== t13.outline.style ? new n9({ style: t13.outline.style }) : null, o9 = { size: (_b = (_a = t13.outline) == null ? void 0 : _a.width) != null ? _b : 0, color: ((_d = (_c = t13.outline) == null ? void 0 : _c.color) != null ? _d : o7).clone(), pattern: e7 };
  591. return e7 && ((_e = t13.outline) == null ? void 0 : _e.cap) && (o9.patternCap = t13.outline.cap), new d6({ material: new l13({ color: ((_f = t13.color) != null ? _f : e4).clone() }), pattern: t13.style && "solid" !== t13.style ? new y4({ style: t13.style }) : null, outline: o9 });
  592. }
  593. };
  594. e([r3({ Fill: "fill" }, { readOnly: true })], h5.prototype, "type", void 0), e([y2({ type: l13, json: { write: true } })], h5.prototype, "material", void 0), e([y2(s7)], h5.prototype, "pattern", void 0), e([y2({ type: Boolean, nonNullable: true, json: { write: true, default: true } })], h5.prototype, "castShadows", void 0), e([y2({ type: u5, json: { write: true } })], h5.prototype, "outline", void 0), e([y2(t8)], h5.prototype, "edges", void 0), h5 = d6 = e([n("esri.symbols.FillSymbol3DLayer")], h5);
  595. var f4 = h5;
  596. // node_modules/@arcgis/core/symbols/support/Symbol3DAnchorPosition2D.js
  597. var e5;
  598. var p19 = e5 = class extends m {
  599. constructor() {
  600. super(...arguments), this.x = 0, this.y = 0;
  601. }
  602. clone() {
  603. return new e5({ x: this.x, y: this.y });
  604. }
  605. };
  606. e([y2({ type: Number })], p19.prototype, "x", void 0), e([y2({ type: Number })], p19.prototype, "y", void 0), p19 = e5 = e([n("esri.symbols.support.Symbol3DAnchorPosition2D")], p19);
  607. // node_modules/@arcgis/core/symbols/support/Symbol3DIconOutline.js
  608. var l14;
  609. var a12 = l14 = class extends l {
  610. constructor(o9) {
  611. super(o9), this.color = new l2([0, 0, 0, 1]), this.size = e2(1);
  612. }
  613. clone() {
  614. const o9 = { color: r(this.color) ? this.color.clone() : null, size: this.size };
  615. return new l14(o9);
  616. }
  617. };
  618. e([y2(p11)], a12.prototype, "color", void 0), e([y2(a10)], a12.prototype, "size", void 0), a12 = l14 = e([n("esri.symbols.support.Symbol3DIconOutline")], a12);
  619. // node_modules/@arcgis/core/symbols/IconSymbol3DLayer.js
  620. var f5;
  621. var d7 = "esri.symbols.IconSymbol3DLayer";
  622. var b = f5 = class extends a9 {
  623. constructor(o9) {
  624. super(o9), this.material = null, this.resource = null, this.type = "icon", this.size = 12, this.anchor = "center", this.anchorPosition = null, this.outline = null;
  625. }
  626. clone() {
  627. return new f5({ anchor: this.anchor, anchorPosition: this.anchorPosition && this.anchorPosition.clone(), enabled: this.enabled, material: r(this.material) ? this.material.clone() : null, outline: r(this.outline) ? this.outline.clone() : null, resource: this.resource && this.resource.clone(), size: this.size });
  628. }
  629. static fromSimpleMarkerSymbol(o9) {
  630. const t13 = o9.color || o7, r7 = j4(o9), e7 = o9.outline && o9.outline.width > 0 ? { size: o9.outline.width, color: (o9.outline.color || o7).clone() } : null;
  631. return new f5({ size: o9.size, resource: { primitive: w(o9.style) }, material: { color: t13 }, outline: e7, anchor: r7 ? "relative" : void 0, anchorPosition: r7 });
  632. }
  633. static fromPictureMarkerSymbol(o9) {
  634. const t13 = !o9.color || t11(o9.color) ? o7 : o9.color, r7 = j4(o9);
  635. return new f5({ size: o9.width <= o9.height ? o9.height : o9.width, resource: { href: o9.url }, material: { color: t13.clone() }, anchor: r7 ? "relative" : void 0, anchorPosition: r7 });
  636. }
  637. static fromCIMSymbol(o9) {
  638. return new f5({ resource: { href: et({ mediaType: "application/json", data: JSON.stringify(o9.data) }) } });
  639. }
  640. };
  641. function j4(o9) {
  642. const t13 = "width" in o9 ? o9.width : o9.size, r7 = "height" in o9 ? o9.height : o9.size, e7 = g2(o9.xoffset), i9 = g2(o9.yoffset);
  643. return (e7 || i9) && t13 && r7 ? { x: -e7 / t13, y: i9 / r7 } : null;
  644. }
  645. function g2(o9) {
  646. return isFinite(o9) ? o9 : 0;
  647. }
  648. e([y2({ type: l10, json: { write: true } })], b.prototype, "material", void 0), e([y2({ type: h2, json: { write: true } })], b.prototype, "resource", void 0), e([r3({ Icon: "icon" }, { readOnly: true })], b.prototype, "type", void 0), e([y2(a10)], b.prototype, "size", void 0), e([r3({ center: "center", left: "left", right: "right", top: "top", bottom: "bottom", topLeft: "top-left", topRight: "top-right", bottomLeft: "bottom-left", bottomRight: "bottom-right", relative: "relative" }), y2({ json: { default: "center" } })], b.prototype, "anchor", void 0), e([y2({ type: p19, json: { type: [Number], read: { reader: (o9) => new p19({ x: o9[0], y: o9[1] }) }, write: { writer: (o9, t13) => {
  649. t13.anchorPosition = [o9.x, o9.y];
  650. }, overridePolicy() {
  651. return { enabled: "relative" === this.anchor };
  652. } } } })], b.prototype, "anchorPosition", void 0), e([y2({ type: a12, json: { write: true } })], b.prototype, "outline", void 0), b = f5 = e([n(d7)], b);
  653. var v = { circle: "circle", cross: "cross", diamond: "kite", square: "square", x: "x", triangle: "triangle", path: null };
  654. function w(o9) {
  655. const r7 = v[o9];
  656. return r7 || (s.getLogger(d7).warn(`${o9} cannot be mapped to Icon symbol. Fallback to "circle"`), "circle");
  657. }
  658. var S3 = b;
  659. // node_modules/@arcgis/core/symbols/LineStyleMarker3D.js
  660. var m14 = class extends i(l) {
  661. constructor(o9) {
  662. super(o9), this.type = "style", this.placement = "begin-end", this.style = "arrow", this.color = null;
  663. }
  664. equals(o9) {
  665. return r(o9) && o9.placement === this.placement && o9.style === this.style && (t(this.color) && t(o9.color) || r(this.color) && r(o9.color) && this.color.toJSON() === o9.color.toJSON());
  666. }
  667. };
  668. e([y2({ type: ["style"], readOnly: true, json: { read: true, write: { ignoreOrigin: true } } })], m14.prototype, "type", void 0), e([y2({ type: e3, json: { default: "begin-end", write: true } })], m14.prototype, "placement", void 0), e([y2({ type: n4, json: { default: "arrow", write: true } })], m14.prototype, "style", void 0), e([y2({ type: l2, json: { type: [T], default: null, write: true } })], m14.prototype, "color", void 0), m14 = e([n("esri.symbols.LineStyleMarker3D")], m14);
  669. var y5 = m14;
  670. // node_modules/@arcgis/core/symbols/LineSymbol3DLayer.js
  671. var d8;
  672. var f6 = d8 = class extends a9 {
  673. constructor(t13) {
  674. super(t13), this.material = null, this.type = "line", this.join = "miter", this.cap = "butt", this.size = e2(1), this.pattern = null, this.marker = null;
  675. }
  676. clone() {
  677. const t13 = { enabled: this.enabled, material: r(this.material) ? this.material.clone() : null, size: this.size, join: this.join, cap: this.cap, pattern: r(this.pattern) ? this.pattern.clone() : null, marker: r(this.marker) ? this.marker.clone() : null };
  678. return new d8(t13);
  679. }
  680. static fromSimpleLineSymbol(t13) {
  681. var _a, _b, _c;
  682. const e7 = { enabled: true, size: (_a = t13.width) != null ? _a : e2(1), cap: t13.cap || "butt", join: t13.join || "miter", pattern: t13.style && "inside-frame" !== t13.style ? new n9({ style: t13.style }) : null, material: new l10({ color: (t13.color || o7).clone() }), marker: t13.marker ? new y5({ placement: t13.marker.placement, style: t13.marker.style, color: (_c = (_b = t13.marker.color) == null ? void 0 : _b.clone()) != null ? _c : null }) : null };
  683. return new d8(e7);
  684. }
  685. };
  686. e([y2({ type: l10, json: { write: true } })], f6.prototype, "material", void 0), e([r3({ Line: "line" }, { readOnly: true })], f6.prototype, "type", void 0), e([y2({ type: a4, json: { write: true, default: "miter" } })], f6.prototype, "join", void 0), e([y2({ type: u, json: { write: true, default: "butt" } })], f6.prototype, "cap", void 0), e([y2(a10)], f6.prototype, "size", void 0), e([y2(o6)], f6.prototype, "pattern", void 0), e([y2({ types: { key: "type", base: y5, typeMap: { style: y5 } }, json: { write: true } })], f6.prototype, "marker", void 0), f6 = d8 = e([n("esri.symbols.LineSymbol3DLayer")], f6);
  687. var h6 = f6;
  688. // node_modules/@arcgis/core/symbols/support/Symbol3DAnchorPosition3D.js
  689. var e6;
  690. var p20 = e6 = class extends m {
  691. constructor() {
  692. super(...arguments), this.x = 0, this.y = 0, this.z = 0;
  693. }
  694. clone() {
  695. return new e6({ x: this.x, y: this.y, z: this.z });
  696. }
  697. };
  698. e([y2({ type: Number })], p20.prototype, "x", void 0), e([y2({ type: Number })], p20.prototype, "y", void 0), e([y2({ type: Number })], p20.prototype, "z", void 0), p20 = e6 = e([n("esri.symbols.support.Symbol3DAnchorPosition3D")], p20);
  699. // node_modules/@arcgis/core/symbols/ObjectSymbol3DLayer.js
  700. var n10;
  701. var c12 = n10 = class extends a9 {
  702. constructor(o9) {
  703. super(o9), this.material = null, this.castShadows = true, this.resource = null, this.type = "object", this.width = void 0, this.height = void 0, this.depth = void 0, this.anchor = void 0, this.anchorPosition = void 0, this.heading = void 0, this.tilt = void 0, this.roll = void 0;
  704. }
  705. clone() {
  706. return new n10({ heading: this.heading, tilt: this.tilt, roll: this.roll, anchor: this.anchor, anchorPosition: this.anchorPosition && this.anchorPosition.clone(), depth: this.depth, enabled: this.enabled, height: this.height, material: r(this.material) ? this.material.clone() : null, castShadows: this.castShadows, resource: this.resource && this.resource.clone(), width: this.width });
  707. }
  708. get isPrimitive() {
  709. return !this.resource || "string" != typeof this.resource.href;
  710. }
  711. };
  712. e([y2({ type: l10, json: { write: true } })], c12.prototype, "material", void 0), e([y2({ type: Boolean, nonNullable: true, json: { write: true, default: true } })], c12.prototype, "castShadows", void 0), e([y2({ type: m5, json: { write: true } })], c12.prototype, "resource", void 0), e([r3({ Object: "object" }, { readOnly: true })], c12.prototype, "type", void 0), e([y2({ type: Number, json: { write: true } })], c12.prototype, "width", void 0), e([y2({ type: Number, json: { write: true } })], c12.prototype, "height", void 0), e([y2({ type: Number, json: { write: true } })], c12.prototype, "depth", void 0), e([r3({ center: "center", top: "top", bottom: "bottom", origin: "origin", relative: "relative" }), y2({ json: { default: "origin" } })], c12.prototype, "anchor", void 0), e([y2({ type: p20, json: { type: [Number], read: { reader: (o9) => new p20({ x: o9[0], y: o9[1], z: o9[2] }) }, write: { writer: (o9, t13) => {
  713. t13.anchorPosition = [o9.x, o9.y, o9.z];
  714. }, overridePolicy() {
  715. return { enabled: "relative" === this.anchor };
  716. } } } })], c12.prototype, "anchorPosition", void 0), e([y2({ type: Number, json: { write: true } })], c12.prototype, "heading", void 0), e([y2({ type: Number, json: { write: true } })], c12.prototype, "tilt", void 0), e([y2({ type: Number, json: { write: true } })], c12.prototype, "roll", void 0), e([y2({ readOnly: true })], c12.prototype, "isPrimitive", null), c12 = n10 = e([n("esri.symbols.ObjectSymbol3DLayer")], c12);
  717. var l15 = c12;
  718. // node_modules/@arcgis/core/symbols/PathSymbol3DLayer.js
  719. var n11;
  720. var d9 = n11 = class extends a9 {
  721. constructor(t13) {
  722. super(t13), this.material = null, this.castShadows = true, this.type = "path", this.profile = "circle", this.join = "miter", this.cap = "butt", this.width = void 0, this.height = void 0, this.anchor = "center", this.profileRotation = "all";
  723. }
  724. readWidth(t13, e7) {
  725. return null != t13 ? t13 : null == e7.height && null != e7.size ? e7.size : void 0;
  726. }
  727. readHeight(t13, e7) {
  728. return null != t13 ? t13 : null == e7.width && null != e7.size ? e7.size : void 0;
  729. }
  730. clone() {
  731. return new n11({ enabled: this.enabled, material: r(this.material) ? this.material.clone() : null, castShadows: this.castShadows, profile: this.profile, join: this.join, cap: this.cap, width: this.width, height: this.height, profileRotation: this.profileRotation, anchor: this.anchor });
  732. }
  733. };
  734. e([y2({ type: l10, json: { write: true } })], d9.prototype, "material", void 0), e([y2({ type: Boolean, nonNullable: true, json: { write: true, default: true } })], d9.prototype, "castShadows", void 0), e([r3({ Path: "path" }, { readOnly: true })], d9.prototype, "type", void 0), e([y2({ type: ["circle", "quad"], json: { write: true, default: "circle" } })], d9.prototype, "profile", void 0), e([y2({ type: a4, json: { write: true, default: "miter" } })], d9.prototype, "join", void 0), e([y2({ type: i2, json: { write: true, default: "butt" } })], d9.prototype, "cap", void 0), e([y2({ type: Number, json: { write: { enabled: true, target: { width: { type: Number }, size: { type: Number } } } } })], d9.prototype, "width", void 0), e([o2("width", ["width", "size", "height"])], d9.prototype, "readWidth", null), e([y2({ type: Number, json: { write: true } })], d9.prototype, "height", void 0), e([o2("height", ["height", "size", "width"])], d9.prototype, "readHeight", null), e([y2({ type: ["center", "bottom", "top"], json: { write: true, default: "center" } })], d9.prototype, "anchor", void 0), e([y2({ type: ["heading", "all"], json: { write: true, default: "all" } })], d9.prototype, "profileRotation", void 0), d9 = n11 = e([n("esri.symbols.PathSymbol3DLayer")], d9);
  735. var c13 = d9;
  736. // node_modules/@arcgis/core/symbols/support/Symbol3DHalo.js
  737. var m15;
  738. var l16 = m15 = class extends l {
  739. constructor() {
  740. super(...arguments), this.color = new l2([0, 0, 0, 1]), this.size = 0;
  741. }
  742. clone() {
  743. const o9 = { color: y(this.color), size: this.size };
  744. return new m15(o9);
  745. }
  746. };
  747. e([y2(p11)], l16.prototype, "color", void 0), e([y2(a10)], l16.prototype, "size", void 0), l16 = m15 = e([n("esri.symbols.support.Symbol3DHalo")], l16);
  748. // node_modules/@arcgis/core/symbols/support/Symbol3DTextBackground.js
  749. var c14 = class extends i(l) {
  750. constructor(o9) {
  751. super(o9), this.color = null;
  752. }
  753. };
  754. e([y2(p11)], c14.prototype, "color", void 0), c14 = e([n("esri.symbols.support.Symbol3DTextBackground")], c14);
  755. // node_modules/@arcgis/core/symbols/TextSymbol3DLayer.js
  756. var g3;
  757. var d10 = g3 = class extends a9 {
  758. constructor(t13) {
  759. super(t13), this._userSize = void 0, this.halo = null, this.horizontalAlignment = "center", this.lineHeight = 1, this.material = null, this.background = null, this.text = null, this.type = "text", this.verticalAlignment = "baseline";
  760. }
  761. get font() {
  762. return this._get("font") || null;
  763. }
  764. set font(t13) {
  765. r(t13) && r(this._userSize) && (t13.size = this._userSize), this._set("font", t13);
  766. }
  767. writeFont(t13, o9, e7, r7) {
  768. const i9 = { ...r7, textSymbol3D: true };
  769. o9.font = t13.write({}, i9), delete o9.font.size;
  770. }
  771. get size() {
  772. return r(this._userSize) ? this._userSize : r(this.font) && null != this.font.size ? this.font.size : 9;
  773. }
  774. set size(t13) {
  775. this._userSize = t13, r(this.font) && (this.font.size = this._userSize), this.notifyChange("size");
  776. }
  777. clone() {
  778. const t13 = new g3({ enabled: this.enabled, font: this.font && y(this.font), halo: this.halo && y(this.halo), horizontalAlignment: this.horizontalAlignment, lineHeight: this.lineHeight, material: r(this.material) ? this.material.clone() : null, text: this.text, verticalAlignment: this.verticalAlignment, background: y(this.background) });
  779. return t13._userSize = this._userSize, t13;
  780. }
  781. static fromTextSymbol(t13) {
  782. return new g3({ font: r(t13.font) ? t13.font.clone() : new m10(), halo: z(t13.haloColor, t13.haloSize), horizontalAlignment: t13.horizontalAlignment, lineHeight: t13.lineHeight, material: t13.color ? new l10({ color: t13.color.clone() }) : null, text: t13.text, verticalAlignment: t13.verticalAlignment, background: t13.backgroundColor ? new c14({ color: t13.backgroundColor.clone() }) : null });
  783. }
  784. };
  785. function z(t13, e7) {
  786. return t13 && null != e7 && e7 > 0 ? new l16({ color: y(t13), size: e7 }) : null;
  787. }
  788. e([y2({ type: m10, json: { write: true } })], d10.prototype, "font", null), e([r2("font")], d10.prototype, "writeFont", null), e([y2({ type: l16, json: { write: true } })], d10.prototype, "halo", void 0), e([y2({ ...m9, json: { default: "center", write: true } })], d10.prototype, "horizontalAlignment", void 0), e([y2({ ...n8, json: { default: 1, write: true } })], d10.prototype, "lineHeight", void 0), e([y2({ type: l10, json: { write: true } })], d10.prototype, "material", void 0), e([y2({ type: c14, json: { write: true } })], d10.prototype, "background", void 0), e([y2(a10)], d10.prototype, "size", null), e([y2({ type: String, json: { write: true } })], d10.prototype, "text", void 0), e([r3({ Text: "text" }, { readOnly: true })], d10.prototype, "type", void 0), e([y2({ ...p9, json: { default: "baseline", write: true } })], d10.prototype, "verticalAlignment", void 0), d10 = g3 = e([n("esri.symbols.TextSymbol3DLayer")], d10);
  789. var j5 = d10;
  790. // node_modules/@arcgis/core/symbols/WaterSymbol3DLayer.js
  791. var l17;
  792. var c15 = l17 = class extends a9 {
  793. constructor(e7) {
  794. super(e7), this.color = m16.clone(), this.type = "water", this.waterbodySize = "medium", this.waveDirection = null, this.waveStrength = "moderate";
  795. }
  796. clone() {
  797. return new l17({ color: y(this.color), waterbodySize: this.waterbodySize, waveDirection: this.waveDirection, waveStrength: this.waveStrength });
  798. }
  799. };
  800. e([y2({ type: l2, nonNullable: true, json: { type: [T], write: (e7, r7, t13) => r7[t13] = e7.toArray(l2.AlphaMode.UNLESS_OPAQUE), default: () => m16.clone(), defaultEquals: (e7) => e7.toCss(true) === m16.toCss(true) } })], c15.prototype, "color", void 0), e([r3({ Water: "water" }, { readOnly: true })], c15.prototype, "type", void 0), e([y2({ type: ["small", "medium", "large"], json: { write: true, default: "medium" } })], c15.prototype, "waterbodySize", void 0), e([y2({ type: Number, json: { write: true, default: null } })], c15.prototype, "waveDirection", void 0), e([y2({ type: ["calm", "rippled", "slight", "moderate"], json: { write: true, default: "moderate" } })], c15.prototype, "waveStrength", void 0), c15 = l17 = e([n("esri.symbols.WaterSymbol3DLayer")], c15);
  801. var m16 = new l2([0, 119, 190]);
  802. var n12 = c15;
  803. // node_modules/@arcgis/core/symbols/Symbol3D.js
  804. var v2 = { icon: S3, object: l15, line: h6, path: c13, fill: f4, extrude: d5, text: j5, water: n12 };
  805. var C = j.ofType({ base: a9, key: "type", typeMap: v2, errorContext: "symbol-layer" });
  806. var T2 = class extends a3 {
  807. constructor(e7) {
  808. super(e7), this.styleOrigin = null, this.thumbnail = null, this.type = null;
  809. const t13 = this.__accessor__ && this.__accessor__.metadatas && this.__accessor__.metadatas.symbolLayers, o9 = t13 && t13.type || j;
  810. this._set("symbolLayers", new o9());
  811. }
  812. get color() {
  813. return null;
  814. }
  815. set color(e7) {
  816. this.constructed && s.getLogger(this.declaredClass).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.");
  817. }
  818. set symbolLayers(e7) {
  819. n2(e7, this._get("symbolLayers"));
  820. }
  821. readStyleOrigin(e7, r7, t13) {
  822. if (e7.styleUrl && e7.name) {
  823. const r8 = c(e7.styleUrl, t13);
  824. return new a6({ styleUrl: r8, name: e7.name });
  825. }
  826. if (e7.styleName && e7.name)
  827. return new a6({ portal: t13 && t13.portal || j2.getDefault(), styleName: e7.styleName, name: e7.name });
  828. t13 && t13.messages && t13.messages.push(new t2("symbol3d:incomplete-style-origin", "Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property", { context: t13, definition: e7 }));
  829. }
  830. writeStyleOrigin(e7, r7, t13, o9) {
  831. if (e7.styleUrl && e7.name) {
  832. let t14 = m2(e7.styleUrl, o9);
  833. K(t14) && (t14 = F(t14)), r7.styleOrigin = { styleUrl: t14, name: e7.name };
  834. } else
  835. e7.styleName && e7.name && (e7.portal && o9 && o9.portal && !N(e7.portal.restUrl, o9.portal.restUrl) ? o9 && o9.messages && o9.messages.push(new t2("symbol:cross-portal", "The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.", { symbol: this })) : r7.styleOrigin = { styleName: e7.styleName, name: e7.name });
  836. }
  837. normalizeCtorArgs(e7) {
  838. return e7 instanceof a9 || e7 && v2[e7.type] ? { symbolLayers: [e7] } : Array.isArray(e7) ? { symbolLayers: e7 } : e7;
  839. }
  840. };
  841. e([y2({ json: { read: false, write: false } })], T2.prototype, "color", null), e([y2({ type: C, nonNullable: true, json: { write: true } }), s4(t3)], T2.prototype, "symbolLayers", null), e([y2({ type: a6 })], T2.prototype, "styleOrigin", void 0), e([o2("styleOrigin")], T2.prototype, "readStyleOrigin", null), e([r2("styleOrigin", { "styleOrigin.styleUrl": { type: String }, "styleOrigin.styleName": { type: String }, "styleOrigin.name": { type: String } })], T2.prototype, "writeStyleOrigin", null), e([y2({ type: p4, json: { read: false } })], T2.prototype, "thumbnail", void 0), e([y2({ type: ["point-3d", "line-3d", "polygon-3d", "mesh-3d", "label-3d"], readOnly: true })], T2.prototype, "type", void 0), T2 = e([n("esri.symbols.Symbol3D")], T2);
  842. var k = T2;
  843. // node_modules/@arcgis/core/symbols/callouts/Callout3D.js
  844. var t12 = class extends l {
  845. constructor(r7) {
  846. super(r7), this.visible = true;
  847. }
  848. clone() {
  849. }
  850. };
  851. e([y2({ type: ["line"], readOnly: true, json: { read: false, write: { ignoreOrigin: true } } })], t12.prototype, "type", void 0), e([y2({ readOnly: true })], t12.prototype, "visible", void 0), t12 = e([n("esri.symbols.callouts.Callout3D")], t12);
  852. var p21 = t12;
  853. // node_modules/@arcgis/core/chunks/LineCallout3DBorder.js
  854. var l18;
  855. var a13 = l18 = class extends l {
  856. constructor() {
  857. super(...arguments), this.color = new l2("white");
  858. }
  859. clone() {
  860. return new l18({ color: y(this.color) });
  861. }
  862. };
  863. e([y2(p11)], a13.prototype, "color", void 0), a13 = l18 = e([n("esri.symbols.callouts.LineCallout3DBorder")], a13);
  864. var i6 = a13;
  865. var m17 = Object.freeze(Object.defineProperty({ __proto__: null, default: i6 }, Symbol.toStringTag, { value: "Module" }));
  866. // node_modules/@arcgis/core/symbols/callouts/LineCallout3D.js
  867. var u6;
  868. var d11 = u6 = class extends p21 {
  869. constructor(o9) {
  870. super(o9), this.type = "line", this.color = new l2([0, 0, 0, 1]), this.size = e2(1), this.border = null;
  871. }
  872. get visible() {
  873. return this.size > 0 && r(this.color) && this.color.a > 0;
  874. }
  875. clone() {
  876. return new u6({ color: y(this.color), size: this.size, border: y(this.border) });
  877. }
  878. };
  879. e([r3({ line: "line" }, { readOnly: true })], d11.prototype, "type", void 0), e([y2(p11)], d11.prototype, "color", void 0), e([y2(a10)], d11.prototype, "size", void 0), e([y2({ type: i6, json: { write: true } })], d11.prototype, "border", void 0), e([y2({ readOnly: true })], d11.prototype, "visible", null), d11 = u6 = e([n("esri.symbols.callouts.LineCallout3D")], d11);
  880. var y6 = d11;
  881. // node_modules/@arcgis/core/symbols/callouts/calloutUtils.js
  882. function n13(e7) {
  883. if (!e7)
  884. return false;
  885. const r7 = e7.verticalOffset;
  886. return !!r7 && !(r7.screenLength <= 0 || r(r7.maxWorldLength) && r7.maxWorldLength <= 0);
  887. }
  888. function o8(t13) {
  889. if (!t13)
  890. return false;
  891. if (!t13.supportsCallout || !t13.supportsCallout())
  892. return false;
  893. const e7 = t13.callout;
  894. return !!e7 && (!!e7.visible && !!n13(t13));
  895. }
  896. var u7 = { types: { key: "type", base: p21, typeMap: { line: y6 } }, json: { write: true } };
  897. // node_modules/@arcgis/core/symbols/support/Symbol3DVerticalOffset.js
  898. var n14;
  899. var p22 = n14 = class extends l {
  900. constructor(r7) {
  901. super(r7), this.screenLength = 0, this.minWorldLength = 0, this.maxWorldLength = null;
  902. }
  903. clone() {
  904. return new n14({ screenLength: this.screenLength, minWorldLength: this.minWorldLength, maxWorldLength: this.maxWorldLength });
  905. }
  906. };
  907. e([y2(a10)], p22.prototype, "screenLength", void 0), e([y2({ type: Number, nonNullable: true, json: { write: true, default: 0 } })], p22.prototype, "minWorldLength", void 0), e([y2({ type: Number, json: { write: true } })], p22.prototype, "maxWorldLength", void 0), p22 = n14 = e([n("esri.symbols.support.Symbol3DVerticalOffset")], p22);
  908. var i7 = p22;
  909. // node_modules/@arcgis/core/symbols/LabelSymbol3D.js
  910. var n15;
  911. var u8 = j.ofType({ base: null, key: "type", typeMap: { text: j5 } });
  912. var f7 = n15 = class extends k {
  913. constructor(t13) {
  914. super(t13), this.verticalOffset = null, this.callout = null, this.styleOrigin = null, this.symbolLayers = new u8(), this.type = "label-3d";
  915. }
  916. supportsCallout() {
  917. return true;
  918. }
  919. hasVisibleCallout() {
  920. return o8(this);
  921. }
  922. hasVisibleVerticalOffset() {
  923. return n13(this);
  924. }
  925. clone() {
  926. return new n15({ styleOrigin: y(this.styleOrigin), symbolLayers: y(this.symbolLayers), thumbnail: y(this.thumbnail), callout: y(this.callout), verticalOffset: y(this.verticalOffset) });
  927. }
  928. static fromTextSymbol(t13) {
  929. return new n15({ symbolLayers: [j5.fromTextSymbol(t13)] });
  930. }
  931. };
  932. e([y2({ type: i7, json: { write: true } })], f7.prototype, "verticalOffset", void 0), e([y2(u7)], f7.prototype, "callout", void 0), e([y2({ json: { read: false, write: false } })], f7.prototype, "styleOrigin", void 0), e([y2({ type: u8 })], f7.prototype, "symbolLayers", void 0), e([r3({ LabelSymbol3D: "label-3d" }, { readOnly: true })], f7.prototype, "type", void 0), f7 = n15 = e([n("esri.symbols.LabelSymbol3D")], f7);
  933. var b2 = f7;
  934. // node_modules/@arcgis/core/symbols/LineSymbol3D.js
  935. var l19;
  936. var a14 = j.ofType({ base: null, key: "type", typeMap: { line: h6, path: c13 } });
  937. var n16 = j.ofType({ base: null, key: "type", typeMap: { line: h6, path: c13 } });
  938. var c16 = l19 = class extends k {
  939. constructor(o9) {
  940. super(o9), this.symbolLayers = new a14(), this.type = "line-3d";
  941. }
  942. clone() {
  943. return new l19({ styleOrigin: y(this.styleOrigin), symbolLayers: y(this.symbolLayers), thumbnail: y(this.thumbnail) });
  944. }
  945. static fromSimpleLineSymbol(o9) {
  946. return new l19({ symbolLayers: [h6.fromSimpleLineSymbol(o9)] });
  947. }
  948. };
  949. e([y2({ type: a14, json: { type: n16 } })], c16.prototype, "symbolLayers", void 0), e([r3({ LineSymbol3D: "line-3d" }, { readOnly: true })], c16.prototype, "type", void 0), c16 = l19 = e([n("esri.symbols.LineSymbol3D")], c16);
  950. var b3 = c16;
  951. // node_modules/@arcgis/core/symbols/MeshSymbol3D.js
  952. var i8;
  953. var y7 = j.ofType({ base: null, key: "type", typeMap: { fill: f4 } });
  954. var a15 = i8 = class extends k {
  955. constructor(o9) {
  956. super(o9), this.symbolLayers = new y7(), this.type = "mesh-3d";
  957. }
  958. clone() {
  959. return new i8({ styleOrigin: y(this.styleOrigin), symbolLayers: y(this.symbolLayers), thumbnail: y(this.thumbnail) });
  960. }
  961. static fromSimpleFillSymbol(o9) {
  962. return new i8({ symbolLayers: [f4.fromSimpleFillSymbol(o9)] });
  963. }
  964. };
  965. e([y2({ type: y7 })], a15.prototype, "symbolLayers", void 0), e([r3({ MeshSymbol3D: "mesh-3d" }, { readOnly: true })], a15.prototype, "type", void 0), a15 = i8 = e([n("esri.symbols.MeshSymbol3D")], a15);
  966. var c17 = a15;
  967. // node_modules/@arcgis/core/symbols/PictureFillSymbol.js
  968. var c18;
  969. var u9 = c18 = class extends p7 {
  970. constructor(...t13) {
  971. super(...t13), this.type = "picture-fill", this.url = null, this.xscale = 1, this.yscale = 1, this.width = 12, this.height = 12, this.xoffset = 0, this.yoffset = 0, this.source = null;
  972. }
  973. normalizeCtorArgs(t13, s8, e7, r7) {
  974. if (t13 && "string" != typeof t13 && null == t13.imageData)
  975. return t13;
  976. const i9 = {};
  977. return t13 && (i9.url = t13), s8 && (i9.outline = s8), null != e7 && (i9.width = o3(e7)), null != r7 && (i9.height = o3(r7)), i9;
  978. }
  979. clone() {
  980. const t13 = new c18({ color: y(this.color), height: this.height, outline: this.outline && this.outline.clone(), url: this.url, width: this.width, xoffset: this.xoffset, xscale: this.xscale, yoffset: this.yoffset, yscale: this.yscale });
  981. return t13._set("source", y(this.source)), t13;
  982. }
  983. hash() {
  984. var _a;
  985. return `${super.hash()}.${(_a = this.color) == null ? void 0 : _a.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`;
  986. }
  987. };
  988. e([r3({ esriPFS: "picture-fill" }, { readOnly: true })], u9.prototype, "type", void 0), e([y2(m6)], u9.prototype, "url", void 0), e([y2({ type: Number, json: { write: true } })], u9.prototype, "xscale", void 0), e([y2({ type: Number, json: { write: true } })], u9.prototype, "yscale", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], u9.prototype, "width", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], u9.prototype, "height", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], u9.prototype, "xoffset", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], u9.prototype, "yoffset", void 0), e([y2(c3)], u9.prototype, "source", void 0), u9 = c18 = e([n("esri.symbols.PictureFillSymbol")], u9);
  989. var a16 = u9;
  990. // node_modules/@arcgis/core/symbols/PointSymbol3D.js
  991. var b4;
  992. var f8 = j.ofType({ base: null, key: "type", typeMap: { icon: S3, object: l15, text: j5 } });
  993. var S4 = b4 = class extends k {
  994. constructor(t13) {
  995. super(t13), this.verticalOffset = null, this.callout = null, this.symbolLayers = new f8(), this.type = "point-3d";
  996. }
  997. supportsCallout() {
  998. if ((this.symbolLayers ? this.symbolLayers.length : 0) < 1)
  999. return false;
  1000. for (const t13 of this.symbolLayers.items)
  1001. switch (t13.type) {
  1002. case "icon":
  1003. case "text":
  1004. case "object":
  1005. continue;
  1006. default:
  1007. return false;
  1008. }
  1009. return true;
  1010. }
  1011. hasVisibleCallout() {
  1012. return o8(this);
  1013. }
  1014. hasVisibleVerticalOffset() {
  1015. return n13(this);
  1016. }
  1017. clone() {
  1018. return new b4({ verticalOffset: y(this.verticalOffset), callout: y(this.callout), styleOrigin: y(this.styleOrigin), symbolLayers: y(this.symbolLayers), thumbnail: y(this.thumbnail) });
  1019. }
  1020. static fromSimpleMarkerSymbol(t13) {
  1021. return new b4({ symbolLayers: [S3.fromSimpleMarkerSymbol(t13)] });
  1022. }
  1023. static fromPictureMarkerSymbol(t13) {
  1024. return new b4({ symbolLayers: [S3.fromPictureMarkerSymbol(t13)] });
  1025. }
  1026. static fromCIMSymbol(t13) {
  1027. var _a, _b;
  1028. const o9 = (_b = (_a = t13.data) == null ? void 0 : _a.symbol) == null ? void 0 : _b.type;
  1029. if ("CIMPointSymbol" !== o9)
  1030. return null;
  1031. const r7 = t13.data.symbol;
  1032. return new b4((r7 == null ? void 0 : r7.callout) ? { symbolLayers: [S3.fromCIMSymbol(t13)], callout: { type: "line", size: 0.5, color: [0, 0, 0] }, verticalOffset: { screenLength: 40 } } : { symbolLayers: [S3.fromCIMSymbol(t13)] });
  1033. }
  1034. static fromTextSymbol(t13) {
  1035. return new b4({ symbolLayers: [j5.fromTextSymbol(t13)] });
  1036. }
  1037. };
  1038. e([y2({ type: i7, json: { write: true } })], S4.prototype, "verticalOffset", void 0), e([y2(u7)], S4.prototype, "callout", void 0), e([y2({ type: f8, json: { origins: { "web-scene": { write: true } } } })], S4.prototype, "symbolLayers", void 0), e([r3({ PointSymbol3D: "point-3d" }, { readOnly: true })], S4.prototype, "type", void 0), S4 = b4 = e([n("esri.symbols.PointSymbol3D")], S4);
  1039. var h7 = S4;
  1040. // node_modules/@arcgis/core/symbols/PolygonSymbol3D.js
  1041. var L;
  1042. var u10 = j.ofType({ base: null, key: "type", typeMap: { extrude: d5, fill: f4, icon: S3, line: h6, object: l15, text: j5, water: n12 } });
  1043. var j6 = L = class extends k {
  1044. constructor(o9) {
  1045. super(o9), this.symbolLayers = new u10(), this.type = "polygon-3d";
  1046. }
  1047. clone() {
  1048. return new L({ styleOrigin: y(this.styleOrigin), symbolLayers: y(this.symbolLayers), thumbnail: y(this.thumbnail) });
  1049. }
  1050. static fromJSON(o9) {
  1051. const e7 = new L();
  1052. if (e7.read(o9), 2 === e7.symbolLayers.length && "fill" === e7.symbolLayers.getItemAt(0).type && "line" === e7.symbolLayers.getItemAt(1).type) {
  1053. const r7 = e7.symbolLayers.getItemAt(0), s8 = e7.symbolLayers.getItemAt(1);
  1054. !s8.enabled || o9.symbolLayers && o9.symbolLayers[1] && false === o9.symbolLayers[1].enable || (r7.outline = { size: s8.size, color: r(s8.material) ? s8.material.color : null }), e7.symbolLayers.removeAt(1);
  1055. }
  1056. return e7;
  1057. }
  1058. static fromSimpleFillSymbol(o9) {
  1059. return new L({ symbolLayers: [f4.fromSimpleFillSymbol(o9)] });
  1060. }
  1061. };
  1062. e([y2({ type: u10, json: { write: true } })], j6.prototype, "symbolLayers", void 0), e([r3({ PolygonSymbol3D: "polygon-3d" }, { readOnly: true })], j6.prototype, "type", void 0), j6 = L = e([n("esri.symbols.PolygonSymbol3D")], j6);
  1063. var S5 = j6;
  1064. // node_modules/@arcgis/core/symbols/WebStyleSymbol.js
  1065. var y8;
  1066. var h8 = y8 = class extends a3 {
  1067. constructor(t13) {
  1068. super(t13), this.styleName = null, this.portal = null, this.styleUrl = null, this.thumbnail = null, this.name = null, this.type = "web-style";
  1069. }
  1070. get _fetchCacheKey() {
  1071. const t13 = r(this.portal) ? this.portal : j2.getDefault(), e7 = t13.user ? t13.user.username : null;
  1072. return `${this.styleName}:${this.styleUrl}:${this.name}:${e7}:${t13.url}`;
  1073. }
  1074. read(t13, e7) {
  1075. this.portal = e7 ? e7.portal : void 0, super.read(t13, e7);
  1076. }
  1077. clone() {
  1078. return new y8({ name: this.name, styleUrl: this.styleUrl, styleName: this.styleName, portal: this.portal });
  1079. }
  1080. fetchSymbol(t13) {
  1081. return this._fetchSymbol("webRef", t13);
  1082. }
  1083. fetchCIMSymbol(t13) {
  1084. return this._fetchSymbol("cimRef", t13);
  1085. }
  1086. async _fetchSymbol(t13, s8) {
  1087. const l20 = r(s8) ? s8.cache : null, i9 = l20 ? this._fetchCacheKey : null;
  1088. if (r(l20)) {
  1089. const t14 = i9 && l20.get(i9);
  1090. if (t14)
  1091. return t14.clone();
  1092. }
  1093. const p23 = await u11();
  1094. f(s8);
  1095. const a17 = p23.resolveWebStyleSymbol(this, { portal: this.portal }, t13, s8);
  1096. a17.catch((t14) => {
  1097. s.getLogger(this.declaredClass).error("#fetchSymbol()", "Failed to create symbol from style", t14);
  1098. });
  1099. const c20 = await a17;
  1100. return "webRef" === t13 && "point-3d" === c20.type || "cimRef" === t13 && "cim" === c20.type ? (r(l20) && l20.set(i9, c20.clone()), c20) : null;
  1101. }
  1102. };
  1103. function u11() {
  1104. return import("./webStyleSymbolUtils-HO2UCQAH.js");
  1105. }
  1106. e([y2({ json: { write: false } })], h8.prototype, "color", void 0), e([y2({ type: String, json: { write: true } })], h8.prototype, "styleName", void 0), e([y2({ type: j2, json: { write: false } })], h8.prototype, "portal", void 0), e([y2({ type: String, json: { read: p, write: f2 } })], h8.prototype, "styleUrl", void 0), e([y2({ type: p4, json: { read: false } })], h8.prototype, "thumbnail", void 0), e([y2({ type: String, json: { write: true } })], h8.prototype, "name", void 0), e([r3({ styleSymbolReference: "web-style" }, { readOnly: true })], h8.prototype, "type", void 0), e([y2()], h8.prototype, "_fetchCacheKey", null), h8 = y8 = e([n("esri.symbols.WebStyleSymbol")], h8);
  1107. var f9 = h8;
  1108. // node_modules/@arcgis/core/symbols.js
  1109. function x(e7) {
  1110. if (!e7)
  1111. return false;
  1112. switch (e7.type) {
  1113. case "picture-fill":
  1114. case "picture-marker":
  1115. case "simple-fill":
  1116. case "simple-line":
  1117. case "simple-marker":
  1118. case "text":
  1119. case "cim":
  1120. return true;
  1121. default:
  1122. return false;
  1123. }
  1124. }
  1125. function c19(e7) {
  1126. if (!e7)
  1127. return false;
  1128. switch (e7.type) {
  1129. case "label-3d":
  1130. case "line-3d":
  1131. case "mesh-3d":
  1132. case "point-3d":
  1133. case "polygon-3d":
  1134. return true;
  1135. default:
  1136. return false;
  1137. }
  1138. }
  1139. var j7 = { base: a3, key: "type", typeMap: { "simple-fill": S2, "picture-fill": a16, "picture-marker": n7, "simple-line": m4, "simple-marker": y3, text: m11, "label-3d": b2, "line-3d": b3, "mesh-3d": c17, "point-3d": h7, "polygon-3d": S5, "web-style": f9, cim: d }, errorContext: "symbol" };
  1140. var D = { base: a3, key: "type", typeMap: { "picture-marker": n7, "simple-marker": y3, text: m11, "web-style": f9, cim: d }, errorContext: "symbol" };
  1141. var k2 = s2({ types: j7 });
  1142. var M = { base: a3, key: "type", typeMap: { "simple-fill": S2, "picture-fill": a16, "picture-marker": n7, "simple-line": m4, "simple-marker": y3, text: m11, "line-3d": b3, "mesh-3d": c17, "point-3d": h7, "polygon-3d": S5, "web-style": f9, cim: d }, errorContext: "symbol" };
  1143. var P = { base: a3, key: "type", typeMap: { text: m11, "label-3d": b2 }, errorContext: "symbol" };
  1144. var h9 = { base: a3, key: "type", typeMap: { "line-3d": b3, "mesh-3d": c17, "point-3d": h7, "polygon-3d": S5, "web-style": f9, cim: d }, errorContext: "symbol" };
  1145. var F2 = { base: a3, key: "type", typeMap: { "label-3d": b2 }, errorContext: "symbol" };
  1146. var g4 = S(j7);
  1147. export {
  1148. t8 as t,
  1149. l10 as l,
  1150. m4 as m,
  1151. j3 as j,
  1152. p19 as p,
  1153. d4 as d,
  1154. a6 as a,
  1155. p4 as p2,
  1156. k,
  1157. b2 as b,
  1158. b3 as b2,
  1159. c17 as c,
  1160. n7 as n,
  1161. h7 as h,
  1162. S5 as S,
  1163. S2,
  1164. y3 as y,
  1165. m11 as m2,
  1166. f9 as f,
  1167. x,
  1168. c19 as c2,
  1169. j7 as j2,
  1170. D,
  1171. k2,
  1172. M,
  1173. P,
  1174. h9 as h2,
  1175. F2 as F,
  1176. g4 as g
  1177. };
  1178. //# sourceMappingURL=chunk-3Z755LKF.js.map