@roxyapi/ui 0.2.1 → 0.2.3

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,6 +1,6 @@
1
- "use strict";var RoxyUI_transits_table=(()=>{var z=Object.defineProperty;var nt=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var Tt=Object.prototype.hasOwnProperty;var Rt=(s,t)=>{for(var e in t)z(s,e,{get:t[e],enumerable:!0})},Mt=(s,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nt(t))!Tt.call(s,o)&&o!==e&&z(s,o,{get:()=>t[o],enumerable:!(r=nt(t,o))||r.enumerable});return s};var Lt=s=>Mt(z({},"__esModule",{value:!0}),s),W=(s,t,e,r)=>{for(var o=r>1?void 0:r?nt(t,e):t,i=s.length-1,n;i>=0;i--)(n=s[i])&&(o=(r?n(t,e,o):n(o))||o);return r&&o&&z(t,e,o),o};var Jt={};Rt(Jt,{RoxyTransitsTable:()=>A});var q=globalThis,D=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),at=new WeakMap,E=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(D&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=at.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&at.set(e,t))}return t}toString(){return this.cssText}},lt=s=>new E(typeof s=="string"?s:s+"",void 0,Y),C=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((r,o,i)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[i+1],s[0]);return new E(e,s,Y)},ct=(s,t)=>{if(D)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=q.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,s.appendChild(r)}},K=D?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return lt(e)})(s):s;var{is:Ut,defineProperty:Ot,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:kt,getOwnPropertySymbols:zt,getPrototypeOf:qt}=Object,j=globalThis,pt=j.trustedTypes,Dt=pt?pt.emptyScript:"",jt=j.reactiveElementPolyfillSupport,P=(s,t)=>s,N={toAttribute(s,t){switch(t){case Boolean:s=s?Dt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},B=(s,t)=>!Ut(s,t),ht={attribute:!0,type:String,converter:N,reflect:!1,useDefault:!1,hasChanged:B};Symbol.metadata??=Symbol("metadata"),j.litPropertyMetadata??=new WeakMap;var g=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ht){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Ot(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:i}=Ht(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){let l=o?.call(this);i?.call(this,n),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ht}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;let t=qt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){let e=this.properties,r=[...kt(e),...zt(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(K(o))}else t!==void 0&&e.push(K(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ct(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let i=(r.converter?.toAttribute!==void 0?r.converter:N).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=r.getPropertyOptions(o),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:N;this._$Em=o;let l=n.fromAttribute(e,i.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(t,e,r,o=!1,i){if(t!==void 0){let n=this.constructor;if(o===!1&&(i=this[t]),r??=n.getPropertyOptions(t),!((r.hasChanged??B)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:i},n){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,i]of r){let{wrapped:n}=i,l=this[o];n!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,i,l)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};g.elementStyles=[],g.shadowRootOptions={mode:"open"},g[P("elementProperties")]=new Map,g[P("finalized")]=new Map,jt?.({ReactiveElement:g}),(j.reactiveElementVersions??=[]).push("2.1.2");var et=globalThis,dt=s=>s,I=et.trustedTypes,ut=I?I.createPolicy("lit-html",{createHTML:s=>s}):void 0,xt="$lit$",y=`lit$${Math.random().toFixed(9).slice(2)}$`,vt="?"+y,Bt=`<${vt}>`,b=document,R=()=>b.createComment(""),M=s=>s===null||typeof s!="object"&&typeof s!="function",rt=Array.isArray,It=s=>rt(s)||typeof s?.[Symbol.iterator]=="function",F=`[
1
+ "use strict";var RoxyUI_transits_table=(()=>{var z=Object.defineProperty;var nt=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var Tt=Object.prototype.hasOwnProperty;var Rt=(s,t)=>{for(var e in t)z(s,e,{get:t[e],enumerable:!0})},Lt=(s,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nt(t))!Tt.call(s,o)&&o!==e&&z(s,o,{get:()=>t[o],enumerable:!(r=nt(t,o))||r.enumerable});return s};var Mt=s=>Lt(z({},"__esModule",{value:!0}),s),W=(s,t,e,r)=>{for(var o=r>1?void 0:r?nt(t,e):t,i=s.length-1,n;i>=0;i--)(n=s[i])&&(o=(r?n(t,e,o):n(o))||o);return r&&o&&z(t,e,o),o};var Jt={};Rt(Jt,{RoxyTransitsTable:()=>A});var q=globalThis,D=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),at=new WeakMap,E=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(D&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=at.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&at.set(e,t))}return t}toString(){return this.cssText}},lt=s=>new E(typeof s=="string"?s:s+"",void 0,Y),C=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((r,o,i)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[i+1],s[0]);return new E(e,s,Y)},ct=(s,t)=>{if(D)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=q.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,s.appendChild(r)}},K=D?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return lt(e)})(s):s;var{is:kt,defineProperty:Ut,getOwnPropertyDescriptor:Ot,getOwnPropertyNames:Ht,getOwnPropertySymbols:zt,getPrototypeOf:qt}=Object,j=globalThis,pt=j.trustedTypes,Dt=pt?pt.emptyScript:"",jt=j.reactiveElementPolyfillSupport,P=(s,t)=>s,N={toAttribute(s,t){switch(t){case Boolean:s=s?Dt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},I=(s,t)=>!kt(s,t),dt={attribute:!0,type:String,converter:N,reflect:!1,useDefault:!1,hasChanged:I};Symbol.metadata??=Symbol("metadata"),j.litPropertyMetadata??=new WeakMap;var g=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=dt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Ut(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:i}=Ot(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){let l=o?.call(this);i?.call(this,n),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??dt}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;let t=qt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){let e=this.properties,r=[...Ht(e),...zt(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(K(o))}else t!==void 0&&e.push(K(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ct(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let i=(r.converter?.toAttribute!==void 0?r.converter:N).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=r.getPropertyOptions(o),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:N;this._$Em=o;let l=n.fromAttribute(e,i.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(t,e,r,o=!1,i){if(t!==void 0){let n=this.constructor;if(o===!1&&(i=this[t]),r??=n.getPropertyOptions(t),!((r.hasChanged??I)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:i},n){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,i]of r){let{wrapped:n}=i,l=this[o];n!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,i,l)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};g.elementStyles=[],g.shadowRootOptions={mode:"open"},g[P("elementProperties")]=new Map,g[P("finalized")]=new Map,jt?.({ReactiveElement:g}),(j.reactiveElementVersions??=[]).push("2.1.2");var et=globalThis,ht=s=>s,B=et.trustedTypes,ut=B?B.createPolicy("lit-html",{createHTML:s=>s}):void 0,xt="$lit$",y=`lit$${Math.random().toFixed(9).slice(2)}$`,vt="?"+y,It=`<${vt}>`,b=document,R=()=>b.createComment(""),L=s=>s===null||typeof s!="object"&&typeof s!="function",rt=Array.isArray,Bt=s=>rt(s)||typeof s?.[Symbol.iterator]=="function",F=`[
2
2
  \f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mt=/-->/g,gt=/>/g,x=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ft=/'/g,yt=/"/g,bt=/^(?:script|style|textarea|title)$/i,st=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),u=st(1),re=st(2),se=st(3),_=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),$t=new WeakMap,v=b.createTreeWalker(b,129);function _t(s,t){if(!rt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ut!==void 0?ut.createHTML(t):t}var Gt=(s,t)=>{let e=s.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",n=T;for(let l=0;l<e;l++){let a=s[l],h,d,c=-1,m=0;for(;m<a.length&&(n.lastIndex=m,d=n.exec(a),d!==null);)m=n.lastIndex,n===T?d[1]==="!--"?n=mt:d[1]!==void 0?n=gt:d[2]!==void 0?(bt.test(d[2])&&(o=RegExp("</"+d[2],"g")),n=x):d[3]!==void 0&&(n=x):n===x?d[0]===">"?(n=o??T,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?x:d[3]==='"'?yt:ft):n===yt||n===ft?n=x:n===mt||n===gt?n=T:(n=x,o=void 0);let f=n===x&&s[l+1].startsWith("/>")?" ":"";i+=n===T?a+Bt:c>=0?(r.push(h),a.slice(0,c)+xt+a.slice(c)+y+f):a+y+(c===-2?l:f)}return[_t(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},L=class s{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,n=0,l=t.length-1,a=this.parts,[h,d]=Gt(t,e);if(this.el=s.createElement(h,r),v.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=v.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let c of o.getAttributeNames())if(c.endsWith(xt)){let m=d[n++],f=o.getAttribute(c).split(y),k=/([.?@])?(.*)/.exec(m);a.push({type:1,index:i,name:k[2],strings:f,ctor:k[1]==="."?Z:k[1]==="?"?Q:k[1]==="@"?X:w}),o.removeAttribute(c)}else c.startsWith(y)&&(a.push({type:6,index:i}),o.removeAttribute(c));if(bt.test(o.tagName)){let c=o.textContent.split(y),m=c.length-1;if(m>0){o.textContent=I?I.emptyScript:"";for(let f=0;f<m;f++)o.append(c[f],R()),v.nextNode(),a.push({type:2,index:++i});o.append(c[m],R())}}}else if(o.nodeType===8)if(o.data===vt)a.push({type:2,index:i});else{let c=-1;for(;(c=o.data.indexOf(y,c+1))!==-1;)a.push({type:7,index:i}),c+=y.length-1}i++}}static createElement(t,e){let r=b.createElement("template");return r.innerHTML=t,r}};function S(s,t,e=s,r){if(t===_)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=M(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(s),o._$AT(s,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=S(s,o._$AS(s,t.values),o,r)),t}var J=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??b).importNode(e,!0);v.currentNode=o;let i=v.nextNode(),n=0,l=0,a=r[0];for(;a!==void 0;){if(n===a.index){let h;a.type===2?h=new U(i,i.nextSibling,this,t):a.type===1?h=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(h=new tt(i,this,t)),this._$AV.push(h),a=r[++l]}n!==a?.index&&(i=v.nextNode(),n++)}return v.currentNode=b,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},U=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),M(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):It(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(b.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=L.createElement(_t(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new J(o,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=$t.get(t.strings);return e===void 0&&$t.set(t.strings,e=new L(t)),e}k(t){rt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let i of t)o===e.length?e.push(r=new s(this.O(R()),this.O(R()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=dt(t).nextSibling;dt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},w=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,o){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!M(t)||t!==this._$AH&&t!==_,n&&(this._$AH=t);else{let l=t,a,h;for(t=i[0],a=0;a<i.length-1;a++)h=S(this,l[r+a],e,a),h===_&&(h=this._$AH[a]),n||=!M(h)||h!==this._$AH[a],h===p?t=p:t!==p&&(t+=(h??"")+i[a+1]),this._$AH[a]=h}n&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Z=class extends w{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},Q=class extends w{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},X=class extends w{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??p)===_)return;let r=this._$AH,o=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==p&&(r===p||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},tt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}};var Vt=et.litHtmlPolyfillSupport;Vt?.(L,U),(et.litHtmlVersions??=[]).push("3.3.2");var At=(s,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new U(t.insertBefore(R(),i),i,void 0,e??{})}return o._$AI(s),o};var ot=globalThis,$=class extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=At(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _}};$._$litElement$=!0,$.finalized=!0,ot.litElementHydrateSupport?.({LitElement:$});var Wt=ot.litElementPolyfillSupport;Wt?.({LitElement:$});(ot.litElementVersions??=[]).push("4.2.2");var St=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};var Yt={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:B},Kt=(s=Yt,t,e)=>{let{kind:r,metadata:o}=e,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),r==="setter"&&((s=Object.create(s)).wrapped=!0),i.set(e.name,s),r==="accessor"){let{name:n}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,s,!0,l)},init(l){return l!==void 0&&this.C(n,void 0,s,l),l}}}if(r==="setter"){let{name:n}=e;return function(l){let a=this[n];t.call(this,l),this.requestUpdate(n,a,s,!0,l)}}throw Error("Unsupported decorator location: "+r)};function it(s){return(t,e)=>typeof e=="object"?Kt(s,t,e):((r,o,i)=>{let n=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),n?Object.getOwnPropertyDescriptor(o,i):void 0})(s,t,e)}var V={Sun:"\u2609",Moon:"\u263D",Mercury:"\u263F",Venus:"\u2640",Earth:"\u2641",Mars:"\u2642",Jupiter:"\u2643",Saturn:"\u2644",Uranus:"\u2645",Neptune:"\u2646",Pluto:"\u2647",Rahu:"\u260A",Ketu:"\u260B",Ascendant:"Asc",Lagna:"La",NorthNode:"\u260A",SouthNode:"\u260B","North node":"\u260A","South node":"\u260B",Chiron:"\u26B7",Lilith:"\u26B8","Black moon lilith":"\u26B8"};var wt={Aries:"\u2648",Taurus:"\u2649",Gemini:"\u264A",Cancer:"\u264B",Leo:"\u264C",Virgo:"\u264D",Libra:"\u264E",Scorpio:"\u264F",Sagittarius:"\u2650",Capricorn:"\u2651",Aquarius:"\u2652",Pisces:"\u2653"};var Ft=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],Ie=Ft.map(s=>s.toLowerCase());var Et=C`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ft=/'/g,yt=/"/g,bt=/^(?:script|style|textarea|title)$/i,st=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),u=st(1),re=st(2),se=st(3),_=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),$t=new WeakMap,v=b.createTreeWalker(b,129);function _t(s,t){if(!rt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ut!==void 0?ut.createHTML(t):t}var Gt=(s,t)=>{let e=s.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",n=T;for(let l=0;l<e;l++){let a=s[l],d,h,p=-1,m=0;for(;m<a.length&&(n.lastIndex=m,h=n.exec(a),h!==null);)m=n.lastIndex,n===T?h[1]==="!--"?n=mt:h[1]!==void 0?n=gt:h[2]!==void 0?(bt.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=x):h[3]!==void 0&&(n=x):n===x?h[0]===">"?(n=o??T,p=-1):h[1]===void 0?p=-2:(p=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?x:h[3]==='"'?yt:ft):n===yt||n===ft?n=x:n===mt||n===gt?n=T:(n=x,o=void 0);let f=n===x&&s[l+1].startsWith("/>")?" ":"";i+=n===T?a+It:p>=0?(r.push(d),a.slice(0,p)+xt+a.slice(p)+y+f):a+y+(p===-2?l:f)}return[_t(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},M=class s{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,n=0,l=t.length-1,a=this.parts,[d,h]=Gt(t,e);if(this.el=s.createElement(d,r),v.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=v.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(xt)){let m=h[n++],f=o.getAttribute(p).split(y),H=/([.?@])?(.*)/.exec(m);a.push({type:1,index:i,name:H[2],strings:f,ctor:H[1]==="."?Z:H[1]==="?"?Q:H[1]==="@"?X:w}),o.removeAttribute(p)}else p.startsWith(y)&&(a.push({type:6,index:i}),o.removeAttribute(p));if(bt.test(o.tagName)){let p=o.textContent.split(y),m=p.length-1;if(m>0){o.textContent=B?B.emptyScript:"";for(let f=0;f<m;f++)o.append(p[f],R()),v.nextNode(),a.push({type:2,index:++i});o.append(p[m],R())}}}else if(o.nodeType===8)if(o.data===vt)a.push({type:2,index:i});else{let p=-1;for(;(p=o.data.indexOf(y,p+1))!==-1;)a.push({type:7,index:i}),p+=y.length-1}i++}}static createElement(t,e){let r=b.createElement("template");return r.innerHTML=t,r}};function S(s,t,e=s,r){if(t===_)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=L(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(s),o._$AT(s,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=S(s,o._$AS(s,t.values),o,r)),t}var J=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??b).importNode(e,!0);v.currentNode=o;let i=v.nextNode(),n=0,l=0,a=r[0];for(;a!==void 0;){if(n===a.index){let d;a.type===2?d=new k(i,i.nextSibling,this,t):a.type===1?d=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(d=new tt(i,this,t)),this._$AV.push(d),a=r[++l]}n!==a?.index&&(i=v.nextNode(),n++)}return v.currentNode=b,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},k=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),L(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Bt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==c&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(b.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=M.createElement(_t(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new J(o,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=$t.get(t.strings);return e===void 0&&$t.set(t.strings,e=new M(t)),e}k(t){rt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let i of t)o===e.length?e.push(r=new s(this.O(R()),this.O(R()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=ht(t).nextSibling;ht(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},w=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=c}_$AI(t,e=this,r,o){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!L(t)||t!==this._$AH&&t!==_,n&&(this._$AH=t);else{let l=t,a,d;for(t=i[0],a=0;a<i.length-1;a++)d=S(this,l[r+a],e,a),d===_&&(d=this._$AH[a]),n||=!L(d)||d!==this._$AH[a],d===c?t=c:t!==c&&(t+=(d??"")+i[a+1]),this._$AH[a]=d}n&&!o&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Z=class extends w{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},Q=class extends w{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},X=class extends w{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??c)===_)return;let r=this._$AH,o=t===c&&r!==c||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==c&&(r===c||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},tt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}};var Vt=et.litHtmlPolyfillSupport;Vt?.(M,k),(et.litHtmlVersions??=[]).push("3.3.2");var At=(s,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new k(t.insertBefore(R(),i),i,void 0,e??{})}return o._$AI(s),o};var ot=globalThis,$=class extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=At(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _}};$._$litElement$=!0,$.finalized=!0,ot.litElementHydrateSupport?.({LitElement:$});var Wt=ot.litElementPolyfillSupport;Wt?.({LitElement:$});(ot.litElementVersions??=[]).push("4.2.2");var St=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};var Yt={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:I},Kt=(s=Yt,t,e)=>{let{kind:r,metadata:o}=e,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),r==="setter"&&((s=Object.create(s)).wrapped=!0),i.set(e.name,s),r==="accessor"){let{name:n}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,s,!0,l)},init(l){return l!==void 0&&this.C(n,void 0,s,l),l}}}if(r==="setter"){let{name:n}=e;return function(l){let a=this[n];t.call(this,l),this.requestUpdate(n,a,s,!0,l)}}throw Error("Unsupported decorator location: "+r)};function it(s){return(t,e)=>typeof e=="object"?Kt(s,t,e):((r,o,i)=>{let n=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),n?Object.getOwnPropertyDescriptor(o,i):void 0})(s,t,e)}var V={Sun:"\u2609",Moon:"\u263D",Mercury:"\u263F",Venus:"\u2640",Earth:"\u2641",Mars:"\u2642",Jupiter:"\u2643",Saturn:"\u2644",Uranus:"\u2645",Neptune:"\u2646",Pluto:"\u2647",Rahu:"\u260A",Ketu:"\u260B",Ascendant:"Asc",Lagna:"La",NorthNode:"\u260A",SouthNode:"\u260B","North node":"\u260A","South node":"\u260B",Chiron:"\u26B7",Lilith:"\u26B8","Black moon lilith":"\u26B8"};var wt={Aries:"\u2648",Taurus:"\u2649",Gemini:"\u264A",Cancer:"\u264B",Leo:"\u264C",Virgo:"\u264D",Libra:"\u264E",Scorpio:"\u264F",Sagittarius:"\u2650",Capricorn:"\u2651",Aquarius:"\u2652",Pisces:"\u2653"};var Ft=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],Be=Ft.map(s=>s.toLowerCase());var Et=C`
4
4
  :host {
5
5
  display: block;
6
6
  container-type: inline-size;
@@ -82,13 +82,13 @@
82
82
  outline: 2px solid var(--roxy-ring, rgba(245, 158, 11, 0.4));
83
83
  outline-offset: 2px;
84
84
  }
85
- `;function Ct(s){if(typeof s!="string"||s.length===0||/^\d{4}-\d{2}-\d{2}$/.test(s))return"";let e=/^\d{2}:\d{2}(:\d{2})?$/.test(s)?`1970-01-01T${s}`:s,r=new Date(e);return Number.isNaN(r.getTime())?s:r.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit",hour12:!0})}function Pt(s){if(typeof s!="string"||s.length===0)return"";let t=new Date(/^\d{4}-\d{2}-\d{2}$/.test(s)?`${s}T00:00:00`:s);return Number.isNaN(t.getTime())?s:t.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function O(s,t=1){return typeof s!="number"||!Number.isFinite(s)?"":s.toFixed(t).replace(/\.?0+$/,"")}function H(s){return s?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():""}var A=class extends ${constructor(){super(...arguments);this.data=null}render(){if(!this.data?.transitPlanets?.length)return u`<div class="roxy-empty" role="status">No transits data</div>`;let{transitDate:e,transitTime:r,transitPlanets:o,transitAspects:i,summary:n}=this.data,l=[Pt(e),Ct(r)].filter(Boolean).join(" ");return u`<div class="wrap" aria-label="Transit positions table">
85
+ `;function Ct(s){if(typeof s!="string"||s.length===0||/^\d{4}-\d{2}-\d{2}$/.test(s))return"";let e=/^\d{2}:\d{2}(:\d{2})?$/.test(s)?`1970-01-01T${s}`:s,r=new Date(e);return Number.isNaN(r.getTime())?s:r.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit",hour12:!0})}function Pt(s){if(typeof s!="string"||s.length===0)return"";let t=new Date(/^\d{4}-\d{2}-\d{2}$/.test(s)?`${s}T00:00:00`:s);return Number.isNaN(t.getTime())?s:t.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function U(s,t=1){return typeof s!="number"||!Number.isFinite(s)?"":s.toFixed(t).replace(/\.?0+$/,"")}function O(s){return s?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():""}var A=class extends ${constructor(){super(...arguments);this.data=null}render(){if(!this.data?.transitPlanets?.length)return u`<div class="roxy-empty" role="status">No transits data</div>`;let{transitDate:e,transitTime:r,transitPlanets:o,transitAspects:i,summary:n}=this.data,l=[Pt(e),Ct(r)].filter(Boolean).join(" ");return u`<div class="wrap" aria-label="Transit positions table">
86
86
  <div class="head">
87
87
  <h2 class="title">Transits</h2>
88
- ${l?u`<p class="subtitle">${l}</p>`:p}
88
+ ${l?u`<p class="subtitle">${l}</p>`:c}
89
89
  </div>
90
90
 
91
- ${n?this.renderSummaryPills(n):p}
91
+ ${n?this.renderSummaryPills(n):c}
92
92
 
93
93
  <div>
94
94
  <p class="section-label">Planet positions</p>
@@ -100,9 +100,9 @@
100
100
  ${i?.length?u`<div>
101
101
  <p class="section-label">Transit aspects</p>
102
102
  <div class="overflow-scroll">
103
- ${this.renderAspectsTable(i)}
103
+ ${this.renderAspectsList(i)}
104
104
  </div>
105
- </div>`:p}
105
+ </div>`:c}
106
106
  </div>`}renderSummaryPills(e){return u`<div class="summary-pills" role="region" aria-label="Aspect summary">
107
107
  <span class="pill pill--muted">
108
108
  Total: ${e.totalAspects}
@@ -126,12 +126,12 @@
126
126
  </tr>
127
127
  </thead>
128
128
  <tbody>
129
- ${e.map(r=>{let o=V[H(r.name)]??"",i=wt[H(r.sign)]??"",n=r.speed>=0?"\u2191":"\u2193";return u`<tr>
129
+ ${e.map(r=>{let o=V[O(r.name)]??"",i=wt[O(r.sign)]??"",n=r.speed>=0?"\u2191":"\u2193";return u`<tr>
130
130
  <td>
131
131
  <div class="planet-cell">
132
132
  <span class="glyph" aria-hidden="true">${o}</span>
133
133
  ${r.name}
134
- ${r.isRetrograde?u`<span class="retro-badge" aria-label="retrograde">R</span>`:p}
134
+ ${r.isRetrograde?u`<span class="retro-badge" aria-label="retrograde">R</span>`:c}
135
135
  </div>
136
136
  </td>
137
137
  <td>
@@ -140,48 +140,36 @@
140
140
  ${r.sign}
141
141
  </div>
142
142
  </td>
143
- <td class="num">${O(r.degree,2)}</td>
143
+ <td class="num">${U(r.degree,2)}</td>
144
144
  <td class="speed">
145
145
  <span class="speed-arrow" aria-hidden="true">${n}</span>
146
- ${O(Math.abs(r.speed),4)}
146
+ ${U(Math.abs(r.speed),4)}
147
147
  </td>
148
148
  </tr>`})}
149
149
  </tbody>
150
- </table>`}renderAspectsTable(e){return u`<table class="aspects-table">
151
- <thead>
152
- <tr>
153
- <th scope="col">Transit Planet</th>
154
- <th scope="col">Natal Planet</th>
155
- <th scope="col">Type</th>
156
- <th scope="col">Orb</th>
157
- <th scope="col">Status</th>
158
- <th scope="col">Strength</th>
159
- </tr>
160
- </thead>
161
- <tbody>
162
- ${e.map(r=>{let o=V[H(r.transitPlanet)]??"",i=V[H(r.natalPlanet)]??"",n=`nature-${(r.nature??"").toLowerCase()}`,l=r.interpretation?.summary??"";return u`<tr class=${l?"aspect-row":"aspect-row no-interp"}>
163
- <td>
164
- <div class="arrow-cell">
165
- <span class="glyph" aria-hidden="true">${o}</span>
166
- ${r.transitPlanet}
167
- </div>
168
- </td>
169
- <td>
170
- <div class="arrow-cell">
171
- <span class="glyph" aria-hidden="true">${i}</span>
172
- ${r.natalPlanet}
173
- </div>
174
- </td>
175
- <td class=${n}>${(r.type??"").toLowerCase()}</td>
176
- <td class="num">${O(r.orb,2)}</td>
177
- <td>${r.isApplying?"Applying":"Separating"}</td>
178
- <td class="num">${O(r.strength,1)}</td>
179
- </tr>
180
- ${l?u`<tr class="interp-row">
181
- <td colspan="6">${l}</td>
182
- </tr>`:p}`})}
183
- </tbody>
184
- </table>`}};A.styles=[Et,C`
150
+ </table>`}renderAspectsList(e){return u`<div role="list" aria-label="Transit aspects">
151
+ ${e.map((r,o)=>{let i=V[O(r.transitPlanet)]??"",n=V[O(r.natalPlanet)]??"",l=(r.nature??"neutral").toLowerCase(),a=r.interpretation,d=(r.type??"").toLowerCase(),h=r.isApplying?"Applying":"Separating";return u`<details class="aspect-card" role="listitem" name="transit-aspects" ?open=${o===0}>
152
+ <summary>
153
+ <span aria-hidden="true">${i}</span>
154
+ ${r.transitPlanet}
155
+ <span class="nature-badge ${l}">${d}</span>
156
+ <span aria-hidden="true">${n}</span>
157
+ ${r.natalPlanet}
158
+ <span class="meta">
159
+ ${h} · orb ${U(r.orb,2)}° · strength ${U(r.strength,1)}
160
+ </span>
161
+ </summary>
162
+ <div class="interp-body">
163
+ ${a?.summary?u`<p>${a.summary}</p>`:c}
164
+ ${a?.impact?u`<p><strong>Impact:</strong> ${a.impact}</p>`:c}
165
+ ${a?.timing?u`<p><strong>Timing:</strong> ${a.timing}</p>`:c}
166
+ ${a?.guidance?u`<p><strong>Guidance:</strong> ${a.guidance}</p>`:c}
167
+ ${a?.keywords?.length?u`<div class="interp-keywords">
168
+ ${a.keywords.map(p=>u`<span class="kw">${p}</span>`)}
169
+ </div>`:c}
170
+ </div>
171
+ </details>`})}
172
+ </div>`}};A.styles=[Et,C`
185
173
  .wrap {
186
174
  display: grid;
187
175
  gap: var(--roxy-space-md, 1rem);
@@ -309,49 +297,75 @@
309
297
  color: var(--roxy-muted, #71717a);
310
298
  }
311
299
 
312
- .nature-harmonious {
313
- color: var(--roxy-success-fg, #166534);
314
- }
315
-
316
- .nature-challenging {
317
- color: var(--roxy-danger-fg, #991b1b);
300
+ .overflow-scroll {
301
+ overflow-x: auto;
302
+ -webkit-overflow-scrolling: touch;
318
303
  }
319
304
 
320
- .nature-neutral {
321
- color: var(--roxy-muted, #71717a);
305
+ .aspect-card {
306
+ border: 1px solid var(--roxy-border, #e4e4e7);
307
+ border-radius: var(--roxy-radius-md, 8px);
308
+ padding: var(--roxy-space-sm, 0.5rem) var(--roxy-space-md, 1rem);
309
+ margin-bottom: var(--roxy-space-xs, 0.25rem);
322
310
  }
323
-
324
- .arrow-cell {
325
- display: inline-flex;
311
+ .aspect-card summary {
312
+ cursor: pointer;
313
+ font-weight: 500;
314
+ color: var(--roxy-fg, #0a0a0a);
315
+ display: flex;
316
+ flex-wrap: wrap;
326
317
  align-items: center;
327
- gap: 4px;
328
- white-space: nowrap;
318
+ gap: 0.5em;
329
319
  }
330
-
331
- .interp-row td {
332
- padding-top: 0;
333
- padding-bottom: var(--roxy-space-sm, 0.5rem);
334
- border-bottom: 1px solid var(--roxy-border, #e4e4e7);
335
- color: var(--roxy-secondary, #475569);
320
+ .aspect-card summary .meta {
321
+ color: var(--roxy-muted, #71717a);
322
+ font-weight: 400;
336
323
  font-size: var(--roxy-text-xs, 0.75rem);
324
+ margin-left: auto;
325
+ font-variant-numeric: tabular-nums;
326
+ }
327
+ .aspect-card .interp-body {
328
+ margin-top: var(--roxy-space-xs, 0.25rem);
329
+ color: var(--roxy-fg, #0a0a0a);
330
+ font-size: var(--roxy-text-sm, 0.875rem);
337
331
  line-height: 1.45;
338
332
  }
339
-
340
- .aspect-row td {
341
- border-bottom: none;
342
- padding-bottom: 4px;
333
+ .aspect-card .interp-body p {
334
+ margin: 0 0 var(--roxy-space-xs, 0.25rem);
343
335
  }
344
-
345
- .aspect-row.no-interp td {
346
- border-bottom: 1px solid var(--roxy-border, #e4e4e7);
347
- padding-bottom: var(--roxy-space-sm, 0.5rem);
336
+ .interp-keywords {
337
+ display: flex;
338
+ flex-wrap: wrap;
339
+ gap: 0.25rem;
340
+ margin-top: 0.5rem;
348
341
  }
349
-
350
- .overflow-scroll {
351
- overflow-x: auto;
352
- -webkit-overflow-scrolling: touch;
342
+ .interp-keywords .kw {
343
+ padding: 1px 8px;
344
+ border-radius: 9999px;
345
+ background: color-mix(in srgb, var(--roxy-accent, #f59e0b) 14%, transparent);
346
+ color: var(--roxy-accent-fg, #b45309);
347
+ font-size: var(--roxy-text-xs, 0.75rem);
348
+ }
349
+ .nature-badge {
350
+ display: inline-block;
351
+ padding: 1px 8px;
352
+ border-radius: 9999px;
353
+ font-size: var(--roxy-text-xs, 0.75rem);
354
+ font-weight: 600;
355
+ }
356
+ .nature-badge.harmonious {
357
+ background: color-mix(in srgb, var(--roxy-success, #16a34a) 12%, transparent);
358
+ color: var(--roxy-success-fg, #166534);
359
+ }
360
+ .nature-badge.challenging {
361
+ background: color-mix(in srgb, var(--roxy-danger, #dc2626) 12%, transparent);
362
+ color: var(--roxy-danger-fg, #991b1b);
363
+ }
364
+ .nature-badge.neutral {
365
+ background: color-mix(in srgb, var(--roxy-border, #e4e4e7) 60%, transparent);
366
+ color: var(--roxy-fg, #0a0a0a);
353
367
  }
354
- `],W([it({attribute:!1})],A.prototype,"data",2),A=W([St("roxy-transits-table")],A);return Lt(Jt);})();
368
+ `],W([it({attribute:!1})],A.prototype,"data",2),A=W([St("roxy-transits-table")],A);return Mt(Jt);})();
355
369
  /*! Bundled license information:
356
370
 
357
371
  @lit/reactive-element/css-tag.js: