proto-daisy-db 0.1.5 → 0.1.6

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.
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'proto-daisy-db';
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, modernPropertyDecls: 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 };
24
+ const BUILD = /* proto-daisy-db */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: 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, modernPropertyDecls: 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.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.27.0 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -33,10 +33,15 @@ var __export = (target, all) => {
33
33
  };
34
34
 
35
35
  // src/client/client-host-ref.ts
36
- var hostRefs = /* @__PURE__ */ new WeakMap();
37
- var getHostRef = (ref) => hostRefs.get(ref);
36
+ var getHostRef = (ref) => {
37
+ if (ref.__stencil__getHostRef) {
38
+ return ref.__stencil__getHostRef();
39
+ }
40
+ return void 0;
41
+ };
38
42
  var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
43
+ lazyInstance.__stencil__getHostRef = () => hostRef;
44
+ hostRef.$lazyInstance$ = lazyInstance;
40
45
  };
41
46
  var registerHost = (hostElement, cmpMeta) => {
42
47
  const hostRef = {
@@ -50,7 +55,8 @@ var registerHost = (hostElement, cmpMeta) => {
50
55
  hostElement["s-p"] = [];
51
56
  hostElement["s-rc"] = [];
52
57
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
58
+ const ref = hostRef;
59
+ hostElement.__stencil__getHostRef = () => ref;
54
60
  return ref;
55
61
  };
56
62
  var isMemberInElement = (elm, memberName) => memberName in elm;
@@ -393,68 +399,69 @@ var attachStyles = (hostRef) => {
393
399
  };
394
400
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
395
401
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
396
- if (oldValue !== newValue) {
397
- let isProp = isMemberInElement(elm, memberName);
398
- let ln = memberName.toLowerCase();
399
- if (memberName === "class") {
400
- const classList = elm.classList;
401
- const oldClasses = parseClassList(oldValue);
402
- let newClasses = parseClassList(newValue);
403
- {
404
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
405
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
406
- }
407
- } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
408
- if (memberName[2] === "-") {
409
- memberName = memberName.slice(3);
410
- } else if (isMemberInElement(win, ln)) {
411
- memberName = ln.slice(2);
412
- } else {
413
- memberName = ln[2] + memberName.slice(3);
402
+ if (oldValue === newValue) {
403
+ return;
404
+ }
405
+ let isProp = isMemberInElement(elm, memberName);
406
+ let ln = memberName.toLowerCase();
407
+ if (memberName === "class") {
408
+ const classList = elm.classList;
409
+ const oldClasses = parseClassList(oldValue);
410
+ let newClasses = parseClassList(newValue);
411
+ {
412
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
413
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
414
+ }
415
+ } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
416
+ if (memberName[2] === "-") {
417
+ memberName = memberName.slice(3);
418
+ } else if (isMemberInElement(win, ln)) {
419
+ memberName = ln.slice(2);
420
+ } else {
421
+ memberName = ln[2] + memberName.slice(3);
422
+ }
423
+ if (oldValue || newValue) {
424
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
425
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
426
+ if (oldValue) {
427
+ plt.rel(elm, memberName, oldValue, capture);
414
428
  }
415
- if (oldValue || newValue) {
416
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
417
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
418
- if (oldValue) {
419
- plt.rel(elm, memberName, oldValue, capture);
420
- }
421
- if (newValue) {
422
- plt.ael(elm, memberName, newValue, capture);
423
- }
429
+ if (newValue) {
430
+ plt.ael(elm, memberName, newValue, capture);
424
431
  }
425
- } else {
426
- const isComplex = isComplexType(newValue);
427
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
428
- try {
429
- if (!elm.tagName.includes("-")) {
430
- const n = newValue == null ? "" : newValue;
431
- if (memberName === "list") {
432
- isProp = false;
433
- } else if (oldValue == null || elm[memberName] != n) {
434
- if (typeof elm.__lookupSetter__(memberName) === "function") {
435
- elm[memberName] = n;
436
- } else {
437
- elm.setAttribute(memberName, n);
438
- }
432
+ }
433
+ } else {
434
+ const isComplex = isComplexType(newValue);
435
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
436
+ try {
437
+ if (!elm.tagName.includes("-")) {
438
+ const n = newValue == null ? "" : newValue;
439
+ if (memberName === "list") {
440
+ isProp = false;
441
+ } else if (oldValue == null || elm[memberName] != n) {
442
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
443
+ elm[memberName] = n;
444
+ } else {
445
+ elm.setAttribute(memberName, n);
439
446
  }
440
- } else if (elm[memberName] !== newValue) {
441
- elm[memberName] = newValue;
442
447
  }
443
- } catch (e) {
448
+ } else if (elm[memberName] !== newValue) {
449
+ elm[memberName] = newValue;
444
450
  }
451
+ } catch (e) {
445
452
  }
446
- if (newValue == null || newValue === false) {
447
- if (newValue !== false || elm.getAttribute(memberName) === "") {
448
- {
449
- elm.removeAttribute(memberName);
450
- }
451
- }
452
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
453
- newValue = newValue === true ? "" : newValue;
453
+ }
454
+ if (newValue == null || newValue === false) {
455
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
454
456
  {
455
- elm.setAttribute(memberName, newValue);
457
+ elm.removeAttribute(memberName);
456
458
  }
457
459
  }
460
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
461
+ newValue = newValue === true ? "" : newValue;
462
+ {
463
+ elm.setAttribute(memberName, newValue);
464
+ }
458
465
  }
459
466
  }
460
467
  };
@@ -667,9 +674,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
667
674
  const text = newVNode2.$text$;
668
675
  if (text === null) {
669
676
  {
670
- {
671
- updateElement(oldVNode, newVNode2, isSvgMode);
672
- }
677
+ updateElement(oldVNode, newVNode2, isSvgMode);
673
678
  }
674
679
  if (oldChildren !== null && newChildren !== null) {
675
680
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -749,6 +754,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
749
754
  );
750
755
  }
751
756
  let maybePromise;
757
+ if (isInitialLoad) {
758
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
759
+ } else {
760
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
761
+ }
762
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
752
763
  endSchedule();
753
764
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
754
765
  };
@@ -814,14 +825,13 @@ var postUpdateComponent = (hostRef) => {
814
825
  const endPostUpdate = createTime("postUpdate", tagName);
815
826
  const instance = hostRef.$lazyInstance$ ;
816
827
  const ancestorComponent = hostRef.$ancestorComponent$;
828
+ safeCall(instance, "componentDidRender", void 0, elm);
817
829
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
818
830
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
819
831
  {
820
832
  addHydratedFlag(elm);
821
833
  }
822
- {
823
- safeCall(instance, "componentDidLoad", void 0, elm);
824
- }
834
+ safeCall(instance, "componentDidLoad", void 0, elm);
825
835
  endPostUpdate();
826
836
  {
827
837
  hostRef.$onReadyResolve$(elm);
@@ -830,6 +840,7 @@ var postUpdateComponent = (hostRef) => {
830
840
  }
831
841
  }
832
842
  } else {
843
+ safeCall(instance, "componentDidUpdate", void 0, elm);
833
844
  endPostUpdate();
834
845
  }
835
846
  {
@@ -880,6 +891,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
880
891
  hostRef.$instanceValues$.set(propName, newVal);
881
892
  if (instance) {
882
893
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
894
+ if (instance.componentShouldUpdate) {
895
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
896
+ return;
897
+ }
898
+ }
883
899
  scheduleUpdate(hostRef, false);
884
900
  }
885
901
  }
@@ -1042,6 +1058,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1042
1058
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1043
1059
  }
1044
1060
  endNewInstance();
1061
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1045
1062
  } else {
1046
1063
  Cstr = elm.constructor;
1047
1064
  const cmpTag = elm.localName;
@@ -1069,6 +1086,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1069
1086
  }
