1import { 2 b 3} from "./chunk-3YA2TWJN.js"; 4import { 5 l as l2, 6 m2 7} from "./chunk-JO5Y6T4M.js"; 8import { 9 __addDisposableResource, 10 __decorate, 11 __disposeResources 12} from "./chunk-O3DSNDI6.js"; 13import { 14 a, 15 e, 16 l, 17 m, 18 v 19} from "./chunk-5G4UZ6GR.js"; 20import { 21 __async 22} from "./chunk-A3K3H554.js"; 23 24// node_modules/@arcgis/core/core/asyncUtils.js 25function p(r, t, o) { 26 return v(r.map((r2, e2) => t.apply(o, [r2, e2]))); 27} 28function h(r, t, o) { 29 return __async(this, null, function* () { 30 return (yield v(r.map((r2, e2) => t.apply(o, [r2, e2])))).map((r2) => r2.value); 31 }); 32} 33function m3(r) { 34 return { ok: true, value: r }; 35} 36function _(r) { 37 return { ok: false, error: r }; 38} 39function f(r) { 40 return null != r && true === r.ok ? r.value : null; 41} 42function y(r) { 43 return null != r && false === r.ok ? r.error : null; 44} 45function b2(r) { 46 return __async(this, null, function* () { 47 if (null == r) return { ok: false, error: new Error("no promise provided") }; 48 try { 49 return m3(yield r); 50 } catch (t) { 51 return _(t); 52 } 53 }); 54} 55function d(r) { 56 return __async(this, null, function* () { 57 try { 58 return m3(yield r); 59 } catch (t) { 60 return a(t), _(t); 61 } 62 }); 63} 64function w(r, t) { 65 return new k(r, t); 66} 67var k = class extends b { 68 get value() { 69 return f(this._result); 70 } 71 get error() { 72 return y(this._result); 73 } 74 get finished() { 75 return null != this._result; 76 } 77 constructor(r, t) { 78 super({}), this._result = null, this._abortHandle = null, this.abort = () => { 79 this._abortController = l(this._abortController); 80 }, this.remove = this.abort, this._abortController = new AbortController(); 81 const { signal: o } = this._abortController; 82 this.promise = r(o), this.promise.then((r2) => { 83 this._result = m3(r2), this._cleanup(); 84 }, (r2) => { 85 this._result = _(r2), this._cleanup(); 86 }), this._abortHandle = m(t, this.abort); 87 } 88 normalizeCtorArgs() { 89 return {}; 90 } 91 destroy() { 92 this.abort(); 93 } 94 _cleanup() { 95 this._abortHandle = e(this._abortHandle), this._abortController = null; 96 } 97}; 98__decorate([m2()], k.prototype, "value", null), __decorate([m2()], k.prototype, "error", null), __decorate([m2()], k.prototype, "finished", null), __decorate([m2()], k.prototype, "promise", void 0), __decorate([m2()], k.prototype, "_result", void 0), k = __decorate([l2("esri.core.asyncUtils.ReactiveTask")], k); 99var C = class { 100 constructor() { 101 this._sequence = Promise.resolve(); 102 } 103 acquire() { 104 return __async(this, null, function* () { 105 let r; 106 this._sequence = new Promise((t2) => { 107 r = this._sequence.then(() => t2, () => t2); 108 }); 109 const t = yield r; 110 return { [Symbol.dispose]: t }; 111 }); 112 } 113 run(o) { 114 return __async(this, null, function* () { 115 const e2 = { stack: [], error: void 0, hasError: false }; 116 try { 117 __addDisposableResource(e2, yield this.acquire(), false); 118 return yield o(); 119 } catch (s) { 120 e2.error = s, e2.hasError = true; 121 } finally { 122 __disposeResources(e2); 123 } 124 }); 125 } 126}; 127 128export { 129 p, 130 h, 131 b2 as b, 132 d, 133 w, 134 C 135}; 136//# sourceMappingURL=chunk-FFA2D7LN.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.