@roxyapi/ui 0.3.1 → 0.4.0

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.
Files changed (165) hide show
  1. package/AGENTS.md +27 -1
  2. package/README.md +115 -14
  3. package/dist/cdn/components/ashtakavarga-grid.js +74 -19
  4. package/dist/cdn/components/ashtakavarga-grid.js.map +2 -2
  5. package/dist/cdn/components/biorhythm-chart.js +18 -4
  6. package/dist/cdn/components/biorhythm-chart.js.map +2 -2
  7. package/dist/cdn/components/choghadiya-grid.js +47 -12
  8. package/dist/cdn/components/choghadiya-grid.js.map +3 -3
  9. package/dist/cdn/components/compatibility-card.js +21 -7
  10. package/dist/cdn/components/compatibility-card.js.map +2 -2
  11. package/dist/cdn/components/dasha-timeline.js +113 -28
  12. package/dist/cdn/components/dasha-timeline.js.map +3 -3
  13. package/dist/cdn/components/data.js +27 -13
  14. package/dist/cdn/components/data.js.map +2 -2
  15. package/dist/cdn/components/divisional-chart.js +225 -118
  16. package/dist/cdn/components/divisional-chart.js.map +4 -4
  17. package/dist/cdn/components/dosha-card.js +18 -4
  18. package/dist/cdn/components/dosha-card.js.map +2 -2
  19. package/dist/cdn/components/endpoint-form.js +25 -11
  20. package/dist/cdn/components/endpoint-form.js.map +2 -2
  21. package/dist/cdn/components/guna-milan.js +20 -6
  22. package/dist/cdn/components/guna-milan.js.map +2 -2
  23. package/dist/cdn/components/hexagram.js +22 -8
  24. package/dist/cdn/components/hexagram.js.map +2 -2
  25. package/dist/cdn/components/horoscope-card.js +20 -6
  26. package/dist/cdn/components/horoscope-card.js.map +2 -2
  27. package/dist/cdn/components/kp-chart.js +19 -5
  28. package/dist/cdn/components/kp-chart.js.map +2 -2
  29. package/dist/cdn/components/kp-planets-table.js +17 -3
  30. package/dist/cdn/components/kp-planets-table.js.map +2 -2
  31. package/dist/cdn/components/kp-ruling-planets.js +17 -3
  32. package/dist/cdn/components/kp-ruling-planets.js.map +2 -2
  33. package/dist/cdn/components/location-search.js +18 -4
  34. package/dist/cdn/components/location-search.js.map +2 -2
  35. package/dist/cdn/components/moon-phase.js +27 -13
  36. package/dist/cdn/components/moon-phase.js.map +2 -2
  37. package/dist/cdn/components/nakshatra-card.js +16 -2
  38. package/dist/cdn/components/nakshatra-card.js.map +2 -2
  39. package/dist/cdn/components/natal-chart.js +79 -40
  40. package/dist/cdn/components/natal-chart.js.map +3 -3
  41. package/dist/cdn/components/numerology-card.js +18 -4
  42. package/dist/cdn/components/numerology-card.js.map +2 -2
  43. package/dist/cdn/components/panchang-table.js +53 -25
  44. package/dist/cdn/components/panchang-table.js.map +3 -3
  45. package/dist/cdn/components/shadbala-table.js +24 -10
  46. package/dist/cdn/components/shadbala-table.js.map +2 -2
  47. package/dist/cdn/components/synastry-chart.js +96 -48
  48. package/dist/cdn/components/synastry-chart.js.map +3 -3
  49. package/dist/cdn/components/tarot-card.js +17 -3
  50. package/dist/cdn/components/tarot-card.js.map +2 -2
  51. package/dist/cdn/components/tarot-spread.js +39 -25
  52. package/dist/cdn/components/tarot-spread.js.map +2 -2
  53. package/dist/cdn/components/transits-table.js +18 -4
  54. package/dist/cdn/components/transits-table.js.map +2 -2
  55. package/dist/cdn/components/vedic-kundli.js +215 -105
  56. package/dist/cdn/components/vedic-kundli.js.map +4 -4
  57. package/dist/cdn/components/vedic-planets-table.js +22 -8
  58. package/dist/cdn/components/vedic-planets-table.js.map +2 -2
  59. package/dist/cdn/components/western-planets-table.js +18 -4
  60. package/dist/cdn/components/western-planets-table.js.map +2 -2
  61. package/dist/cdn/components/yoga-list.js +17 -3
  62. package/dist/cdn/components/yoga-list.js.map +2 -2
  63. package/dist/cdn/roxy-ui.js +1082 -816
  64. package/dist/cdn/roxy-ui.js.map +4 -4
  65. package/dist/components/ashtakavarga-grid.d.ts +13 -1
  66. package/dist/components/ashtakavarga-grid.d.ts.map +1 -1
  67. package/dist/components/ashtakavarga-grid.js +86 -11
  68. package/dist/components/ashtakavarga-grid.js.map +2 -2
  69. package/dist/components/biorhythm-chart.js +14 -0
  70. package/dist/components/biorhythm-chart.js.map +2 -2
  71. package/dist/components/choghadiya-grid.d.ts +6 -0
  72. package/dist/components/choghadiya-grid.d.ts.map +1 -1
  73. package/dist/components/choghadiya-grid.js +50 -2
  74. package/dist/components/choghadiya-grid.js.map +2 -2
  75. package/dist/components/compatibility-card.js +14 -0
  76. package/dist/components/compatibility-card.js.map +2 -2
  77. package/dist/components/dasha-timeline.d.ts +10 -0
  78. package/dist/components/dasha-timeline.d.ts.map +1 -1
  79. package/dist/components/dasha-timeline.js +135 -4
  80. package/dist/components/dasha-timeline.js.map +2 -2
  81. package/dist/components/data.js +14 -0
  82. package/dist/components/data.js.map +2 -2
  83. package/dist/components/divisional-chart.d.ts +9 -6
  84. package/dist/components/divisional-chart.d.ts.map +1 -1
  85. package/dist/components/divisional-chart.js +546 -251
  86. package/dist/components/divisional-chart.js.map +4 -4
  87. package/dist/components/dosha-card.js +14 -0
  88. package/dist/components/dosha-card.js.map +2 -2
  89. package/dist/components/endpoint-form.js +14 -0
  90. package/dist/components/endpoint-form.js.map +2 -2
  91. package/dist/components/guna-milan.js +14 -0
  92. package/dist/components/guna-milan.js.map +2 -2
  93. package/dist/components/hexagram.js +14 -0
  94. package/dist/components/hexagram.js.map +2 -2
  95. package/dist/components/horoscope-card.js +14 -0
  96. package/dist/components/horoscope-card.js.map +2 -2
  97. package/dist/components/kp-chart.js +14 -0
  98. package/dist/components/kp-chart.js.map +2 -2
  99. package/dist/components/kp-planets-table.js +14 -0
  100. package/dist/components/kp-planets-table.js.map +2 -2
  101. package/dist/components/kp-ruling-planets.js +14 -0
  102. package/dist/components/kp-ruling-planets.js.map +2 -2
  103. package/dist/components/location-search.js +14 -0
  104. package/dist/components/location-search.js.map +2 -2
  105. package/dist/components/moon-phase.js +14 -0
  106. package/dist/components/moon-phase.js.map +2 -2
  107. package/dist/components/nakshatra-card.js +14 -0
  108. package/dist/components/nakshatra-card.js.map +2 -2
  109. package/dist/components/natal-chart.d.ts.map +1 -1
  110. package/dist/components/natal-chart.js +76 -6
  111. package/dist/components/natal-chart.js.map +2 -2
  112. package/dist/components/numerology-card.js +14 -0
  113. package/dist/components/numerology-card.js.map +2 -2
  114. package/dist/components/panchang-table.d.ts +1 -0
  115. package/dist/components/panchang-table.d.ts.map +1 -1
  116. package/dist/components/panchang-table.js +37 -1
  117. package/dist/components/panchang-table.js.map +2 -2
  118. package/dist/components/shadbala-table.js +14 -0
  119. package/dist/components/shadbala-table.js.map +2 -2
  120. package/dist/components/synastry-chart.d.ts +6 -0
  121. package/dist/components/synastry-chart.d.ts.map +1 -1
  122. package/dist/components/synastry-chart.js +106 -7
  123. package/dist/components/synastry-chart.js.map +2 -2
  124. package/dist/components/tarot-card.js +14 -0
  125. package/dist/components/tarot-card.js.map +2 -2
  126. package/dist/components/tarot-spread.js +14 -0
  127. package/dist/components/tarot-spread.js.map +2 -2
  128. package/dist/components/transits-table.js +14 -0
  129. package/dist/components/transits-table.js.map +2 -2
  130. package/dist/components/vedic-kundli.d.ts +14 -9
  131. package/dist/components/vedic-kundli.d.ts.map +1 -1
  132. package/dist/components/vedic-kundli.js +537 -245
  133. package/dist/components/vedic-kundli.js.map +4 -4
  134. package/dist/components/vedic-planets-table.js +14 -0
  135. package/dist/components/vedic-planets-table.js.map +2 -2
  136. package/dist/components/western-planets-table.js +14 -0
  137. package/dist/components/western-planets-table.js.map +2 -2
  138. package/dist/components/yoga-list.js +14 -0
  139. package/dist/components/yoga-list.js.map +2 -2
  140. package/dist/index.cjs +1397 -797
  141. package/dist/index.cjs.map +4 -4
  142. package/dist/index.js +1278 -678
  143. package/dist/index.js.map +4 -4
  144. package/dist/manifest.json +23 -23
  145. package/dist/styles/tokens.css +8 -23
  146. package/dist/utils/base-styles.d.ts.map +1 -1
  147. package/dist/utils/kundli-render.d.ts +43 -104
  148. package/dist/utils/kundli-render.d.ts.map +1 -1
  149. package/dist/utils/kundli-styles.d.ts +13 -0
  150. package/dist/utils/kundli-styles.d.ts.map +1 -0
  151. package/dist/version.d.ts +1 -1
  152. package/package.json +1 -1
  153. package/src/components/ashtakavarga-grid.ts +73 -11
  154. package/src/components/choghadiya-grid.ts +37 -2
  155. package/src/components/dasha-timeline.ts +135 -4
  156. package/src/components/divisional-chart.ts +40 -97
  157. package/src/components/natal-chart.ts +89 -6
  158. package/src/components/panchang-table.ts +34 -1
  159. package/src/components/synastry-chart.ts +84 -8
  160. package/src/components/vedic-kundli.ts +35 -95
  161. package/src/styles/tokens.css +8 -23
  162. package/src/utils/base-styles.ts +14 -0
  163. package/src/utils/kundli-render.ts +609 -270
  164. package/src/utils/kundli-styles.ts +124 -0
  165. package/src/version.ts +1 -1
