chunk-ZLQP3WDC.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. import {
  2. a
  3. } from "./chunk-T2SKWJGU.js";
  4. import {
  5. r as r2,
  6. s as s3
  7. } from "./chunk-XO5VJRK4.js";
  8. import {
  9. U
  10. } from "./chunk-3WXSWAUV.js";
  11. import {
  12. E,
  13. S
  14. } from "./chunk-EQNT4A7P.js";
  15. import {
  16. C
  17. } from "./chunk-3OFVLRSL.js";
  18. import {
  19. e as e3
  20. } from "./chunk-IQBIGNPU.js";
  21. import {
  22. u as u2
  23. } from "./chunk-PJNBFKPF.js";
  24. import {
  25. d,
  26. e as e2,
  27. n as n3
  28. } from "./chunk-3WQOA5CB.js";
  29. import {
  30. u
  31. } from "./chunk-UVVU4UUO.js";
  32. import {
  33. l
  34. } from "./chunk-X4SA4ELJ.js";
  35. import {
  36. n as n2
  37. } from "./chunk-IM3LVQXV.js";
  38. import {
  39. e,
  40. m,
  41. n5 as n,
  42. y3 as y2
  43. } from "./chunk-2Z2TG5CU.js";
  44. import {
  45. D
  46. } from "./chunk-V6P2MAQQ.js";
  47. import {
  48. s2 as s,
  49. s3 as s2
  50. } from "./chunk-E5O6P5I2.js";
  51. import {
  52. has,
  53. y
  54. } from "./chunk-SPWQ3AWG.js";
  55. import {
  56. r,
  57. t
  58. } from "./chunk-YXWMMD76.js";
  59. // node_modules/@arcgis/core/layers/effects/EffectView.js
  60. var l2 = -1;
  61. var a2 = class extends m {
  62. constructor(t2) {
  63. super(t2), this._from = null, this._to = null, this._final = null, this._current = [], this._time = 0, this.duration = has("mapview-transitions-duration"), this.effects = [];
  64. }
  65. set effect(t2) {
  66. if (this._get("effect") !== (t2 = t2 || "")) {
  67. this._set("effect", t2);
  68. try {
  69. this._transitionTo(h(t2));
  70. } catch (e5) {
  71. this._transitionTo([]), s.getLogger(this.declaredClass).warn("Invalid Effect", { effect: t2, error: e5 });
  72. }
  73. }
  74. }
  75. get hasEffects() {
  76. return this.transitioning || !!this.effects.length;
  77. }
  78. set scale(t2) {
  79. this._updateForScale(t2);
  80. }
  81. get transitioning() {
  82. return null !== this._to;
  83. }
  84. canTransitionTo(t2) {
  85. try {
  86. return this.scale > 0 && u3(this._current, h(t2), this.scale);
  87. } catch {
  88. return false;
  89. }
  90. }
  91. transitionStep(t2, e5) {
  92. this._applyTimeTransition(t2), this._updateForScale(e5);
  93. }
  94. endTransitions() {
  95. this._applyTimeTransition(this.duration);
  96. }
  97. _transitionTo(t2) {
  98. this.scale > 0 && u3(this._current, t2, this.scale) ? (this._final = t2, this._to = y(t2), _(this._current, this._to, this.scale), this._from = y(this._current), this._time = 0) : (this._from = this._to = this._final = null, this._current = t2), this._set("effects", this._current[0] ? y(this._current[0].effects) : []);
  99. }
  100. _applyTimeTransition(t2) {
  101. if (!(this._to && this._from && this._current && this._final))
  102. return;
  103. this._time += t2;
  104. const e5 = Math.min(1, this._time / this.duration);
  105. for (let s5 = 0; s5 < this._current.length; s5++) {
  106. const t3 = this._current[s5], r4 = this._from[s5], i3 = this._to[s5];
  107. t3.scale = p(r4.scale, i3.scale, e5);
  108. for (let s6 = 0; s6 < t3.effects.length; s6++) {
  109. const n6 = t3.effects[s6], c2 = r4.effects[s6], o = i3.effects[s6];
  110. n6.interpolate(c2, o, e5);
  111. }
  112. }
  113. 1 === e5 && (this._current = this._final, this._set("effects", this._current[0] ? y(this._current[0].effects) : []), this._from = this._to = this._final = null);
  114. }
  115. _updateForScale(t2) {
  116. if (this._set("scale", t2), 0 === this._current.length)
  117. return;
  118. const e5 = this._current, s5 = this._current.length - 1;
  119. let r4, i3, n6 = 1;
  120. if (1 === e5.length || t2 >= e5[0].scale)
  121. i3 = r4 = e5[0].effects;
  122. else if (t2 <= e5[s5].scale)
  123. i3 = r4 = e5[s5].effects;
  124. else
  125. for (let c2 = 0; c2 < s5; c2++) {
  126. const s6 = e5[c2], o = e5[c2 + 1];
  127. if (s6.scale >= t2 && o.scale <= t2) {
  128. n6 = (t2 - s6.scale) / (o.scale - s6.scale), r4 = s6.effects, i3 = o.effects;
  129. break;
  130. }
  131. }
  132. for (let c2 = 0; c2 < this.effects.length; c2++) {
  133. this.effects[c2].interpolate(r4[c2], i3[c2], n6);
  134. }
  135. }
  136. };
  137. function h(t2) {
  138. const e5 = d(t2) || [];
  139. return m2(e5) ? [{ scale: l2, effects: e5 }] : e5;
  140. }
  141. function u3(t2, e5, s5) {
  142. var _a, _b, _c, _d;
  143. if (!((_a = t2[0]) == null ? void 0 : _a.effects) || !((_b = e5[0]) == null ? void 0 : _b.effects))
  144. return true;
  145. return !((((_c = t2[0]) == null ? void 0 : _c.scale) === l2 || ((_d = e5[0]) == null ? void 0 : _d.scale) === l2) && (t2.length > 1 || e5.length > 1) && s5 <= 0) && n3(t2[0].effects, e5[0].effects);
  146. }
  147. function _(t2, e5, s5) {
  148. var _a, _b;
  149. const r4 = t2.length > e5.length ? t2 : e5, i3 = t2.length > e5.length ? e5 : t2, n6 = i3[i3.length - 1], c2 = (_a = n6 == null ? void 0 : n6.scale) != null ? _a : s5, o = (_b = n6 == null ? void 0 : n6.effects) != null ? _b : [];
  150. for (let f = i3.length; f < r4.length; f++)
  151. i3.push({ scale: c2, effects: [...o] });
  152. for (let a3 = 0; a3 < r4.length; a3++)
  153. i3[a3].scale = i3[a3].scale === l2 ? s5 : i3[a3].scale, r4[a3].scale = r4[a3].scale === l2 ? s5 : r4[a3].scale, e2(i3[a3].effects, r4[a3].effects);
  154. }
  155. function p(t2, e5, s5) {
  156. return t2 + (e5 - t2) * s5;
  157. }
  158. function m2(t2) {
  159. const e5 = t2[0];
  160. return !!e5 && "type" in e5;
  161. }
  162. e([y2()], a2.prototype, "_to", void 0), e([y2()], a2.prototype, "duration", void 0), e([y2({ value: "" })], a2.prototype, "effect", null), e([y2({ readOnly: true })], a2.prototype, "effects", void 0), e([y2({ readOnly: true })], a2.prototype, "hasEffects", null), e([y2({ value: 0 })], a2.prototype, "scale", null), e([y2({ readOnly: true })], a2.prototype, "transitioning", null), a2 = e([n("esri.layers.effects.EffectView")], a2);
  163. // node_modules/@arcgis/core/views/2d/engine/DisplayObject.js
  164. var i = 1 / has("mapview-transitions-duration");
  165. var r3 = class extends n2 {
  166. constructor() {
  167. super(...arguments), this._fadeOutResolver = null, this._fadeInResolver = null, this._clips = null, this.computedVisible = true, this.computedOpacity = 1, this.fadeTransitionEnabled = false, this.inFadeTransition = false, this._isReady = false, this._opacity = 1, this._stage = null, this._visible = true;
  168. }
  169. get clips() {
  170. return this._clips;
  171. }
  172. set clips(e5) {
  173. this._clips = e5, this.requestRender();
  174. }
  175. get isReady() {
  176. return this._isReady;
  177. }
  178. get opacity() {
  179. return this._opacity;
  180. }
  181. set opacity(e5) {
  182. this._opacity !== e5 && (this._opacity = Math.min(1, Math.max(e5, 0)), this.requestRender());
  183. }
  184. get stage() {
  185. return this._stage;
  186. }
  187. set stage(e5) {
  188. if (this._stage === e5)
  189. return;
  190. const t2 = this._stage;
  191. this._stage = e5, e5 ? this._stage.untrashDisplayObject(this) || (this.onAttach(), this.emit("attach")) : t2.trashDisplayObject(this);
  192. }
  193. get transforms() {
  194. return this._getTransforms();
  195. }
  196. _getTransforms() {
  197. return t(this._transforms) && (this._transforms = this._createTransforms()), this._transforms;
  198. }
  199. get visible() {
  200. return this._visible;
  201. }
  202. set visible(e5) {
  203. this._visible !== e5 && (this._visible = e5, this.requestRender());
  204. }
  205. fadeIn() {
  206. return this._fadeInResolver || (this._fadeOutResolver && (this._fadeOutResolver(), this._fadeOutResolver = null), this.opacity = 1, this.computedOpacity = 0, this.fadeTransitionEnabled = true, this._fadeInResolver = D(), this.requestRender()), this._fadeInResolver.promise;
  207. }
  208. fadeOut() {
  209. return this._fadeOutResolver || (this.opacity = 0, this._fadeInResolver && (this._fadeInResolver(), this._fadeInResolver = null), this.fadeTransitionEnabled = true, this._fadeOutResolver = D(), this.requestRender()), this._fadeOutResolver.promise;
  210. }
  211. endTransitions() {
  212. var _a, _b;
  213. (_a = this._fadeInResolver) == null ? void 0 : _a.call(this), this._fadeInResolver = null, (_b = this._fadeOutResolver) == null ? void 0 : _b.call(this), this._fadeOutResolver = null, this.computedOpacity = this.visible ? this.opacity : 0, this.requestRender();
  214. }
  215. beforeRender(e5) {
  216. this.updateTransitionProperties(e5.deltaTime, e5.state.scale);
  217. }
  218. afterRender(e5) {
  219. this._fadeInResolver && this.computedOpacity === this.opacity ? (this._fadeInResolver(), this._fadeInResolver = null) : this._fadeOutResolver && 0 === this.computedOpacity && (this._fadeOutResolver(), this._fadeOutResolver = null);
  220. }
  221. remove() {
  222. var _a;
  223. (_a = this.parent) == null ? void 0 : _a.removeChild(this);
  224. }
  225. setTransform(e5) {
  226. }
  227. processRender(e5) {
  228. this.stage && this.computedVisible && this.doRender(e5);
  229. }
  230. requestRender() {
  231. this.stage && this.stage.requestRender();
  232. }
  233. processDetach() {
  234. this._fadeInResolver && (this._fadeInResolver(), this._fadeInResolver = null), this._fadeOutResolver && (this._fadeOutResolver(), this._fadeOutResolver = null), this.onDetach(), this.emit("detach");
  235. }
  236. updateTransitionProperties(e5, t2) {
  237. if (this.fadeTransitionEnabled) {
  238. const t3 = this._fadeOutResolver || !this.visible ? 0 : this.opacity, s5 = this.computedOpacity;
  239. if (s5 === t3)
  240. this.computedVisible = this.visible;
  241. else {
  242. const r4 = e5 * i;
  243. this.computedOpacity = s5 > t3 ? Math.max(t3, s5 - r4) : Math.min(t3, s5 + r4), this.computedVisible = this.computedOpacity > 0;
  244. const a3 = t3 === this.computedOpacity;
  245. this.inFadeTransition = !a3, a3 || this.requestRender();
  246. }
  247. } else
  248. this.computedOpacity = this.opacity, this.computedVisible = this.visible;
  249. }
  250. onAttach() {
  251. }
  252. onDetach() {
  253. }
  254. doRender(e5) {
  255. }
  256. ready() {
  257. this._isReady || (this._isReady = true, this.emit("isReady"), this.requestRender());
  258. }
  259. };
  260. // node_modules/@arcgis/core/views/2d/engine/Container.js
  261. var i2 = class extends r3 {
  262. constructor() {
  263. super(...arguments), this._childrenSet = /* @__PURE__ */ new Set(), this._needsSort = false, this.children = [], this._effectView = null;
  264. }
  265. get blendMode() {
  266. return this._blendMode;
  267. }
  268. set blendMode(e5) {
  269. this._blendMode = e5, this.requestRender();
  270. }
  271. get clips() {
  272. return this._clips;
  273. }
  274. set clips(e5) {
  275. this._clips = e5, this.children.forEach((t2) => t2.clips = e5);
  276. }
  277. get computedEffects() {
  278. var _a, _b;
  279. return (_b = (_a = this._effectView) == null ? void 0 : _a.effects) != null ? _b : null;
  280. }
  281. get effect() {
  282. var _a, _b;
  283. return (_b = (_a = this._effectView) == null ? void 0 : _a.effect) != null ? _b : "";
  284. }
  285. set effect(e5) {
  286. (this._effectView || e5) && (this._effectView || (this._effectView = new a2()), this._effectView.effect = e5, this.requestRender());
  287. }
  288. updateTransitionProperties(e5, t2) {
  289. super.updateTransitionProperties(e5, t2), this._effectView && (this._effectView.transitionStep(e5, t2), this._effectView.transitioning && this.requestRender());
  290. }
  291. doRender(e5) {
  292. const t2 = this.createRenderParams(e5);
  293. this.renderChildren(t2);
  294. }
  295. addChild(e5) {
  296. return this.addChildAt(e5, this.children.length);
  297. }
  298. addChildAt(e5, t2 = this.children.length) {
  299. if (!e5)
  300. return e5;
  301. if (this.contains(e5))
  302. return e5;
  303. this._needsSort = true;
  304. const s5 = e5.parent;
  305. return s5 && s5 !== this && s5.removeChild(e5), t2 >= this.children.length ? this.children.push(e5) : this.children.splice(t2, 0, e5), this._childrenSet.add(e5), e5.parent = this, e5.stage = this.stage, this !== this.stage && (e5.clips = this.clips), this.requestRender(), e5;
  306. }
  307. contains(e5) {
  308. return this._childrenSet.has(e5);
  309. }
  310. endTransitions() {
  311. super.endTransitions(), this._effectView && (this._effectView.endTransitions(), this.requestRender());
  312. }
  313. removeAllChildren() {
  314. this._childrenSet.clear(), this._needsSort = true;
  315. for (const e5 of this.children)
  316. this !== this.stage && (e5.clips = null), e5.stage = null, e5.parent = null;
  317. this.children.length = 0;
  318. }
  319. removeChild(e5) {
  320. return this.contains(e5) ? this.removeChildAt(this.children.indexOf(e5)) : e5;
  321. }
  322. removeChildAt(e5) {
  323. if (e5 < 0 || e5 >= this.children.length)
  324. return null;
  325. this._needsSort = true;
  326. const t2 = this.children.splice(e5, 1)[0];
  327. return this._childrenSet.delete(t2), this !== this.stage && (t2.clips = null), t2.stage = null, t2.parent = null, t2;
  328. }
  329. sortChildren(e5) {
  330. this._needsSort && (this.children.sort(e5), this._needsSort = false);
  331. }
  332. beforeRender(e5) {
  333. super.beforeRender(e5);
  334. for (const t2 of this.children)
  335. t2.beforeRender(e5);
  336. }
  337. afterRender(e5) {
  338. super.afterRender(e5);
  339. for (const t2 of this.children)
  340. t2.afterRender(e5);
  341. }
  342. _createTransforms() {
  343. return { dvs: e3() };
  344. }
  345. onAttach() {
  346. super.onAttach();
  347. const e5 = this.stage;
  348. for (const t2 of this.children)
  349. t2.stage = e5;
  350. }
  351. onDetach() {
  352. super.onDetach();
  353. for (const e5 of this.children)
  354. e5.stage = null;
  355. }
  356. renderChildren(e5) {
  357. for (const t2 of this.children)
  358. t2.processRender(e5);
  359. }
  360. createRenderParams(e5) {
  361. return { ...e5, blendMode: this.blendMode, effects: this.computedEffects, globalOpacity: e5.globalOpacity * this.computedOpacity, inFadeTransition: this.inFadeTransition };
  362. }
  363. };
  364. // node_modules/@arcgis/core/views/2d/engine/webgl/techniques/Technique.js
  365. var e4 = class {
  366. static getStorageSpec(t2) {
  367. return null;
  368. }
  369. static createOrUpdateRendererSchema(e5, r4) {
  370. return r(e5) && "default" === e5.type ? e5 : { type: "default" };
  371. }
  372. static getVariation(t2) {
  373. return {};
  374. }
  375. static getVariationHash(t2) {
  376. return 0;
  377. }
  378. };
  379. e4.type = "default", e4.programSpec = null;
  380. // node_modules/@arcgis/core/views/2d/engine/webgl/techniques/dotDensity/TechniqueDotDensity.js
  381. var n4 = class extends e4 {
  382. static getStorageSpec({ attributes: e5 }) {
  383. return { visualVariables: false, attributes: e5 != null ? e5 : null };
  384. }
  385. static _createRendererSchema() {
  386. return { type: "dot-density", colors: new Float32Array(32), dotValue: -1, dotSize: -1, dotScale: -1, dotBlending: false, backgroundColor: new Float32Array(4), activeDots: new Float32Array(8), seed: -1 };
  387. }
  388. static createOrUpdateRendererSchema(r4, a3) {
  389. const { attributes: n6, dotValue: i3, referenceScale: d2, dotSize: l4, dotBlendingEnabled: s5, seed: c2, backgroundColor: u4 } = a3, m3 = r(r4) && "dot-density" === r4.type ? r4 : this._createRendererSchema();
  390. m3.dotValue = i3, m3.dotSize = l4, m3.dotScale = d2, m3.dotBlending = s5, m3.seed = c2;
  391. const { colors: g, activeDots: p3, backgroundColor: y3 } = m3;
  392. for (let e5 = 0; e5 < r2; e5++) {
  393. const o = e5 >= n6.length ? null : n6[e5].color;
  394. a(g, o, 4 * e5);
  395. }
  396. for (let e5 = 0; e5 < 8; e5++)
  397. p3[e5] = e5 < a3.attributes.length ? 1 : 0;
  398. return a(y3, u4), m3;
  399. }
  400. static getVariation(e5) {
  401. return { ddDotBlending: e5.dotBlending };
  402. }
  403. static getVariationHash(e5) {
  404. return e5.dotBlending ? 1 : 0;
  405. }
  406. };
  407. n4.type = "dot-density", n4.programSpec = { shader: "materials/fill", vertexLayout: { geometry: [{ location: 0, name: "a_pos", count: 2, type: C.SHORT }, { location: 1, name: "a_id", count: 3, type: C.UNSIGNED_BYTE }, { location: 2, name: "a_bitset", count: 1, type: C.UNSIGNED_BYTE }, { location: 3, name: "a_inverseArea", count: 1, type: C.FLOAT }] } };
  408. // node_modules/@arcgis/core/views/2d/engine/webgl/techniques/heatmap/TechniqueHeatmap.js
  409. var n5 = class extends e4 {
  410. static getStorageSpec({ field: e5, valueExpression: t2 }) {
  411. return { visualVariables: false, attributes: e5 || t2 ? [{ field: e5, valueExpression: t2 }] : null };
  412. }
  413. static _createRendererSchema() {
  414. return { type: "heatmap", radius: -1, referenceScale: -1, isFieldActive: 0, minDensity: -1, densityRange: -1, kernel: null, gradient: null, gradientHash: "invalid" };
  415. }
  416. static createOrUpdateRendererSchema(a3, i3) {
  417. const { radius: n6, minDensity: s5, maxDensity: o, referenceScale: c2, field: l4, valueExpression: m3, colorStops: p3 } = i3, d2 = o - s5, u4 = l4 || m3 ? 1 : 0, y3 = p3.map(({ color: e5, ratio: t2 }) => `${t2}:${e5.toString()}`).join();
  418. let h2, S2 = true;
  419. return r(a3) && "heatmap" === a3.type ? (h2 = a3, S2 = y3 !== a3.gradientHash) : h2 = this._createRendererSchema(), h2.radius = u(n6), h2.minDensity = s5, h2.densityRange = d2, h2.referenceScale = c2, h2.isFieldActive = u4, S2 && (h2.gradient = u2(p3), h2.gradientHash = y3), h2;
  420. }
  421. };
  422. n5.type = "heatmap", n5.programSpec = { shader: "materials/icon/heatmapAccumulate", vertexLayout: { geometry: [{ location: 0, name: "a_pos", count: 2, type: C.SHORT }, { location: 1, name: "a_vertexOffset", count: 2, type: C.SHORT }, { location: 4, name: "a_id", count: 4, type: C.UNSIGNED_BYTE }] } };
  423. // node_modules/@arcgis/core/views/2d/engine/webgl/techniques/pieChart/TechniquePieChart.js
  424. var l3 = class extends e4 {
  425. static getStorageSpec({ attributes: e5 }) {
  426. return { visualVariables: true, attributes: e5 != null ? e5 : null };
  427. }
  428. static _createRendererSchema() {
  429. return { type: "pie-chart", colors: new Float32Array(4 * s3), defaultColor: new Float32Array(4), othersColor: new Float32Array(4), outlineColor: new Float32Array(4), holePercentage: 0, sectorThreshold: 0, outlineWidth: 1, numberOfFields: 10 };
  430. }
  431. static createOrUpdateRendererSchema(n6, i3) {
  432. const { attributes: l4, defaultColor: s5, holePercentage: c2, othersCategory: m3, outline: u4 } = i3, d2 = r(n6) && "pie-chart" === n6.type ? n6 : this._createRendererSchema();
  433. for (let t2 = 0; t2 < s3; t2++) {
  434. const o = t2 >= l4.length ? new l([0, 0, 0, 0]) : l4[t2].color;
  435. a(d2.colors, o, 4 * t2);
  436. }
  437. return a(d2.defaultColor, s5), a(d2.othersColor, m3 == null ? void 0 : m3.color), a(d2.outlineColor, u4 == null ? void 0 : u4.color), d2.outlineWidth = u((u4 == null ? void 0 : u4.width) || 0), d2.holePercentage = c2, d2.sectorThreshold = (m3 == null ? void 0 : m3.threshold) || 0, d2.numberOfFields = l4.length, d2;
  438. }
  439. static getVariation(e5) {
  440. return { numberOfFields: e5.numberOfFields };
  441. }
  442. static getVariationHash(e5) {
  443. return e5.numberOfFields;
  444. }
  445. };
  446. l3.type = "pie-chart", l3.programSpec = { shader: "materials/pie", vertexLayout: { geometry: [{ location: 0, name: "a_pos", count: 2, type: C.SHORT }, { location: 1, name: "a_vertexOffset", count: 2, type: C.SHORT }, { location: 2, name: "a_texCoords", count: 2, type: C.UNSIGNED_SHORT }, { location: 3, name: "a_bitSetAndDistRatio", count: 2, type: C.UNSIGNED_SHORT }, { location: 4, name: "a_id", count: 4, type: C.UNSIGNED_BYTE }, { location: 5, name: "a_color", count: 4, type: C.UNSIGNED_BYTE, normalized: true }, { location: 6, name: "a_outlineColor", count: 4, type: C.UNSIGNED_BYTE, normalized: true }, { location: 7, name: "a_sizeAndOutlineWidth", count: 4, type: C.UNSIGNED_BYTE }, { location: 8, name: "a_zoomRange", count: 2, type: C.UNSIGNED_SHORT }] }, hittestAttributes: ["a_vertexOffset", "a_texCoords"] };
  447. // node_modules/@arcgis/core/views/2d/engine/webgl/techniques/utils.js
  448. function s4(r4, t2) {
  449. if (r4.type !== t2)
  450. throw new s2("material-view-model:unexpected-renderer-schema", `expected to find renderer schema of type "${t2}" but found type "${r4.type}"`);
  451. }
  452. function c(e5) {
  453. switch (e5 == null ? void 0 : e5.type) {
  454. case "dot-density":
  455. return n4;
  456. case "heatmap":
  457. return n5;
  458. case "pie-chart":
  459. return l3;
  460. default:
  461. return e4;
  462. }
  463. }
  464. function p2(e5) {
  465. const { geometryType: s5, symbologyType: c2 } = U.load(e5);
  466. switch (s5) {
  467. case E.FILL:
  468. if (c2 === S.DOT_DENSITY)
  469. return n4;
  470. break;
  471. case E.MARKER:
  472. switch (c2) {
  473. case S.HEATMAP:
  474. return n5;
  475. case S.PIE_CHART:
  476. return l3;
  477. }
  478. }
  479. return e4;
  480. }
  481. export {
  482. a2 as a,
  483. r3 as r,
  484. i2 as i,
  485. e4 as e,
  486. s4 as s,
  487. c,
  488. p2 as p
  489. };
  490. //# sourceMappingURL=chunk-ZLQP3WDC.js.map