analog-clock-components 0.2.28 → 0.2.29
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/analog-clock/analog-clock.esm.js +1 -1
- package/dist/analog-clock/p-BrnktegG.js +2 -0
- package/dist/analog-clock/{p-42c096b7.entry.js → p-befb3e68.entry.js} +1 -1
- package/dist/cjs/analog-clock.cjs.entry.js +1 -1
- package/dist/cjs/analog-clock.cjs.js +2 -2
- package/dist/cjs/{index-Dc1Rta2j.js → index-wlt3BRHP.js} +14 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/analog-clock.entry.js +1 -1
- package/dist/esm/analog-clock.js +3 -3
- package/dist/esm/{index-SoX809Hy.js → index-BrnktegG.js} +14 -7
- package/dist/esm/loader.js +2 -2
- package/package.json +2 -2
- package/dist/analog-clock/p-SoX809Hy.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,g as t,b as o}from"./p-BrnktegG.js";export{s as setNonce}from"./p-BrnktegG.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((async e=>(await t(),o([["p-befb3e68",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const t=()=>{};var e=Object.defineProperty,n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},l=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,h=[],p=[],m=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&u.o?w(y):u.raf(y))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},y=()=>{v(h),v(p),(d=h.length>0)&&u.raf(y)},w=t=>a().then(t),b=m(p,!0),$=t=>"object"==(t=typeof t)||"function"===t;function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>O,ok:()=>S,unwrap:()=>k,unwrapErr:()=>E});var S=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>S(t))):S(n)}if(t.isErr)return j(t.value);throw"should never get here"}var k=t=>{if(t.isOk)return t.value;throw t.value},E=t=>{if(t.isErr)return t.value;throw t.value};function C(){const t=this.attachShadow({mode:"open"});if(f){const e=new CSSStyleSheet;e.replaceSync(""),t.adoptedStyleSheets.push(e)}}var M=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!$(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?x(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=x(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},x=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),P={},N=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};N("::slotted"),N(":host"),N(":host-context");var D,R=(t,e)=>null==t||$(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t,U=new WeakMap,W=t=>"sc-"+t.$,A=(t,e,n,o,l,s)=>{if(n===o)return;let i=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=T(n);let s=T(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else{const r=$(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||l)&&!r&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}},L=/\s/,T=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(L):[]),F=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of H(Object.keys(l)))t in s||A(o,t,l[t],void 0,n,e.o);for(const t of H(Object.keys(s)))A(o,t,l[t],s[t],n,e.o)};function H(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,V=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(z||(z="svg"===o.m),!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=c.document.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),z&&"foreignObject"===o.m&&(z=!1),F(null,o,z),o.h)for(i=0;i<o.h.length;++i)s=V(t,o,i),s&&l.appendChild(s);return"svg"===o.m?z=!1:"foreignObject"===l.tagName&&(z=!0),l["s-hn"]=D,l},q=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===D&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=V(null,n,l),i&&(o[l].v=i,_(r,i,e)))},G=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},I=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),Y=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m;F(t,e,z="svg"===i||"foreignObject"!==i&&z),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(I(d,m,l))Y(d,m,l),d=e[++r],m=o[++c];else if(I(h,v,l))Y(h,v,l),h=e[--f],v=o[--p];else if(I(d,v,l))Y(d,v,l),_(t,d.v,h.v.nextSibling),d=e[++r],v=o[--p];else if(I(h,m,l))Y(h,m,l),_(t,h.v,d.v),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=V(e&&e[c],n,u):(Y(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=V(e&&e[c],n,c),m=o[++c]),s&&_(d.v.parentNode,s,d.v)}r>f?q(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&G(e,r,f)})(o,l,e,s,n):null!==s?q(o,null,e,s,0,s.length-1):!n&&null!==l&&G(l,0,l.length-1),z&&"svg"===i&&(z=!1)},_=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),B=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},J=(t,e)=>{if(t.o|=16,!(4&t.o))return B(t,t.j),b((()=>K(t,e)));t.o|=512},K=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=ot(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=Q(l,(()=>ot(o,"componentWillRender",void 0,n))),Q(l,(()=>Z(t,o,e)))},Q=(t,e)=>X(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),X=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Z=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=W(e),l=i.get(o);if(!c.document)return o;if(t=11===t.nodeType?t:c.document,l)if("string"==typeof l){let s,i=U.get(t=t.head||t);if(i||U.set(t,i=new Set),!i.has(o)){{s=c.document.createElement("style"),s.innerHTML=l;const o=null!=(n=u.k)?n:g(c.document);if(null!=o&&s.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);tt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>et(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},tt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C||x(null,null),s=(t=>t&&t.m===P)(e)?e:M(null,null,e);if(D=o.tagName,n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.m=null,s.o|=4,t.C=s,s.v=l.v=o.shadowRoot||o,Y(l,s,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},et=t=>{const e=t.$hostElement$,n=t.t,o=t.j;ot(n,"componentDidRender",void 0,e),64&t.o?ot(n,"componentDidUpdate",void 0,e):(t.o|=64,lt(e),ot(n,"componentDidLoad",void 0,e),t.M(e),o||nt()),t.S&&(t.S(),t.S=void 0),512&t.o&&w((()=>J(t,!1))),t.o&=-517},nt=()=>{w((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(c)))},ot=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},lt=t=>t.classList.add("hydrated"),st=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=s.P.get(e),r=s.o,c=s.t;if(o=R(o,l.N[e][0]),(!(8&r)||void 0===i)&&o!==i&&(!Number.isNaN(i)||!Number.isNaN(o))&&(s.P.set(e,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,i,e))return;J(s,!1)}},it=(t,e,o)=>{var l,s;const i=t.prototype;if(e.N){const r=Object.entries(null!=(l=e.N)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.N[t][0]|=2048),r&&(e.N[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.N[t][0]))return((t,e)=>n(this).P.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.P.get(t)?s=i.P.get(t):!i.P.get(t)&&n&&i.P.set(t,n),r.call(this,R(s,l)),void st(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.N[t][0]))return st(this,t,s,e),void(1&o&&!i.t&&i.D.then((()=>{4096&e.N[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.P.get(t)&&n&&i.P.set(t,n),i.t[t]=R(s,l),st(this,t,i.t[t],e)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){u.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.R)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.R)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},rt=(t,e)=>{ot(t,"connectedCallback",void 0,e)},ct=(t,e)=>{ot(t,"disconnectedCallback",void 0,e||t)},ut=(t,e={})=>{var o;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const a=[],d=e.exclude||[],h=c.customElements,p=c.document.head,m=p.querySelector("meta[charset]"),v=c.document.createElement("style"),y=[];let w,b=!0;Object.assign(u,e),u.l=new URL(e.resourcesUrl||"./",c.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((e=>{const o={o:e[0],$:e[1],N:e[2],U:e[3]};4&o.o&&($=!0),o.N=e[2];const r=o.$,c=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,O:e,P:new Map};n.D=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,o),1&o.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else C.call(t,o)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),b?y.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const e=n(t),o=e.O,r=()=>{};if(1&e.o)(null==e?void 0:e.t)?rt(e.t,t):(null==e?void 0:e.D)&&e.D.then((()=>rt(e.t,t)));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){B(e,e.j=n);break}}o.N&&Object.entries(o.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.W){const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.W;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${e.A}" was not found`);o.isProxied||(it(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,r(),rt(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=W(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>J(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,o)}r()}})(this)))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.o)){const e=n(t);(null==e?void 0:e.t)?ct(e.t,t):(null==e?void 0:e.D)&&e.D.then((()=>ct(e.t,t)))}U.has(t)&&U.delete(t),t.shadowRoot&&U.has(t.shadowRoot)&&U.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=n(this),o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==e?void 0:e.C)?void 0:t.v)instanceof Node&&!e.C.v.isConnected&&delete e.C.v}))}componentOnReady(){return n(this).D}};o.W=t[0],d.includes(r)||h.get(r)||(a.push(r),h.define(r,it(c,o,1)))}))})),a.length>0&&($&&(v.textContent+=r),v.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(o=u.k)?o:g(c.document);null!=t&&v.setAttribute("nonce",t),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((t=>t.connectedCallback())):u.jmp((()=>w=setTimeout(nt,30)))},at=t=>u.k=t;export{ut as b,t as g,M as h,a as p,o as r,at as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-BrnktegG.js";const c=class{constructor(t){e(this,t),this.size=void 0,this.timeZone=0,this.time=Date.now()}componentDidLoad(){this.timer=window.setInterval((()=>{this.time=Date.now()}),250)}disconnectedCallback(){clearInterval(this.timer)}get hour(){return new Date(this.time).getHours()}get minute(){return new Date(this.time).getMinutes()}get second(){return new Date(this.time).getSeconds()}hourToDegrees(){const e=this.hour+this.timeZone;return Math.floor(this.minute/2)+30*e}minuteToDegrees(){return Math.floor(this.second/10)+6*this.minute}secondToDegrees(){return 6*this.second}render(){return t("svg",{key:"39e3465d3bf04035966b00bb15186d1f712163cd",class:"clock",viewBox:"0 0 200 200",width:this.size,height:this.size},t("circle",{key:"e4c4288aa0efc9cf98027eef1f5bd7c550c23a18",id:"circle",cx:"100",cy:"100",r:"95","stroke-width":"10",fill:"transparent"}),t("line",{key:"296fb8ac19749103439f2ce1878db5ccfb214c20",id:"hour",transform:`rotate(${this.hourToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"60","stroke-width":"10","stroke-linecap":"round"}),t("line",{key:"acbe2c6ebdf05ff46e06144839dec43c45e8b40d",id:"minute",transform:`rotate(${this.minuteToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"30","stroke-width":"8","stroke-linecap":"round"}),t("line",{key:"f275abf7169379b2f61c9cdd185068f5e2373d4a",id:"second",transform:`rotate(${this.secondToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"20","stroke-width":"2","stroke-linecap":"round"}))}};c.style=".clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}";export{c as analog_clock}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-wlt3BRHP.js');
|
|
4
4
|
|
|
5
5
|
const analogClockCss = ".clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}";
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-wlt3BRHP.js');
|
|
4
4
|
|
|
5
5
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Patch Browser v4.
|
|
7
|
+
Stencil Client Patch Browser v4.34.0 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
var patchBrowser = () => {
|
|
@@ -7,7 +7,7 @@ const globalScripts = () => {};
|
|
|
7
7
|
const globalStyles = "";
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
|
-
Stencil Client Platform v4.
|
|
10
|
+
Stencil Client Platform v4.34.0 | MIT Licensed | https://stenciljs.com
|
|
11
11
|
*/
|
|
12
12
|
var __defProp = Object.defineProperty;
|
|
13
13
|
var __export = (target, all) => {
|
|
@@ -83,7 +83,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
83
|
|
|
84
84
|
// src/client/client-style.ts
|
|
85
85
|
var styles = /* @__PURE__ */ new Map();
|
|
86
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
87
86
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
88
87
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
89
88
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -302,7 +301,7 @@ var createSupportsRuleRe = (selector) => {
|
|
|
302
301
|
createSupportsRuleRe("::slotted");
|
|
303
302
|
createSupportsRuleRe(":host");
|
|
304
303
|
createSupportsRuleRe(":host-context");
|
|
305
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
304
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
306
305
|
if (propValue != null && !isComplexType(propValue)) {
|
|
307
306
|
if (propType & 2 /* Number */) {
|
|
308
307
|
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
@@ -349,7 +348,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
349
348
|
}
|
|
350
349
|
if (!appliedStyles.has(scopeId2)) {
|
|
351
350
|
{
|
|
352
|
-
styleElm =
|
|
351
|
+
styleElm = win.document.createElement("style");
|
|
353
352
|
styleElm.innerHTML = style;
|
|
354
353
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
355
354
|
if (nonce != null) {
|
|
@@ -894,7 +893,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
894
893
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
895
894
|
const flags = hostRef.$flags$;
|
|
896
895
|
const instance = hostRef.$lazyInstance$ ;
|
|
897
|
-
newVal = parsePropertyValue(
|
|
896
|
+
newVal = parsePropertyValue(
|
|
897
|
+
newVal,
|
|
898
|
+
cmpMeta.$members$[propName][0]);
|
|
898
899
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
899
900
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
900
901
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -950,7 +951,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
950
951
|
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
951
952
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
952
953
|
}
|
|
953
|
-
origSetter.apply(this, [
|
|
954
|
+
origSetter.apply(this, [
|
|
955
|
+
parsePropertyValue(
|
|
956
|
+
newValue,
|
|
957
|
+
memberFlags)
|
|
958
|
+
]);
|
|
954
959
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
955
960
|
setValue(this, memberName, newValue, cmpMeta);
|
|
956
961
|
return;
|
|
@@ -972,7 +977,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
972
977
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
973
978
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
974
979
|
}
|
|
975
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
980
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
981
|
+
newValue,
|
|
982
|
+
memberFlags);
|
|
976
983
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
977
984
|
};
|
|
978
985
|
if (ref.$lazyInstance$) {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BrnktegG.js';
|
|
2
2
|
|
|
3
3
|
const analogClockCss = ".clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}";
|
|
4
4
|
|
package/dist/esm/analog-clock.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-BrnktegG.js';
|
|
2
|
+
export { s as setNonce } from './index-BrnktegG.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
5
|
+
Stencil Client Patch Browser v4.34.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
var patchBrowser = () => {
|
|
@@ -5,7 +5,7 @@ const globalScripts = () => {};
|
|
|
5
5
|
const globalStyles = "";
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Platform v4.
|
|
8
|
+
Stencil Client Platform v4.34.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __export = (target, all) => {
|
|
@@ -81,7 +81,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
81
81
|
|
|
82
82
|
// src/client/client-style.ts
|
|
83
83
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
84
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
85
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
86
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -300,7 +299,7 @@ var createSupportsRuleRe = (selector) => {
|
|
|
300
299
|
createSupportsRuleRe("::slotted");
|
|
301
300
|
createSupportsRuleRe(":host");
|
|
302
301
|
createSupportsRuleRe(":host-context");
|
|
303
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
302
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
304
303
|
if (propValue != null && !isComplexType(propValue)) {
|
|
305
304
|
if (propType & 2 /* Number */) {
|
|
306
305
|
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
@@ -347,7 +346,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
347
346
|
}
|
|
348
347
|
if (!appliedStyles.has(scopeId2)) {
|
|
349
348
|
{
|
|
350
|
-
styleElm =
|
|
349
|
+
styleElm = win.document.createElement("style");
|
|
351
350
|
styleElm.innerHTML = style;
|
|
352
351
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
353
352
|
if (nonce != null) {
|
|
@@ -892,7 +891,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
892
891
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
893
892
|
const flags = hostRef.$flags$;
|
|
894
893
|
const instance = hostRef.$lazyInstance$ ;
|
|
895
|
-
newVal = parsePropertyValue(
|
|
894
|
+
newVal = parsePropertyValue(
|
|
895
|
+
newVal,
|
|
896
|
+
cmpMeta.$members$[propName][0]);
|
|
896
897
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
897
898
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
898
899
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -948,7 +949,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
948
949
|
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
949
950
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
950
951
|
}
|
|
951
|
-
origSetter.apply(this, [
|
|
952
|
+
origSetter.apply(this, [
|
|
953
|
+
parsePropertyValue(
|
|
954
|
+
newValue,
|
|
955
|
+
memberFlags)
|
|
956
|
+
]);
|
|
952
957
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
953
958
|
setValue(this, memberName, newValue, cmpMeta);
|
|
954
959
|
return;
|
|
@@ -970,7 +975,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
970
975
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
971
976
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
972
977
|
}
|
|
973
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
978
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
979
|
+
newValue,
|
|
980
|
+
memberFlags);
|
|
974
981
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
975
982
|
};
|
|
976
983
|
if (ref.$lazyInstance$) {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-BrnktegG.js';
|
|
2
|
+
export { s as setNonce } from './index-BrnktegG.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "analog-clock-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"format": "prettier --write src"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@stencil/core": "4.
|
|
28
|
+
"@stencil/core": "4.34.0"
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const t=()=>{};var e=Object.defineProperty,n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},s=(t,e)=>(0,console.error)(t,e),l=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,h=[],p=[],m=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&u.o?w(y):u.raf(y))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},y=()=>{v(h),v(p),(d=h.length>0)&&u.raf(y)},w=t=>a().then(t),b=m(p,!0),$=t=>"object"==(t=typeof t)||"function"===t;function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>O,ok:()=>S,unwrap:()=>k,unwrapErr:()=>E});var S=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>S(t))):S(n)}if(t.isErr)return j(t.value);throw"should never get here"}var k=t=>{if(t.isOk)return t.value;throw t.value},E=t=>{if(t.isErr)return t.value;throw t.value};function C(){const t=this.attachShadow({mode:"open"});if(f){const e=new CSSStyleSheet;e.replaceSync(""),t.adoptedStyleSheets.push(e)}}var M=(t,e,...n)=>{let o=null,s=null,l=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!$(o))&&(o+=""),l&&i?r[r.length-1].i+=o:r.push(l?x(null,o):o),i=l)};if(c(n),e){e.key&&(s=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=x(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=s,u},x=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),P={},N=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};N("::slotted"),N(":host"),N(":host-context");var D,R=(t,e)=>null==t||$(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t,U=new WeakMap,W=t=>"sc-"+t.$,A=(t,e,n,o,s,l)=>{if(n===o)return;let i=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,s=T(n);let l=T(o);e.remove(...s.filter((t=>t&&!l.includes(t)))),e.add(...l.filter((t=>t&&!s.includes(t))))}else if("key"===e);else{const r=$(o);if((i||r&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const s=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==s||("function"==typeof t.__lookupSetter__(e)?t[e]=s:t.setAttribute(e,s))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&l||s)&&!r&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}},L=/\s/,T=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(L):[]),F=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,s=t&&t.u||{},l=e.u||{};for(const t of H(Object.keys(s)))t in l||A(o,t,s[t],void 0,n,e.o);for(const t of H(Object.keys(l)))A(o,t,s[t],l[t],n,e.o)};function H(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,V=(t,e,n)=>{const o=e.h[n];let s,l,i=0;if(z||(z="svg"===o.m),!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=o.v=c.document.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),z&&"foreignObject"===o.m&&(z=!1),F(null,o,z),o.h)for(i=0;i<o.h.length;++i)l=V(t,o,i),l&&s.appendChild(l);return"svg"===o.m?z=!1:"foreignObject"===s.tagName&&(z=!0),s["s-hn"]=D,s},q=(t,e,n,o,s,l)=>{let i,r=t;for(r.shadowRoot&&r.tagName===D&&(r=r.shadowRoot);s<=l;++s)o[s]&&(i=V(null,n,s),i&&(o[s].v=i,_(r,i,e)))},G=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},I=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),Y=(t,e,n=!1)=>{const o=e.v=t.v,s=t.h,l=e.h,i=e.m;F(t,e,z="svg"===i||"foreignObject"!==i&&z),null!==s&&null!==l?((t,e,n,o,s=!1)=>{let l,i,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(I(d,m,s))Y(d,m,s),d=e[++r],m=o[++c];else if(I(h,v,s))Y(h,v,s),h=e[--f],v=o[--p];else if(I(d,v,s))Y(d,v,s),_(t,d.v,h.v.nextSibling),d=e[++r],v=o[--p];else if(I(h,m,s))Y(h,m,s),_(t,h.v,d.v),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?l=V(e&&e[c],n,u):(Y(i,m,s),e[u]=void 0,l=i.v),m=o[++c]):(l=V(e&&e[c],n,c),m=o[++c]),l&&_(d.v.parentNode,l,d.v)}r>f?q(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&G(e,r,f)})(o,s,e,l,n):null!==l?q(o,null,e,l,0,l.length-1):!n&&null!==s&&G(s,0,s.length-1),z&&"svg"===i&&(z=!1)},_=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),B=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},J=(t,e)=>{if(t.o|=16,!(4&t.o))return B(t,t.j),b((()=>K(t,e)));t.o|=512},K=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=ot(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),s=Q(s,(()=>ot(o,"componentWillRender",void 0,n))),Q(s,(()=>Z(t,o,e)))},Q=(t,e)=>X(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),X=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Z=async(t,e,n)=>{var o;const s=t.$hostElement$,l=s["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,s=((t,e)=>{var n;const o=W(e),s=i.get(o);if(!c.document)return o;if(t=11===t.nodeType?t:c.document,s)if("string"==typeof s){let l,i=U.get(t=t.head||t);if(i||U.set(t,i=new Set),!i.has(o)){{l=document.querySelector(`[sty-id="${o}"]`)||c.document.createElement("style"),l.innerHTML=s;const i=null!=(n=u.k)?n:g(c.document);if(null!=i&&l.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new CSSStyleSheet;e.replaceSync(s),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=s+e.innerHTML:t.prepend(l)}else t.append(l);1&e.o&&t.insertBefore(l,null)}4&e.o&&(l.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);tt(t,e,s,n),l&&(l.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>et(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},tt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,s=t.C||x(null,null),l=(t=>t&&t.m===P)(e)?e:M(null,null,e);if(D=o.tagName,n&&l.u)for(const t of Object.keys(l.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(l.u[t]=o[t]);l.m=null,l.o|=4,t.C=l,l.v=s.v=o.shadowRoot||o,Y(s,l,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},et=t=>{const e=t.$hostElement$,n=t.t,o=t.j;ot(n,"componentDidRender",void 0,e),64&t.o?ot(n,"componentDidUpdate",void 0,e):(t.o|=64,st(e),ot(n,"componentDidLoad",void 0,e),t.M(e),o||nt()),t.S&&(t.S(),t.S=void 0),512&t.o&&w((()=>J(t,!1))),t.o&=-517},nt=()=>{w((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(c)))},ot=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},st=t=>t.classList.add("hydrated"),lt=(t,e,o,s)=>{const l=n(t);if(!l)throw Error(`Couldn't find host element for "${s.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=l.P.get(e),r=l.o,c=l.t;if(o=R(o,s.N[e][0]),(!(8&r)||void 0===i)&&o!==i&&(!Number.isNaN(i)||!Number.isNaN(o))&&(l.P.set(e,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,i,e))return;J(l,!1)}},it=(t,e,o)=>{var s,l;const i=t.prototype;if(e.N){const r=Object.entries(null!=(s=e.N)?s:{});if(r.map((([t,[s]])=>{if(31&s||2&o&&32&s){const{get:l,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};l&&(e.N[t][0]|=2048),r&&(e.N[t][0]|=4096),(1&o||!l)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.N[t][0]))return((t,e)=>n(this).P.get(e))(0,t);const o=n(this),s=o?o.t:i;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(l){const i=n(this);if(r){const n=32&s?this[t]:i.$hostElement$[t];return void 0===n&&i.P.get(t)?l=i.P.get(t):!i.P.get(t)&&n&&i.P.set(t,n),r.call(this,R(l,s)),void lt(this,t,l=32&s?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.N[t][0]))return lt(this,t,l,e),void(1&o&&!i.t&&i.D.then((()=>{4096&e.N[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=l)})));const n=()=>{const n=i.t[t];!i.P.get(t)&&n&&i.P.set(t,n),i.t[t]=R(l,s),lt(this,t,i.t[t],e)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,s,l){u.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))l=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==l)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&l!==s){const n=o.t,i=null==(r=e.R)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,l,s,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(l=(null!==l||"boolean"!=typeof this[c])&&l)===this[c]||u.get&&!u.set||(this[c]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e.R)?l:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},rt=(t,e)=>{ot(t,"connectedCallback",void 0,e)},ct=(t,e)=>{ot(t,"disconnectedCallback",void 0,e||t)},ut=(t,e={})=>{var o;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const a=[],d=e.exclude||[],h=c.customElements,p=c.document.head,m=p.querySelector("meta[charset]"),v=c.document.createElement("style"),y=[];let w,b=!0;Object.assign(u,e),u.l=new URL(e.resourcesUrl||"./",c.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((e=>{const o={o:e[0],$:e[1],N:e[2],U:e[3]};4&o.o&&($=!0),o.N=e[2];const r=o.$,c=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,O:e,P:new Map};n.D=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,o),1&o.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else C.call(t,o)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),b?y.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const e=n(t),o=e.O,r=()=>{};if(1&e.o)(null==e?void 0:e.t)?rt(e.t,t):(null==e?void 0:e.D)&&e.D.then((()=>rt(e.t,t)));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){B(e,e.j=n);break}}o.N&&Object.entries(o.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.W){const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.W;if(!o)return;const i=l.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(l.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${e.A}" was not found`);o.isProxied||(it(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,r(),rt(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=W(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>J(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,o)}r()}})(this)))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.o)){const e=n(t);(null==e?void 0:e.t)?ct(e.t,t):(null==e?void 0:e.D)&&e.D.then((()=>ct(e.t,t)))}U.has(t)&&U.delete(t),t.shadowRoot&&U.has(t.shadowRoot)&&U.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=n(this),o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==e?void 0:e.C)?void 0:t.v)instanceof Node&&!e.C.v.isConnected&&delete e.C.v}))}componentOnReady(){return n(this).D}};o.W=t[0],d.includes(r)||h.get(r)||(a.push(r),h.define(r,it(c,o,1)))}))})),a.length>0&&($&&(v.textContent+=r),v.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(o=u.k)?o:g(c.document);null!=t&&v.setAttribute("nonce",t),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((t=>t.connectedCallback())):u.jmp((()=>w=setTimeout(nt,30)))},at=t=>u.k=t;export{ut as b,t as g,M as h,a as p,o as r,at as s}
|