proto-daisy-db 0.0.303 → 0.0.304
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/dist/cjs/{index-49bb0644.js → index-7e7d90c4.js} +143 -122
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-daisy-db.cjs.js +2 -2
- package/dist/cjs/proto-daisy-db_5.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/{index-a9904e63.js → index-e5ff735b.js} +143 -122
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-daisy-db.js +3 -3
- package/dist/esm/proto-daisy-db_5.entry.js +1 -1
- package/dist/proto-daisy-db/{p-47d6cc8f.entry.js → p-4405cfe9.entry.js} +1 -1
- package/dist/proto-daisy-db/p-95c0848f.js +2 -0
- package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -2
- package/loader/index.d.ts +3 -0
- package/package.json +2 -2
- package/dist/proto-daisy-db/p-3e0b280b.js +0 -2
|
@@ -24,13 +24,119 @@ const NAMESPACE = 'proto-daisy-db';
|
|
|
24
24
|
const BUILD = /* proto-daisy-db */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.19.0 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
37
|
+
var registerHost = (hostElement, cmpMeta) => {
|
|
38
|
+
const hostRef = {
|
|
39
|
+
$flags$: 0,
|
|
40
|
+
$hostElement$: hostElement,
|
|
41
|
+
$cmpMeta$: cmpMeta,
|
|
42
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
|
43
|
+
};
|
|
44
|
+
{
|
|
45
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
46
|
+
hostElement["s-p"] = [];
|
|
47
|
+
hostElement["s-rc"] = [];
|
|
48
|
+
}
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
50
|
+
};
|
|
51
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
53
|
+
|
|
54
|
+
// src/client/client-load-module.ts
|
|
55
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
|
56
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
57
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
58
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
59
|
+
if (!bundleId) {
|
|
60
|
+
return void 0;
|
|
61
|
+
}
|
|
62
|
+
const module = cmpModules.get(bundleId) ;
|
|
63
|
+
if (module) {
|
|
64
|
+
return module[exportName];
|
|
65
|
+
}
|
|
66
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
67
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
68
|
+
/* @vite-ignore */
|
|
69
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
70
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
71
|
+
/* webpackMode: "lazy" */
|
|
72
|
+
`./${bundleId}.entry.js${""}`
|
|
73
|
+
)); }).then((importedModule) => {
|
|
74
|
+
{
|
|
75
|
+
cmpModules.set(bundleId, importedModule);
|
|
76
|
+
}
|
|
77
|
+
return importedModule[exportName];
|
|
78
|
+
}, consoleError);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// src/client/client-style.ts
|
|
82
|
+
var styles = /* @__PURE__ */ new Map();
|
|
83
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
84
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
85
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
86
|
+
var doc = win.document || { head: {} };
|
|
87
|
+
var plt = {
|
|
88
|
+
$flags$: 0,
|
|
89
|
+
$resourcesUrl$: "",
|
|
90
|
+
jmp: (h2) => h2(),
|
|
91
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
92
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
93
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
94
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
95
|
+
};
|
|
96
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
97
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
98
|
+
try {
|
|
99
|
+
new CSSStyleSheet();
|
|
100
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
101
|
+
} catch (e) {
|
|
102
|
+
}
|
|
103
|
+
return false;
|
|
104
|
+
})() ;
|
|
105
|
+
var queuePending = false;
|
|
106
|
+
var queueDomReads = [];
|
|
107
|
+
var queueDomWrites = [];
|
|
108
|
+
var queueTask = (queue, write) => (cb) => {
|
|
109
|
+
queue.push(cb);
|
|
110
|
+
if (!queuePending) {
|
|
111
|
+
queuePending = true;
|
|
112
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
113
|
+
nextTick(flush);
|
|
114
|
+
} else {
|
|
115
|
+
plt.raf(flush);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
var consume = (queue) => {
|
|
120
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
121
|
+
try {
|
|
122
|
+
queue[i2](performance.now());
|
|
123
|
+
} catch (e) {
|
|
124
|
+
consoleError(e);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
queue.length = 0;
|
|
128
|
+
};
|
|
129
|
+
var flush = () => {
|
|
130
|
+
consume(queueDomReads);
|
|
131
|
+
{
|
|
132
|
+
consume(queueDomWrites);
|
|
133
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
134
|
+
plt.raf(flush);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
139
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
34
140
|
|
|
35
141
|
// src/utils/constants.ts
|
|
36
142
|
var EMPTY_OBJ = {};
|
|
@@ -110,8 +216,6 @@ var uniqueTime = (key, measureText) => {
|
|
|
110
216
|
};
|
|
111
217
|
}
|
|
112
218
|
};
|
|
113
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
114
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
115
219
|
var h = (nodeName, vnodeData, ...children) => {
|
|
116
220
|
let child = null;
|
|
117
221
|
let key = null;
|
|
@@ -207,12 +311,13 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
207
311
|
};
|
|
208
312
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
209
313
|
var _a;
|
|
314
|
+
const styleContainerDocument = styleContainerNode;
|
|
210
315
|
const scopeId2 = getScopeId(cmpMeta);
|
|
211
316
|
const style = styles.get(scopeId2);
|
|
212
317
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
213
318
|
if (style) {
|
|
214
319
|
if (typeof style === "string") {
|
|
215
|
-
styleContainerNode =
|
|
320
|
+
styleContainerNode = styleContainerDocument.head || styleContainerNode;
|
|
216
321
|
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
217
322
|
let styleElm;
|
|
218
323
|
if (!appliedStyles) {
|
|
@@ -235,8 +340,8 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
235
340
|
appliedStyles.add(scopeId2);
|
|
236
341
|
}
|
|
237
342
|
}
|
|
238
|
-
} else if (!
|
|
239
|
-
|
|
343
|
+
} else if (!styleContainerDocument.adoptedStyleSheets.includes(style)) {
|
|
344
|
+
styleContainerDocument.adoptedStyleSheets = [...styleContainerDocument.adoptedStyleSheets, style];
|
|
240
345
|
}
|
|
241
346
|
}
|
|
242
347
|
return scopeId2;
|
|
@@ -350,6 +455,7 @@ function sortedAttrNames(attrNames) {
|
|
|
350
455
|
// src/runtime/vdom/vdom-render.ts
|
|
351
456
|
var scopeId;
|
|
352
457
|
var hostTagName;
|
|
458
|
+
var useNativeShadowDom = false;
|
|
353
459
|
var isSvgMode = false;
|
|
354
460
|
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
355
461
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
@@ -360,7 +466,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
360
466
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
361
467
|
} else {
|
|
362
468
|
elm = newVNode2.$elm$ = doc.createElement(
|
|
363
|
-
newVNode2.$tag$
|
|
469
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
364
470
|
);
|
|
365
471
|
{
|
|
366
472
|
updateElement(null, newVNode2, isSvgMode);
|
|
@@ -531,6 +637,7 @@ var insertBefore = (parent, newNode, reference) => {
|
|
|
531
637
|
};
|
|
532
638
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
533
639
|
const hostElm = hostRef.$hostElement$;
|
|
640
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
534
641
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
535
642
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
536
643
|
hostTagName = hostElm.tagName;
|
|
@@ -548,6 +655,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
548
655
|
{
|
|
549
656
|
scopeId = hostElm["s-sc"];
|
|
550
657
|
}
|
|
658
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
551
659
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
552
660
|
};
|
|
553
661
|
|
|
@@ -582,7 +690,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
582
690
|
endSchedule();
|
|
583
691
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
584
692
|
};
|
|
585
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn)
|
|
693
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
694
|
+
console.error(err2);
|
|
695
|
+
fn();
|
|
696
|
+
}) : fn();
|
|
586
697
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
587
698
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
588
699
|
var _a;
|
|
@@ -718,10 +829,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
718
829
|
|
|
719
830
|
// src/runtime/proxy-component.ts
|
|
720
831
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
721
|
-
var _a;
|
|
832
|
+
var _a, _b;
|
|
722
833
|
const prototype = Cstr.prototype;
|
|
723
|
-
if (cmpMeta.$members$) {
|
|
724
|
-
const members = Object.entries(cmpMeta.$members$);
|
|
834
|
+
if (cmpMeta.$members$ || BUILD.watchCallback ) {
|
|
835
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
725
836
|
members.map(([memberName, [memberFlags]]) => {
|
|
726
837
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
727
838
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -766,7 +877,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
766
877
|
};
|
|
767
878
|
Cstr.observedAttributes = Array.from(
|
|
768
879
|
/* @__PURE__ */ new Set([
|
|
769
|
-
...Object.keys((
|
|
880
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
770
881
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
771
882
|
const attrName = m[1] || propName;
|
|
772
883
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -820,7 +931,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
820
931
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
821
932
|
}
|
|
822
933
|
if (Cstr && Cstr.style) {
|
|
823
|
-
let style
|
|
934
|
+
let style;
|
|
935
|
+
if (typeof Cstr.style === "string") {
|
|
936
|
+
style = Cstr.style;
|
|
937
|
+
}
|
|
824
938
|
const scopeId2 = getScopeId(cmpMeta);
|
|
825
939
|
if (!styles.has(scopeId2)) {
|
|
826
940
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
@@ -923,17 +1037,30 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
923
1037
|
// StencilLazyHost
|
|
924
1038
|
constructor(self) {
|
|
925
1039
|
super(self);
|
|
1040
|
+
this.hasRegisteredEventListeners = false;
|
|
926
1041
|
self = this;
|
|
927
1042
|
registerHost(self, cmpMeta);
|
|
928
1043
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
929
1044
|
{
|
|
930
|
-
{
|
|
931
|
-
|
|
1045
|
+
if (!self.shadowRoot) {
|
|
1046
|
+
{
|
|
1047
|
+
self.attachShadow({ mode: "open" });
|
|
1048
|
+
}
|
|
1049
|
+
} else {
|
|
1050
|
+
if (self.shadowRoot.mode !== "open") {
|
|
1051
|
+
throw new Error(
|
|
1052
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
1053
|
+
);
|
|
1054
|
+
}
|
|
932
1055
|
}
|
|
933
1056
|
}
|
|
934
1057
|
}
|
|
935
1058
|
}
|
|
936
1059
|
connectedCallback() {
|
|
1060
|
+
getHostRef(this);
|
|
1061
|
+
if (!this.hasRegisteredEventListeners) {
|
|
1062
|
+
this.hasRegisteredEventListeners = true;
|
|
1063
|
+
}
|
|
937
1064
|
if (appLoadFallback) {
|
|
938
1065
|
clearTimeout(appLoadFallback);
|
|
939
1066
|
appLoadFallback = null;
|
|
@@ -966,7 +1093,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
966
1093
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
967
1094
|
}
|
|
968
1095
|
{
|
|
969
|
-
dataStyles.textContent += cmpTags + HYDRATED_CSS;
|
|
1096
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
970
1097
|
}
|
|
971
1098
|
if (dataStyles.innerHTML.length) {
|
|
972
1099
|
dataStyles.setAttribute("data-styles", "");
|
|
@@ -991,112 +1118,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
991
1118
|
// src/runtime/nonce.ts
|
|
992
1119
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
993
1120
|
|
|
994
|
-
// src/client/client-host-ref.ts
|
|
995
|
-
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
996
|
-
var getHostRef = (ref) => hostRefs.get(ref);
|
|
997
|
-
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
998
|
-
var registerHost = (hostElement, cmpMeta) => {
|
|
999
|
-
const hostRef = {
|
|
1000
|
-
$flags$: 0,
|
|
1001
|
-
$hostElement$: hostElement,
|
|
1002
|
-
$cmpMeta$: cmpMeta,
|
|
1003
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
1004
|
-
};
|
|
1005
|
-
{
|
|
1006
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
1007
|
-
hostElement["s-p"] = [];
|
|
1008
|
-
hostElement["s-rc"] = [];
|
|
1009
|
-
}
|
|
1010
|
-
return hostRefs.set(hostElement, hostRef);
|
|
1011
|
-
};
|
|
1012
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1013
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
1014
|
-
|
|
1015
|
-
// src/client/client-load-module.ts
|
|
1016
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
|
1017
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1018
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
1019
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1020
|
-
if (!bundleId) {
|
|
1021
|
-
return void 0;
|
|
1022
|
-
}
|
|
1023
|
-
const module = cmpModules.get(bundleId) ;
|
|
1024
|
-
if (module) {
|
|
1025
|
-
return module[exportName];
|
|
1026
|
-
}
|
|
1027
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1028
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1029
|
-
/* @vite-ignore */
|
|
1030
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
1031
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1032
|
-
/* webpackMode: "lazy" */
|
|
1033
|
-
`./${bundleId}.entry.js${""}`
|
|
1034
|
-
)); }).then((importedModule) => {
|
|
1035
|
-
{
|
|
1036
|
-
cmpModules.set(bundleId, importedModule);
|
|
1037
|
-
}
|
|
1038
|
-
return importedModule[exportName];
|
|
1039
|
-
}, consoleError);
|
|
1040
|
-
};
|
|
1041
|
-
|
|
1042
|
-
// src/client/client-style.ts
|
|
1043
|
-
var styles = /* @__PURE__ */ new Map();
|
|
1044
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
1045
|
-
var doc = win.document || { head: {} };
|
|
1046
|
-
var plt = {
|
|
1047
|
-
$flags$: 0,
|
|
1048
|
-
$resourcesUrl$: "",
|
|
1049
|
-
jmp: (h2) => h2(),
|
|
1050
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
1051
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
1052
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
1053
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
1054
|
-
};
|
|
1055
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
1056
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
1057
|
-
try {
|
|
1058
|
-
new CSSStyleSheet();
|
|
1059
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
1060
|
-
} catch (e) {
|
|
1061
|
-
}
|
|
1062
|
-
return false;
|
|
1063
|
-
})() ;
|
|
1064
|
-
var queuePending = false;
|
|
1065
|
-
var queueDomReads = [];
|
|
1066
|
-
var queueDomWrites = [];
|
|
1067
|
-
var queueTask = (queue, write) => (cb) => {
|
|
1068
|
-
queue.push(cb);
|
|
1069
|
-
if (!queuePending) {
|
|
1070
|
-
queuePending = true;
|
|
1071
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
1072
|
-
nextTick(flush);
|
|
1073
|
-
} else {
|
|
1074
|
-
plt.raf(flush);
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
};
|
|
1078
|
-
var consume = (queue) => {
|
|
1079
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
1080
|
-
try {
|
|
1081
|
-
queue[i2](performance.now());
|
|
1082
|
-
} catch (e) {
|
|
1083
|
-
consoleError(e);
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
queue.length = 0;
|
|
1087
|
-
};
|
|
1088
|
-
var flush = () => {
|
|
1089
|
-
consume(queueDomReads);
|
|
1090
|
-
{
|
|
1091
|
-
consume(queueDomWrites);
|
|
1092
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
1093
|
-
plt.raf(flush);
|
|
1094
|
-
}
|
|
1095
|
-
}
|
|
1096
|
-
};
|
|
1097
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
1098
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
1099
|
-
|
|
1100
1121
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1101
1122
|
exports.h = h;
|
|
1102
1123
|
exports.promiseResolve = promiseResolve;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-7e7d90c4.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-7e7d90c4.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.19.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-daisy-db.cjs.js', document.baseURI).href));
|
|
@@ -2,13 +2,119 @@ const NAMESPACE = 'proto-daisy-db';
|
|
|
2
2
|
const BUILD = /* proto-daisy-db */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
15
|
+
var registerHost = (hostElement, cmpMeta) => {
|
|
16
|
+
const hostRef = {
|
|
17
|
+
$flags$: 0,
|
|
18
|
+
$hostElement$: hostElement,
|
|
19
|
+
$cmpMeta$: cmpMeta,
|
|
20
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
|
21
|
+
};
|
|
22
|
+
{
|
|
23
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
24
|
+
hostElement["s-p"] = [];
|
|
25
|
+
hostElement["s-rc"] = [];
|
|
26
|
+
}
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
28
|
+
};
|
|
29
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
31
|
+
|
|
32
|
+
// src/client/client-load-module.ts
|
|
33
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
|
34
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
35
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
36
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
37
|
+
if (!bundleId) {
|
|
38
|
+
return void 0;
|
|
39
|
+
}
|
|
40
|
+
const module = cmpModules.get(bundleId) ;
|
|
41
|
+
if (module) {
|
|
42
|
+
return module[exportName];
|
|
43
|
+
}
|
|
44
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
45
|
+
return import(
|
|
46
|
+
/* @vite-ignore */
|
|
47
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
48
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
49
|
+
/* webpackMode: "lazy" */
|
|
50
|
+
`./${bundleId}.entry.js${""}`
|
|
51
|
+
).then((importedModule) => {
|
|
52
|
+
{
|
|
53
|
+
cmpModules.set(bundleId, importedModule);
|
|
54
|
+
}
|
|
55
|
+
return importedModule[exportName];
|
|
56
|
+
}, consoleError);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// src/client/client-style.ts
|
|
60
|
+
var styles = /* @__PURE__ */ new Map();
|
|
61
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
62
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
63
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
64
|
+
var doc = win.document || { head: {} };
|
|
65
|
+
var plt = {
|
|
66
|
+
$flags$: 0,
|
|
67
|
+
$resourcesUrl$: "",
|
|
68
|
+
jmp: (h2) => h2(),
|
|
69
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
70
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
71
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
72
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
73
|
+
};
|
|
74
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
75
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
76
|
+
try {
|
|
77
|
+
new CSSStyleSheet();
|
|
78
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
79
|
+
} catch (e) {
|
|
80
|
+
}
|
|
81
|
+
return false;
|
|
82
|
+
})() ;
|
|
83
|
+
var queuePending = false;
|
|
84
|
+
var queueDomReads = [];
|
|
85
|
+
var queueDomWrites = [];
|
|
86
|
+
var queueTask = (queue, write) => (cb) => {
|
|
87
|
+
queue.push(cb);
|
|
88
|
+
if (!queuePending) {
|
|
89
|
+
queuePending = true;
|
|
90
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
91
|
+
nextTick(flush);
|
|
92
|
+
} else {
|
|
93
|
+
plt.raf(flush);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
var consume = (queue) => {
|
|
98
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
99
|
+
try {
|
|
100
|
+
queue[i2](performance.now());
|
|
101
|
+
} catch (e) {
|
|
102
|
+
consoleError(e);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
queue.length = 0;
|
|
106
|
+
};
|
|
107
|
+
var flush = () => {
|
|
108
|
+
consume(queueDomReads);
|
|
109
|
+
{
|
|
110
|
+
consume(queueDomWrites);
|
|
111
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
112
|
+
plt.raf(flush);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
117
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
12
118
|
|
|
13
119
|
// src/utils/constants.ts
|
|
14
120
|
var EMPTY_OBJ = {};
|
|
@@ -88,8 +194,6 @@ var uniqueTime = (key, measureText) => {
|
|
|
88
194
|
};
|
|
89
195
|
}
|
|
90
196
|
};
|
|
91
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
92
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
93
197
|
var h = (nodeName, vnodeData, ...children) => {
|
|
94
198
|
let child = null;
|
|
95
199
|
let key = null;
|
|
@@ -185,12 +289,13 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
185
289
|
};
|
|
186
290
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
187
291
|
var _a;
|
|
292
|
+
const styleContainerDocument = styleContainerNode;
|
|
188
293
|
const scopeId2 = getScopeId(cmpMeta);
|
|
189
294
|
const style = styles.get(scopeId2);
|
|
190
295
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
191
296
|
if (style) {
|
|
192
297
|
if (typeof style === "string") {
|
|
193
|
-
styleContainerNode =
|
|
298
|
+
styleContainerNode = styleContainerDocument.head || styleContainerNode;
|
|
194
299
|
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
195
300
|
let styleElm;
|
|
196
301
|
if (!appliedStyles) {
|
|
@@ -213,8 +318,8 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
213
318
|
appliedStyles.add(scopeId2);
|
|
214
319
|
}
|
|
215
320
|
}
|
|
216
|
-
} else if (!
|
|
217
|
-
|
|
321
|
+
} else if (!styleContainerDocument.adoptedStyleSheets.includes(style)) {
|
|
322
|
+
styleContainerDocument.adoptedStyleSheets = [...styleContainerDocument.adoptedStyleSheets, style];
|
|
218
323
|
}
|
|
219
324
|
}
|
|
220
325
|
return scopeId2;
|
|
@@ -328,6 +433,7 @@ function sortedAttrNames(attrNames) {
|
|
|
328
433
|
// src/runtime/vdom/vdom-render.ts
|
|
329
434
|
var scopeId;
|
|
330
435
|
var hostTagName;
|
|
436
|
+
var useNativeShadowDom = false;
|
|
331
437
|
var isSvgMode = false;
|
|
332
438
|
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
333
439
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
@@ -338,7 +444,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
338
444
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
339
445
|
} else {
|
|
340
446
|
elm = newVNode2.$elm$ = doc.createElement(
|
|
341
|
-
newVNode2.$tag$
|
|
447
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
342
448
|
);
|
|
343
449
|
{
|
|
344
450
|
updateElement(null, newVNode2, isSvgMode);
|
|
@@ -509,6 +615,7 @@ var insertBefore = (parent, newNode, reference) => {
|
|
|
509
615
|
};
|
|
510
616
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
511
617
|
const hostElm = hostRef.$hostElement$;
|
|
618
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
512
619
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
513
620
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
514
621
|
hostTagName = hostElm.tagName;
|
|
@@ -526,6 +633,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
526
633
|
{
|
|
527
634
|
scopeId = hostElm["s-sc"];
|
|
528
635
|
}
|
|
636
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
529
637
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
530
638
|
};
|
|
531
639
|
|
|
@@ -560,7 +668,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
560
668
|
endSchedule();
|
|
561
669
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
562
670
|
};
|
|
563
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn)
|
|
671
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
672
|
+
console.error(err2);
|
|
673
|
+
fn();
|
|
674
|
+
}) : fn();
|
|
564
675
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
565
676
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
566
677
|
var _a;
|
|
@@ -696,10 +807,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
696
807
|
|
|
697
808
|
// src/runtime/proxy-component.ts
|
|
698
809
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
699
|
-
var _a;
|
|
810
|
+
var _a, _b;
|
|
700
811
|
const prototype = Cstr.prototype;
|
|
701
|
-
if (cmpMeta.$members$) {
|
|
702
|
-
const members = Object.entries(cmpMeta.$members$);
|
|
812
|
+
if (cmpMeta.$members$ || BUILD.watchCallback ) {
|
|
813
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
703
814
|
members.map(([memberName, [memberFlags]]) => {
|
|
704
815
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
705
816
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -744,7 +855,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
744
855
|
};
|
|
745
856
|
Cstr.observedAttributes = Array.from(
|
|
746
857
|
/* @__PURE__ */ new Set([
|
|
747
|
-
...Object.keys((
|
|
858
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
748
859
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
749
860
|
const attrName = m[1] || propName;
|
|
750
861
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -798,7 +909,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
798
909
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
799
910
|
}
|
|
800
911
|
if (Cstr && Cstr.style) {
|
|
801
|
-
let style
|
|
912
|
+
let style;
|
|
913
|
+
if (typeof Cstr.style === "string") {
|
|
914
|
+
style = Cstr.style;
|
|
915
|
+
}
|
|
802
916
|
const scopeId2 = getScopeId(cmpMeta);
|
|
803
917
|
if (!styles.has(scopeId2)) {
|
|
804
918
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
@@ -901,17 +1015,30 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
901
1015
|
// StencilLazyHost
|
|
902
1016
|
constructor(self) {
|
|
903
1017
|
super(self);
|
|
1018
|
+
this.hasRegisteredEventListeners = false;
|
|
904
1019
|
self = this;
|
|
905
1020
|
registerHost(self, cmpMeta);
|
|
906
1021
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
907
1022
|
{
|
|
908
|
-
{
|
|
909
|
-
|
|
1023
|
+
if (!self.shadowRoot) {
|
|
1024
|
+
{
|
|
1025
|
+
self.attachShadow({ mode: "open" });
|
|
1026
|
+
}
|
|
1027
|
+
} else {
|
|
1028
|
+
if (self.shadowRoot.mode !== "open") {
|
|
1029
|
+
throw new Error(
|
|
1030
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
1031
|
+
);
|
|
1032
|
+
}
|
|
910
1033
|
}
|
|
911
1034
|
}
|
|
912
1035
|
}
|
|
913
1036
|
}
|
|
914
1037
|
connectedCallback() {
|
|
1038
|
+
getHostRef(this);
|
|
1039
|
+
if (!this.hasRegisteredEventListeners) {
|
|
1040
|
+
this.hasRegisteredEventListeners = true;
|
|
1041
|
+
}
|
|
915
1042
|
if (appLoadFallback) {
|
|
916
1043
|
clearTimeout(appLoadFallback);
|
|
917
1044
|
appLoadFallback = null;
|
|
@@ -944,7 +1071,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
944
1071
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
945
1072
|
}
|
|
946
1073
|
{
|
|
947
|
-
dataStyles.textContent += cmpTags + HYDRATED_CSS;
|
|
1074
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
948
1075
|
}
|
|
949
1076
|
if (dataStyles.innerHTML.length) {
|
|
950
1077
|
dataStyles.setAttribute("data-styles", "");
|
|
@@ -969,110 +1096,4 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
969
1096
|
// src/runtime/nonce.ts
|
|
970
1097
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
971
1098
|
|
|
972
|
-
// src/client/client-host-ref.ts
|
|
973
|
-
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
974
|
-
var getHostRef = (ref) => hostRefs.get(ref);
|
|
975
|
-
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
976
|
-
var registerHost = (hostElement, cmpMeta) => {
|
|
977
|
-
const hostRef = {
|
|
978
|
-
$flags$: 0,
|
|
979
|
-
$hostElement$: hostElement,
|
|
980
|
-
$cmpMeta$: cmpMeta,
|
|
981
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
982
|
-
};
|
|
983
|
-
{
|
|
984
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
985
|
-
hostElement["s-p"] = [];
|
|
986
|
-
hostElement["s-rc"] = [];
|
|
987
|
-
}
|
|
988
|
-
return hostRefs.set(hostElement, hostRef);
|
|
989
|
-
};
|
|
990
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
991
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
992
|
-
|
|
993
|
-
// src/client/client-load-module.ts
|
|
994
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
|
995
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
996
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
997
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
998
|
-
if (!bundleId) {
|
|
999
|
-
return void 0;
|
|
1000
|
-
}
|
|
1001
|
-
const module = cmpModules.get(bundleId) ;
|
|
1002
|
-
if (module) {
|
|
1003
|
-
return module[exportName];
|
|
1004
|
-
}
|
|
1005
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1006
|
-
return import(
|
|
1007
|
-
/* @vite-ignore */
|
|
1008
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
1009
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1010
|
-
/* webpackMode: "lazy" */
|
|
1011
|
-
`./${bundleId}.entry.js${""}`
|
|
1012
|
-
).then((importedModule) => {
|
|
1013
|
-
{
|
|
1014
|
-
cmpModules.set(bundleId, importedModule);
|
|
1015
|
-
}
|
|
1016
|
-
return importedModule[exportName];
|
|
1017
|
-
}, consoleError);
|
|
1018
|
-
};
|
|
1019
|
-
|
|
1020
|
-
// src/client/client-style.ts
|
|
1021
|
-
var styles = /* @__PURE__ */ new Map();
|
|
1022
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
1023
|
-
var doc = win.document || { head: {} };
|
|
1024
|
-
var plt = {
|
|
1025
|
-
$flags$: 0,
|
|
1026
|
-
$resourcesUrl$: "",
|
|
1027
|
-
jmp: (h2) => h2(),
|
|
1028
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
1029
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
1030
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
1031
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
1032
|
-
};
|
|
1033
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
1034
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
1035
|
-
try {
|
|
1036
|
-
new CSSStyleSheet();
|
|
1037
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
1038
|
-
} catch (e) {
|
|
1039
|
-
}
|
|
1040
|
-
return false;
|
|
1041
|
-
})() ;
|
|
1042
|
-
var queuePending = false;
|
|
1043
|
-
var queueDomReads = [];
|
|
1044
|
-
var queueDomWrites = [];
|
|
1045
|
-
var queueTask = (queue, write) => (cb) => {
|
|
1046
|
-
queue.push(cb);
|
|
1047
|
-
if (!queuePending) {
|
|
1048
|
-
queuePending = true;
|
|
1049
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
1050
|
-
nextTick(flush);
|
|
1051
|
-
} else {
|
|
1052
|
-
plt.raf(flush);
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
};
|
|
1056
|
-
var consume = (queue) => {
|
|
1057
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
1058
|
-
try {
|
|
1059
|
-
queue[i2](performance.now());
|
|
1060
|
-
} catch (e) {
|
|
1061
|
-
consoleError(e);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
queue.length = 0;
|
|
1065
|
-
};
|
|
1066
|
-
var flush = () => {
|
|
1067
|
-
consume(queueDomReads);
|
|
1068
|
-
{
|
|
1069
|
-
consume(queueDomWrites);
|
|
1070
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
1071
|
-
plt.raf(flush);
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
};
|
|
1075
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
1076
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
1077
|
-
|
|
1078
1099
|
export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-e5ff735b.js';
|
|
2
|
+
export { s as setNonce } from './index-e5ff735b.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-e5ff735b.js';
|
|
2
|
+
export { s as setNonce } from './index-e5ff735b.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.19.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as a}from"./p-
|
|
1
|
+
import{r as t,h as a}from"./p-95c0848f.js";const s="proto-daisy-db:app-data",o=class{constructor(a){t(this,a),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var a;console.log("app-data:get"),(a=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(a))}catch(t){s(t)}}))).then((a=>{t.emit("app-data:value",a)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const a=JSON.stringify(t);localStorage.setItem(s,a)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return a("div",{key:"35e42fc3a7d518f3bc0211bc5f2c8221fd9bcc81"})}};o.style="";const e=class{constructor(a){t(this,a),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return a("div",{key:"a423b82d951a69b266dd3d508a8dc11326a8008b",class:"flex flex-col"},t.map((t=>a("span",null,t))))}};e.style="";const r=class{constructor(a){t(this,a),this.data=void 0}render(){return a("div",{key:"f4837fa667d5d6e57086b09d1bc91719035442be",class:"flex"},a("span",{key:"a70fa27ba603ead243b5d262922082141420e0ac"},this.data?this.data.stamp:""))}};r.style="";const i=class{constructor(a){t(this,a),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],a={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",a)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return a("div",{key:"47a9f4c68160b18fceedba61f54a7be29c75325a",class:"flex flex-col font-sans"},a("div",{key:"334f34a36a896139cf4cc01f66bbf0d09bd89505",class:"flex flex-row content-center gap-2"},a("button",{key:"784f07b93d4cd4a0287e6dd172bc73ab8e3c49e5",class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),a("button",{key:"8526e3216eb0a725ea22b288ac0cb3c503405ee4",class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),a("proto-faux-type",{key:"3033b83816b2997c790fb8df1e1d90f387f62afa",class:"mt-4",emitter:this.emitter}),a("proto-faux-stamp",{key:"811eef59cdcdfa2edb318ee5facf7ae0bc497c82",class:"mt-2 text-xs",data:this.data}),a("proto-faux-keys",{key:"ed39e233d92c46f801841240d32d783ee6b0f0fd",class:"mt-2",data:this.data}))}};i.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";const c=class{constructor(a){t(this,a),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return a("div",{key:"d441f639241a54d1ef8ae9c26a4560b5266457df"},a("span",{key:"a192c0ce3af5f94d72856ca851300537fd00f31f",class:"text-xs italic"},this.eventType))}};c.style="proto-faux-type{}";export{o as proto_daisy_db,e as proto_faux_keys,r as proto_faux_stamp,i as proto_faux_trigger,c as proto_faux_type}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?v(b):f.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{w(m),w(y),(p=m.length>0)&&f.raf(b)},v=e=>h().then(e),S=$(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>R});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},T=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),L={},N=new WeakMap,U=e=>"sc-"+e.v,D=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=H(n),s=H(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(W);t=t.replace(q,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},F=/\s/,H=e=>e?e.split(F):[],W="Capture",q=RegExp(W+"$"),G=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of V(Object.keys(o)))e in s||D(l,e,o[e],void 0,n,t.l);for(const e of V(Object.keys(s)))D(l,e,o[e],s[e],n,t.l)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),G(null,l,_),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=z(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},B=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=z(null,n,o),r&&(l[o].$=r,Q(i,r,t)))},I=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),K=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(G(e,t,_),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(J(h,m,o))K(h,m,o),h=t[++i],m=l[++c];else if(J(d,y,o))K(d,y,o),d=t[--f],y=l[--p];else if(J(h,y,o))K(h,y,o),Q(e,h.$,d.$.nextSibling),h=t[++i],y=l[--p];else if(J(d,m,o))K(d,m,o),Q(e,d.$,h.$),d=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=z(t&&t[c],n,u):(K(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=z(t&&t[c],n,c),m=l[++c]),s&&Q(h.$.parentNode,s,h.$)}i>f?B(e,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&I(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),B(l,null,t,s,0,s.length-1)):null!==o&&I(o,0,o.length-1)):e.i!==r&&(l.data=r)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Y=(e,t)=>{if(e.l|=16,!(4&e.l))return X(e,e.j),S((()=>Z(e,t)));e.l|=512},Z=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return ee(void 0,(()=>ne(e,n,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=e,o=U(t),s=i.get(o);if(e=11===e.nodeType?e:a,s)if("string"==typeof s){let r,i=N.get(e=l.head||e);if(i||N.set(e,i=new Set),!i.has(o)){{r=a.createElement("style"),r.innerHTML=s;const t=null!=(n=f.O)?n:k(a);null!=t&&r.setAttribute("nonce",t),e.insertBefore(r,e.querySelector("link"))}4&t.l&&(r.innerHTML+=c),i&&i.add(o)}}else l.adoptedStyleSheets.includes(s)||(l.adoptedStyleSheets=[...l.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);le(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>oe(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},le=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||A(null,null),r=(e=>e&&e.m===L)(t)?t:T(null,null,t);if(x=l.tagName,n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],K(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},oe=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,ie(t),re(n,"componentDidLoad"),e.M(t),l||se()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>Y(e,!1))),e.l&=-517},se=()=>{ie(a.documentElement),v((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(u)))},re=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ie=e=>e.classList.add("hydrated"),ce=(e,t,l)=>{var o,s;const r=e.prototype;if(t.P){const i=Object.entries(null!=(o=t.P)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).R.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.R.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:1&t?e+"":e)(l,o.P[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.R.set(t,l),c&&2==(18&i)&&Y(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.T)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.T)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},ue=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let v,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],P:l[2],A:l[3]};4&o.l&&(g=!0),o.P=l[2];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,R:new Map};l.L=new Promise((e=>l.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.j=n);break}}l.P&&Object.entries(l.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.N;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.U}" was not found`);l.isProxied||(ce(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Y(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.L)&&e.L.then((()=>{}))}})()))}componentOnReady(){return n(this).L}};o.N=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ce(u,o,1)))}))})),h.length>0&&(g&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(se,30)))},ae=e=>f.O=e;export{ue as b,T as h,h as p,l as r,ae as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-
|
|
1
|
+
import{p as t,b as e}from"./p-95c0848f.js";export{s as setNonce}from"./p-95c0848f.js";import{g as a}from"./p-e1255160.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-4405cfe9",[[0,"proto-faux-trigger",{emitter:[1],data:[1040]}],[1,"proto-daisy-db",{emitter:[1]}],[0,"proto-faux-keys",{data:[16]}],[0,"proto-faux-stamp",{data:[16]}],[0,"proto-faux-type",{emitter:[1],eventType:[1025,"event-type"]}]]]],t))));
|
|
@@ -989,7 +989,6 @@ export declare namespace JSXBase {
|
|
|
989
989
|
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
990
990
|
form?: string;
|
|
991
991
|
htmlFor?: string;
|
|
992
|
-
htmlfor?: string;
|
|
993
992
|
}
|
|
994
993
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
995
994
|
value?: string | string[] | number;
|
|
@@ -1100,7 +1099,6 @@ export declare namespace JSXBase {
|
|
|
1100
1099
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1101
1100
|
form?: string;
|
|
1102
1101
|
htmlFor?: string;
|
|
1103
|
-
htmlfor?: string;
|
|
1104
1102
|
name?: string;
|
|
1105
1103
|
}
|
|
1106
1104
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
package/loader/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export interface CustomElementsDefineOptions {
|
|
|
9
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
10
|
}
|
|
11
11
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
12
15
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
16
|
|
|
14
17
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-daisy-db",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.304",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"format": "prettier --write src"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@stencil/core": "4.
|
|
30
|
+
"@stencil/core": "4.19.0",
|
|
31
31
|
"mitt": "3.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t={},n=e=>"object"==(e=typeof e)||"function"===e;function l(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>r,map:()=>s,ok:()=>o,unwrap:()=>u,unwrapErr:()=>a});var o=e=>({isOk:!0,isErr:!1,value:e}),r=e=>({isOk:!1,isErr:!0,value:e});function s(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>o(e))):o(n)}if(e.isErr)return r(e.value);throw"should never get here"}var i,c,u=e=>{if(e.isOk)return e.value;throw e.value},a=e=>{if(e.isErr)return e.value;throw e.value},f="slot-fb{display:contents}slot-fb[hidden]{display:none}",h=(e,t,...l)=>{let o=null,r=null,s=!1,i=!1;const c=[],u=t=>{for(let l=0;l<t.length;l++)o=t[l],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!n(o))&&(o+=""),s&&i?c[c.length-1].t+=o:c.push(s?d(null,o):o),i=s)};if(u(l),t){t.key&&(r=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=d(e,null);return a.l=t,c.length>0&&(a.o=c),a.i=r,a},d=(e,t)=>({u:0,h:e,t,m:null,o:null,l:null,i:null}),m={},p=new WeakMap,y=e=>"sc-"+e.p,$=(e,t,l,o,r,s)=>{if(l!==o){let i=K(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,n=w(l),r=w(o);t.remove(...n.filter((e=>e&&!r.includes(e)))),t.add(...r.filter((e=>e&&!n.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const c=n(o);if((i||c&&null!==o)&&!r)try{if(e.tagName.includes("-"))e[t]=o;else{const n=null==o?"":o;"list"===t?i=!1:null!=l&&e[t]==n||(e[t]=n)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||r)&&!c&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):K(ee,c)?c.slice(2):c[2]+t.slice(3),l||o){const n=t.endsWith(b);t=t.replace(S,""),l&&ne.rel(e,t,l,n),o&&ne.ael(e,t,o,n)}}},v=/\s/,w=e=>e?e.split(v):[],b="Capture",S=RegExp(b+"$"),g=(e,n,l)=>{const o=11===n.m.nodeType&&n.m.host?n.m.host:n.m,r=e&&e.l||t,s=n.l||t;for(const e of j(Object.keys(r)))e in s||$(o,e,r[e],void 0,l,n.u);for(const e of j(Object.keys(s)))$(o,e,r[e],s[e],l,n.u)};function j(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var k=!1,O=(e,t,n)=>{const l=t.o[n];let o,r,s=0;if(null!==l.t)o=l.m=te.createTextNode(l.t);else if(o=l.m=te.createElement(l.h),g(null,l,k),null!=i&&o["s-si"]!==i&&o.classList.add(o["s-si"]=i),l.o)for(s=0;s<l.o.length;++s)r=O(e,l,s),r&&o.appendChild(r);return o["s-hn"]=c,o},E=(e,t,n,l,o,r)=>{let s,i=e;for(i.shadowRoot&&i.tagName===c&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=O(null,n,o),s&&(l[o].m=s,x(i,s,t)))},C=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.m;e&&e.remove()}}},M=(e,t,n=!1)=>e.h===t.h&&(!!n||e.i===t.i),P=(e,t,n=!1)=>{const l=t.m=e.m,o=e.o,r=t.o,s=t.t;null===s?(g(e,t,k),null!==o&&null!==r?((e,t,n,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],m=l.length-1,p=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==p)p=l[++c];else if(null==y)y=l[--m];else if(M(h,p,o))P(h,p,o),h=t[++i],p=l[++c];else if(M(d,y,o))P(d,y,o),d=t[--f],y=l[--m];else if(M(h,y,o))P(h,y,o),x(e,h.m,d.m.nextSibling),h=t[++i],y=l[--m];else if(M(d,p,o))P(d,p,o),x(e,d.m,h.m),d=t[--f],p=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].i&&t[a].i===p.i){u=a;break}u>=0?(s=t[u],s.h!==p.h?r=O(t&&t[c],n,u):(P(s,p,o),t[u]=void 0,r=s.m),p=l[++c]):(r=O(t&&t[c],n,c),p=l[++c]),r&&x(h.m.parentNode,r,h.m)}i>f?E(e,null==l[m+1]?null:l[m+1].m,n,l,c,m):c>m&&C(t,i,f)})(l,o,t,r,n):null!==r?(null!==e.t&&(l.textContent=""),E(l,null,t,r,0,r.length-1)):null!==o&&C(o,0,o.length-1)):e.t!==s&&(l.data=s)},x=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),R=(e,t)=>{t&&!e.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$=t)))},T=(e,t)=>{if(e.u|=16,!(4&e.u))return R(e,e.v),he((()=>A(e,t)));e.u|=512},A=(e,t)=>{const n=e.S;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return L(void 0,(()=>D(e,n,t)))},L=(e,t)=>N(e)?e.then(t):t(),N=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,D=async(e,t,n)=>{var o;const r=e.$hostElement$,s=r["s-rc"];n&&(e=>{const t=e.j,n=e.$hostElement$,o=t.u,r=((e,t)=>{var n;const o=y(t),r=Z.get(o);if(e=11===e.nodeType?e:te,r)if("string"==typeof r){let s,i=p.get(e=e.head||e);if(i||p.set(e,i=new Set),!i.has(o)){{s=te.createElement("style"),s.innerHTML=r;const t=null!=(n=ne.k)?n:l(te);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.u&&(s.innerHTML+=f),i&&i.add(o)}}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=r,n.classList.add(r+"-h"))})(e);F(e,t,r,n),s&&(s.map((e=>e())),r["s-rc"]=void 0);{const t=null!=(o=r["s-p"])?o:[],n=()=>H(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}},F=(e,t,n,l)=>{try{t=t.render(),e.u&=-17,e.u|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O||d(null,null),r=(e=>e&&e.h===m)(t)?t:h(null,null,t);if(c=l.tagName,n&&r.l)for(const e of Object.keys(r.l))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.l[e]=l[e]);r.h=null,r.u|=4,e.O=r,r.m=o.m=l.shadowRoot||l,i=l["s-sc"],P(o,r,n)})(e,t,l)}catch(t){Q(t,e.$hostElement$)}return null},H=e=>{const t=e.$hostElement$,n=e.S,l=e.v;64&e.u||(e.u|=64,q(t),W(n,"componentDidLoad"),e.C(t),l||U()),e.$&&(e.$(),e.$=void 0),512&e.u&&fe((()=>T(e,!1))),e.u&=-517},U=()=>{q(te.documentElement),fe((()=>(e=>{const t=ne.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(ee)))},W=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){Q(e)}},q=e=>e.classList.add(("hydrated","hydrated")),G=(e,t,l)=>{var o;const r=e.prototype;if(t.M){const s=Object.entries(t.M);if(s.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>B(this).P.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=B(e);if(!r)throw Error(`Couldn't find host element for "${o.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const s=r.P.get(t),i=r.u,c=r.S;l=((e,t)=>null==e||n(e)?e:1&t?e+"":e)(l,o.M[t][0]),8&i&&void 0!==s||l===s||Number.isNaN(s)&&Number.isNaN(l)||(r.P.set(t,l),c&&2==(18&i)&&T(r,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const n=new Map;r.attributeChangedCallback=function(e,l,o){ne.jmp((()=>{var s;const i=n.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(r.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const n=B(this),r=null==n?void 0:n.u;if(r&&!(8&r)&&128&r&&o!==l){const r=n.S,i=null==(s=t.R)?void 0:s[e];null==i||i.forEach((t=>{null!=r[t]&&r[t].call(r,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=t.R)?o:{}),...s.filter((([e,t])=>15&t[0])).map((([e,t])=>{const l=t[1]||e;return n.set(l,e),l}))]))}}return e},V=(e,t={})=>{var n;const o=[],r=t.exclude||[],s=ee.customElements,i=te.head,c=i.querySelector("meta[charset]"),u=te.createElement("style"),a=[];let h,d=!0;Object.assign(ne,t),ne.T=new URL(t.resourcesUrl||"./",te.baseURI).href;let m=!1;if(e.map((e=>{e[1].map((t=>{const n={u:t[0],p:t[1],M:t[2],A:t[3]};4&n.u&&(m=!0),n.M=t[2];const l=n.p,i=class extends HTMLElement{constructor(e){super(e),J(e=this,n),1&n.u&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),d?a.push(this):ne.jmp((()=>(e=>{if(!(1&ne.u)){const t=B(e),n=t.j,l=()=>{};if(1&t.u)(null==t?void 0:t.S)||(null==t?void 0:t.L)&&t.L.then((()=>{}));else{t.u|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){R(t,t.v=n);break}}n.M&&Object.entries(n.M).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.u)){if(t.u|=32,n.N){const e=Y(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.p}#${t.D}" was not found`);l.isProxied||(G(l,n,2),l.isProxied=!0);const o=()=>{};t.u|=8;try{new l(t)}catch(e){Q(e)}t.u&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.u|=128));if(l&&l.style){let e=l.style;const t=y(n);if(!Z.has(t)){const l=()=>{};((e,t,n)=>{let l=Z.get(e);oe&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,Z.set(e,l)})(t,e,!!(1&n.u)),l()}}}const o=t.v,r=()=>T(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(e,t,n)}l()}})(this)))}disconnectedCallback(){ne.jmp((()=>(async()=>{if(!(1&ne.u)){const e=B(this);(null==e?void 0:e.S)||(null==e?void 0:e.L)&&e.L.then((()=>{}))}})()))}componentOnReady(){return B(this).L}};n.N=e[0],r.includes(l)||s.get(l)||(o.push(l),s.define(l,G(i,n,1)))}))})),o.length>0&&(m&&(u.textContent+=f),u.textContent+=o+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!=(n=ne.k)?n:l(te);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):ne.jmp((()=>h=setTimeout(U,30)))},_=e=>ne.k=e,z=new WeakMap,B=e=>z.get(e),I=(e,t)=>z.set(t.S=e,t),J=(e,t)=>{const n={u:0,$hostElement$:e,j:t,P:new Map};return n.L=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],z.set(e,n)},K=(e,t)=>t in e,Q=(e,t)=>(0,console.error)(e,t),X=new Map,Y=e=>{const t=e.p.replace(/-/g,"_"),n=e.N;if(!n)return;const l=X.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(X.set(n,e),e[t])),Q)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Z=new Map,ee="undefined"!=typeof window?window:{},te=ee.document||{head:{}},ne={u:0,T:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},le=e=>Promise.resolve(e),oe=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),re=!1,se=[],ie=[],ce=(e,t)=>n=>{e.push(n),re||(re=!0,t&&4&ne.u?fe(ae):ne.raf(ae))},ue=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){Q(e)}e.length=0},ae=()=>{ue(se),ue(ie),(re=se.length>0)&&ne.raf(ae)},fe=e=>le().then(e),he=ce(ie,!0);export{V as b,h,le as p,I as r,_ as s}
|