analog-clock-components 0.2.27 → 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.
@@ -1 +1 @@
1
- import{p as o,b as e}from"./p-D2pe7ofM.js";export{s as setNonce}from"./p-D2pe7ofM.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),o(s)})().then((async o=>(await t(),e([["p-239ad223",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],o))));
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-D2pe7ofM.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
+ 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-BNT2X3Qu.js');
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,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BNT2X3Qu.js');
4
- var appGlobals = require('./app-globals-V2Kpy_OQ.js');
3
+ var index = require('./index-wlt3BRHP.js');
5
4
 
6
5
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
6
  /*
8
- Stencil Client Patch Browser v4.31.0 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Patch Browser v4.34.0 | MIT Licensed | https://stenciljs.com
9
8
  */
10
9
 
11
10
  var patchBrowser = () => {
@@ -18,7 +17,7 @@ var patchBrowser = () => {
18
17
  };
19
18
 
20
19
  patchBrowser().then(async (options) => {
21
- await appGlobals.globalScripts();
20
+ await index.globalScripts();
22
21
  return index.bootstrapLazy([["analog-clock.cjs",[[1,"analog-clock",{"size":[2],"timeZone":[2,"time-zone"],"time":[32]}]]]], options);
23
22
  });
24
23
 
@@ -3,8 +3,11 @@
3
3
  const NAMESPACE = 'analog-clock';
4
4
  const BUILD = /* analog-clock */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
5
5
 
6
+ const globalScripts = () => {};
7
+ const globalStyles = "";
8
+
6
9
  /*
7
- Stencil Client Platform v4.31.0 | MIT Licensed | https://stenciljs.com
10
+ Stencil Client Platform v4.34.0 | MIT Licensed | https://stenciljs.com
8
11
  */
9
12
  var __defProp = Object.defineProperty;
10
13
  var __export = (target, all) => {
@@ -80,7 +83,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
80
83
 
81
84
  // src/client/client-style.ts
82
85
  var styles = /* @__PURE__ */ new Map();
83
- var HYDRATED_STYLE_ID = "sty-id";
84
86
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
85
87
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
86
88
  var win = typeof window !== "undefined" ? window : {};
@@ -201,6 +203,14 @@ var unwrapErr = (result) => {
201
203
  throw result.value;
202
204
  }
203
205
  };
206
+ function createShadowRoot(cmpMeta) {
207
+ const shadowRoot = this.attachShadow({ mode: "open" });
208
+ if (supportsConstructableStylesheets) {
209
+ const sheet = new CSSStyleSheet();
210
+ sheet.replaceSync(globalStyles);
211
+ shadowRoot.adoptedStyleSheets.push(sheet);
212
+ }
213
+ }
204
214
  var createTime = (fnName, tagName = "") => {
205
215
  {
206
216
  return () => {
@@ -291,7 +301,7 @@ var createSupportsRuleRe = (selector) => {
291
301
  createSupportsRuleRe("::slotted");
292
302
  createSupportsRuleRe(":host");
293
303
  createSupportsRuleRe(":host-context");
294
- var parsePropertyValue = (propValue, propType) => {
304
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
295
305
  if (propValue != null && !isComplexType(propValue)) {
296
306
  if (propType & 2 /* Number */) {
297
307
  return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
@@ -338,7 +348,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
338
348
  }
339
349
  if (!appliedStyles.has(scopeId2)) {
340
350
  {
341
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
351
+ styleElm = win.document.createElement("style");
342
352
  styleElm.innerHTML = style;
343
353
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
344
354
  if (nonce != null) {
@@ -883,7 +893,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
883
893
  const oldVal = hostRef.$instanceValues$.get(propName);
884
894
  const flags = hostRef.$flags$;
885
895
  const instance = hostRef.$lazyInstance$ ;
886
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
896
+ newVal = parsePropertyValue(
897
+ newVal,
898
+ cmpMeta.$members$[propName][0]);
887
899
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
888
900
  const didValueChange = newVal !== oldVal && !areBothNaN;
889
901
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -939,7 +951,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
939
951
  } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
940
952
  ref.$instanceValues$.set(memberName, currentValue);
941
953
  }
942
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
954
+ origSetter.apply(this, [
955
+ parsePropertyValue(
956
+ newValue,
957
+ memberFlags)
958
+ ]);
943
959
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
944
960
  setValue(this, memberName, newValue, cmpMeta);
945
961
  return;
@@ -961,7 +977,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
961
977
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
962
978
  ref.$instanceValues$.set(memberName, currentValue);
963
979
  }
964
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
980
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
981
+ newValue,
982
+ memberFlags);
965
983
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
966
984
  };
967
985
  if (ref.$lazyInstance$) {
@@ -1196,9 +1214,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1196
1214
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1197
1215
  {
1198
1216
  if (!self.shadowRoot) {
1199
- {
1200
- self.attachShadow({ mode: "open" });
1201
- }
1217
+ createShadowRoot.call(self, cmpMeta);
1202
1218
  } else {
1203
1219
  if (self.shadowRoot.mode !== "open") {
1204
1220
  throw new Error(
@@ -1283,6 +1299,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1283
1299
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1284
1300
 
1285
1301
  exports.bootstrapLazy = bootstrapLazy;
1302
+ exports.globalScripts = globalScripts;
1286
1303
  exports.h = h;
1287
1304
  exports.promiseResolve = promiseResolve;
1288
1305
  exports.registerInstance = registerInstance;
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BNT2X3Qu.js');
4
- var appGlobals = require('./app-globals-V2Kpy_OQ.js');
3
+ var index = require('./index-wlt3BRHP.js');
5
4
 
6
5
  const defineCustomElements = async (win, options) => {
7
6
  if (typeof window === 'undefined') return undefined;
8
- await appGlobals.globalScripts();
7
+ await index.globalScripts();
9
8
  return index.bootstrapLazy([["analog-clock.cjs",[[1,"analog-clock",{"size":[2],"timeZone":[2,"time-zone"],"time":[32]}]]]], options);
10
9
  };
11
10
 
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.31.0",
7
+ "version": "4.34.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-D2pe7ofM.js';
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
 
@@ -1,9 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-D2pe7ofM.js';
2
- export { s as setNonce } from './index-D2pe7ofM.js';
3
- import { g as globalScripts } from './app-globals-DQuL1Twl.js';
1
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-BrnktegG.js';
2
+ export { s as setNonce } from './index-BrnktegG.js';
4
3
 
5
4
  /*
6
- Stencil Client Patch Browser v4.31.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.34.0 | MIT Licensed | https://stenciljs.com
7
6
  */
8
7
 
9
8
  var patchBrowser = () => {
@@ -1,8 +1,11 @@
1
1
  const NAMESPACE = 'analog-clock';
2
2
  const BUILD = /* analog-clock */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
3
3
 
4
+ const globalScripts = () => {};
5
+ const globalStyles = "";
6
+
4
7
  /*
5
- Stencil Client Platform v4.31.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.34.0 | MIT Licensed | https://stenciljs.com
6
9
  */
7
10
  var __defProp = Object.defineProperty;
8
11
  var __export = (target, all) => {
@@ -78,7 +81,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
78
81
 
79
82
  // src/client/client-style.ts
80
83
  var styles = /* @__PURE__ */ new Map();
81
- var HYDRATED_STYLE_ID = "sty-id";
82
84
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
83
85
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
84
86
  var win = typeof window !== "undefined" ? window : {};
@@ -199,6 +201,14 @@ var unwrapErr = (result) => {
199
201
  throw result.value;
200
202
  }
201
203
  };
204
+ function createShadowRoot(cmpMeta) {
205
+ const shadowRoot = this.attachShadow({ mode: "open" });
206
+ if (supportsConstructableStylesheets) {
207
+ const sheet = new CSSStyleSheet();
208
+ sheet.replaceSync(globalStyles);
209
+ shadowRoot.adoptedStyleSheets.push(sheet);
210
+ }
211
+ }
202
212
  var createTime = (fnName, tagName = "") => {
203
213
  {
204
214
  return () => {
@@ -289,7 +299,7 @@ var createSupportsRuleRe = (selector) => {
289
299
  createSupportsRuleRe("::slotted");
290
300
  createSupportsRuleRe(":host");
291
301
  createSupportsRuleRe(":host-context");
292
- var parsePropertyValue = (propValue, propType) => {
302
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
293
303
  if (propValue != null && !isComplexType(propValue)) {
294
304
  if (propType & 2 /* Number */) {
295
305
  return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
@@ -336,7 +346,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
336
346
  }
337
347
  if (!appliedStyles.has(scopeId2)) {
338
348
  {
339
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
349
+ styleElm = win.document.createElement("style");
340
350
  styleElm.innerHTML = style;
341
351
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
342
352
  if (nonce != null) {
@@ -881,7 +891,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
881
891
  const oldVal = hostRef.$instanceValues$.get(propName);
882
892
  const flags = hostRef.$flags$;
883
893
  const instance = hostRef.$lazyInstance$ ;
884
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
894
+ newVal = parsePropertyValue(
895
+ newVal,
896
+ cmpMeta.$members$[propName][0]);
885
897
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
886
898
  const didValueChange = newVal !== oldVal && !areBothNaN;
887
899
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -937,7 +949,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
937
949
  } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
938
950
  ref.$instanceValues$.set(memberName, currentValue);
939
951
  }
940
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
952
+ origSetter.apply(this, [
953
+ parsePropertyValue(
954
+ newValue,
955
+ memberFlags)
956
+ ]);
941
957
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
942
958
  setValue(this, memberName, newValue, cmpMeta);
943
959
  return;
@@ -959,7 +975,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
959
975
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
960
976
  ref.$instanceValues$.set(memberName, currentValue);
961
977
  }
962
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
978
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
979
+ newValue,
980
+ memberFlags);
963
981
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
964
982
  };
965
983
  if (ref.$lazyInstance$) {
@@ -1194,9 +1212,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1194
1212
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1195
1213
  {
1196
1214
  if (!self.shadowRoot) {
1197
- {
1198
- self.attachShadow({ mode: "open" });
1199
- }
1215
+ createShadowRoot.call(self, cmpMeta);
1200
1216
  } else {
1201
1217
  if (self.shadowRoot.mode !== "open") {
1202
1218
  throw new Error(
@@ -1280,4 +1296,4 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1280
1296
  // src/runtime/nonce.ts
1281
1297
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1282
1298
 
1283
- export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
1299
+ export { bootstrapLazy as b, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
@@ -1,6 +1,5 @@
1
- import { b as bootstrapLazy } from './index-D2pe7ofM.js';
2
- export { s as setNonce } from './index-D2pe7ofM.js';
3
- import { g as globalScripts } from './app-globals-DQuL1Twl.js';
1
+ import { g as globalScripts, b as bootstrapLazy } from './index-BrnktegG.js';
2
+ export { s as setNonce } from './index-BrnktegG.js';
4
3
 
5
4
  const defineCustomElements = async (win, options) => {
6
5
  if (typeof window === 'undefined') return undefined;
@@ -7,7 +7,13 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  export namespace Components {
9
9
  interface AnalogClock {
10
+ /**
11
+ * @default undefined
12
+ */
10
13
  "size": number;
14
+ /**
15
+ * @default 0
16
+ */
11
17
  "timeZone": number;
12
18
  }
13
19
  }
@@ -24,7 +30,13 @@ declare global {
24
30
  }
25
31
  declare namespace LocalJSX {
26
32
  interface AnalogClock {
33
+ /**
34
+ * @default undefined
35
+ */
27
36
  "size"?: number;
37
+ /**
38
+ * @default 0
39
+ */
28
40
  "timeZone"?: number;
29
41
  }
30
42
  interface IntrinsicElements {
@@ -1601,7 +1601,7 @@ export declare namespace JSXBase {
1601
1601
  onKeyUp?: (event: KeyboardEvent) => void;
1602
1602
  onKeyUpCapture?: (event: KeyboardEvent) => void;
1603
1603
  onAuxClick?: (event: MouseEvent) => void;
1604
- onClick?: (event: MouseEvent) => void;
1604
+ onClick?: (event: PointerEvent) => void;
1605
1605
  onClickCapture?: (event: MouseEvent) => void;
1606
1606
  onContextMenu?: (event: MouseEvent) => void;
1607
1607
  onContextMenuCapture?: (event: MouseEvent) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analog-clock-components",
3
- "version": "0.2.27",
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,12 +25,12 @@
25
25
  "format": "prettier --write src"
26
26
  },
27
27
  "dependencies": {
28
- "@stencil/core": "4.31.0"
28
+ "@stencil/core": "4.34.0"
29
29
  },
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
- "cspell": "9.0.1",
33
- "eslint": "9.27.0",
32
+ "cspell": "9.0.2",
33
+ "eslint": "9.28.0",
34
34
  "prettier": "3.5.3",
35
35
  "typescript": "5.8.3"
36
36
  },
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},o=(t,e)=>(0,console.error)(t,e),l=new Map,s=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",r="undefined"!=typeof window?window:{},c={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)},u=t=>Promise.resolve(t),a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),f=!1,d=[],h=[],p=(t,e)=>n=>{t.push(n),f||(f=!0,e&&4&c.o?y(v):c.raf(v))},m=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},v=()=>{m(d),m(h),(f=d.length>0)&&c.raf(v)},y=t=>u().then(t),w=p(h,!0),b=t=>"object"==(t=typeof t)||"function"===t;function $(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>S,map:()=>j,ok:()=>g,unwrap:()=>O,unwrapErr:()=>k});var g=t=>({isOk:!0,isErr:!1,value:t}),S=t=>({isOk:!1,isErr:!0,value:t});function j(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>g(t))):g(n)}if(t.isErr)return S(t.value);throw"should never get here"}var O=t=>{if(t.isOk)return t.value;throw t.value},k=t=>{if(t.isErr)return t.value;throw t.value},E=(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&&!b(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?C(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=C(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},C=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),M={},x=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};x("::slotted"),x(":host"),x(":host-context");var P,N=(t,e)=>null==t||b(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t,D=new WeakMap,R=t=>"sc-"+t.$,U=(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=A(n);let s=A(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=b(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)}},W=/\s/,A=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(W):[]),L=(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 T(Object.keys(l)))t in s||U(o,t,l[t],void 0,n,e.o);for(const t of T(Object.keys(s)))U(o,t,l[t],s[t],n,e.o)};function T(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var F=!1,H=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(F||(F="svg"===o.m),!r.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=r.document.createElementNS(F?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),F&&"foreignObject"===o.m&&(F=!1),L(null,o,F),o.h)for(i=0;i<o.h.length;++i)s=H(t,o,i),s&&l.appendChild(s);return"svg"===o.m?F=!1:"foreignObject"===l.tagName&&(F=!0),l["s-hn"]=P,l},z=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=H(null,n,l),i&&(o[l].v=i,I(r,i,e)))},V=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),G=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m;L(t,e,F="svg"===i||"foreignObject"!==i&&F),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(q(d,m,l))G(d,m,l),d=e[++r],m=o[++c];else if(q(h,v,l))G(h,v,l),h=e[--f],v=o[--p];else if(q(d,v,l))G(d,v,l),I(t,d.v,h.v.nextSibling),d=e[++r],v=o[--p];else if(q(h,m,l))G(h,m,l),I(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=H(e&&e[c],n,u):(G(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=H(e&&e[c],n,c),m=o[++c]),s&&I(d.v.parentNode,s,d.v)}r>f?z(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&V(e,r,f)})(o,l,e,s,n):null!==s?z(o,null,e,s,0,s.length-1):!n&&null!==l&&V(l,0,l.length-1),F&&"svg"===i&&(F=!1)},I=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Y=(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()})))}},_=(t,e)=>{if(t.o|=16,!(4&t.o))return Y(t,t.j),w((()=>B(t,e)));t.o|=512},B=(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=et(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=J(l,(()=>et(o,"componentWillRender",void 0,n))),J(l,(()=>Q(t,o,e)))},J=(t,e)=>K(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),K=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Q=async(t,e,n)=>{var o;const l=t.$hostElement$,u=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=R(e),l=s.get(o);if(!r.document)return o;if(t=11===t.nodeType?t:r.document,l)if("string"==typeof l){let s,u=D.get(t=t.head||t);if(u||D.set(t,u=new Set),!u.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||r.document.createElement("style"),s.innerHTML=l;const i=null!=(n=c.k)?n:$(r.document);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){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+=i),u&&u.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);X(t,e,l,n),u&&(u.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Z(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},X=(t,e,n,l)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C||C(null,null),s=(t=>t&&t.m===M)(e)?e:E(null,null,e);if(P=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,G(l,s,n)})(t,e,l)}catch(e){o(e,t.$hostElement$)}return null},Z=t=>{const e=t.$hostElement$,n=t.t,o=t.j;et(n,"componentDidRender",void 0,e),64&t.o?et(n,"componentDidUpdate",void 0,e):(t.o|=64,nt(e),et(n,"componentDidLoad",void 0,e),t.M(e),o||tt()),t.S&&(t.S(),t.S=void 0),512&t.o&&y((()=>_(t,!1))),t.o&=-517},tt=()=>{y((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(r)))},et=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,l)}},nt=t=>t.classList.add("hydrated"),ot=(t,n,o,l)=>{const s=e(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(n),r=s.o,c=s.t;if(o=N(o,l.N[n][0]),(!(8&r)||void 0===i)&&o!==i&&(!Number.isNaN(i)||!Number.isNaN(o))&&(s.P.set(n,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,i,n))return;_(s,!1)}},lt=(t,n,o)=>{var l,s;const i=t.prototype;if(n.N){const r=Object.entries(null!=(l=n.N)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(n.N[t][0]|=2048),r&&(n.N[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.N[t][0]))return((t,n)=>e(this).P.get(n))(0,t);const o=e(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=e(this);if(r){const e=32&l?this[t]:i.$hostElement$[t];return void 0===e&&i.P.get(t)?s=i.P.get(t):!i.P.get(t)&&e&&i.P.set(t,e),r.call(this,N(s,l)),void ot(this,t,s=32&l?this[t]:i.$hostElement$[t],n)}{if(!(1&o&&4096&n.N[t][0]))return ot(this,t,s,n),void(1&o&&!i.t&&i.D.then((()=>{4096&n.N[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=s)})));const e=()=>{const e=i.t[t];!i.P.get(t)&&e&&i.P.set(t,e),i.t[t]=N(s,l),ot(this,t,i.t[t],n)};i.t?e():i.D.then((()=>e()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){c.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=e(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const e=o.t,i=null==(r=n.R)?void 0:r[t];null==i||i.forEach((n=>{null!=e[n]&&e[n].call(e,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=n.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},st=(t,e)=>{et(t,"connectedCallback",void 0,e)},it=(t,e)=>{et(t,"disconnectedCallback",void 0,e||t)},rt=(t,n={})=>{var u;if(!r.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const f=[],d=n.exclude||[],h=r.customElements,p=r.document.head,m=p.querySelector("meta[charset]"),v=r.document.createElement("style"),y=[];let w,b=!0;Object.assign(c,n),c.l=new URL(n.resourcesUrl||"./",r.document.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((n=>{const i={o:n[0],$:n[1],N:n[2],U:n[3]};4&i.o&&(g=!0),i.N=n[2];const r=i.$,u=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,i),1&i.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),b?y.push(this):c.jmp((()=>(t=>{if(!(1&c.o)){const n=e(t),i=n.O,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?st(n.t,t):(null==n?void 0:n.D)&&n.D.then((()=>st(n.t,t)));else{n.o|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){Y(n,n.j=e);break}}i.N&&Object.entries(i.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 i;if(!(32&e.o)){if(e.o|=32,n.W){const s=((t,e)=>{const n=t.$.replace(/-/g,"_"),s=t.W;if(!s)return;const i=l.get(s);return i?i[n]:import(`./${s}.entry.js`).then((t=>(l.set(s,t),t[n])),(t=>{o(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(s&&"then"in s){const t=()=>{};i=await s,t()}else i=s;if(!i)throw Error(`Constructor for "${n.$}#${e.A}" was not found`);i.isProxied||(lt(i,n,2),i.isProxied=!0);const r=()=>{};e.o|=8;try{new i(e)}catch(e){o(e,t)}e.o&=-9,r(),st(e.t,t)}else i=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(i&&i.style){let t;"string"==typeof i.style&&(t=i.style);const e=R(n);if(!s.has(e)){const o=()=>{};((t,e,n)=>{let o=s.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,s.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>_(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,n,i)}r()}})(this)))}disconnectedCallback(){c.jmp((()=>(async t=>{if(!(1&c.o)){const n=e(t);(null==n?void 0:n.t)?it(n.t,t):(null==n?void 0:n.D)&&n.D.then((()=>it(n.t,t)))}D.has(t)&&D.delete(t),t.shadowRoot&&D.has(t.shadowRoot)&&D.delete(t.shadowRoot)})(this))),c.raf((()=>{var t;const n=e(this),o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==n?void 0:n.C)?void 0:t.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return e(this).D}};i.W=t[0],d.includes(r)||h.get(r)||(f.push(r),h.define(r,lt(u,i,1)))}))})),f.length>0&&(g&&(v.textContent+=i),v.textContent+=f.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(u=c.k)?u:$(r.document);null!=t&&v.setAttribute("nonce",t),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((t=>t.connectedCallback())):c.jmp((()=>w=setTimeout(tt,30)))},ct=t=>c.k=t;export{rt as b,E as h,u as p,n as r,ct as s}
@@ -1 +0,0 @@
1
- const o=()=>{};export{o as g}
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- const globalScripts = () => {};
4
-
5
- exports.globalScripts = globalScripts;
@@ -1,3 +0,0 @@
1
- const globalScripts = () => {};
2
-
3
- export { globalScripts as g };