1070
1087
  };
1071
1088
  var fireConnectedCallback = (instance, elm) => {
1089
+ {
1090
+ safeCall(instance, "connectedCallback", void 0, elm);
1091
+ }
1072
1092
  };
1073
1093
 
1074
1094
  // src/runtime/connected-callback.ts
@@ -1101,20 +1121,27 @@ var connectedCallback = (elm) => {
1101
1121
  initializeComponent(elm, hostRef, cmpMeta);
1102
1122
  }
1103
1123
  } else {
1104
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1105
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1124
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1125
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1126
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1127
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1106
1128
  }
1107
1129
  }
1108
1130
  endConnected();
1109
1131
  }
1110
1132
  };
1111
1133
  var disconnectInstance = (instance, elm) => {
1134
+ {
1135
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1136
+ }
1112
1137
  };
1113
1138
  var disconnectedCallback = async (elm) => {
1114
1139
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1115
1140
  const hostRef = getHostRef(elm);
1116
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1117
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1141
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1142
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1143
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1144
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1118
1145
  }
1119
1146
  }
1120
1147
  if (rootAppliedStyles.has(elm)) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-8d35983b.js');
5
+ const index = require('./index-7bd4463a.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-8d35983b.js');
5
+ const index = require('./index-7bd4463a.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.27.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,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-8d35983b.js');
5
+ const index = require('./index-7bd4463a.js');
6
6
 
7
7
  const KEY = 'proto-daisy-db:app-data';
8
8
  const promisedParseJSON = (json) => {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "compiler": {
10
10
  "name": "@stencil/core",
11
- "version": "4.26.0",
11
+ "version": "4.27.0",
12
12
  "typescriptVersion": "5.5.4"
13
13
  },
14
14
  "collections": [],
@@ -1,8 +1,8 @@
1
1
  const NAMESPACE = 'proto-daisy-db';
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, modernPropertyDecls: 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 };
2
+ const BUILD = /* proto-daisy-db */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: 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, modernPropertyDecls: 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.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.27.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -11,10 +11,15 @@ var __export = (target, all) => {
11
11
  };
