proto-daisy-db 0.0.146 → 0.0.148
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-d12db9c0.js → index-7333201d.js} +52 -16
- package/dist/cjs/loader.cjs.js +2 -2
- 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-7cd792ae.js → index-efb9825b.js} +52 -16
- package/dist/esm/loader.js +3 -3
- 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-ccc3bc35.js +2 -0
- package/dist/proto-daisy-db/{p-9222b840.entry.js → p-f729fd63.entry.js} +1 -1
- package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/package.json +3 -3
- package/dist/proto-daisy-db/p-643beff8.js +0 -2
|
@@ -503,15 +503,16 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
503
503
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
504
504
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
505
505
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
506
|
-
* @param vnode a VNode
|
|
507
|
-
* @param elm an element
|
|
508
506
|
*/
|
|
509
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
510
|
-
for (
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
elm
|
|
507
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
508
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
509
|
+
const vnode = vnodes[index];
|
|
510
|
+
if (vnode) {
|
|
511
|
+
const elm = vnode.$elm$;
|
|
512
|
+
if (elm) {
|
|
513
|
+
// remove the vnode's element from the dom
|
|
514
|
+
elm.remove();
|
|
515
|
+
}
|
|
515
516
|
}
|
|
516
517
|
}
|
|
517
518
|
};
|
|
@@ -806,15 +807,53 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
806
807
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
807
808
|
return writeTask(dispatch) ;
|
|
808
809
|
};
|
|
810
|
+
/**
|
|
811
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
812
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
813
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
814
|
+
*
|
|
815
|
+
* @param hostRef a reference to a host DOM node
|
|
816
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
817
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
818
|
+
* the component
|
|
819
|
+
*/
|
|
809
820
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
810
821
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
811
822
|
const instance = hostRef.$lazyInstance$ ;
|
|
812
|
-
|
|
823
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
824
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
825
|
+
// the first function to the queue we'll set this variable to be that
|
|
826
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
827
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
828
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
829
|
+
// queue two nice properties:
|
|
830
|
+
//
|
|
831
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
832
|
+
// synchronously right away.
|
|
833
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
834
|
+
// called in order after `dispatchHooks` exits.
|
|
835
|
+
let maybePromise;
|
|
813
836
|
endSchedule();
|
|
814
|
-
return
|
|
837
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
815
838
|
};
|
|
839
|
+
/**
|
|
840
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
841
|
+
* of functions to be called.
|
|
842
|
+
*
|
|
843
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
844
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
845
|
+
* be called synchronously (although note that this function may return a
|
|
846
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
847
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
848
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
849
|
+
* as the first argument.
|
|
850
|
+
*
|
|
851
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
852
|
+
* @param fn a function to enqueue
|
|
853
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
854
|
+
*/
|
|
855
|
+
const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
|
|
816
856
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
817
|
-
// updateComponent
|
|
818
857
|
const elm = hostRef.$hostElement$;
|
|
819
858
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
820
859
|
const rc = elm['s-rc'];
|
|
@@ -934,9 +973,6 @@ const safeCall = (instance, method, arg) => {
|
|
|
934
973
|
}
|
|
935
974
|
return undefined;
|
|
936
975
|
};
|
|
937
|
-
const then = (promise, thenFn) => {
|
|
938
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
939
|
-
};
|
|
940
976
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
941
977
|
;
|
|
942
978
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -1067,9 +1103,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1067
1103
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1068
1104
|
// initializeComponent
|
|
1069
1105
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1106
|
+
// Let the runtime know that the component has been initialized
|
|
1107
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1070
1108
|
{
|
|
1071
|
-
// we haven't initialized this element yet
|
|
1072
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1073
1109
|
// lazy loaded components
|
|
1074
1110
|
// request the component's implementation to be
|
|
1075
1111
|
// wired up with the host element
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-7333201d.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v3.2.
|
|
8
|
+
Stencil Client Patch Esm v3.2.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-7333201d.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v3.2.
|
|
8
|
+
Stencil Client Patch Browser v3.2.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
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));
|
|
@@ -481,15 +481,16 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
481
481
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
482
482
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
483
483
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
484
|
-
* @param vnode a VNode
|
|
485
|
-
* @param elm an element
|
|
486
484
|
*/
|
|
487
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
488
|
-
for (
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
elm
|
|
485
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
486
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
487
|
+
const vnode = vnodes[index];
|
|
488
|
+
if (vnode) {
|
|
489
|
+
const elm = vnode.$elm$;
|
|
490
|
+
if (elm) {
|
|
491
|
+
// remove the vnode's element from the dom
|
|
492
|
+
elm.remove();
|
|
493
|
+
}
|
|
493
494
|
}
|
|
494
495
|
}
|
|
495
496
|
};
|
|
@@ -784,15 +785,53 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
784
785
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
785
786
|
return writeTask(dispatch) ;
|
|
786
787
|
};
|
|
788
|
+
/**
|
|
789
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
790
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
791
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
792
|
+
*
|
|
793
|
+
* @param hostRef a reference to a host DOM node
|
|
794
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
795
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
796
|
+
* the component
|
|
797
|
+
*/
|
|
787
798
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
788
799
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
789
800
|
const instance = hostRef.$lazyInstance$ ;
|
|
790
|
-
|
|
801
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
802
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
803
|
+
// the first function to the queue we'll set this variable to be that
|
|
804
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
805
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
806
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
807
|
+
// queue two nice properties:
|
|
808
|
+
//
|
|
809
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
810
|
+
// synchronously right away.
|
|
811
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
812
|
+
// called in order after `dispatchHooks` exits.
|
|
813
|
+
let maybePromise;
|
|
791
814
|
endSchedule();
|
|
792
|
-
return
|
|
815
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
793
816
|
};
|
|
817
|
+
/**
|
|
818
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
819
|
+
* of functions to be called.
|
|
820
|
+
*
|
|
821
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
822
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
823
|
+
* be called synchronously (although note that this function may return a
|
|
824
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
825
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
826
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
827
|
+
* as the first argument.
|
|
828
|
+
*
|
|
829
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
830
|
+
* @param fn a function to enqueue
|
|
831
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
832
|
+
*/
|
|
833
|
+
const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
|
|
794
834
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
795
|
-
// updateComponent
|
|
796
835
|
const elm = hostRef.$hostElement$;
|
|
797
836
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
798
837
|
const rc = elm['s-rc'];
|
|
@@ -912,9 +951,6 @@ const safeCall = (instance, method, arg) => {
|
|
|
912
951
|
}
|
|
913
952
|
return undefined;
|
|
914
953
|
};
|
|
915
|
-
const then = (promise, thenFn) => {
|
|
916
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
917
|
-
};
|
|
918
954
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
919
955
|
;
|
|
920
956
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -1045,9 +1081,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1045
1081
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1046
1082
|
// initializeComponent
|
|
1047
1083
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1084
|
+
// Let the runtime know that the component has been initialized
|
|
1085
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1048
1086
|
{
|
|
1049
|
-
// we haven't initialized this element yet
|
|
1050
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1051
1087
|
// lazy loaded components
|
|
1052
1088
|
// request the component's implementation to be
|
|
1053
1089
|
// wired up with the host element
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-efb9825b.js';
|
|
2
|
+
export { s as setNonce } from './index-efb9825b.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Esm v3.2.
|
|
5
|
+
Stencil Client Patch Esm v3.2.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchEsm = () => {
|
|
8
8
|
return promiseResolve();
|
|
@@ -1,8 +1,8 @@
|
|
|
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-efb9825b.js';
|
|
2
|
+
export { s as setNonce } from './index-efb9825b.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v3.2.
|
|
5
|
+
Stencil Client Patch Browser v3.2.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let n,t,e=!1;const l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,t,...e)=>{let l=null,s=!1,i=!1;const r=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!o(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?c(null,l):l),i=s)};if(u(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=c(n,null);return a.l=t,r.length>0&&(a.o=r),a},c=(n,t)=>({i:0,u:n,t,$:null,o:null,l:null}),r={},u=new WeakMap,a=n=>"sc-"+n.h,f=(n,t,e,l,s,i)=>{if(e!==l){let c=W(n,t),r=t.toLowerCase();if("class"===t){const t=n.classList,o=$(e),s=$(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if(c||"o"!==t[0]||"n"!==t[1]){const r=o(l);if((c||r&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!c||4&i||s)&&!r&&n.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):W(V,r)?r.slice(2):r[2]+t.slice(3),e&&z.rel(n,t,e,!1),l&&z.ael(n,t,l,!1)}},d=/\s/,$=n=>n?n.split(d):[],y=(n,t,e,o)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,i=n&&n.l||l,c=t.l||l;for(o in i)o in c||f(s,o,i[o],void 0,e,t.i);for(o in c)f(s,o,i[o],c[o],e,t.i)},h=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.$=_.createTextNode(o.t);else if(s=o.$=_.createElement(o.u),y(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=h(t,o,c),i&&s.appendChild(i);return s},m=(n,e,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=h(null,l,s),c&&(o[s].$=c,r.insertBefore(c,e)))},p=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.$;n&&n.remove()}}},b=(n,t)=>n.u===t.u,w=(n,t)=>{const e=t.$=n.$,l=n.o,o=t.o,s=t.t;null===s?(y(n,t,!1),null!==l&&null!==o?((n,t,e,l)=>{let o,s=0,i=0,c=t.length-1,r=t[0],u=t[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=t[++s]:null==u?u=t[--c]:null==f?f=l[++i]:null==d?d=l[--a]:b(r,f)?(w(r,f),r=t[++s],f=l[++i]):b(u,d)?(w(u,d),u=t[--c],d=l[--a]):b(r,d)?(w(r,d),n.insertBefore(r.$,u.$.nextSibling),r=t[++s],d=l[--a]):b(u,f)?(w(u,f),n.insertBefore(u.$,r.$),u=t[--c],f=l[++i]):(o=h(t&&t[i],e,i),f=l[++i],o&&r.$.parentNode.insertBefore(o,r.$));s>c?m(n,null==l[a+1]?null:l[a+1].$,e,l,i,a):i>a&&p(t,s,c)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),m(e,null,t,o,0,o.length-1)):null!==l&&p(l,0,l.length-1)):n.t!==s&&(e.data=s)},v=(n,t)=>{t&&!n.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.m=t)))},S=(n,t)=>{if(n.i|=16,!(4&n.i))return v(n,n.p),Z((()=>g(n,t)));n.i|=512},g=(n,t)=>{const e=n.v;return j(void 0,(()=>M(n,e,t)))},j=(n,t)=>n instanceof Promise?n.then(t):t(),M=async(n,t,e)=>{const l=n.S,o=l["s-rc"];e&&(n=>{const t=n.g,e=n.S,l=t.i,o=((n,t)=>{var e;let l=a(t);const o=H.get(l);if(n=11===n.nodeType?n:_,o)if("string"==typeof o){let t,i=u.get(n=n.head||n);if(i||u.set(n,i=new Set),!i.has(l)){{t=_.createElement("style"),t.innerHTML=o;const l=null!==(e=z.j)&&void 0!==e?e:s(_);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}i&&i.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(n);k(n,t),o&&(o.map((n=>n())),l["s-rc"]=void 0);{const t=l["s-p"],e=()=>C(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},k=(e,l)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l)=>{const o=e.S,s=e.M||c(null,null),u=(n=>n&&n.u===r)(l)?l:i(null,null,l);t=o.tagName,u.u=null,u.i|=4,e.M=u,u.$=s.$=o.shadowRoot||o,n=o["s-sc"],w(s,u)})(e,l)}catch(n){q(n,e.S)}return null},C=n=>{const t=n.S,e=n.v,l=n.p;64&n.i||(n.i|=64,x(t),P(e,"componentDidLoad"),n.k(t),l||O()),n.m&&(n.m(),n.m=void 0),512&n.i&&Y((()=>S(n,!1))),n.i&=-517},O=()=>{x(_.documentElement),Y((()=>(n=>{const t=z.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(V)))},P=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){q(n)}},x=n=>n.classList.add("hydrated"),E=(n,t,e)=>{if(t.C){const l=Object.entries(t.C),s=n.prototype;if(l.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,n,{get(){return((n,t)=>A(this).O.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=A(n),i=s.O.get(t),c=s.i,r=s.v;e=((n,t)=>null==n||o(n)?n:1&t?n+"":n)(e,l.C[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.O.set(t,e),r&&2==(18&c)&&S(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const t=new Map;s.attributeChangedCallback=function(n,e,l){z.jmp((()=>{const e=t.get(n);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},n.observedAttributes=l.filter((([n,t])=>15&t[0])).map((([n,e])=>{const l=e[1]||n;return t.set(l,n),l}))}}return n},L=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=V.customElements,c=_.head,r=c.querySelector("meta[charset]"),u=_.createElement("style"),f=[];let d,$=!0;Object.assign(z,t),z.P=new URL(t.resourcesUrl||"./",_.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],h:t[1],C:t[2],L:t[3]};e.C=t[2];const s=e.h,c=class extends HTMLElement{constructor(n){super(n),U(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),$?f.push(this):z.jmp((()=>(n=>{if(0==(1&z.i)){const t=A(n),e=t.g,l=()=>{};if(!(1&t.i)){t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){v(t,t.p=e);break}}e.C&&Object.entries(e.C).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e,l,o)=>{if(0==(32&t.i)){t.i|=32;{if((o=F(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(E(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){q(n)}t.i&=-9,n()}if(o.style){let n=o.style;const t=a(e);if(!H.has(t)){const l=()=>{};((n,t,e)=>{let l=H.get(n);G&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,H.set(n,l)})(t,n,!!(1&e.i)),l()}}}const s=t.p,i=()=>S(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,e)}l()}})(this)))}disconnectedCallback(){z.jmp((()=>{}))}componentOnReady(){return A(this).N}};e.T=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,E(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=z.j)&&void 0!==e?e:s(_);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}$=!1,f.length?f.map((n=>n.connectedCallback())):z.jmp((()=>d=setTimeout(O,30)))},N=n=>z.j=n,T=new WeakMap,A=n=>T.get(n),R=(n,t)=>T.set(t.v=n,t),U=(n,t)=>{const e={i:0,S:n,g:t,O:new Map};return e.N=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],T.set(n,e)},W=(n,t)=>t in n,q=(n,t)=>(0,console.error)(n,t),D=new Map,F=n=>{const t=n.h.replace(/-/g,"_"),e=n.T,l=D.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(D.set(e,n),n[t])),q)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},H=new Map,V="undefined"!=typeof window?window:{},_=V.document||{head:{}},z={i:0,P:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},B=n=>Promise.resolve(n),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),I=[],J=[],K=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&z.i?Y(X):z.raf(X))},Q=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){q(n)}n.length=0},X=()=>{Q(I),Q(J),(e=I.length>0)&&z.raf(X)},Y=n=>B().then(n),Z=K(J,!0);export{L as b,i as h,B as p,R as r,N as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o}from"./p-
|
|
1
|
+
import{r as t,h as o}from"./p-ccc3bc35.js";const s="proto-daisy-db:app-data",a=class{constructor(o){t(this,o),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var o;console.log("app-data:get"),(o=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(o))}catch(t){s(t)}}))).then((o=>{t.emit("app-data:value",o)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const o=JSON.stringify(t);localStorage.setItem(s,o)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return o("div",null)}};a.style="";const r=class{constructor(o){t(this,o),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return o("div",{class:"flex flex-col"},t.map((t=>o("span",null,t))))}};r.style="";const e=class{constructor(o){t(this,o),this.data=void 0}render(){return o("div",{class:"flex"},o("span",null,this.data?this.data.stamp:""))}};e.style="";const i=class{constructor(o){t(this,o),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],o={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",o)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return o("div",{class:"flex flex-col font-sans"},o("div",{class:"flex flex-row content-center gap-2"},o("button",{class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),o("button",{class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),o("proto-faux-type",{class:"mt-4",emitter:this.emitter}),o("proto-faux-stamp",{class:"mt-2 text-xs",data:this.data}),o("proto-faux-keys",{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, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', '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 n=class{constructor(o){t(this,o),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return o("div",null,o("span",{class:"text-xs italic"},this.eventType))}};n.style="proto-faux-type{}";export{a as proto_daisy_db,r as proto_faux_keys,e as proto_faux_stamp,i as proto_faux_trigger,n as proto_faux_type}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-
|
|
1
|
+
import{p as t,b as e}from"./p-ccc3bc35.js";export{s as setNonce}from"./p-ccc3bc35.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),t(o)})().then((t=>e([["p-f729fd63",[[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)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-daisy-db",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.148",
|
|
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": "3.2.
|
|
30
|
+
"@stencil/core": "3.2.2",
|
|
31
31
|
"mitt": "3.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"postcss": "8.4.23",
|
|
38
38
|
"prettier": "2.8.8",
|
|
39
39
|
"prettier-plugin-tailwindcss": "0.2.8",
|
|
40
|
-
"proto-tailwindcss-clrs": "0.0.
|
|
40
|
+
"proto-tailwindcss-clrs": "0.0.233",
|
|
41
41
|
"tailwindcss": "3.3.2"
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let n,t,e=!1;const l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,t,...e)=>{let l=null,s=!1,i=!1;const c=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!o(l))&&(l+=""),s&&i?c[c.length-1].t+=l:c.push(s?r(null,l):l),i=s)};if(u(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=r(n,null);return a.l=t,c.length>0&&(a.o=c),a},r=(n,t)=>({i:0,u:n,t,$:null,o:null,l:null}),c={},u=new WeakMap,a=n=>"sc-"+n.h,f=(n,t,e,l,s,i)=>{if(e!==l){let r=W(n,t),c=t.toLowerCase();if("class"===t){const t=n.classList,o=$(e),s=$(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if(r||"o"!==t[0]||"n"!==t[1]){const c=o(l);if((r||c&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!r||4&i||s)&&!c&&n.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):W(V,c)?c.slice(2):c[2]+t.slice(3),e&&z.rel(n,t,e,!1),l&&z.ael(n,t,l,!1)}},d=/\s/,$=n=>n?n.split(d):[],y=(n,t,e,o)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,i=n&&n.l||l,r=t.l||l;for(o in i)o in r||f(s,o,i[o],void 0,e,t.i);for(o in r)f(s,o,i[o],r[o],e,t.i)},h=(t,e,l)=>{const o=e.o[l];let s,i,r=0;if(null!==o.t)s=o.$=_.createTextNode(o.t);else if(s=o.$=_.createElement(o.u),y(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(r=0;r<o.o.length;++r)i=h(t,o,r),i&&s.appendChild(i);return s},p=(n,e,l,o,s,i)=>{let r,c=n;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=h(null,l,s),r&&(o[s].$=r,c.insertBefore(r,e)))},m=(n,t,e,l)=>{for(;t<=e;++t)(l=n[t])&&l.$.remove()},b=(n,t)=>n.u===t.u,w=(n,t)=>{const e=t.$=n.$,l=n.o,o=t.o,s=t.t;null===s?(y(n,t,!1),null!==l&&null!==o?((n,t,e,l)=>{let o,s=0,i=0,r=t.length-1,c=t[0],u=t[r],a=l.length-1,f=l[0],d=l[a];for(;s<=r&&i<=a;)null==c?c=t[++s]:null==u?u=t[--r]:null==f?f=l[++i]:null==d?d=l[--a]:b(c,f)?(w(c,f),c=t[++s],f=l[++i]):b(u,d)?(w(u,d),u=t[--r],d=l[--a]):b(c,d)?(w(c,d),n.insertBefore(c.$,u.$.nextSibling),c=t[++s],d=l[--a]):b(u,f)?(w(u,f),n.insertBefore(u.$,c.$),u=t[--r],f=l[++i]):(o=h(t&&t[i],e,i),f=l[++i],o&&c.$.parentNode.insertBefore(o,c.$));s>r?p(n,null==l[a+1]?null:l[a+1].$,e,l,i,a):i>a&&m(t,s,r)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),p(e,null,t,o,0,o.length-1)):null!==l&&m(l,0,l.length-1)):n.t!==s&&(e.data=s)},v=(n,t)=>{t&&!n.p&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.p=t)))},S=(n,t)=>{if(n.i|=16,!(4&n.i))return v(n,n.m),Z((()=>g(n,t)));n.i|=512},g=(n,t)=>{const e=n.v;return P(void 0,(()=>j(n,e,t)))},j=async(n,t,e)=>{const l=n.S,o=l["s-rc"];e&&(n=>{const t=n.g,e=n.S,l=t.i,o=((n,t)=>{var e;let l=a(t);const o=H.get(l);if(n=11===n.nodeType?n:_,o)if("string"==typeof o){let t,i=u.get(n=n.head||n);if(i||u.set(n,i=new Set),!i.has(l)){{t=_.createElement("style"),t.innerHTML=o;const l=null!==(e=z.j)&&void 0!==e?e:s(_);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}i&&i.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(n);M(n,t),o&&(o.map((n=>n())),l["s-rc"]=void 0);{const t=l["s-p"],e=()=>k(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},M=(e,l)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l)=>{const o=e.S,s=e.M||r(null,null),u=(n=>n&&n.u===c)(l)?l:i(null,null,l);t=o.tagName,u.u=null,u.i|=4,e.M=u,u.$=s.$=o.shadowRoot||o,n=o["s-sc"],w(s,u)})(e,l)}catch(n){q(n,e.S)}return null},k=n=>{const t=n.S,e=n.v,l=n.m;64&n.i||(n.i|=64,x(t),O(e,"componentDidLoad"),n.k(t),l||C()),n.p&&(n.p(),n.p=void 0),512&n.i&&Y((()=>S(n,!1))),n.i&=-517},C=()=>{x(_.documentElement),Y((()=>(n=>{const t=z.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(V)))},O=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){q(n)}},P=(n,t)=>n&&n.then?n.then(t):t(),x=n=>n.classList.add("hydrated"),E=(n,t,e)=>{if(t.C){const l=Object.entries(t.C),s=n.prototype;if(l.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,n,{get(){return((n,t)=>A(this).O.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=A(n),i=s.O.get(t),r=s.i,c=s.v;e=((n,t)=>null==n||o(n)?n:1&t?n+"":n)(e,l.C[t][0]),8&r&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.O.set(t,e),c&&2==(18&r)&&S(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const t=new Map;s.attributeChangedCallback=function(n,e,l){z.jmp((()=>{const e=t.get(n);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},n.observedAttributes=l.filter((([n,t])=>15&t[0])).map((([n,e])=>{const l=e[1]||n;return t.set(l,n),l}))}}return n},L=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=V.customElements,r=_.head,c=r.querySelector("meta[charset]"),u=_.createElement("style"),f=[];let d,$=!0;Object.assign(z,t),z.P=new URL(t.resourcesUrl||"./",_.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],h:t[1],C:t[2],L:t[3]};e.C=t[2];const s=e.h,r=class extends HTMLElement{constructor(n){super(n),U(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),$?f.push(this):z.jmp((()=>(n=>{if(0==(1&z.i)){const t=A(n),e=t.g,l=()=>{};if(!(1&t.i)){t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){v(t,t.m=e);break}}e.C&&Object.entries(e.C).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e,l,o)=>{if(0==(32&t.i)){{if(t.i|=32,(o=F(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(E(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){q(n)}t.i&=-9,n()}if(o.style){let n=o.style;const t=a(e);if(!H.has(t)){const l=()=>{};((n,t,e)=>{let l=H.get(n);G&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,H.set(n,l)})(t,n,!!(1&e.i)),l()}}}const s=t.m,i=()=>S(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,e)}l()}})(this)))}disconnectedCallback(){z.jmp((()=>{}))}componentOnReady(){return A(this).N}};e.T=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,E(r,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=z.j)&&void 0!==e?e:s(_);null!=n&&u.setAttribute("nonce",n),r.insertBefore(u,c?c.nextSibling:r.firstChild)}$=!1,f.length?f.map((n=>n.connectedCallback())):z.jmp((()=>d=setTimeout(C,30)))},N=n=>z.j=n,T=new WeakMap,A=n=>T.get(n),R=(n,t)=>T.set(t.v=n,t),U=(n,t)=>{const e={i:0,S:n,g:t,O:new Map};return e.N=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],T.set(n,e)},W=(n,t)=>t in n,q=(n,t)=>(0,console.error)(n,t),D=new Map,F=n=>{const t=n.h.replace(/-/g,"_"),e=n.T,l=D.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(D.set(e,n),n[t])),q)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},H=new Map,V="undefined"!=typeof window?window:{},_=V.document||{head:{}},z={i:0,P:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},B=n=>Promise.resolve(n),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),I=[],J=[],K=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&z.i?Y(X):z.raf(X))},Q=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){q(n)}n.length=0},X=()=>{Q(I),Q(J),(e=I.length>0)&&z.raf(X)},Y=n=>B().then(n),Z=K(J,!0);export{L as b,i as h,B as p,R as r,N as s}
|