chunk-RATJTB73.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. import {
  2. e as e2
  3. } from "./chunk-3OHML7FO.js";
  4. import {
  5. U,
  6. d,
  7. e,
  8. n2 as n,
  9. t4 as t2,
  10. x,
  11. y3 as y
  12. } from "./chunk-Y3WMVFTW.js";
  13. import {
  14. i
  15. } from "./chunk-ULGDPLM2.js";
  16. import {
  17. s
  18. } from "./chunk-EMJ4ZSM2.js";
  19. import {
  20. a,
  21. t
  22. } from "./chunk-GZT4BVFP.js";
  23. // node_modules/@arcgis/core/core/throttle.js
  24. function e3(e6, t4, l, n4) {
  25. let o3 = null, p = 1e3;
  26. typeof t4 == "number" ? (p = t4, n4 = l) : (o3 = t4 ?? null, p = l);
  27. let r, u2 = 0;
  28. const a4 = () => {
  29. u2 = 0, e6.apply(n4, r);
  30. }, c2 = (...e7) => {
  31. o3 && o3.apply(n4, e7), r = e7, p ? u2 || (u2 = setTimeout(a4, p)) : a4();
  32. };
  33. return c2.remove = () => {
  34. u2 && (clearTimeout(u2), u2 = 0);
  35. }, c2.forceUpdate = () => {
  36. u2 && (clearTimeout(u2), a4());
  37. }, c2.hasPendingUpdates = () => !!u2, c2;
  38. }
  39. // node_modules/@arcgis/core/views/2d/support/Timeline.js
  40. var s2 = (s5) => s5.includes("Brush");
  41. var e4 = class {
  42. constructor() {
  43. this._names = new Map();
  44. }
  45. begin(e6) {
  46. this._names.has(e6) || (this._names.set(e6, false), s2(e6) && this.record("Esri.FirstDraw"), performance.mark(`Esri.${e6}.Start`));
  47. }
  48. end(s5) {
  49. this._names.has(s5) && !this._names.get(s5) && (this._names.set(s5, true), performance.mark(`Esri.${s5}.End`));
  50. }
  51. record(s5) {
  52. this._names.has(s5) || (this._names.set(s5, true), performance.mark(`Esri.${s5}`));
  53. }
  54. };
  55. // node_modules/@arcgis/core/views/3d/support/PropertiesPool.js
  56. var o = class {
  57. constructor(r, o3) {
  58. this.owner = o3, this.properties = {}, this.afterDispatchHandle = null;
  59. for (const t4 in r) {
  60. const o4 = r[t4], s5 = new t2(o4, null, null, 2, 2);
  61. this.properties[t4] = { pool: s5, acquired: [] };
  62. }
  63. this.afterDispatchHandle = U(() => this._release());
  64. }
  65. destroy() {
  66. this.afterDispatchHandle && (this.afterDispatchHandle.remove(), this.afterDispatchHandle = null);
  67. for (const e6 in this.properties) {
  68. const t4 = this.properties[e6];
  69. for (const e7 of t4.acquired)
  70. x(e7) || t4.pool.release(e7);
  71. t4.pool.destroy(), t4.pool = null, t4.acquired = null;
  72. }
  73. this.properties = null, this.owner = null;
  74. }
  75. get(e6) {
  76. const t4 = this.owner._get(e6), r = this.properties[e6];
  77. let o3 = r.pool.acquire();
  78. for (r.acquired.push(o3); o3 === t4; )
  79. r.acquired.push(o3), o3 = r.pool.acquire();
  80. return o3;
  81. }
  82. _release() {
  83. for (const e6 in this.properties) {
  84. const t4 = this.properties[e6];
  85. let o3 = 0;
  86. for (const e7 of t4.acquired)
  87. x(e7) ? t4.acquired[o3++] = e7 : t4.pool.release(e7);
  88. t4.acquired.length = o3;
  89. }
  90. }
  91. };
  92. // node_modules/@arcgis/core/views/input/keys.js
  93. var t3 = a("mac") ? "Meta" : "Ctrl";
  94. var o2 = { 8: "Backspace", 9: "Tab", 13: "Enter", 27: "Escape", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete" };
  95. for (let s5 = 48; s5 < 58; s5++)
  96. o2[s5] = String.fromCharCode(s5);
  97. for (let s5 = 1; s5 < 25; s5++)
  98. o2[111 + s5] = `F${s5}`;
  99. for (let s5 = 65; s5 < 91; s5++)
  100. o2[s5] = [String.fromCharCode(s5 + 32), String.fromCharCode(s5)];
  101. function a2(e6) {
  102. if (e6.key !== void 0)
  103. return i(e6);
  104. const t4 = o2[e6.keyCode];
  105. return Array.isArray(t4) ? e6.shiftKey ? t4[1] : t4[0] : t4;
  106. }
  107. function n2(r) {
  108. switch (r) {
  109. case "Ctrl":
  110. case "Alt":
  111. case "Shift":
  112. case "Meta":
  113. case "Primary":
  114. return true;
  115. }
  116. return false;
  117. }
  118. // node_modules/@arcgis/core/views/input/EventMatch.js
  119. var e5 = class {
  120. constructor(e6, t4 = []) {
  121. this.eventType = e6, this.keyModifiers = t4;
  122. }
  123. matches(e6) {
  124. if (e6.type !== this.eventType)
  125. return false;
  126. if (this.keyModifiers.length === 0)
  127. return true;
  128. const t4 = e6.modifiers;
  129. for (const i3 of this.keyModifiers)
  130. if (!t4.has(i3))
  131. return false;
  132. return true;
  133. }
  134. };
  135. // node_modules/@arcgis/core/views/input/InputHandler.js
  136. var n3 = s.getLogger("esri.views.input.InputHandler");
  137. var i2 = class {
  138. constructor(e6) {
  139. this._manager = null, this._incoming = {}, this._outgoing = {}, this._incomingEventMatches = null, this._incomingEventTypes = null, this._outgoingEventTypes = null, this._hasSideEffects = e6;
  140. }
  141. get incomingEventMatches() {
  142. if (!this._incomingEventMatches) {
  143. this._incomingEventMatches = [];
  144. for (const e6 in this._incoming) {
  145. const t4 = this._incoming[e6];
  146. for (const e7 of t4)
  147. this._incomingEventMatches.push(e7.match);
  148. }
  149. }
  150. return this._incomingEventMatches;
  151. }
  152. get incomingEventTypes() {
  153. return this._incomingEventTypes || (this._incomingEventTypes = this.incomingEventMatches.map((e6) => e6.eventType)), this._incomingEventTypes;
  154. }
  155. get outgoingEventTypes() {
  156. return this._outgoingEventTypes || (this._outgoingEventTypes = Object.keys(this._outgoing)), this._outgoingEventTypes;
  157. }
  158. get hasSideEffects() {
  159. return this._hasSideEffects;
  160. }
  161. get hasPendingInputs() {
  162. return false;
  163. }
  164. onInstall(e6) {
  165. this._manager ? n3.error("This InputHandler has already been registered with an InputManager") : (e6.setEventCallback((e7) => this._handleEvent(e7)), e6.setUninstallCallback(() => this._onUninstall()), this._manager = e6);
  166. }
  167. onUninstall() {
  168. }
  169. registerIncoming(e6, n4, i3) {
  170. let a4;
  171. typeof n4 == "function" ? (i3 = n4, a4 = []) : a4 = n4 || [];
  172. const o3 = typeof e6 == "string" ? new e5(e6, a4) : e6, h = () => {
  173. this._incomingEventTypes = null, this._incomingEventMatches = null;
  174. }, r = (e7) => {
  175. const t4 = this._incoming[e7.match.eventType];
  176. if (t4) {
  177. const n5 = t4.indexOf(e7);
  178. t4.splice(n5, 1), h(), this._manager && this._manager.updateDependencies();
  179. }
  180. }, g2 = new s3(o3, i3, { onPause: r, onRemove: r, onResume: (e7) => {
  181. const t4 = this._incoming[e7.match.eventType];
  182. t4 && !t4.includes(e7) && (t4.push(e7), h(), this._manager && this._manager.updateDependencies());
  183. } });
  184. let c2 = this._incoming[o3.eventType];
  185. return c2 || (c2 = [], this._incoming[o3.eventType] = c2), c2.push(g2), h(), this._manager && this._manager.updateDependencies(), g2;
  186. }
  187. registerOutgoing(e6) {
  188. if (this._outgoing[e6])
  189. throw Error("There is already a callback registered for this outgoing InputEvent: " + e6);
  190. const t4 = new a3(e6, { onEmit: (e7, t5, n4, i3) => {
  191. this._manager.emit(e7.eventType, t5, n4, i3);
  192. }, onRemove: (e7) => {
  193. delete this._outgoing[e7.eventType], this._manager.updateDependencies();
  194. } });
  195. return this._outgoing[e6] = t4, this._outgoingEventTypes = null, this._manager && this._manager.updateDependencies(), t4;
  196. }
  197. startCapturingPointer(e6) {
  198. this._manager.setPointerCapture(e6, true);
  199. }
  200. stopCapturingPointer(e6) {
  201. this._manager.setPointerCapture(e6, false);
  202. }
  203. refreshHasPendingInputs() {
  204. this._manager.refreshHasPendingInputs();
  205. }
  206. _onUninstall() {
  207. this._manager ? (this.onUninstall(), this._manager = null) : n3.error("This InputHandler is not registered with an InputManager");
  208. }
  209. _handleEvent(e6) {
  210. const t4 = this._incoming[e6.type];
  211. if (t4) {
  212. for (const n4 of t4)
  213. if (n4.match.matches(e6) && (n4.callback(e6), e6.shouldStopPropagation()))
  214. break;
  215. }
  216. }
  217. };
  218. var s3 = class {
  219. constructor(e6, t4, n4) {
  220. this.match = e6, this._callback = t4, this._handler = n4;
  221. }
  222. pause() {
  223. this._handler.onPause(this);
  224. }
  225. resume() {
  226. this._handler.onResume(this);
  227. }
  228. remove() {
  229. this._handler.onRemove(this);
  230. }
  231. get callback() {
  232. return this._callback;
  233. }
  234. };
  235. var a3 = class {
  236. constructor(e6, t4) {
  237. this.eventType = e6, this._removed = false, this._handler = t4;
  238. }
  239. emit(e6, t4, n4) {
  240. this._removed || this._handler.onEmit(this, e6, t4, n4);
  241. }
  242. remove() {
  243. this._removed = true, this._handler.onRemove(this);
  244. }
  245. };
  246. // node_modules/@arcgis/core/views/input/handlers/LatestPointer.js
  247. var s4 = class extends i2 {
  248. constructor(t4) {
  249. super(true), this._onChange = t4, this._value = "mouse", this._x = null, this._y = null, this.registerIncoming("pointer-move", (t5) => {
  250. const s5 = t5.data.native.pointerType === "touch";
  251. this._setValue(s5 ? "touch" : "mouse", t5.data.x, t5.data.y);
  252. });
  253. }
  254. _setValue(t4, s5, e6) {
  255. t4 === this._value && this._x === s5 && this._y === e6 || (this._value = t4, this._x = s5, this._y = e6, this._onChange(t4, s5, e6));
  256. }
  257. };
  258. // node_modules/@arcgis/core/views/input/InputManager.js
  259. var d2 = s.getLogger("esri.views.input.InputManager");
  260. var c = class extends y {
  261. constructor(e6) {
  262. super(e6), this._pointerCaptures = new Map(), this._nameToGroup = {}, this._handlers = [], this._currentPropagation = null, this._updateDependenciesAfterPropagation = false, this._sourceEvents = new Set(), this._keyModifiers = new Set(), this._activeKeyModifiers = new Set(), this._stoppedPropagationEventIds = new Set(), this.primaryKey = t3, this.latestPointerType = "mouse", this._propertiesPool = new o({ latestPointerLocation: P }, this), this.latestPointerLocation = null, this.test = { timestamp: void 0, hasCurrentPropagation: () => !!this._currentPropagation };
  263. }
  264. initialize() {
  265. this.eventSource.onEventReceived = this._onEventReceived.bind(this), this._installRecognizers();
  266. }
  267. destroy() {
  268. const e6 = Object.keys(this._nameToGroup);
  269. for (const t4 of e6)
  270. this.uninstallHandlers(t4);
  271. this.eventSource = null, this._currentPropagation = null, this._propertiesPool.destroy();
  272. }
  273. get hasPendingInputs() {
  274. return this._handlers.some((e6) => e6.handler.hasPendingInputs);
  275. }
  276. installHandlers(e6, t4, r = g.INTERNAL) {
  277. if (this._nameToGroup[e6])
  278. return void d2.error("There is already an InputHandler group registered under the name `" + e6 + "`");
  279. if (t4.length === 0)
  280. return void d2.error("Can't register a group of zero handlers");
  281. const i3 = { name: e6, handlers: t4.map((e7) => ({ handler: e7, active: true, removed: false, priorityIndex: 0, groupPriority: r, eventCallback: null, uninstallCallback: null })) };
  282. this._nameToGroup[e6] = i3;
  283. for (let n4 = i3.handlers.length - 1; n4 >= 0; n4--) {
  284. const e7 = i3.handlers[n4];
  285. this._handlers.push(e7), e7.handler.onInstall({ updateDependencies: () => {
  286. this.updateDependencies();
  287. }, emit: (t5, r2, i4, n5, s5) => {
  288. this._emitInputEvent(e7.priorityIndex + 1, t5, r2, i4, s5, n5);
  289. }, setPointerCapture: (t5, r2) => {
  290. this._setPointerCapture(i3, e7, t5, r2);
  291. }, setEventCallback: (t5) => {
  292. e7.eventCallback = t5;
  293. }, setUninstallCallback: (t5) => {
  294. e7.uninstallCallback = t5;
  295. }, refreshHasPendingInputs: () => {
  296. this.notifyChange("hasPendingInputs");
  297. } });
  298. }
  299. this.updateDependencies();
  300. }
  301. uninstallHandlers(e6) {
  302. const t4 = this._nameToGroup[e6];
  303. t4 ? (t4.handlers.forEach((e7) => {
  304. e7.removed = true, e7.uninstallCallback();
  305. }), delete this._nameToGroup[e6], this._currentPropagation ? this._currentPropagation.needsHandlerGarbageCollect = true : this._garbageCollectRemovedHandlers()) : d2.error("There is no InputHandler group registered under the name `" + e6 + "`");
  306. }
  307. hasHandlers(e6) {
  308. return this._nameToGroup[e6] !== void 0;
  309. }
  310. updateDependencies() {
  311. if (this._currentPropagation)
  312. return void (this._updateDependenciesAfterPropagation = true);
  313. this._updateDependenciesAfterPropagation = false;
  314. const e6 = new Set(), t4 = new Set();
  315. this._handlersPriority = [];
  316. for (let r = this._handlers.length - 1; r >= 0; r--) {
  317. const e7 = this._handlers[r];
  318. e7.priorityIndex = r, this._handlersPriority.push(e7);
  319. }
  320. this._handlersPriority = this._sortHandlersPriority(this._handlersPriority);
  321. for (let r = this._handlersPriority.length - 1; r >= 0; r--) {
  322. const i3 = this._handlersPriority[r];
  323. i3.priorityIndex = r;
  324. let n4 = i3.handler.hasSideEffects;
  325. if (!n4) {
  326. for (const t5 of i3.handler.outgoingEventTypes)
  327. if (e6.has(t5)) {
  328. n4 = true;
  329. break;
  330. }
  331. }
  332. if (n4)
  333. for (const r2 of i3.handler.incomingEventMatches) {
  334. e6.add(r2.eventType);
  335. for (const e7 of r2.keyModifiers)
  336. n2(e7) || t4.add(e7);
  337. }
  338. i3.active = n4;
  339. }
  340. this._sourceEvents = e6, this._keyModifiers = t4, this._pointerCaptures.size > 0 && this._sourceEvents.add("pointer-capture-lost"), this._keyModifiers.size > 0 && (this._sourceEvents.add("key-down"), this._sourceEvents.add("key-up")), this.eventSource && (this.eventSource.activeEvents = this._sourceEvents);
  341. }
  342. _setLatestPointer(e6, t4, r) {
  343. this._get("latestPointerType") !== e6 && this._set("latestPointerType", e6);
  344. const n4 = this._get("latestPointerLocation");
  345. if (t(n4) || n4.x !== t4 || n4.y !== r) {
  346. const e7 = this._propertiesPool.get("latestPointerLocation");
  347. e7.x = t4, e7.y = r, this._set("latestPointerLocation", e7);
  348. }
  349. }
  350. _onEventReceived(e6, t4) {
  351. if (e6 === "pointer-capture-lost") {
  352. const e7 = t4;
  353. this._pointerCaptures.delete(e7.native.pointerId);
  354. }
  355. this._updateKeyModifiers(e6, t4);
  356. const r = this.test.timestamp != null ? this.test.timestamp : t4.native ? t4.native.timestamp : void 0, i3 = t4.native ? t4.native.cancelable : void 0;
  357. this._emitInputEventFromSource(e6, t4, r, i3);
  358. }
  359. _updateKeyModifiers(e6, t4) {
  360. if (!t4)
  361. return;
  362. let r = false;
  363. const i3 = () => {
  364. if (!r) {
  365. const e7 = new Set();
  366. this._activeKeyModifiers.forEach((t5) => {
  367. e7.add(t5);
  368. }), this._activeKeyModifiers = e7, r = true;
  369. }
  370. }, n4 = (e7, t5) => {
  371. t5 && !this._activeKeyModifiers.has(e7) ? (i3(), this._activeKeyModifiers.add(e7)) : !t5 && this._activeKeyModifiers.has(e7) && (i3(), this._activeKeyModifiers.delete(e7));
  372. };
  373. if (e6 === "key-down" || e6 === "key-up") {
  374. const r2 = t4.key;
  375. this._keyModifiers.has(r2) && n4(r2, e6 === "key-down");
  376. }
  377. const s5 = t4.native;
  378. n4("Alt", !(!s5 || !s5.altKey)), n4("Ctrl", !(!s5 || !s5.ctrlKey)), n4("Shift", !(!s5 || !s5.shiftKey)), n4("Meta", !(!s5 || !s5.metaKey)), n4("Primary", this._activeKeyModifiers.has(this.primaryKey));
  379. }
  380. _installRecognizers() {
  381. this._latestPointerHandler = new s4((e6, t4, r) => this._setLatestPointer(e6, t4, r)), this.installHandlers("input-manager-logic", [this._latestPointerHandler], g.ALWAYS), this.recognizers.length > 0 && this.installHandlers("default", this.recognizers, g.INTERNAL);
  382. }
  383. _setPointerCapture(e6, t4, r, i3) {
  384. const n4 = e6.name + "-" + t4.priorityIndex, s5 = this._pointerCaptures.get(r.pointerId) || new Set();
  385. this._pointerCaptures.set(r.pointerId, s5), i3 ? (s5.add(n4), s5.size === 1 && this.eventSource && this.eventSource.setPointerCapture(r, true)) : s5.has(n4) && (s5.delete(n4), s5.size === 0 && (this._pointerCaptures.delete(r.pointerId), this.eventSource && this.eventSource.setPointerCapture(r, false)));
  386. }
  387. _garbageCollectRemovedHandlers() {
  388. this._handlers = this._handlers.filter((e6) => !e6.removed), this.updateDependencies();
  389. }
  390. _emitInputEventFromSource(e6, t4, r, i3) {
  391. this._emitInputEvent(0, e6, t4, r, i3);
  392. }
  393. _emitInputEvent(e6, t4, r, i3, n4, s5) {
  394. const o3 = i3 !== void 0 ? i3 : this._currentPropagation ? this._currentPropagation.timestamp : performance.now(), a4 = n4 !== void 0 && n4, p = { event: new u(t4, r, o3, s5 || this._activeKeyModifiers, a4), priorityIndex: e6 };
  395. this._currentPropagation ? this._currentPropagation.events.push(p) : this._doNewPropagation(p);
  396. }
  397. _doNewPropagation(e6) {
  398. this._currentPropagation = { events: new e2(), currentHandler: null, needsHandlerGarbageCollect: false, timestamp: e6.event.timestamp }, this._currentPropagation.events.push(e6), this._continuePropagation();
  399. }
  400. _continuePropagation() {
  401. const e6 = this._currentPropagation;
  402. if (e6) {
  403. for (; this._currentPropagation.events.length > 0; ) {
  404. const { event: t4, priorityIndex: r } = this._currentPropagation.events.pop(), i3 = t4.data && t4.data.eventId;
  405. if (!(i3 != null && this._stoppedPropagationEventIds.has(i3)))
  406. for (e6.currentHandler = this._handlersPriority[r]; e6.currentHandler; ) {
  407. if (e6.currentHandler.removed)
  408. e6.needsHandlerGarbageCollect = true;
  409. else {
  410. if (e6.currentHandler.active && !t4.shouldStopPropagation() && e6.currentHandler.eventCallback(t4), t4.shouldStopPropagation()) {
  411. i3 != null && this._stoppedPropagationEventIds.add(i3);
  412. break;
  413. }
  414. if (t4.shouldPausePropagation(() => this._continuePropagation()))
  415. return void this._pausePropagation({ event: t4, priorityIndex: e6.currentHandler.priorityIndex + 1 });
  416. }
  417. e6.currentHandler = this._handlersPriority[e6.currentHandler.priorityIndex + 1];
  418. }
  419. }
  420. e6.needsHandlerGarbageCollect && this._garbageCollectRemovedHandlers(), this.hasPendingInputs || this._stoppedPropagationEventIds.clear(), this._currentPropagation = null, this._updateDependenciesAfterPropagation && this.updateDependencies();
  421. }
  422. }
  423. _pausePropagation(e6) {
  424. const t4 = new e2();
  425. for (t4.push(e6); this._currentPropagation.events.length; )
  426. t4.push(this._currentPropagation.events.pop());
  427. this._currentPropagation.events = t4, this._currentPropagation.currentHandler = null;
  428. }
  429. _compareHandlerPriority(e6, t4) {
  430. if (e6.handler.hasSideEffects !== t4.handler.hasSideEffects)
  431. return e6.handler.hasSideEffects ? 1 : -1;
  432. if (e6.groupPriority !== t4.groupPriority)
  433. return e6.groupPriority > t4.groupPriority ? -1 : 1;
  434. for (const r of e6.handler.incomingEventMatches)
  435. for (const e7 of t4.handler.incomingEventMatches) {
  436. if (r.eventType !== e7.eventType)
  437. continue;
  438. const t5 = r.keyModifiers.filter((t6) => e7.keyModifiers.includes(t6));
  439. if (t5.length === r.keyModifiers.length !== (t5.length === e7.keyModifiers.length))
  440. return r.keyModifiers.length > e7.keyModifiers.length ? -1 : 1;
  441. }
  442. return e6.priorityIndex > t4.priorityIndex ? -1 : 1;
  443. }
  444. _sortHandlersPriority(e6) {
  445. const t4 = [];
  446. for (const r of e6) {
  447. let e7 = 0;
  448. for (; e7 < t4.length && this._compareHandlerPriority(r, t4[e7]) >= 0; )
  449. e7++;
  450. t4.splice(e7, 0, r);
  451. }
  452. return t4;
  453. }
  454. get debug() {
  455. const e6 = (e7) => {
  456. const t4 = this._setPointerCapture;
  457. this._setPointerCapture = () => {
  458. }, e7(), this._setPointerCapture = t4;
  459. };
  460. return { injectEvent: (t4, r) => {
  461. e6(() => {
  462. this._onEventReceived(t4, r);
  463. });
  464. }, disablePointerCapture: e6 };
  465. }
  466. };
  467. e([d({ readOnly: true })], c.prototype, "hasPendingInputs", null), e([d()], c.prototype, "eventSource", void 0), e([d()], c.prototype, "recognizers", void 0), e([d({ readOnly: true })], c.prototype, "latestPointerType", void 0), e([d({ readOnly: true })], c.prototype, "latestPointerLocation", void 0), c = e([n("esri.views.input.InputManager")], c);
  468. var u = class {
  469. constructor(e6, t4, r, i3, n4) {
  470. this.type = e6, this.data = t4, this.timestamp = r, this.modifiers = i3, this.cancelable = n4, this._propagationState = _.NONE, this._resumeCallback = null;
  471. }
  472. stopPropagation() {
  473. this._propagationState |= _.STOPPED;
  474. }
  475. shouldStopPropagation() {
  476. return (this._propagationState & _.STOPPED) != 0;
  477. }
  478. async(e6) {
  479. this._propagationState |= _.PAUSED;
  480. const t4 = (e7, t5) => {
  481. this._propagationState &= ~_.PAUSED;
  482. const r = this._resumeCallback;
  483. if (this._resumeCallback = null, r && r(), t5)
  484. throw e7;
  485. return e7;
  486. };
  487. return (typeof e6 == "function" ? e6() : e6).then((e7) => t4(e7, false), (e7) => t4(e7, true));
  488. }
  489. shouldPausePropagation(e6) {
  490. return !!(this._propagationState & _.PAUSED) && (this._resumeCallback = e6, true);
  491. }
  492. preventDefault() {
  493. this.data.native.preventDefault();
  494. }
  495. };
  496. var _;
  497. !function(e6) {
  498. e6[e6.NONE = 0] = "NONE", e6[e6.STOPPED = 1] = "STOPPED", e6[e6.PAUSED = 2] = "PAUSED";
  499. }(_ || (_ = {}));
  500. var g = { ALWAYS: 1, DEFAULT: 0, TOOL: -1, WIDGET: -2, INTERNAL: -3 };
  501. var P = class {
  502. };
  503. export {
  504. e3 as e,
  505. a2 as a,
  506. i2 as i,
  507. c,
  508. g,
  509. e4 as e2
  510. };
  511. //# sourceMappingURL=chunk-RATJTB73.js.map