12
12
 
13
13
  // src/client/client-host-ref.ts
14
- var hostRefs = /* @__PURE__ */ new WeakMap();
15
- var getHostRef = (ref) => hostRefs.get(ref);
14
+ var getHostRef = (ref) => {
15
+ if (ref.__stencil__getHostRef) {
16
+ return ref.__stencil__getHostRef();
17
+ }
18
+ return void 0;
19
+ };
16
20
  var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
21
+ lazyInstance.__stencil__getHostRef = () => hostRef;
22
+ hostRef.$lazyInstance$ = lazyInstance;
18
23
  };
19
24
  var registerHost = (hostElement, cmpMeta) => {
20
25
  const hostRef = {
@@ -28,7 +33,8 @@ var registerHost = (hostElement, cmpMeta) => {
28
33
  hostElement["s-p"] = [];
29
34
  hostElement["s-rc"] = [];
30
35
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
36
+ const ref = hostRef;
37
+ hostElement.__stencil__getHostRef = () => ref;
32
38
  return ref;
33
39
  };
34
40
  var isMemberInElement = (elm, memberName) => memberName in elm;
@@ -371,68 +377,69 @@ var attachStyles = (hostRef) => {
371
377
  };
372
378
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
373
379
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
374
- if (oldValue !== newValue) {
375
- let isProp = isMemberInElement(elm, memberName);
376
- let ln = memberName.toLowerCase();
377
- if (memberName === "class") {
378
- const classList = elm.classList;
379
- const oldClasses = parseClassList(oldValue);
380
- let newClasses = parseClassList(newValue);
381
- {
382
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
383
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
384
- }
385
- } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
386
- if (memberName[2] === "-") {
387
- memberName = memberName.slice(3);
388
- } else if (isMemberInElement(win, ln)) {
389
- memberName = ln.slice(2);
390
- } else {
391
- memberName = ln[2] + memberName.slice(3);
380
+ if (oldValue === newValue) {
381
+ return;
382
+ }
383
+ let isProp = isMemberInElement(elm, memberName);
384
+ let ln = memberName.toLowerCase();
385
+ if (memberName === "class") {
386
+ const classList = elm.classList;
387
+ const oldClasses = parseClassList(oldValue);
388
+ let newClasses = parseClassList(newValue);
389
+ {
390
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
391
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
392
+ }
393
+ } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
394
+ if (memberName[2] === "-") {
395
+ memberName = memberName.slice(3);
396
+ } else if (isMemberInElement(win, ln)) {
397
+ memberName = ln.slice(2);
398
+ } else {
399
+ memberName = ln[2] + memberName.slice(3);
400
+ }
401
+ if (oldValue || newValue) {
402
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
403
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
404
+ if (oldValue) {
405
+ plt.rel(elm, memberName, oldValue, capture);
392
406
  }
393
- if (oldValue || newValue) {
394
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
395
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
396
- if (oldValue) {
397
- plt.rel(elm, memberName, oldValue, capture);
398
- }
399
- if (newValue) {
400
- plt.ael(elm, memberName, newValue, capture);
401
- }
407
+ if (newValue) {
408
+ plt.ael(elm, memberName, newValue, capture);
402
409
  }
403
- } else {
404
- const isComplex = isComplexType(newValue);
405
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
406
- try {
407
- if (!elm.tagName.includes("-")) {
408
- const n = newValue == null ? "" : newValue;
409
- if (memberName === "list") {
410
- isProp = false;
411
- } else if (oldValue == null || elm[memberName] != n) {
412
- if (typeof elm.__lookupSetter__(memberName) === "function") {
413
- elm[memberName] = n;
414
- } else {
415
- elm.setAttribute(memberName, n);
416
- }
410
+ }
411
+ } else {
412
+ const isComplex = isComplexType(newValue);
413
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
414
+ try {
415
+ if (!elm.tagName.includes("-")) {
416
+ const n = newValue == null ? "" : newValue;
417
+ if (memberName === "list") {
418
+ isProp = false;
419
+ } else if (oldValue == null || elm[memberName] != n) {
420
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
421
+ elm[memberName] = n;
422
+ } else {
423
+ elm.setAttribute(memberName, n);
417
424
  }
418
- } else if (elm[memberName] !== newValue) {
419
- elm[memberName] = newValue;
420
425
  }
421
- } catch (e) {
426
+ } else if (elm[memberName] !== newValue) {
427
+ elm[memberName] = newValue;
422
428
  }
429
+ } catch (e) {
423
430
  }
424
- if (newValue == null || newValue === false) {
425
- if (newValue !== false || elm.getAttribute(memberName) === "") {
426
- {
427
- elm.removeAttribute(memberName);
428
- }
429
- }
430
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
431
- newValue = newValue === true ? "" : newValue;
431
+ }
432
+ if (newValue == null || newValue === false) {
433
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
432
434
  {
433
- elm.setAttribute(memberName, newValue);
435
+ elm.removeAttribute(memberName);
434
436
  }
435
437
  }
438
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
439
+ newValue = newValue === true ? "" : newValue;
440
+ {
441
+ elm.setAttribute(memberName, newValue);
442
+ }
436
443
  }
437
444
  }
438
445
  };
@@ -645,9 +652,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
645
652
  const text = newVNode2.$text$;
646
653
  if (text === null) {
647
654
  {
648
- {
649
- updateElement(oldVNode, newVNode2, isSvgMode);
650
- }
655
+ updateElement(oldVNode, newVNode2, isSvgMode);
651
656
  }
652
657
  if (oldChildren !== null && newChildren !== null) {
653
658
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -727,6 +732,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
727
732
  );
728
733
  }
729
734
  let maybePromise;
735
+ if (isInitialLoad) {
736
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
737
+ } else {
738
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
739
+ }
740
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
730
741
  endSchedule();
731
742
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
732
743
  };
@@ -792,14 +803,13 @@ var postUpdateComponent = (hostRef) => {
792
803
  const endPostUpdate = createTime("postUpdate", tagName);
793
804
  const instance = hostRef.$lazyInstance$ ;
794
805
  const ancestorComponent = hostRef.$ancestorComponent$;
806
+ safeCall(instance, "componentDidRender", void 0, elm);
795
807
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
796
808
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
797
809
  {
798
810
  addHydratedFlag(elm);
799
811
  }
800
- {
801
- safeCall(instance, "componentDidLoad", void 0, elm);
802
- }
812
+ safeCall(instance, "componentDidLoad", void 0, elm);
803
813
  endPostUpdate();
804
814
  {
805
815
  hostRef.$onReadyResolve$(elm);
@@ -808,6 +818,7 @@ var postUpdateComponent = (hostRef) => {
808
818
  }
809
819
  }
810
820
  } else {
821
+ safeCall(instance, "componentDidUpdate", void 0, elm);
811
822
  endPostUpdate();
812
823
  }
813
824
  {
@@ -858,6 +869,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
858
869
  hostRef.$instanceValues$.set(propName, newVal);
859
870
  if (instance) {
860
871
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
872
+ if (instance.componentShouldUpdate) {
873
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
874
+ return;
875
+ }
876
+ }
861
877
  scheduleUpdate(hostRef, false);
862
878
  }
863
879
  }
@@ -1020,6 +1036,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1020
1036
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1021
1037
  }
1022
1038
  endNewInstance();
1039
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1023
1040
  } else {
1024
1041
  Cstr = elm.constructor;
1025
1042
  const cmpTag = elm.localName;
@@ -1047,6 +1064,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1047
1064
  }
