@everymatrix/bonus-pagination-limits 1.43.4 → 1.45.0

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