proto-daisy-db 0.0.269 → 0.0.271

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.
@@ -459,17 +459,35 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
459
459
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
460
460
  {
461
461
  // remove attributes no longer present on the vnode by setting them to undefined
462
- for (memberName in oldVnodeAttrs) {
462
+ for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
463
463
  if (!(memberName in newVnodeAttrs)) {
464
464
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
465
465
  }
466
466
  }
467
467
  }
468
468
  // add new & update changed attributes
469
- for (memberName in newVnodeAttrs) {
469
+ for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
470
470
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
471
471
  }
472
472
  };
473
+ /**
474
+ * Sort a list of attribute names to ensure that all the attribute names which
475
+ * are _not_ `"ref"` come before `"ref"`. Preserve the order of the non-ref
476
+ * attributes.
477
+ *
478
+ * **Note**: if the supplied attributes do not include `'ref'` then the same
479
+ * (by reference) array will be returned without modification.
480
+ *
481
+ * @param attrNames attribute names to sort
482
+ * @returns a list of attribute names, sorted if they include `"ref"`
483
+ */
484
+ function sortedAttrNames(attrNames) {
485
+ return attrNames.includes('ref')
486
+ ? // we need to sort these to ensure that `'ref'` is the last attr
487
+ [...attrNames.filter((attr) => attr !== 'ref'), 'ref']
488
+ : // no need to sort, return the original array
489
+ attrNames;
490
+ }
473
491
  /**
474
492
  * Create a DOM Node corresponding to one of the children of a given VNode.
475
493
  *
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3d89f5a8.js');
5
+ const index = require('./index-32d32d26.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-3d89f5a8.js');
5
+ const index = require('./index-32d32d26.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.14.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.14.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  const 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-3d89f5a8.js');
5
+ const index = require('./index-32d32d26.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.14.0",
11
+ "version": "4.14.1",
12
12
  "typescriptVersion": "5.4.3"
13
13
  },
14
14
  "collections": [],
@@ -437,17 +437,35 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
437
437
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
438
438
  {
439
439
  // remove attributes no longer present on the vnode by setting them to undefined
440
- for (memberName in oldVnodeAttrs) {
440
+ for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
441
441
  if (!(memberName in newVnodeAttrs)) {
442
442
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
443
443
  }
444
444
  }
445
445
  }
446
446
  // add new & update changed attributes
447
- for (memberName in newVnodeAttrs) {
447
+ for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
448
448
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
449
449
  }
450
450
  };
451
+ /**
452
+ * Sort a list of attribute names to ensure that all the attribute names which
453
+ * are _not_ `"ref"` come before `"ref"`. Preserve the order of the non-ref
454
+ * attributes.
455
+ *
456
+ * **Note**: if the supplied attributes do not include `'ref'` then the same
457
+ * (by reference) array will be returned without modification.
458
+ *
459
+ * @param attrNames attribute names to sort
460
+ * @returns a list of attribute names, sorted if they include `"ref"`
461
+ */
462
+ function sortedAttrNames(attrNames) {
463
+ return attrNames.includes('ref')
464
+ ? // we need to sort these to ensure that `'ref'` is the last attr
465
+ [...attrNames.filter((attr) => attr !== 'ref'), 'ref']
466
+ : // no need to sort, return the original array
467
+ attrNames;
468
+ }
451
469
  /**
452
470
  * Create a DOM Node corresponding to one of the children of a given VNode.
453
471
  *
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-e5be26d1.js';
2
- export { s as setNonce } from './index-e5be26d1.js';
1
+ import { b as bootstrapLazy } from './index-90fd18f5.js';
2
+ export { s as setNonce } from './index-90fd18f5.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-e5be26d1.js';
2
- export { s as setNonce } from './index-e5be26d1.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-90fd18f5.js';
2
+ export { s as setNonce } from './index-90fd18f5.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.14.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.14.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-e5be26d1.js';
1
+ import { r as registerInstance, h } from './index-90fd18f5.js';
2
2
 
3
3
  const KEY = 'proto-daisy-db:app-data';
4
4
  const promisedParseJSON = (json) => {
@@ -0,0 +1,2 @@
1
+ let e,n,t=!1,l=!1;const o="slot-fb{display:contents}slot-fb[hidden]{display:none}",s={},i=e=>"object"==(e=typeof e)||"function"===e;function c(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const r=(e,n,...t)=>{let l=null,o=null,s=!1,c=!1;const r=[],f=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!i(l))&&(l+=""),s&&c?r[r.length-1].t+=l:r.push(s?u(null,l):l),c=s)};if(f(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const a=u(e,null);return a.l=n,r.length>0&&(a.o=r),a.i=o,a},u=(e,n)=>({u:0,p:e,t:n,$:null,o:null,l:null,i:null}),f={},a=new WeakMap,d=e=>"sc-"+e.h,y=(e,n,t,l,o,s)=>{if(t!==l){let c=z(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=$(t),s=$(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===n);else if(c||"o"!==n[0]||"n"!==n[1]){const r=i(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&s||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):z(K,r)?r.slice(2):r[2]+n.slice(3),t||l){const o=n.endsWith(h);n=n.replace(m,""),t&&X.rel(e,n,t,o),l&&X.ael(e,n,l,o)}}},p=/\s/,$=e=>e?e.split(p):[],h="Capture",m=RegExp(h+"$"),v=(e,n,t,l)=>{const o=11===n.$.nodeType&&n.$.host?n.$.host:n.$,i=e&&e.l||s,c=n.l||s;for(l of b(Object.keys(i)))l in c||y(o,l,i[l],void 0,t,n.u);for(l of b(Object.keys(c)))y(o,l,i[l],c[l],t,n.u)};function b(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}const w=(l,o,s)=>{const i=o.o[s];let c,r,u=0;if(null!==i.t)c=i.$=Q.createTextNode(i.t);else if(c=i.$=Q.createElement(i.p),v(null,i,t),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),i.o)for(u=0;u<i.o.length;++u)r=w(l,i,u),r&&c.appendChild(r);return c["s-hn"]=n,c},S=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=w(null,l,s),c&&(o[s].$=c,r.insertBefore(c,t)))},j=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.$;e&&e.remove()}}},g=(e,n,t=!1)=>e.p===n.p&&(!!t||e.i===n.i),k=(e,n,l=!1)=>{const o=n.$=e.$,s=e.o,i=n.o,c=n.t;null===c?(v(e,n,t),null!==s&&null!==i?((e,n,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,f=0,a=n.length-1,d=n[0],y=n[a],p=l.length-1,$=l[0],h=l[p];for(;c<=a&&r<=p;)if(null==d)d=n[++c];else if(null==y)y=n[--a];else if(null==$)$=l[++r];else if(null==h)h=l[--p];else if(g(d,$,o))k(d,$,o),d=n[++c],$=l[++r];else if(g(y,h,o))k(y,h,o),y=n[--a],h=l[--p];else if(g(d,h,o))k(d,h,o),e.insertBefore(d.$,y.$.nextSibling),d=n[++c],h=l[--p];else if(g(y,$,o))k(y,$,o),e.insertBefore(y.$,d.$),y=n[--a],$=l[++r];else{for(u=-1,f=c;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===$.i){u=f;break}u>=0?(i=n[u],i.p!==$.p?s=w(n&&n[r],t,u):(k(i,$,o),n[u]=void 0,s=i.$),$=l[++r]):(s=w(n&&n[r],t,r),$=l[++r]),s&&d.$.parentNode.insertBefore(s,d.$)}c>a?S(e,null==l[p+1]?null:l[p+1].$,t,l,r,p):r>p&&j(n,c,a)})(o,s,n,i,l):null!==i?(null!==e.t&&(o.textContent=""),S(o,null,n,i,0,i.length-1)):null!==s&&j(s,0,s.length-1)):e.t!==c&&(o.data=c)},O=(e,n)=>{n&&!e.m&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.m=n)))},M=(e,n)=>{if(e.u|=16,!(4&e.u))return O(e,e.v),ie((()=>C(e,n)));e.u|=512},C=(e,n)=>{const t=e.S;return E(void 0,(()=>x(e,t,n)))},E=(e,n)=>P(e)?e.then(n):n(),P=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,x=async(e,n,t)=>{var l;const s=e.$hostElement$,i=s["s-rc"];t&&(e=>{const n=e.j,t=e.$hostElement$,l=n.u,s=((e,n)=>{var t;const l=d(n),s=J.get(l);if(e=11===e.nodeType?e:Q,s)if("string"==typeof s){let i,r=a.get(e=e.head||e);if(r||a.set(e,r=new Set),!r.has(l)){{i=Q.createElement("style"),i.innerHTML=s;const n=null!==(t=X.k)&&void 0!==t?t:c(Q);null!=n&&i.setAttribute("nonce",n),e.insertBefore(i,e.querySelector("link"))}4&n.u&&(i.innerHTML+=o),r&&r.add(l)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);A(e,n,s,t),i&&(i.map((e=>e())),s["s-rc"]=void 0);{const n=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>L(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},A=(t,l,o,s)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.O||u(null,null),c=(e=>e&&e.p===f)(l)?l:r(null,null,l);if(n=s.tagName,o&&c.l)for(const e of Object.keys(c.l))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(c.l[e]=s[e]);c.p=null,c.u|=4,t.O=c,c.$=i.$=s.shadowRoot||s,e=s["s-sc"],k(i,c,o)})(t,l,s)}catch(e){B(e,t.$hostElement$)}return null},L=e=>{const n=e.$hostElement$,t=e.S,l=e.v;64&e.u||(e.u|=64,T(n),R(t,"componentDidLoad"),e.M(n),l||N()),e.m&&(e.m(),e.m=void 0),512&e.u&&se((()=>M(e,!1))),e.u&=-517},N=()=>{T(Q.documentElement),se((()=>(e=>{const n=X.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(n),n})(K)))},R=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){B(e)}},T=e=>e.classList.add("hydrated"),U=(e,n,t)=>{var l;const o=e.prototype;if(n.C){const s=Object.entries(n.C);if(s.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,e,{get(){return((e,n)=>H(this).P.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=H(e),s=o.P.get(n),c=o.u,r=o.S;t=((e,n)=>null==e||i(e)?e:1&n?e+"":e)(t,l.C[n][0]),8&c&&void 0!==s||t===s||Number.isNaN(s)&&Number.isNaN(t)||(o.P.set(n,t),r&&2==(18&c)&&M(o,!1))})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){X.jmp((()=>{var i;const c=t.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=H(this),o=null==t?void 0:t.u;if(o&&!(8&o)&&128&o&&s!==l){const o=t.S,c=null===(i=n.A)||void 0===i?void 0:i[e];null==c||c.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.A)&&void 0!==l?l:{}),...s.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},W=async(e,n,t)=>{let l;if(!(32&n.u)){if(n.u|=32,t.L){if(l=I(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(U(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){B(e)}n.u&=-9,e()}else l=e.constructor,customElements.whenDefined(t.h).then((()=>n.u|=128));if(l.style){let e=l.style;const n=d(t);if(!J.has(n)){const l=()=>{};((e,n,t)=>{let l=J.get(e);Z&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,J.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.v,s=()=>M(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},q=(e,n={})=>{var t;const l=[],s=n.exclude||[],i=K.customElements,r=Q.head,u=r.querySelector("meta[charset]"),f=Q.createElement("style"),a=[];let d,y=!0;Object.assign(X,n),X.N=new URL(n.resourcesUrl||"./",Q.baseURI).href;let p=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],h:n[1],C:n[2],R:n[3]};4&t.u&&(p=!0),t.C=n[2];const o=t.h,c=class extends HTMLElement{constructor(e){super(e),_(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?a.push(this):X.jmp((()=>(e=>{if(!(1&X.u)){const n=H(e),t=n.j,l=()=>{};if(1&n.u)(null==n?void 0:n.S)||(null==n?void 0:n.T)&&n.T.then((()=>{}));else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){O(n,n.v=t);break}}t.C&&Object.entries(t.C).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),W(e,n,t)}l()}})(this)))}disconnectedCallback(){X.jmp((()=>(async()=>{if(!(1&X.u)){const e=H(this);(null==e?void 0:e.S)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return H(this).T}};t.L=e[0],s.includes(o)||i.get(o)||(l.push(o),i.define(o,U(c,t,1)))}))})),l.length>0&&(p&&(f.textContent+=o),f.textContent+=l+"{visibility:hidden}.hydrated{visibility:inherit}",f.innerHTML.length)){f.setAttribute("data-styles","");const e=null!==(t=X.k)&&void 0!==t?t:c(Q);null!=e&&f.setAttribute("nonce",e),r.insertBefore(f,u?u.nextSibling:r.firstChild)}y=!1,a.length?a.map((e=>e.connectedCallback())):X.jmp((()=>d=setTimeout(N,30)))},D=e=>X.k=e,F=new WeakMap,H=e=>F.get(e),V=(e,n)=>F.set(n.S=e,n),_=(e,n)=>{const t={u:0,$hostElement$:e,j:n,P:new Map};return t.T=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],F.set(e,t)},z=(e,n)=>n in e,B=(e,n)=>(0,console.error)(e,n),G=new Map,I=e=>{const n=e.h.replace(/-/g,"_"),t=e.L,l=G.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(G.set(t,e),e[n])),B)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},J=new Map,K="undefined"!=typeof window?window:{},Q=K.document||{head:{}},X={u:0,N:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},Y=e=>Promise.resolve(e),Z=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ee=[],ne=[],te=(e,n)=>t=>{e.push(t),l||(l=!0,n&&4&X.u?se(oe):X.raf(oe))},le=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){B(e)}e.length=0},oe=()=>{le(ee),le(ne),(l=ee.length>0)&&X.raf(oe)},se=e=>Y().then(e),ie=te(ne,!0);export{q as b,r as h,Y as p,V as r,D as s}
@@ -1 +1 @@
1
- import{r as t,h as a}from"./p-cc784e73.js";const s="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(s),new Promise(((t,s)=>{try{t(JSON.parse(a))}catch(t){s(t)}}))).then((a=>{t.emit("app-data:value",a)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const a=JSON.stringify(t);localStorage.setItem(s,a)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return a("div",{key:"35e42fc3a7d518f3bc0211bc5f2c8221fd9bcc81"})}};e.style="";const o=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))))}};o.style="";const r=class{constructor(a){t(this,a),this.data=void 0}render(){return a("div",{key:"f4837fa667d5d6e57086b09d1bc91719035442be",class:"flex"},a("span",{key:"a70fa27ba603ead243b5d262922082141420e0ac"},this.data?this.data.stamp:""))}};r.style="";const c=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}))}};c.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";const 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,o as proto_faux_keys,r as proto_faux_stamp,c as proto_faux_trigger,i as proto_faux_type}
1
+ import{r as t,h as a}from"./p-b7e447a4.js";const s="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(s),new Promise(((t,s)=>{try{t(JSON.parse(a))}catch(t){s(t)}}))).then((a=>{t.emit("app-data:value",a)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const a=JSON.stringify(t);localStorage.setItem(s,a)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return a("div",{key:"35e42fc3a7d518f3bc0211bc5f2c8221fd9bcc81"})}};e.style="";const o=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))))}};o.style="";const r=class{constructor(a){t(this,a),this.data=void 0}render(){return a("div",{key:"f4837fa667d5d6e57086b09d1bc91719035442be",class:"flex"},a("span",{key:"a70fa27ba603ead243b5d262922082141420e0ac"},this.data?this.data.stamp:""))}};r.style="";const i=class{constructor(a){t(this,a),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],a={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",a)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return a("div",{key:"47a9f4c68160b18fceedba61f54a7be29c75325a",class:"flex flex-col font-sans"},a("div",{key:"334f34a36a896139cf4cc01f66bbf0d09bd89505",class:"flex flex-row content-center gap-2"},a("button",{key:"784f07b93d4cd4a0287e6dd172bc73ab8e3c49e5",class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),a("button",{key:"8526e3216eb0a725ea22b288ac0cb3c503405ee4",class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),a("proto-faux-type",{key:"3033b83816b2997c790fb8df1e1d90f387f62afa",class:"mt-4",emitter:this.emitter}),a("proto-faux-stamp",{key:"811eef59cdcdfa2edb318ee5facf7ae0bc497c82",class:"mt-2 text-xs",data:this.data}),a("proto-faux-keys",{key:"ed39e233d92c46f801841240d32d783ee6b0f0fd",class:"mt-2",data:this.data}))}};i.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";const c=class{constructor(a){t(this,a),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return a("div",{key:"d441f639241a54d1ef8ae9c26a4560b5266457df"},a("span",{key:"a192c0ce3af5f94d72856ca851300537fd00f31f",class:"text-xs italic"},this.eventType))}};c.style="proto-faux-type{}";export{e as proto_daisy_db,o as proto_faux_keys,r as proto_faux_stamp,i as proto_faux_trigger,c as proto_faux_type}
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-cc784e73.js";export{s as setNonce}from"./p-cc784e73.js";import{g as a}from"./p-e1255160.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-04a28c5f",[[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 e}from"./p-b7e447a4.js";export{s as setNonce}from"./p-b7e447a4.js";import{g as a}from"./p-e1255160.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-f2d0d6c3",[[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.269",
3
+ "version": "0.0.271",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "format": "prettier --write src"
28
28
  },
29
29
  "dependencies": {
30
- "@stencil/core": "4.14.0",
30
+ "@stencil/core": "4.14.1",
31
31
  "mitt": "3.0.1"
32
32
  },
33
33
  "devDependencies": {
@@ -37,7 +37,7 @@
37
37
  "postcss": "8.4.38",
38
38
  "prettier": "3.2.5",
39
39
  "prettier-plugin-tailwindcss": "0.5.13",
40
- "proto-tailwindcss-clrs": "0.0.320",
40
+ "proto-tailwindcss-clrs": "0.0.321",
41
41
  "tailwindcss": "3.4.3"
42
42
  },
43
43
  "license": "MIT"
@@ -1,2 +0,0 @@
1
- let e,n,t=!1,l=!1;const o="slot-fb{display:contents}slot-fb[hidden]{display:none}",s={},i=e=>"object"==(e=typeof e)||"function"===e;function c(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const r=(e,n,...t)=>{let l=null,o=null,s=!1,c=!1;const r=[],f=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!i(l))&&(l+=""),s&&c?r[r.length-1].t+=l:r.push(s?u(null,l):l),c=s)};if(f(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const a=u(e,null);return a.l=n,r.length>0&&(a.o=r),a.i=o,a},u=(e,n)=>({u:0,p:e,t:n,$:null,o:null,l:null,i:null}),f={},a=new WeakMap,d=e=>"sc-"+e.h,y=(e,n,t,l,o,s)=>{if(t!==l){let c=_(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=$(t),s=$(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===n);else if(c||"o"!==n[0]||"n"!==n[1]){const r=i(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&s||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):_(J,r)?r.slice(2):r[2]+n.slice(3),t||l){const o=n.endsWith(h);n=n.replace(m,""),t&&Q.rel(e,n,t,o),l&&Q.ael(e,n,l,o)}}},p=/\s/,$=e=>e?e.split(p):[],h="Capture",m=RegExp(h+"$"),v=(e,n,t,l)=>{const o=11===n.$.nodeType&&n.$.host?n.$.host:n.$,i=e&&e.l||s,c=n.l||s;for(l in i)l in c||y(o,l,i[l],void 0,t,n.u);for(l in c)y(o,l,i[l],c[l],t,n.u)},b=(l,o,s)=>{const i=o.o[s];let c,r,u=0;if(null!==i.t)c=i.$=K.createTextNode(i.t);else if(c=i.$=K.createElement(i.p),v(null,i,t),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),i.o)for(u=0;u<i.o.length;++u)r=b(l,i,u),r&&c.appendChild(r);return c["s-hn"]=n,c},w=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=b(null,l,s),c&&(o[s].$=c,r.insertBefore(c,t)))},S=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.$;e&&e.remove()}}},g=(e,n,t=!1)=>e.p===n.p&&(!!t||e.i===n.i),j=(e,n,l=!1)=>{const o=n.$=e.$,s=e.o,i=n.o,c=n.t;null===c?(v(e,n,t),null!==s&&null!==i?((e,n,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,f=0,a=n.length-1,d=n[0],y=n[a],p=l.length-1,$=l[0],h=l[p];for(;c<=a&&r<=p;)if(null==d)d=n[++c];else if(null==y)y=n[--a];else if(null==$)$=l[++r];else if(null==h)h=l[--p];else if(g(d,$,o))j(d,$,o),d=n[++c],$=l[++r];else if(g(y,h,o))j(y,h,o),y=n[--a],h=l[--p];else if(g(d,h,o))j(d,h,o),e.insertBefore(d.$,y.$.nextSibling),d=n[++c],h=l[--p];else if(g(y,$,o))j(y,$,o),e.insertBefore(y.$,d.$),y=n[--a],$=l[++r];else{for(u=-1,f=c;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===$.i){u=f;break}u>=0?(i=n[u],i.p!==$.p?s=b(n&&n[r],t,u):(j(i,$,o),n[u]=void 0,s=i.$),$=l[++r]):(s=b(n&&n[r],t,r),$=l[++r]),s&&d.$.parentNode.insertBefore(s,d.$)}c>a?w(e,null==l[p+1]?null:l[p+1].$,t,l,r,p):r>p&&S(n,c,a)})(o,s,n,i,l):null!==i?(null!==e.t&&(o.textContent=""),w(o,null,n,i,0,i.length-1)):null!==s&&S(s,0,s.length-1)):e.t!==c&&(o.data=c)},k=(e,n)=>{n&&!e.m&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.m=n)))},M=(e,n)=>{if(e.u|=16,!(4&e.u))return k(e,e.v),se((()=>O(e,n)));e.u|=512},O=(e,n)=>{const t=e.S;return C(void 0,(()=>P(e,t,n)))},C=(e,n)=>E(e)?e.then(n):n(),E=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,P=async(e,n,t)=>{var l;const s=e.$hostElement$,i=s["s-rc"];t&&(e=>{const n=e.j,t=e.$hostElement$,l=n.u,s=((e,n)=>{var t;const l=d(n),s=I.get(l);if(e=11===e.nodeType?e:K,s)if("string"==typeof s){let i,r=a.get(e=e.head||e);if(r||a.set(e,r=new Set),!r.has(l)){{i=K.createElement("style"),i.innerHTML=s;const n=null!==(t=Q.k)&&void 0!==t?t:c(K);null!=n&&i.setAttribute("nonce",n),e.insertBefore(i,e.querySelector("link"))}4&n.u&&(i.innerHTML+=o),r&&r.add(l)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);x(e,n,s,t),i&&(i.map((e=>e())),s["s-rc"]=void 0);{const n=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>A(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},x=(t,l,o,s)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.M||u(null,null),c=(e=>e&&e.p===f)(l)?l:r(null,null,l);if(n=s.tagName,o&&c.l)for(const e of Object.keys(c.l))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(c.l[e]=s[e]);c.p=null,c.u|=4,t.M=c,c.$=i.$=s.shadowRoot||s,e=s["s-sc"],j(i,c,o)})(t,l,s)}catch(e){z(e,t.$hostElement$)}return null},A=e=>{const n=e.$hostElement$,t=e.S,l=e.v;64&e.u||(e.u|=64,R(n),N(t,"componentDidLoad"),e.O(n),l||L()),e.m&&(e.m(),e.m=void 0),512&e.u&&oe((()=>M(e,!1))),e.u&=-517},L=()=>{R(K.documentElement),oe((()=>(e=>{const n=Q.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(n),n})(J)))},N=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){z(e)}},R=e=>e.classList.add("hydrated"),T=(e,n,t)=>{var l;const o=e.prototype;if(n.C){const s=Object.entries(n.C);if(s.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,e,{get(){return((e,n)=>F(this).P.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=F(e),s=o.P.get(n),c=o.u,r=o.S;t=((e,n)=>null==e||i(e)?e:1&n?e+"":e)(t,l.C[n][0]),8&c&&void 0!==s||t===s||Number.isNaN(s)&&Number.isNaN(t)||(o.P.set(n,t),r&&2==(18&c)&&M(o,!1))})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){Q.jmp((()=>{var i;const c=t.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=F(this),o=null==t?void 0:t.u;if(o&&!(8&o)&&128&o&&s!==l){const o=t.S,c=null===(i=n.A)||void 0===i?void 0:i[e];null==c||c.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.A)&&void 0!==l?l:{}),...s.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},U=async(e,n,t)=>{let l;if(!(32&n.u)){if(n.u|=32,t.L){if(l=G(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(T(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){z(e)}n.u&=-9,e()}else l=e.constructor,customElements.whenDefined(t.h).then((()=>n.u|=128));if(l.style){let e=l.style;const n=d(t);if(!I.has(n)){const l=()=>{};((e,n,t)=>{let l=I.get(e);Y&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,I.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.v,s=()=>M(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},W=(e,n={})=>{var t;const l=[],s=n.exclude||[],i=J.customElements,r=K.head,u=r.querySelector("meta[charset]"),f=K.createElement("style"),a=[];let d,y=!0;Object.assign(Q,n),Q.N=new URL(n.resourcesUrl||"./",K.baseURI).href;let p=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],h:n[1],C:n[2],R:n[3]};4&t.u&&(p=!0),t.C=n[2];const o=t.h,c=class extends HTMLElement{constructor(e){super(e),V(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?a.push(this):Q.jmp((()=>(e=>{if(!(1&Q.u)){const n=F(e),t=n.j,l=()=>{};if(1&n.u)(null==n?void 0:n.S)||(null==n?void 0:n.T)&&n.T.then((()=>{}));else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){k(n,n.v=t);break}}t.C&&Object.entries(t.C).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),U(e,n,t)}l()}})(this)))}disconnectedCallback(){Q.jmp((()=>(async()=>{if(!(1&Q.u)){const e=F(this);(null==e?void 0:e.S)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return F(this).T}};t.L=e[0],s.includes(o)||i.get(o)||(l.push(o),i.define(o,T(c,t,1)))}))})),l.length>0&&(p&&(f.textContent+=o),f.textContent+=l+"{visibility:hidden}.hydrated{visibility:inherit}",f.innerHTML.length)){f.setAttribute("data-styles","");const e=null!==(t=Q.k)&&void 0!==t?t:c(K);null!=e&&f.setAttribute("nonce",e),r.insertBefore(f,u?u.nextSibling:r.firstChild)}y=!1,a.length?a.map((e=>e.connectedCallback())):Q.jmp((()=>d=setTimeout(L,30)))},q=e=>Q.k=e,D=new WeakMap,F=e=>D.get(e),H=(e,n)=>D.set(n.S=e,n),V=(e,n)=>{const t={u:0,$hostElement$:e,j:n,P:new Map};return t.T=new Promise((e=>t.O=e)),e["s-p"]=[],e["s-rc"]=[],D.set(e,t)},_=(e,n)=>n in e,z=(e,n)=>(0,console.error)(e,n),B=new Map,G=e=>{const n=e.h.replace(/-/g,"_"),t=e.L,l=B.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(B.set(t,e),e[n])),z)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},I=new Map,J="undefined"!=typeof window?window:{},K=J.document||{head:{}},Q={u:0,N:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},X=e=>Promise.resolve(e),Y=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Z=[],ee=[],ne=(e,n)=>t=>{e.push(t),l||(l=!0,n&&4&Q.u?oe(le):Q.raf(le))},te=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){z(e)}e.length=0},le=()=>{te(Z),te(ee),(l=Z.length>0)&&Q.raf(le)},oe=e=>X().then(e),se=ne(ee,!0);export{W as b,r as h,X as p,H as r,q as s}