@warp-drive-mirror/ember 5.6.0-alpha.15 → 5.6.0-alpha.18
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/declarations/-private/await.d.ts +81 -0
- package/declarations/-private/request.d.ts +346 -0
- package/declarations/index.d.ts +208 -209
- package/declarations/install.d.ts +5 -15
- package/dist/index.js +0 -1
- package/dist/install.js +0 -1
- package/package.json +5 -5
- package/declarations/-private/await.gts.d.ts +0 -77
- package/declarations/-private/await.gts.d.ts.map +0 -1
- package/declarations/-private/request.gts.d.ts +0 -358
- package/declarations/-private/request.gts.d.ts.map +0 -1
- package/declarations/index.d.ts.map +0 -1
- package/declarations/install.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/install.js.map +0 -1
package/declarations/index.d.ts
CHANGED
|
@@ -1,216 +1,215 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export { Request } from
|
|
47
|
-
export { Await, Throw } from
|
|
2
|
+
* <h3 align="center">⚛️ Data utilities for using <em style="color: lightgreen">Warp</em><strong style="color: magenta">Drive</strong> with 🐹 <em style="color: orange">Ember</em><em style="color: lightblue">.js</em></h3>
|
|
3
|
+
*
|
|
4
|
+
* ## Installation
|
|
5
|
+
*
|
|
6
|
+
* ```cli
|
|
7
|
+
* pnpm install @warp-drive-mirror/ember
|
|
8
|
+
* ```
|
|
9
|
+
*
|
|
10
|
+
* ## About
|
|
11
|
+
*
|
|
12
|
+
* This library provides reactive utilities for working with promises
|
|
13
|
+
* and requests, building over these primitives to provide functions
|
|
14
|
+
* and components that enable you to build robust performant apps with
|
|
15
|
+
* elegant control flow.
|
|
16
|
+
*
|
|
17
|
+
* ## Using .hbs
|
|
18
|
+
*
|
|
19
|
+
* The components and utils this library exports are intended for use with Glimmer
|
|
20
|
+
* Flavored JavaScript (gjs). To use them in handlebars files, your app should re-
|
|
21
|
+
* export them. For instance:
|
|
22
|
+
*
|
|
23
|
+
* *app/components/await.ts*
|
|
24
|
+
* ```ts
|
|
25
|
+
* export { Await as default } from '@warp-drive-mirror/ember';
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ```hbs
|
|
29
|
+
* <Await @promise={{this.getTheData}}></Await>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* This allows renaming them to avoid conflicts just by using a different filename
|
|
33
|
+
* if desired:
|
|
34
|
+
*
|
|
35
|
+
* *app/components/warp-drive-await.ts*
|
|
36
|
+
* ```ts
|
|
37
|
+
* export { Await as default } from '@warp-drive-mirror/ember';
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* ```hbs
|
|
41
|
+
* <WarpDriveAwait @promise={{this.getTheData}}></WarpDriveAwait>
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @module
|
|
45
|
+
*/
|
|
46
|
+
export { Request } from "./-private/request.js";
|
|
47
|
+
export { Await, Throw } from "./-private/await.js";
|
|
48
48
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
49
|
+
* PromiseState provides a reactive wrapper for a promise which allows you write declarative
|
|
50
|
+
* code around a promise's control flow. It is useful in both Template and JavaScript contexts,
|
|
51
|
+
* allowing you to quickly derive behaviors and data from pending, error and success states.
|
|
52
|
+
*
|
|
53
|
+
* ```ts
|
|
54
|
+
* interface PromiseState<T = unknown, E = unknown> {
|
|
55
|
+
* isPending: boolean;
|
|
56
|
+
* isSuccess: boolean;
|
|
57
|
+
* isError: boolean;
|
|
58
|
+
* result: T | null;
|
|
59
|
+
* error: E | null;
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* To get the state of a promise, use `getPromiseState`.
|
|
64
|
+
*
|
|
65
|
+
* @class PromiseState
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
68
|
/**
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
69
|
+
* Returns a reactive state-machine for the provided promise or awaitable.
|
|
70
|
+
*
|
|
71
|
+
* Repeat calls to `getPromiseState` with the same promise will return the same state object
|
|
72
|
+
* making is safe and easy to use in templates and JavaScript code to produce reactive
|
|
73
|
+
* behaviors around promises.
|
|
74
|
+
*
|
|
75
|
+
* `getPromiseState` can be used in both JavaScript and Template contexts.
|
|
76
|
+
*
|
|
77
|
+
* ```ts
|
|
78
|
+
* import { getPromiseState } from '@warp-drive-mirror/ember';
|
|
79
|
+
*
|
|
80
|
+
* const state = getPromiseState(promise);
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* For instance, we could write a getter on a component that updates whenever
|
|
84
|
+
* the promise state advances or the promise changes, by combining the function
|
|
85
|
+
* with the use of `@cached`
|
|
86
|
+
*
|
|
87
|
+
* ```ts
|
|
88
|
+
* class Component {
|
|
89
|
+
* @cached
|
|
90
|
+
* get title() {
|
|
91
|
+
* const state = getPromiseState(this.args.request);
|
|
92
|
+
* if (state.isPending) {
|
|
93
|
+
* return 'loading...';
|
|
94
|
+
* }
|
|
95
|
+
* if (state.isError) { return null; }
|
|
96
|
+
* return state.result.title;
|
|
97
|
+
* }
|
|
98
|
+
* }
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* Or in a template as a helper:
|
|
102
|
+
*
|
|
103
|
+
* ```gjs
|
|
104
|
+
* import { getPromiseState } from '@warp-drive-mirror/ember';
|
|
105
|
+
*
|
|
106
|
+
* <template>
|
|
107
|
+
* {{#let (getPromiseState @request) as |state|}}
|
|
108
|
+
* {{#if state.isPending}} <Spinner />
|
|
109
|
+
* {{else if state.isError}} <ErrorForm @error={{state.error}} />
|
|
110
|
+
* {{else}}
|
|
111
|
+
* <h1>{{state.result.title}}</h1>
|
|
112
|
+
* {{/if}}
|
|
113
|
+
* {{/let}}
|
|
114
|
+
* </template>
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* If looking to use in a template, consider also the `<Await />` component.
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
export { getPromiseState } from
|
|
119
|
+
* @public
|
|
120
|
+
* @param {Promise<T> | Awaitable<T, E>} promise
|
|
121
|
+
* @return {PromiseState<T, E>}
|
|
122
|
+
*/
|
|
123
|
+
export { getPromiseState } from "@warp-drive-mirror/core/store/-private";
|
|
124
124
|
/**
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
* Lazily consumes the stream of a request, providing a number of
|
|
126
|
+
* reactive properties that can be used to build UIs that respond
|
|
127
|
+
* to the progress of a request.
|
|
128
|
+
*
|
|
129
|
+
* @class RequestLoadingState
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
132
|
/**
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
133
|
+
* RequestState extends the concept of PromiseState to provide a reactive
|
|
134
|
+
* wrapper for a request `Future` which allows you write declarative code
|
|
135
|
+
* around a Future's control flow.
|
|
136
|
+
*
|
|
137
|
+
* It is useful in both Template and JavaScript contexts, allowing you
|
|
138
|
+
* to quickly derive behaviors and data from pending, error and success
|
|
139
|
+
* states.
|
|
140
|
+
*
|
|
141
|
+
* The key difference between a Promise and a Future is that Futures provide
|
|
142
|
+
* access to a stream of their content, the identity of the request (if any)
|
|
143
|
+
* as well as the ability to attempt to abort the request.
|
|
144
|
+
*
|
|
145
|
+
* ```ts
|
|
146
|
+
* interface Future<T> extends Promise<T>> {
|
|
147
|
+
* getStream(): Promise<ReadableStream>;
|
|
148
|
+
* abort(): void;
|
|
149
|
+
* lid: StableDocumentIdentifier | null;
|
|
150
|
+
* }
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* These additional APIs allow us to craft even richer state experiences.
|
|
154
|
+
*
|
|
155
|
+
* To get the state of a request, use `getRequestState`.
|
|
156
|
+
*
|
|
157
|
+
* @class RequestState
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
160
|
/**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
export { getRequestState, type RequestLoadingState } from
|
|
216
|
-
//# sourceMappingURL=index.d.ts.map
|
|
161
|
+
*
|
|
162
|
+
*
|
|
163
|
+
* `getRequestState` can be used in both JavaScript and Template contexts.
|
|
164
|
+
*
|
|
165
|
+
* ```ts
|
|
166
|
+
* import { getRequestState } from '@warp-drive-mirror/ember';
|
|
167
|
+
*
|
|
168
|
+
* const state = getRequestState(future);
|
|
169
|
+
* ```
|
|
170
|
+
*
|
|
171
|
+
* For instance, we could write a getter on a component that updates whenever
|
|
172
|
+
* the request state advances or the future changes, by combining the function
|
|
173
|
+
* with the use of `@cached`
|
|
174
|
+
*
|
|
175
|
+
* ```ts
|
|
176
|
+
* class Component {
|
|
177
|
+
* @cached
|
|
178
|
+
* get title() {
|
|
179
|
+
* const state = getRequestState(this.args.request);
|
|
180
|
+
* if (state.isPending) {
|
|
181
|
+
* return 'loading...';
|
|
182
|
+
* }
|
|
183
|
+
* if (state.isError) { return null; }
|
|
184
|
+
* return state.result.title;
|
|
185
|
+
* }
|
|
186
|
+
* }
|
|
187
|
+
* ```
|
|
188
|
+
*
|
|
189
|
+
* Or in a template as a helper:
|
|
190
|
+
*
|
|
191
|
+
* ```gjs
|
|
192
|
+
* import { getRequestState } from '@warp-drive-mirror/ember';
|
|
193
|
+
*
|
|
194
|
+
* <template>
|
|
195
|
+
* {{#let (getRequestState @request) as |state|}}
|
|
196
|
+
* {{#if state.isPending}}
|
|
197
|
+
* <Spinner />
|
|
198
|
+
* {{else if state.isError}}
|
|
199
|
+
* <ErrorForm @error={{state.error}} />
|
|
200
|
+
* {{else}}
|
|
201
|
+
* <h1>{{state.result.title}}</h1>
|
|
202
|
+
* {{/if}}
|
|
203
|
+
* {{/let}}
|
|
204
|
+
* </template>
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
207
|
+
* If looking to use in a template, consider also the `<Request />` component
|
|
208
|
+
* which offers a numbe of additional capabilities for requests *beyond* what
|
|
209
|
+
* `RequestState` provides.
|
|
210
|
+
*
|
|
211
|
+
* @public
|
|
212
|
+
* @param future
|
|
213
|
+
* @return {RequestState}
|
|
214
|
+
*/
|
|
215
|
+
export { getRequestState, type RequestLoadingState } from "@warp-drive-mirror/core/store/-private";
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type Tag = ReturnType<typeof tagForProperty>;
|
|
1
|
+
import type { SignalHooks } from "@warp-drive-mirror/core/store/-private";
|
|
3
2
|
export declare function buildSignalConfig(options: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}):
|
|
8
|
-
createSignal(obj: object, key: string | symbol): Tag | [Tag, Tag, Tag];
|
|
9
|
-
consumeSignal(signal: Tag | [Tag, Tag, Tag]): void;
|
|
10
|
-
notifySignal(signal: Tag | [Tag, Tag, Tag]): void;
|
|
11
|
-
createMemo: <F>(object: object, key: string | symbol, fn: () => F) => (() => F);
|
|
12
|
-
willSyncFlushWatchers: () => boolean;
|
|
13
|
-
waitFor: <K>(promise: Promise<K>) => Promise<K>;
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=install.d.ts.map
|
|
3
|
+
wellknown: {
|
|
4
|
+
Array: symbol | string;
|
|
5
|
+
};
|
|
6
|
+
}): SignalHooks;
|
package/dist/index.js
CHANGED
package/dist/install.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive-mirror/ember",
|
|
3
3
|
"description": "Data bindings and utilities for Ember applications using WarpDrive",
|
|
4
|
-
"version": "5.6.0-alpha.
|
|
4
|
+
"version": "5.6.0-alpha.18",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
7
7
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@embroider/macros": "^1.16.12",
|
|
41
|
-
"@warp-drive-mirror/core": "5.6.0-alpha.
|
|
41
|
+
"@warp-drive-mirror/core": "5.6.0-alpha.18"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"ember-provide-consume-context": {
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"@embroider/addon-dev": "^7.1.3",
|
|
61
61
|
"@ember/test-helpers": "5.2.0",
|
|
62
62
|
"@ember/test-waiters": "^4.1.0",
|
|
63
|
-
"@warp-drive/internal-config": "5.6.0-alpha.
|
|
64
|
-
"@warp-drive-mirror/core": "5.6.0-alpha.
|
|
63
|
+
"@warp-drive/internal-config": "5.6.0-alpha.18",
|
|
64
|
+
"@warp-drive-mirror/core": "5.6.0-alpha.18",
|
|
65
65
|
"babel-plugin-ember-template-compilation": "^2.4.1",
|
|
66
66
|
"ember-template-imports": "^4.3.0",
|
|
67
67
|
"ember-source": "~6.3.0",
|
|
68
68
|
"rollup": "^4.40.0",
|
|
69
69
|
"typescript": "^5.8.3",
|
|
70
|
-
"vite": "^
|
|
70
|
+
"vite": "^7.0.0",
|
|
71
71
|
"ember-provide-consume-context": "^0.7.0"
|
|
72
72
|
},
|
|
73
73
|
"volta": {
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type Owner from '@ember/owner';
|
|
2
|
-
import Component from '@glimmer/component';
|
|
3
|
-
import type { Awaitable } from '@warp-drive-mirror/core/request';
|
|
4
|
-
export declare const and: (x: unknown, y: unknown) => boolean;
|
|
5
|
-
interface ThrowSignature<E = Error | string | object> {
|
|
6
|
-
Args: {
|
|
7
|
-
error: E;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The `<Throw />` component is used to throw an error in a template.
|
|
12
|
-
*
|
|
13
|
-
* That's all it does. So don't use it unless the application should
|
|
14
|
-
* throw an error if it reaches this point in the template.
|
|
15
|
-
*
|
|
16
|
-
* ```hbs
|
|
17
|
-
* <Throw @error={{anError}} />
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @class <Throw />
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export declare class Throw<T> extends Component<ThrowSignature<T>> {
|
|
24
|
-
constructor(owner: Owner, args: ThrowSignature<T>['Args']);
|
|
25
|
-
}
|
|
26
|
-
interface AwaitSignature<T, E = Error | string | object> {
|
|
27
|
-
Args: {
|
|
28
|
-
promise: Promise<T> | Awaitable<T, E>;
|
|
29
|
-
};
|
|
30
|
-
Blocks: {
|
|
31
|
-
pending: [];
|
|
32
|
-
error: [error: E];
|
|
33
|
-
success: [value: T];
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* The <Await /> component allow you to utilize reactive control flow
|
|
38
|
-
* for asynchronous states in your application.
|
|
39
|
-
*
|
|
40
|
-
* Await is ideal for handling "boundaries", outside which some state is
|
|
41
|
-
* still allowed to be unresolved and within which it MUST be resolved.
|
|
42
|
-
*
|
|
43
|
-
* ```gjs
|
|
44
|
-
* import { Await } from '@warp-drive-mirror/ember';
|
|
45
|
-
*
|
|
46
|
-
* <template>
|
|
47
|
-
* <Await @promise={{@request}}>
|
|
48
|
-
* <:pending>
|
|
49
|
-
* <Spinner />
|
|
50
|
-
* </:pending>
|
|
51
|
-
*
|
|
52
|
-
* <:error as |error|>
|
|
53
|
-
* <ErrorForm @error={{error}} />
|
|
54
|
-
* </:error>
|
|
55
|
-
*
|
|
56
|
-
* <:success as |result|>
|
|
57
|
-
* <h1>{{result.title}}</h1>
|
|
58
|
-
* </:success>
|
|
59
|
-
* </Await>
|
|
60
|
-
* </template>
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* The <Await /> component requires that error states are properly handled.
|
|
64
|
-
*
|
|
65
|
-
* If no error block is provided and the promise rejects, the error will
|
|
66
|
-
* be thrown.
|
|
67
|
-
*
|
|
68
|
-
* @class <Await />
|
|
69
|
-
* @public
|
|
70
|
-
*/
|
|
71
|
-
export declare class Await<T, E> extends Component<AwaitSignature<T, E>> {
|
|
72
|
-
get state(): Readonly<import("@warp-drive-mirror/core/store/-private").PromiseState<T, E>>;
|
|
73
|
-
get error(): E;
|
|
74
|
-
get result(): T;
|
|
75
|
-
}
|
|
76
|
-
export {};
|
|
77
|
-
//# sourceMappingURL=await.gts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"await.gts.d.ts","sourceRoot":"","sources":["../../src/-private/await.gts"],"names":[],"mappings":"AAAA,OA4GO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAG1D,eAAO,MAAM,GAAG,GAAI,GAAG,OAAO,EAAE,GAAG,OAAO,YAAoB,CAAC;AAC/D,UAAU,cAAc,CAAC,CAAC,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM;IAClD,IAAI,EAAE;QACJ,KAAK,EAAE,CAAC,CAAC;KACV,CAAC;CACH;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,KAAK,CAAC,CAAC,CAAE,SAAQ,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;gBAC5C,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;CAU1D;AAED,UAAU,cAAc,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM;IACrD,IAAI,EAAE;QACJ,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACvC,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;QACZ,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAClB,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;KACrB,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBAAa,KAAK,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,SAAS,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9D,IAAI,KAAK,2EAER;IAED,IAAI,KAAK,IACoB,CAAC,CAC7B;IAED,IAAI,MAAM,IACoB,CAAC,CAC9B;CAyBF"}
|