1048
1065
  };
1049
1066
  var fireConnectedCallback = (instance, elm) => {
1067
+ {
1068
+ safeCall(instance, "connectedCallback", void 0, elm);
1069
+ }
1050
1070
  };
1051
1071
 
1052
1072
  // src/runtime/connected-callback.ts
@@ -1079,20 +1099,27 @@ var connectedCallback = (elm) => {
1079
1099
  initializeComponent(elm, hostRef, cmpMeta);
1080
1100
  }
1081
1101
  } else {
1082
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1083
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1102
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1103
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1104
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1105
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1084
1106
  }
1085
1107
  }
1086
1108
  endConnected();
1087
1109
  }
1088
1110
  };
1089
1111
  var disconnectInstance = (instance, elm) => {
1112
+ {
1113
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1114
+ }
1090
1115
  };
1091
1116
  var disconnectedCallback = async (elm) => {
1092
1117
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1093
1118
  const hostRef = getHostRef(elm);
1094
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1095
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1119
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1120
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1121
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1122
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1096
1123
  }
1097
1124
  }
1098
1125
  if (rootAppliedStyles.has(elm)) {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-56dd7fbc.js';
2
- export { s as setNonce } from './index-56dd7fbc.js';
1
+ import { b as bootstrapLazy } from './index-abda3099.js';
2
+ export { s as setNonce } from './index-abda3099.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-56dd7fbc.js';
2
- export { s as setNonce } from './index-56dd7fbc.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-abda3099.js';
2
+ export { s as setNonce } from './index-abda3099.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.27.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-56dd7fbc.js';
1
+ import { r as registerInstance, h } from './index-abda3099.js';
2
2
 
3
3
  const KEY = 'proto-daisy-db:app-data';
4
4
  const promisedParseJSON = (json) => {
@@ -1 +1 @@
1
- import{r as t,h as a}from"./p-99859ab5.js";const n="proto-daisy-db:app-data",e=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(n),new Promise(((t,n)=>{try{t(JSON.parse(a))}catch(t){n(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(n,a)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return a("div",{key:"35e42fc3a7d518f3bc0211bc5f2c8221fd9bcc81"})}};e.style="";const s=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))))}};s.style="";const o=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:""))}};o.style="";const r=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}))}};r.style="/*! tailwindcss v4.0.8 | MIT License | https://tailwindcss.com */\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n --spacing: 0.25rem;\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --radius-md: 0.375rem;\n }\n}\n@layer utilities {\n .mt-2 {\n margin-top: calc(var(--spacing) * 2);\n }\n .mt-4 {\n margin-top: calc(var(--spacing) * 4);\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-row {\n flex-direction: row;\n }\n .content-center {\n align-content: center;\n }\n .gap-2 {\n gap: calc(var(--spacing) * 2);\n }\n .rounded-md {\n border-radius: var(--radius-md);\n }\n .border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-aqua {\n border-color: var(--clrs-aqua, #7fdbff);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-navy {\n background-color: var(--clrs-navy, #001f3f);\n }\n .p-2 {\n padding: calc(var(--spacing) * 2);\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .italic {\n font-style: italic;\n }\n .shadow {\n --tw-shadow:\n 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)),\n 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow), var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n}\n@layer components {\n .btn {\n border-radius: var(--radius-md);\n border-style: var(--tw-border-style);\n border-width: 1px;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-aqua, #7fdbff);\n padding: calc(var(--spacing) * 2);\n }\n}\n";const i=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))}};i.style="proto-faux-type{}";export{e as proto_daisy_db,s as proto_faux_keys,o as proto_faux_stamp,r as proto_faux_trigger,i as proto_faux_type}
1
+ import{r as t,h as a}from"./p-ad1409b3.js";const n="proto-daisy-db:app-data",e=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(n),new Promise(((t,n)=>{try{t(JSON.parse(a))}catch(t){n(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(n,a)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return a("div",{key:"35e42fc3a7d518f3bc0211bc5f2c8221fd9bcc81"})}};e.style="";const s=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))))}};s.style="";const o=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:""))}};o.style="";const r=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}))}};r.style="/*! tailwindcss v4.0.8 | MIT License | https://tailwindcss.com */\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n --spacing: 0.25rem;\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --radius-md: 0.375rem;\n }\n}\n@layer utilities {\n .mt-2 {\n margin-top: calc(var(--spacing) * 2);\n }\n .mt-4 {\n margin-top: calc(var(--spacing) * 4);\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-row {\n flex-direction: row;\n }\n .content-center {\n align-content: center;\n }\n .gap-2 {\n gap: calc(var(--spacing) * 2);\n }\n .rounded-md {\n border-radius: var(--radius-md);\n }\n .border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-aqua {\n border-color: var(--clrs-aqua, #7fdbff);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-navy {\n background-color: var(--clrs-navy, #001f3f);\n }\n .p-2 {\n padding: calc(var(--spacing) * 2);\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .italic {\n font-style: italic;\n }\n .shadow {\n --tw-shadow:\n 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)),\n 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow), var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n}\n@layer components {\n .btn {\n border-radius: var(--radius-md);\n border-style: var(--tw-border-style);\n border-width: 1px;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-aqua, #7fdbff);\n padding: calc(var(--spacing) * 2);\n }\n}\n";const d=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))}};d.style="proto-faux-type{}";export{e as proto_daisy_db,s as proto_faux_keys,o as proto_faux_stamp,r as proto_faux_trigger,d as proto_faux_type}
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{e.__stencil__getHostRef=()=>t,t.t=e},o=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),i=new Map,s=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),h=!1,p=[],m=[],y=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&a.o?b($):a.raf($))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},$=()=>{v(p),v(m),(h=p.length>0)&&a.raf($)},b=e=>f().then(e),w=y(m,!0),S=e=>"object"==(e=typeof e)||"function"===e;function g(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>E,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function O(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,E=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!S(o))&&(o+=""),i&&s?r[r.length-1].i+=o:r.push(i?P(null,o):o),s=i)};if(c(n),t){t.key&&(l=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=P(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},P=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),R={},D=(e,t)=>null==e||S(e)?e:1&t?e+"":e,U=new WeakMap,A=e=>"sc-"+e.$,L=(e,t,n,l,i,s)=>{if(n===l)return;let r=o(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,o=T(n);let i=T(l);t.remove(...o.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const o=S(l);if((r||o&&null!==l)&&!i)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||i)&&!o&&1===e.nodeType&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(c,u)?u.slice(2):u[2]+t.slice(3),n||l){const o=t.endsWith(W);t=t.replace(H,""),n&&a.rel(e,t,n,o),l&&a.ael(e,t,l,o)}},N=/\s/,T=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(N):[]),W="Capture",H=RegExp(W+"$"),F=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},i=t.u||{};for(const e of V(Object.keys(l)))e in i||L(o,e,l[e],void 0,n,t.o);for(const e of V(Object.keys(i)))L(o,e,l[e],i[e],n,t.o)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var q=!1,G=(e,t,n)=>{const o=t.h[n];let l,i,s=0;if(null!==o.i)l=o.v=u.createTextNode(o.i);else if(l=o.v=u.createElement(o.m),F(null,o,q),o.h)for(s=0;s<o.h.length;++s)i=G(e,o,s),i&&l.appendChild(i);return l["s-hn"]=C,l},_=(e,t,n,o,l,i)=>{let s,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=i;++l)o[l]&&(s=G(null,n,l),s&&(o[l].v=s,J(r,s,t)))},z=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},B=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),I=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,i=t.h,s=t.i;null===s?(F(e,t,q),null!==l&&null!==i?((e,t,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(B(d,m,l))I(d,m,l),d=t[++r],m=o[++c];else if(B(h,y,l))I(h,y,l),h=t[--f],y=o[--p];else if(B(d,y,l))I(d,y,l),J(e,d.v,h.v.nextSibling),d=t[++r],y=o[--p];else if(B(h,m,l))I(h,m,l),J(e,h.v,d.v),h=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(s=t[u],s.m!==m.m?i=G(t&&t[c],n,u):(I(s,m,l),t[u]=void 0,i=s.v),m=o[++c]):(i=G(t&&t[c],n,c),m=o[++c]),i&&J(d.v.parentNode,i,d.v)}r>f?_(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&z(t,r,f)})(o,l,t,i,n):null!==i?(null!==e.i&&(o.textContent=""),_(o,null,t,i,0,i.length-1)):!n&&null!==l&&z(l,0,l.length-1)):e.i!==s&&(o.data=s)},J=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),K=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Q=(e,t)=>{if(e.o|=16,!(4&e.o))return K(e,e.j),w((()=>X(e,t)));e.o|=512},X=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.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`);let l;return l=le(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),l=Y(l,(()=>le(o,"componentWillRender",void 0,n))),Y(l,(()=>ee(e,o,t)))},Y=(e,t)=>Z(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Z=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ee=async(e,t,n)=>{var o;const l=e.$hostElement$,i=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=A(t),l=s.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let i,s=U.get(e=e.head||e);if(s||U.set(e,s=new Set),!s.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),i.innerHTML=l;const s=null!=(n=a.O)?n:g(u);if(null!=s&&i.setAttribute("nonce",s),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(i)}else e.append(i);1&t.o&&e.insertBefore(i,null)}4&t.o&&(i.innerHTML+=r),s&&s.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);te(e,t,l,n),i&&(i.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ne(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},te=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,i=e.C||P(null,null),s=(e=>e&&e.m===R)(t)?t:x(null,null,t);if(C=o.tagName,n&&s.u)for(const e of Object.keys(s.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.u[e]=o[e]);s.m=null,s.o|=4,e.C=s,s.v=i.v=o.shadowRoot||o,I(i,s,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ne=e=>{const t=e.$hostElement$,n=e.t,o=e.j;le(n,"componentDidRender",void 0,t),64&e.o?le(n,"componentDidUpdate",void 0,t):(e.o|=64,ie(t),le(n,"componentDidLoad",void 0,t),e.M(t),o||oe()),e.S&&(e.S(),e.S=void 0),512&e.o&&b((()=>Q(e,!1))),e.o&=-517},oe=()=>{b((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(c)))},le=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},ie=e=>e.classList.add("hydrated"),se=(e,n,o,l)=>{const i=t(e);if(!i)throw Error(`Couldn't find host element for "${l.$}" 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=i.P.get(n),r=i.o,c=i.t;if(o=D(o,l.R[n][0]),(!(8&r)||void 0===s)&&o!==s&&(!Number.isNaN(s)||!Number.isNaN(o))&&(i.P.set(n,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,s,n))return;Q(i,!1)}},re=(e,n,o)=>{var l,i;const s=e.prototype;if(n.R){const r=Object.entries(null!=(l=n.R)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,e)||{};i&&(n.R[e][0]|=2048),r&&(n.R[e][0]|=4096),(1&o||!i)&&Object.defineProperty(s,e,{get(){{if(!(2048&n.R[e][0]))return((e,n)=>t(this).P.get(n))(0,e);const o=t(this),l=o?o.t:s;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,e,{set(i){const s=t(this);if(r){const t=32&l?this[e]:s.$hostElement$[e];return void 0===t&&s.P.get(e)?i=s.P.get(e):!s.P.get(e)&&t&&s.P.set(e,t),r.call(this,D(i,l)),void se(this,e,i=32&l?this[e]:s.$hostElement$[e],n)}{if(!(1&o&&4096&n.R[e][0]))return se(this,e,i,n),void(1&o&&!s.t&&s.D.then((()=>{4096&n.R[e][0]&&s.t[e]!==s.P.get(e)&&(s.t[e]=i)})));const t=()=>{const t=s.t[e];!s.P.get(e)&&t&&s.P.set(e,t),s.t[e]=D(i,l),se(this,e,s.t[e],n)};s.t?t():s.D.then((()=>t()))}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(e,l,i){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=t(this),s=null==o?void 0:o.o;if(s&&!(8&s)&&128&s&&i!==l){const t=o.t,s=null==(r=n.U)?void 0:r[e];null==s||s.forEach((n=>{null!=t[n]&&t[n].call(t,i,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(s,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||u.get&&!u.set||(this[c]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=n.U)?i:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ce=(e,t)=>{le(e,"connectedCallback",void 0,t)},ue=(e,t)=>{le(e,"disconnectedCallback",void 0,t||e)},ae=(e,n={})=>{var o;const f=[],h=n.exclude||[],p=c.customElements,m=u.head,y=m.querySelector("meta[charset]"),v=u.createElement("style"),$=[];let b,w=!0;Object.assign(a,n),a.l=new URL(n.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((n=>{const o={o:n[0],$:n[1],R:n[2],A:n[3]};4&o.o&&(S=!0),o.R=n[2];const r=o.$,c=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,k:t,P:new Map};n.D=new Promise((e=>n.M=e)),e["s-p"]=[],e["s-rc"]=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,o),1&o.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.$}! 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),b&&(clearTimeout(b),b=null),w?$.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const n=t(e),o=n.k,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?ce(n.t,e):(null==n?void 0:n.D)&&n.D.then((()=>ce(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){K(n,n.j=t);break}}o.R&&Object.entries(o.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.L){const s=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.L;if(!o)return;const s=i.get(o);return s?s[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(s&&"then"in s){const e=()=>{};o=await s,e()}else o=s;if(!o)throw Error(`Constructor for "${n.$}#${t.N}" was not found`);o.isProxied||(re(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,r(),ce(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=A(n);if(!s.has(t)){const o=()=>{};((e,t,n)=>{let o=s.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,s.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>Q(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,n,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const n=t(e);(null==n?void 0:n.t)?ue(n.t,e):(null==n?void 0:n.D)&&n.D.then((()=>ue(n.t,e)))}U.has(e)&&U.delete(e),e.shadowRoot&&U.has(e.shadowRoot)&&U.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const n=t(this),o=$.findIndex((e=>e===this));o>-1&&$.splice(o,1),(null==(e=null==n?void 0:n.C)?void 0:e.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return t(this).D}};o.L=e[0],h.includes(r)||p.get(r)||(f.push(r),p.define(r,re(c,o,1)))}))})),f.length>0&&(S&&(v.textContent+=r),v.textContent+=f.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=a.O)?o:g(u);null!=e&&v.setAttribute("nonce",e),m.insertBefore(v,y?y.nextSibling:m.firstChild)}w=!1,$.length?$.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(oe,30)))},fe=e=>a.O=e;export{ae as b,x as h,f as p,n as r,fe as s}
@@ -1 +1 @@
1
- import{p as t,b as a}from"./p-99859ab5.js";export{s as setNonce}from"./p-99859ab5.js";import{g as e}from"./p-e1255160.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),t(e)})().then((async t=>(await e(),a([["p-921c30db",[[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))));
1
+ import{p as t,b as a}from"./p-ad1409b3.js";export{s as setNonce}from"./p-ad1409b3.js";import{g as e}from"./p-e1255160.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),t(e)})().then((async t=>(await e(),a([["p-2ddf329b",[[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))));
@@ -22,6 +22,10 @@ export namespace Components {
22
22
  interface ProtoFauxType {
23
23
  "emitter": string;
24
24
  "eventType": string;
25
+ /**
26
+ * @deprecated use camelCase instead. Support for dash-casing will be removed in Stencil v5.
27
+ */
28
+ "event-type"?: string;
25
29
  }
26
30
  }
