proto-table-wc 0.0.494 → 0.0.496

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a1285a58.js');
5
+ const index = require('./index-215e1883.js');
6
6
 
7
7
  const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
8
8
  const DemoTableStyle0 = demoTableCss;
@@ -465,17 +465,35 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
465
465
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
466
466
  {
467
467
  // remove attributes no longer present on the vnode by setting them to undefined
468
- for (memberName in oldVnodeAttrs) {
468
+ for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
469
469
  if (!(memberName in newVnodeAttrs)) {
470
470
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
471
471
  }
472
472
  }
473
473
  }
474
474
  // add new & update changed attributes
475
- for (memberName in newVnodeAttrs) {
475
+ for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
476
476
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
477
477
  }
478
478
  };
479
+ /**
480
+ * Sort a list of attribute names to ensure that all the attribute names which
481
+ * are _not_ `"ref"` come before `"ref"`. Preserve the order of the non-ref
482
+ * attributes.
483
+ *
484
+ * **Note**: if the supplied attributes do not include `'ref'` then the same
485
+ * (by reference) array will be returned without modification.
486
+ *
487
+ * @param attrNames attribute names to sort
488
+ * @returns a list of attribute names, sorted if they include `"ref"`
489
+ */
490
+ function sortedAttrNames(attrNames) {
491
+ return attrNames.includes('ref')
492
+ ? // we need to sort these to ensure that `'ref'` is the last attr
493
+ [...attrNames.filter((attr) => attr !== 'ref'), 'ref']
494
+ : // no need to sort, return the original array
495
+ attrNames;
496
+ }
479
497
  /**
480
498
  * Create a DOM Node corresponding to one of the children of a given VNode.
481
499
  *
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a1285a58.js');
5
+ const index = require('./index-215e1883.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-a1285a58.js');
5
+ const index = require('./index-215e1883.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-table-wc.cjs.js', document.baseURI).href));
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "4.14.0",
8
+ "version": "4.14.1",
9
9
  "typescriptVersion": "5.4.3"
10
10
  },
11
11
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-f6944bba.js';
1
+ import { r as registerInstance, h } from './index-b878de0a.js';
2
2
 
3
3
  const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
4
4
  const DemoTableStyle0 = demoTableCss;
@@ -443,17 +443,35 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
443
443
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
444
444
  {
445
445
  // remove attributes no longer present on the vnode by setting them to undefined
446
- for (memberName in oldVnodeAttrs) {
446
+ for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
447
447
  if (!(memberName in newVnodeAttrs)) {
448
448
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
449
449
  }
450
450
  }
451
451
  }
452
452
  // add new & update changed attributes
453
- for (memberName in newVnodeAttrs) {
453
+ for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
454
454
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
455
455
  }
456
456
  };
457
+ /**
458
+ * Sort a list of attribute names to ensure that all the attribute names which
459
+ * are _not_ `"ref"` come before `"ref"`. Preserve the order of the non-ref
460
+ * attributes.
461
+ *
462
+ * **Note**: if the supplied attributes do not include `'ref'` then the same
463
+ * (by reference) array will be returned without modification.
464
+ *
465
+ * @param attrNames attribute names to sort
466
+ * @returns a list of attribute names, sorted if they include `"ref"`
467
+ */
468
+ function sortedAttrNames(attrNames) {
469
+ return attrNames.includes('ref')
470
+ ? // we need to sort these to ensure that `'ref'` is the last attr
471
+ [...attrNames.filter((attr) => attr !== 'ref'), 'ref']
472
+ : // no need to sort, return the original array
473
+ attrNames;
474
+ }
457
475
  /**
458
476
  * Create a DOM Node corresponding to one of the children of a given VNode.
459
477
  *
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-f6944bba.js';
2
- export { s as setNonce } from './index-f6944bba.js';
1
+ import { b as bootstrapLazy } from './index-b878de0a.js';
2
+ export { s as setNonce } from './index-b878de0a.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-f6944bba.js';
2
- export { s as setNonce } from './index-f6944bba.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-b878de0a.js';
2
+ export { s as setNonce } from './index-b878de0a.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 +1 @@
1
- import{r as e,h as t}from"./p-ce7bc46f.js";const r=class{constructor(r){e(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=e=>{const{tags:r=[]}=e;return t("div",{class:"detailWrapper"},t("span",null,r.length," details..."),t("ul",null,r.map((e=>t("li",null,e)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:e,items:t,fields:r}=this;e.data=t,e.fields=r,e.details=this.renderDetails}render(){return t("proto-table",{key:"aa5f26287b85073afb5bbd3c133f9ad388fc8138",ref:e=>this.table=e})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){e(this,r),this.protoIcon=(e,r,l=24)=>{const o=s[e];return t("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},t("title",null,(e=>i[e])(e)),t("g",{fill:r},t("path",{d:o})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(e,t)=>()=>{0===e&&(this.expanded=this.expanded===t?void 0:t)},this.handleSortClick=e=>()=>{this.sort===e?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=e,this.clicks=1)},this.iconFor=e=>this.sort===e&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:e,iconFor:r,protoIcon:s}=this;return t("div",{class:"header"},e.map((({label:e},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return t("div",{class:l,onClick:this.handleSortClick(i)},s(o),t("span",null,e))})))},this.row=(e,r)=>{const{fields:s,protoIcon:i}=this;return t("div",{class:"rowContainer"},t("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>t("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),e[s])))),this.details&&this.expanded===r&&this.details(e))},this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0}render(){const e=this.data||[];return t("div",{key:"c30742fde0de976c553234528a7bfb6ce10d3ef5",class:"table"},this.header(),e.map(((e,t)=>this.row(e,t))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
1
+ import{r as e,h as t}from"./p-bb46f1f8.js";const r=class{constructor(r){e(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=e=>{const{tags:r=[]}=e;return t("div",{class:"detailWrapper"},t("span",null,r.length," details..."),t("ul",null,r.map((e=>t("li",null,e)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:e,items:t,fields:r}=this;e.data=t,e.fields=r,e.details=this.renderDetails}render(){return t("proto-table",{key:"aa5f26287b85073afb5bbd3c133f9ad388fc8138",ref:e=>this.table=e})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){e(this,r),this.protoIcon=(e,r,l=24)=>{const o=s[e];return t("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},t("title",null,(e=>i[e])(e)),t("g",{fill:r},t("path",{d:o})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(e,t)=>()=>{0===e&&(this.expanded=this.expanded===t?void 0:t)},this.handleSortClick=e=>()=>{this.sort===e?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=e,this.clicks=1)},this.iconFor=e=>this.sort===e&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:e,iconFor:r,protoIcon:s}=this;return t("div",{class:"header"},e.map((({label:e},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return t("div",{class:l,onClick:this.handleSortClick(i)},s(o),t("span",null,e))})))},this.row=(e,r)=>{const{fields:s,protoIcon:i}=this;return t("div",{class:"rowContainer"},t("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>t("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),e[s])))),this.details&&this.expanded===r&&this.details(e))},this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0}render(){const e=this.data||[];return t("div",{key:"c30742fde0de976c553234528a7bfb6ce10d3ef5",class:"table"},this.header(),e.map(((e,t)=>this.row(e,t))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
@@ -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,h:null,o:null,l:null,i:null}),f={},a=new WeakMap,d=e=>"sc-"+e.v,y=(e,n,t,l,o,s)=>{if(t!==l){let c=B(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=h(t),s=h(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("ref"===n)l&&l(e);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):B(Q,r)?r.slice(2):r[2]+n.slice(3),t||l){const o=n.endsWith(v);n=n.replace($,""),t&&Y.rel(e,n,t,o),l&&Y.ael(e,n,l,o)}}},p=/\s/,h=e=>e?e.split(p):[],v="Capture",$=RegExp(v+"$"),m=(e,n,t,l)=>{const o=11===n.h.nodeType&&n.h.host?n.h.host:n.h,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.h=X.createTextNode(i.t);else{if(t||(t="svg"===i.p),c=i.h=X.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.p),t&&"foreignObject"===i.p&&(t=!1),m(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);"svg"===i.p?t=!1:"foreignObject"===c.tagName&&(t=!0)}return c["s-hn"]=n,c},g=(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].h=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.h;k(n),e&&e.remove()}}},S=(e,n,t=!1)=>e.p===n.p&&(!!t||e.i===n.i),O=(e,n,l=!1)=>{const o=n.h=e.h,s=e.o,i=n.o,c=n.p,r=n.t;null===r?(t="svg"===c||"foreignObject"!==c&&t,m(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,h=l[0],v=l[p];for(;c<=a&&r<=p;)if(null==d)d=n[++c];else if(null==y)y=n[--a];else if(null==h)h=l[++r];else if(null==v)v=l[--p];else if(S(d,h,o))O(d,h,o),d=n[++c],h=l[++r];else if(S(y,v,o))O(y,v,o),y=n[--a],v=l[--p];else if(S(d,v,o))O(d,v,o),e.insertBefore(d.h,y.h.nextSibling),d=n[++c],v=l[--p];else if(S(y,h,o))O(y,h,o),e.insertBefore(y.h,d.h),y=n[--a],h=l[++r];else{for(u=-1,f=c;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===h.i){u=f;break}u>=0?(i=n[u],i.p!==h.p?s=w(n&&n[r],t,u):(O(i,h,o),n[u]=void 0,s=i.h),h=l[++r]):(s=w(n&&n[r],t,r),h=l[++r]),s&&d.h.parentNode.insertBefore(s,d.h)}c>a?g(e,null==l[p+1]?null:l[p+1].h,t,l,r,p):r>p&&j(n,c,a)})(o,s,n,i,l):null!==i?(null!==e.t&&(o.textContent=""),g(o,null,n,i,0,i.length-1)):null!==s&&j(s,0,s.length-1),t&&"svg"===c&&(t=!1)):e.t!==r&&(o.data=r)},k=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(k)},M=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},C=(e,n)=>{if(e.u|=16,!(4&e.u))return M(e,e.m),ce((()=>x(e,n)));e.u|=512},x=(e,n)=>{const t=e.j;let l;return n&&(l=T(t,"componentWillLoad")),E(l,(()=>L(e,t,n)))},E=(e,n)=>P(e)?e.then(n):n(),P=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,L=async(e,n,t)=>{var l;const s=e.$hostElement$,i=s["s-rc"];t&&(e=>{const n=e.S,t=e.$hostElement$,l=n.u,s=((e,n)=>{var t;const l=d(n),s=K.get(l);if(e=11===e.nodeType?e:X,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=X.createElement("style"),i.innerHTML=s;const n=null!==(t=Y.O)&&void 0!==t?t:c(X);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=()=>N(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.k||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.k=c,c.h=i.h=s.shadowRoot||s,e=s["s-sc"],O(i,c,o)})(t,l,s)}catch(e){G(e,t.$hostElement$)}return null},N=e=>{const n=e.$hostElement$,t=e.j,l=e.m;64&e.u||(e.u|=64,W(n),T(t,"componentDidLoad"),e.M(n),l||R()),e.$&&(e.$(),e.$=void 0),512&e.u&&ie((()=>C(e,!1))),e.u&=-517},R=()=>{W(X.documentElement),ie((()=>(e=>{const n=Y.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(n),n})(Q)))},T=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){G(e)}},W=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,[n]])=>{(31&n||2&t&&32&n)&&Object.defineProperty(o,e,{get(){return((e,n)=>V(this).P.get(n))(0,e)},set(n){((e,n,t)=>{const l=V(e),o=l.P.get(n),s=l.u,c=l.j;t=(e=>(null==e||i(e),e))(t),8&s&&void 0!==o||t===o||Number.isNaN(o)&&Number.isNaN(t)||(l.P.set(n,t),c&&2==(18&s)&&C(l,!1))})(this,e,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){Y.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=V(this),o=null==t?void 0:t.u;if(o&&!(8&o)&&128&o&&s!==l){const o=t.j,c=null===(i=n.L)||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.L)&&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},q=async(e,n,t)=>{let l;if(!(32&n.u)){if(n.u|=32,t.A){if(l=J(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){G(e)}n.u&=-9,e()}else l=e.constructor,customElements.whenDefined(t.v).then((()=>n.u|=128));if(l.style){let e=l.style;const n=d(t);if(!K.has(n)){const l=()=>{};((e,n,t)=>{let l=K.get(e);ee&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,K.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.m,s=()=>C(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},D=(e,n={})=>{var t;const l=[],s=n.exclude||[],i=Q.customElements,r=X.head,u=r.querySelector("meta[charset]"),f=X.createElement("style"),a=[];let d,y=!0;Object.assign(Y,n),Y.N=new URL(n.resourcesUrl||"./",X.baseURI).href;let p=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],v:n[1],C:n[2],R:n[3]};4&t.u&&(p=!0),t.C=n[2];const o=t.v,c=class extends HTMLElement{constructor(e){super(e),z(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?a.push(this):Y.jmp((()=>(e=>{if(!(1&Y.u)){const n=V(e),t=n.S,l=()=>{};if(1&n.u)(null==n?void 0:n.j)||(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"]){M(n,n.m=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}})),q(e,n,t)}l()}})(this)))}disconnectedCallback(){Y.jmp((()=>(async()=>{if(!(1&Y.u)){const e=V(this);(null==e?void 0:e.j)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return V(this).T}};t.A=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=Y.O)&&void 0!==t?t:c(X);null!=e&&f.setAttribute("nonce",e),r.insertBefore(f,u?u.nextSibling:r.firstChild)}y=!1,a.length?a.map((e=>e.connectedCallback())):Y.jmp((()=>d=setTimeout(R,30)))},F=e=>Y.O=e,H=new WeakMap,V=e=>H.get(e),_=(e,n)=>H.set(n.j=e,n),z=(e,n)=>{const t={u:0,$hostElement$:e,S:n,P:new Map};return t.T=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],H.set(e,t)},B=(e,n)=>n in e,G=(e,n)=>(0,console.error)(e,n),I=new Map,J=e=>{const n=e.v.replace(/-/g,"_"),t=e.A,l=I.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(I.set(t,e),e[n])),G)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},K=new Map,Q="undefined"!=typeof window?window:{},X=Q.document||{head:{}},Y={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)},Z=e=>Promise.resolve(e),ee=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ne=[],te=[],le=(e,n)=>t=>{e.push(t),l||(l=!0,n&&4&Y.u?ie(se):Y.raf(se))},oe=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){G(e)}e.length=0},se=()=>{oe(ne),oe(te),(l=ne.length>0)&&Y.raf(se)},ie=e=>Z().then(e),ce=le(te,!0);export{D as b,r as h,Z as p,_ as r,F as s}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-ce7bc46f.js";export{s as setNonce}from"./p-ce7bc46f.js";import{g as a}from"./p-e1255160.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((async e=>(await a(),t([["p-71479619",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],e))));
1
+ import{p as t,b as a}from"./p-bb46f1f8.js";export{s as setNonce}from"./p-bb46f1f8.js";import{g as e}from"./p-e1255160.js";(()=>{const s=import.meta.url,a={};return""!==s&&(a.resourcesUrl=new URL(".",s).href),t(a)})().then((async s=>(await e(),a([["p-271c985b",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],s))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-table-wc",
3
- "version": "0.0.494",
3
+ "version": "0.0.496",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -25,14 +25,14 @@
25
25
  "format": "prettier --write src"
26
26
  },
27
27
  "dependencies": {
28
- "@stencil/core": "4.14.0"
28
+ "@stencil/core": "4.14.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "cspell": "8.6.1",
32
32
  "eslint": "8.57.0",
33
33
  "prettier": "3.2.5",
34
34
  "tslint": "6.1.3",
35
- "typescript": "5.4.3"
35
+ "typescript": "5.4.4"
36
36
  },
37
37
  "license": "MIT"
38
38
  }
@@ -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,h:null,o:null,l:null,i:null}),f={},a=new WeakMap,d=e=>"sc-"+e.v,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=h(t),s=h(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("ref"===n)l&&l(e);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(v);n=n.replace($,""),t&&X.rel(e,n,t,o),l&&X.ael(e,n,l,o)}}},p=/\s/,h=e=>e?e.split(p):[],v="Capture",$=RegExp(v+"$"),m=(e,n,t,l)=>{const o=11===n.h.nodeType&&n.h.host?n.h.host:n.h,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.h=Q.createTextNode(i.t);else{if(t||(t="svg"===i.p),c=i.h=Q.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.p),t&&"foreignObject"===i.p&&(t=!1),m(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);"svg"===i.p?t=!1:"foreignObject"===c.tagName&&(t=!0)}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].h=c,r.insertBefore(c,t)))},g=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.h;O(n),e&&e.remove()}}},j=(e,n,t=!1)=>e.p===n.p&&(!!t||e.i===n.i),S=(e,n,l=!1)=>{const o=n.h=e.h,s=e.o,i=n.o,c=n.p,r=n.t;null===r?(t="svg"===c||"foreignObject"!==c&&t,m(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,h=l[0],v=l[p];for(;c<=a&&r<=p;)if(null==d)d=n[++c];else if(null==y)y=n[--a];else if(null==h)h=l[++r];else if(null==v)v=l[--p];else if(j(d,h,o))S(d,h,o),d=n[++c],h=l[++r];else if(j(y,v,o))S(y,v,o),y=n[--a],v=l[--p];else if(j(d,v,o))S(d,v,o),e.insertBefore(d.h,y.h.nextSibling),d=n[++c],v=l[--p];else if(j(y,h,o))S(y,h,o),e.insertBefore(y.h,d.h),y=n[--a],h=l[++r];else{for(u=-1,f=c;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===h.i){u=f;break}u>=0?(i=n[u],i.p!==h.p?s=b(n&&n[r],t,u):(S(i,h,o),n[u]=void 0,s=i.h),h=l[++r]):(s=b(n&&n[r],t,r),h=l[++r]),s&&d.h.parentNode.insertBefore(s,d.h)}c>a?w(e,null==l[p+1]?null:l[p+1].h,t,l,r,p):r>p&&g(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&&g(s,0,s.length-1),t&&"svg"===c&&(t=!1)):e.t!==r&&(o.data=r)},O=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(O)},k=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},M=(e,n)=>{if(e.u|=16,!(4&e.u))return k(e,e.m),ie((()=>C(e,n)));e.u|=512},C=(e,n)=>{const t=e.j;let l;return n&&(l=R(t,"componentWillLoad")),x(l,(()=>P(e,t,n)))},x=(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.S,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.O)&&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);L(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)}},L=(t,l,o,s)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.k||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.k=c,c.h=i.h=s.shadowRoot||s,e=s["s-sc"],S(i,c,o)})(t,l,s)}catch(e){B(e,t.$hostElement$)}return null},A=e=>{const n=e.$hostElement$,t=e.j,l=e.m;64&e.u||(e.u|=64,T(n),R(t,"componentDidLoad"),e.M(n),l||N()),e.$&&(e.$(),e.$=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-table-wc"}});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"),W=(e,n,t)=>{var l;const o=e.prototype;if(n.C){const s=Object.entries(n.C);if(s.map((([e,[n]])=>{(31&n||2&t&&32&n)&&Object.defineProperty(o,e,{get(){return((e,n)=>H(this).P.get(n))(0,e)},set(n){((e,n,t)=>{const l=H(e),o=l.P.get(n),s=l.u,c=l.j;t=(e=>(null==e||i(e),e))(t),8&s&&void 0!==o||t===o||Number.isNaN(o)&&Number.isNaN(t)||(l.P.set(n,t),c&&2==(18&s)&&M(l,!1))})(this,e,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.j,c=null===(i=n.L)||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.L)&&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.A){if(l=I(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(W(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.v).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.m,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],v:n[1],C:n[2],R:n[3]};4&t.u&&(p=!0),t.C=n[2];const o=t.v,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.S,l=()=>{};if(1&n.u)(null==n?void 0:n.j)||(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.m=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(){X.jmp((()=>(async()=>{if(!(1&X.u)){const e=H(this);(null==e?void 0:e.j)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return H(this).T}};t.A=e[0],s.includes(o)||i.get(o)||(l.push(o),i.define(o,W(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.O)&&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.O=e,F=new WeakMap,H=e=>F.get(e),V=(e,n)=>F.set(n.j=e,n),_=(e,n)=>{const t={u:0,$hostElement$:e,S: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.v.replace(/-/g,"_"),t=e.A,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}