@everymatrix/user-deposit-withdrawal 1.13.11

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.
Files changed (45) hide show
  1. package/dist/cjs/index-3568d1cc.js +1111 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +21 -0
  4. package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +107 -0
  5. package/dist/cjs/user-deposit-withdrawal.cjs.js +19 -0
  6. package/dist/collection/collection-manifest.json +12 -0
  7. package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.css +5 -0
  8. package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +368 -0
  9. package/dist/collection/index.js +1 -0
  10. package/dist/collection/utils/utils.js +3 -0
  11. package/dist/components/index.d.ts +26 -0
  12. package/dist/components/index.js +1 -0
  13. package/dist/components/user-deposit-withdrawal.d.ts +11 -0
  14. package/dist/components/user-deposit-withdrawal.js +137 -0
  15. package/dist/esm/index-363130bb.js +1085 -0
  16. package/dist/esm/index.js +1 -0
  17. package/dist/esm/loader.js +17 -0
  18. package/dist/esm/polyfills/core-js.js +11 -0
  19. package/dist/esm/polyfills/css-shim.js +1 -0
  20. package/dist/esm/polyfills/dom.js +79 -0
  21. package/dist/esm/polyfills/es5-html-element.js +1 -0
  22. package/dist/esm/polyfills/index.js +34 -0
  23. package/dist/esm/polyfills/system.js +6 -0
  24. package/dist/esm/user-deposit-withdrawal.entry.js +103 -0
  25. package/dist/esm/user-deposit-withdrawal.js +17 -0
  26. package/dist/index.cjs.js +1 -0
  27. package/dist/index.js +1 -0
  28. package/dist/stencil.config.js +22 -0
  29. package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/user-deposit-withdrawal/.stencil/packages/user-deposit-withdrawal/stencil.config.d.ts +2 -0
  30. package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +50 -0
  31. package/dist/types/components.d.ts +68 -0
  32. package/dist/types/index.d.ts +1 -0
  33. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  34. package/dist/types/utils/utils.d.ts +1 -0
  35. package/dist/user-deposit-withdrawal/index.esm.js +0 -0
  36. package/dist/user-deposit-withdrawal/p-05851c56.entry.js +1 -0
  37. package/dist/user-deposit-withdrawal/p-ed11cb75.js +1 -0
  38. package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -0
  39. package/loader/cdn.js +3 -0
  40. package/loader/index.cjs.js +3 -0
  41. package/loader/index.d.ts +12 -0
  42. package/loader/index.es2017.js +3 -0
  43. package/loader/index.js +4 -0
  44. package/loader/package.json +10 -0
  45. package/package.json +19 -0