27
31
  declare global {
@@ -80,6 +84,10 @@ declare namespace LocalJSX {
80
84
  interface ProtoFauxType {
81
85
  "emitter"?: string;
82
86
  "eventType"?: string;
87
+ /**
88
+ * @deprecated use camelCase instead. Support for dash-casing will be removed in Stencil v5.
89
+ */
90
+ "event-type"?: string;
83
91
  }
84
92
  interface IntrinsicElements {
85
93
  "proto-daisy-db": ProtoDaisyDb;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-daisy-db",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -27,15 +27,15 @@
27
27
  "format": "prettier --write src"
28
28
  },
29
29
  "dependencies": {
30
- "@stencil/core": "4.26.0",
30
+ "@stencil/core": "4.27.0",
31
31
  "mitt": "3.0.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "autoprefixer": "10.4.20",
35
35
  "concurrently": "9.1.2",
36
- "cspell": "8.17.4",
36
+ "cspell": "8.17.5",
37
37
  "postcss": "8.5.3",
38
- "prettier": "3.5.1",
38
+ "prettier": "3.5.2",
39
39
  "prettier-plugin-tailwindcss": "0.6.11",
40
40
  "proto-tailwindcss-clrs": "0.0.410",
41
41
  "tailwindcss": "4.0.8",
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],y=[],v=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&a.o?w(b):a.raf(b))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},b=()=>{$(m),$(y),(p=m.length>0)&&a.raf(b)},w=t=>h().then(t),S=v(y,!0),g=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=A(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},A=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),N={},R=(t,e)=>null==t||g(t)?t:1&e?t+"":t,T=new WeakMap,D=t=>"sc-"+t.$,H=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=U(n);let s=U(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const l=g(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(F);e=e.replace(V,""),n&&a.rel(t,e,n,l),o&&a.ael(t,e,o,l)}}},L=/\s/,U=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(L):[]),F="Capture",V=RegExp(F+"$"),W=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of q(Object.keys(l)))t in s||H(o,t,l[t],void 0,n,e.o);for(const t of q(Object.keys(s)))H(o,t,l[t],s[t],n,e.o)};function q(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var G=!1,_=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else if(l=o.v=f.createElement(o.m),W(null,o,G),o.h)for(i=0;i<o.h.length;++i)s=_(t,o,i),s&&l.appendChild(s);return l["s-hn"]=C,l},z=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=_(null,n,l),i&&(o[l].v=i,K(r,i,e)))},B=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},I=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),J=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.i;null===i?(W(t,e,G),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,h=e[0],d=e[a],p=o.length-1,m=o[0],y=o[p];for(;r<=a&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(I(h,m,l))J(h,m,l),h=e[++r],m=o[++c];else if(I(d,y,l))J(d,y,l),d=e[--a],y=o[--p];else if(I(h,y,l))J(h,y,l),K(t,h.v,d.v.nextSibling),h=e[++r],y=o[--p];else if(I(d,m,l))J(d,m,l),K(t,d.v,h.v),d=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){u=f;break}u>=0?(i=e[u],i.m!==m.m?s=_(e&&e[c],n,u):(J(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=_(e&&e[c],n,c),m=o[++c]),s&&K(h.v.parentNode,s,h.v)}r>a?z(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&B(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),z(o,null,e,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1)):t.i!==i&&(o.data=i)},K=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Q=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},X=(t,e)=>{if(t.o|=16,!(4&t.o))return Q(t,t.j),S((()=>Y(t,e)));t.o|=512},Y=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$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 Z(void 0,(()=>et(t,n,e)))},Z=(t,e)=>tt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),tt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,et=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=D(e),l=r.get(o);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let s,i=T.get(t=t.head||t);if(i||T.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);nt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>ot(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},nt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.O,s=t.C||A(null,null),i=(t=>t&&t.m===N)(e)?e:P(null,null,e);if(C=o.tagName,n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.C=i,i.v=s.v=o.shadowRoot||o,J(s,i,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},ot=t=>{const e=t.$hostElement$,n=t.t,o=t.j;64&t.o||(t.o|=64,it(e),st(n,"componentDidLoad",void 0,e),t.M(e),o||lt()),t.S&&(t.S(),t.S=void 0),512&t.o&&w((()=>X(t,!1))),t.o&=-517},lt=()=>{w((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"proto-daisy-db"}});return t.dispatchEvent(e),e})(u)))},st=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},it=t=>t.classList.add("hydrated"),rt=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.$}" 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 i=s.P.get(e),r=s.o,c=s.t;o=R(o,l.A[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(e,o),c&&2==(18&r)&&X(s,!1))},ct=(t,e,o)=>{var l,s;const i=t.prototype;if(e.A){const r=Object.entries(null!=(l=e.A)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.A[t][0]|=2048),r&&(e.A[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.A[t][0]))return((t,e)=>n(this).P.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.P.get(t)?s=i.P.get(t):!i.P.get(t)&&n&&i.P.set(t,n),r.call(this,R(s,l)),void rt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.A[t][0]))return rt(this,t,s,e),void(1&o&&!i.t&&i.N.then((()=>{4096&e.A[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.P.get(t)&&n&&i.P.set(t,n),i.t[t]=R(s,l),rt(this,t,i.t[t],e)};i.t?n():i.N.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.R)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.R)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},ut=(t,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=f.head,v=y.querySelector("meta[charset]"),$=f.createElement("style"),b=[];let w,S=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],$:o[1],A:o[2],T:o[3]};4&l.o&&(g=!0),l.A=o[2];const c=l.$,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,O:n,P:new Map};o.N=new Promise((t=>o.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.O,l=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Q(e,e.j=n);break}}o.A&&Object.entries(o.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.D){const l=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.D;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${e.H}" was not found`);o.isProxied||(ct(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,r()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=D(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.j,c=()=>X(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.C)?void 0:t.v)instanceof Node&&!e.C.v.isConnected&&delete e.C.v}))}componentOnReady(){return n(this).N}};l.D=t[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ct(u,l,1)))}))})),h.length>0&&(g&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const t=null!=(l=a.k)?l:j(f);null!=t&&$.setAttribute("nonce",t),y.insertBefore($,v?v.nextSibling:y.firstChild)}S=!1,b.length?b.map((t=>t.connectedCallback())):a.jmp((()=>w=setTimeout(lt,30)))},ft=t=>a.k=t;export{ut as b,P as h,h as p,o as r,ft as s}