@@ -1,6 +1,6 @@
1
- "use strict";var RoxyUI_vedic_kundli=(()=>{var U=Object.defineProperty;var ct=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var It=Object.prototype.hasOwnProperty;var Dt=(s,t)=>{for(var e in t)U(s,e,{get:t[e],enumerable:!0})},Gt=(s,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ut(t))!It.call(s,n)&&n!==e&&U(s,n,{get:()=>t[n],enumerable:!(r=ct(t,n))||r.enumerable});return s};var zt=s=>Gt(U({},"__esModule",{value:!0}),s),I=(s,t,e,r)=>{for(var n=r>1?void 0:r?ct(t,e):t,o=s.length-1,i;o>=0;o--)(i=s[o])&&(n=(r?i(t,e,n):i(n))||n);return r&&n&&U(t,e,n),n};var de={};Dt(de,{RoxyVedicKundli:()=>$});var D=globalThis,G=D.ShadowRoot&&(D.ShadyCSS===void 0||D.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W=Symbol(),ht=new WeakMap,C=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==W)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(G&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ht.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ht.set(e,t))}return t}toString(){return this.cssText}},ut=s=>new C(typeof s=="string"?s:s+"",void 0,W),R=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((r,n,o)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+s[o+1],s[0]);return new C(e,s,W)},dt=(s,t)=>{if(G)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),n=D.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,s.appendChild(r)}},Y=G?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return ut(e)})(s):s;var{is:qt,defineProperty:Bt,getOwnPropertyDescriptor:jt,getOwnPropertyNames:Ft,getOwnPropertySymbols:Vt,getPrototypeOf:Wt}=Object,z=globalThis,pt=z.trustedTypes,Yt=pt?pt.emptyScript:"",Kt=z.reactiveElementPolyfillSupport,P=(s,t)=>s,k={toAttribute(s,t){switch(t){case Boolean:s=s?Yt: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}},q=(s,t)=>!qt(s,t),mt={attribute:!0,type:String,converter:k,reflect:!1,useDefault:!1,hasChanged:q};Symbol.metadata??=Symbol("metadata"),z.litPropertyMetadata??=new WeakMap;var y=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=mt){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(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&Bt(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){let{get:n,set:o}=jt(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let l=n?.call(this);o?.call(this,i),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??mt}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;let t=Wt(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=[...Ft(e),...Vt(e)];for(let n of r)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,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 n of r)e.unshift(Y(n))}else t!==void 0&&e.push(Y(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 dt(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),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){let o=(r.converter?.toAttribute!==void 0?r.converter:k).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){let r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let o=r.getPropertyOptions(n),i=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:k;this._$Em=n;let l=i.fromAttribute(e,o.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(t,e,r,n=!1,o){if(t!==void 0){let i=this.constructor;if(n===!1&&(o=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??q)(o,e)||r.useDefault&&r.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:n,wrapped:o},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),o!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),n===!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[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,o]of r){let{wrapped:i}=o,l=this[n];i!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,o,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){}};y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[P("elementProperties")]=new Map,y[P("finalized")]=new Map,Kt?.({ReactiveElement:y}),(z.reactiveElementVersions??=[]).push("2.1.2");var et=globalThis,yt=s=>s,B=et.trustedTypes,gt=B?B.createPolicy("lit-html",{createHTML:s=>s}):void 0,At="$lit$",f=`lit$${Math.random().toFixed(9).slice(2)}$`,St="?"+f,Jt=`<${St}>`,A=document,T=()=>A.createComment(""),M=s=>s===null||typeof s!="object"&&typeof s!="function",rt=Array.isArray,Zt=s=>rt(s)||typeof s?.[Symbol.iterator]=="function",K=`[
2
- \f\r]`,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ft=/-->/g,xt=/>/g,b=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,bt=/"/g,vt=/^(?:script|style|textarea|title)$/i,st=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),nt=st(1),p=st(2),xe=st(3),S=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),_t=new WeakMap,_=A.createTreeWalker(A,129);function Et(s,t){if(!rt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return gt!==void 0?gt.createHTML(t):t}var Qt=(s,t)=>{let e=s.length-1,r=[],n,o=t===2?"<svg>":t===3?"<math>":"",i=N;for(let l=0;l<e;l++){let a=s[l],u,d,h=-1,m=0;for(;m<a.length&&(i.lastIndex=m,d=i.exec(a),d!==null);)m=i.lastIndex,i===N?d[1]==="!--"?i=ft:d[1]!==void 0?i=xt:d[2]!==void 0?(vt.test(d[2])&&(n=RegExp("</"+d[2],"g")),i=b):d[3]!==void 0&&(i=b):i===b?d[0]===">"?(i=n??N,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,u=d[1],i=d[3]===void 0?b:d[3]==='"'?bt:$t):i===bt||i===$t?i=b:i===ft||i===xt?i=N:(i=b,n=void 0);let g=i===b&&s[l+1].startsWith("/>")?" ":"";o+=i===N?a+Jt:h>=0?(r.push(u),a.slice(0,h)+At+a.slice(h)+f+g):a+f+(h===-2?l:g)}return[Et(s,o+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},O=class s{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let o=0,i=0,l=t.length-1,a=this.parts,[u,d]=Qt(t,e);if(this.el=s.createElement(u,r),_.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=_.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(At)){let m=d[i++],g=n.getAttribute(h).split(f),L=/([.?@])?(.*)/.exec(m);a.push({type:1,index:o,name:L[2],strings:g,ctor:L[1]==="."?Z:L[1]==="?"?Q:L[1]==="@"?X:E}),n.removeAttribute(h)}else h.startsWith(f)&&(a.push({type:6,index:o}),n.removeAttribute(h));if(vt.test(n.tagName)){let h=n.textContent.split(f),m=h.length-1;if(m>0){n.textContent=B?B.emptyScript:"";for(let g=0;g<m;g++)n.append(h[g],T()),_.nextNode(),a.push({type:2,index:++o});n.append(h[m],T())}}}else if(n.nodeType===8)if(n.data===St)a.push({type:2,index:o});else{let h=-1;for(;(h=n.data.indexOf(f,h+1))!==-1;)a.push({type:7,index:o}),h+=f.length-1}o++}}static createElement(t,e){let r=A.createElement("template");return r.innerHTML=t,r}};function v(s,t,e=s,r){if(t===S)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,o=M(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(s),n._$AT(s,e,r)),r!==void 0?(e._$Co??=[])[r]=n:e._$Cl=n),n!==void 0&&(t=v(s,n._$AS(s,t.values),n,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,n=(t?.creationScope??A).importNode(e,!0);_.currentNode=n;let o=_.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let u;a.type===2?u=new H(o,o.nextSibling,this,t):a.type===1?u=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(u=new tt(o,this,t)),this._$AV.push(u),a=r[++l]}i!==a?.index&&(o=_.nextNode(),i++)}return _.currentNode=A,n}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++}},H=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=n?.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=v(this,t,e),M(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==S&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zt(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&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=O.createElement(Et(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let o=new J(n,this),i=o.u(this.options);o.p(e),this.T(i),this._$AH=o}}_$AC(t){let e=_t.get(t.strings);return e===void 0&&_t.set(t.strings,e=new O(t)),e}k(t){rt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,n=0;for(let o of t)n===e.length?e.push(r=new s(this.O(T()),this.O(T()),this,this.options)):r=e[n],r._$AI(o),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=yt(t).nextSibling;yt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},E=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,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,n){let o=this.strings,i=!1;if(o===void 0)t=v(this,t,e,0),i=!M(t)||t!==this._$AH&&t!==S,i&&(this._$AH=t);else{let l=t,a,u;for(t=o[0],a=0;a<o.length-1;a++)u=v(this,l[r+a],e,a),u===S&&(u=this._$AH[a]),i||=!M(u)||u!==this._$AH[a],u===c?t=c:t!==c&&(t+=(u??"")+o[a+1]),this._$AH[a]=u}i&&!n&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Z=class extends E{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},Q=class extends E{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},X=class extends E{constructor(t,e,r,n,o){super(t,e,r,n,o),this.type=5}_$AI(t,e=this){if((t=v(this,t,e,0)??c)===S)return;let r=this._$AH,n=t===c&&r!==c||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==c&&(r===c||n);n&&this.element.removeEventListener(this.name,this,r),o&&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){v(this,t)}};var Xt=et.litHtmlPolyfillSupport;Xt?.(O,H),(et.litHtmlVersions??=[]).push("3.3.2");var wt=(s,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let o=e?.renderBefore??null;r._$litPart$=n=new H(t.insertBefore(T(),o),o,void 0,e??{})}return n._$AI(s),n};var ot=globalThis,x=class extends y{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=wt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return S}};x._$litElement$=!0,x.finalized=!0,ot.litElementHydrateSupport?.({LitElement:x});var te=ot.litElementPolyfillSupport;te?.({LitElement:x});(ot.litElementVersions??=[]).push("4.2.2");var Ct=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};var ee={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:q},re=(s=ee,t,e)=>{let{kind:r,metadata:n}=e,o=globalThis.litPropertyMetadata.get(n);if(o===void 0&&globalThis.litPropertyMetadata.set(n,o=new Map),r==="setter"&&((s=Object.create(s)).wrapped=!0),o.set(e.name,s),r==="accessor"){let{name:i}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,a,s,!0,l)},init(l){return l!==void 0&&this.C(i,void 0,s,l),l}}}if(r==="setter"){let{name:i}=e;return function(l){let a=this[i];t.call(this,l),this.requestUpdate(i,a,s,!0,l)}}throw Error("Unsupported decorator location: "+r)};function j(s){return(t,e)=>typeof e=="object"?re(s,t,e):((r,n,o)=>{let i=n.hasOwnProperty(o);return n.constructor.createProperty(o,r),i?Object.getOwnPropertyDescriptor(n,o):void 0})(s,t,e)}var Rt=R`
1
+ "use strict";var RoxyUI_vedic_kundli=(()=>{var K=Object.defineProperty;var bt=Object.getOwnPropertyDescriptor;var Wt=Object.getOwnPropertyNames;var Jt=Object.prototype.hasOwnProperty;var Zt=(n,t)=>{for(var e in t)K(n,e,{get:t[e],enumerable:!0})},Xt=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Wt(t))!Jt.call(n,s)&&s!==e&&K(n,s,{get:()=>t[s],enumerable:!(r=bt(t,s))||r.enumerable});return n};var Qt=n=>Xt(K({},"__esModule",{value:!0}),n),F=(n,t,e,r)=>{for(var s=r>1?void 0:r?bt(t,e):t,o=n.length-1,i;o>=0;o--)(i=n[o])&&(s=(r?i(t,e,s):i(s))||s);return r&&s&&K(t,e,s),s};var Oe={};Zt(Oe,{RoxyVedicKundli:()=>E});var Y=globalThis,W=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nt=Symbol(),_t=new WeakMap,H=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==nt)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(W&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=_t.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&_t.set(e,t))}return t}toString(){return this.cssText}},St=n=>new H(typeof n=="string"?n:n+"",void 0,nt),I=(n,...t)=>{let e=n.length===1?n[0]:t.reduce((r,s,o)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new H(e,n,nt)},At=(n,t)=>{if(W)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),s=Y.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,n.appendChild(r)}},st=W?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return St(e)})(n):n;var{is:te,defineProperty:ee,getOwnPropertyDescriptor:re,getOwnPropertyNames:ne,getOwnPropertySymbols:se,getPrototypeOf:oe}=Object,J=globalThis,vt=J.trustedTypes,ie=vt?vt.emptyScript:"",ae=J.reactiveElementPolyfillSupport,j=(n,t)=>n,z={toAttribute(n,t){switch(t){case Boolean:n=n?ie:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Z=(n,t)=>!te(n,t),wt={attribute:!0,type:String,converter:z,reflect:!1,useDefault:!1,hasChanged:Z};Symbol.metadata??=Symbol("metadata"),J.litPropertyMetadata??=new WeakMap;var S=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=wt){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(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&ee(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){let{get:s,set:o}=re(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:s,set(i){let l=s?.call(this);o?.call(this,i),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??wt}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=oe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,r=[...ne(e),...se(e)];for(let s of r)this.createProperty(s,e[s])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,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 s of r)e.unshift(st(s))}else t!==void 0&&e.push(st(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 At(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),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){let o=(r.converter?.toAttribute!==void 0?r.converter:z).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){let r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let o=r.getPropertyOptions(s),i=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:z;this._$Em=s;let l=i.fromAttribute(e,o.type);this[s]=l??this._$Ej?.get(s)??l,this._$Em=null}}requestUpdate(t,e,r,s=!1,o){if(t!==void 0){let i=this.constructor;if(s===!1&&(o=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??Z)(o,e)||r.useDefault&&r.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:s,wrapped:o},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),o!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),s===!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[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[s,o]of r){let{wrapped:i}=o,l=this[s];i!==!0||this._$AL.has(s)||l===void 0||this.C(s,void 0,o,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){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[j("elementProperties")]=new Map,S[j("finalized")]=new Map,ae?.({ReactiveElement:S}),(J.reactiveElementVersions??=[]).push("2.1.2");var dt=globalThis,Et=n=>n,X=dt.trustedTypes,Ct=X?X.createPolicy("lit-html",{createHTML:n=>n}):void 0,Lt="$lit$",v=`lit$${Math.random().toFixed(9).slice(2)}$`,Nt="?"+v,le=`<${Nt}>`,M=document,D=()=>M.createComment(""),G=n=>n===null||typeof n!="object"&&typeof n!="function",ut=Array.isArray,ce=n=>ut(n)||typeof n?.[Symbol.iterator]=="function",ot=`[
2
+ \f\r]`,q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,Mt=/>/g,C=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),kt=/'/g,Pt=/"/g,Ot=/^(?:script|style|textarea|title)$/i,pt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),O=pt(1),m=pt(2),De=pt(3),k=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),Tt=new WeakMap,R=M.createTreeWalker(M,129);function Ut(n,t){if(!ut(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ct!==void 0?Ct.createHTML(t):t}var he=(n,t)=>{let e=n.length-1,r=[],s,o=t===2?"<svg>":t===3?"<math>":"",i=q;for(let l=0;l<e;l++){let a=n[l],y,g,u=-1,b=0;for(;b<a.length&&(i.lastIndex=b,g=i.exec(a),g!==null);)b=i.lastIndex,i===q?g[1]==="!--"?i=Rt:g[1]!==void 0?i=Mt:g[2]!==void 0?(Ot.test(g[2])&&(s=RegExp("</"+g[2],"g")),i=C):g[3]!==void 0&&(i=C):i===C?g[0]===">"?(i=s??q,u=-1):g[1]===void 0?u=-2:(u=i.lastIndex-g[2].length,y=g[1],i=g[3]===void 0?C:g[3]==='"'?Pt:kt):i===Pt||i===kt?i=C:i===Rt||i===Mt?i=q:(i=C,s=void 0);let _=i===C&&n[l+1].startsWith("/>")?" ":"";o+=i===q?a+le:u>=0?(r.push(y),a.slice(0,u)+Lt+a.slice(u)+v+_):a+v+(u===-2?l:_)}return[Ut(n,o+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},B=class n{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,i=0,l=t.length-1,a=this.parts,[y,g]=he(t,e);if(this.el=n.createElement(y,r),R.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(s=R.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(let u of s.getAttributeNames())if(u.endsWith(Lt)){let b=g[i++],_=s.getAttribute(u).split(v),U=/([.?@])?(.*)/.exec(b);a.push({type:1,index:o,name:U[2],strings:_,ctor:U[1]==="."?at:U[1]==="?"?lt:U[1]==="@"?ct:N}),s.removeAttribute(u)}else u.startsWith(v)&&(a.push({type:6,index:o}),s.removeAttribute(u));if(Ot.test(s.tagName)){let u=s.textContent.split(v),b=u.length-1;if(b>0){s.textContent=X?X.emptyScript:"";for(let _=0;_<b;_++)s.append(u[_],D()),R.nextNode(),a.push({type:2,index:++o});s.append(u[b],D())}}}else if(s.nodeType===8)if(s.data===Nt)a.push({type:2,index:o});else{let u=-1;for(;(u=s.data.indexOf(v,u+1))!==-1;)a.push({type:7,index:o}),u+=v.length-1}o++}}static createElement(t,e){let r=M.createElement("template");return r.innerHTML=t,r}};function L(n,t,e=n,r){if(t===k)return t;let s=r!==void 0?e._$Co?.[r]:e._$Cl,o=G(t)?void 0:t._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),o===void 0?s=void 0:(s=new o(n),s._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=s:e._$Cl=s),s!==void 0&&(t=L(n,s._$AS(n,t.values),s,r)),t}var it=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,s=(t?.creationScope??M).importNode(e,!0);R.currentNode=s;let o=R.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let y;a.type===2?y=new V(o,o.nextSibling,this,t):a.type===1?y=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(y=new ht(o,this,t)),this._$AV.push(y),a=r[++l]}i!==a?.index&&(o=R.nextNode(),i++)}return R.currentNode=M,s}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++}},V=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,s){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cv=s?.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=L(this,t,e),G(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==k&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ce(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&&G(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=B.createElement(Ut(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(e);else{let o=new it(s,this),i=o.u(this.options);o.p(e),this.T(i),this._$AH=o}}_$AC(t){let e=Tt.get(t.strings);return e===void 0&&Tt.set(t.strings,e=new B(t)),e}k(t){ut(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,s=0;for(let o of t)s===e.length?e.push(r=new n(this.O(D()),this.O(D()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=Et(t).nextSibling;Et(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},N=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,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,s){let o=this.strings,i=!1;if(o===void 0)t=L(this,t,e,0),i=!G(t)||t!==this._$AH&&t!==k,i&&(this._$AH=t);else{let l=t,a,y;for(t=o[0],a=0;a<o.length-1;a++)y=L(this,l[r+a],e,a),y===k&&(y=this._$AH[a]),i||=!G(y)||y!==this._$AH[a],y===c?t=c:t!==c&&(t+=(y??"")+o[a+1]),this._$AH[a]=y}i&&!s&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},at=class extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},lt=class extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},ct=class extends N{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){if((t=L(this,t,e,0)??c)===k)return;let r=this._$AH,s=t===c&&r!==c||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==c&&(r===c||s);s&&this.element.removeEventListener(this.name,this,r),o&&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)}},ht=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){L(this,t)}};var de=dt.litHtmlPolyfillSupport;de?.(B,V),(dt.litHtmlVersions??=[]).push("3.3.2");var Ht=(n,t,e)=>{let r=e?.renderBefore??t,s=r._$litPart$;if(s===void 0){let o=e?.renderBefore??null;r._$litPart$=s=new V(t.insertBefore(D(),o),o,void 0,e??{})}return s._$AI(n),s};var yt=globalThis,w=class extends S{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=Ht(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return k}};w._$litElement$=!0,w.finalized=!0,yt.litElementHydrateSupport?.({LitElement:w});var ue=yt.litElementPolyfillSupport;ue?.({LitElement:w});(yt.litElementVersions??=[]).push("4.2.2");var It=n=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(n,t)}):customElements.define(n,t)};var pe={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:Z},ye=(n=pe,t,e)=>{let{kind:r,metadata:s}=e,o=globalThis.litPropertyMetadata.get(s);if(o===void 0&&globalThis.litPropertyMetadata.set(s,o=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),o.set(e.name,n),r==="accessor"){let{name:i}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,a,n,!0,l)},init(l){return l!==void 0&&this.C(i,void 0,n,l),l}}}if(r==="setter"){let{name:i}=e;return function(l){let a=this[i];t.call(this,l),this.requestUpdate(i,a,n,!0,l)}}throw Error("Unsupported decorator location: "+r)};function Q(n){return(t,e)=>typeof e=="object"?ye(n,t,e):((r,s,o)=>{let i=s.hasOwnProperty(o);return s.constructor.createProperty(o,r),i?Object.getOwnPropertyDescriptor(s,o):void 0})(n,t,e)}var jt=I`
4
4
  :host {
5
5
  display: block;
6
6
  container-type: inline-size;
@@ -82,117 +82,227 @@
82
82
  outline: 2px solid var(--roxy-ring, rgba(245, 158, 11, 0.4));
83
83
  outline-offset: 2px;
84
84
  }
85
- `;var Pt={Sun:"Su",Moon:"Mo",Mercury:"Me",Venus:"Ve",Mars:"Ma",Jupiter:"Ju",Saturn:"Sa",Uranus:"Ur",Neptune:"Ne",Pluto:"Pl",Rahu:"Ra",Ketu:"Ke",Ascendant:"Asc",Lagna:"La"};var V={Aries:"Ar",Taurus:"Ta",Gemini:"Ge",Cancer:"Cn",Leo:"Le",Virgo:"Vi",Libra:"Li",Scorpio:"Sc",Sagittarius:"Sg",Capricorn:"Cp",Aquarius:"Aq",Pisces:"Pi"},w=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],ir=w.map(s=>s.toLowerCase());function se(s){let t=s%360;return t<0?t+360:t}function it(s){let t=se(s),e=Math.floor(t/30)%12,r=t%30,n=Math.floor(r),o=(r-n)*60,i=Math.floor(o),l=Math.round((o-i)*60);return{sign:w[e]??"Aries",signIndex:e,degree:n,minute:i,second:l}}function at(s){return s?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():""}var yr=Object.fromEntries(w.map(s=>[s.toLowerCase(),s])),ne="\u02B3";function oe(s){let t=Pt[at(s.graha)]??s.graha.slice(0,2),e=s.isRetrograde?ne:"";if(typeof s.longitude!="number"||!Number.isFinite(s.longitude))return`${t}${e}`;let{degree:r}=it(s.longitude);return`${t} ${r}\xB0${e}`}function ie(s){let t=[at(s.graha)];if(typeof s.longitude=="number"&&Number.isFinite(s.longitude)){let e=it(s.longitude);t.push(`${e.degree}\xB0${String(e.minute).padStart(2,"0")}' ${e.sign}`)}if(s.nakshatra?.name){let e=s.nakshatra.pada?` pada ${s.nakshatra.pada}`:"";t.push(`${s.nakshatra.name}${e}`)}return s.awastha&&t.push(s.awastha),s.isRetrograde&&t.push("retrograde"),t.join(" \xB7 ")}function lt(s,t,e,r){let n=e-(s.length-1)*r/2;return s.map((o,i)=>{let l=n+i*r;return p`<text class="planet-text" x=${t} y=${l} text-anchor="middle" dominant-baseline="central">${oe(o)}<title>${ie(o)}</title></text>`})}var ae={1:{x:150,y:58},2:{x:205,y:52},3:{x:253,y:112},4:{x:243,y:150},5:{x:253,y:188},6:{x:205,y:248},7:{x:150,y:242},8:{x:95,y:248},9:{x:47,y:188},10:{x:57,y:150},11:{x:47,y:112},12:{x:95,y:52}},le={1:{x:150,y:35},2:{x:222,y:40},3:{x:265,y:100},4:{x:265,y:150},5:{x:265,y:200},6:{x:222,y:260},7:{x:150,y:265},8:{x:78,y:260},9:{x:35,y:200},10:{x:35,y:150},11:{x:35,y:100},12:{x:78,y:40}},ce={1:{x:150,y:60},2:{x:225,y:100},3:{x:255,y:150},4:{x:225,y:200},5:{x:150,y:240},6:{x:75,y:200},7:{x:45,y:150},8:{x:75,y:100},9:{x:100,y:80},10:{x:150,y:108},11:{x:200,y:80},12:{x:200,y:220}},he={1:{x:150,y:80},2:{x:220,y:33},3:{x:267,y:80},4:{x:220,y:150},5:{x:267,y:220},6:{x:220,y:267},7:{x:150,y:220},8:{x:80,y:267},9:{x:33,y:220},10:{x:80,y:150},11:{x:33,y:80},12:{x:80,y:33}},ue={1:{x:150,y:55},2:{x:235,y:24},3:{x:276,y:62},4:{x:242,y:150},5:{x:276,y:238},6:{x:235,y:276},7:{x:150,y:245},8:{x:65,y:276},9:{x:24,y:238},10:{x:58,y:150},11:{x:24,y:62},12:{x:65,y:24}};function kt(s){let t=ae[s.number],e=le[s.number];if(!t||!e)return c;let r=V[s.sign]??"",n=s.isLagna?t.y+8:t.y;return p`
86
- <g>
87
- ${s.isLagna?p`<rect
88
- class="lagna-bg"
89
- x=${t.x-30} y=${t.y-28}
90
- width="60" height="56" rx="6"
91
- />`:c}
92
- ${r?p`<text class="sign-text" x=${e.x} y=${e.y} text-anchor="middle" dominant-baseline="central">${r}</text>`:c}
93
- ${s.isLagna?p`<text class="lagna-marker" x=${t.x} y=${t.y-18} text-anchor="middle" dominant-baseline="central">LAGNA</text>`:c}
94
- ${lt(s.planets,t.x,n,13)}
85
+
86
+ /* Force the text-style variant on every Unicode glyph in the component.
87
+ * macOS and iOS substitute coloured emoji glyphs for the planetary and
88
+ * gender Unicode code points (Mars, Venus, Mercury, etc.) when the
89
+ * system colour-emoji font wins font selection. The text-style variant
90
+ * keeps glyphs monochrome so they inherit the surrounding fill colour
91
+ * and match the brand palette consistently across platforms.
92
+ *
93
+ * font-variant-emoji is part of CSS Fonts 4 (Safari 17+, Chrome 134+,
94
+ * Firefox 139+). On older browsers the rule is silently ignored.
95
+ */
96
+ :host {
97
+ font-variant-emoji: text;
98
+ }
99
+ `;var zt={Sun:"Su",Moon:"Mo",Mercury:"Me",Venus:"Ve",Mars:"Ma",Jupiter:"Ju",Saturn:"Sa",Uranus:"Ur",Neptune:"Ne",Pluto:"Pl",Rahu:"Ra",Ketu:"Ke",Ascendant:"Asc",Lagna:"La"};var mt={Aries:"Ar",Taurus:"Ta",Gemini:"Ge",Cancer:"Cn",Leo:"Le",Virgo:"Vi",Libra:"Li",Scorpio:"Sc",Sagittarius:"Sg",Capricorn:"Cp",Aquarius:"Aq",Pisces:"Pi"},f=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],kr=f.map(n=>n.toLowerCase());function me(n){let t=n%360;return t<0?t+360:t}function et(n){let t=me(n),e=Math.floor(t/30)%12,r=t%30,s=Math.floor(r),o=(r-s)*60,i=Math.floor(o),l=Math.round((o-i)*60);return{sign:f[e]??"Aries",signIndex:e,degree:s,minute:i,second:l}}function gt(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}var x=400,d=20,$=x-2*d,p=x/2,ge=Object.fromEntries(f.map(n=>[n.toLowerCase(),n])),P=[{id:"north",label:"North"},{id:"south",label:"South"},{id:"east",label:"East"}],$e="\u02B3";function qt(n,t){return typeof n.longitude!="number"||!Number.isFinite(n.longitude)?!1:et(n.longitude).sign.toLowerCase()!==t.toLowerCase()}function fe(n,t){let e=zt[gt(n.graha)]??n.graha.slice(0,2),r=n.isRetrograde?$e:"";if(typeof n.longitude!="number"||!Number.isFinite(n.longitude)||qt(n,t))return`${e}${r}`;let{degree:s}=et(n.longitude);return`${e} ${s}\xB0${r}`}function xe(n,t){let e=[gt(n.graha)],r=qt(n,t);if(r&&e.push(`in ${t}`),typeof n.longitude=="number"&&Number.isFinite(n.longitude)){let s=et(n.longitude),o=String(s.minute).padStart(2,"0");e.push(r?`D1: ${s.degree}\xB0${o}' ${s.sign}`:`${s.degree}\xB0${o}' ${s.sign}`)}if(n.nakshatra?.name){let s=n.nakshatra.pada?` pada ${n.nakshatra.pada}`:"";e.push(`${n.nakshatra.name}${s}`)}return n.awastha&&e.push(n.awastha),n.isRetrograde&&e.push("retrograde"),e.join(" \xB7 ")}function $t(n,t,e,r,s){let o=r-(n.length-1)*s/2;return n.map((i,l)=>{let a=o+l*s;return m`<text class="planet-text" x=${e} y=${a} text-anchor="middle" dominant-baseline="central">${fe(i,t)}<title>${xe(i,t)}</title></text>`})}function Dt(n,t){let e={};for(let s of f)e[s.toLowerCase()]=[];let r="";for(let[s,o]of Object.entries(n??{})){let i=(o?.rashi??"").toLowerCase();if(s==="Lagna"||o?.graha==="Lagna"){r=ge[i]??"";continue}!i||!(i in e)||e[i]?.push({graha:o.graha??s,longitude:o.longitude,nakshatra:o.nakshatra,isRetrograde:o.isRetrograde,awastha:o.awastha})}return{lagnaSign:r,placements:e,divisionLabel:t}}var T=$/4,be={Pisces:{col:0,row:0},Aries:{col:1,row:0},Taurus:{col:2,row:0},Gemini:{col:3,row:0},Cancer:{col:3,row:1},Leo:{col:3,row:2},Virgo:{col:3,row:3},Libra:{col:2,row:3},Scorpio:{col:1,row:3},Sagittarius:{col:0,row:3},Capricorn:{col:0,row:2},Aquarius:{col:0,row:1}};function _e(n){let t=be[n]??{col:0,row:0};return{x:d+t.col*T,y:d+t.row*T,w:T,h:T}}function Se(n){let t=d,e=d+T,r=d+2*T,s=d+3*T,o=x-d;return m`
100
+ <rect class="line" x=${t} y=${t} width=${$} height=${$} stroke-width="1.5" fill="none" />
101
+ <line class="line" x1=${t} y1=${e} x2=${o} y2=${e} stroke-width="1" />
102
+ <line class="line" x1=${t} y1=${s} x2=${o} y2=${s} stroke-width="1" />
103
+ <line class="line" x1=${e} y1=${t} x2=${e} y2=${o} stroke-width="1" />
104
+ <line class="line" x1=${s} y1=${t} x2=${s} y2=${o} stroke-width="1" />
105
+ <line class="line" x1=${t} y1=${r} x2=${e} y2=${r} stroke-width="1" />
106
+ <line class="line" x1=${s} y1=${r} x2=${o} y2=${r} stroke-width="1" />
107
+ <line class="line" x1=${r} y1=${t} x2=${r} y2=${e} stroke-width="1" />
108
+ <line class="line" x1=${r} y1=${s} x2=${r} y2=${o} stroke-width="1" />
109
+ ${n?m`<text class="centre-label" x=${p} y=${p} text-anchor="middle" dominant-baseline="central">${n}</text>`:c}
110
+ `}function Gt(n,t){let e=f.findIndex(s=>s===t),r=f.findIndex(s=>s===n);return e===-1||r===-1?0:(r-e+12)%12+1}function Ae(n,t,e,r){let s=_e(n),o=s.x+s.w/2,i=s.y+s.h/2,l=mt[n]??n.slice(0,2),a=14;return m`
111
+ <g class=${e?"cell lagna":"cell"}>
112
+ ${e?m`
113
+ <rect class="lagna-bg" x=${s.x} y=${s.y} width=${s.w} height=${s.h} />
114
+ <line class="lagna-slash" x1=${s.x+s.w-a} y1=${s.y+a} x2=${s.x+a} y2=${s.y+s.h-a} stroke-width="1.2" />
115
+ `:c}
116
+ <text class="sign-text" x=${s.x+6} y=${s.y+12} text-anchor="start" dominant-baseline="central">${l}</text>
117
+ ${r>0?m`<text class="house-num" x=${s.x+s.w-6} y=${s.y+12} text-anchor="end" dominant-baseline="central">${r}</text>`:c}
118
+ ${t.length?$t(t,n,o,i+4,14):c}
95
119
  </g>
96
- `}function Nt(){return p`
97
- <polygon class="line" points="150,10 290,150 150,290 10,150" stroke-width="1.5" />
98
- <line class="line" x1="150" y1="10" x2="150" y2="290" stroke-width="1" />
99
- <line class="line" x1="10" y1="150" x2="290" y2="150" stroke-width="1" />
100
- <line class="line" x1="150" y1="10" x2="10" y2="150" stroke-width="0.6" stroke-dasharray="3,3" />
101
- <line class="line" x1="150" y1="10" x2="290" y2="150" stroke-width="0.6" stroke-dasharray="3,3" />
102
- <line class="line" x1="150" y1="290" x2="10" y2="150" stroke-width="0.6" stroke-dasharray="3,3" />
103
- <line class="line" x1="150" y1="290" x2="290" y2="150" stroke-width="0.6" stroke-dasharray="3,3" />
104
- `}function Tt(s){let t=ce[s.number];if(!t)return c;let e=V[s.sign]??"";return p`
105
- <g>
106
- ${s.isLagna?p`<circle class="lagna-bg" cx=${t.x} cy=${t.y} r="22" />`:c}
107
- ${e?p`<text class="sign-text" x=${t.x} y=${t.y-10} text-anchor="middle" dominant-baseline="central">${e}</text>`:c}
108
- <text class="house-num" x=${t.x} y=${t.y+2} text-anchor="middle" dominant-baseline="central">${s.number}</text>
109
- ${lt(s.planets,t.x,t.y+14,11)}
120
+ `}function ve(n){let t=n.lagnaSign.toLowerCase();return m`
121
+ ${Se(n.divisionLabel)}
122
+ ${f.map(e=>Ae(e,n.placements[e.toLowerCase()]??[],e.toLowerCase()===t,Gt(e,n.lagnaSign)))}
123
+ `}var h={tl:{x:d,y:d},tr:{x:x-d,y:d},br:{x:x-d,y:x-d},bl:{x:d,y:x-d},top:{x:p,y:d},right:{x:x-d,y:p},bottom:{x:p,y:x-d},left:{x:d,y:p},tlMid:{x:p-$/4,y:p-$/4},trMid:{x:p+$/4,y:p-$/4},brMid:{x:p+$/4,y:p+$/4},blMid:{x:p-$/4,y:p+$/4}};function A(n){let t=n.reduce((r,s)=>r+s.x,0)/n.length,e=n.reduce((r,s)=>r+s.y,0)/n.length;return{x:t,y:e}}var we={1:{x:p,y:h.tlMid.y},2:A([h.tl,h.top,h.tlMid]),3:A([h.tl,h.left,h.tlMid]),4:{x:h.tlMid.x,y:p},5:A([h.bl,h.left,h.blMid]),6:A([h.bl,h.bottom,h.blMid]),7:{x:p,y:h.blMid.y},8:A([h.br,h.bottom,h.brMid]),9:A([h.br,h.right,h.brMid]),10:{x:h.brMid.x,y:p},11:A([h.tr,h.right,h.trMid]),12:A([h.tr,h.top,h.trMid])};function Ee(n,t){let e=f.findIndex(r=>r===t);return e===-1?n:(e+n-1)%12+1}function Ce(n){let{tl:t,tr:e,br:r,bl:s,top:o,right:i,bottom:l,left:a}=h;return m`
124
+ <rect class="line" x=${t.x} y=${t.y} width=${$} height=${$} stroke-width="1.5" fill="none" />
125
+ <polygon class="line" points="${o.x},${o.y} ${i.x},${i.y} ${l.x},${l.y} ${a.x},${a.y}" stroke-width="1" fill="none" />
126
+ <line class="line" x1=${t.x} y1=${t.y} x2=${r.x} y2=${r.y} stroke-width="1" />
127
+ <line class="line" x1=${e.x} y1=${e.y} x2=${s.x} y2=${s.y} stroke-width="1" />
128
+ ${n?m`<text class="centre-label" x=${p} y=${p} text-anchor="middle" dominant-baseline="central">${n}</text>`:c}
129
+ `}function Re(n,t,e,r,s){let o=we[n];if(!o)return m``;let i=Math.min(14,Math.abs(o.y-p)*.45+6),l=i+12;return m`
130
+ <g class=${s?"cell lagna":"cell"}>
131
+ <text class="rashi-num" x=${o.x} y=${o.y-i} text-anchor="middle" dominant-baseline="central">${t}</text>
132
+ ${s?m`<text class="lagna-marker" x=${o.x} y=${o.y-l} text-anchor="middle" dominant-baseline="central">Asc</text>`:c}
133
+ ${r.length?$t(r,e,o.x,o.y+8,12):c}
110
134
  </g>
111
- `}function Mt(){return p`
112
- <polygon class="line" points="150,10 290,150 150,290 10,150" stroke-width="1.5" />
113
- <polygon class="line" points="220,80 220,220 80,220 80,80" stroke-width="1" fill="none" />
114
- <line class="line" x1="150" y1="10" x2="80" y2="80" stroke-width="1" />
115
- <line class="line" x1="150" y1="10" x2="220" y2="80" stroke-width="1" />
116
- <line class="line" x1="290" y1="150" x2="220" y2="80" stroke-width="1" />
117
- <line class="line" x1="290" y1="150" x2="220" y2="220" stroke-width="1" />
118
- <line class="line" x1="150" y1="290" x2="220" y2="220" stroke-width="1" />
119
- <line class="line" x1="150" y1="290" x2="80" y2="220" stroke-width="1" />
120
- <line class="line" x1="10" y1="150" x2="80" y2="220" stroke-width="1" />
121
- <line class="line" x1="10" y1="150" x2="80" y2="80" stroke-width="1" />
122
- `}function Ot(){return p`
123
- <rect class="line" x="10" y="10" width="280" height="280" stroke-width="1.5" fill="none" />
124
- <line class="line" x1="10" y1="10" x2="290" y2="290" stroke-width="1" />
125
- <line class="line" x1="290" y1="10" x2="10" y2="290" stroke-width="1" />
126
- <polygon class="line" points="150,10 290,150 150,290 10,150" stroke-width="1" fill="none" />
127
- `}function Ht(s){let t=he[s.number],e=ue[s.number];if(!t||!e)return c;let r=V[s.sign]??"";return p`
128
- <g>
129
- ${s.isLagna?p`<circle class="lagna-bg" cx=${t.x} cy=${t.y} r="20" />`:c}
130
- ${r?p`<text class="sign-text" x=${e.x} y=${e.y} text-anchor="middle" dominant-baseline="central">${r}</text>`:c}
131
- ${s.isLagna?p`<text class="lagna-marker" x=${t.x} y=${t.y-14} text-anchor="middle" dominant-baseline="central">LAGNA</text>`:c}
132
- ${lt(s.planets,t.x,t.y+2,11)}
135
+ `}function Me(n){let t=n.lagnaSign||"Aries";return m`
136
+ ${Ce(n.divisionLabel)}
137
+ ${Array.from({length:12},(e,r)=>{let s=r+1,o=Ee(s,t),i=f[o-1]??"Aries";return Re(s,o,i,n.placements[i.toLowerCase()]??[],s===1)})}
138
+ `}var rt=$/3;function ke(){let n=d,t=d+rt,e=d+2*rt,r=x-d,Ft={Aries:[{x:t,y:n},{x:e,y:n},{x:e,y:t},{x:t,y:t}],Taurus:[{x:n,y:n},{x:t,y:n},{x:t,y:t}],Gemini:[{x:n,y:n},{x:t,y:t},{x:n,y:t}],Cancer:[{x:n,y:t},{x:t,y:t},{x:t,y:e},{x:n,y:e}],Leo:[{x:n,y:e},{x:t,y:e},{x:n,y:r}],Virgo:[{x:t,y:e},{x:t,y:r},{x:n,y:r}],Libra:[{x:t,y:e},{x:e,y:e},{x:e,y:r},{x:t,y:r}],Scorpio:[{x:e,y:e},{x:e,y:r},{x:r,y:r}],Sagittarius:[{x:e,y:e},{x:r,y:r},{x:r,y:e}],Capricorn:[{x:e,y:t},{x:r,y:t},{x:r,y:e},{x:e,y:e}],Aquarius:[{x:r,y:n},{x:r,y:t},{x:e,y:t}],Pisces:[{x:e,y:n},{x:r,y:n},{x:e,y:t}]},ft={};for(let[Yt,xt]of Object.entries(Ft))ft[Yt]={points:[...xt],centroid:A(xt)};return ft}var Pe=ke();function Te(n){let t=d,e=d+rt,r=d+2*rt,s=x-d;return m`
139
+ <rect class="line" x=${t} y=${t} width=${$} height=${$} stroke-width="1.5" fill="none" />
140
+ <line class="line" x1=${t} y1=${e} x2=${e} y2=${e} stroke-width="1" />
141
+ <line class="line" x1=${r} y1=${e} x2=${s} y2=${e} stroke-width="1" />
142
+ <line class="line" x1=${t} y1=${r} x2=${e} y2=${r} stroke-width="1" />
143
+ <line class="line" x1=${r} y1=${r} x2=${s} y2=${r} stroke-width="1" />
144
+ <line class="line" x1=${e} y1=${t} x2=${e} y2=${e} stroke-width="1" />
145
+ <line class="line" x1=${e} y1=${r} x2=${e} y2=${s} stroke-width="1" />
146
+ <line class="line" x1=${r} y1=${t} x2=${r} y2=${e} stroke-width="1" />
147
+ <line class="line" x1=${r} y1=${r} x2=${r} y2=${s} stroke-width="1" />
148
+ <line class="line" x1=${t} y1=${t} x2=${e} y2=${e} stroke-width="1" />
149
+ <line class="line" x1=${s} y1=${t} x2=${r} y2=${e} stroke-width="1" />
150
+ <line class="line" x1=${s} y1=${s} x2=${r} y2=${r} stroke-width="1" />
151
+ <line class="line" x1=${t} y1=${s} x2=${e} y2=${r} stroke-width="1" />
152
+ ${n?m`<text class="centre-label" x=${p} y=${p} text-anchor="middle" dominant-baseline="central">${n}</text>`:c}
153
+ `}function Le(n,t,e,r){let s=Pe[n];if(!s)return m``;let{centroid:o,points:i}=s,l=mt[n]??n.slice(0,2),a=i.map(y=>`${y.x},${y.y}`).join(" ");return m`
154
+ <g class=${e?"cell lagna":"cell"}>
155
+ ${e?m`<polygon class="lagna-bg" points=${a} />`:c}
156
+ <text class="sign-text" x=${o.x} y=${o.y-16} text-anchor="middle" dominant-baseline="central">${l}</text>
157
+ ${r>0?m`<text class="house-num" x=${o.x+18} y=${o.y-16} text-anchor="start" dominant-baseline="central">${r}</text>`:c}
158
+ ${e?m`<text class="lagna-marker" x=${o.x} y=${o.y-30} text-anchor="middle" dominant-baseline="central">Asc</text>`:c}
159
+ ${t.length?$t(t,n,o.x,o.y+4,12):c}
133
160
  </g>
134
- `}function Lt(s){let t=new Map,e="";for(let[r,n]of Object.entries(s)){let o=(n?.rashi??"").toLowerCase();if(r==="Lagna"||n?.graha==="Lagna"){e=o;continue}if(!o)continue;let i=t.get(o)??[];i.push({graha:n.graha??r,longitude:n.longitude,nakshatra:n.nakshatra,isRetrograde:n.isRetrograde,awastha:n.awastha}),t.set(o,i)}return w.map((r,n)=>{let o=r.toLowerCase();return{number:n+1,sign:r,planets:t.get(o)??[],isLagna:e===o}})}var $=class extends x{constructor(){super(...arguments);this.data=null;this.chartStyle="south"}buildHouses(){return this.data?.meta?Lt(this.data.meta):[]}render(){if(!this.data)return nt`<div class="roxy-empty" role="status">No kundli data</div>`;let e=this.buildHouses(),r=this.chartStyle,n=r==="north"?Nt():r==="east"?Ot():Mt(),o=r==="north"?Tt:r==="east"?Ht:kt;return nt`<div class="wrap">
135
- <h2 class="title">Vedic kundli</h2>
161
+ `}function Ne(n){let t=n.lagnaSign.toLowerCase();return m`
162
+ ${Te(n.divisionLabel)}
163
+ ${f.map(e=>Le(e,n.placements[e.toLowerCase()]??[],e.toLowerCase()===t,Gt(e,n.lagnaSign)))}
164
+ `}function Bt(n,t){switch(t){case"north":return Me(n);case"east":return Ne(n);default:return ve(n)}}function Vt(n,t){return O`<div
165
+ class="kundli-tablist"
166
+ role="tablist"
167
+ aria-label="Kundli style"
168
+ @keydown=${r=>{let s=P.findIndex(o=>o.id===n);if(r.key==="ArrowRight"){r.preventDefault();let o=P[(s+1)%P.length];o&&t(o.id)}else if(r.key==="ArrowLeft"){r.preventDefault();let o=P[(s-1+P.length)%P.length];o&&t(o.id)}}}
169
+ >
170
+ ${P.map(r=>O`<button
171
+ type="button"
172
+ class="kundli-tab"
173
+ role="tab"
174
+ id="kundli-tab-${r.id}"
175
+ aria-selected=${n===r.id?"true":"false"}
176
+ tabindex=${n===r.id?"0":"-1"}
177
+ @click=${()=>t(r.id)}
178
+ >
179
+ ${r.label}
180
+ </button>`)}
181
+ </div>`}var Kt=I`
182
+ .wrap {
183
+ display: grid;
184
+ gap: var(--roxy-space-md, 1rem);
185
+ }
186
+ .header {
187
+ display: flex;
188
+ flex-wrap: wrap;
189
+ align-items: center;
190
+ justify-content: space-between;
191
+ gap: var(--roxy-space-sm, 0.5rem);
192
+ }
193
+ .title {
194
+ font-size: var(--roxy-text-lg, 1.125rem);
195
+ font-weight: var(--roxy-weight-bold, 600);
196
+ margin: 0;
197
+ }
198
+ .kundli-tablist {
199
+ display: inline-flex;
200
+ gap: 2px;
201
+ border-bottom: 2px solid var(--roxy-border, #e4e4e7);
202
+ }
203
+ .kundli-tab {
204
+ padding: var(--roxy-space-xs, 0.25rem) var(--roxy-space-md, 1rem);
205
+ font-size: var(--roxy-text-sm, 0.875rem);
206
+ background: none;
207
+ border: none;
208
+ border-bottom: 2px solid transparent;
209
+ margin-bottom: -2px;
210
+ cursor: pointer;
211
+ color: var(--roxy-muted, #71717a);
212
+ font-family: inherit;
213
+ transition: color var(--roxy-motion-duration, 200ms)
214
+ var(--roxy-motion-easing, ease);
215
+ }
216
+ .kundli-tab[aria-selected='true'] {
217
+ color: var(--roxy-accent-fg, #b45309);
218
+ border-bottom-color: var(--roxy-accent, #f59e0b);
219
+ font-weight: var(--roxy-weight-bold, 600);
220
+ }
221
+ .kundli-tab:hover:not([aria-selected='true']) {
222
+ color: var(--roxy-fg, #0a0a0a);
223
+ }
224
+ .kundli-tab:focus-visible {
225
+ outline: 2px solid var(--roxy-ring, rgba(245, 158, 11, 0.4));
226
+ outline-offset: 2px;
227
+ border-radius: 4px;
228
+ }
229
+ svg {
230
+ display: block;
231
+ width: 100%;
232
+ max-width: 560px;
233
+ aspect-ratio: 1 / 1;
234
+ height: auto;
235
+ margin: 0 auto;
236
+ }
237
+ .line {
238
+ fill: transparent;
239
+ stroke: var(--roxy-border, #d4d4d8);
240
+ }
241
+ .sign-text {
242
+ fill: var(--roxy-muted, #71717a);
243
+ font-size: 11px;
244
+ font-weight: 500;
245
+ font-family: var(--roxy-font-sans);
246
+ text-transform: uppercase;
247
+ letter-spacing: 0.04em;
248
+ }
249
+ .rashi-num {
250
+ fill: var(--roxy-muted, #71717a);
251
+ font-size: 12px;
252
+ font-weight: 500;
253
+ font-family: var(--roxy-font-sans);
254
+ }
255
+ .house-num {
256
+ fill: var(--roxy-accent-fg, #b45309);
257
+ font-size: 11px;
258
+ font-weight: 600;
259
+ font-family: var(--roxy-font-sans);
260
+ opacity: 0.85;
261
+ }
262
+ .planet-text {
263
+ fill: var(--roxy-fg, #0a0a0a);
264
+ font-size: 13px;
265
+ font-weight: 600;
266
+ font-family: var(--roxy-font-sans);
267
+ }
268
+ .centre-label {
269
+ fill: var(--roxy-muted, #71717a);
270
+ font-size: 14px;
271
+ font-weight: 600;
272
+ font-family: var(--roxy-font-sans);
273
+ letter-spacing: 0.02em;
274
+ }
275
+ .lagna-marker {
276
+ fill: var(--roxy-accent-fg, #b45309);
277
+ font-size: 10px;
278
+ font-weight: 700;
279
+ font-family: var(--roxy-font-sans);
280
+ letter-spacing: 0.08em;
281
+ text-transform: uppercase;
282
+ }
283
+ .lagna-bg {
284
+ fill: color-mix(in srgb, var(--roxy-accent, #f59e0b) 14%, transparent);
285
+ }
286
+ .lagna-slash {
287
+ stroke: var(--roxy-accent, #f59e0b);
288
+ stroke-linecap: round;
289
+ opacity: 0.7;
290
+ }
291
+ `;var E=class extends w{constructor(){super(...arguments);this.data=null;this.chartStyle="north";this.setStyle=e=>{this.chartStyle=e}}viewModel(){return this.data?.meta?Dt(this.data.meta,"D1 Rashi"):null}render(){let e=this.viewModel();return e?O`<div class="wrap">
292
+ <div class="header">
293
+ <h2 class="title">Vedic kundli</h2>
294
+ ${Vt(this.chartStyle,this.setStyle)}
295
+ </div>
136
296
  <svg
137
- viewBox="0 0 300 300"
297
+ viewBox="0 0 400 400"
298
+ preserveAspectRatio="xMidYMid meet"
138
299
  role="img"
139
300
  aria-label="Vedic birth chart with twelve sign houses"
140
301
  >
141
302
  <title>Vedic kundli</title>
142
- ${n}
143
- ${e.map(i=>o(i))}
303
+ ${Bt(e,this.chartStyle)}
144
304
  </svg>
145
- </div>`}};$.styles=[Rt,R`
146
- .wrap {
147
- display: grid;
148
- gap: var(--roxy-space-md, 1rem);
149
- }
150
- .title {
151
- font-size: var(--roxy-text-lg, 1.125rem);
152
- font-weight: var(--roxy-weight-bold, 600);
153
- margin: 0;
154
- }
155
- svg {
156
- display: block;
157
- width: 100%;
158
- max-width: 360px;
159
- margin: 0 auto;
160
- }
161
- .line {
162
- fill: transparent;
163
- stroke: var(--roxy-border, #e4e4e7);
164
- }
165
- .sign-text {
166
- fill: var(--roxy-muted, #71717a);
167
- font-size: 9px;
168
- font-weight: 500;
169
- font-family: var(--roxy-font-sans);
170
- }
171
- .planet-text {
172
- fill: var(--roxy-fg, #0a0a0a);
173
- font-size: 10px;
174
- font-weight: 600;
175
- font-family: var(--roxy-font-sans);
176
- }
177
- .house-num {
178
- fill: var(--roxy-muted, #71717a);
179
- font-size: 9px;
180
- font-weight: 400;
181
- font-family: var(--roxy-font-sans);
182
- }
183
- .lagna-marker {
184
- fill: var(--roxy-accent-fg, #b45309);
185
- font-size: 8px;
186
- font-weight: 700;
187
- font-family: var(--roxy-font-sans);
188
- letter-spacing: 0.05em;
189
- }
190
- .lagna-bg {
191
- fill: color-mix(in srgb, var(--roxy-accent, #f59e0b) 12%, transparent);
192
- stroke: color-mix(in srgb, var(--roxy-accent, #f59e0b) 45%, transparent);
193
- stroke-width: 0.8;
194
- }
195
- `],I([j({attribute:!1})],$.prototype,"data",2),I([j({type:String,reflect:!0,attribute:"chart-style"})],$.prototype,"chartStyle",2),$=I([Ct("roxy-vedic-kundli")],$);return zt(de);})();
305
+ </div>`:O`<div class="roxy-empty" role="status">No kundli data</div>`}};E.styles=[jt,Kt],F([Q({attribute:!1})],E.prototype,"data",2),F([Q({type:String,reflect:!0,attribute:"chart-style"})],E.prototype,"chartStyle",2),E=F([It("roxy-vedic-kundli")],E);return Qt(Oe);})();
196
306
  /*! Bundled license information:
197
307
 
198
308
  @lit/reactive-element/css-tag.js: