@ngxs/router-plugin 3.7.3-dev.master-10b0883 → 3.7.4
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 +4 -4
- package/bundles/ngxs-router-plugin.umd.js +850 -850
- package/bundles/ngxs-router-plugin.umd.js.map +1 -1
- package/bundles/ngxs-router-plugin.umd.min.js.map +1 -1
- package/esm2015/index.js +9 -9
- package/esm2015/ngxs-router-plugin.js +8 -8
- package/esm2015/src/public_api.js +9 -9
- package/esm2015/src/router.actions.js +172 -172
- package/esm2015/src/router.module.js +25 -25
- package/esm2015/src/router.state.js +463 -463
- package/esm2015/src/serializer.js +72 -72
- package/esm5/index.js +9 -9
- package/esm5/ngxs-router-plugin.js +8 -8
- package/esm5/src/public_api.js +9 -9
- package/esm5/src/router.actions.js +227 -227
- package/esm5/src/router.module.js +32 -32
- package/esm5/src/router.state.js +552 -552
- package/esm5/src/serializer.js +98 -98
- package/fesm2015/ngxs-router-plugin.js +714 -714
- package/fesm2015/ngxs-router-plugin.js.map +1 -1
- package/fesm5/ngxs-router-plugin.js +859 -859
- package/fesm5/ngxs-router-plugin.js.map +1 -1
- package/index.d.ts +4 -4
- package/ngxs-router-plugin.d.ts +5 -5
- package/package.json +3 -3
- package/src/public_api.d.ts +4 -4
- package/src/router.actions.d.ts +63 -63
- package/src/router.module.d.ts +4 -4
- package/src/router.state.d.ts +60 -60
- package/src/serializer.d.ts +12 -12
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Public event api of the router
|
|
7
|
-
*/
|
|
8
|
-
export class Navigate {
|
|
9
|
-
/**
|
|
10
|
-
* @param {?} path
|
|
11
|
-
* @param {?=} queryParams
|
|
12
|
-
* @param {?=} extras
|
|
13
|
-
*/
|
|
14
|
-
constructor(path, queryParams, extras) {
|
|
15
|
-
this.path = path;
|
|
16
|
-
this.queryParams = queryParams;
|
|
17
|
-
this.extras = extras;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @return {?}
|
|
21
|
-
*/
|
|
22
|
-
static get type() {
|
|
23
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
24
|
-
return '[Router] Navigate';
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
if (false) {
|
|
28
|
-
/** @type {?} */
|
|
29
|
-
Navigate.prototype.path;
|
|
30
|
-
/** @type {?} */
|
|
31
|
-
Navigate.prototype.queryParams;
|
|
32
|
-
/** @type {?} */
|
|
33
|
-
Navigate.prototype.extras;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* Angular Routers internal state events
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
/**
|
|
41
|
-
* An action dispatched when the router navigates.
|
|
42
|
-
* @template T
|
|
43
|
-
*/
|
|
44
|
-
export class RouterNavigation {
|
|
45
|
-
/**
|
|
46
|
-
* @param {?} routerState
|
|
47
|
-
* @param {?} event
|
|
48
|
-
* @param {?=} trigger
|
|
49
|
-
*/
|
|
50
|
-
constructor(routerState, event, trigger = 'none') {
|
|
51
|
-
this.routerState = routerState;
|
|
52
|
-
this.event = event;
|
|
53
|
-
this.trigger = trigger;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* @return {?}
|
|
57
|
-
*/
|
|
58
|
-
static get type() {
|
|
59
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
60
|
-
return '[Router] RouterNavigation';
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
if (false) {
|
|
64
|
-
/** @type {?} */
|
|
65
|
-
RouterNavigation.prototype.routerState;
|
|
66
|
-
/** @type {?} */
|
|
67
|
-
RouterNavigation.prototype.event;
|
|
68
|
-
/** @type {?} */
|
|
69
|
-
RouterNavigation.prototype.trigger;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* An action dispatched when the router cancel navigation.
|
|
73
|
-
* @template T, V
|
|
74
|
-
*/
|
|
75
|
-
export class RouterCancel {
|
|
76
|
-
/**
|
|
77
|
-
* @param {?} routerState
|
|
78
|
-
* @param {?} storeState
|
|
79
|
-
* @param {?} event
|
|
80
|
-
* @param {?=} trigger
|
|
81
|
-
*/
|
|
82
|
-
constructor(routerState, storeState, event, trigger = 'none') {
|
|
83
|
-
this.routerState = routerState;
|
|
84
|
-
this.storeState = storeState;
|
|
85
|
-
this.event = event;
|
|
86
|
-
this.trigger = trigger;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @return {?}
|
|
90
|
-
*/
|
|
91
|
-
static get type() {
|
|
92
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
93
|
-
return '[Router] RouterCancel';
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
if (false) {
|
|
97
|
-
/** @type {?} */
|
|
98
|
-
RouterCancel.prototype.routerState;
|
|
99
|
-
/** @type {?} */
|
|
100
|
-
RouterCancel.prototype.storeState;
|
|
101
|
-
/** @type {?} */
|
|
102
|
-
RouterCancel.prototype.event;
|
|
103
|
-
/** @type {?} */
|
|
104
|
-
RouterCancel.prototype.trigger;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* An action dispatched when the router errors.
|
|
108
|
-
* @template T, V
|
|
109
|
-
*/
|
|
110
|
-
export class RouterError {
|
|
111
|
-
/**
|
|
112
|
-
* @param {?} routerState
|
|
113
|
-
* @param {?} storeState
|
|
114
|
-
* @param {?} event
|
|
115
|
-
* @param {?=} trigger
|
|
116
|
-
*/
|
|
117
|
-
constructor(routerState, storeState, event, trigger = 'none') {
|
|
118
|
-
this.routerState = routerState;
|
|
119
|
-
this.storeState = storeState;
|
|
120
|
-
this.event = event;
|
|
121
|
-
this.trigger = trigger;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* @return {?}
|
|
125
|
-
*/
|
|
126
|
-
static get type() {
|
|
127
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
128
|
-
return '[Router] RouterError';
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
if (false) {
|
|
132
|
-
/** @type {?} */
|
|
133
|
-
RouterError.prototype.routerState;
|
|
134
|
-
/** @type {?} */
|
|
135
|
-
RouterError.prototype.storeState;
|
|
136
|
-
/** @type {?} */
|
|
137
|
-
RouterError.prototype.event;
|
|
138
|
-
/** @type {?} */
|
|
139
|
-
RouterError.prototype.trigger;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* An action dispatched when the `ResolveEnd` event is triggered.
|
|
143
|
-
* @template T
|
|
144
|
-
*/
|
|
145
|
-
export class RouterDataResolved {
|
|
146
|
-
/**
|
|
147
|
-
* @param {?} routerState
|
|
148
|
-
* @param {?} event
|
|
149
|
-
* @param {?=} trigger
|
|
150
|
-
*/
|
|
151
|
-
constructor(routerState, event, trigger = 'none') {
|
|
152
|
-
this.routerState = routerState;
|
|
153
|
-
this.event = event;
|
|
154
|
-
this.trigger = trigger;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* @return {?}
|
|
158
|
-
*/
|
|
159
|
-
static get type() {
|
|
160
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
161
|
-
return '[Router] RouterDataResolved';
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
if (false) {
|
|
165
|
-
/** @type {?} */
|
|
166
|
-
RouterDataResolved.prototype.routerState;
|
|
167
|
-
/** @type {?} */
|
|
168
|
-
RouterDataResolved.prototype.event;
|
|
169
|
-
/** @type {?} */
|
|
170
|
-
RouterDataResolved.prototype.trigger;
|
|
171
|
-
}
|
|
172
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Public event api of the router
|
|
7
|
+
*/
|
|
8
|
+
export class Navigate {
|
|
9
|
+
/**
|
|
10
|
+
* @param {?} path
|
|
11
|
+
* @param {?=} queryParams
|
|
12
|
+
* @param {?=} extras
|
|
13
|
+
*/
|
|
14
|
+
constructor(path, queryParams, extras) {
|
|
15
|
+
this.path = path;
|
|
16
|
+
this.queryParams = queryParams;
|
|
17
|
+
this.extras = extras;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @return {?}
|
|
21
|
+
*/
|
|
22
|
+
static get type() {
|
|
23
|
+
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
24
|
+
return '[Router] Navigate';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (false) {
|
|
28
|
+
/** @type {?} */
|
|
29
|
+
Navigate.prototype.path;
|
|
30
|
+
/** @type {?} */
|
|
31
|
+
Navigate.prototype.queryParams;
|
|
32
|
+
/** @type {?} */
|
|
33
|
+
Navigate.prototype.extras;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* Angular Routers internal state events
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* An action dispatched when the router navigates.
|
|
42
|
+
* @template T
|
|
43
|
+
*/
|
|
44
|
+
export class RouterNavigation {
|
|
45
|
+
/**
|
|
46
|
+
* @param {?} routerState
|
|
47
|
+
* @param {?} event
|
|
48
|
+
* @param {?=} trigger
|
|
49
|
+
*/
|
|
50
|
+
constructor(routerState, event, trigger = 'none') {
|
|
51
|
+
this.routerState = routerState;
|
|
52
|
+
this.event = event;
|
|
53
|
+
this.trigger = trigger;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @return {?}
|
|
57
|
+
*/
|
|
58
|
+
static get type() {
|
|
59
|
+
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
60
|
+
return '[Router] RouterNavigation';
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if (false) {
|
|
64
|
+
/** @type {?} */
|
|
65
|
+
RouterNavigation.prototype.routerState;
|
|
66
|
+
/** @type {?} */
|
|
67
|
+
RouterNavigation.prototype.event;
|
|
68
|
+
/** @type {?} */
|
|
69
|
+
RouterNavigation.prototype.trigger;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* An action dispatched when the router cancel navigation.
|
|
73
|
+
* @template T, V
|
|
74
|
+
*/
|
|
75
|
+
export class RouterCancel {
|
|
76
|
+
/**
|
|
77
|
+
* @param {?} routerState
|
|
78
|
+
* @param {?} storeState
|
|
79
|
+
* @param {?} event
|
|
80
|
+
* @param {?=} trigger
|
|
81
|
+
*/
|
|
82
|
+
constructor(routerState, storeState, event, trigger = 'none') {
|
|
83
|
+
this.routerState = routerState;
|
|
84
|
+
this.storeState = storeState;
|
|
85
|
+
this.event = event;
|
|
86
|
+
this.trigger = trigger;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @return {?}
|
|
90
|
+
*/
|
|
91
|
+
static get type() {
|
|
92
|
+
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
93
|
+
return '[Router] RouterCancel';
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (false) {
|
|
97
|
+
/** @type {?} */
|
|
98
|
+
RouterCancel.prototype.routerState;
|
|
99
|
+
/** @type {?} */
|
|
100
|
+
RouterCancel.prototype.storeState;
|
|
101
|
+
/** @type {?} */
|
|
102
|
+
RouterCancel.prototype.event;
|
|
103
|
+
/** @type {?} */
|
|
104
|
+
RouterCancel.prototype.trigger;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* An action dispatched when the router errors.
|
|
108
|
+
* @template T, V
|
|
109
|
+
*/
|
|
110
|
+
export class RouterError {
|
|
111
|
+
/**
|
|
112
|
+
* @param {?} routerState
|
|
113
|
+
* @param {?} storeState
|
|
114
|
+
* @param {?} event
|
|
115
|
+
* @param {?=} trigger
|
|
116
|
+
*/
|
|
117
|
+
constructor(routerState, storeState, event, trigger = 'none') {
|
|
118
|
+
this.routerState = routerState;
|
|
119
|
+
this.storeState = storeState;
|
|
120
|
+
this.event = event;
|
|
121
|
+
this.trigger = trigger;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @return {?}
|
|
125
|
+
*/
|
|
126
|
+
static get type() {
|
|
127
|
+
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
128
|
+
return '[Router] RouterError';
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (false) {
|
|
132
|
+
/** @type {?} */
|
|
133
|
+
RouterError.prototype.routerState;
|
|
134
|
+
/** @type {?} */
|
|
135
|
+
RouterError.prototype.storeState;
|
|
136
|
+
/** @type {?} */
|
|
137
|
+
RouterError.prototype.event;
|
|
138
|
+
/** @type {?} */
|
|
139
|
+
RouterError.prototype.trigger;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* An action dispatched when the `ResolveEnd` event is triggered.
|
|
143
|
+
* @template T
|
|
144
|
+
*/
|
|
145
|
+
export class RouterDataResolved {
|
|
146
|
+
/**
|
|
147
|
+
* @param {?} routerState
|
|
148
|
+
* @param {?} event
|
|
149
|
+
* @param {?=} trigger
|
|
150
|
+
*/
|
|
151
|
+
constructor(routerState, event, trigger = 'none') {
|
|
152
|
+
this.routerState = routerState;
|
|
153
|
+
this.event = event;
|
|
154
|
+
this.trigger = trigger;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @return {?}
|
|
158
|
+
*/
|
|
159
|
+
static get type() {
|
|
160
|
+
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
161
|
+
return '[Router] RouterDataResolved';
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
if (false) {
|
|
165
|
+
/** @type {?} */
|
|
166
|
+
RouterDataResolved.prototype.routerState;
|
|
167
|
+
/** @type {?} */
|
|
168
|
+
RouterDataResolved.prototype.event;
|
|
169
|
+
/** @type {?} */
|
|
170
|
+
RouterDataResolved.prototype.trigger;
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGVyLmFjdGlvbnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4cy9yb3V0ZXItcGx1Z2luLyIsInNvdXJjZXMiOlsic3JjL3JvdXRlci5hY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFlQSxNQUFNLE9BQU8sUUFBUTs7Ozs7O0lBS25CLFlBQ1MsSUFBVyxFQUNYLFdBQW9CLEVBQ3BCLE1BQXlCO1FBRnpCLFNBQUksR0FBSixJQUFJLENBQU87UUFDWCxnQkFBVyxHQUFYLFdBQVcsQ0FBUztRQUNwQixXQUFNLEdBQU4sTUFBTSxDQUFtQjtJQUMvQixDQUFDOzs7O0lBUkosTUFBTSxLQUFLLElBQUk7UUFDYixzSUFBc0k7UUFDdEksT0FBTyxtQkFBbUIsQ0FBQztJQUM3QixDQUFDO0NBTUY7OztJQUpHLHdCQUFrQjs7SUFDbEIsK0JBQTJCOztJQUMzQiwwQkFBZ0M7Ozs7Ozs7Ozs7O0FBYXBDLE1BQU0sT0FBTyxnQkFBZ0I7Ozs7OztJQUszQixZQUNTLFdBQWMsRUFDZCxLQUF1QixFQUN2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iBBbiB1bmlvbiB0eXBlIG9mIHJvdXRlciBhY3Rpb25zLlxyXG4gKi9cclxuZXhwb3J0IHR5cGUgUm91dGVyQWN0aW9uPFQsIFYgPSBSb3V0ZXJTdGF0ZVNuYXBzaG90PiA9XHJcbiAgfCBSb3V0ZXJOYXZpZ2F0aW9uPFY+XHJcbiAgfCBSb3V0ZXJDYW5jZWw8VCwgVj5cclxuICB8IFJvdXRlckVycm9yPFQsIFY+XHJcbiAgfCBSb3V0ZXJEYXRhUmVzb2x2ZWQ8Vj47XHJcbiJdfQ==
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { NgxsModule } from '@ngxs/store';
|
|
7
|
-
import { RouterState } from './router.state';
|
|
8
|
-
import { DefaultRouterStateSerializer, RouterStateSerializer } from './serializer';
|
|
9
|
-
export class NgxsRouterPluginModule {
|
|
10
|
-
/**
|
|
11
|
-
* @return {?}
|
|
12
|
-
*/
|
|
13
|
-
static forRoot() {
|
|
14
|
-
return {
|
|
15
|
-
ngModule: NgxsRouterPluginModule,
|
|
16
|
-
providers: [{ provide: RouterStateSerializer, useClass: DefaultRouterStateSerializer }]
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
NgxsRouterPluginModule.decorators = [
|
|
21
|
-
{ type: NgModule, args: [{
|
|
22
|
-
imports: [NgxsModule.forFeature([RouterState])]
|
|
23
|
-
},] }
|
|
24
|
-
];
|
|
25
|
-
//# 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 { NgModule } from '@angular/core';
|
|
6
|
+
import { NgxsModule } from '@ngxs/store';
|
|
7
|
+
import { RouterState } from './router.state';
|
|
8
|
+
import { DefaultRouterStateSerializer, RouterStateSerializer } from './serializer';
|
|
9
|
+
export class NgxsRouterPluginModule {
|
|
10
|
+
/**
|
|
11
|
+
* @return {?}
|
|
12
|
+
*/
|
|
13
|
+
static forRoot() {
|
|
14
|
+
return {
|
|
15
|
+
ngModule: NgxsRouterPluginModule,
|
|
16
|
+
providers: [{ provide: RouterStateSerializer, useClass: DefaultRouterStateSerializer }]
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
NgxsRouterPluginModule.decorators = [
|
|
21
|
+
{ type: NgModule, args: [{
|
|
22
|
+
imports: [NgxsModule.forFeature([RouterState])]
|
|
23
|
+
},] }
|
|
24
|
+
];
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGVyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3hzL3JvdXRlci1wbHVnaW4vIiwic291cmNlcyI6WyJzcmMvcm91dGVyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUF1QixRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDOUQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUV6QyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLDRCQUE0QixFQUFFLHFCQUFxQixFQUFFLE1BQU0sY0FBYyxDQUFDO0FBS25GLE1BQU0sT0FBTyxzQkFBc0I7Ozs7SUFDakMsTUFBTSxDQUFDLE9BQU87UUFDWixPQUFPO1lBQ0wsUUFBUSxFQUFFLHNCQUFzQjtZQUNoQyxTQUFTLEVBQUUsQ0FBQyxFQ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