12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241 |
- import {
- a as a4,
- i as i2,
- u
- } from "./chunk-LTZ5XXDV.js";
- import {
- d
- } from "./chunk-DLMAGHHC.js";
- import {
- i
- } from "./chunk-JOYXMSKE.js";
- import {
- a as a3
- } from "./chunk-MCWCB5IY.js";
- import {
- c,
- f as f2,
- m as m2,
- p
- } from "./chunk-4ONPMX2F.js";
- import {
- e as e2,
- o as o3
- } from "./chunk-UVVU4UUO.js";
- import {
- l as l2
- } from "./chunk-X4SA4ELJ.js";
- import {
- r as r3
- } from "./chunk-5N7JLUJJ.js";
- import {
- n as n2,
- t as t3
- } from "./chunk-ZAY3CMAZ.js";
- import {
- n as n3,
- r as r4
- } from "./chunk-P3XKUGLS.js";
- import {
- j as j2
- } from "./chunk-LU5IJZB4.js";
- import {
- a as a2
- } from "./chunk-RYY6632W.js";
- import {
- j
- } from "./chunk-LBW34VZ2.js";
- import {
- o,
- s as s3
- } from "./chunk-HZRKBTHJ.js";
- import {
- F,
- G,
- K,
- N,
- X,
- et,
- nt
- } from "./chunk-VEGAOVMY.js";
- import {
- o as o2
- } from "./chunk-6T6G6LCQ.js";
- import {
- s as s4
- } from "./chunk-YEJL5NEF.js";
- import {
- r as r2
- } from "./chunk-PQFTYGF5.js";
- import {
- e,
- l3 as l,
- m,
- n5 as n,
- s5 as s2,
- t5 as t2,
- y3 as y2
- } from "./chunk-2Z2TG5CU.js";
- import {
- S,
- T,
- a
- } from "./chunk-SQOPWYIT.js";
- import {
- f
- } from "./chunk-V6P2MAQQ.js";
- import {
- s2 as s
- } from "./chunk-E5O6P5I2.js";
- import {
- y
- } from "./chunk-SPWQ3AWG.js";
- import {
- r,
- t
- } from "./chunk-YXWMMD76.js";
- // node_modules/@arcgis/core/symbols/LineSymbol.js
- var i3 = class extends a3 {
- constructor(r7) {
- super(r7), this.type = "simple-line", this.width = 0.75;
- }
- hash() {
- return `${this.type}.${this.width}`;
- }
- };
- 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);
- var c2 = i3;
- // node_modules/@arcgis/core/symbols/support/lineMarkers.js
- var e3 = ["begin", "end", "begin-end"];
- var n4 = ["arrow", "circle", "square", "diamond", "cross", "x"];
- // node_modules/@arcgis/core/symbols/LineSymbolMarker.js
- var n5;
- var m3 = n5 = class extends l {
- constructor(r7) {
- super(r7), this.placement = "begin-end", this.type = "line-marker", this.style = "arrow";
- }
- writeStyle(r7, o9, e7, t13) {
- o9[e7] = "web-map" === (t13 == null ? void 0 : t13.origin) ? "arrow" : r7;
- }
- set color(r7) {
- this._set("color", r7);
- }
- readColor(r7) {
- return r7 && null != r7[0] ? [r7[0], r7[1], r7[2], r7[3] / 255] : r7;
- }
- writeColor(r7, o9, e7, t13) {
- "web-map" === (t13 == null ? void 0 : t13.origin) || (o9[e7] = r7);
- }
- clone() {
- return new n5({ color: y(this.color), placement: this.placement, style: this.style });
- }
- hash() {
- var _a;
- return `${this.placement}.${(_a = this.color) == null ? void 0 : _a.hash()}.${this.style}`;
- }
- };
- 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);
- var u2 = m3;
- // node_modules/@arcgis/core/symbols/SimpleLineSymbol.js
- var p2;
- 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" });
- var d2 = p2 = class extends c2 {
- constructor(...r7) {
- super(...r7), this.type = "simple-line", this.style = "solid", this.cap = "round", this.join = "round", this.marker = null, this.miterLimit = 2;
- }
- normalizeCtorArgs(r7, o9, e7, s8, i9, n17) {
- if (r7 && "string" != typeof r7)
- return r7;
- const l20 = {};
- 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;
- }
- clone() {
- var _a;
- 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() });
- }
- hash() {
- var _a, _b;
- 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()}`;
- }
- };
- 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);
- var m4 = d2;
- // node_modules/@arcgis/core/symbols/support/IconSymbol3DLayerResource.js
- var l3;
- var d3 = o()({ circle: "circle", square: "square", cross: "cross", x: "x", kite: "kite", triangle: "triangle" });
- var h2 = l3 = class extends l {
- constructor(r7) {
- super(r7);
- }
- readHref(r7, e7, o9) {
- return r7 ? c(r7, o9) : e7.dataURI;
- }
- writeHref(r7, e7, o9, c20) {
- r7 && (X(r7) ? e7.dataURI = r7 : (e7.href = m2(r7, c20), K(e7.href) && (e7.href = F(e7.href))));
- }
- clone() {
- return new l3({ href: this.href, primitive: this.primitive });
- }
- };
- 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);
- var j3 = "circle";
- // node_modules/@arcgis/core/symbols/support/ObjectSymbol3DLayerResource.js
- var n6;
- var a5 = o()({ sphere: "sphere", cylinder: "cylinder", cube: "cube", cone: "cone", diamond: "diamond", tetrahedron: "tetrahedron", invertedCone: "inverted-cone" });
- var m5 = n6 = class extends l {
- clone() {
- return new n6({ href: this.href, primitive: this.primitive });
- }
- };
- 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);
- var d4 = "sphere";
- // node_modules/@arcgis/core/symbols/support/StyleOrigin.js
- var p3;
- var l4 = p3 = class extends m {
- constructor(t13) {
- super(t13), this.name = null, this.styleUrl = null, this.styleName = null, this.portal = null;
- }
- clone() {
- return new p3({ name: this.name, styleUrl: this.styleUrl, styleName: this.styleName, portal: this.portal });
- }
- };
- 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);
- var a6 = l4;
- // node_modules/@arcgis/core/symbols/support/Thumbnail.js
- var t4;
- var p4 = t4 = class extends m {
- constructor() {
- super(...arguments), this.url = "";
- }
- clone() {
- return new t4({ url: this.url });
- }
- };
- e([y2({ type: String })], p4.prototype, "url", void 0), p4 = t4 = e([n("esri.symbols.support.Thumbnail")], p4);
- // node_modules/@arcgis/core/symbols/MarkerSymbol.js
- var p5 = class extends a3 {
- constructor(t13) {
- super(t13), this.angle = 0, this.type = null, this.xoffset = 0, this.yoffset = 0, this.size = 9;
- }
- hash() {
- return `${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`;
- }
- };
- 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);
- var i4 = p5;
- // node_modules/@arcgis/core/symbols/support/urlUtils.js
- function o4(a17, r7, t13) {
- return r7.imageData ? et({ mediaType: r7.contentType || "image/png", isBase64: true, data: r7.imageData }) : s5(r7.url, t13);
- }
- function s5(e7, t13) {
- var _a;
- 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);
- }
- function u3(e7, a17, r7, n17) {
- if (X(e7)) {
- const t13 = nt(e7);
- if (!t13)
- return;
- a17.contentType = t13.mediaType, a17.imageData = t13.data, r7 && r7.imageData === a17.imageData && r7.url && f2(r7.url, a17, "url", n17);
- } else
- f2(e7, a17, "url", n17);
- }
- var m6 = { json: { read: { source: ["imageData", "url"], reader: o4 }, write: { writer(e7, a17, r7, t13) {
- u3(e7, a17, this.source, t13);
- } } } };
- var c3 = { readOnly: true, json: { read: { source: ["imageData", "url"], reader(e7, a17, r7) {
- const t13 = {};
- return a17.imageData && (t13.imageData = a17.imageData), a17.contentType && (t13.contentType = a17.contentType), a17.url && (t13.url = s5(a17.url, r7)), t13;
- } } } };
- function p6(e7) {
- var _a, _b;
- 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));
- }
- // node_modules/@arcgis/core/symbols/PictureMarkerSymbol.js
- var l5;
- var a7 = l5 = class extends i4 {
- constructor(...r7) {
- super(...r7), this.color = null, this.type = "picture-marker", this.url = null, this.source = null, this.height = 12, this.width = 12, this.size = null;
- }
- normalizeCtorArgs(r7, t13, o9) {
- if (r7 && "string" != typeof r7 && null == r7.imageData)
- return r7;
- const s8 = {};
- return r7 && (s8.url = r7), null != t13 && (s8.width = o3(t13)), null != o9 && (s8.height = o3(o9)), s8;
- }
- readHeight(r7, t13) {
- return t13.size || r7;
- }
- readWidth(r7, t13) {
- return t13.size || r7;
- }
- clone() {
- const r7 = new l5({ angle: this.angle, height: this.height, url: this.url, width: this.width, xoffset: this.xoffset, yoffset: this.yoffset });
- return r7._set("source", y(this.source)), r7;
- }
- hash() {
- return `${super.hash()}.${this.height}.${this.url}.${this.width}`;
- }
- };
- 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);
- var n7 = a7;
- // node_modules/@arcgis/core/symbols/FillSymbol.js
- var l6 = class extends a3 {
- constructor(e7) {
- super(e7), this.outline = null, this.type = null;
- }
- hash() {
- return `${this.type}.${this.outline && this.outline.hash()}`;
- }
- };
- 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);
- var p7 = l6;
- // node_modules/@arcgis/core/symbols/SimpleFillSymbol.js
- var p8;
- var c4 = new s3({ esriSFSSolid: "solid", esriSFSNull: "none", esriSFSHorizontal: "horizontal", esriSFSVertical: "vertical", esriSFSForwardDiagonal: "forward-diagonal", esriSFSBackwardDiagonal: "backward-diagonal", esriSFSCross: "cross", esriSFSDiagonalCross: "diagonal-cross" });
- var m7 = p8 = class extends p7 {
- constructor(...o9) {
- super(...o9), this.color = new l2([0, 0, 0, 0.25]), this.outline = new m4(), this.type = "simple-fill", this.style = "solid";
- }
- normalizeCtorArgs(o9, r7, s8) {
- if (o9 && "string" != typeof o9)
- return o9;
- const e7 = {};
- return o9 && (e7.style = o9), r7 && (e7.outline = r7), s8 && (e7.color = s8), e7;
- }
- clone() {
- return new p8({ color: y(this.color), outline: this.outline && this.outline.clone(), style: this.style });
- }
- hash() {
- return `${super.hash()}${this.style}.${this.color && this.color.hash()}`;
- }
- };
- 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);
- var S2 = m7;
- // node_modules/@arcgis/core/symbols/SimpleMarkerSymbol.js
- var h3;
- var m8 = new s3({ esriSMSCircle: "circle", esriSMSSquare: "square", esriSMSCross: "cross", esriSMSX: "x", esriSMSDiamond: "diamond", esriSMSTriangle: "triangle", esriSMSPath: "path" });
- var u4 = h3 = class extends i4 {
- constructor(...e7) {
- 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();
- }
- normalizeCtorArgs(e7, o9, r7, t13) {
- if (e7 && "string" != typeof e7)
- return e7;
- const i9 = {};
- return e7 && (i9.style = e7), null != o9 && (i9.size = o3(o9)), r7 && (i9.outline = r7), t13 && (i9.color = t13), i9;
- }
- writeColor(e7, o9) {
- e7 && "x" !== this.style && "cross" !== this.style && (o9.color = e7.toJSON()), null === e7 && (o9.color = null);
- }
- set path(e7) {
- this.style = "path", this._set("path", e7);
- }
- clone() {
- 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 });
- }
- hash() {
- var _a;
- return `${super.hash()}.${this.color && this.color.hash()}.${this.path}.${this.style}.${(_a = this.outline) == null ? void 0 : _a.hash()}`;
- }
- };
- 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);
- var y3 = u4;
- // node_modules/@arcgis/core/symbols/support/textUtils.js
- var l7 = ["none", "underline", "line-through"];
- var t5 = ["normal", "italic", "oblique"];
- var r5 = ["normal", "lighter", "bold", "bolder"];
- var n8 = { type: Number, cast: (l20) => {
- const t13 = a(l20);
- return 0 === t13 ? 1 : a2(t13, 0.1, 4);
- }, nonNullable: true };
- var i5 = ["left", "right", "center"];
- var a8 = ["baseline", "top", "middle", "bottom"];
- var m9 = { type: i5, nonNullable: true };
- var p9 = { type: a8, nonNullable: true };
- // node_modules/@arcgis/core/symbols/Font.js
- var c5;
- var l8 = c5 = class extends l {
- constructor(t13) {
- super(t13), this.decoration = "none", this.family = "sans-serif", this.size = 9, this.style = "normal", this.weight = "normal";
- }
- castSize(t13) {
- return o3(t13);
- }
- clone() {
- return new c5({ decoration: this.decoration, family: this.family, size: this.size, style: this.style, weight: this.weight });
- }
- hash() {
- return `${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`;
- }
- };
- 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);
- var m10 = l8;
- // node_modules/@arcgis/core/symbols/TextSymbol.js
- var f3;
- var g = f3 = class extends a3 {
- constructor(...t13) {
- 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;
- }
- normalizeCtorArgs(t13, o9, e7) {
- if (t13 && "string" != typeof t13)
- return t13;
- const i9 = {};
- return t13 && (i9.text = t13), o9 && (i9.font = o9), e7 && (i9.color = e7), i9;
- }
- writeLineWidth(t13, o9, e7, i9) {
- i9 && "string" != typeof i9 ? i9.origin : o9[e7] = t13;
- }
- castLineWidth(t13) {
- return o3(t13);
- }
- writeLineHeight(t13, o9, e7, i9) {
- i9 && "string" != typeof i9 ? i9.origin : o9[e7] = t13;
- }
- clone() {
- 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 });
- }
- hash() {
- var _a;
- 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}`;
- }
- };
- 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);
- var m11 = g;
- // node_modules/@arcgis/core/symbols/Symbol3DLayer.js
- var p10 = class extends l {
- constructor(e7) {
- super(e7), this.enabled = true, this.type = null;
- }
- writeEnabled(e7, r7, o9) {
- e7 || (r7[o9] = e7);
- }
- };
- 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);
- var a9 = p10;
- // node_modules/@arcgis/core/symbols/support/materialUtils.js
- function s6(o9, t13) {
- const n17 = null != t13.transparency ? r4(t13.transparency) : 1, s8 = t13.color;
- return s8 && Array.isArray(s8) ? new l2([s8[0] || 0, s8[1] || 0, s8[2] || 0, n17]) : null;
- }
- function c6(r7, o9) {
- o9.color = r7.toJSON().slice(0, 3);
- const t13 = n3(r7.a);
- 0 !== t13 && (o9.transparency = t13);
- }
- 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 } } };
- var a10 = { type: Number, cast: o3, json: { write: true } };
- // node_modules/@arcgis/core/symbols/edges/Edges3D.js
- var l9 = class extends l {
- constructor(o9) {
- super(o9), this.color = new l2([0, 0, 0, 1]), this.extensionLength = 0, this.size = e2(1);
- }
- clone() {
- }
- cloneProperties() {
- return { color: y(this.color), size: this.size, extensionLength: this.extensionLength };
- }
- };
- 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);
- var m12 = l9;
- // node_modules/@arcgis/core/symbols/edges/SketchEdges3D.js
- var t6;
- var c7 = t6 = class extends m12 {
- constructor(r7) {
- super(r7), this.type = "sketch";
- }
- clone() {
- return new t6(this.cloneProperties());
- }
- };
- e([r3({ sketch: "sketch" }, { readOnly: true })], c7.prototype, "type", void 0), c7 = t6 = e([n("esri.symbols.edges.SketchEdges3D")], c7);
- var p12 = c7;
- // node_modules/@arcgis/core/symbols/edges/SolidEdges3D.js
- var t7;
- var p13 = t7 = class extends m12 {
- constructor(r7) {
- super(r7), this.type = "solid";
- }
- clone() {
- return new t7(this.cloneProperties());
- }
- };
- e([r3({ solid: "solid" }, { readOnly: true })], p13.prototype, "type", void 0), p13 = t7 = e([n("esri.symbols.support.SolidEdges3D")], p13);
- var c8 = p13;
- // node_modules/@arcgis/core/symbols/edges/utils.js
- var t8 = { types: { key: "type", base: m12, typeMap: { solid: c8, sketch: p12 } }, json: { write: true } };
- // node_modules/@arcgis/core/symbols/support/Symbol3DMaterial.js
- var p14;
- var l10 = p14 = class extends l {
- constructor(o9) {
- super(o9), this.color = null;
- }
- clone() {
- const o9 = { color: r(this.color) ? this.color.clone() : null };
- return new p14(o9);
- }
- };
- e([y2(p11)], l10.prototype, "color", void 0), l10 = p14 = e([n("esri.symbols.support.Symbol3DMaterial")], l10);
- // node_modules/@arcgis/core/symbols/ExtrudeSymbol3DLayer.js
- var l11;
- var c9 = l11 = class extends a9 {
- constructor(e7) {
- super(e7), this.type = "extrude", this.size = 1, this.material = null, this.castShadows = true, this.edges = null;
- }
- clone() {
- 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 });
- }
- };
- 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);
- var d5 = c9;
- // node_modules/@arcgis/core/symbols/patterns/LinePattern3D.js
- var t9 = class extends l {
- constructor(r7) {
- super(r7);
- }
- clone() {
- }
- };
- 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);
- var p15 = t9;
- // node_modules/@arcgis/core/symbols/patterns/lineStyles.js
- 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"];
- // node_modules/@arcgis/core/symbols/patterns/LineStylePattern3D.js
- var p16;
- 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" });
- var l12 = p16 = class extends p15 {
- constructor(o9) {
- super(o9), this.type = "style", this.style = "solid";
- }
- clone() {
- const o9 = { style: this.style };
- return new p16(o9);
- }
- };
- 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);
- var n9 = l12;
- // node_modules/@arcgis/core/symbols/patterns/Pattern3D.js
- var t10 = class extends l {
- constructor(r7) {
- super(r7);
- }
- clone() {
- }
- };
- 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);
- var p17 = t10;
- // node_modules/@arcgis/core/symbols/patterns/styles.js
- var a11 = ["backward-diagonal", "cross", "diagonal-cross", "forward-diagonal", "horizontal", "none", "solid", "vertical"];
- // node_modules/@arcgis/core/symbols/patterns/StylePattern3D.js
- var p18;
- var c10 = p18 = class extends p17 {
- constructor(t13) {
- super(t13), this.type = "style", this.style = "solid";
- }
- clone() {
- const t13 = { style: this.style };
- return new p18(t13);
- }
- };
- 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);
- var y4 = c10;
- // node_modules/@arcgis/core/symbols/patterns/utils.js
- var s7 = { types: { key: "type", base: p17, typeMap: { style: y4 } }, json: { write: true } };
- var o6 = { types: { key: "type", base: p15, typeMap: { style: n9 } }, json: { write: true } };
- // node_modules/@arcgis/core/symbols/support/colors.js
- var o7 = new l2("white");
- var r6 = new l2("black");
- var e4 = new l2([255, 255, 255, 0]);
- function t11(n17) {
- return 0 === n17.r && 0 === n17.g && 0 === n17.b;
- }
- // node_modules/@arcgis/core/symbols/support/Symbol3DFillMaterial.js
- var c11;
- var l13 = c11 = class extends l10 {
- constructor(o9) {
- super(o9), this.colorMixMode = null;
- }
- clone() {
- const o9 = { color: r(this.color) ? this.color.clone() : null, colorMixMode: this.colorMixMode };
- return new c11(o9);
- }
- };
- e([r3({ multiply: "multiply", replace: "replace", tint: "tint" })], l13.prototype, "colorMixMode", void 0), l13 = c11 = e([n("esri.symbols.support.Symbol3DFillMaterial")], l13);
- // node_modules/@arcgis/core/symbols/support/Symbol3DOutline.js
- var m13;
- var u5 = m13 = class extends l {
- constructor(t13) {
- super(t13), this.color = new l2([0, 0, 0, 1]), this.size = e2(1), this.pattern = null, this.patternCap = "butt";
- }
- clone() {
- const t13 = { color: r(this.color) ? this.color.clone() : null, size: this.size, pattern: r(this.pattern) ? this.pattern.clone() : null, patternCap: this.patternCap };
- return new m13(t13);
- }
- };
- 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() {
- return { enabled: r(this.pattern) };
- } } } })], u5.prototype, "patternCap", void 0), u5 = m13 = e([n("esri.symbols.support.Symbol3DOutline")], u5);
- // node_modules/@arcgis/core/symbols/FillSymbol3DLayer.js
- var d6;
- var h5 = d6 = class extends a9 {
- constructor(t13) {
- super(t13), this.type = "fill", this.material = null, this.pattern = null, this.castShadows = true, this.outline = null, this.edges = null;
- }
- clone() {
- 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 };
- return new d6(t13);
- }
- static fromSimpleFillSymbol(t13) {
- var _a, _b, _c, _d, _e, _f;
- 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 };
- 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 });
- }
- };
- 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);
- var f4 = h5;
- // node_modules/@arcgis/core/symbols/support/Symbol3DAnchorPosition2D.js
- var e5;
- var p19 = e5 = class extends m {
- constructor() {
- super(...arguments), this.x = 0, this.y = 0;
- }
- clone() {
- return new e5({ x: this.x, y: this.y });
- }
- };
- 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);
- // node_modules/@arcgis/core/symbols/support/Symbol3DIconOutline.js
- var l14;
- var a12 = l14 = class extends l {
- constructor(o9) {
- super(o9), this.color = new l2([0, 0, 0, 1]), this.size = e2(1);
- }
- clone() {
- const o9 = { color: r(this.color) ? this.color.clone() : null, size: this.size };
- return new l14(o9);
- }
- };
- 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);
- // node_modules/@arcgis/core/symbols/IconSymbol3DLayer.js
- var f5;
- var d7 = "esri.symbols.IconSymbol3DLayer";
- var b = f5 = class extends a9 {
- constructor(o9) {
- super(o9), this.material = null, this.resource = null, this.type = "icon", this.size = 12, this.anchor = "center", this.anchorPosition = null, this.outline = null;
- }
- clone() {
- 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 });
- }
- static fromSimpleMarkerSymbol(o9) {
- 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;
- return new f5({ size: o9.size, resource: { primitive: w(o9.style) }, material: { color: t13 }, outline: e7, anchor: r7 ? "relative" : void 0, anchorPosition: r7 });
- }
- static fromPictureMarkerSymbol(o9) {
- const t13 = !o9.color || t11(o9.color) ? o7 : o9.color, r7 = j4(o9);
- 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 });
- }
- static fromCIMSymbol(o9) {
- return new f5({ resource: { href: et({ mediaType: "application/json", data: JSON.stringify(o9.data) }) } });
- }
- };
- function j4(o9) {
- 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);
- return (e7 || i9) && t13 && r7 ? { x: -e7 / t13, y: i9 / r7 } : null;
- }
- function g2(o9) {
- return isFinite(o9) ? o9 : 0;
- }
- 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) => {
- t13.anchorPosition = [o9.x, o9.y];
- }, overridePolicy() {
- return { enabled: "relative" === this.anchor };
- } } } })], b.prototype, "anchorPosition", void 0), e([y2({ type: a12, json: { write: true } })], b.prototype, "outline", void 0), b = f5 = e([n(d7)], b);
- var v = { circle: "circle", cross: "cross", diamond: "kite", square: "square", x: "x", triangle: "triangle", path: null };
- function w(o9) {
- const r7 = v[o9];
- return r7 || (s.getLogger(d7).warn(`${o9} cannot be mapped to Icon symbol. Fallback to "circle"`), "circle");
- }
- var S3 = b;
- // node_modules/@arcgis/core/symbols/LineStyleMarker3D.js
- var m14 = class extends i(l) {
- constructor(o9) {
- super(o9), this.type = "style", this.placement = "begin-end", this.style = "arrow", this.color = null;
- }
- equals(o9) {
- 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());
- }
- };
- 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);
- var y5 = m14;
- // node_modules/@arcgis/core/symbols/LineSymbol3DLayer.js
- var d8;
- var f6 = d8 = class extends a9 {
- constructor(t13) {
- super(t13), this.material = null, this.type = "line", this.join = "miter", this.cap = "butt", this.size = e2(1), this.pattern = null, this.marker = null;
- }
- clone() {
- 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 };
- return new d8(t13);
- }
- static fromSimpleLineSymbol(t13) {
- var _a, _b, _c;
- 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 };
- return new d8(e7);
- }
- };
- 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);
- var h6 = f6;
- // node_modules/@arcgis/core/symbols/support/Symbol3DAnchorPosition3D.js
- var e6;
- var p20 = e6 = class extends m {
- constructor() {
- super(...arguments), this.x = 0, this.y = 0, this.z = 0;
- }
- clone() {
- return new e6({ x: this.x, y: this.y, z: this.z });
- }
- };
- 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);
- // node_modules/@arcgis/core/symbols/ObjectSymbol3DLayer.js
- var n10;
- var c12 = n10 = class extends a9 {
- constructor(o9) {
- 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;
- }
- clone() {
- 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 });
- }
- get isPrimitive() {
- return !this.resource || "string" != typeof this.resource.href;
- }
- };
- 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) => {
- t13.anchorPosition = [o9.x, o9.y, o9.z];
- }, overridePolicy() {
- return { enabled: "relative" === this.anchor };
- } } } })], 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);
- var l15 = c12;
- // node_modules/@arcgis/core/symbols/PathSymbol3DLayer.js
- var n11;
- var d9 = n11 = class extends a9 {
- constructor(t13) {
- 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";
- }
- readWidth(t13, e7) {
- return null != t13 ? t13 : null == e7.height && null != e7.size ? e7.size : void 0;
- }
- readHeight(t13, e7) {
- return null != t13 ? t13 : null == e7.width && null != e7.size ? e7.size : void 0;
- }
- clone() {
- 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 });
- }
- };
- 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);
- var c13 = d9;
- // node_modules/@arcgis/core/symbols/support/Symbol3DHalo.js
- var m15;
- var l16 = m15 = class extends l {
- constructor() {
- super(...arguments), this.color = new l2([0, 0, 0, 1]), this.size = 0;
- }
- clone() {
- const o9 = { color: y(this.color), size: this.size };
- return new m15(o9);
- }
- };
- 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);
- // node_modules/@arcgis/core/symbols/support/Symbol3DTextBackground.js
- var c14 = class extends i(l) {
- constructor(o9) {
- super(o9), this.color = null;
- }
- };
- e([y2(p11)], c14.prototype, "color", void 0), c14 = e([n("esri.symbols.support.Symbol3DTextBackground")], c14);
- // node_modules/@arcgis/core/symbols/TextSymbol3DLayer.js
- var g3;
- var d10 = g3 = class extends a9 {
- constructor(t13) {
- 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";
- }
- get font() {
- return this._get("font") || null;
- }
- set font(t13) {
- r(t13) && r(this._userSize) && (t13.size = this._userSize), this._set("font", t13);
- }
- writeFont(t13, o9, e7, r7) {
- const i9 = { ...r7, textSymbol3D: true };
- o9.font = t13.write({}, i9), delete o9.font.size;
- }
- get size() {
- return r(this._userSize) ? this._userSize : r(this.font) && null != this.font.size ? this.font.size : 9;
- }
- set size(t13) {
- this._userSize = t13, r(this.font) && (this.font.size = this._userSize), this.notifyChange("size");
- }
- clone() {
- 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) });
- return t13._userSize = this._userSize, t13;
- }
- static fromTextSymbol(t13) {
- 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 });
- }
- };
- function z(t13, e7) {
- return t13 && null != e7 && e7 > 0 ? new l16({ color: y(t13), size: e7 }) : null;
- }
- 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);
- var j5 = d10;
- // node_modules/@arcgis/core/symbols/WaterSymbol3DLayer.js
- var l17;
- var c15 = l17 = class extends a9 {
- constructor(e7) {
- super(e7), this.color = m16.clone(), this.type = "water", this.waterbodySize = "medium", this.waveDirection = null, this.waveStrength = "moderate";
- }
- clone() {
- return new l17({ color: y(this.color), waterbodySize: this.waterbodySize, waveDirection: this.waveDirection, waveStrength: this.waveStrength });
- }
- };
- 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);
- var m16 = new l2([0, 119, 190]);
- var n12 = c15;
- // node_modules/@arcgis/core/symbols/Symbol3D.js
- var v2 = { icon: S3, object: l15, line: h6, path: c13, fill: f4, extrude: d5, text: j5, water: n12 };
- var C = j.ofType({ base: a9, key: "type", typeMap: v2, errorContext: "symbol-layer" });
- var T2 = class extends a3 {
- constructor(e7) {
- super(e7), this.styleOrigin = null, this.thumbnail = null, this.type = null;
- const t13 = this.__accessor__ && this.__accessor__.metadatas && this.__accessor__.metadatas.symbolLayers, o9 = t13 && t13.type || j;
- this._set("symbolLayers", new o9());
- }
- get color() {
- return null;
- }
- set color(e7) {
- 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.");
- }
- set symbolLayers(e7) {
- n2(e7, this._get("symbolLayers"));
- }
- readStyleOrigin(e7, r7, t13) {
- if (e7.styleUrl && e7.name) {
- const r8 = c(e7.styleUrl, t13);
- return new a6({ styleUrl: r8, name: e7.name });
- }
- if (e7.styleName && e7.name)
- return new a6({ portal: t13 && t13.portal || j2.getDefault(), styleName: e7.styleName, name: e7.name });
- 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 }));
- }
- writeStyleOrigin(e7, r7, t13, o9) {
- if (e7.styleUrl && e7.name) {
- let t14 = m2(e7.styleUrl, o9);
- K(t14) && (t14 = F(t14)), r7.styleOrigin = { styleUrl: t14, name: e7.name };
- } else
- 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 });
- }
- normalizeCtorArgs(e7) {
- return e7 instanceof a9 || e7 && v2[e7.type] ? { symbolLayers: [e7] } : Array.isArray(e7) ? { symbolLayers: e7 } : e7;
- }
- };
- 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);
- var k = T2;
- // node_modules/@arcgis/core/symbols/callouts/Callout3D.js
- var t12 = class extends l {
- constructor(r7) {
- super(r7), this.visible = true;
- }
- clone() {
- }
- };
- 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);
- var p21 = t12;
- // node_modules/@arcgis/core/chunks/LineCallout3DBorder.js
- var l18;
- var a13 = l18 = class extends l {
- constructor() {
- super(...arguments), this.color = new l2("white");
- }
- clone() {
- return new l18({ color: y(this.color) });
- }
- };
- e([y2(p11)], a13.prototype, "color", void 0), a13 = l18 = e([n("esri.symbols.callouts.LineCallout3DBorder")], a13);
- var i6 = a13;
- var m17 = Object.freeze(Object.defineProperty({ __proto__: null, default: i6 }, Symbol.toStringTag, { value: "Module" }));
- // node_modules/@arcgis/core/symbols/callouts/LineCallout3D.js
- var u6;
- var d11 = u6 = class extends p21 {
- constructor(o9) {
- super(o9), this.type = "line", this.color = new l2([0, 0, 0, 1]), this.size = e2(1), this.border = null;
- }
- get visible() {
- return this.size > 0 && r(this.color) && this.color.a > 0;
- }
- clone() {
- return new u6({ color: y(this.color), size: this.size, border: y(this.border) });
- }
- };
- 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);
- var y6 = d11;
- // node_modules/@arcgis/core/symbols/callouts/calloutUtils.js
- function n13(e7) {
- if (!e7)
- return false;
- const r7 = e7.verticalOffset;
- return !!r7 && !(r7.screenLength <= 0 || r(r7.maxWorldLength) && r7.maxWorldLength <= 0);
- }
- function o8(t13) {
- if (!t13)
- return false;
- if (!t13.supportsCallout || !t13.supportsCallout())
- return false;
- const e7 = t13.callout;
- return !!e7 && (!!e7.visible && !!n13(t13));
- }
- var u7 = { types: { key: "type", base: p21, typeMap: { line: y6 } }, json: { write: true } };
- // node_modules/@arcgis/core/symbols/support/Symbol3DVerticalOffset.js
- var n14;
- var p22 = n14 = class extends l {
- constructor(r7) {
- super(r7), this.screenLength = 0, this.minWorldLength = 0, this.maxWorldLength = null;
- }
- clone() {
- return new n14({ screenLength: this.screenLength, minWorldLength: this.minWorldLength, maxWorldLength: this.maxWorldLength });
- }
- };
- 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);
- var i7 = p22;
- // node_modules/@arcgis/core/symbols/LabelSymbol3D.js
- var n15;
- var u8 = j.ofType({ base: null, key: "type", typeMap: { text: j5 } });
- var f7 = n15 = class extends k {
- constructor(t13) {
- super(t13), this.verticalOffset = null, this.callout = null, this.styleOrigin = null, this.symbolLayers = new u8(), this.type = "label-3d";
- }
- supportsCallout() {
- return true;
- }
- hasVisibleCallout() {
- return o8(this);
- }
- hasVisibleVerticalOffset() {
- return n13(this);
- }
- clone() {
- return new n15({ styleOrigin: y(this.styleOrigin), symbolLayers: y(this.symbolLayers), thumbnail: y(this.thumbnail), callout: y(this.callout), verticalOffset: y(this.verticalOffset) });
- }
- static fromTextSymbol(t13) {
- return new n15({ symbolLayers: [j5.fromTextSymbol(t13)] });
- }
- };
- 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);
- var b2 = f7;
- // node_modules/@arcgis/core/symbols/LineSymbol3D.js
- var l19;
- var a14 = j.ofType({ base: null, key: "type", typeMap: { line: h6, path: c13 } });
- var n16 = j.ofType({ base: null, key: "type", typeMap: { line: h6, path: c13 } });
- var c16 = l19 = class extends k {
- constructor(o9) {
- super(o9), this.symbolLayers = new a14(), this.type = "line-3d";
- }
- clone() {
- return new l19({ styleOrigin: y(this.styleOrigin), symbolLayers: y(this.symbolLayers), thumbnail: y(this.thumbnail) });
- }
- static fromSimpleLineSymbol(o9) {
- return new l19({ symbolLayers: [h6.fromSimpleLineSymbol(o9)] });
- }
- };
- 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);
- var b3 = c16;
- // node_modules/@arcgis/core/symbols/MeshSymbol3D.js
- var i8;
- var y7 = j.ofType({ base: null, key: "type", typeMap: { fill: f4 } });
- var a15 = i8 = class extends k {
- constructor(o9) {
- super(o9), this.symbolLayers = new y7(), this.type = "mesh-3d";
- }
- clone() {
- return new i8({ styleOrigin: y(this.styleOrigin), symbolLayers: y(this.symbolLayers), thumbnail: y(this.thumbnail) });
- }
- static fromSimpleFillSymbol(o9) {
- return new i8({ symbolLayers: [f4.fromSimpleFillSymbol(o9)] });
- }
- };
- 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);
- var c17 = a15;
- // node_modules/@arcgis/core/symbols/PictureFillSymbol.js
- var c18;
- var u9 = c18 = class extends p7 {
- constructor(...t13) {
- 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;
- }
- normalizeCtorArgs(t13, s8, e7, r7) {
- if (t13 && "string" != typeof t13 && null == t13.imageData)
- return t13;
- const i9 = {};
- return t13 && (i9.url = t13), s8 && (i9.outline = s8), null != e7 && (i9.width = o3(e7)), null != r7 && (i9.height = o3(r7)), i9;
- }
- clone() {
- 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 });
- return t13._set("source", y(this.source)), t13;
- }
- hash() {
- var _a;
- 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}`;
- }
- };
- 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);
- var a16 = u9;
- // node_modules/@arcgis/core/symbols/PointSymbol3D.js
- var b4;
- var f8 = j.ofType({ base: null, key: "type", typeMap: { icon: S3, object: l15, text: j5 } });
- var S4 = b4 = class extends k {
- constructor(t13) {
- super(t13), this.verticalOffset = null, this.callout = null, this.symbolLayers = new f8(), this.type = "point-3d";
- }
- supportsCallout() {
- if ((this.symbolLayers ? this.symbolLayers.length : 0) < 1)
- return false;
- for (const t13 of this.symbolLayers.items)
- switch (t13.type) {
- case "icon":
- case "text":
- case "object":
- continue;
- default:
- return false;
- }
- return true;
- }
- hasVisibleCallout() {
- return o8(this);
- }
- hasVisibleVerticalOffset() {
- return n13(this);
- }
- clone() {
- return new b4({ verticalOffset: y(this.verticalOffset), callout: y(this.callout), styleOrigin: y(this.styleOrigin), symbolLayers: y(this.symbolLayers), thumbnail: y(this.thumbnail) });
- }
- static fromSimpleMarkerSymbol(t13) {
- return new b4({ symbolLayers: [S3.fromSimpleMarkerSymbol(t13)] });
- }
- static fromPictureMarkerSymbol(t13) {
- return new b4({ symbolLayers: [S3.fromPictureMarkerSymbol(t13)] });
- }
- static fromCIMSymbol(t13) {
- var _a, _b;
- const o9 = (_b = (_a = t13.data) == null ? void 0 : _a.symbol) == null ? void 0 : _b.type;
- if ("CIMPointSymbol" !== o9)
- return null;
- const r7 = t13.data.symbol;
- 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)] });
- }
- static fromTextSymbol(t13) {
- return new b4({ symbolLayers: [j5.fromTextSymbol(t13)] });
- }
- };
- 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);
- var h7 = S4;
- // node_modules/@arcgis/core/symbols/PolygonSymbol3D.js
- var L;
- var u10 = j.ofType({ base: null, key: "type", typeMap: { extrude: d5, fill: f4, icon: S3, line: h6, object: l15, text: j5, water: n12 } });
- var j6 = L = class extends k {
- constructor(o9) {
- super(o9), this.symbolLayers = new u10(), this.type = "polygon-3d";
- }
- clone() {
- return new L({ styleOrigin: y(this.styleOrigin), symbolLayers: y(this.symbolLayers), thumbnail: y(this.thumbnail) });
- }
- static fromJSON(o9) {
- const e7 = new L();
- if (e7.read(o9), 2 === e7.symbolLayers.length && "fill" === e7.symbolLayers.getItemAt(0).type && "line" === e7.symbolLayers.getItemAt(1).type) {
- const r7 = e7.symbolLayers.getItemAt(0), s8 = e7.symbolLayers.getItemAt(1);
- !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);
- }
- return e7;
- }
- static fromSimpleFillSymbol(o9) {
- return new L({ symbolLayers: [f4.fromSimpleFillSymbol(o9)] });
- }
- };
- 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);
- var S5 = j6;
- // node_modules/@arcgis/core/symbols/WebStyleSymbol.js
- var y8;
- var h8 = y8 = class extends a3 {
- constructor(t13) {
- super(t13), this.styleName = null, this.portal = null, this.styleUrl = null, this.thumbnail = null, this.name = null, this.type = "web-style";
- }
- get _fetchCacheKey() {
- const t13 = r(this.portal) ? this.portal : j2.getDefault(), e7 = t13.user ? t13.user.username : null;
- return `${this.styleName}:${this.styleUrl}:${this.name}:${e7}:${t13.url}`;
- }
- read(t13, e7) {
- this.portal = e7 ? e7.portal : void 0, super.read(t13, e7);
- }
- clone() {
- return new y8({ name: this.name, styleUrl: this.styleUrl, styleName: this.styleName, portal: this.portal });
- }
- fetchSymbol(t13) {
- return this._fetchSymbol("webRef", t13);
- }
- fetchCIMSymbol(t13) {
- return this._fetchSymbol("cimRef", t13);
- }
- async _fetchSymbol(t13, s8) {
- const l20 = r(s8) ? s8.cache : null, i9 = l20 ? this._fetchCacheKey : null;
- if (r(l20)) {
- const t14 = i9 && l20.get(i9);
- if (t14)
- return t14.clone();
- }
- const p23 = await u11();
- f(s8);
- const a17 = p23.resolveWebStyleSymbol(this, { portal: this.portal }, t13, s8);
- a17.catch((t14) => {
- s.getLogger(this.declaredClass).error("#fetchSymbol()", "Failed to create symbol from style", t14);
- });
- const c20 = await a17;
- return "webRef" === t13 && "point-3d" === c20.type || "cimRef" === t13 && "cim" === c20.type ? (r(l20) && l20.set(i9, c20.clone()), c20) : null;
- }
- };
- function u11() {
- return import("./webStyleSymbolUtils-HO2UCQAH.js");
- }
- 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);
- var f9 = h8;
- // node_modules/@arcgis/core/symbols.js
- function x(e7) {
- if (!e7)
- return false;
- switch (e7.type) {
- case "picture-fill":
- case "picture-marker":
- case "simple-fill":
- case "simple-line":
- case "simple-marker":
- case "text":
- case "cim":
- return true;
- default:
- return false;
- }
- }
- function c19(e7) {
- if (!e7)
- return false;
- switch (e7.type) {
- case "label-3d":
- case "line-3d":
- case "mesh-3d":
- case "point-3d":
- case "polygon-3d":
- return true;
- default:
- return false;
- }
- }
- 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" };
- var D = { base: a3, key: "type", typeMap: { "picture-marker": n7, "simple-marker": y3, text: m11, "web-style": f9, cim: d }, errorContext: "symbol" };
- var k2 = s2({ types: j7 });
- 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" };
- var P = { base: a3, key: "type", typeMap: { text: m11, "label-3d": b2 }, errorContext: "symbol" };
- 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" };
- var F2 = { base: a3, key: "type", typeMap: { "label-3d": b2 }, errorContext: "symbol" };
- var g4 = S(j7);
- export {
- t8 as t,
- l10 as l,
- m4 as m,
- j3 as j,
- p19 as p,
- d4 as d,
- a6 as a,
- p4 as p2,
- k,
- b2 as b,
- b3 as b2,
- c17 as c,
- n7 as n,
- h7 as h,
- S5 as S,
- S2,
- y3 as y,
- m11 as m2,
- f9 as f,
- x,
- c19 as c2,
- j7 as j2,
- D,
- k2,
- M,
- P,
- h9 as h2,
- F2 as F,
- g4 as g
- };
- //# sourceMappingURL=chunk-3Z755LKF.js.map
|