@ngxs/store 3.7.4 → 3.7.5
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/README.md +16 -16
- package/bundles/ngxs-store-internals-testing.umd.js +315 -315
- package/bundles/ngxs-store-internals-testing.umd.js.map +1 -1
- package/bundles/ngxs-store-internals-testing.umd.min.js.map +1 -1
- package/bundles/ngxs-store-internals.umd.js +192 -397
- package/bundles/ngxs-store-internals.umd.js.map +1 -1
- package/bundles/ngxs-store-internals.umd.min.js +1 -1
- package/bundles/ngxs-store-internals.umd.min.js.map +1 -1
- package/bundles/ngxs-store-operators.umd.js +310 -310
- package/bundles/ngxs-store-operators.umd.js.map +1 -1
- package/bundles/ngxs-store-operators.umd.min.js.map +1 -1
- package/bundles/ngxs-store.umd.js +4401 -4481
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.min.js +1 -1
- package/bundles/ngxs-store.umd.min.js.map +1 -1
- package/esm2015/index.js +13 -13
- package/esm2015/internals/angular.js +20 -20
- package/esm2015/internals/index.js +10 -11
- package/esm2015/internals/initial-state.js +34 -34
- package/esm2015/internals/internal-tokens.js +16 -16
- package/esm2015/internals/memoize.js +70 -70
- package/esm2015/internals/ngxs-bootstrapper.js +41 -41
- package/esm2015/internals/ngxs-store-internals.js +9 -9
- package/esm2015/internals/src/symbols.js +14 -14
- package/esm2015/internals/symbols.js +14 -14
- package/esm2015/internals/testing/fresh-platform.js +110 -110
- package/esm2015/internals/testing/helpers/ngxs-test.component.js +22 -22
- package/esm2015/internals/testing/helpers/ngxs-test.module.js +24 -24
- package/esm2015/internals/testing/index.js +8 -8
- package/esm2015/internals/testing/ngxs-store-internals-testing.js +8 -8
- package/esm2015/internals/testing/ngxs.setup.js +76 -76
- package/esm2015/internals/testing/skip-console-logging.js +62 -62
- package/esm2015/internals/testing/symbol.js +29 -29
- package/esm2015/ngxs-store.js +24 -23
- package/esm2015/operators/append.js +31 -31
- package/esm2015/operators/compose.js +24 -24
- package/esm2015/operators/iif.js +56 -56
- package/esm2015/operators/index.js +18 -18
- package/esm2015/operators/insert-item.js +41 -41
- package/esm2015/operators/internals.js +5 -5
- package/esm2015/operators/ngxs-store-operators.js +8 -8
- package/esm2015/operators/patch.js +39 -39
- package/esm2015/operators/remove-item.js +34 -34
- package/esm2015/operators/update-item.js +52 -52
- package/esm2015/operators/utils.js +50 -50
- package/esm2015/src/actions/actions.js +39 -39
- package/esm2015/src/actions/symbols.js +39 -39
- package/esm2015/src/actions-stream.js +140 -140
- package/esm2015/src/configs/messages.config.js +79 -79
- package/esm2015/src/decorators/action.js +48 -48
- package/esm2015/src/decorators/select/select-factory.js +45 -49
- package/esm2015/src/decorators/select/select.js +45 -81
- package/esm2015/src/decorators/select/symbols.js +50 -94
- package/esm2015/src/decorators/selector/selector.js +59 -59
- package/esm2015/src/decorators/selector/symbols.js +5 -5
- package/esm2015/src/decorators/selector-options.js +34 -34
- package/esm2015/src/decorators/state.js +77 -83
- package/esm2015/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +103 -103
- package/esm2015/src/execution/internal-ngxs-execution-strategy.js +45 -45
- package/esm2015/src/execution/noop-ngxs-execution-strategy.js +29 -29
- package/esm2015/src/execution/symbols.js +52 -52
- package/esm2015/src/internal/dispatcher.js +219 -217
- package/esm2015/src/internal/internals.js +493 -493
- package/esm2015/src/internal/lifecycle-state-manager.js +129 -129
- package/esm2015/src/internal/state-context-factory.js +138 -138
- package/esm2015/src/internal/state-factory.js +457 -449
- package/esm2015/src/internal/state-operations.js +124 -133
- package/esm2015/src/internal/state-operators.js +33 -33
- package/esm2015/src/internal/state-stream.js +30 -30
- package/esm2015/src/ivy/ivy-enabled-in-dev-mode.js +28 -28
- package/esm2015/src/module.js +159 -157
- package/esm2015/src/modules/ngxs-feature.module.js +63 -63
- package/esm2015/src/modules/ngxs-root.module.js +49 -52
- package/esm2015/src/operators/leave-ngxs.js +58 -58
- package/esm2015/src/operators/of-action.js +191 -191
- package/esm2015/src/plugin-manager.js +70 -70
- package/esm2015/src/plugin_api.js +10 -10
- package/esm2015/src/public_api.js +29 -29
- package/esm2015/src/public_to_deprecate.js +64 -64
- package/esm2015/src/state-token/state-token.js +45 -45
- package/esm2015/src/state-token/symbols.js +5 -5
- package/esm2015/src/store.js +190 -190
- package/esm2015/src/symbols.js +221 -220
- package/esm2015/src/utils/compose.js +44 -44
- package/esm2015/src/utils/freeze.js +35 -35
- package/esm2015/src/utils/selector-utils.js +221 -221
- package/esm2015/src/utils/store-validators.js +60 -60
- package/esm2015/src/utils/utils.js +143 -143
- package/esm5/index.js +13 -13
- package/esm5/internals/angular.js +20 -20
- package/esm5/internals/index.js +10 -11
- package/esm5/internals/initial-state.js +45 -45
- package/esm5/internals/internal-tokens.js +16 -16
- package/esm5/internals/memoize.js +71 -71
- package/esm5/internals/ngxs-bootstrapper.js +56 -56
- package/esm5/internals/ngxs-store-internals.js +9 -9
- package/esm5/internals/src/symbols.js +14 -14
- package/esm5/internals/symbols.js +14 -14
- package/esm5/internals/testing/fresh-platform.js +121 -121
- package/esm5/internals/testing/helpers/ngxs-test.component.js +32 -32
- package/esm5/internals/testing/helpers/ngxs-test.module.js +32 -32
- package/esm5/internals/testing/index.js +8 -8
- package/esm5/internals/testing/ngxs-store-internals-testing.js +8 -8
- package/esm5/internals/testing/ngxs.setup.js +98 -98
- package/esm5/internals/testing/skip-console-logging.js +62 -62
- package/esm5/internals/testing/symbol.js +29 -29
- package/esm5/ngxs-store.js +24 -23
- package/esm5/operators/append.js +31 -31
- package/esm5/operators/compose.js +28 -28
- package/esm5/operators/iif.js +56 -56
- package/esm5/operators/index.js +18 -18
- package/esm5/operators/insert-item.js +41 -41
- package/esm5/operators/internals.js +5 -5
- package/esm5/operators/ngxs-store-operators.js +8 -8
- package/esm5/operators/patch.js +40 -40
- package/esm5/operators/remove-item.js +34 -34
- package/esm5/operators/update-item.js +52 -52
- package/esm5/operators/utils.js +50 -50
- package/esm5/src/actions/actions.js +62 -62
- package/esm5/src/actions/symbols.js +39 -39
- package/esm5/src/actions-stream.js +186 -186
- package/esm5/src/configs/messages.config.js +79 -79
- package/esm5/src/decorators/action.js +60 -60
- package/esm5/src/decorators/select/select-factory.js +46 -50
- package/esm5/src/decorators/select/select.js +50 -87
- package/esm5/src/decorators/select/symbols.js +51 -95
- package/esm5/src/decorators/selector/selector.js +59 -59
- package/esm5/src/decorators/selector/symbols.js +5 -5
- package/esm5/src/decorators/selector-options.js +34 -34
- package/esm5/src/decorators/state.js +78 -84
- package/esm5/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +123 -123
- package/esm5/src/execution/internal-ngxs-execution-strategy.js +54 -54
- package/esm5/src/execution/noop-ngxs-execution-strategy.js +43 -43
- package/esm5/src/execution/symbols.js +52 -52
- package/esm5/src/internal/dispatcher.js +255 -253
- package/esm5/src/internal/internals.js +495 -495
- package/esm5/src/internal/lifecycle-state-manager.js +177 -177
- package/esm5/src/internal/state-context-factory.js +146 -146
- package/esm5/src/internal/state-factory.js +583 -575
- package/esm5/src/internal/state-operations.js +134 -143
- package/esm5/src/internal/state-operators.js +34 -34
- package/esm5/src/internal/state-stream.js +37 -37
- package/esm5/src/ivy/ivy-enabled-in-dev-mode.js +28 -28
- package/esm5/src/module.js +202 -200
- package/esm5/src/modules/ngxs-feature.module.js +65 -65
- package/esm5/src/modules/ngxs-root.module.js +44 -47
- package/esm5/src/operators/leave-ngxs.js +58 -58
- package/esm5/src/operators/of-action.js +217 -217
- package/esm5/src/plugin-manager.js +82 -82
- package/esm5/src/plugin_api.js +10 -10
- package/esm5/src/public_api.js +29 -29
- package/esm5/src/public_to_deprecate.js +64 -64
- package/esm5/src/state-token/state-token.js +57 -57
- package/esm5/src/state-token/symbols.js +5 -5
- package/esm5/src/store.js +241 -241
- package/esm5/src/symbols.js +230 -229
- package/esm5/src/utils/compose.js +55 -55
- package/esm5/src/utils/freeze.js +35 -35
- package/esm5/src/utils/selector-utils.js +230 -230
- package/esm5/src/utils/store-validators.js +78 -78
- package/esm5/src/utils/utils.js +151 -151
- package/fesm2015/ngxs-store-internals-testing.js +274 -274
- package/fesm2015/ngxs-store-internals-testing.js.map +1 -1
- package/fesm2015/ngxs-store-internals.js +175 -377
- package/fesm2015/ngxs-store-internals.js.map +1 -1
- package/fesm2015/ngxs-store-operators.js +312 -312
- package/fesm2015/ngxs-store-operators.js.map +1 -1
- package/fesm2015/ngxs-store.js +3915 -3995
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store-internals-testing.js +321 -321
- package/fesm5/ngxs-store-internals-testing.js.map +1 -1
- package/fesm5/ngxs-store-internals.js +200 -402
- package/fesm5/ngxs-store-internals.js.map +1 -1
- package/fesm5/ngxs-store-operators.js +316 -316
- package/fesm5/ngxs-store-operators.js.map +1 -1
- package/fesm5/ngxs-store.js +4410 -4491
- package/fesm5/ngxs-store.js.map +1 -1
- package/index.d.ts +8 -8
- package/internals/angular.d.ts +1 -1
- package/internals/index.d.ts +6 -7
- package/internals/initial-state.d.ts +8 -8
- package/internals/internal-tokens.d.ts +9 -9
- package/internals/memoize.d.ts +9 -9
- package/internals/ngxs-bootstrapper.d.ts +13 -13
- package/internals/ngxs-store-internals.d.ts +4 -4
- package/internals/ngxs-store-internals.metadata.json +1 -1
- package/internals/src/symbols.d.ts +7 -7
- package/internals/symbols.d.ts +7 -7
- package/internals/testing/fresh-platform.d.ts +1 -1
- package/internals/testing/helpers/ngxs-test.component.d.ts +5 -5
- package/internals/testing/helpers/ngxs-test.module.d.ts +4 -4
- package/internals/testing/index.d.ts +4 -4
- package/internals/testing/ngxs-store-internals-testing.d.ts +4 -4
- package/internals/testing/ngxs.setup.d.ts +7 -7
- package/internals/testing/skip-console-logging.d.ts +1 -1
- package/internals/testing/symbol.d.ts +14 -14
- package/ngxs-store.d.ts +20 -19
- package/ngxs-store.metadata.json +1 -1
- package/operators/append.d.ts +6 -6
- package/operators/compose.d.ts +2 -2
- package/operators/iif.d.ts +11 -11
- package/operators/index.d.ts +13 -13
- package/operators/insert-item.d.ts +7 -7
- package/operators/internals.d.ts +2 -2
- package/operators/ngxs-store-operators.d.ts +4 -4
- package/operators/patch.d.ts +10 -10
- package/operators/remove-item.d.ts +7 -7
- package/operators/update-item.d.ts +10 -10
- package/operators/utils.d.ts +9 -9
- package/package.json +1 -1
- package/src/actions/actions.d.ts +15 -15
- package/src/actions/symbols.d.ts +21 -21
- package/src/actions-stream.d.ts +49 -49
- package/src/configs/messages.config.d.ts +11 -11
- package/src/decorators/action.d.ts +5 -5
- package/src/decorators/select/select-factory.d.ts +13 -13
- package/src/decorators/select/select.d.ts +4 -4
- package/src/decorators/select/symbols.d.ts +10 -14
- package/src/decorators/selector/selector.d.ts +5 -5
- package/src/decorators/selector/symbols.d.ts +4 -4
- package/src/decorators/selector-options.d.ts +5 -5
- package/src/decorators/state.d.ts +6 -6
- package/src/execution/dispatch-outside-zone-ngxs-execution-strategy.d.ts +11 -11
- package/src/execution/internal-ngxs-execution-strategy.d.ts +7 -7
- package/src/execution/noop-ngxs-execution-strategy.d.ts +5 -5
- package/src/execution/symbols.d.ts +10 -10
- package/src/internal/dispatcher.d.ts +32 -32
- package/src/internal/internals.d.ts +166 -166
- package/src/internal/lifecycle-state-manager.d.ts +20 -20
- package/src/internal/state-context-factory.d.ts +15 -15
- package/src/internal/state-factory.d.ts +57 -57
- package/src/internal/state-operations.d.ts +19 -19
- package/src/internal/state-operators.d.ts +2 -2
- package/src/internal/state-stream.d.ts +11 -11
- package/src/ivy/ivy-enabled-in-dev-mode.d.ts +6 -6
- package/src/module.d.ts +23 -23
- package/src/modules/ngxs-feature.module.d.ts +13 -13
- package/src/modules/ngxs-root.module.d.ts +13 -13
- package/src/operators/leave-ngxs.d.ts +7 -7
- package/src/operators/of-action.d.ts +43 -43
- package/src/plugin-manager.d.ts +10 -10
- package/src/plugin_api.d.ts +5 -5
- package/src/public_api.d.ts +17 -17
- package/src/public_to_deprecate.d.ts +21 -21
- package/src/state-token/state-token.d.ts +7 -7
- package/src/state-token/symbols.d.ts +5 -5
- package/src/store.d.ts +59 -59
- package/src/symbols.d.ts +139 -138
- package/src/utils/compose.d.ts +23 -23
- package/src/utils/freeze.d.ts +5 -5
- package/src/utils/selector-utils.d.ts +23 -23
- package/src/utils/store-validators.d.ts +7 -7
- package/src/utils/utils.d.ts +46 -46
- package/types/index.d.ts +2 -2
- package/esm2015/internals/decorator-injector-adapter.js +0 -204
- package/esm5/internals/decorator-injector-adapter.js +0 -204
- package/internals/decorator-injector-adapter.d.ts +0 -15
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { Inject, Injectable, NgZone, PLATFORM_ID } from '@angular/core';
|
|
6
|
-
import { isPlatformServer } from '@angular/common';
|
|
7
|
-
import { getZoneWarningMessage } from '../configs/messages.config';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
var DispatchOutsideZoneNgxsExecutionStrategy = /** @class */ (function () {
|
|
10
|
-
function DispatchOutsideZoneNgxsExecutionStrategy(_ngZone, _platformId) {
|
|
11
|
-
this._ngZone = _ngZone;
|
|
12
|
-
this._platformId = _platformId;
|
|
13
|
-
// Caretaker note: we have still left the `typeof` condition in order to avoid
|
|
14
|
-
// creating a breaking change for projects that still use the View Engine.
|
|
15
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
16
|
-
verifyZoneIsNotNooped(_ngZone);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @template T
|
|
21
|
-
* @param {?} func
|
|
22
|
-
* @return {?}
|
|
23
|
-
*/
|
|
24
|
-
DispatchOutsideZoneNgxsExecutionStrategy.prototype.enter = /**
|
|
25
|
-
* @template T
|
|
26
|
-
* @param {?} func
|
|
27
|
-
* @return {?}
|
|
28
|
-
*/
|
|
29
|
-
function (func) {
|
|
30
|
-
if (isPlatformServer(this._platformId)) {
|
|
31
|
-
return this.runInsideAngular(func);
|
|
32
|
-
}
|
|
33
|
-
return this.runOutsideAngular(func);
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* @template T
|
|
37
|
-
* @param {?} func
|
|
38
|
-
* @return {?}
|
|
39
|
-
*/
|
|
40
|
-
DispatchOutsideZoneNgxsExecutionStrategy.prototype.leave = /**
|
|
41
|
-
* @template T
|
|
42
|
-
* @param {?} func
|
|
43
|
-
* @return {?}
|
|
44
|
-
*/
|
|
45
|
-
function (func) {
|
|
46
|
-
return this.runInsideAngular(func);
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* @private
|
|
50
|
-
* @template T
|
|
51
|
-
* @param {?} func
|
|
52
|
-
* @return {?}
|
|
53
|
-
*/
|
|
54
|
-
DispatchOutsideZoneNgxsExecutionStrategy.prototype.runInsideAngular = /**
|
|
55
|
-
* @private
|
|
56
|
-
* @template T
|
|
57
|
-
* @param {?} func
|
|
58
|
-
* @return {?}
|
|
59
|
-
*/
|
|
60
|
-
function (func) {
|
|
61
|
-
if (NgZone.isInAngularZone()) {
|
|
62
|
-
return func();
|
|
63
|
-
}
|
|
64
|
-
return this._ngZone.run(func);
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* @private
|
|
68
|
-
* @template T
|
|
69
|
-
* @param {?} func
|
|
70
|
-
* @return {?}
|
|
71
|
-
*/
|
|
72
|
-
DispatchOutsideZoneNgxsExecutionStrategy.prototype.runOutsideAngular = /**
|
|
73
|
-
* @private
|
|
74
|
-
* @template T
|
|
75
|
-
* @param {?} func
|
|
76
|
-
* @return {?}
|
|
77
|
-
*/
|
|
78
|
-
function (func) {
|
|
79
|
-
if (NgZone.isInAngularZone()) {
|
|
80
|
-
return this._ngZone.runOutsideAngular(func);
|
|
81
|
-
}
|
|
82
|
-
return func();
|
|
83
|
-
};
|
|
84
|
-
DispatchOutsideZoneNgxsExecutionStrategy.decorators = [
|
|
85
|
-
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
86
|
-
];
|
|
87
|
-
/** @nocollapse */
|
|
88
|
-
DispatchOutsideZoneNgxsExecutionStrategy.ctorParameters = function () { return [
|
|
89
|
-
{ type: NgZone },
|
|
90
|
-
{ type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
|
|
91
|
-
]; };
|
|
92
|
-
/** @nocollapse */ DispatchOutsideZoneNgxsExecutionStrategy.ngInjectableDef = i0.defineInjectable({ factory: function DispatchOutsideZoneNgxsExecutionStrategy_Factory() { return new DispatchOutsideZoneNgxsExecutionStrategy(i0.inject(i0.NgZone), i0.inject(i0.PLATFORM_ID)); }, token: DispatchOutsideZoneNgxsExecutionStrategy, providedIn: "root" });
|
|
93
|
-
return DispatchOutsideZoneNgxsExecutionStrategy;
|
|
94
|
-
}());
|
|
95
|
-
export { DispatchOutsideZoneNgxsExecutionStrategy };
|
|
96
|
-
if (false) {
|
|
97
|
-
/**
|
|
98
|
-
* @type {?}
|
|
99
|
-
* @private
|
|
100
|
-
*/
|
|
101
|
-
DispatchOutsideZoneNgxsExecutionStrategy.prototype._ngZone;
|
|
102
|
-
/**
|
|
103
|
-
* @type {?}
|
|
104
|
-
* @private
|
|
105
|
-
*/
|
|
106
|
-
DispatchOutsideZoneNgxsExecutionStrategy.prototype._platformId;
|
|
107
|
-
}
|
|
108
|
-
// Caretaker note: this should exist as a separate function and not a class method,
|
|
109
|
-
// since class methods are not tree-shakable.
|
|
110
|
-
/**
|
|
111
|
-
* @param {?} ngZone
|
|
112
|
-
* @return {?}
|
|
113
|
-
*/
|
|
114
|
-
function verifyZoneIsNotNooped(ngZone) {
|
|
115
|
-
// `NoopNgZone` is not exposed publicly as it doesn't expect
|
|
116
|
-
// to be used outside of the core Angular code, thus we just have
|
|
117
|
-
// to check if the zone doesn't extend or instanceof `NgZone`.
|
|
118
|
-
if (ngZone instanceof NgZone) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
console.warn(getZoneWarningMessage());
|
|
122
|
-
}
|
|
123
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { Inject, Injectable, NgZone, PLATFORM_ID } from '@angular/core';
|
|
6
|
+
import { isPlatformServer } from '@angular/common';
|
|
7
|
+
import { getZoneWarningMessage } from '../configs/messages.config';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
var DispatchOutsideZoneNgxsExecutionStrategy = /** @class */ (function () {
|
|
10
|
+
function DispatchOutsideZoneNgxsExecutionStrategy(_ngZone, _platformId) {
|
|
11
|
+
this._ngZone = _ngZone;
|
|
12
|
+
this._platformId = _platformId;
|
|
13
|
+
// Caretaker note: we have still left the `typeof` condition in order to avoid
|
|
14
|
+
// creating a breaking change for projects that still use the View Engine.
|
|
15
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
16
|
+
verifyZoneIsNotNooped(_ngZone);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @template T
|
|
21
|
+
* @param {?} func
|
|
22
|
+
* @return {?}
|
|
23
|
+
*/
|
|
24
|
+
DispatchOutsideZoneNgxsExecutionStrategy.prototype.enter = /**
|
|
25
|
+
* @template T
|
|
26
|
+
* @param {?} func
|
|
27
|
+
* @return {?}
|
|
28
|
+
*/
|
|
29
|
+
function (func) {
|
|
30
|
+
if (isPlatformServer(this._platformId)) {
|
|
31
|
+
return this.runInsideAngular(func);
|
|
32
|
+
}
|
|
33
|
+
return this.runOutsideAngular(func);
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @template T
|
|
37
|
+
* @param {?} func
|
|
38
|
+
* @return {?}
|
|
39
|
+
*/
|
|
40
|
+
DispatchOutsideZoneNgxsExecutionStrategy.prototype.leave = /**
|
|
41
|
+
* @template T
|
|
42
|
+
* @param {?} func
|
|
43
|
+
* @return {?}
|
|
44
|
+
*/
|
|
45
|
+
function (func) {
|
|
46
|
+
return this.runInsideAngular(func);
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @private
|
|
50
|
+
* @template T
|
|
51
|
+
* @param {?} func
|
|
52
|
+
* @return {?}
|
|
53
|
+
*/
|
|
54
|
+
DispatchOutsideZoneNgxsExecutionStrategy.prototype.runInsideAngular = /**
|
|
55
|
+
* @private
|
|
56
|
+
* @template T
|
|
57
|
+
* @param {?} func
|
|
58
|
+
* @return {?}
|
|
59
|
+
*/
|
|
60
|
+
function (func) {
|
|
61
|
+
if (NgZone.isInAngularZone()) {
|
|
62
|
+
return func();
|
|
63
|
+
}
|
|
64
|
+
return this._ngZone.run(func);
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* @private
|
|
68
|
+
* @template T
|
|
69
|
+
* @param {?} func
|
|
70
|
+
* @return {?}
|
|
71
|
+
*/
|
|
72
|
+
DispatchOutsideZoneNgxsExecutionStrategy.prototype.runOutsideAngular = /**
|
|
73
|
+
* @private
|
|
74
|
+
* @template T
|
|
75
|
+
* @param {?} func
|
|
76
|
+
* @return {?}
|
|
77
|
+
*/
|
|
78
|
+
function (func) {
|
|
79
|
+
if (NgZone.isInAngularZone()) {
|
|
80
|
+
return this._ngZone.runOutsideAngular(func);
|
|
81
|
+
}
|
|
82
|
+
return func();
|
|
83
|
+
};
|
|
84
|
+
DispatchOutsideZoneNgxsExecutionStrategy.decorators = [
|
|
85
|
+
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
86
|
+
];
|
|
87
|
+
/** @nocollapse */
|
|
88
|
+
DispatchOutsideZoneNgxsExecutionStrategy.ctorParameters = function () { return [
|
|
89
|
+
{ type: NgZone },
|
|
90
|
+
{ type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
|
|
91
|
+
]; };
|
|
92
|
+
/** @nocollapse */ DispatchOutsideZoneNgxsExecutionStrategy.ngInjectableDef = i0.defineInjectable({ factory: function DispatchOutsideZoneNgxsExecutionStrategy_Factory() { return new DispatchOutsideZoneNgxsExecutionStrategy(i0.inject(i0.NgZone), i0.inject(i0.PLATFORM_ID)); }, token: DispatchOutsideZoneNgxsExecutionStrategy, providedIn: "root" });
|
|
93
|
+
return DispatchOutsideZoneNgxsExecutionStrategy;
|
|
94
|
+
}());
|
|
95
|
+
export { DispatchOutsideZoneNgxsExecutionStrategy };
|
|
96
|
+
if (false) {
|
|
97
|
+
/**
|
|
98
|
+
* @type {?}
|
|
99
|
+
* @private
|
|
100
|
+
*/
|
|
101
|
+
DispatchOutsideZoneNgxsExecutionStrategy.prototype._ngZone;
|
|
102
|
+
/**
|
|
103
|
+
* @type {?}
|
|
104
|
+
* @private
|
|
105
|
+
*/
|
|
106
|
+
DispatchOutsideZoneNgxsExecutionStrategy.prototype._platformId;
|
|
107
|
+
}
|
|
108
|
+
// Caretaker note: this should exist as a separate function and not a class method,
|
|
109
|
+
// since class methods are not tree-shakable.
|
|
110
|
+
/**
|
|
111
|
+
* @param {?} ngZone
|
|
112
|
+
* @return {?}
|
|
113
|
+
*/
|
|
114
|
+
function verifyZoneIsNotNooped(ngZone) {
|
|
115
|
+
// `NoopNgZone` is not exposed publicly as it doesn't expect
|
|
116
|
+
// to be used outside of the core Angular code, thus we just have
|
|
117
|
+
// to check if the zone doesn't extend or instanceof `NgZone`.
|
|
118
|
+
if (ngZone instanceof NgZone) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
console.warn(getZoneWarningMessage());
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlzcGF0Y2gtb3V0c2lkZS16b25lLW5neHMtZXhlY3V0aW9uLXN0cmF0ZWd5LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5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jaGVjayBpZiB0aGUgem9uZSBkb2Vzbid0IGV4dGVuZCBvciBpbnN0YW5jZW9mIGBOZ1pvbmVgLlxuICBpZiAobmdab25lIGluc3RhbmNlb2YgTmdab25lKSB7XG4gICAgcmV0dXJuO1xuICB9XG5cbiAgY29uc29sZS53YXJuKGdldFpvbmVXYXJuaW5nTWVzc2FnZSgpKTtcbn1cbiJdfQ==
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { Injectable, Inject } from '@angular/core';
|
|
6
|
-
import { NGXS_EXECUTION_STRATEGY } from './symbols';
|
|
7
|
-
var InternalNgxsExecutionStrategy = /** @class */ (function () {
|
|
8
|
-
function InternalNgxsExecutionStrategy(_executionStrategy) {
|
|
9
|
-
this._executionStrategy = _executionStrategy;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @template T
|
|
13
|
-
* @param {?} func
|
|
14
|
-
* @return {?}
|
|
15
|
-
*/
|
|
16
|
-
InternalNgxsExecutionStrategy.prototype.enter = /**
|
|
17
|
-
* @template T
|
|
18
|
-
* @param {?} func
|
|
19
|
-
* @return {?}
|
|
20
|
-
*/
|
|
21
|
-
function (func) {
|
|
22
|
-
return this._executionStrategy.enter(func);
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* @template T
|
|
26
|
-
* @param {?} func
|
|
27
|
-
* @return {?}
|
|
28
|
-
*/
|
|
29
|
-
InternalNgxsExecutionStrategy.prototype.leave = /**
|
|
30
|
-
* @template T
|
|
31
|
-
* @param {?} func
|
|
32
|
-
* @return {?}
|
|
33
|
-
*/
|
|
34
|
-
function (func) {
|
|
35
|
-
return this._executionStrategy.leave(func);
|
|
36
|
-
};
|
|
37
|
-
InternalNgxsExecutionStrategy.decorators = [
|
|
38
|
-
{ type: Injectable }
|
|
39
|
-
];
|
|
40
|
-
/** @nocollapse */
|
|
41
|
-
InternalNgxsExecutionStrategy.ctorParameters = function () { return [
|
|
42
|
-
{ type: undefined, decorators: [{ type: Inject, args: [NGXS_EXECUTION_STRATEGY,] }] }
|
|
43
|
-
]; };
|
|
44
|
-
return InternalNgxsExecutionStrategy;
|
|
45
|
-
}());
|
|
46
|
-
export { InternalNgxsExecutionStrategy };
|
|
47
|
-
if (false) {
|
|
48
|
-
/**
|
|
49
|
-
* @type {?}
|
|
50
|
-
* @private
|
|
51
|
-
*/
|
|
52
|
-
InternalNgxsExecutionStrategy.prototype._executionStrategy;
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { Injectable, Inject } from '@angular/core';
|
|
6
|
+
import { NGXS_EXECUTION_STRATEGY } from './symbols';
|
|
7
|
+
var InternalNgxsExecutionStrategy = /** @class */ (function () {
|
|
8
|
+
function InternalNgxsExecutionStrategy(_executionStrategy) {
|
|
9
|
+
this._executionStrategy = _executionStrategy;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @template T
|
|
13
|
+
* @param {?} func
|
|
14
|
+
* @return {?}
|
|
15
|
+
*/
|
|
16
|
+
InternalNgxsExecutionStrategy.prototype.enter = /**
|
|
17
|
+
* @template T
|
|
18
|
+
* @param {?} func
|
|
19
|
+
* @return {?}
|
|
20
|
+
*/
|
|
21
|
+
function (func) {
|
|
22
|
+
return this._executionStrategy.enter(func);
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @template T
|
|
26
|
+
* @param {?} func
|
|
27
|
+
* @return {?}
|
|
28
|
+
*/
|
|
29
|
+
InternalNgxsExecutionStrategy.prototype.leave = /**
|
|
30
|
+
* @template T
|
|
31
|
+
* @param {?} func
|
|
32
|
+
* @return {?}
|
|
33
|
+
*/
|
|
34
|
+
function (func) {
|
|
35
|
+
return this._executionStrategy.leave(func);
|
|
36
|
+
};
|
|
37
|
+
InternalNgxsExecutionStrategy.decorators = [
|
|
38
|
+
{ type: Injectable }
|
|
39
|
+
];
|
|
40
|
+
/** @nocollapse */
|
|
41
|
+
InternalNgxsExecutionStrategy.ctorParameters = function () { return [
|
|
42
|
+
{ type: undefined, decorators: [{ type: Inject, args: [NGXS_EXECUTION_STRATEGY,] }] }
|
|
43
|
+
]; };
|
|
44
|
+
return InternalNgxsExecutionStrategy;
|
|
45
|
+
}());
|
|
46
|
+
export { InternalNgxsExecutionStrategy };
|
|
47
|
+
if (false) {
|
|
48
|
+
/**
|
|
49
|
+
* @type {?}
|
|
50
|
+
* @private
|
|
51
|
+
*/
|
|
52
|
+
InternalNgxsExecutionStrategy.prototype._executionStrategy;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJuYWwtbmd4cy1leGVjdXRpb24tc3RyYXRlZ3kuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4cy9zdG9yZS8iLCJzb3VyY2VzIjpbInNyYy9leGVjdXRpb24vaW50ZXJuYWwtbmd4cy1leGVjdXRpb24tc3RyYXRlZ3kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRW5ELE9BQU8sRUFBeUIsdUJBQXVCLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFFM0U7SUFFRSx1Q0FDMkMsa0JBQXlDO1FBQXpDLHVCQUFrQixHQUFsQixrQkFBa0IsQ0FBdUI7SUFDakYsQ0FBQzs7Ozs7O0lBRUosNkNBQUs7Ozs7O0lBQUwsVUFBUyxJQUFhO1FBQ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GZ1bmMpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { Injectable } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
var NoopNgxsExecutionStrategy = /** @class */ (function () {
|
|
8
|
-
function NoopNgxsExecutionStrategy() {
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @template T
|
|
12
|
-
* @param {?} func
|
|
13
|
-
* @return {?}
|
|
14
|
-
*/
|
|
15
|
-
NoopNgxsExecutionStrategy.prototype.enter = /**
|
|
16
|
-
* @template T
|
|
17
|
-
* @param {?} func
|
|
18
|
-
* @return {?}
|
|
19
|
-
*/
|
|
20
|
-
function (func) {
|
|
21
|
-
return func();
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @template T
|
|
25
|
-
* @param {?} func
|
|
26
|
-
* @return {?}
|
|
27
|
-
*/
|
|
28
|
-
NoopNgxsExecutionStrategy.prototype.leave = /**
|
|
29
|
-
* @template T
|
|
30
|
-
* @param {?} func
|
|
31
|
-
* @return {?}
|
|
32
|
-
*/
|
|
33
|
-
function (func) {
|
|
34
|
-
return func();
|
|
35
|
-
};
|
|
36
|
-
NoopNgxsExecutionStrategy.decorators = [
|
|
37
|
-
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
38
|
-
];
|
|
39
|
-
/** @nocollapse */ NoopNgxsExecutionStrategy.ngInjectableDef = i0.defineInjectable({ factory: function NoopNgxsExecutionStrategy_Factory() { return new NoopNgxsExecutionStrategy(); }, token: NoopNgxsExecutionStrategy, providedIn: "root" });
|
|
40
|
-
return NoopNgxsExecutionStrategy;
|
|
41
|
-
}());
|
|
42
|
-
export { NoopNgxsExecutionStrategy };
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { Injectable } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
var NoopNgxsExecutionStrategy = /** @class */ (function () {
|
|
8
|
+
function NoopNgxsExecutionStrategy() {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @template T
|
|
12
|
+
* @param {?} func
|
|
13
|
+
* @return {?}
|
|
14
|
+
*/
|
|
15
|
+
NoopNgxsExecutionStrategy.prototype.enter = /**
|
|
16
|
+
* @template T
|
|
17
|
+
* @param {?} func
|
|
18
|
+
* @return {?}
|
|
19
|
+
*/
|
|
20
|
+
function (func) {
|
|
21
|
+
return func();
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @template T
|
|
25
|
+
* @param {?} func
|
|
26
|
+
* @return {?}
|
|
27
|
+
*/
|
|
28
|
+
NoopNgxsExecutionStrategy.prototype.leave = /**
|
|
29
|
+
* @template T
|
|
30
|
+
* @param {?} func
|
|
31
|
+
* @return {?}
|
|
32
|
+
*/
|
|
33
|
+
function (func) {
|
|
34
|
+
return func();
|
|
35
|
+
};
|
|
36
|
+
NoopNgxsExecutionStrategy.decorators = [
|
|
37
|
+
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
38
|
+
];
|
|
39
|
+
/** @nocollapse */ NoopNgxsExecutionStrategy.ngInjectableDef = i0.defineInjectable({ factory: function NoopNgxsExecutionStrategy_Factory() { return new NoopNgxsExecutionStrategy(); }, token: NoopNgxsExecutionStrategy, providedIn: "root" });
|
|
40
|
+
return NoopNgxsExecutionStrategy;
|
|
41
|
+
}());
|
|
42
|
+
export { NoopNgxsExecutionStrategy };
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { InjectionToken, inject, INJECTOR, ɵglobal } from '@angular/core';
|
|
6
|
-
import { NoopNgxsExecutionStrategy } from './noop-ngxs-execution-strategy';
|
|
7
|
-
import { DispatchOutsideZoneNgxsExecutionStrategy } from './dispatch-outside-zone-ngxs-execution-strategy';
|
|
8
|
-
/**
|
|
9
|
-
* The strategy that might be provided by users through `options.executionStrategy`.
|
|
10
|
-
* @type {?}
|
|
11
|
-
*/
|
|
12
|
-
export var USER_PROVIDED_NGXS_EXECUTION_STRATEGY = new InjectionToken('USER_PROVIDED_NGXS_EXECUTION_STRATEGY');
|
|
13
|
-
/*
|
|
14
|
-
* Internal execution strategy injection token
|
|
15
|
-
*/
|
|
16
|
-
/** @type {?} */
|
|
17
|
-
export var NGXS_EXECUTION_STRATEGY = new InjectionToken('NGXS_EXECUTION_STRATEGY', {
|
|
18
|
-
providedIn: 'root',
|
|
19
|
-
factory: (/**
|
|
20
|
-
* @return {?}
|
|
21
|
-
*/
|
|
22
|
-
function () {
|
|
23
|
-
/** @type {?} */
|
|
24
|
-
var injector = inject(INJECTOR);
|
|
25
|
-
/** @type {?} */
|
|
26
|
-
var executionStrategy = injector.get(USER_PROVIDED_NGXS_EXECUTION_STRATEGY);
|
|
27
|
-
return executionStrategy
|
|
28
|
-
? injector.get(executionStrategy)
|
|
29
|
-
: injector.get(typeof ɵglobal.Zone !== 'undefined'
|
|
30
|
-
? DispatchOutsideZoneNgxsExecutionStrategy
|
|
31
|
-
: NoopNgxsExecutionStrategy);
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
/**
|
|
35
|
-
* @record
|
|
36
|
-
*/
|
|
37
|
-
export function NgxsExecutionStrategy() { }
|
|
38
|
-
if (false) {
|
|
39
|
-
/**
|
|
40
|
-
* @template T
|
|
41
|
-
* @param {?} func
|
|
42
|
-
* @return {?}
|
|
43
|
-
*/
|
|
44
|
-
NgxsExecutionStrategy.prototype.enter = function (func) { };
|
|
45
|
-
/**
|
|
46
|
-
* @template T
|
|
47
|
-
* @param {?} func
|
|
48
|
-
* @return {?}
|
|
49
|
-
*/
|
|
50
|
-
NgxsExecutionStrategy.prototype.leave = function (func) { };
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { InjectionToken, inject, INJECTOR, ɵglobal } from '@angular/core';
|
|
6
|
+
import { NoopNgxsExecutionStrategy } from './noop-ngxs-execution-strategy';
|
|
7
|
+
import { DispatchOutsideZoneNgxsExecutionStrategy } from './dispatch-outside-zone-ngxs-execution-strategy';
|
|
8
|
+
/**
|
|
9
|
+
* The strategy that might be provided by users through `options.executionStrategy`.
|
|
10
|
+
* @type {?}
|
|
11
|
+
*/
|
|
12
|
+
export var USER_PROVIDED_NGXS_EXECUTION_STRATEGY = new InjectionToken('USER_PROVIDED_NGXS_EXECUTION_STRATEGY');
|
|
13
|
+
/*
|
|
14
|
+
* Internal execution strategy injection token
|
|
15
|
+
*/
|
|
16
|
+
/** @type {?} */
|
|
17
|
+
export var NGXS_EXECUTION_STRATEGY = new InjectionToken('NGXS_EXECUTION_STRATEGY', {
|
|
18
|
+
providedIn: 'root',
|
|
19
|
+
factory: (/**
|
|
20
|
+
* @return {?}
|
|
21
|
+
*/
|
|
22
|
+
function () {
|
|
23
|
+
/** @type {?} */
|
|
24
|
+
var injector = inject(INJECTOR);
|
|
25
|
+
/** @type {?} */
|
|
26
|
+
var executionStrategy = injector.get(USER_PROVIDED_NGXS_EXECUTION_STRATEGY);
|
|
27
|
+
return executionStrategy
|
|
28
|
+
? injector.get(executionStrategy)
|
|
29
|
+
: injector.get(typeof ɵglobal.Zone !== 'undefined'
|
|
30
|
+
? DispatchOutsideZoneNgxsExecutionStrategy
|
|
31
|
+
: NoopNgxsExecutionStrategy);
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* @record
|
|
36
|
+
*/
|
|
37
|
+
export function NgxsExecutionStrategy() { }
|
|
38
|
+
if (false) {
|
|
39
|
+
/**
|
|
40
|
+
* @template T
|
|
41
|
+
* @param {?} func
|
|
42
|
+
* @return {?}
|
|
43
|
+
*/
|
|
44
|
+
NgxsExecutionStrategy.prototype.enter = function (func) { };
|
|
45
|
+
/**
|
|
46
|
+
* @template T
|
|
47
|
+
* @param {?} func
|
|
48
|
+
* @return {?}
|
|
49
|
+
*/
|
|
50
|
+
NgxsExecutionStrategy.prototype.leave = function (func) { };
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ltYm9scy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3hzL3N0b3JlLyIsInNvdXJjZXMiOlsic3JjL2V4ZWN1dGlvbi9zeW1ib2xzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQVEsT0FBTyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRWhGLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSx3Q0FBd0MsRUFBRSxNQUFNLGlEQUFpRCxDQUFDOzs7OztBQUszRyxNQUFNLEtBQU8scUNBQXFDLEdBQUcsSUFBSSxjQUFjLENBRXJFLHVDQUF1QyxDQUFDOzs7OztBQUsxQyxNQUFNLEtBQU8sdUJBQXVCLEdBQUcsSUFBSSxjQU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