@@ -0,0 +1,1085 @@
1
+ const NAMESPACE = 'user-deposit-withdrawal';
2
+
3
+ let scopeId;
4
+ let hostTagName;
5
+ let isSvgMode = false;
6
+ let queuePending = false;
7
+ const win = typeof window !== 'undefined' ? window : {};
8
+ const doc = win.document || { head: {} };
9
+ const plt = {
10
+ $flags$: 0,
11
+ $resourcesUrl$: '',
12
+ jmp: (h) => h(),
13
+ raf: (h) => requestAnimationFrame(h),
14
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
15
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
16
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
17
+ };
18
+ const promiseResolve = (v) => Promise.resolve(v);
19
+ const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
20
+ try {
21
+ new CSSStyleSheet();
22
+ return typeof new CSSStyleSheet().replace === 'function';
23
+ }
24
+ catch (e) { }
25
+ return false;
26
+ })()
27
+ ;
28
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
29
+ const createTime = (fnName, tagName = '') => {
30
+ {
31
+ return () => {
32
+ return;
33
+ };
34
+ }
35
+ };
36
+ const uniqueTime = (key, measureText) => {
37
+ {
38
+ return () => {
39
+ return;
40
+ };
41
+ }
42
+ };
43
+ const rootAppliedStyles = new WeakMap();
44
+ const registerStyle = (scopeId, cssText, allowCS) => {
45
+ let style = styles.get(scopeId);
46
+ if (supportsConstructibleStylesheets && allowCS) {
47
+ style = (style || new CSSStyleSheet());
48
+ style.replace(cssText);
49
+ }
50
+ else {
51
+ style = cssText;
52
+ }
53
+ styles.set(scopeId, style);
54
+ };
55
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
56
+ let scopeId = getScopeId(cmpMeta);
57
+ let style = styles.get(scopeId);
58
+ // if an element is NOT connected then getRootNode() will return the wrong root node
59
+ // so the fallback is to always use the document for the root node in those cases
60
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
61
+ if (style) {
62
+ if (typeof style === 'string') {
63
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
64
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
65
+ let styleElm;
66
+ if (!appliedStyles) {
67
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
68
+ }
69
+ if (!appliedStyles.has(scopeId)) {
70
+ {
71
+ {
72
+ styleElm = doc.createElement('style');
73
+ styleElm.innerHTML = style;
74
+ }
75
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
76
+ }
77
+ if (appliedStyles) {
78
+ appliedStyles.add(scopeId);
79
+ }
80
+ }
81
+ }
82
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
83
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
84
+ }
85
+ }
86
+ return scopeId;
87
+ };
88
+ const attachStyles = (hostRef) => {
89
+ const cmpMeta = hostRef.$cmpMeta$;
90
+ const elm = hostRef.$hostElement$;
91
+ const flags = cmpMeta.$flags$;
92
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
93
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
94
+ if (flags & 10 /* needsScopedEncapsulation */) {
95
+ // only required when we're NOT using native shadow dom (slot)
96
+ // or this browser doesn't support native shadow dom
97
+ // and this host element was NOT created with SSR
98
+ // let's pick out the inner content for slot projection
99
+ // create a node to represent where the original
100
+ // content was first placed, which is useful later on
101
+ // DOM WRITE!!
102
+ elm['s-sc'] = scopeId;
103
+ elm.classList.add(scopeId + '-h');
104
+ }
105
+ endAttachStyles();
106
+ };
107
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
108
+ /**
109
+ * Default style mode id
110
+ */
111
+ /**
112
+ * Reusable empty obj/array
113
+ * Don't add values to these!!
114
+ */
115
+ const EMPTY_OBJ = {};
116
+ const isDef = (v) => v != null;
117
+ const isComplexType = (o) => {
118
+ // https://jsperf.com/typeof-fn-object/5
119
+ o = typeof o;
120
+ return o === 'object' || o === 'function';
121
+ };
122
+ /**
123
+ * Production h() function based on Preact by
124
+ * Jason Miller (@developit)
125
+ * Licensed under the MIT License
126
+ * https://github.com/developit/preact/blob/master/LICENSE
127
+ *
128
+ * Modified for Stencil's compiler and vdom
129
+ */
130
+ // const stack: any[] = [];
131
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
132
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
133
+ const h = (nodeName, vnodeData, ...children) => {
134
+ let child = null;
135
+ let simple = false;
136
+ let lastSimple = false;
137
+ let vNodeChildren = [];
138
+ const walk = (c) => {
139
+ for (let i = 0; i < c.length; i++) {
140
+ child = c[i];
141
+ if (Array.isArray(child)) {
142
+ walk(child);
143
+ }
144
+ else if (child != null && typeof child !== 'boolean') {
145
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
146
+ child = String(child);
147
+ }
148
+ if (simple && lastSimple) {
149
+ // If the previous child was simple (string), we merge both
150
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
151
+ }
152
+ else {
153
+ // Append a new vNode, if it's text, we create a text vNode
154
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
155
+ }
156
+ lastSimple = simple;
157
+ }
158
+ }
159
+ };
160
+ walk(children);
161
+ const vnode = newVNode(nodeName, null);
162
+ vnode.$attrs$ = vnodeData;
163
+ if (vNodeChildren.length > 0) {
164
+ vnode.$children$ = vNodeChildren;
165
+ }
166
+ return vnode;
167
+ };
168
+ const newVNode = (tag, text) => {
169
+ const vnode = {
170
+ $flags$: 0,
171
+ $tag$: tag,
172
+ $text$: text,
173
+ $elm$: null,
174
+ $children$: null,
175
+ };
176
+ {
177
+ vnode.$attrs$ = null;
178
+ }
179
+ return vnode;
180
+ };
181
+ const Host = {};
182
+ const isHost = (node) => node && node.$tag$ === Host;
183
+ /**
184
+ * Production setAccessor() function based on Preact by
185
+ * Jason Miller (@developit)
186
+ * Licensed under the MIT License
187
+ * https://github.com/developit/preact/blob/master/LICENSE
188
+ *
189
+ * Modified for Stencil's compiler and vdom
190
+ */
191
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
192
+ if (oldValue !== newValue) {
193
+ let isProp = isMemberInElement(elm, memberName);
194
+ memberName.toLowerCase();
195
+ {
196
+ // Set property if it exists and it's not a SVG
197
+ const isComplex = isComplexType(newValue);
198
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
199
+ try {
200
+ if (!elm.tagName.includes('-')) {
201
+ let n = newValue == null ? '' : newValue;
202
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
203
+ if (memberName === 'list') {
204
+ isProp = false;
205
+ }
206
+ else if (oldValue == null || elm[memberName] != n) {
207
+ elm[memberName] = n;
208
+ }
209
+ }
210
+ else {
211
+ elm[memberName] = newValue;
212
+ }
213
+ }
214
+ catch (e) { }
215
+ }
216
+ if (newValue == null || newValue === false) {
217
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
218
+ {
219
+ elm.removeAttribute(memberName);
220
+ }
221
+ }
222
+ }
223
+ else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
224
+ newValue = newValue === true ? '' : newValue;
225
+ {
226
+ elm.setAttribute(memberName, newValue);
227
+ }
228
+ }
229
+ }
230
+ }
231
+ };
232
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
233
+ // if the element passed in is a shadow root, which is a document fragment
234
+ // then we want to be adding attrs/props to the shadow root's "host" element
235
+ // if it's not a shadow root, then we add attrs/props to the same element
236
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
237
+ ? newVnode.$elm$.host
238
+ : newVnode.$elm$;
239
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
240
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
241
+ {
242
+ // remove attributes no longer present on the vnode by setting them to undefined
243
+ for (memberName in oldVnodeAttrs) {
244
+ if (!(memberName in newVnodeAttrs)) {
245
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
246
+ }
247
+ }
248
+ }
249
+ // add new & update changed attributes
250
+ for (memberName in newVnodeAttrs) {
251
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
252
+ }
253
+ };
254
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
255
+ // tslint:disable-next-line: prefer-const
256
+ let newVNode = newParentVNode.$children$[childIndex];
257
+ let i = 0;
258
+ let elm;
259
+ let childNode;
260
+ {
261
+ // create element
262
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$tag$));
263
+ // add css classes, attrs, props, listeners, etc.
264
+ {
265
+ updateElement(null, newVNode, isSvgMode);
266
+ }
267
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
268
+ // if there is a scopeId and this is the initial render
269
+ // then let's add the scopeId as a css class
270
+ elm.classList.add((elm['s-si'] = scopeId));
271
+ }
272
+ if (newVNode.$children$) {
273
+ for (i = 0; i < newVNode.$children$.length; ++i) {
274
+ // create the node
275
+ childNode = createElm(oldParentVNode, newVNode, i);
276
+ // return node could have been null
277
+ if (childNode) {
278
+ // append our new node
279
+ elm.appendChild(childNode);
280
+ }
281
+ }
282
+ }
283
+ }
284
+ return elm;
285
+ };
286
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
287
+ let containerElm = (parentElm);
288
+ let childNode;
289
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
290
+ containerElm = containerElm.shadowRoot;
291
+ }
292
+ for (; startIdx <= endIdx; ++startIdx) {
293
+ if (vnodes[startIdx]) {
294
+ childNode = createElm(null, parentVNode, startIdx);
295
+ if (childNode) {
296
+ vnodes[startIdx].$elm$ = childNode;
297
+ containerElm.insertBefore(childNode, before);
298
+ }
299
+ }
300
+ }
301
+ };
302
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
303
+ for (; startIdx <= endIdx; ++startIdx) {
304
+ if ((vnode = vnodes[startIdx])) {
305
+ elm = vnode.$elm$;
306
+ // remove the vnode's element from the dom
307
+ elm.remove();
308
+ }
309
+ }
310
+ };
311
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
312
+ let oldStartIdx = 0;
313
+ let newStartIdx = 0;
314
+ let oldEndIdx = oldCh.length - 1;
315
+ let oldStartVnode = oldCh[0];
316
+ let oldEndVnode = oldCh[oldEndIdx];
317
+ let newEndIdx = newCh.length - 1;
318
+ let newStartVnode = newCh[0];
319
+ let newEndVnode = newCh[newEndIdx];
320
+ let node;
321
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
322
+ if (oldStartVnode == null) {
323
+ // Vnode might have been moved left
324
+ oldStartVnode = oldCh[++oldStartIdx];
325
+ }
326
+ else if (oldEndVnode == null) {
327
+ oldEndVnode = oldCh[--oldEndIdx];
328
+ }
329
+ else if (newStartVnode == null) {
330
+ newStartVnode = newCh[++newStartIdx];
331
+ }
332
+ else if (newEndVnode == null) {
333
+ newEndVnode = newCh[--newEndIdx];
334
+ }
335
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
336
+ patch(oldStartVnode, newStartVnode);
337
+ oldStartVnode = oldCh[++oldStartIdx];
338
+ newStartVnode = newCh[++newStartIdx];
339
+ }
340
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
341
+ patch(oldEndVnode, newEndVnode);
342
+ oldEndVnode = oldCh[--oldEndIdx];
343
+ newEndVnode = newCh[--newEndIdx];
344
+ }
345
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
346
+ patch(oldStartVnode, newEndVnode);
347
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
348
+ oldStartVnode = oldCh[++oldStartIdx];
349
+ newEndVnode = newCh[--newEndIdx];
350
+ }
351
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
352
+ patch(oldEndVnode, newStartVnode);
353
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
354
+ oldEndVnode = oldCh[--oldEndIdx];
355
+ newStartVnode = newCh[++newStartIdx];
356
+ }
357
+ else {
358
+ {
359
+ // new element
360
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
361
+ newStartVnode = newCh[++newStartIdx];
362
+ }
363
+ if (node) {
364
+ {
365
+ oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
366
+ }
367
+ }
368
+ }
369
+ }
370
+ if (oldStartIdx > oldEndIdx) {
371
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
372
+ }
373
+ else if (newStartIdx > newEndIdx) {
374
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
375
+ }
376
+ };
377
+ const isSameVnode = (vnode1, vnode2) => {
378
+ // compare if two vnode to see if they're "technically" the same
379
+ // need to have the same element tag, and same key to be the same
380
+ if (vnode1.$tag$ === vnode2.$tag$) {
381
+ return true;
382
+ }
383
+ return false;
384
+ };
385
+ const patch = (oldVNode, newVNode) => {
386
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
387
+ const oldChildren = oldVNode.$children$;
388
+ const newChildren = newVNode.$children$;
389
+ {
390
+ // element node
391
+ {
392
+ {
393
+ // either this is the first render of an element OR it's an update
394
+ // AND we already know it's possible it could have changed
395
+ // this updates the element's css classes, attrs, props, listeners, etc.
396
+ updateElement(oldVNode, newVNode, isSvgMode);
397
+ }
398
+ }
399
+ if (oldChildren !== null && newChildren !== null) {
400
+ // looks like there's child vnodes for both the old and new vnodes
401
+ updateChildren(elm, oldChildren, newVNode, newChildren);
402
+ }
403
+ else if (newChildren !== null) {
404
+ // add the new vnode children
405
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
406
+ }
407
+ else if (oldChildren !== null) {
408
+ // no new child vnodes, but there are old child vnodes to remove
409
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
410
+ }
411
+ }
412
+ };
413
+ const renderVdom = (hostRef, renderFnResults) => {
414
+ const hostElm = hostRef.$hostElement$;
415
+ const cmpMeta = hostRef.$cmpMeta$;
416
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
417
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
418
+ hostTagName = hostElm.tagName;
419
+ if (cmpMeta.$attrsToReflect$) {
420
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
421
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
422
+ }
423
+ rootVnode.$tag$ = null;
424
+ rootVnode.$flags$ |= 4 /* isHost */;
425
+ hostRef.$vnode$ = rootVnode;
426
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
427
+ {
428
+ scopeId = hostElm['s-sc'];
429
+ }
430
+ // synchronous patch
431
+ patch(oldVNode, rootVnode);
432
+ };
433
+ /**
434
+ * Helper function to create & dispatch a custom Event on a provided target
435
+ * @param elm the target of the Event
436
+ * @param name the name to give the custom Event
437
+ * @param opts options for configuring a custom Event
438
+ * @returns the custom Event
439
+ */
440
+ const emitEvent = (elm, name, opts) => {
441
+ const ev = plt.ce(name, opts);
442
+ elm.dispatchEvent(ev);
443
+ return ev;
444
+ };
445
+ const attachToAncestor = (hostRef, ancestorComponent) => {
446
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
447
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
448
+ }
449
+ };
450
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
451
+ {
452
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
453
+ }
454
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
455
+ hostRef.$flags$ |= 512 /* needsRerender */;
456
+ return;
457
+ }
458
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
459
+ // there is no ancestor component or the ancestor component
460
+ // has already fired off its lifecycle update then
461
+ // fire off the initial update
462
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
463
+ return writeTask(dispatch) ;
464
+ };
465
+ const dispatchHooks = (hostRef, isInitialLoad) => {
466
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
467
+ const instance = hostRef.$lazyInstance$ ;
468
+ let promise;
469
+ if (isInitialLoad) {
470
+ {
471
+ promise = safeCall(instance, 'componentWillLoad');
472
+ }
473
+ }
474
+ endSchedule();
475
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
476
+ };
477
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
478
+ // updateComponent
479
+ const elm = hostRef.$hostElement$;
480
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
481
+ const rc = elm['s-rc'];
482
+ if (isInitialLoad) {
483
+ // DOM WRITE!
484
+ attachStyles(hostRef);
485
+ }
486
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
487
+ {
488
+ callRender(hostRef, instance);
489
+ }
490
+ if (rc) {
491
+ // ok, so turns out there are some child host elements
492
+ // waiting on this parent element to load
493
+ // let's fire off all update callbacks waiting
494
+ rc.map((cb) => cb());
495
+ elm['s-rc'] = undefined;
496
+ }
497
+ endRender();
498
+ endUpdate();
499
+ {
500
+ const childrenPromises = elm['s-p'];
501
+ const postUpdate = () => postUpdateComponent(hostRef);
502
+ if (childrenPromises.length === 0) {
503
+ postUpdate();
504
+ }
505
+ else {
506
+ Promise.all(childrenPromises).then(postUpdate);
507
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
508
+ childrenPromises.length = 0;
509
+ }
510
+ }
511
+ };
512
+ const callRender = (hostRef, instance, elm) => {
513
+ try {
514
+ instance = instance.render() ;
515
+ {
516
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
517
+ }
518
+ {
519
+ hostRef.$flags$ |= 2 /* hasRendered */;
520
+ }
521
+ {
522
+ {
523
+ // looks like we've got child nodes to render into this host element
524
+ // or we need to update the css class/attrs on the host element
525
+ // DOM WRITE!
526
+ {
527
+ renderVdom(hostRef, instance);
528
+ }
529
+ }
530
+ }
531
+ }
532
+ catch (e) {
533
+ consoleError(e, hostRef.$hostElement$);
534
+ }
535
+ return null;
536
+ };
537
+ const postUpdateComponent = (hostRef) => {
538
+ const tagName = hostRef.$cmpMeta$.$tagName$;
539
+ const elm = hostRef.$hostElement$;
540
+ const endPostUpdate = createTime('postUpdate', tagName);
541
+ const instance = hostRef.$lazyInstance$ ;
542
+ const ancestorComponent = hostRef.$ancestorComponent$;
543
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
544
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
545
+ {
546
+ // DOM WRITE!
547
+ addHydratedFlag(elm);
548
+ }
549
+ {
550
+ safeCall(instance, 'componentDidLoad');
551
+ }
552
+ endPostUpdate();
553
+ {
554
+ hostRef.$onReadyResolve$(elm);
555
+ if (!ancestorComponent) {
556
+ appDidLoad();
557
+ }
558
+ }
559
+ }
560
+ else {
561
+ endPostUpdate();
562
+ }
563
+ // load events fire from bottom to top
564
+ // the deepest elements load first then bubbles up
565
+ {
566
+ if (hostRef.$onRenderResolve$) {
567
+ hostRef.$onRenderResolve$();
568
+ hostRef.$onRenderResolve$ = undefined;
569
+ }
570
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
571
+ nextTick(() => scheduleUpdate(hostRef, false));
572
+ }
573
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
574
+ }
575
+ // ( •_•)
576
+ // ( •_•)>⌐■-■
577
+ // (⌐■_■)
578
+ };
579
+ const appDidLoad = (who) => {
580
+ // on appload
581
+ // we have finish the first big initial render
582
+ {
583
+ addHydratedFlag(doc.documentElement);
584
+ }
585
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
586
+ };
587
+ const safeCall = (instance, method, arg) => {
588
+ if (instance && instance[method]) {
589
+ try {
590
+ return instance[method](arg);
591
+ }
592
+ catch (e) {
593
+ consoleError(e);
594
+ }
595
+ }
596
+ return undefined;
597
+ };
598
+ const then = (promise, thenFn) => {
599
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
600
+ };
601
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
602
+ ;
603
+ /**
604
+ * Parse a new property value for a given property type.
605
+ *
606
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
607
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
608
+ * 1. `any`, the type given to `propValue` in the function signature
609
+ * 2. the type stored from `propType`.
610
+ *
611
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
612
+ *
613
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
614
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
615
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
616
+ * ```tsx
617
+ * <my-cmp prop-val={0}></my-cmp>
618
+ * ```
619
+ *
620
+ * HTML prop values on the other hand, will always a string
621
+ *
622
+ * @param propValue the new value to coerce to some type
623
+ * @param propType the type of the prop, expressed as a binary number
624
+ * @returns the parsed/coerced value
625
+ */
626
+ const parsePropertyValue = (propValue, propType) => {
627
+ // ensure this value is of the correct prop type
628
+ if (propValue != null && !isComplexType(propValue)) {
629
+ if (propType & 1 /* String */) {
630
+ // could have been passed as a number or boolean
631
+ // but we still want it as a string
632
+ return String(propValue);
633
+ }
634
+ // redundant return here for better minification
635
+ return propValue;
636
+ }
637
+ // not sure exactly what type we want
638
+ // so no need to change to a different type
639
+ return propValue;
640
+ };
641
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
642
+ const setValue = (ref, propName, newVal, cmpMeta) => {
643
+ // check our new property value against our internal value
644
+ const hostRef = getHostRef(ref);
645
+ const elm = hostRef.$hostElement$ ;
646
+ const oldVal = hostRef.$instanceValues$.get(propName);
647
+ const flags = hostRef.$flags$;
648
+ const instance = hostRef.$lazyInstance$ ;
649
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
650
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
651
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
652
+ const didValueChange = newVal !== oldVal && !areBothNaN;
653
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
654
+ // gadzooks! the property's value has changed!!
655
+ // set our new value!
656
+ hostRef.$instanceValues$.set(propName, newVal);
657
+ if (instance) {
658
+ // get an array of method names of watch functions to call
659
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
660
+ const watchMethods = cmpMeta.$watchers$[propName];
661
+ if (watchMethods) {
662
+ // this instance is watching for when this property changed
663
+ watchMethods.map((watchMethodName) => {
664
+ try {
665
+ // fire off each of the watch methods that are watching this property
666
+ instance[watchMethodName](newVal, oldVal, propName);
667
+ }
668
+ catch (e) {
669
+ consoleError(e, elm);
670
+ }
671
+ });
672
+ }
673
+ }
674
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
675
+ // looks like this value actually changed, so we've got work to do!
676
+ // but only if we've already rendered, otherwise just chill out
677
+ // queue that we need to do an update, but don't worry about queuing
678
+ // up millions cuz this function ensures it only runs once
679
+ scheduleUpdate(hostRef, false);
680
+ }
681
+ }
682
+ }
683
+ };
684
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
685
+ if (cmpMeta.$members$) {
686
+ if (Cstr.watchers) {
687
+ cmpMeta.$watchers$ = Cstr.watchers;
688
+ }
689
+ // It's better to have a const than two Object.entries()
690
+ const members = Object.entries(cmpMeta.$members$);
691
+ const prototype = Cstr.prototype;
692
+ members.map(([memberName, [memberFlags]]) => {
693
+ if ((memberFlags & 31 /* Prop */ ||
694
+ ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
695
+ // proxyComponent - prop
696
+ Object.defineProperty(prototype, memberName, {
697
+ get() {
698
+ // proxyComponent, get value
699
+ return getValue(this, memberName);
700
+ },
701
+ set(newValue) {
702
+ // proxyComponent, set value
703
+ setValue(this, memberName, newValue, cmpMeta);
704
+ },
705
+ configurable: true,
706
+ enumerable: true,
707
+ });
708
+ }
709
+ });
710
+ if ((flags & 1 /* isElementConstructor */)) {
711
+ const attrNameToPropName = new Map();
712
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
713
+ plt.jmp(() => {
714
+ const propName = attrNameToPropName.get(attrName);
715
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
716
+ // in the case where an attribute was set inline.
717
+ // ```html
718
+ // <my-component some-attribute="some-value"></my-component>
719
+ // ```
720
+ //
721
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
722
+ // programmatically changes it before it has been upgraded as shown below:
723
+ //
724
+ // ```html
725
+ // <!-- this component has _not_ been upgraded yet -->
726
+ // <my-component id="test" some-attribute="some-value"></my-component>
727
+ // <script>
728
+ // // grab non-upgraded component
729
+ // el = document.querySelector("#test");
730
+ // el.someAttribute = "another-value";
731
+ // // upgrade component
732
+ // customElements.define('my-component', MyComponent);
733
+ // </script>
734
+ // ```
735
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
736
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
737
+ // to the value that was set inline i.e. "some-value" from above example. When
738
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
739
+ //
740
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
741
+ // by connectedCallback as this attributeChangedCallback will not fire.
742
+ //
743
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
744
+ //
745
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
746
+ // properties here given that this goes against best practices outlined here
747
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
748
+ if (this.hasOwnProperty(propName)) {
749
+ newValue = this[propName];
750
+ delete this[propName];
751
+ }
752
+ else if (prototype.hasOwnProperty(propName) &&
753
+ typeof this[propName] === 'number' &&
754
+ this[propName] == newValue) {
755
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
756
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
757
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
758
+ return;
759
+ }
760
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
761
+ });
762
+ };
763
+ // create an array of attributes to observe
764
+ // and also create a map of html attribute name to js property name
765
+ Cstr.observedAttributes = members
766
+ .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
767
+ .map(([propName, m]) => {
768
+ const attrName = m[1] || propName;
769
+ attrNameToPropName.set(attrName, propName);
770
+ if (m[0] & 512 /* ReflectAttr */) {
771
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
772
+ }
773
+ return attrName;
774
+ });
775
+ }
776
+ }
777
+ return Cstr;
778
+ };
779
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
780
+ // initializeComponent
781
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
782
+ {
783
+ // we haven't initialized this element yet
784
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
785
+ // lazy loaded components
786
+ // request the component's implementation to be
787
+ // wired up with the host element
788
+ Cstr = loadModule(cmpMeta);
789
+ if (Cstr.then) {
790
+ // Await creates a micro-task avoid if possible
791
+ const endLoad = uniqueTime();
792
+ Cstr = await Cstr;
793
+ endLoad();
794
+ }
795
+ if (!Cstr.isProxied) {
796
+ // we've never proxied this Constructor before
797
+ // let's add the getters/setters to its prototype before
798
+ // the first time we create an instance of the implementation
799
+ {
800
+ cmpMeta.$watchers$ = Cstr.watchers;
801
+ }
802
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
803
+ Cstr.isProxied = true;
804
+ }
805
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
806
+ // ok, time to construct the instance
807
+ // but let's keep track of when we start and stop
808
+ // so that the getters/setters don't incorrectly step on data
809
+ {
810
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
811
+ }
812
+ // construct the lazy-loaded component implementation
813
+ // passing the hostRef is very important during
814
+ // construction in order to directly wire together the
815
+ // host element and the lazy-loaded instance
816
+ try {
817
+ new Cstr(hostRef);
818
+ }
819
+ catch (e) {
820
+ consoleError(e);
821
+ }
822
+ {
823
+ hostRef.$flags$ &= ~8 /* isConstructingInstance */;
824
+ }
825
+ {
826
+ hostRef.$flags$ |= 128 /* isWatchReady */;
827
+ }
828
+ endNewInstance();
829
+ }
830
+ if (Cstr.style) {
831
+ // this component has styles but we haven't registered them yet
832
+ let style = Cstr.style;
833
+ const scopeId = getScopeId(cmpMeta);
834
+ if (!styles.has(scopeId)) {
835
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
836
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
837
+ endRegisterStyles();
838
+ }
839
+ }
840
+ }
841
+ // we've successfully created a lazy instance
842
+ const ancestorComponent = hostRef.$ancestorComponent$;
843
+ const schedule = () => scheduleUpdate(hostRef, true);
844
+ if (ancestorComponent && ancestorComponent['s-rc']) {
845
+ // this is the initial load and this component it has an ancestor component
846
+ // but the ancestor component has NOT fired its will update lifecycle yet
847
+ // so let's just cool our jets and wait for the ancestor to continue first
848
+ // this will get fired off when the ancestor component
849
+ // finally gets around to rendering its lazy self
850
+ // fire off the initial update
851
+ ancestorComponent['s-rc'].push(schedule);
852
+ }
853
+ else {
854
+ schedule();
855
+ }
856
+ };
857
+ const connectedCallback = (elm) => {
858
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
859
+ const hostRef = getHostRef(elm);
860
+ const cmpMeta = hostRef.$cmpMeta$;
861
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
862
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
863
+ // first time this component has connected
864
+ hostRef.$flags$ |= 1 /* hasConnected */;
865
+ {
866
+ // find the first ancestor component (if there is one) and register
867
+ // this component as one of the actively loading child components for its ancestor
868
+ let ancestorComponent = elm;
869
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
870
+ // climb up the ancestors looking for the first
871
+ // component that hasn't finished its lifecycle update yet
872
+ if (ancestorComponent['s-p']) {
873
+ // we found this components first ancestor component
874
+ // keep a reference to this component's ancestor component
875
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
876
+ break;
877
+ }
878
+ }
879
+ }
880
+ // Lazy properties
881
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
882
+ if (cmpMeta.$members$) {
883
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
884
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
885
+ const value = elm[memberName];
886
+ delete elm[memberName];
887
+ elm[memberName] = value;
888
+ }
889
+ });
890
+ }
891
+ {
892
+ initializeComponent(elm, hostRef, cmpMeta);
893
+ }
894
+ }
895
+ endConnected();
896
+ }
897
+ };
898
+ const disconnectedCallback = (elm) => {
899
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
900
+ const hostRef = getHostRef(elm);
901
+ const instance = hostRef.$lazyInstance$ ;
902
+ {
903
+ safeCall(instance, 'disconnectedCallback');
904
+ }
905
+ }
906
+ };
907
+ const bootstrapLazy = (lazyBundles, options = {}) => {
908
+ const endBootstrap = createTime();
909
+ const cmpTags = [];
910
+ const exclude = options.exclude || [];
911
+ const customElements = win.customElements;
912
+ const head = doc.head;
913
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
914
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
915
+ const deferredConnectedCallbacks = [];
916
+ let appLoadFallback;
917
+ let isBootstrapping = true;
918
+ Object.assign(plt, options);
919
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
920
+ lazyBundles.map((lazyBundle) => {
921
+ lazyBundle[1].map((compactMeta) => {
922
+ const cmpMeta = {
923
+ $flags$: compactMeta[0],
924
+ $tagName$: compactMeta[1],
925
+ $members$: compactMeta[2],
926
+ $listeners$: compactMeta[3],
927
+ };
928
+ {
929
+ cmpMeta.$members$ = compactMeta[2];
930
+ }
931
+ {
932
+ cmpMeta.$attrsToReflect$ = [];
933
+ }
934
+ {
935
+ cmpMeta.$watchers$ = {};
936
+ }
937
+ const tagName = cmpMeta.$tagName$;
938
+ const HostElement = class extends HTMLElement {
939
+ // StencilLazyHost
940
+ constructor(self) {
941
+ // @ts-ignore
942
+ super(self);
943
+ self = this;
944
+ registerHost(self, cmpMeta);
945
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
946
+ // this component is using shadow dom
947
+ // and this browser supports shadow dom
948
+ // add the read-only property "shadowRoot" to the host element
949
+ // adding the shadow root build conditionals to minimize runtime
950
+ {
951
+ {
952
+ self.attachShadow({ mode: 'open' });
953
+ }
954
+ }
955
+ }
956
+ }
957
+ connectedCallback() {
958
+ if (appLoadFallback) {
959
+ clearTimeout(appLoadFallback);
960
+ appLoadFallback = null;
961
+ }
962
+ if (isBootstrapping) {
963
+ // connectedCallback will be processed once all components have been registered
964
+ deferredConnectedCallbacks.push(this);
965
+ }
966
+ else {
967
+ plt.jmp(() => connectedCallback(this));
968
+ }
969
+ }
970
+ disconnectedCallback() {
971
+ plt.jmp(() => disconnectedCallback(this));
972
+ }
973
+ componentOnReady() {
974
+ return getHostRef(this).$onReadyPromise$;
975
+ }
976
+ };
977
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
978
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
979
+ cmpTags.push(tagName);
980
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
981
+ }
982
+ });
983
+ });
984
+ {
985
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
986
+ visibilityStyle.setAttribute('data-styles', '');
987
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
988
+ }
989
+ // Process deferred connectedCallbacks now all components have been registered
990
+ isBootstrapping = false;
991
+ if (deferredConnectedCallbacks.length) {
992
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
993
+ }
994
+ else {
995
+ {
996
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
997
+ }
998
+ }
999
+ // Fallback appLoad event
1000
+ endBootstrap();
1001
+ };
1002
+ const hostRefs = new WeakMap();
1003
+ const getHostRef = (ref) => hostRefs.get(ref);
1004
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1005
+ const registerHost = (elm, cmpMeta) => {
1006
+ const hostRef = {
1007
+ $flags$: 0,
1008
+ $hostElement$: elm,
1009
+ $cmpMeta$: cmpMeta,
1010
+ $instanceValues$: new Map(),
1011
+ };
1012
+ {
1013
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1014
+ elm['s-p'] = [];
1015
+ elm['s-rc'] = [];
1016
+ }
1017
+ return hostRefs.set(elm, hostRef);
1018
+ };
1019
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1020
+ const consoleError = (e, el) => (0, console.error)(e, el);
1021
+ const cmpModules = /*@__PURE__*/ new Map();
1022
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1023
+ // loadModuleImport
1024
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1025
+ const bundleId = cmpMeta.$lazyBundleId$;
1026
+ const module = cmpModules.get(bundleId) ;
1027
+ if (module) {
1028
+ return module[exportName];
1029
+ }
1030
+ return import(
1031
+ /* webpackInclude: /\.entry\.js$/ */
1032
+ /* webpackExclude: /\.system\.entry\.js$/ */
1033
+ /* webpackMode: "lazy" */
1034
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
1035
+ {
1036
+ cmpModules.set(bundleId, importedModule);
1037
+ }
1038
+ return importedModule[exportName];
1039
+ }, consoleError);
1040
+ };
1041
+ const styles = new Map();
1042
+ const queueDomReads = [];
1043
+ const queueDomWrites = [];
1044
+ const queueTask = (queue, write) => (cb) => {
1045
+ queue.push(cb);
1046
+ if (!queuePending) {
1047
+ queuePending = true;
1048
+ if (write && plt.$flags$ & 4 /* queueSync */) {
1049
+ nextTick(flush);
1050
+ }
1051
+ else {
1052
+ plt.raf(flush);
1053
+ }
1054
+ }
1055
+ };
1056
+ const consume = (queue) => {
1057
+ for (let i = 0; i < queue.length; i++) {
1058
+ try {
1059
+ queue[i](performance.now());
1060
+ }
1061
+ catch (e) {
1062
+ consoleError(e);
1063
+ }
1064
+ }
1065
+ queue.length = 0;
1066
+ };
1067
+ const flush = () => {
1068
+ // always force a bunch of medium callbacks to run, but still have
1069
+ // a throttle on how many can run in a certain time
1070
+ // DOM READS!!!
1071
+ consume(queueDomReads);
1072
+ // DOM WRITES!!!
1073
+ {
1074
+ consume(queueDomWrites);
1075
+ if ((queuePending = queueDomReads.length > 0)) {
1076
+ // still more to do yet, but we've run out of time
1077
+ // let's let this thing cool off and try again in the next tick
1078
+ plt.raf(flush);
1079
+ }
1080
+ }
1081
+ };
1082
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1083
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1084
+
1085
+ export { Host as H, bootstrapLazy as b, h, promiseResolve as p, registerInstance as r };