@absolutejs/absolute 0.20.0-beta.130 → 0.20.0-beta.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/changelog.json +52 -0
- package/dist/angular/browser.js +406 -396
- package/dist/angular/browser.js.map +4 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -3
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -4
- package/dist/angular/index.js +560 -701
- package/dist/angular/index.js.map +5 -5
- package/dist/angular/server.js +197 -338
- package/dist/angular/server.js.map +5 -5
- package/dist/build/buildWorker.js +27 -35
- package/dist/build.js +3833 -5876
- package/dist/build.js.map +4 -4
- package/dist/cli/{add-9sa7e3vd.js → add-hvqeg5sz.js} +23 -25
- package/dist/cli/{analyze-c1sep5y9.js → analyze-c2x2aym5.js} +6 -7
- package/dist/cli/androidEmulatorController-j73a1br6.js +22 -0
- package/dist/cli/{androidNativeWatcher-dnp95nk2.js → androidNativeWatcher-ctbnsr1v.js} +11 -14
- package/dist/cli/{api-2hd8cahp.js → api-rk13rfd9.js} +11 -13
- package/dist/cli/{build-857rc1ds.js → build-20y4b6rj.js} +8 -9
- package/dist/cli/{buildDepVendor-8akhr8n8.js → buildDepVendor-axqvbbm6.js} +5 -170
- package/dist/cli/{compile-9by2vxy5.js → compile-nf4qsqyd.js} +45 -48
- package/dist/cli/config/client.js +8 -8
- package/dist/cli/config/server.js +5615 -5595
- package/dist/cli/config-3te1fbry.js +7 -0
- package/dist/cli/{db-8wweexdp.js → db-p8pc325y.js} +5 -13
- package/dist/cli/{dev-qg7fr16s.js → dev-6f0gry3y.js} +75 -77
- package/dist/cli/{devCert-avr89zf3.js → devCert-n33ep8pg.js} +0 -3
- package/dist/cli/{doctor-mbh9bk05.js → doctor-8rm8p4dm.js} +13 -14
- package/dist/cli/emulatorDoctor-cwa70kgt.js +17 -0
- package/dist/cli/emulatorInstaller-dx3fmm2m.js +14 -0
- package/dist/cli/env-2107nff1.js +11 -0
- package/dist/cli/eslint-zz0t0kfp.js +17 -0
- package/dist/cli/eslintChunked-wg10jj9m.js +12 -0
- package/dist/cli/expoDevController-s70fj7vf.js +16 -0
- package/dist/cli/{expoNativeWatcher-rmc95bak.js → expoNativeWatcher-aakp7xvj.js} +1 -5
- package/dist/cli/expoProject-zy02tbfg.js +10 -0
- package/dist/cli/{generate-069p0dk3.js → generate-nz4w03yz.js} +19 -21
- package/dist/cli/{heapDiff-87v24x7p.js → heapDiff-2etr2r26.js} +5 -6
- package/dist/cli/{htmx-5wh1jh75.js → htmx-0xcaqrny.js} +12 -14
- package/dist/cli/{index-sjvydg2r.js → index-1ff9q1vx.js} +7 -7
- package/dist/cli/{index-rqbk0b30.js → index-1qewxkgy.js} +26 -26
- package/dist/cli/{index-prwyfnn3.js → index-1x1vah31.js} +2 -2
- package/dist/cli/{index-ddakkws4.js → index-31j3beht.js} +13 -13
- package/dist/cli/{index-j2nw3edf.js → index-3gtnqd57.js} +5 -5
- package/dist/cli/{index-54q7pxcx.js → index-434b7j4a.js} +2 -32
- package/dist/cli/{index-w5vswatm.js → index-43a1vvb7.js} +6 -10
- package/dist/cli/{index-nxcwg9ma.js → index-5sjk7daj.js} +31 -31
- package/dist/cli/{index-6j1xaheg.js → index-73sk1ney.js} +5 -5
- package/dist/cli/{index-3x5wpx5d.js → index-8kdmmgvc.js} +2 -2
- package/dist/cli/{index-1ys3dnrs.js → index-8w2wazrk.js} +34 -34
- package/dist/cli/{index-wtfnv3n2.js → index-92hmw204.js} +3 -3
- package/dist/cli/{index-vdbn8brx.js → index-c3tqbpkq.js} +40 -41
- package/dist/cli/{index-mywsk201.js → index-fde3c297.js} +1 -1
- package/dist/cli/{index-wctgx65x.js → index-hfvxsgf4.js} +48 -31
- package/dist/cli/{index-255xs63d.js → index-j57pgg5m.js} +10 -10
- package/dist/cli/{index-5cgsrv62.js → index-jcjwsdqt.js} +13 -182
- package/dist/cli/{index-00wfffav.js → index-k4t9k1xk.js} +5 -5
- package/dist/cli/{index-yxgaf8j0.js → index-m1vntzf1.js} +7 -5
- package/dist/cli/{index-9r7n9dqp.js → index-ma1dw7x2.js} +1 -1
- package/dist/cli/index-pch0v1z6.js +60 -0
- package/dist/cli/{index-8nym68py.js → index-ppxed116.js} +1 -1
- package/dist/cli/{index-9kwmb3c0.js → index-qyxd5n9a.js} +3 -3
- package/dist/cli/{index-tn4crd40.js → index-r62705dc.js} +12 -12
- package/dist/cli/{index-hty8111z.js → index-r915cvqp.js} +17 -17
- package/dist/cli/{index-exdd5k1g.js → index-rrxeqrbn.js} +2 -2
- package/dist/cli/{index-keg69zm1.js → index-snbzdwb9.js} +5 -5
- package/dist/cli/{index-v26ze17p.js → index-thqwfzy8.js} +3 -3
- package/dist/cli/{index-0hr7c4qe.js → index-vdnmqkt8.js} +14 -18
- package/dist/cli/{index-vkkqe08e.js → index-vj2v38sq.js} +29 -29
- package/dist/cli/{index-erngp7a9.js → index-wy0yh4jj.js} +16 -16
- package/dist/cli/{index-1cypb2zn.js → index-xcr3r6a1.js} +8 -8
- package/dist/cli/index.js +44 -48
- package/dist/cli/{info-d74dr585.js → info-kx5510rq.js} +7 -7
- package/dist/cli/{inspect-23chj4nc.js → inspect-5dj06x0m.js} +18 -20
- package/dist/cli/{iosNativeWatcher-kggp7j9a.js → iosNativeWatcher-zx49pzej.js} +12 -16
- package/dist/cli/iosSimulatorController-haa1cc3p.js +23 -0
- package/dist/cli/{islands-wpqgmwh0.js → islands-z4adh55n.js} +8 -9
- package/dist/cli/{lintProof-wx3b6dzy.js → lintProof-qcwdvzcz.js} +12 -17
- package/dist/cli/{logs-bx2n5ey6.js → logs-3p2vrq5h.js} +8 -10
- package/dist/cli/{ls-kvmcmd2j.js → ls-nkspq73y.js} +13 -14
- package/dist/cli/{mem-apbk7bx4.js → mem-h3f497cr.js} +10 -14
- package/dist/cli/{migrate-p4rp5r6b.js → migrate-52bqqp08.js} +7 -8
- package/dist/cli/{mobile-43q3zmjf.js → mobile-m0cdh8cf.js} +572 -575
- package/dist/cli/nativeAuth-ysv0x5dy.js +27 -0
- package/dist/cli/patchedBun-m7vj5sks.js +9 -0
- package/dist/cli/prerender-mfnwsvyt.js +7 -0
- package/dist/cli/{prettier-vtk5yaw4.js → prettier-c1624g36.js} +2 -6
- package/dist/cli/{ps-8y28kzmb.js → ps-0jedm91n.js} +12 -16
- package/dist/cli/{psTui-8e96mwgz.js → psTui-tpr5nbmc.js} +28 -30
- package/dist/cli/remoteMacProtocol-v3ax0y0f.js +41 -0
- package/dist/cli/{remove-3fd1z2hx.js → remove-z0brj5nd.js} +16 -18
- package/dist/cli/{rewriteImports-d1gmaa68.js → rewriteImports-k6rjjmg1.js} +2 -100
- package/dist/cli/{routes-0xpanj8z.js → routes-ey0sw1eq.js} +7 -9
- package/dist/cli/start-3z3gtgm0.js +20 -0
- package/dist/cli/telemetry-3wnc06wa.js +9 -0
- package/dist/cli/{tunnelRelay-5at2v8w6.js → tunnelRelay-19ay0fxn.js} +3 -4
- package/dist/cli/{typecheck-yj9s13eb.js → typecheck-nmf6e7k7.js} +147 -149
- package/dist/cli/{workspace-m56sgfkc.js → workspace-yetzedke.js} +32 -36
- package/dist/client/chunks/{index-dk743xs6.js → index-8m2qq61n.js} +12 -8
- package/dist/client/chunks/{index-dk743xs6.js.map → index-8m2qq61n.js.map} +4 -3
- package/dist/client/chunks/{index-m35nbkdp.js → islands-rc28k5sx.js} +104 -42
- package/dist/client/chunks/islands-rc28k5sx.js.map +15 -0
- package/dist/client/chunks/{react-yq4ss9y4.js → react-dcvkaba2.js} +5 -7
- package/dist/client/chunks/{react-yq4ss9y4.js.map → react-dcvkaba2.js.map} +2 -2
- package/dist/client/chunks/{svelte-s0c964kb.js → svelte-4yfa5bxa.js} +2 -4
- package/dist/client/chunks/{svelte-s0c964kb.js.map → svelte-4yfa5bxa.js.map} +2 -2
- package/dist/client/chunks/{vue-rdskrnyg.js → vue-a84fzp3v.js} +2 -4
- package/dist/client/chunks/{vue-rdskrnyg.js.map → vue-a84fzp3v.js.map} +2 -2
- package/dist/client/index.js +42 -15
- package/dist/client/index.js.map +2 -2
- package/dist/client/prefetch.js +1 -3
- package/dist/client/prefetch.js.map +2 -2
- package/dist/core/streamingSlotRegistrar.js +1 -64
- package/dist/core/streamingSlotRegistrar.js.map +2 -2
- package/dist/core/streamingSlotRegistry.js +1 -64
- package/dist/core/streamingSlotRegistry.js.map +2 -2
- package/dist/dev/serverBootstrap.js +1802 -2018
- package/dist/index.js +5247 -8794
- package/dist/index.js.map +9 -20
- package/dist/islands/browser.js +13 -3
- package/dist/islands/browser.js.map +2 -2
- package/dist/islands/index.js +26 -142
- package/dist/islands/index.js.map +2 -2
- package/dist/mobile/browser.js +13 -3
- package/dist/mobile/browser.js.map +2 -2
- package/dist/mobile/index.js +1067 -2182
- package/dist/mobile/index.js.map +2 -2
- package/dist/mobile/remoteMacAgentEntry.js +156 -156
- package/dist/mobile/shellAuth.js +0 -16
- package/dist/mobile/shellBootstrap.js +734 -724
- package/dist/mobile/shellExpoAuth.js +4 -18
- package/dist/mobile/shellExpoDevices.js +0 -16
- package/dist/mobile/shellExpoSync.js +0 -16
- package/dist/mobile/shellSync.js +3 -19
- package/dist/mobile/shellUpdate.js +5 -21
- package/dist/mobile/uiPrimitives.js +0 -16
- package/dist/react/browser.js +15 -5
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/index.js +68 -58
- package/dist/react/components/index.js.map +4 -4
- package/dist/react/hooks/index.js +1 -63
- package/dist/react/hooks/index.js.map +2 -2
- package/dist/react/index.js +56 -195
- package/dist/react/index.js.map +5 -5
- package/dist/react/jsxDevRuntimeCompat.js +1 -64
- package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
- package/dist/react/jsxRuntimeCompat.js +1 -64
- package/dist/react/jsxRuntimeCompat.js.map +2 -2
- package/dist/react/router/browser.js +1 -64
- package/dist/react/router/browser.js.map +2 -2
- package/dist/react/router/index.js +1 -64
- package/dist/react/router/index.js.map +2 -2
- package/dist/react/server.js +38 -51
- package/dist/react/server.js.map +5 -5
- package/dist/src/cli/config/server.d.ts +7 -129
- package/dist/src/cli/patchedBun.d.ts +14 -14
- package/dist/src/cli/serverBundleExternals.d.ts +17 -2
- package/dist/src/core/prepare.d.ts +149 -1805
- package/dist/src/core/requestContext.d.ts +1 -1
- package/dist/src/dev/requestInspector.d.ts +1 -1
- package/dist/src/mobile/associationFiles.d.ts +2 -2
- package/dist/src/mobile/compatibilityDispatcher.d.ts +1 -1
- package/dist/src/mobile/mobilePreview.d.ts +8 -130
- package/dist/src/mobile/updateServer.d.ts +2 -2
- package/dist/src/plugins/devtoolsJson.d.ts +2 -2
- package/dist/src/plugins/hmr.d.ts +2 -2
- package/dist/src/plugins/imageOptimizer.d.ts +2 -151
- package/dist/src/plugins/telemetryPlugin.d.ts +1 -19
- package/dist/svelte/browser.js +13 -3
- package/dist/svelte/browser.js.map +2 -2
- package/dist/svelte/index.js +66 -210
- package/dist/svelte/index.js.map +5 -5
- package/dist/svelte/server.js +51 -99
- package/dist/svelte/server.js.map +5 -5
- package/dist/types/globals.d.ts +0 -6
- package/dist/vue/browser.js +13 -3
- package/dist/vue/browser.js.map +2 -2
- package/dist/vue/components/Image.js +13 -3
- package/dist/vue/components/Image.js.map +2 -2
- package/dist/vue/components/index.js +62 -50
- package/dist/vue/components/index.js.map +4 -4
- package/dist/vue/index.js +1115 -1258
- package/dist/vue/index.js.map +10 -10
- package/dist/vue/server.js +42 -59
- package/dist/vue/server.js.map +5 -5
- package/package.json +9 -9
- package/dist/cli/androidEmulatorController-sj141e1c.js +0 -30
- package/dist/cli/config-rjeexvza.js +0 -8
- package/dist/cli/emulatorDoctor-gzarrsex.js +0 -18
- package/dist/cli/emulatorInstaller-pjw4ex6q.js +0 -15
- package/dist/cli/env-4f6f6z69.js +0 -14
- package/dist/cli/eslint-qfkxe89p.js +0 -20
- package/dist/cli/eslintChunked-7ef700pn.js +0 -21
- package/dist/cli/expoDevController-weywa74d.js +0 -26
- package/dist/cli/expoProject-w2pzjwnx.js +0 -11
- package/dist/cli/index-1rabqyq0.js +0 -7
- package/dist/cli/index-ar4gz15x.js +0 -60
- package/dist/cli/iosSimulatorController-xcxxfkzx.js +0 -34
- package/dist/cli/nativeAuth-zx4tsb1f.js +0 -38
- package/dist/cli/patchedBun-zjtrn2s4.js +0 -38
- package/dist/cli/prerender-yex2zwj3.js +0 -18
- package/dist/cli/remoteMacProtocol-r38jhg44.js +0 -69
- package/dist/cli/start-gzhrkhxe.js +0 -23
- package/dist/cli/telemetry-94rka1w2.js +0 -14
- package/dist/client/chunks/angularPatch-arh4sr68.js +0 -157
- package/dist/client/chunks/angularPatch-arh4sr68.js.map +0 -10
- package/dist/client/chunks/index-jrcwp722.js +0 -12
- package/dist/client/chunks/index-jrcwp722.js.map +0 -10
- package/dist/client/chunks/index-m35nbkdp.js.map +0 -12
- package/dist/client/chunks/index-qxjc7kc5.js +0 -12
- package/dist/client/chunks/index-qxjc7kc5.js.map +0 -9
- package/dist/client/chunks/islands-50dg63j9.js +0 -284
- package/dist/client/chunks/islands-50dg63j9.js.map +0 -14
- /package/dist/cli/{index-me8nczrw.js → index-039rh39e.js} +0 -0
- /package/dist/cli/{index-bw4ktfnz.js → index-1y5mmnwg.js} +0 -0
- /package/dist/cli/{index-5xfxd7xa.js → index-3wm8p7rg.js} +0 -0
- /package/dist/cli/{index-4rme31py.js → index-420h9hq7.js} +0 -0
- /package/dist/cli/{index-4rhxthsy.js → index-65kqn88a.js} +0 -0
- /package/dist/cli/{index-r8x3839e.js → index-71gchbzt.js} +0 -0
- /package/dist/cli/{index-s2tazax7.js → index-92g14j47.js} +0 -0
- /package/dist/cli/{index-j66p8hn5.js → index-bwsa6ax4.js} +0 -0
- /package/dist/cli/{index-bzs19w3r.js → index-e6ysp900.js} +0 -0
- /package/dist/cli/{index-06cmrcdq.js → index-h7qhz02e.js} +0 -0
- /package/dist/cli/{index-6h54jqdq.js → index-hg54jyts.js} +0 -0
- /package/dist/cli/{index-czwrxgdj.js → index-hxqprc80.js} +0 -0
- /package/dist/cli/{index-zh6hhrwy.js → index-jjfbjv1z.js} +0 -0
- /package/dist/cli/{index-fc9vxw56.js → index-prs14ys9.js} +0 -0
- /package/dist/cli/{index-v1k46q3x.js → index-tx0kx9zx.js} +0 -0
- /package/dist/cli/{index-fhaf3tdk.js → index-x8x0f3ha.js} +0 -0
- /package/dist/cli/{index-18q9qc7f.js → index-ypcqx24p.js} +0 -0
package/dist/angular/browser.js
CHANGED
|
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
18
18
|
return cached;
|
|
19
19
|
}
|
|
20
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
21
|
+
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
22
|
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
23
|
for (let key of __getOwnPropNames(mod))
|
|
24
24
|
if (!__hasOwnProp.call(to, key))
|
|
@@ -59,7 +59,17 @@ var __legacyMetadataTS = (k, v) => {
|
|
|
59
59
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
60
60
|
return Reflect.metadata(k, v);
|
|
61
61
|
};
|
|
62
|
-
var __esm = (fn, res) => () =>
|
|
62
|
+
var __esm = (fn, res, err) => () => {
|
|
63
|
+
if (fn)
|
|
64
|
+
try {
|
|
65
|
+
res = fn(fn = 0);
|
|
66
|
+
} catch (e) {
|
|
67
|
+
err = [e];
|
|
68
|
+
}
|
|
69
|
+
if (err)
|
|
70
|
+
throw err[0];
|
|
71
|
+
return res;
|
|
72
|
+
};
|
|
63
73
|
var __require = import.meta.require;
|
|
64
74
|
|
|
65
75
|
// src/angular/httpTransferCache.ts
|
|
@@ -248,13 +258,13 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
248
258
|
var UnsubscriptionError_1 = require_UnsubscriptionError();
|
|
249
259
|
var arrRemove_1 = require_arrRemove();
|
|
250
260
|
var Subscription = function() {
|
|
251
|
-
function
|
|
261
|
+
function Subscription(initialTeardown) {
|
|
252
262
|
this.initialTeardown = initialTeardown;
|
|
253
263
|
this.closed = false;
|
|
254
264
|
this._parentage = null;
|
|
255
265
|
this._finalizers = null;
|
|
256
266
|
}
|
|
257
|
-
|
|
267
|
+
Subscription.prototype.unsubscribe = function() {
|
|
258
268
|
var e_1, _a, e_2, _b;
|
|
259
269
|
var errors;
|
|
260
270
|
if (!this.closed) {
|
|
@@ -325,13 +335,13 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
325
335
|
}
|
|
326
336
|
}
|
|
327
337
|
};
|
|
328
|
-
|
|
338
|
+
Subscription.prototype.add = function(teardown) {
|
|
329
339
|
var _a;
|
|
330
340
|
if (teardown && teardown !== this) {
|
|
331
341
|
if (this.closed) {
|
|
332
342
|
execFinalizer(teardown);
|
|
333
343
|
} else {
|
|
334
|
-
if (teardown instanceof
|
|
344
|
+
if (teardown instanceof Subscription) {
|
|
335
345
|
if (teardown.closed || teardown._hasParent(this)) {
|
|
336
346
|
return;
|
|
337
347
|
}
|
|
@@ -341,15 +351,15 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
341
351
|
}
|
|
342
352
|
}
|
|
343
353
|
};
|
|
344
|
-
|
|
354
|
+
Subscription.prototype._hasParent = function(parent) {
|
|
345
355
|
var _parentage = this._parentage;
|
|
346
356
|
return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);
|
|
347
357
|
};
|
|
348
|
-
|
|
358
|
+
Subscription.prototype._addParent = function(parent) {
|
|
349
359
|
var _parentage = this._parentage;
|
|
350
360
|
this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
|
|
351
361
|
};
|
|
352
|
-
|
|
362
|
+
Subscription.prototype._removeParent = function(parent) {
|
|
353
363
|
var _parentage = this._parentage;
|
|
354
364
|
if (_parentage === parent) {
|
|
355
365
|
this._parentage = null;
|
|
@@ -357,19 +367,19 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
357
367
|
arrRemove_1.arrRemove(_parentage, parent);
|
|
358
368
|
}
|
|
359
369
|
};
|
|
360
|
-
|
|
370
|
+
Subscription.prototype.remove = function(teardown) {
|
|
361
371
|
var _finalizers = this._finalizers;
|
|
362
372
|
_finalizers && arrRemove_1.arrRemove(_finalizers, teardown);
|
|
363
|
-
if (teardown instanceof
|
|
373
|
+
if (teardown instanceof Subscription) {
|
|
364
374
|
teardown._removeParent(this);
|
|
365
375
|
}
|
|
366
376
|
};
|
|
367
|
-
|
|
368
|
-
var empty = new
|
|
377
|
+
Subscription.EMPTY = function() {
|
|
378
|
+
var empty = new Subscription;
|
|
369
379
|
empty.closed = true;
|
|
370
380
|
return empty;
|
|
371
381
|
}();
|
|
372
|
-
return
|
|
382
|
+
return Subscription;
|
|
373
383
|
}();
|
|
374
384
|
exports.Subscription = Subscription;
|
|
375
385
|
exports.EMPTY_SUBSCRIPTION = Subscription.EMPTY;
|
|
@@ -515,7 +525,7 @@ var require_errorContext = __commonJS(function(exports) {
|
|
|
515
525
|
}
|
|
516
526
|
cb();
|
|
517
527
|
if (isRoot) {
|
|
518
|
-
var _a = context,
|
|
528
|
+
var _a = context, { errorThrown, error } = _a;
|
|
519
529
|
context = null;
|
|
520
530
|
if (errorThrown) {
|
|
521
531
|
throw error;
|
|
@@ -539,12 +549,12 @@ var require_errorContext = __commonJS(function(exports) {
|
|
|
539
549
|
var require_Subscriber = __commonJS(function(exports) {
|
|
540
550
|
var __extends = exports && exports.__extends || function() {
|
|
541
551
|
var extendStatics = function(d, b) {
|
|
542
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
543
|
-
|
|
544
|
-
} || function(
|
|
545
|
-
for (var p in
|
|
546
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
547
|
-
|
|
552
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
553
|
+
d.__proto__ = b;
|
|
554
|
+
} || function(d, b) {
|
|
555
|
+
for (var p in b)
|
|
556
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
557
|
+
d[p] = b[p];
|
|
548
558
|
};
|
|
549
559
|
return extendStatics(d, b);
|
|
550
560
|
};
|
|
@@ -569,8 +579,8 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
569
579
|
var timeoutProvider_1 = require_timeoutProvider();
|
|
570
580
|
var errorContext_1 = require_errorContext();
|
|
571
581
|
var Subscriber = function(_super) {
|
|
572
|
-
__extends(
|
|
573
|
-
function
|
|
582
|
+
__extends(Subscriber, _super);
|
|
583
|
+
function Subscriber(destination) {
|
|
574
584
|
var _this = _super.call(this) || this;
|
|
575
585
|
_this.isStopped = false;
|
|
576
586
|
if (destination) {
|
|
@@ -583,17 +593,17 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
583
593
|
}
|
|
584
594
|
return _this;
|
|
585
595
|
}
|
|
586
|
-
|
|
596
|
+
Subscriber.create = function(next, error, complete) {
|
|
587
597
|
return new SafeSubscriber(next, error, complete);
|
|
588
598
|
};
|
|
589
|
-
|
|
599
|
+
Subscriber.prototype.next = function(value) {
|
|
590
600
|
if (this.isStopped) {
|
|
591
601
|
handleStoppedNotification(NotificationFactories_1.nextNotification(value), this);
|
|
592
602
|
} else {
|
|
593
603
|
this._next(value);
|
|
594
604
|
}
|
|
595
605
|
};
|
|
596
|
-
|
|
606
|
+
Subscriber.prototype.error = function(err) {
|
|
597
607
|
if (this.isStopped) {
|
|
598
608
|
handleStoppedNotification(NotificationFactories_1.errorNotification(err), this);
|
|
599
609
|
} else {
|
|
@@ -601,7 +611,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
601
611
|
this._error(err);
|
|
602
612
|
}
|
|
603
613
|
};
|
|
604
|
-
|
|
614
|
+
Subscriber.prototype.complete = function() {
|
|
605
615
|
if (this.isStopped) {
|
|
606
616
|
handleStoppedNotification(NotificationFactories_1.COMPLETE_NOTIFICATION, this);
|
|
607
617
|
} else {
|
|
@@ -609,31 +619,31 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
609
619
|
this._complete();
|
|
610
620
|
}
|
|
611
621
|
};
|
|
612
|
-
|
|
622
|
+
Subscriber.prototype.unsubscribe = function() {
|
|
613
623
|
if (!this.closed) {
|
|
614
624
|
this.isStopped = true;
|
|
615
625
|
_super.prototype.unsubscribe.call(this);
|
|
616
626
|
this.destination = null;
|
|
617
627
|
}
|
|
618
628
|
};
|
|
619
|
-
|
|
629
|
+
Subscriber.prototype._next = function(value) {
|
|
620
630
|
this.destination.next(value);
|
|
621
631
|
};
|
|
622
|
-
|
|
632
|
+
Subscriber.prototype._error = function(err) {
|
|
623
633
|
try {
|
|
624
634
|
this.destination.error(err);
|
|
625
635
|
} finally {
|
|
626
636
|
this.unsubscribe();
|
|
627
637
|
}
|
|
628
638
|
};
|
|
629
|
-
|
|
639
|
+
Subscriber.prototype._complete = function() {
|
|
630
640
|
try {
|
|
631
641
|
this.destination.complete();
|
|
632
642
|
} finally {
|
|
633
643
|
this.unsubscribe();
|
|
634
644
|
}
|
|
635
645
|
};
|
|
636
|
-
return
|
|
646
|
+
return Subscriber;
|
|
637
647
|
}(Subscription_1.Subscription);
|
|
638
648
|
exports.Subscriber = Subscriber;
|
|
639
649
|
var _bind = Function.prototype.bind;
|
|
@@ -641,10 +651,10 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
641
651
|
return _bind.call(fn, thisArg);
|
|
642
652
|
}
|
|
643
653
|
var ConsumerObserver = function() {
|
|
644
|
-
function
|
|
654
|
+
function ConsumerObserver(partialObserver) {
|
|
645
655
|
this.partialObserver = partialObserver;
|
|
646
656
|
}
|
|
647
|
-
|
|
657
|
+
ConsumerObserver.prototype.next = function(value) {
|
|
648
658
|
var partialObserver = this.partialObserver;
|
|
649
659
|
if (partialObserver.next) {
|
|
650
660
|
try {
|
|
@@ -654,7 +664,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
654
664
|
}
|
|
655
665
|
}
|
|
656
666
|
};
|
|
657
|
-
|
|
667
|
+
ConsumerObserver.prototype.error = function(err) {
|
|
658
668
|
var partialObserver = this.partialObserver;
|
|
659
669
|
if (partialObserver.error) {
|
|
660
670
|
try {
|
|
@@ -666,7 +676,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
666
676
|
handleUnhandledError(err);
|
|
667
677
|
}
|
|
668
678
|
};
|
|
669
|
-
|
|
679
|
+
ConsumerObserver.prototype.complete = function() {
|
|
670
680
|
var partialObserver = this.partialObserver;
|
|
671
681
|
if (partialObserver.complete) {
|
|
672
682
|
try {
|
|
@@ -676,11 +686,11 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
676
686
|
}
|
|
677
687
|
}
|
|
678
688
|
};
|
|
679
|
-
return
|
|
689
|
+
return ConsumerObserver;
|
|
680
690
|
}();
|
|
681
691
|
var SafeSubscriber = function(_super) {
|
|
682
|
-
__extends(
|
|
683
|
-
function
|
|
692
|
+
__extends(SafeSubscriber, _super);
|
|
693
|
+
function SafeSubscriber(observerOrNext, error, complete) {
|
|
684
694
|
var _this = _super.call(this) || this;
|
|
685
695
|
var partialObserver;
|
|
686
696
|
if (isFunction_1.isFunction(observerOrNext) || !observerOrNext) {
|
|
@@ -708,7 +718,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
708
718
|
_this.destination = new ConsumerObserver(partialObserver);
|
|
709
719
|
return _this;
|
|
710
720
|
}
|
|
711
|
-
return
|
|
721
|
+
return SafeSubscriber;
|
|
712
722
|
}(Subscriber);
|
|
713
723
|
exports.SafeSubscriber = SafeSubscriber;
|
|
714
724
|
function handleUnhandledError(error) {
|
|
@@ -795,34 +805,34 @@ var require_Observable = __commonJS(function(exports) {
|
|
|
795
805
|
var isFunction_1 = require_isFunction();
|
|
796
806
|
var errorContext_1 = require_errorContext();
|
|
797
807
|
var Observable = function() {
|
|
798
|
-
function
|
|
808
|
+
function Observable(subscribe) {
|
|
799
809
|
if (subscribe) {
|
|
800
810
|
this._subscribe = subscribe;
|
|
801
811
|
}
|
|
802
812
|
}
|
|
803
|
-
|
|
804
|
-
var observable = new
|
|
813
|
+
Observable.prototype.lift = function(operator) {
|
|
814
|
+
var observable = new Observable;
|
|
805
815
|
observable.source = this;
|
|
806
816
|
observable.operator = operator;
|
|
807
817
|
return observable;
|
|
808
818
|
};
|
|
809
|
-
|
|
819
|
+
Observable.prototype.subscribe = function(observerOrNext, error, complete) {
|
|
810
820
|
var _this = this;
|
|
811
821
|
var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new Subscriber_1.SafeSubscriber(observerOrNext, error, complete);
|
|
812
822
|
errorContext_1.errorContext(function() {
|
|
813
|
-
var _a = _this,
|
|
823
|
+
var _a = _this, { operator, source } = _a;
|
|
814
824
|
subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
|
|
815
825
|
});
|
|
816
826
|
return subscriber;
|
|
817
827
|
};
|
|
818
|
-
|
|
828
|
+
Observable.prototype._trySubscribe = function(sink) {
|
|
819
829
|
try {
|
|
820
830
|
return this._subscribe(sink);
|
|
821
831
|
} catch (err) {
|
|
822
832
|
sink.error(err);
|
|
823
833
|
}
|
|
824
834
|
};
|
|
825
|
-
|
|
835
|
+
Observable.prototype.forEach = function(next, promiseCtor) {
|
|
826
836
|
var _this = this;
|
|
827
837
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
828
838
|
return new promiseCtor(function(resolve, reject) {
|
|
@@ -841,21 +851,21 @@ var require_Observable = __commonJS(function(exports) {
|
|
|
841
851
|
_this.subscribe(subscriber);
|
|
842
852
|
});
|
|
843
853
|
};
|
|
844
|
-
|
|
854
|
+
Observable.prototype._subscribe = function(subscriber) {
|
|
845
855
|
var _a;
|
|
846
856
|
return (_a = this.source) === null || _a === undefined ? undefined : _a.subscribe(subscriber);
|
|
847
857
|
};
|
|
848
|
-
|
|
858
|
+
Observable.prototype[observable_1.observable] = function() {
|
|
849
859
|
return this;
|
|
850
860
|
};
|
|
851
|
-
|
|
861
|
+
Observable.prototype.pipe = function() {
|
|
852
862
|
var operations = [];
|
|
853
863
|
for (var _i = 0;_i < arguments.length; _i++) {
|
|
854
864
|
operations[_i] = arguments[_i];
|
|
855
865
|
}
|
|
856
866
|
return pipe_1.pipeFromArray(operations)(this);
|
|
857
867
|
};
|
|
858
|
-
|
|
868
|
+
Observable.prototype.toPromise = function(promiseCtor) {
|
|
859
869
|
var _this = this;
|
|
860
870
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
861
871
|
return new promiseCtor(function(resolve, reject) {
|
|
@@ -869,10 +879,10 @@ var require_Observable = __commonJS(function(exports) {
|
|
|
869
879
|
});
|
|
870
880
|
});
|
|
871
881
|
};
|
|
872
|
-
|
|
873
|
-
return new
|
|
882
|
+
Observable.create = function(subscribe) {
|
|
883
|
+
return new Observable(subscribe);
|
|
874
884
|
};
|
|
875
|
-
return
|
|
885
|
+
return Observable;
|
|
876
886
|
}();
|
|
877
887
|
exports.Observable = Observable;
|
|
878
888
|
function getPromiseCtor(promiseCtor) {
|
|
@@ -917,12 +927,12 @@ var require_lift = __commonJS(function(exports) {
|
|
|
917
927
|
var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
918
928
|
var __extends = exports && exports.__extends || function() {
|
|
919
929
|
var extendStatics = function(d, b) {
|
|
920
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
921
|
-
|
|
922
|
-
} || function(
|
|
923
|
-
for (var p in
|
|
924
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
925
|
-
|
|
930
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
931
|
+
d.__proto__ = b;
|
|
932
|
+
} || function(d, b) {
|
|
933
|
+
for (var p in b)
|
|
934
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
935
|
+
d[p] = b[p];
|
|
926
936
|
};
|
|
927
937
|
return extendStatics(d, b);
|
|
928
938
|
};
|
|
@@ -944,8 +954,8 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
944
954
|
}
|
|
945
955
|
exports.createOperatorSubscriber = createOperatorSubscriber;
|
|
946
956
|
var OperatorSubscriber = function(_super) {
|
|
947
|
-
__extends(
|
|
948
|
-
function
|
|
957
|
+
__extends(OperatorSubscriber, _super);
|
|
958
|
+
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
949
959
|
var _this = _super.call(this, destination) || this;
|
|
950
960
|
_this.onFinalize = onFinalize;
|
|
951
961
|
_this.shouldUnsubscribe = shouldUnsubscribe;
|
|
@@ -959,8 +969,8 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
959
969
|
_this._error = onError ? function(err) {
|
|
960
970
|
try {
|
|
961
971
|
onError(err);
|
|
962
|
-
} catch (
|
|
963
|
-
destination.error(
|
|
972
|
+
} catch (err) {
|
|
973
|
+
destination.error(err);
|
|
964
974
|
} finally {
|
|
965
975
|
this.unsubscribe();
|
|
966
976
|
}
|
|
@@ -976,7 +986,7 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
976
986
|
} : _super.prototype._complete;
|
|
977
987
|
return _this;
|
|
978
988
|
}
|
|
979
|
-
|
|
989
|
+
OperatorSubscriber.prototype.unsubscribe = function() {
|
|
980
990
|
var _a;
|
|
981
991
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
982
992
|
var closed_1 = this.closed;
|
|
@@ -984,7 +994,7 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
984
994
|
!closed_1 && ((_a = this.onFinalize) === null || _a === undefined || _a.call(this));
|
|
985
995
|
}
|
|
986
996
|
};
|
|
987
|
-
return
|
|
997
|
+
return OperatorSubscriber;
|
|
988
998
|
}(Subscriber_1.Subscriber);
|
|
989
999
|
exports.OperatorSubscriber = OperatorSubscriber;
|
|
990
1000
|
});
|
|
@@ -1025,12 +1035,12 @@ var require_refCount = __commonJS(function(exports) {
|
|
|
1025
1035
|
var require_ConnectableObservable = __commonJS(function(exports) {
|
|
1026
1036
|
var __extends = exports && exports.__extends || function() {
|
|
1027
1037
|
var extendStatics = function(d, b) {
|
|
1028
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
1029
|
-
|
|
1030
|
-
} || function(
|
|
1031
|
-
for (var p in
|
|
1032
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1033
|
-
|
|
1038
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
1039
|
+
d.__proto__ = b;
|
|
1040
|
+
} || function(d, b) {
|
|
1041
|
+
for (var p in b)
|
|
1042
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
1043
|
+
d[p] = b[p];
|
|
1034
1044
|
};
|
|
1035
1045
|
return extendStatics(d, b);
|
|
1036
1046
|
};
|
|
@@ -1052,8 +1062,8 @@ var require_ConnectableObservable = __commonJS(function(exports) {
|
|
|
1052
1062
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
1053
1063
|
var lift_1 = require_lift();
|
|
1054
1064
|
var ConnectableObservable = function(_super) {
|
|
1055
|
-
__extends(
|
|
1056
|
-
function
|
|
1065
|
+
__extends(ConnectableObservable, _super);
|
|
1066
|
+
function ConnectableObservable(source, subjectFactory) {
|
|
1057
1067
|
var _this = _super.call(this) || this;
|
|
1058
1068
|
_this.source = source;
|
|
1059
1069
|
_this.subjectFactory = subjectFactory;
|
|
@@ -1065,23 +1075,23 @@ var require_ConnectableObservable = __commonJS(function(exports) {
|
|
|
1065
1075
|
}
|
|
1066
1076
|
return _this;
|
|
1067
1077
|
}
|
|
1068
|
-
|
|
1078
|
+
ConnectableObservable.prototype._subscribe = function(subscriber) {
|
|
1069
1079
|
return this.getSubject().subscribe(subscriber);
|
|
1070
1080
|
};
|
|
1071
|
-
|
|
1081
|
+
ConnectableObservable.prototype.getSubject = function() {
|
|
1072
1082
|
var subject = this._subject;
|
|
1073
1083
|
if (!subject || subject.isStopped) {
|
|
1074
1084
|
this._subject = this.subjectFactory();
|
|
1075
1085
|
}
|
|
1076
1086
|
return this._subject;
|
|
1077
1087
|
};
|
|
1078
|
-
|
|
1088
|
+
ConnectableObservable.prototype._teardown = function() {
|
|
1079
1089
|
this._refCount = 0;
|
|
1080
1090
|
var _connection = this._connection;
|
|
1081
1091
|
this._subject = this._connection = null;
|
|
1082
1092
|
_connection === null || _connection === undefined || _connection.unsubscribe();
|
|
1083
1093
|
};
|
|
1084
|
-
|
|
1094
|
+
ConnectableObservable.prototype.connect = function() {
|
|
1085
1095
|
var _this = this;
|
|
1086
1096
|
var connection = this._connection;
|
|
1087
1097
|
if (!connection) {
|
|
@@ -1103,10 +1113,10 @@ var require_ConnectableObservable = __commonJS(function(exports) {
|
|
|
1103
1113
|
}
|
|
1104
1114
|
return connection;
|
|
1105
1115
|
};
|
|
1106
|
-
|
|
1116
|
+
ConnectableObservable.prototype.refCount = function() {
|
|
1107
1117
|
return refCount_1.refCount()(this);
|
|
1108
1118
|
};
|
|
1109
|
-
return
|
|
1119
|
+
return ConnectableObservable;
|
|
1110
1120
|
}(Observable_1.Observable);
|
|
1111
1121
|
exports.ConnectableObservable = ConnectableObservable;
|
|
1112
1122
|
});
|
|
@@ -1249,12 +1259,12 @@ var require_ObjectUnsubscribedError = __commonJS(function(exports) {
|
|
|
1249
1259
|
var require_Subject = __commonJS(function(exports) {
|
|
1250
1260
|
var __extends = exports && exports.__extends || function() {
|
|
1251
1261
|
var extendStatics = function(d, b) {
|
|
1252
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
1253
|
-
|
|
1254
|
-
} || function(
|
|
1255
|
-
for (var p in
|
|
1256
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1257
|
-
|
|
1262
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
1263
|
+
d.__proto__ = b;
|
|
1264
|
+
} || function(d, b) {
|
|
1265
|
+
for (var p in b)
|
|
1266
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
1267
|
+
d[p] = b[p];
|
|
1258
1268
|
};
|
|
1259
1269
|
return extendStatics(d, b);
|
|
1260
1270
|
};
|
|
@@ -1290,8 +1300,8 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
1290
1300
|
var arrRemove_1 = require_arrRemove();
|
|
1291
1301
|
var errorContext_1 = require_errorContext();
|
|
1292
1302
|
var Subject = function(_super) {
|
|
1293
|
-
__extends(
|
|
1294
|
-
function
|
|
1303
|
+
__extends(Subject, _super);
|
|
1304
|
+
function Subject() {
|
|
1295
1305
|
var _this = _super.call(this) || this;
|
|
1296
1306
|
_this.closed = false;
|
|
1297
1307
|
_this.currentObservers = null;
|
|
@@ -1301,17 +1311,17 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
1301
1311
|
_this.thrownError = null;
|
|
1302
1312
|
return _this;
|
|
1303
1313
|
}
|
|
1304
|
-
|
|
1314
|
+
Subject.prototype.lift = function(operator) {
|
|
1305
1315
|
var subject = new AnonymousSubject(this, this);
|
|
1306
1316
|
subject.operator = operator;
|
|
1307
1317
|
return subject;
|
|
1308
1318
|
};
|
|
1309
|
-
|
|
1319
|
+
Subject.prototype._throwIfClosed = function() {
|
|
1310
1320
|
if (this.closed) {
|
|
1311
1321
|
throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError;
|
|
1312
1322
|
}
|
|
1313
1323
|
};
|
|
1314
|
-
|
|
1324
|
+
Subject.prototype.next = function(value) {
|
|
1315
1325
|
var _this = this;
|
|
1316
1326
|
errorContext_1.errorContext(function() {
|
|
1317
1327
|
var e_1, _a;
|
|
@@ -1339,7 +1349,7 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
1339
1349
|
}
|
|
1340
1350
|
});
|
|
1341
1351
|
};
|
|
1342
|
-
|
|
1352
|
+
Subject.prototype.error = function(err) {
|
|
1343
1353
|
var _this = this;
|
|
1344
1354
|
errorContext_1.errorContext(function() {
|
|
1345
1355
|
_this._throwIfClosed();
|
|
@@ -1353,7 +1363,7 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
1353
1363
|
}
|
|
1354
1364
|
});
|
|
1355
1365
|
};
|
|
1356
|
-
|
|
1366
|
+
Subject.prototype.complete = function() {
|
|
1357
1367
|
var _this = this;
|
|
1358
1368
|
errorContext_1.errorContext(function() {
|
|
1359
1369
|
_this._throwIfClosed();
|
|
@@ -1366,11 +1376,11 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
1366
1376
|
}
|
|
1367
1377
|
});
|
|
1368
1378
|
};
|
|
1369
|
-
|
|
1379
|
+
Subject.prototype.unsubscribe = function() {
|
|
1370
1380
|
this.isStopped = this.closed = true;
|
|
1371
1381
|
this.observers = this.currentObservers = null;
|
|
1372
1382
|
};
|
|
1373
|
-
Object.defineProperty(
|
|
1383
|
+
Object.defineProperty(Subject.prototype, "observed", {
|
|
1374
1384
|
get: function() {
|
|
1375
1385
|
var _a;
|
|
1376
1386
|
return ((_a = this.observers) === null || _a === undefined ? undefined : _a.length) > 0;
|
|
@@ -1378,18 +1388,18 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
1378
1388
|
enumerable: false,
|
|
1379
1389
|
configurable: true
|
|
1380
1390
|
});
|
|
1381
|
-
|
|
1391
|
+
Subject.prototype._trySubscribe = function(subscriber) {
|
|
1382
1392
|
this._throwIfClosed();
|
|
1383
1393
|
return _super.prototype._trySubscribe.call(this, subscriber);
|
|
1384
1394
|
};
|
|
1385
|
-
|
|
1395
|
+
Subject.prototype._subscribe = function(subscriber) {
|
|
1386
1396
|
this._throwIfClosed();
|
|
1387
1397
|
this._checkFinalizedStatuses(subscriber);
|
|
1388
1398
|
return this._innerSubscribe(subscriber);
|
|
1389
1399
|
};
|
|
1390
|
-
|
|
1400
|
+
Subject.prototype._innerSubscribe = function(subscriber) {
|
|
1391
1401
|
var _this = this;
|
|
1392
|
-
var _a = this,
|
|
1402
|
+
var _a = this, { hasError, isStopped, observers } = _a;
|
|
1393
1403
|
if (hasError || isStopped) {
|
|
1394
1404
|
return Subscription_1.EMPTY_SUBSCRIPTION;
|
|
1395
1405
|
}
|
|
@@ -1400,50 +1410,50 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
1400
1410
|
arrRemove_1.arrRemove(observers, subscriber);
|
|
1401
1411
|
});
|
|
1402
1412
|
};
|
|
1403
|
-
|
|
1404
|
-
var _a = this,
|
|
1413
|
+
Subject.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
1414
|
+
var _a = this, { hasError, thrownError, isStopped } = _a;
|
|
1405
1415
|
if (hasError) {
|
|
1406
1416
|
subscriber.error(thrownError);
|
|
1407
1417
|
} else if (isStopped) {
|
|
1408
1418
|
subscriber.complete();
|
|
1409
1419
|
}
|
|
1410
1420
|
};
|
|
1411
|
-
|
|
1421
|
+
Subject.prototype.asObservable = function() {
|
|
1412
1422
|
var observable = new Observable_1.Observable;
|
|
1413
1423
|
observable.source = this;
|
|
1414
1424
|
return observable;
|
|
1415
1425
|
};
|
|
1416
|
-
|
|
1426
|
+
Subject.create = function(destination, source) {
|
|
1417
1427
|
return new AnonymousSubject(destination, source);
|
|
1418
1428
|
};
|
|
1419
|
-
return
|
|
1429
|
+
return Subject;
|
|
1420
1430
|
}(Observable_1.Observable);
|
|
1421
1431
|
exports.Subject = Subject;
|
|
1422
1432
|
var AnonymousSubject = function(_super) {
|
|
1423
|
-
__extends(
|
|
1424
|
-
function
|
|
1433
|
+
__extends(AnonymousSubject, _super);
|
|
1434
|
+
function AnonymousSubject(destination, source) {
|
|
1425
1435
|
var _this = _super.call(this) || this;
|
|
1426
1436
|
_this.destination = destination;
|
|
1427
1437
|
_this.source = source;
|
|
1428
1438
|
return _this;
|
|
1429
1439
|
}
|
|
1430
|
-
|
|
1440
|
+
AnonymousSubject.prototype.next = function(value) {
|
|
1431
1441
|
var _a, _b;
|
|
1432
1442
|
(_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.next) === null || _b === undefined || _b.call(_a, value);
|
|
1433
1443
|
};
|
|
1434
|
-
|
|
1444
|
+
AnonymousSubject.prototype.error = function(err) {
|
|
1435
1445
|
var _a, _b;
|
|
1436
1446
|
(_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.error) === null || _b === undefined || _b.call(_a, err);
|
|
1437
1447
|
};
|
|
1438
|
-
|
|
1448
|
+
AnonymousSubject.prototype.complete = function() {
|
|
1439
1449
|
var _a, _b;
|
|
1440
1450
|
(_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.complete) === null || _b === undefined || _b.call(_a);
|
|
1441
1451
|
};
|
|
1442
|
-
|
|
1452
|
+
AnonymousSubject.prototype._subscribe = function(subscriber) {
|
|
1443
1453
|
var _a, _b;
|
|
1444
1454
|
return (_b = (_a = this.source) === null || _a === undefined ? undefined : _a.subscribe(subscriber)) !== null && _b !== undefined ? _b : Subscription_1.EMPTY_SUBSCRIPTION;
|
|
1445
1455
|
};
|
|
1446
|
-
return
|
|
1456
|
+
return AnonymousSubject;
|
|
1447
1457
|
}(Subject);
|
|
1448
1458
|
exports.AnonymousSubject = AnonymousSubject;
|
|
1449
1459
|
});
|
|
@@ -1452,12 +1462,12 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
1452
1462
|
var require_BehaviorSubject = __commonJS(function(exports) {
|
|
1453
1463
|
var __extends = exports && exports.__extends || function() {
|
|
1454
1464
|
var extendStatics = function(d, b) {
|
|
1455
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
1456
|
-
|
|
1457
|
-
} || function(
|
|
1458
|
-
for (var p in
|
|
1459
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1460
|
-
|
|
1465
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
1466
|
+
d.__proto__ = b;
|
|
1467
|
+
} || function(d, b) {
|
|
1468
|
+
for (var p in b)
|
|
1469
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
1470
|
+
d[p] = b[p];
|
|
1461
1471
|
};
|
|
1462
1472
|
return extendStatics(d, b);
|
|
1463
1473
|
};
|
|
@@ -1475,36 +1485,36 @@ var require_BehaviorSubject = __commonJS(function(exports) {
|
|
|
1475
1485
|
exports.BehaviorSubject = undefined;
|
|
1476
1486
|
var Subject_1 = require_Subject();
|
|
1477
1487
|
var BehaviorSubject = function(_super) {
|
|
1478
|
-
__extends(
|
|
1479
|
-
function
|
|
1488
|
+
__extends(BehaviorSubject, _super);
|
|
1489
|
+
function BehaviorSubject(_value) {
|
|
1480
1490
|
var _this = _super.call(this) || this;
|
|
1481
1491
|
_this._value = _value;
|
|
1482
1492
|
return _this;
|
|
1483
1493
|
}
|
|
1484
|
-
Object.defineProperty(
|
|
1494
|
+
Object.defineProperty(BehaviorSubject.prototype, "value", {
|
|
1485
1495
|
get: function() {
|
|
1486
1496
|
return this.getValue();
|
|
1487
1497
|
},
|
|
1488
1498
|
enumerable: false,
|
|
1489
1499
|
configurable: true
|
|
1490
1500
|
});
|
|
1491
|
-
|
|
1501
|
+
BehaviorSubject.prototype._subscribe = function(subscriber) {
|
|
1492
1502
|
var subscription = _super.prototype._subscribe.call(this, subscriber);
|
|
1493
1503
|
!subscription.closed && subscriber.next(this._value);
|
|
1494
1504
|
return subscription;
|
|
1495
1505
|
};
|
|
1496
|
-
|
|
1497
|
-
var _a = this,
|
|
1506
|
+
BehaviorSubject.prototype.getValue = function() {
|
|
1507
|
+
var _a = this, { hasError, thrownError, _value } = _a;
|
|
1498
1508
|
if (hasError) {
|
|
1499
1509
|
throw thrownError;
|
|
1500
1510
|
}
|
|
1501
1511
|
this._throwIfClosed();
|
|
1502
1512
|
return _value;
|
|
1503
1513
|
};
|
|
1504
|
-
|
|
1514
|
+
BehaviorSubject.prototype.next = function(value) {
|
|
1505
1515
|
_super.prototype.next.call(this, this._value = value);
|
|
1506
1516
|
};
|
|
1507
|
-
return
|
|
1517
|
+
return BehaviorSubject;
|
|
1508
1518
|
}(Subject_1.Subject);
|
|
1509
1519
|
exports.BehaviorSubject = BehaviorSubject;
|
|
1510
1520
|
});
|
|
@@ -1525,12 +1535,12 @@ var require_dateTimestampProvider = __commonJS(function(exports) {
|
|
|
1525
1535
|
var require_ReplaySubject = __commonJS(function(exports) {
|
|
1526
1536
|
var __extends = exports && exports.__extends || function() {
|
|
1527
1537
|
var extendStatics = function(d, b) {
|
|
1528
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
1529
|
-
|
|
1530
|
-
} || function(
|
|
1531
|
-
for (var p in
|
|
1532
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1533
|
-
|
|
1538
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
1539
|
+
d.__proto__ = b;
|
|
1540
|
+
} || function(d, b) {
|
|
1541
|
+
for (var p in b)
|
|
1542
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
1543
|
+
d[p] = b[p];
|
|
1534
1544
|
};
|
|
1535
1545
|
return extendStatics(d, b);
|
|
1536
1546
|
};
|
|
@@ -1549,8 +1559,8 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
1549
1559
|
var Subject_1 = require_Subject();
|
|
1550
1560
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
|
1551
1561
|
var ReplaySubject = function(_super) {
|
|
1552
|
-
__extends(
|
|
1553
|
-
function
|
|
1562
|
+
__extends(ReplaySubject, _super);
|
|
1563
|
+
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
1554
1564
|
if (_bufferSize === undefined) {
|
|
1555
1565
|
_bufferSize = Infinity;
|
|
1556
1566
|
}
|
|
@@ -1571,8 +1581,8 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
1571
1581
|
_this._windowTime = Math.max(1, _windowTime);
|
|
1572
1582
|
return _this;
|
|
1573
1583
|
}
|
|
1574
|
-
|
|
1575
|
-
var _a = this,
|
|
1584
|
+
ReplaySubject.prototype.next = function(value) {
|
|
1585
|
+
var _a = this, { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = _a;
|
|
1576
1586
|
if (!isStopped) {
|
|
1577
1587
|
_buffer.push(value);
|
|
1578
1588
|
!_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
|
|
@@ -1580,11 +1590,11 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
1580
1590
|
this._trimBuffer();
|
|
1581
1591
|
_super.prototype.next.call(this, value);
|
|
1582
1592
|
};
|
|
1583
|
-
|
|
1593
|
+
ReplaySubject.prototype._subscribe = function(subscriber) {
|
|
1584
1594
|
this._throwIfClosed();
|
|
1585
1595
|
this._trimBuffer();
|
|
1586
1596
|
var subscription = this._innerSubscribe(subscriber);
|
|
1587
|
-
var _a = this,
|
|
1597
|
+
var _a = this, { _infiniteTimeWindow, _buffer } = _a;
|
|
1588
1598
|
var copy = _buffer.slice();
|
|
1589
1599
|
for (var i = 0;i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {
|
|
1590
1600
|
subscriber.next(copy[i]);
|
|
@@ -1592,8 +1602,8 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
1592
1602
|
this._checkFinalizedStatuses(subscriber);
|
|
1593
1603
|
return subscription;
|
|
1594
1604
|
};
|
|
1595
|
-
|
|
1596
|
-
var _a = this,
|
|
1605
|
+
ReplaySubject.prototype._trimBuffer = function() {
|
|
1606
|
+
var _a = this, { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = _a;
|
|
1597
1607
|
var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
|
|
1598
1608
|
_bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
|
|
1599
1609
|
if (!_infiniteTimeWindow) {
|
|
@@ -1605,7 +1615,7 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
1605
1615
|
last && _buffer.splice(0, last + 1);
|
|
1606
1616
|
}
|
|
1607
1617
|
};
|
|
1608
|
-
return
|
|
1618
|
+
return ReplaySubject;
|
|
1609
1619
|
}(Subject_1.Subject);
|
|
1610
1620
|
exports.ReplaySubject = ReplaySubject;
|
|
1611
1621
|
});
|
|
@@ -1614,12 +1624,12 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
1614
1624
|
var require_AsyncSubject = __commonJS(function(exports) {
|
|
1615
1625
|
var __extends = exports && exports.__extends || function() {
|
|
1616
1626
|
var extendStatics = function(d, b) {
|
|
1617
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
1618
|
-
|
|
1619
|
-
} || function(
|
|
1620
|
-
for (var p in
|
|
1621
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1622
|
-
|
|
1627
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
1628
|
+
d.__proto__ = b;
|
|
1629
|
+
} || function(d, b) {
|
|
1630
|
+
for (var p in b)
|
|
1631
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
1632
|
+
d[p] = b[p];
|
|
1623
1633
|
};
|
|
1624
1634
|
return extendStatics(d, b);
|
|
1625
1635
|
};
|
|
@@ -1637,16 +1647,16 @@ var require_AsyncSubject = __commonJS(function(exports) {
|
|
|
1637
1647
|
exports.AsyncSubject = undefined;
|
|
1638
1648
|
var Subject_1 = require_Subject();
|
|
1639
1649
|
var AsyncSubject = function(_super) {
|
|
1640
|
-
__extends(
|
|
1641
|
-
function
|
|
1650
|
+
__extends(AsyncSubject, _super);
|
|
1651
|
+
function AsyncSubject() {
|
|
1642
1652
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1643
1653
|
_this._value = null;
|
|
1644
1654
|
_this._hasValue = false;
|
|
1645
1655
|
_this._isComplete = false;
|
|
1646
1656
|
return _this;
|
|
1647
1657
|
}
|
|
1648
|
-
|
|
1649
|
-
var _a = this,
|
|
1658
|
+
AsyncSubject.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
1659
|
+
var _a = this, { hasError, _hasValue, _value, thrownError, isStopped, _isComplete } = _a;
|
|
1650
1660
|
if (hasError) {
|
|
1651
1661
|
subscriber.error(thrownError);
|
|
1652
1662
|
} else if (isStopped || _isComplete) {
|
|
@@ -1654,21 +1664,21 @@ var require_AsyncSubject = __commonJS(function(exports) {
|
|
|
1654
1664
|
subscriber.complete();
|
|
1655
1665
|
}
|
|
1656
1666
|
};
|
|
1657
|
-
|
|
1667
|
+
AsyncSubject.prototype.next = function(value) {
|
|
1658
1668
|
if (!this.isStopped) {
|
|
1659
1669
|
this._value = value;
|
|
1660
1670
|
this._hasValue = true;
|
|
1661
1671
|
}
|
|
1662
1672
|
};
|
|
1663
|
-
|
|
1664
|
-
var _a = this,
|
|
1673
|
+
AsyncSubject.prototype.complete = function() {
|
|
1674
|
+
var _a = this, { _hasValue, _value, _isComplete } = _a;
|
|
1665
1675
|
if (!_isComplete) {
|
|
1666
1676
|
this._isComplete = true;
|
|
1667
1677
|
_hasValue && _super.prototype.next.call(this, _value);
|
|
1668
1678
|
_super.prototype.complete.call(this);
|
|
1669
1679
|
}
|
|
1670
1680
|
};
|
|
1671
|
-
return
|
|
1681
|
+
return AsyncSubject;
|
|
1672
1682
|
}(Subject_1.Subject);
|
|
1673
1683
|
exports.AsyncSubject = AsyncSubject;
|
|
1674
1684
|
});
|
|
@@ -1677,12 +1687,12 @@ var require_AsyncSubject = __commonJS(function(exports) {
|
|
|
1677
1687
|
var require_Action = __commonJS(function(exports) {
|
|
1678
1688
|
var __extends = exports && exports.__extends || function() {
|
|
1679
1689
|
var extendStatics = function(d, b) {
|
|
1680
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
1681
|
-
|
|
1682
|
-
} || function(
|
|
1683
|
-
for (var p in
|
|
1684
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1685
|
-
|
|
1690
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
1691
|
+
d.__proto__ = b;
|
|
1692
|
+
} || function(d, b) {
|
|
1693
|
+
for (var p in b)
|
|
1694
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
1695
|
+
d[p] = b[p];
|
|
1686
1696
|
};
|
|
1687
1697
|
return extendStatics(d, b);
|
|
1688
1698
|
};
|
|
@@ -1700,17 +1710,17 @@ var require_Action = __commonJS(function(exports) {
|
|
|
1700
1710
|
exports.Action = undefined;
|
|
1701
1711
|
var Subscription_1 = require_Subscription();
|
|
1702
1712
|
var Action = function(_super) {
|
|
1703
|
-
__extends(
|
|
1704
|
-
function
|
|
1713
|
+
__extends(Action, _super);
|
|
1714
|
+
function Action(scheduler, work) {
|
|
1705
1715
|
return _super.call(this) || this;
|
|
1706
1716
|
}
|
|
1707
|
-
|
|
1717
|
+
Action.prototype.schedule = function(state, delay) {
|
|
1708
1718
|
if (delay === undefined) {
|
|
1709
1719
|
delay = 0;
|
|
1710
1720
|
}
|
|
1711
1721
|
return this;
|
|
1712
1722
|
};
|
|
1713
|
-
return
|
|
1723
|
+
return Action;
|
|
1714
1724
|
}(Subscription_1.Subscription);
|
|
1715
1725
|
exports.Action = Action;
|
|
1716
1726
|
});
|
|
@@ -1769,12 +1779,12 @@ var require_intervalProvider = __commonJS(function(exports) {
|
|
|
1769
1779
|
var require_AsyncAction = __commonJS(function(exports) {
|
|
1770
1780
|
var __extends = exports && exports.__extends || function() {
|
|
1771
1781
|
var extendStatics = function(d, b) {
|
|
1772
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
1773
|
-
|
|
1774
|
-
} || function(
|
|
1775
|
-
for (var p in
|
|
1776
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1777
|
-
|
|
1782
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
1783
|
+
d.__proto__ = b;
|
|
1784
|
+
} || function(d, b) {
|
|
1785
|
+
for (var p in b)
|
|
1786
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
1787
|
+
d[p] = b[p];
|
|
1778
1788
|
};
|
|
1779
1789
|
return extendStatics(d, b);
|
|
1780
1790
|
};
|
|
@@ -1794,15 +1804,15 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
1794
1804
|
var intervalProvider_1 = require_intervalProvider();
|
|
1795
1805
|
var arrRemove_1 = require_arrRemove();
|
|
1796
1806
|
var AsyncAction = function(_super) {
|
|
1797
|
-
__extends(
|
|
1798
|
-
function
|
|
1807
|
+
__extends(AsyncAction, _super);
|
|
1808
|
+
function AsyncAction(scheduler, work) {
|
|
1799
1809
|
var _this = _super.call(this, scheduler, work) || this;
|
|
1800
1810
|
_this.scheduler = scheduler;
|
|
1801
1811
|
_this.work = work;
|
|
1802
1812
|
_this.pending = false;
|
|
1803
1813
|
return _this;
|
|
1804
1814
|
}
|
|
1805
|
-
|
|
1815
|
+
AsyncAction.prototype.schedule = function(state, delay) {
|
|
1806
1816
|
var _a;
|
|
1807
1817
|
if (delay === undefined) {
|
|
1808
1818
|
delay = 0;
|
|
@@ -1821,13 +1831,13 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
1821
1831
|
this.id = (_a = this.id) !== null && _a !== undefined ? _a : this.requestAsyncId(scheduler, this.id, delay);
|
|
1822
1832
|
return this;
|
|
1823
1833
|
};
|
|
1824
|
-
|
|
1834
|
+
AsyncAction.prototype.requestAsyncId = function(scheduler, _id, delay) {
|
|
1825
1835
|
if (delay === undefined) {
|
|
1826
1836
|
delay = 0;
|
|
1827
1837
|
}
|
|
1828
1838
|
return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
|
|
1829
1839
|
};
|
|
1830
|
-
|
|
1840
|
+
AsyncAction.prototype.recycleAsyncId = function(_scheduler, id, delay) {
|
|
1831
1841
|
if (delay === undefined) {
|
|
1832
1842
|
delay = 0;
|
|
1833
1843
|
}
|
|
@@ -1839,7 +1849,7 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
1839
1849
|
}
|
|
1840
1850
|
return;
|
|
1841
1851
|
};
|
|
1842
|
-
|
|
1852
|
+
AsyncAction.prototype.execute = function(state, delay) {
|
|
1843
1853
|
if (this.closed) {
|
|
1844
1854
|
return new Error("executing a cancelled action");
|
|
1845
1855
|
}
|
|
@@ -1851,7 +1861,7 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
1851
1861
|
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
|
1852
1862
|
}
|
|
1853
1863
|
};
|
|
1854
|
-
|
|
1864
|
+
AsyncAction.prototype._execute = function(state, _delay) {
|
|
1855
1865
|
var errored = false;
|
|
1856
1866
|
var errorValue;
|
|
1857
1867
|
try {
|
|
@@ -1865,9 +1875,9 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
1865
1875
|
return errorValue;
|
|
1866
1876
|
}
|
|
1867
1877
|
};
|
|
1868
|
-
|
|
1878
|
+
AsyncAction.prototype.unsubscribe = function() {
|
|
1869
1879
|
if (!this.closed) {
|
|
1870
|
-
var _a = this,
|
|
1880
|
+
var _a = this, { id, scheduler } = _a;
|
|
1871
1881
|
var actions = scheduler.actions;
|
|
1872
1882
|
this.work = this.state = this.scheduler = null;
|
|
1873
1883
|
this.pending = false;
|
|
@@ -1879,7 +1889,7 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
1879
1889
|
_super.prototype.unsubscribe.call(this);
|
|
1880
1890
|
}
|
|
1881
1891
|
};
|
|
1882
|
-
return
|
|
1892
|
+
return AsyncAction;
|
|
1883
1893
|
}(Action_1.Action);
|
|
1884
1894
|
exports.AsyncAction = AsyncAction;
|
|
1885
1895
|
});
|
|
@@ -1975,12 +1985,12 @@ var require_immediateProvider = __commonJS(function(exports) {
|
|
|
1975
1985
|
var require_AsapAction = __commonJS(function(exports) {
|
|
1976
1986
|
var __extends = exports && exports.__extends || function() {
|
|
1977
1987
|
var extendStatics = function(d, b) {
|
|
1978
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
1979
|
-
|
|
1980
|
-
} || function(
|
|
1981
|
-
for (var p in
|
|
1982
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1983
|
-
|
|
1988
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
1989
|
+
d.__proto__ = b;
|
|
1990
|
+
} || function(d, b) {
|
|
1991
|
+
for (var p in b)
|
|
1992
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
1993
|
+
d[p] = b[p];
|
|
1984
1994
|
};
|
|
1985
1995
|
return extendStatics(d, b);
|
|
1986
1996
|
};
|
|
@@ -1999,14 +2009,14 @@ var require_AsapAction = __commonJS(function(exports) {
|
|
|
1999
2009
|
var AsyncAction_1 = require_AsyncAction();
|
|
2000
2010
|
var immediateProvider_1 = require_immediateProvider();
|
|
2001
2011
|
var AsapAction = function(_super) {
|
|
2002
|
-
__extends(
|
|
2003
|
-
function
|
|
2012
|
+
__extends(AsapAction, _super);
|
|
2013
|
+
function AsapAction(scheduler, work) {
|
|
2004
2014
|
var _this = _super.call(this, scheduler, work) || this;
|
|
2005
2015
|
_this.scheduler = scheduler;
|
|
2006
2016
|
_this.work = work;
|
|
2007
2017
|
return _this;
|
|
2008
2018
|
}
|
|
2009
|
-
|
|
2019
|
+
AsapAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
2010
2020
|
if (delay === undefined) {
|
|
2011
2021
|
delay = 0;
|
|
2012
2022
|
}
|
|
@@ -2016,7 +2026,7 @@ var require_AsapAction = __commonJS(function(exports) {
|
|
|
2016
2026
|
scheduler.actions.push(this);
|
|
2017
2027
|
return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));
|
|
2018
2028
|
};
|
|
2019
|
-
|
|
2029
|
+
AsapAction.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
2020
2030
|
var _a;
|
|
2021
2031
|
if (delay === undefined) {
|
|
2022
2032
|
delay = 0;
|
|
@@ -2033,7 +2043,7 @@ var require_AsapAction = __commonJS(function(exports) {
|
|
|
2033
2043
|
}
|
|
2034
2044
|
return;
|
|
2035
2045
|
};
|
|
2036
|
-
return
|
|
2046
|
+
return AsapAction;
|
|
2037
2047
|
}(AsyncAction_1.AsyncAction);
|
|
2038
2048
|
exports.AsapAction = AsapAction;
|
|
2039
2049
|
});
|
|
@@ -2044,21 +2054,21 @@ var require_Scheduler = __commonJS(function(exports) {
|
|
|
2044
2054
|
exports.Scheduler = undefined;
|
|
2045
2055
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
|
2046
2056
|
var Scheduler = function() {
|
|
2047
|
-
function
|
|
2057
|
+
function Scheduler(schedulerActionCtor, now) {
|
|
2048
2058
|
if (now === undefined) {
|
|
2049
|
-
now =
|
|
2059
|
+
now = Scheduler.now;
|
|
2050
2060
|
}
|
|
2051
2061
|
this.schedulerActionCtor = schedulerActionCtor;
|
|
2052
2062
|
this.now = now;
|
|
2053
2063
|
}
|
|
2054
|
-
|
|
2064
|
+
Scheduler.prototype.schedule = function(work, delay, state) {
|
|
2055
2065
|
if (delay === undefined) {
|
|
2056
2066
|
delay = 0;
|
|
2057
2067
|
}
|
|
2058
2068
|
return new this.schedulerActionCtor(this, work).schedule(state, delay);
|
|
2059
2069
|
};
|
|
2060
|
-
|
|
2061
|
-
return
|
|
2070
|
+
Scheduler.now = dateTimestampProvider_1.dateTimestampProvider.now;
|
|
2071
|
+
return Scheduler;
|
|
2062
2072
|
}();
|
|
2063
2073
|
exports.Scheduler = Scheduler;
|
|
2064
2074
|
});
|
|
@@ -2067,12 +2077,12 @@ var require_Scheduler = __commonJS(function(exports) {
|
|
|
2067
2077
|
var require_AsyncScheduler = __commonJS(function(exports) {
|
|
2068
2078
|
var __extends = exports && exports.__extends || function() {
|
|
2069
2079
|
var extendStatics = function(d, b) {
|
|
2070
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
2071
|
-
|
|
2072
|
-
} || function(
|
|
2073
|
-
for (var p in
|
|
2074
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2075
|
-
|
|
2080
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
2081
|
+
d.__proto__ = b;
|
|
2082
|
+
} || function(d, b) {
|
|
2083
|
+
for (var p in b)
|
|
2084
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2085
|
+
d[p] = b[p];
|
|
2076
2086
|
};
|
|
2077
2087
|
return extendStatics(d, b);
|
|
2078
2088
|
};
|
|
@@ -2090,8 +2100,8 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
2090
2100
|
exports.AsyncScheduler = undefined;
|
|
2091
2101
|
var Scheduler_1 = require_Scheduler();
|
|
2092
2102
|
var AsyncScheduler = function(_super) {
|
|
2093
|
-
__extends(
|
|
2094
|
-
function
|
|
2103
|
+
__extends(AsyncScheduler, _super);
|
|
2104
|
+
function AsyncScheduler(SchedulerAction, now) {
|
|
2095
2105
|
if (now === undefined) {
|
|
2096
2106
|
now = Scheduler_1.Scheduler.now;
|
|
2097
2107
|
}
|
|
@@ -2100,7 +2110,7 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
2100
2110
|
_this._active = false;
|
|
2101
2111
|
return _this;
|
|
2102
2112
|
}
|
|
2103
|
-
|
|
2113
|
+
AsyncScheduler.prototype.flush = function(action) {
|
|
2104
2114
|
var actions = this.actions;
|
|
2105
2115
|
if (this._active) {
|
|
2106
2116
|
actions.push(action);
|
|
@@ -2121,7 +2131,7 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
2121
2131
|
throw error;
|
|
2122
2132
|
}
|
|
2123
2133
|
};
|
|
2124
|
-
return
|
|
2134
|
+
return AsyncScheduler;
|
|
2125
2135
|
}(Scheduler_1.Scheduler);
|
|
2126
2136
|
exports.AsyncScheduler = AsyncScheduler;
|
|
2127
2137
|
});
|
|
@@ -2130,12 +2140,12 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
2130
2140
|
var require_AsapScheduler = __commonJS(function(exports) {
|
|
2131
2141
|
var __extends = exports && exports.__extends || function() {
|
|
2132
2142
|
var extendStatics = function(d, b) {
|
|
2133
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
2134
|
-
|
|
2135
|
-
} || function(
|
|
2136
|
-
for (var p in
|
|
2137
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2138
|
-
|
|
2143
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
2144
|
+
d.__proto__ = b;
|
|
2145
|
+
} || function(d, b) {
|
|
2146
|
+
for (var p in b)
|
|
2147
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2148
|
+
d[p] = b[p];
|
|
2139
2149
|
};
|
|
2140
2150
|
return extendStatics(d, b);
|
|
2141
2151
|
};
|
|
@@ -2153,11 +2163,11 @@ var require_AsapScheduler = __commonJS(function(exports) {
|
|
|
2153
2163
|
exports.AsapScheduler = undefined;
|
|
2154
2164
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
2155
2165
|
var AsapScheduler = function(_super) {
|
|
2156
|
-
__extends(
|
|
2157
|
-
function
|
|
2166
|
+
__extends(AsapScheduler, _super);
|
|
2167
|
+
function AsapScheduler() {
|
|
2158
2168
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2159
2169
|
}
|
|
2160
|
-
|
|
2170
|
+
AsapScheduler.prototype.flush = function(action) {
|
|
2161
2171
|
this._active = true;
|
|
2162
2172
|
var flushId = this._scheduled;
|
|
2163
2173
|
this._scheduled = undefined;
|
|
@@ -2177,7 +2187,7 @@ var require_AsapScheduler = __commonJS(function(exports) {
|
|
|
2177
2187
|
throw error;
|
|
2178
2188
|
}
|
|
2179
2189
|
};
|
|
2180
|
-
return
|
|
2190
|
+
return AsapScheduler;
|
|
2181
2191
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
2182
2192
|
exports.AsapScheduler = AsapScheduler;
|
|
2183
2193
|
});
|
|
@@ -2206,12 +2216,12 @@ var require_async = __commonJS(function(exports) {
|
|
|
2206
2216
|
var require_QueueAction = __commonJS(function(exports) {
|
|
2207
2217
|
var __extends = exports && exports.__extends || function() {
|
|
2208
2218
|
var extendStatics = function(d, b) {
|
|
2209
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
2210
|
-
|
|
2211
|
-
} || function(
|
|
2212
|
-
for (var p in
|
|
2213
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2214
|
-
|
|
2219
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
2220
|
+
d.__proto__ = b;
|
|
2221
|
+
} || function(d, b) {
|
|
2222
|
+
for (var p in b)
|
|
2223
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2224
|
+
d[p] = b[p];
|
|
2215
2225
|
};
|
|
2216
2226
|
return extendStatics(d, b);
|
|
2217
2227
|
};
|
|
@@ -2229,14 +2239,14 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
2229
2239
|
exports.QueueAction = undefined;
|
|
2230
2240
|
var AsyncAction_1 = require_AsyncAction();
|
|
2231
2241
|
var QueueAction = function(_super) {
|
|
2232
|
-
__extends(
|
|
2233
|
-
function
|
|
2242
|
+
__extends(QueueAction, _super);
|
|
2243
|
+
function QueueAction(scheduler, work) {
|
|
2234
2244
|
var _this = _super.call(this, scheduler, work) || this;
|
|
2235
2245
|
_this.scheduler = scheduler;
|
|
2236
2246
|
_this.work = work;
|
|
2237
2247
|
return _this;
|
|
2238
2248
|
}
|
|
2239
|
-
|
|
2249
|
+
QueueAction.prototype.schedule = function(state, delay) {
|
|
2240
2250
|
if (delay === undefined) {
|
|
2241
2251
|
delay = 0;
|
|
2242
2252
|
}
|
|
@@ -2248,10 +2258,10 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
2248
2258
|
this.scheduler.flush(this);
|
|
2249
2259
|
return this;
|
|
2250
2260
|
};
|
|
2251
|
-
|
|
2261
|
+
QueueAction.prototype.execute = function(state, delay) {
|
|
2252
2262
|
return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay);
|
|
2253
2263
|
};
|
|
2254
|
-
|
|
2264
|
+
QueueAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
2255
2265
|
if (delay === undefined) {
|
|
2256
2266
|
delay = 0;
|
|
2257
2267
|
}
|
|
@@ -2261,7 +2271,7 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
2261
2271
|
scheduler.flush(this);
|
|
2262
2272
|
return 0;
|
|
2263
2273
|
};
|
|
2264
|
-
return
|
|
2274
|
+
return QueueAction;
|
|
2265
2275
|
}(AsyncAction_1.AsyncAction);
|
|
2266
2276
|
exports.QueueAction = QueueAction;
|
|
2267
2277
|
});
|
|
@@ -2270,12 +2280,12 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
2270
2280
|
var require_QueueScheduler = __commonJS(function(exports) {
|
|
2271
2281
|
var __extends = exports && exports.__extends || function() {
|
|
2272
2282
|
var extendStatics = function(d, b) {
|
|
2273
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
2274
|
-
|
|
2275
|
-
} || function(
|
|
2276
|
-
for (var p in
|
|
2277
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2278
|
-
|
|
2283
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
2284
|
+
d.__proto__ = b;
|
|
2285
|
+
} || function(d, b) {
|
|
2286
|
+
for (var p in b)
|
|
2287
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2288
|
+
d[p] = b[p];
|
|
2279
2289
|
};
|
|
2280
2290
|
return extendStatics(d, b);
|
|
2281
2291
|
};
|
|
@@ -2293,11 +2303,11 @@ var require_QueueScheduler = __commonJS(function(exports) {
|
|
|
2293
2303
|
exports.QueueScheduler = undefined;
|
|
2294
2304
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
2295
2305
|
var QueueScheduler = function(_super) {
|
|
2296
|
-
__extends(
|
|
2297
|
-
function
|
|
2306
|
+
__extends(QueueScheduler, _super);
|
|
2307
|
+
function QueueScheduler() {
|
|
2298
2308
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2299
2309
|
}
|
|
2300
|
-
return
|
|
2310
|
+
return QueueScheduler;
|
|
2301
2311
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
2302
2312
|
exports.QueueScheduler = QueueScheduler;
|
|
2303
2313
|
});
|
|
@@ -2316,12 +2326,12 @@ var require_queue = __commonJS(function(exports) {
|
|
|
2316
2326
|
var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
2317
2327
|
var __extends = exports && exports.__extends || function() {
|
|
2318
2328
|
var extendStatics = function(d, b) {
|
|
2319
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
2320
|
-
|
|
2321
|
-
} || function(
|
|
2322
|
-
for (var p in
|
|
2323
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2324
|
-
|
|
2329
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
2330
|
+
d.__proto__ = b;
|
|
2331
|
+
} || function(d, b) {
|
|
2332
|
+
for (var p in b)
|
|
2333
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2334
|
+
d[p] = b[p];
|
|
2325
2335
|
};
|
|
2326
2336
|
return extendStatics(d, b);
|
|
2327
2337
|
};
|
|
@@ -2340,14 +2350,14 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
2340
2350
|
var AsyncAction_1 = require_AsyncAction();
|
|
2341
2351
|
var animationFrameProvider_1 = require_animationFrameProvider();
|
|
2342
2352
|
var AnimationFrameAction = function(_super) {
|
|
2343
|
-
__extends(
|
|
2344
|
-
function
|
|
2353
|
+
__extends(AnimationFrameAction, _super);
|
|
2354
|
+
function AnimationFrameAction(scheduler, work) {
|
|
2345
2355
|
var _this = _super.call(this, scheduler, work) || this;
|
|
2346
2356
|
_this.scheduler = scheduler;
|
|
2347
2357
|
_this.work = work;
|
|
2348
2358
|
return _this;
|
|
2349
2359
|
}
|
|
2350
|
-
|
|
2360
|
+
AnimationFrameAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
2351
2361
|
if (delay === undefined) {
|
|
2352
2362
|
delay = 0;
|
|
2353
2363
|
}
|
|
@@ -2359,7 +2369,7 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
2359
2369
|
return scheduler.flush(undefined);
|
|
2360
2370
|
}));
|
|
2361
2371
|
};
|
|
2362
|
-
|
|
2372
|
+
AnimationFrameAction.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
2363
2373
|
var _a;
|
|
2364
2374
|
if (delay === undefined) {
|
|
2365
2375
|
delay = 0;
|
|
@@ -2374,7 +2384,7 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
2374
2384
|
}
|
|
2375
2385
|
return;
|
|
2376
2386
|
};
|
|
2377
|
-
return
|
|
2387
|
+
return AnimationFrameAction;
|
|
2378
2388
|
}(AsyncAction_1.AsyncAction);
|
|
2379
2389
|
exports.AnimationFrameAction = AnimationFrameAction;
|
|
2380
2390
|
});
|
|
@@ -2383,12 +2393,12 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
2383
2393
|
var require_AnimationFrameScheduler = __commonJS(function(exports) {
|
|
2384
2394
|
var __extends = exports && exports.__extends || function() {
|
|
2385
2395
|
var extendStatics = function(d, b) {
|
|
2386
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
2387
|
-
|
|
2388
|
-
} || function(
|
|
2389
|
-
for (var p in
|
|
2390
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2391
|
-
|
|
2396
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
2397
|
+
d.__proto__ = b;
|
|
2398
|
+
} || function(d, b) {
|
|
2399
|
+
for (var p in b)
|
|
2400
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2401
|
+
d[p] = b[p];
|
|
2392
2402
|
};
|
|
2393
2403
|
return extendStatics(d, b);
|
|
2394
2404
|
};
|
|
@@ -2406,11 +2416,11 @@ var require_AnimationFrameScheduler = __commonJS(function(exports) {
|
|
|
2406
2416
|
exports.AnimationFrameScheduler = undefined;
|
|
2407
2417
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
2408
2418
|
var AnimationFrameScheduler = function(_super) {
|
|
2409
|
-
__extends(
|
|
2410
|
-
function
|
|
2419
|
+
__extends(AnimationFrameScheduler, _super);
|
|
2420
|
+
function AnimationFrameScheduler() {
|
|
2411
2421
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2412
2422
|
}
|
|
2413
|
-
|
|
2423
|
+
AnimationFrameScheduler.prototype.flush = function(action) {
|
|
2414
2424
|
this._active = true;
|
|
2415
2425
|
var flushId;
|
|
2416
2426
|
if (action) {
|
|
@@ -2435,7 +2445,7 @@ var require_AnimationFrameScheduler = __commonJS(function(exports) {
|
|
|
2435
2445
|
throw error;
|
|
2436
2446
|
}
|
|
2437
2447
|
};
|
|
2438
|
-
return
|
|
2448
|
+
return AnimationFrameScheduler;
|
|
2439
2449
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
2440
2450
|
exports.AnimationFrameScheduler = AnimationFrameScheduler;
|
|
2441
2451
|
});
|
|
@@ -2454,12 +2464,12 @@ var require_animationFrame = __commonJS(function(exports) {
|
|
|
2454
2464
|
var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
2455
2465
|
var __extends = exports && exports.__extends || function() {
|
|
2456
2466
|
var extendStatics = function(d, b) {
|
|
2457
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
2458
|
-
|
|
2459
|
-
} || function(
|
|
2460
|
-
for (var p in
|
|
2461
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2462
|
-
|
|
2467
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
2468
|
+
d.__proto__ = b;
|
|
2469
|
+
} || function(d, b) {
|
|
2470
|
+
for (var p in b)
|
|
2471
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2472
|
+
d[p] = b[p];
|
|
2463
2473
|
};
|
|
2464
2474
|
return extendStatics(d, b);
|
|
2465
2475
|
};
|
|
@@ -2479,8 +2489,8 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
2479
2489
|
var Subscription_1 = require_Subscription();
|
|
2480
2490
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
2481
2491
|
var VirtualTimeScheduler = function(_super) {
|
|
2482
|
-
__extends(
|
|
2483
|
-
function
|
|
2492
|
+
__extends(VirtualTimeScheduler, _super);
|
|
2493
|
+
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
2484
2494
|
if (schedulerActionCtor === undefined) {
|
|
2485
2495
|
schedulerActionCtor = VirtualAction;
|
|
2486
2496
|
}
|
|
@@ -2495,8 +2505,8 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
2495
2505
|
_this.index = -1;
|
|
2496
2506
|
return _this;
|
|
2497
2507
|
}
|
|
2498
|
-
|
|
2499
|
-
var _a = this,
|
|
2508
|
+
VirtualTimeScheduler.prototype.flush = function() {
|
|
2509
|
+
var _a = this, { actions, maxFrames } = _a;
|
|
2500
2510
|
var error;
|
|
2501
2511
|
var action;
|
|
2502
2512
|
while ((action = actions[0]) && action.delay <= maxFrames) {
|
|
@@ -2513,13 +2523,13 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
2513
2523
|
throw error;
|
|
2514
2524
|
}
|
|
2515
2525
|
};
|
|
2516
|
-
|
|
2517
|
-
return
|
|
2526
|
+
VirtualTimeScheduler.frameTimeFactor = 10;
|
|
2527
|
+
return VirtualTimeScheduler;
|
|
2518
2528
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
2519
2529
|
exports.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
2520
2530
|
var VirtualAction = function(_super) {
|
|
2521
|
-
__extends(
|
|
2522
|
-
function
|
|
2531
|
+
__extends(VirtualAction, _super);
|
|
2532
|
+
function VirtualAction(scheduler, work, index) {
|
|
2523
2533
|
if (index === undefined) {
|
|
2524
2534
|
index = scheduler.index += 1;
|
|
2525
2535
|
}
|
|
@@ -2531,7 +2541,7 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
2531
2541
|
_this.index = scheduler.index = index;
|
|
2532
2542
|
return _this;
|
|
2533
2543
|
}
|
|
2534
|
-
|
|
2544
|
+
VirtualAction.prototype.schedule = function(state, delay) {
|
|
2535
2545
|
if (delay === undefined) {
|
|
2536
2546
|
delay = 0;
|
|
2537
2547
|
}
|
|
@@ -2540,35 +2550,35 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
2540
2550
|
return _super.prototype.schedule.call(this, state, delay);
|
|
2541
2551
|
}
|
|
2542
2552
|
this.active = false;
|
|
2543
|
-
var action = new
|
|
2553
|
+
var action = new VirtualAction(this.scheduler, this.work);
|
|
2544
2554
|
this.add(action);
|
|
2545
2555
|
return action.schedule(state, delay);
|
|
2546
2556
|
} else {
|
|
2547
2557
|
return Subscription_1.Subscription.EMPTY;
|
|
2548
2558
|
}
|
|
2549
2559
|
};
|
|
2550
|
-
|
|
2560
|
+
VirtualAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
2551
2561
|
if (delay === undefined) {
|
|
2552
2562
|
delay = 0;
|
|
2553
2563
|
}
|
|
2554
2564
|
this.delay = scheduler.frame + delay;
|
|
2555
2565
|
var actions = scheduler.actions;
|
|
2556
2566
|
actions.push(this);
|
|
2557
|
-
actions.sort(
|
|
2567
|
+
actions.sort(VirtualAction.sortActions);
|
|
2558
2568
|
return 1;
|
|
2559
2569
|
};
|
|
2560
|
-
|
|
2570
|
+
VirtualAction.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
2561
2571
|
if (delay === undefined) {
|
|
2562
2572
|
delay = 0;
|
|
2563
2573
|
}
|
|
2564
2574
|
return;
|
|
2565
2575
|
};
|
|
2566
|
-
|
|
2576
|
+
VirtualAction.prototype._execute = function(state, delay) {
|
|
2567
2577
|
if (this.active === true) {
|
|
2568
2578
|
return _super.prototype._execute.call(this, state, delay);
|
|
2569
2579
|
}
|
|
2570
2580
|
};
|
|
2571
|
-
|
|
2581
|
+
VirtualAction.sortActions = function(a, b) {
|
|
2572
2582
|
if (a.delay === b.delay) {
|
|
2573
2583
|
if (a.index === b.index) {
|
|
2574
2584
|
return 0;
|
|
@@ -2583,7 +2593,7 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
2583
2593
|
return -1;
|
|
2584
2594
|
}
|
|
2585
2595
|
};
|
|
2586
|
-
return
|
|
2596
|
+
return VirtualAction;
|
|
2587
2597
|
}(AsyncAction_1.AsyncAction);
|
|
2588
2598
|
exports.VirtualAction = VirtualAction;
|
|
2589
2599
|
});
|
|
@@ -3009,8 +3019,8 @@ var require_innerFrom = __commonJS(function(exports) {
|
|
|
3009
3019
|
};
|
|
3010
3020
|
}
|
|
3011
3021
|
function settle(resolve, reject, d, v) {
|
|
3012
|
-
Promise.resolve(v).then(function(
|
|
3013
|
-
resolve({ value:
|
|
3022
|
+
Promise.resolve(v).then(function(v) {
|
|
3023
|
+
resolve({ value: v, done: d });
|
|
3014
3024
|
}, reject);
|
|
3015
3025
|
}
|
|
3016
3026
|
};
|
|
@@ -3496,31 +3506,31 @@ var require_Notification = __commonJS(function(exports) {
|
|
|
3496
3506
|
var throwError_1 = require_throwError();
|
|
3497
3507
|
var isFunction_1 = require_isFunction();
|
|
3498
3508
|
var NotificationKind;
|
|
3499
|
-
(function(
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3509
|
+
(function(NotificationKind) {
|
|
3510
|
+
NotificationKind["NEXT"] = "N";
|
|
3511
|
+
NotificationKind["ERROR"] = "E";
|
|
3512
|
+
NotificationKind["COMPLETE"] = "C";
|
|
3503
3513
|
})(NotificationKind = exports.NotificationKind || (exports.NotificationKind = {}));
|
|
3504
3514
|
var Notification = function() {
|
|
3505
|
-
function
|
|
3515
|
+
function Notification(kind, value, error) {
|
|
3506
3516
|
this.kind = kind;
|
|
3507
3517
|
this.value = value;
|
|
3508
3518
|
this.error = error;
|
|
3509
3519
|
this.hasValue = kind === "N";
|
|
3510
3520
|
}
|
|
3511
|
-
|
|
3521
|
+
Notification.prototype.observe = function(observer) {
|
|
3512
3522
|
return observeNotification(this, observer);
|
|
3513
3523
|
};
|
|
3514
|
-
|
|
3515
|
-
var _a = this,
|
|
3524
|
+
Notification.prototype.do = function(nextHandler, errorHandler, completeHandler) {
|
|
3525
|
+
var _a = this, { kind, value, error } = _a;
|
|
3516
3526
|
return kind === "N" ? nextHandler === null || nextHandler === undefined ? undefined : nextHandler(value) : kind === "E" ? errorHandler === null || errorHandler === undefined ? undefined : errorHandler(error) : completeHandler === null || completeHandler === undefined ? undefined : completeHandler();
|
|
3517
3527
|
};
|
|
3518
|
-
|
|
3528
|
+
Notification.prototype.accept = function(nextOrObserver, error, complete) {
|
|
3519
3529
|
var _a;
|
|
3520
3530
|
return isFunction_1.isFunction((_a = nextOrObserver) === null || _a === undefined ? undefined : _a.next) ? this.observe(nextOrObserver) : this.do(nextOrObserver, error, complete);
|
|
3521
3531
|
};
|
|
3522
|
-
|
|
3523
|
-
var _a = this,
|
|
3532
|
+
Notification.prototype.toObservable = function() {
|
|
3533
|
+
var _a = this, { kind, value, error } = _a;
|
|
3524
3534
|
var result = kind === "N" ? of_1.of(value) : kind === "E" ? throwError_1.throwError(function() {
|
|
3525
3535
|
return error;
|
|
3526
3536
|
}) : kind === "C" ? empty_1.EMPTY : 0;
|
|
@@ -3529,22 +3539,22 @@ var require_Notification = __commonJS(function(exports) {
|
|
|
3529
3539
|
}
|
|
3530
3540
|
return result;
|
|
3531
3541
|
};
|
|
3532
|
-
|
|
3533
|
-
return new
|
|
3542
|
+
Notification.createNext = function(value) {
|
|
3543
|
+
return new Notification("N", value);
|
|
3534
3544
|
};
|
|
3535
|
-
|
|
3536
|
-
return new
|
|
3545
|
+
Notification.createError = function(err) {
|
|
3546
|
+
return new Notification("E", undefined, err);
|
|
3537
3547
|
};
|
|
3538
|
-
|
|
3539
|
-
return
|
|
3548
|
+
Notification.createComplete = function() {
|
|
3549
|
+
return Notification.completeNotification;
|
|
3540
3550
|
};
|
|
3541
|
-
|
|
3542
|
-
return
|
|
3551
|
+
Notification.completeNotification = new Notification("C");
|
|
3552
|
+
return Notification;
|
|
3543
3553
|
}();
|
|
3544
3554
|
exports.Notification = Notification;
|
|
3545
3555
|
function observeNotification(notification, observer) {
|
|
3546
3556
|
var _a, _b, _c;
|
|
3547
|
-
var _d = notification,
|
|
3557
|
+
var _d = notification, { kind, value, error } = _d;
|
|
3548
3558
|
if (typeof kind !== "string") {
|
|
3549
3559
|
throw new TypeError('Invalid notification, missing "kind"');
|
|
3550
3560
|
}
|
|
@@ -3714,7 +3724,7 @@ var require_timeout = __commonJS(function(exports) {
|
|
|
3714
3724
|
};
|
|
3715
3725
|
});
|
|
3716
3726
|
function timeout(config, schedulerArg) {
|
|
3717
|
-
var _a = isDate_1.isValidDate(config) ? { first: config } : typeof config === "number" ? { each: config } : config,
|
|
3727
|
+
var _a = isDate_1.isValidDate(config) ? { first: config } : typeof config === "number" ? { each: config } : config, { first, each, with: _b } = _a, _with = _b === undefined ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === undefined ? schedulerArg !== null && schedulerArg !== undefined ? schedulerArg : async_1.asyncScheduler : _c, _d = _a.meta, meta = _d === undefined ? null : _d;
|
|
3718
3728
|
if (first == null && each == null) {
|
|
3719
3729
|
throw new TypeError("No timeout provided.");
|
|
3720
3730
|
}
|
|
@@ -3893,8 +3903,8 @@ var require_bindCallbackInternals = __commonJS(function(exports) {
|
|
|
3893
3903
|
callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [
|
|
3894
3904
|
function() {
|
|
3895
3905
|
var results = [];
|
|
3896
|
-
for (var
|
|
3897
|
-
results[
|
|
3906
|
+
for (var _i = 0;_i < arguments.length; _i++) {
|
|
3907
|
+
results[_i] = arguments[_i];
|
|
3898
3908
|
}
|
|
3899
3909
|
if (isNodeStyle) {
|
|
3900
3910
|
var err = results.shift();
|
|
@@ -4008,7 +4018,7 @@ var require_combineLatest = __commonJS(function(exports) {
|
|
|
4008
4018
|
}
|
|
4009
4019
|
var scheduler = args_1.popScheduler(args);
|
|
4010
4020
|
var resultSelector = args_1.popResultSelector(args);
|
|
4011
|
-
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args),
|
|
4021
|
+
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), { args: observables, keys } = _a;
|
|
4012
4022
|
if (observables.length === 0) {
|
|
4013
4023
|
return from_1.from([], scheduler);
|
|
4014
4024
|
}
|
|
@@ -4028,12 +4038,12 @@ var require_combineLatest = __commonJS(function(exports) {
|
|
|
4028
4038
|
var values = new Array(length);
|
|
4029
4039
|
var active = length;
|
|
4030
4040
|
var remainingFirstValues = length;
|
|
4031
|
-
var _loop_1 = function(
|
|
4041
|
+
var _loop_1 = function(i) {
|
|
4032
4042
|
maybeSchedule(scheduler, function() {
|
|
4033
|
-
var source = from_1.from(observables[
|
|
4043
|
+
var source = from_1.from(observables[i], scheduler);
|
|
4034
4044
|
var hasFirstValue = false;
|
|
4035
4045
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
4036
|
-
values[
|
|
4046
|
+
values[i] = value;
|
|
4037
4047
|
if (!hasFirstValue) {
|
|
4038
4048
|
hasFirstValue = true;
|
|
4039
4049
|
remainingFirstValues--;
|
|
@@ -4236,7 +4246,7 @@ var require_connectable = __commonJS(function(exports) {
|
|
|
4236
4246
|
config = DEFAULT_CONFIG;
|
|
4237
4247
|
}
|
|
4238
4248
|
var connection = null;
|
|
4239
|
-
var
|
|
4249
|
+
var connector = config.connector, _a = config.resetOnDisconnect, resetOnDisconnect = _a === undefined ? true : _a;
|
|
4240
4250
|
var subject = connector();
|
|
4241
4251
|
var result = new Observable_1.Observable(function(subscriber) {
|
|
4242
4252
|
return subject.subscribe(subscriber);
|
|
@@ -4276,7 +4286,7 @@ var require_forkJoin = __commonJS(function(exports) {
|
|
|
4276
4286
|
args[_i] = arguments[_i];
|
|
4277
4287
|
}
|
|
4278
4288
|
var resultSelector = args_1.popResultSelector(args);
|
|
4279
|
-
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args),
|
|
4289
|
+
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), { args: sources, keys } = _a;
|
|
4280
4290
|
var result = new Observable_1.Observable(function(subscriber) {
|
|
4281
4291
|
var length = sources.length;
|
|
4282
4292
|
if (!length) {
|
|
@@ -4286,14 +4296,14 @@ var require_forkJoin = __commonJS(function(exports) {
|
|
|
4286
4296
|
var values = new Array(length);
|
|
4287
4297
|
var remainingCompletions = length;
|
|
4288
4298
|
var remainingEmissions = length;
|
|
4289
|
-
var _loop_1 = function(
|
|
4299
|
+
var _loop_1 = function(sourceIndex) {
|
|
4290
4300
|
var hasValue = false;
|
|
4291
|
-
innerFrom_1.innerFrom(sources[
|
|
4301
|
+
innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
4292
4302
|
if (!hasValue) {
|
|
4293
4303
|
hasValue = true;
|
|
4294
4304
|
remainingEmissions--;
|
|
4295
4305
|
}
|
|
4296
|
-
values[
|
|
4306
|
+
values[sourceIndex] = value;
|
|
4297
4307
|
}, function() {
|
|
4298
4308
|
return remainingCompletions--;
|
|
4299
4309
|
}, undefined, function() {
|
|
@@ -4533,18 +4543,18 @@ var require_generate = __commonJS(function(exports) {
|
|
|
4533
4543
|
}
|
|
4534
4544
|
function gen() {
|
|
4535
4545
|
var state;
|
|
4536
|
-
return __generator(this, function(
|
|
4537
|
-
switch (
|
|
4546
|
+
return __generator(this, function(_a) {
|
|
4547
|
+
switch (_a.label) {
|
|
4538
4548
|
case 0:
|
|
4539
4549
|
state = initialState;
|
|
4540
|
-
|
|
4550
|
+
_a.label = 1;
|
|
4541
4551
|
case 1:
|
|
4542
4552
|
if (!(!condition || condition(state)))
|
|
4543
4553
|
return [3, 4];
|
|
4544
4554
|
return [4, resultSelector(state)];
|
|
4545
4555
|
case 2:
|
|
4546
|
-
|
|
4547
|
-
|
|
4556
|
+
_a.sent();
|
|
4557
|
+
_a.label = 3;
|
|
4548
4558
|
case 3:
|
|
4549
4559
|
state = iterate(state);
|
|
4550
4560
|
return [3, 1];
|
|
@@ -4796,11 +4806,11 @@ var require_race = __commonJS(function(exports) {
|
|
|
4796
4806
|
function raceInit(sources) {
|
|
4797
4807
|
return function(subscriber) {
|
|
4798
4808
|
var subscriptions = [];
|
|
4799
|
-
var _loop_1 = function(
|
|
4800
|
-
subscriptions.push(innerFrom_1.innerFrom(sources[
|
|
4809
|
+
var _loop_1 = function(i) {
|
|
4810
|
+
subscriptions.push(innerFrom_1.innerFrom(sources[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
4801
4811
|
if (subscriptions) {
|
|
4802
4812
|
for (var s = 0;s < subscriptions.length; s++) {
|
|
4803
|
-
s !==
|
|
4813
|
+
s !== i && subscriptions[s].unsubscribe();
|
|
4804
4814
|
}
|
|
4805
4815
|
subscriptions = null;
|
|
4806
4816
|
}
|
|
@@ -4927,9 +4937,9 @@ var require_zip = __commonJS(function(exports) {
|
|
|
4927
4937
|
subscriber.add(function() {
|
|
4928
4938
|
buffers = completed = null;
|
|
4929
4939
|
});
|
|
4930
|
-
var _loop_1 = function(
|
|
4931
|
-
innerFrom_1.innerFrom(sources[
|
|
4932
|
-
buffers[
|
|
4940
|
+
var _loop_1 = function(sourceIndex) {
|
|
4941
|
+
innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
4942
|
+
buffers[sourceIndex].push(value);
|
|
4933
4943
|
if (buffers.every(function(buffer) {
|
|
4934
4944
|
return buffer.length;
|
|
4935
4945
|
})) {
|
|
@@ -4944,8 +4954,8 @@ var require_zip = __commonJS(function(exports) {
|
|
|
4944
4954
|
}
|
|
4945
4955
|
}
|
|
4946
4956
|
}, function() {
|
|
4947
|
-
completed[
|
|
4948
|
-
!buffers[
|
|
4957
|
+
completed[sourceIndex] = true;
|
|
4958
|
+
!buffers[sourceIndex].length && subscriber.complete();
|
|
4949
4959
|
}));
|
|
4950
4960
|
};
|
|
4951
4961
|
for (var sourceIndex = 0;!subscriber.closed && sourceIndex < sources.length; sourceIndex++) {
|
|
@@ -5222,7 +5232,7 @@ var require_bufferTime = __commonJS(function(exports) {
|
|
|
5222
5232
|
}
|
|
5223
5233
|
startBuffer();
|
|
5224
5234
|
var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
5225
|
-
var e_1,
|
|
5235
|
+
var e_1, _a;
|
|
5226
5236
|
var recordsCopy = bufferRecords.slice();
|
|
5227
5237
|
try {
|
|
5228
5238
|
for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next();!recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
|
@@ -5235,8 +5245,8 @@ var require_bufferTime = __commonJS(function(exports) {
|
|
|
5235
5245
|
e_1 = { error: e_1_1 };
|
|
5236
5246
|
} finally {
|
|
5237
5247
|
try {
|
|
5238
|
-
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (
|
|
5239
|
-
|
|
5248
|
+
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return))
|
|
5249
|
+
_a.call(recordsCopy_1);
|
|
5240
5250
|
} finally {
|
|
5241
5251
|
if (e_1)
|
|
5242
5252
|
throw e_1.error;
|
|
@@ -7684,23 +7694,23 @@ var require_tap = __commonJS(function(exports) {
|
|
|
7684
7694
|
(_a = tapObserver.subscribe) === null || _a === undefined || _a.call(tapObserver);
|
|
7685
7695
|
var isUnsub = true;
|
|
7686
7696
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
7687
|
-
var
|
|
7688
|
-
(
|
|
7697
|
+
var _a;
|
|
7698
|
+
(_a = tapObserver.next) === null || _a === undefined || _a.call(tapObserver, value);
|
|
7689
7699
|
subscriber.next(value);
|
|
7690
7700
|
}, function() {
|
|
7691
|
-
var
|
|
7701
|
+
var _a;
|
|
7692
7702
|
isUnsub = false;
|
|
7693
|
-
(
|
|
7703
|
+
(_a = tapObserver.complete) === null || _a === undefined || _a.call(tapObserver);
|
|
7694
7704
|
subscriber.complete();
|
|
7695
7705
|
}, function(err) {
|
|
7696
|
-
var
|
|
7706
|
+
var _a;
|
|
7697
7707
|
isUnsub = false;
|
|
7698
|
-
(
|
|
7708
|
+
(_a = tapObserver.error) === null || _a === undefined || _a.call(tapObserver, err);
|
|
7699
7709
|
subscriber.error(err);
|
|
7700
7710
|
}, function() {
|
|
7701
|
-
var
|
|
7711
|
+
var _a, _b;
|
|
7702
7712
|
if (isUnsub) {
|
|
7703
|
-
(
|
|
7713
|
+
(_a = tapObserver.unsubscribe) === null || _a === undefined || _a.call(tapObserver);
|
|
7704
7714
|
}
|
|
7705
7715
|
(_b = tapObserver.finalize) === null || _b === undefined || _b.call(tapObserver);
|
|
7706
7716
|
}));
|
|
@@ -7802,11 +7812,11 @@ var require_timeInterval = __commonJS(function(exports) {
|
|
|
7802
7812
|
}
|
|
7803
7813
|
exports.timeInterval = timeInterval;
|
|
7804
7814
|
var TimeInterval = function() {
|
|
7805
|
-
function
|
|
7815
|
+
function TimeInterval(value, interval) {
|
|
7806
7816
|
this.value = value;
|
|
7807
7817
|
this.interval = interval;
|
|
7808
7818
|
}
|
|
7809
|
-
return
|
|
7819
|
+
return TimeInterval;
|
|
7810
7820
|
}();
|
|
7811
7821
|
exports.TimeInterval = TimeInterval;
|
|
7812
7822
|
});
|
|
@@ -8036,8 +8046,8 @@ var require_windowTime = __commonJS(function(exports) {
|
|
|
8036
8046
|
return windowRecords.slice().forEach(cb);
|
|
8037
8047
|
};
|
|
8038
8048
|
var terminate = function(cb) {
|
|
8039
|
-
loop(function(
|
|
8040
|
-
var window2 =
|
|
8049
|
+
loop(function(_a) {
|
|
8050
|
+
var window2 = _a.window;
|
|
8041
8051
|
return cb(window2);
|
|
8042
8052
|
});
|
|
8043
8053
|
cb(subscriber);
|
|
@@ -8246,11 +8256,11 @@ var require_withLatestFrom = __commonJS(function(exports) {
|
|
|
8246
8256
|
return false;
|
|
8247
8257
|
});
|
|
8248
8258
|
var ready = false;
|
|
8249
|
-
var _loop_1 = function(
|
|
8250
|
-
innerFrom_1.innerFrom(inputs[
|
|
8251
|
-
otherValues[
|
|
8252
|
-
if (!ready && !hasValue[
|
|
8253
|
-
hasValue[
|
|
8259
|
+
var _loop_1 = function(i) {
|
|
8260
|
+
innerFrom_1.innerFrom(inputs[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
8261
|
+
otherValues[i] = value;
|
|
8262
|
+
if (!ready && !hasValue[i]) {
|
|
8263
|
+
hasValue[i] = true;
|
|
8254
8264
|
(ready = hasValue.every(identity_1.identity)) && (hasValue = null);
|
|
8255
8265
|
}
|
|
8256
8266
|
}, noop_1.noop));
|
|
@@ -9293,53 +9303,6 @@ var init_imageProcessing = __esm(() => {
|
|
|
9293
9303
|
webp: "image/webp"
|
|
9294
9304
|
};
|
|
9295
9305
|
});
|
|
9296
|
-
|
|
9297
|
-
// src/core/streamingSlotRegistrar.ts
|
|
9298
|
-
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
9299
|
-
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
9300
|
-
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
9301
|
-
var getRegisteredStreamingSlotRegistrar = () => {
|
|
9302
|
-
const value = Reflect.get(globalThis, STREAMING_SLOT_REGISTRAR_KEY);
|
|
9303
|
-
if (typeof value === "function" || value === null) {
|
|
9304
|
-
return value;
|
|
9305
|
-
}
|
|
9306
|
-
return;
|
|
9307
|
-
};
|
|
9308
|
-
var isObjectRecord = (value) => Boolean(value) && typeof value === "object";
|
|
9309
|
-
var isStreamingSlotWarningController = (value) => isObjectRecord(value) && ("maybeWarn" in value) && typeof value.maybeWarn === "function";
|
|
9310
|
-
var isStreamingSlotCollectionController = (value) => isObjectRecord(value) && ("isCollecting" in value) && typeof value.isCollecting === "function";
|
|
9311
|
-
var getWarningController = () => {
|
|
9312
|
-
const value = Reflect.get(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY);
|
|
9313
|
-
if (value === null || typeof value === "undefined")
|
|
9314
|
-
return;
|
|
9315
|
-
return isStreamingSlotWarningController(value) ? value : undefined;
|
|
9316
|
-
};
|
|
9317
|
-
var getCollectionController = () => {
|
|
9318
|
-
const value = Reflect.get(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY);
|
|
9319
|
-
if (value === null || typeof value === "undefined")
|
|
9320
|
-
return;
|
|
9321
|
-
return isStreamingSlotCollectionController(value) ? value : undefined;
|
|
9322
|
-
};
|
|
9323
|
-
var hasRegisteredStreamingSlotRegistrar = () => typeof getRegisteredStreamingSlotRegistrar() === "function";
|
|
9324
|
-
var isStreamingSlotCollectionActive = () => getCollectionController()?.isCollecting() === true;
|
|
9325
|
-
var registerStreamingSlot = (slot) => {
|
|
9326
|
-
getRegisteredStreamingSlotRegistrar()?.(slot);
|
|
9327
|
-
};
|
|
9328
|
-
var setStreamingSlotCollectionController = (controller) => {
|
|
9329
|
-
Reflect.set(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY, controller);
|
|
9330
|
-
};
|
|
9331
|
-
var setStreamingSlotRegistrar = (nextRegistrar) => {
|
|
9332
|
-
Reflect.set(globalThis, STREAMING_SLOT_REGISTRAR_KEY, nextRegistrar);
|
|
9333
|
-
};
|
|
9334
|
-
var setStreamingSlotWarningController = (controller) => {
|
|
9335
|
-
Reflect.set(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY, controller);
|
|
9336
|
-
};
|
|
9337
|
-
var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
9338
|
-
if (isStreamingSlotCollectionActive()) {
|
|
9339
|
-
return;
|
|
9340
|
-
}
|
|
9341
|
-
getWarningController()?.maybeWarn(primitiveName);
|
|
9342
|
-
};
|
|
9343
9306
|
// src/angular/deterministicEnv.ts
|
|
9344
9307
|
import { InjectionToken } from "@angular/core";
|
|
9345
9308
|
var DEFAULT_DETERMINISTIC_SEED = "absolute-angular";
|
|
@@ -9744,7 +9707,7 @@ var createTypedIsland = (_registry) => (props) => {
|
|
|
9744
9707
|
return `<div ${serializeIslandAttributes(attributes)}></div>`;
|
|
9745
9708
|
};
|
|
9746
9709
|
// src/angular/islandStore.ts
|
|
9747
|
-
var import_rxjs = __toESM(require_cjs()
|
|
9710
|
+
var import_rxjs = __toESM(require_cjs());
|
|
9748
9711
|
import { Injectable } from "@angular/core";
|
|
9749
9712
|
|
|
9750
9713
|
// node_modules/zustand/esm/vanilla.mjs
|
|
@@ -9874,6 +9837,53 @@ import {
|
|
|
9874
9837
|
} from "@angular/core";
|
|
9875
9838
|
import { NgTemplateOutlet } from "@angular/common";
|
|
9876
9839
|
|
|
9840
|
+
// src/core/streamingSlotRegistrar.ts
|
|
9841
|
+
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
9842
|
+
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
9843
|
+
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
9844
|
+
var getRegisteredStreamingSlotRegistrar = () => {
|
|
9845
|
+
const value = Reflect.get(globalThis, STREAMING_SLOT_REGISTRAR_KEY);
|
|
9846
|
+
if (typeof value === "function" || value === null) {
|
|
9847
|
+
return value;
|
|
9848
|
+
}
|
|
9849
|
+
return;
|
|
9850
|
+
};
|
|
9851
|
+
var isObjectRecord = (value) => Boolean(value) && typeof value === "object";
|
|
9852
|
+
var isStreamingSlotWarningController = (value) => isObjectRecord(value) && ("maybeWarn" in value) && typeof value.maybeWarn === "function";
|
|
9853
|
+
var isStreamingSlotCollectionController = (value) => isObjectRecord(value) && ("isCollecting" in value) && typeof value.isCollecting === "function";
|
|
9854
|
+
var getWarningController = () => {
|
|
9855
|
+
const value = Reflect.get(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY);
|
|
9856
|
+
if (value === null || typeof value === "undefined")
|
|
9857
|
+
return;
|
|
9858
|
+
return isStreamingSlotWarningController(value) ? value : undefined;
|
|
9859
|
+
};
|
|
9860
|
+
var getCollectionController = () => {
|
|
9861
|
+
const value = Reflect.get(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY);
|
|
9862
|
+
if (value === null || typeof value === "undefined")
|
|
9863
|
+
return;
|
|
9864
|
+
return isStreamingSlotCollectionController(value) ? value : undefined;
|
|
9865
|
+
};
|
|
9866
|
+
var hasRegisteredStreamingSlotRegistrar = () => typeof getRegisteredStreamingSlotRegistrar() === "function";
|
|
9867
|
+
var isStreamingSlotCollectionActive = () => getCollectionController()?.isCollecting() === true;
|
|
9868
|
+
var registerStreamingSlot = (slot) => {
|
|
9869
|
+
getRegisteredStreamingSlotRegistrar()?.(slot);
|
|
9870
|
+
};
|
|
9871
|
+
var setStreamingSlotCollectionController = (controller) => {
|
|
9872
|
+
Reflect.set(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY, controller);
|
|
9873
|
+
};
|
|
9874
|
+
var setStreamingSlotRegistrar = (nextRegistrar) => {
|
|
9875
|
+
Reflect.set(globalThis, STREAMING_SLOT_REGISTRAR_KEY, nextRegistrar);
|
|
9876
|
+
};
|
|
9877
|
+
var setStreamingSlotWarningController = (controller) => {
|
|
9878
|
+
Reflect.set(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY, controller);
|
|
9879
|
+
};
|
|
9880
|
+
var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
9881
|
+
if (isStreamingSlotCollectionActive()) {
|
|
9882
|
+
return;
|
|
9883
|
+
}
|
|
9884
|
+
getWarningController()?.maybeWarn(primitiveName);
|
|
9885
|
+
};
|
|
9886
|
+
|
|
9877
9887
|
// src/angular/components/defer-slot-payload.ts
|
|
9878
9888
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
9879
9889
|
var isAngularDeferSlotPayload = (value) => {
|
|
@@ -10348,5 +10358,5 @@ export {
|
|
|
10348
10358
|
withPendingTask
|
|
10349
10359
|
};
|
|
10350
10360
|
|
|
10351
|
-
//# debugId=
|
|
10361
|
+
//# debugId=FE6A8C398A3BAB0464756E2164756E21
|
|
10352
10362
|
//# sourceMappingURL=browser.js.map
|