@roxyapi/ui 0.18.0 → 0.18.2

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 (40) hide show
  1. package/components-catalog.json +109 -109
  2. package/dist/cdn/components/dasha-timeline.js +4 -4
  3. package/dist/cdn/components/dasha-timeline.js.map +3 -3
  4. package/dist/cdn/components/divisional-chart.js +1 -1
  5. package/dist/cdn/components/divisional-chart.js.map +2 -2
  6. package/dist/cdn/components/endpoint-form.js +1 -1
  7. package/dist/cdn/components/endpoint-form.js.map +1 -1
  8. package/dist/cdn/components/tarot-card.js +1 -1
  9. package/dist/cdn/components/tarot-card.js.map +2 -2
  10. package/dist/cdn/components/vedic-kundli.js +1 -1
  11. package/dist/cdn/components/vedic-kundli.js.map +2 -2
  12. package/dist/cdn/roxy-ui.js +24 -24
  13. package/dist/cdn/roxy-ui.js.map +3 -3
  14. package/dist/components/dasha-timeline.d.ts.map +1 -1
  15. package/dist/components/dasha-timeline.js +1 -1
  16. package/dist/components/dasha-timeline.js.map +3 -3
  17. package/dist/components/divisional-chart.d.ts.map +1 -1
  18. package/dist/components/divisional-chart.js +1 -1
  19. package/dist/components/divisional-chart.js.map +2 -2
  20. package/dist/components/endpoint-form.js +1 -1
  21. package/dist/components/endpoint-form.js.map +1 -1
  22. package/dist/components/tarot-card.d.ts.map +1 -1
  23. package/dist/components/tarot-card.js +1 -1
  24. package/dist/components/tarot-card.js.map +2 -2
  25. package/dist/components/vedic-kundli.d.ts.map +1 -1
  26. package/dist/components/vedic-kundli.js +1 -1
  27. package/dist/components/vedic-kundli.js.map +2 -2
  28. package/dist/index.cjs +41 -41
  29. package/dist/index.cjs.map +3 -3
  30. package/dist/index.js +21 -21
  31. package/dist/index.js.map +3 -3
  32. package/dist/utils/kundli-render.d.ts.map +1 -1
  33. package/dist/version.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/src/components/dasha-timeline.ts +35 -7
  36. package/src/components/divisional-chart.ts +15 -8
  37. package/src/components/tarot-card.ts +17 -9
  38. package/src/components/vedic-kundli.ts +15 -8
  39. package/src/utils/kundli-render.ts +5 -0
  40. package/src/version.ts +1 -1
@@ -261,7 +261,7 @@ var RoxyUI_tarot_card=(()=>{var z=Object.defineProperty;var pe=Object.getOwnProp
261
261
  }
262
262
  `;var K="roxy-ui-tokens";function F(){if(typeof document>"u")return null;let s=document.getElementById(K);if(s)return s;let e=document.createElement("style");return e.id=K,e.textContent=ue,document.head.prepend(e),e}var q=globalThis,G=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ee=Symbol(),me=new WeakMap,U=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==ee)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(G&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=me.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&me.set(t,e))}return e}toString(){return this.cssText}},ye=s=>new U(typeof s=="string"?s:s+"",void 0,ee),x=(s,...e)=>{let t=s.length===1?s[0]:e.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 U(t,s,ee)},fe=(s,e)=>{if(G)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=q.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,s.appendChild(r)}},te=G?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return ye(t)})(s):s;var{is:Be,defineProperty:Ve,getOwnPropertyDescriptor:We,getOwnPropertyNames:Ye,getOwnPropertySymbols:Je,getPrototypeOf:Xe}=Object,B=globalThis,ge=B.trustedTypes,Ze=ge?ge.emptyScript:"",Qe=B.reactiveElementPolyfillSupport,O=(s,e)=>s,P={toAttribute(s,e){switch(e){case Boolean:s=s?Ze:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},V=(s,e)=>!Be(s,e),xe={attribute:!0,type:String,converter:P,reflect:!1,useDefault:!1,hasChanged:V};Symbol.metadata??=Symbol("metadata"),B.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=xe){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Ve(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){let{get:o,set:i}=We(this.prototype,e)??{get(){return this[t]},set(n){this[t]=n}};return{get:o,set(n){let l=o?.call(this);i?.call(this,n),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??xe}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;let e=Xe(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){let t=this.properties,r=[...Ye(t),...Je(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(te(o))}else e!==void 0&&t.push(te(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return fe(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let i=(r.converter?.toAttribute!==void 0?r.converter:P).toAttribute(t,r.type);this._$Em=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(e,t){let r=this.constructor,o=r._$Eh.get(e);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:P;this._$Em=o;let l=n.fromAttribute(t,i.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(e,t,r,o=!1,i){if(e!==void 0){let n=this.constructor;if(o===!1&&(i=this[e]),r??=n.getPropertyOptions(e),!((r.hasChanged??V)(i,t)||r.useDefault&&r.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:i},n){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,n??t??this[e]),i!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!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 e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[O("elementProperties")]=new Map,v[O("finalized")]=new Map,Qe?.({ReactiveElement:v}),(B.reactiveElementVersions??=[]).push("2.1.2");var le=globalThis,be=s=>s,W=le.trustedTypes,ve=W?W.createPolicy("lit-html",{createHTML:s=>s}):void 0,ke="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,Ee="?"+$,et=`<${Ee}>`,k=document,N=()=>k.createComment(""),H=s=>s===null||typeof s!="object"&&typeof s!="function",de=Array.isArray,tt=s=>de(s)||typeof s?.[Symbol.iterator]=="function",re=`[
263
263
  \f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$e=/-->/g,we=/>/g,S=RegExp(`>|${re}(?:([^\\s"'>=/]+)(${re}*=${re}*(?:[^
264
- \f\r"'\`<>=]|("|')|))|$)`,"g"),_e=/'/g,Se=/"/g,Te=/^(?:script|style|textarea|title)$/i,ce=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),c=ce(1),vt=ce(2),$t=ce(3),E=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ae=new WeakMap,A=k.createTreeWalker(k,129);function Ce(s,e){if(!de(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ve!==void 0?ve.createHTML(e):e}var rt=(s,e)=>{let t=s.length-1,r=[],o,i=e===2?"<svg>":e===3?"<math>":"",n=M;for(let l=0;l<t;l++){let a=s[l],p,u,h=-1,g=0;for(;g<a.length&&(n.lastIndex=g,u=n.exec(a),u!==null);)g=n.lastIndex,n===M?u[1]==="!--"?n=$e:u[1]!==void 0?n=we:u[2]!==void 0?(Te.test(u[2])&&(o=RegExp("</"+u[2],"g")),n=S):u[3]!==void 0&&(n=S):n===S?u[0]===">"?(n=o??M,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,p=u[1],n=u[3]===void 0?S:u[3]==='"'?Se:_e):n===Se||n===_e?n=S:n===$e||n===we?n=M:(n=S,o=void 0);let b=n===S&&s[l+1].startsWith("/>")?" ":"";i+=n===M?a+et:h>=0?(r.push(p),a.slice(0,h)+ke+a.slice(h)+$+b):a+$+(h===-2?l:b)}return[Ce(s,i+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},D=class s{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let i=0,n=0,l=e.length-1,a=this.parts,[p,u]=rt(e,t);if(this.el=s.createElement(p,r),A.currentNode=this.el.content,t===2||t===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=A.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(ke)){let g=u[n++],b=o.getAttribute(h).split($),j=/([.?@])?(.*)/.exec(g);a.push({type:1,index:i,name:j[2],strings:b,ctor:j[1]==="."?se:j[1]==="?"?ie:j[1]==="@"?ne:R}),o.removeAttribute(h)}else h.startsWith($)&&(a.push({type:6,index:i}),o.removeAttribute(h));if(Te.test(o.tagName)){let h=o.textContent.split($),g=h.length-1;if(g>0){o.textContent=W?W.emptyScript:"";for(let b=0;b<g;b++)o.append(h[b],N()),A.nextNode(),a.push({type:2,index:++i});o.append(h[g],N())}}}else if(o.nodeType===8)if(o.data===Ee)a.push({type:2,index:i});else{let h=-1;for(;(h=o.data.indexOf($,h+1))!==-1;)a.push({type:7,index:i}),h+=$.length-1}i++}}static createElement(e,t){let r=k.createElement("template");return r.innerHTML=e,r}};function C(s,e,t=s,r){if(e===E)return e;let o=r!==void 0?t._$Co?.[r]:t._$Cl,i=H(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(s),o._$AT(s,t,r)),r!==void 0?(t._$Co??=[])[r]=o:t._$Cl=o),o!==void 0&&(e=C(s,o._$AS(s,e.values),o,r)),e}var oe=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??k).importNode(t,!0);A.currentNode=o;let i=A.nextNode(),n=0,l=0,a=r[0];for(;a!==void 0;){if(n===a.index){let p;a.type===2?p=new I(i,i.nextSibling,this,e):a.type===1?p=new a.ctor(i,a.name,a.strings,this,e):a.type===6&&(p=new ae(i,this,e)),this._$AV.push(p),a=r[++l]}n!==a?.index&&(i=A.nextNode(),n++)}return A.currentNode=k,o}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},I=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=C(this,e,t),H(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==E&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):tt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==d&&H(this._$AH)?this._$AA.nextSibling.data=e:this.T(k.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=D.createElement(Ce(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{let i=new oe(o,this),n=i.u(this.options);i.p(t),this.T(n),this._$AH=i}}_$AC(e){let t=Ae.get(e.strings);return t===void 0&&Ae.set(e.strings,t=new D(e)),t}k(e){de(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,o=0;for(let i of e)o===t.length?t.push(r=new s(this.O(N()),this.O(N()),this,this.options)):r=t[o],r._$AI(i),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=be(e).nextSibling;be(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=t,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=d}_$AI(e,t=this,r,o){let i=this.strings,n=!1;if(i===void 0)e=C(this,e,t,0),n=!H(e)||e!==this._$AH&&e!==E,n&&(this._$AH=e);else{let l=e,a,p;for(e=i[0],a=0;a<i.length-1;a++)p=C(this,l[r+a],t,a),p===E&&(p=this._$AH[a]),n||=!H(p)||p!==this._$AH[a],p===d?e=d:e!==d&&(e+=(p??"")+i[a+1]),this._$AH[a]=p}n&&!o&&this.j(e)}j(e){e===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},se=class extends R{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===d?void 0:e}},ie=class extends R{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==d)}},ne=class extends R{constructor(e,t,r,o,i){super(e,t,r,o,i),this.type=5}_$AI(e,t=this){if((e=C(this,e,t,0)??d)===E)return;let r=this._$AH,o=e===d&&r!==d||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==d&&(r===d||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ae=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){C(this,e)}};var ot=le.litHtmlPolyfillSupport;ot?.(D,I),(le.litHtmlVersions??=[]).push("3.3.3");var Re=(s,e,t)=>{let r=t?.renderBefore??e,o=r._$litPart$;if(o===void 0){let i=t?.renderBefore??null;r._$litPart$=o=new I(e.insertBefore(N(),i),i,void 0,t??{})}return o._$AI(s),o};var he=globalThis,w=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Re(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}};w._$litElement$=!0,w.finalized=!0,he.litElementHydrateSupport?.({LitElement:w});var st=he.litElementPolyfillSupport;st?.({LitElement:w});(he.litElementVersions??=[]).push("4.2.2");var Ue=s=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(s,e)}):customElements.define(s,e)};var it={attribute:!0,type:String,converter:P,reflect:!1,hasChanged:V},nt=(s=it,e,t)=>{let{kind:r,metadata:o}=t,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(t.name,s),r==="accessor"){let{name:n}=t;return{set(l){let a=e.get.call(this);e.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}=t;return function(l){let a=this[n];e.call(this,l),this.requestUpdate(n,a,s,!0,l)}}throw Error("Unsupported decorator location: "+r)};function f(s){return(e,t)=>typeof t=="object"?nt(s,e,t):((r,o,i)=>{let n=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),n?Object.getOwnPropertyDescriptor(o,i):void 0})(s,e,t)}function _(s){return f({...s,state:!0,attribute:!1})}var L=s=>s??d;var J=x`:host{font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}.roxy-surface{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a)}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var X="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function Oe(s){return!!s&&!s.startsWith("pk_")}function Pe(s,e={}){e.warn&&console.warn(X),s.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:X},bubbles:!0,composed:!0}))}var at="https://roxyapi.com/api/v2",Z=class{constructor(e){this.baseUrl=at;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e),signal:t.signal}):await this.callApi(e,t.signal);if(!r.ok)throw new Error(await this.readError(r));let o=await r.json();if(t.signal.aborted)return;this.host.data=o}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=!1)}}callApi(e,t){let r=new URL(`${this.baseUrl}${e.path}`);for(let[i,n]of Object.entries(e.query??{}))n!=null&&r.searchParams.set(i,String(n));let o={Accept:"application/json"};return this.publishableKey&&(o["X-API-Key"]=this.publishableKey),e.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:o,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}secretKeyRefused(){return Oe(this.publishableKey)?(this.host.error=X,Pe(this.host),!0):!1}async readError(e){try{let t=await e.json();if(t?.error)return t.error}catch{}return`Request failed (${e.status})`}};function Me(s,e,t,r=[]){let o={...t},i=`/${s.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,u)=>{let h=o[u];return delete o[u],encodeURIComponent(String(h??""))}),n=new Set(r),l={},a={};for(let[p,u]of Object.entries(o))u===void 0||u===""||(e==="GET"||n.has(p)?l[p]=u:a[p]=u);return{path:i,method:e,query:l,body:e==="POST"?a:void 0}}var lt="roxy-data";function dt(s){return s.nodeName==="SCRIPT"&&s.getAttribute("type")==="application/json"}var Q=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if(dt(e)&&e.classList.contains(lt))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var y=class extends w{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(Me(this.endpoint,this.method,r.values,r.queryKeys??[]))};new Q(this),this.fetcher=new Z(this)}static{this.styles=[J]}willUpdate(t){t.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),t.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),t.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl)}render(){return this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?c`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderResult(t){let r=this.sticky?c`${this.renderForm()}${this.renderData(t)}`:c`<div class="roxy-edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">Edit query</button></div>${this.renderData(t)}`;return this.showAttribution()?c`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">Spiritual data by RoxyAPI</a></div>`}renderNoData(){return this.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return c`<roxy-endpoint-form data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${L(this.specUrl)}" publishable-key="${L(this.publishableKey)}" submit-label="${L(this.submitLabel)}" lang="${L(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}effectiveLang(){return this.lang||void 0}rememberKey(){return`roxy-ui:form:${this.endpoint}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return c`<div class="roxy-empty" role="status">No data</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="Loading"></div>`}renderError(t){let r=c`<div class="roxy-error" role="alert">${t}</div>`;return this.endpoint?c`${r}${this.renderForm()}`:r}};m([f({attribute:!1})],y.prototype,"data",2),m([f({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),m([f({type:String})],y.prototype,"method",2),m([f({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),m([f({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),m([f({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),m([f({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),m([f({type:Boolean})],y.prototype,"remember",2),m([f({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),m([f({type:String})],y.prototype,"attribution",2),m([_()],y.prototype,"loading",2),m([_()],y.prototype,"error",2),m([_()],y.prototype,"selfFetched",2),m([_()],y.prototype,"editing",2),m([_()],y.prototype,"sticky",2);function Ne(){return c`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var He=x`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var De=x`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}`;function Ie(s,e,t="Reading"){let r=s.filter(o=>!!o.body);return r.length===0?d:c`<section class="block"><h3>${t}</h3>${r.map((o,i)=>c`<details class="interp-card" name="${e}" ?open="${i===0}"><summary><span class="interp-lead">${o.label}</span> ${Ne()} ${o.aside?c`<span class="interp-aside"><small>${o.aside}</small></span>`:d}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??d}</div></details>`)}</section>`}var Le=x`.roxy-tablist{border-bottom:2px solid var(--roxy-border,#e4e4e7);scrollbar-width:thin;gap:2px;min-width:0;display:flex;overflow-x:auto}.roxy-tab{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);cursor:pointer;color:var(--roxy-muted,#71717a);transition:color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);background:0 0;border:none;border-bottom:2px solid #0000;flex-shrink:0;margin-bottom:-2px;font-family:inherit}.roxy-tab[aria-selected=true]{color:var(--roxy-accent-ink,#b45309);border-bottom-color:var(--roxy-accent,#f59e0b);font-weight:var(--roxy-weight-bold,600)}.roxy-tab:hover:not([aria-selected=true]){color:var(--roxy-fg,#0a0a0a)}.roxy-tab:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:-2px;border-radius:4px}`;function je(s){let{items:e,active:t,onSelect:r,label:o,idPrefix:i,controls:n=!1}=s;return c`<div class="roxy-tablist" role="tablist" aria-label="${o}" @keydown="${a=>{if(a.key!=="ArrowRight"&&a.key!=="ArrowLeft")return;a.preventDefault();let p=e.findIndex(b=>b.id===t);if(p===-1)return;let u=a.key==="ArrowRight"?1:-1,h=e[(p+u+e.length)%e.length];if(!h)return;r(h.id);let g=a.currentTarget.getRootNode();requestAnimationFrame(()=>{g.querySelector(`#${i}-tab-${h.id}`)?.focus()})}}">${e.map(a=>c`<button type="button" class="roxy-tab" role="tab" id="${i}-tab-${a.id}" aria-selected="${t===a.id?"true":"false"}" aria-controls="${n&&t===a.id?`${i}-panel-${a.id}`:d}" tabindex="${t===a.id?"0":"-1"}" @click="${()=>r(a.id)}">${a.label}</button>`)}</div>`}var ct=[["love","Love"],["career","Career"],["finances","Finances"],["health","Health"],["spirituality","Spirituality"]],T=class extends y{constructor(){super(...arguments);this.orientation="upright"}renderEmpty(){return c`<div class="roxy-empty" role="status">No tarot data</div>`}renderData(t){return"card"in t?this.renderDailyCard(t):this.renderFullCard(t)}renderDailyCard(t){let r=t.card,o=!!r.reversed,i=r.keywords??[],n=[r.arcana?`${r.arcana} arcana`:"",r.suit??""].filter(Boolean).join(" \xB7 ");return c`<article class="card" aria-label="${r.name??"Tarot card"}">${this.renderImage(r.imageUrl,r.name,o)}<div><div class="meta">${n?`${n} \xB7 `:""}<span class="drawn">${o?"drawn reversed":"drawn upright"}</span></div><h2 class="title">${r.name??"Tarot card"}</h2>${t.dailyMessage?c`<p class="message">${t.dailyMessage}</p>`:d} ${r.meaning?c`<p class="reading">${r.meaning}</p>`:d} ${i.length>0?c`<div class="chips">${i.map(l=>c`<span>${l}</span>`)}</div>`:d} ${this.renderGuidance(r,"tarot-daily-guidance")}</div></article>`}renderFullCard(t){let r=this.orientation==="reversed",o=r?t.reversed:t.upright,i=(r?t.keywords?.reversed:t.keywords?.upright)??o?.keywords??[];return c`<article class="card" aria-label="${t.name??"Tarot card"}">${this.renderImage(t.imageUrl,t.name,r)}<div><div class="meta">${[t.arcana?`${t.arcana} arcana`:"",t.suit??"",t.number!==void 0&&t.number!==null?`no. ${t.number}`:""].filter(Boolean).join(" \xB7 ")}</div><h2 class="title">${t.name??"Tarot card"}</h2>${je({items:[{id:"upright",label:"Upright"},{id:"reversed",label:"Reversed"}],active:this.orientation,onSelect:n=>{this.orientation=n},label:"Card orientation",idPrefix:"tarot"})} ${o?.description?c`<p class="reading">${o.description}</p>`:d} ${i.length>0?c`<div class="chips">${i.map(n=>c`<span>${n}</span>`)}</div>`:d} ${this.renderGuidance(o,`tarot-${this.orientation}-guidance`)}</div></article>`}renderImage(t,r,o){let i=`image ${o?"reversed":""}`;return t?c`<img class="${i}" src="${t}" alt="${r??"Tarot card"}">`:c`<div class="${i}" style="aspect-ratio:0.6;display:flex;align-items:center;justify-content:center;color:var(--roxy-muted)">${r??"?"}</div>`}renderGuidance(t,r){if(!t)return d;let o=ct.map(([i,n])=>({label:n,body:t[i]??""}));return Ie(o,r,"Guidance")}};T.styles=[J,He,De,Le,x`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-lg,1.5rem);grid-template-columns:minmax(0,9rem) 1fr;align-items:start;display:grid}@container (width<=480px){.card{grid-template-columns:1fr}}.image{border-radius:var(--roxy-radius-md,8px);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);width:100%;height:auto;transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.image.reversed{transform:rotate(180deg)}.title{font-size:var(--roxy-text-xl,1.5rem);font-weight:var(--roxy-weight-bold,600);letter-spacing:var(--roxy-tracking-tight);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);text-transform:uppercase;letter-spacing:.06em;margin-bottom:var(--roxy-space-sm,.5rem)}.drawn{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}.message{color:var(--roxy-fg,#0a0a0a);margin:var(--roxy-space-sm,.5rem) 0 var(--roxy-space-md,1rem)}.reading{margin:0 0 var(--roxy-space-md,1rem);white-space:pre-line}.roxy-tablist{margin:var(--roxy-space-sm,.5rem) 0}.chips{gap:var(--roxy-space-xs,.25rem);margin-top:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}`],m([_()],T.prototype,"orientation",2),T=m([Ue("roxy-tarot-card")],T);F();return Ge(ht);})();
264
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),_e=/'/g,Se=/"/g,Te=/^(?:script|style|textarea|title)$/i,ce=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),c=ce(1),vt=ce(2),$t=ce(3),E=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ae=new WeakMap,A=k.createTreeWalker(k,129);function Ce(s,e){if(!de(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ve!==void 0?ve.createHTML(e):e}var rt=(s,e)=>{let t=s.length-1,r=[],o,i=e===2?"<svg>":e===3?"<math>":"",n=M;for(let l=0;l<t;l++){let a=s[l],p,u,h=-1,g=0;for(;g<a.length&&(n.lastIndex=g,u=n.exec(a),u!==null);)g=n.lastIndex,n===M?u[1]==="!--"?n=$e:u[1]!==void 0?n=we:u[2]!==void 0?(Te.test(u[2])&&(o=RegExp("</"+u[2],"g")),n=S):u[3]!==void 0&&(n=S):n===S?u[0]===">"?(n=o??M,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,p=u[1],n=u[3]===void 0?S:u[3]==='"'?Se:_e):n===Se||n===_e?n=S:n===$e||n===we?n=M:(n=S,o=void 0);let b=n===S&&s[l+1].startsWith("/>")?" ":"";i+=n===M?a+et:h>=0?(r.push(p),a.slice(0,h)+ke+a.slice(h)+$+b):a+$+(h===-2?l:b)}return[Ce(s,i+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},D=class s{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let i=0,n=0,l=e.length-1,a=this.parts,[p,u]=rt(e,t);if(this.el=s.createElement(p,r),A.currentNode=this.el.content,t===2||t===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=A.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(ke)){let g=u[n++],b=o.getAttribute(h).split($),j=/([.?@])?(.*)/.exec(g);a.push({type:1,index:i,name:j[2],strings:b,ctor:j[1]==="."?se:j[1]==="?"?ie:j[1]==="@"?ne:R}),o.removeAttribute(h)}else h.startsWith($)&&(a.push({type:6,index:i}),o.removeAttribute(h));if(Te.test(o.tagName)){let h=o.textContent.split($),g=h.length-1;if(g>0){o.textContent=W?W.emptyScript:"";for(let b=0;b<g;b++)o.append(h[b],N()),A.nextNode(),a.push({type:2,index:++i});o.append(h[g],N())}}}else if(o.nodeType===8)if(o.data===Ee)a.push({type:2,index:i});else{let h=-1;for(;(h=o.data.indexOf($,h+1))!==-1;)a.push({type:7,index:i}),h+=$.length-1}i++}}static createElement(e,t){let r=k.createElement("template");return r.innerHTML=e,r}};function C(s,e,t=s,r){if(e===E)return e;let o=r!==void 0?t._$Co?.[r]:t._$Cl,i=H(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(s),o._$AT(s,t,r)),r!==void 0?(t._$Co??=[])[r]=o:t._$Cl=o),o!==void 0&&(e=C(s,o._$AS(s,e.values),o,r)),e}var oe=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??k).importNode(t,!0);A.currentNode=o;let i=A.nextNode(),n=0,l=0,a=r[0];for(;a!==void 0;){if(n===a.index){let p;a.type===2?p=new I(i,i.nextSibling,this,e):a.type===1?p=new a.ctor(i,a.name,a.strings,this,e):a.type===6&&(p=new ae(i,this,e)),this._$AV.push(p),a=r[++l]}n!==a?.index&&(i=A.nextNode(),n++)}return A.currentNode=k,o}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},I=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=C(this,e,t),H(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==E&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):tt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==d&&H(this._$AH)?this._$AA.nextSibling.data=e:this.T(k.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=D.createElement(Ce(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{let i=new oe(o,this),n=i.u(this.options);i.p(t),this.T(n),this._$AH=i}}_$AC(e){let t=Ae.get(e.strings);return t===void 0&&Ae.set(e.strings,t=new D(e)),t}k(e){de(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,o=0;for(let i of e)o===t.length?t.push(r=new s(this.O(N()),this.O(N()),this,this.options)):r=t[o],r._$AI(i),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=be(e).nextSibling;be(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=t,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=d}_$AI(e,t=this,r,o){let i=this.strings,n=!1;if(i===void 0)e=C(this,e,t,0),n=!H(e)||e!==this._$AH&&e!==E,n&&(this._$AH=e);else{let l=e,a,p;for(e=i[0],a=0;a<i.length-1;a++)p=C(this,l[r+a],t,a),p===E&&(p=this._$AH[a]),n||=!H(p)||p!==this._$AH[a],p===d?e=d:e!==d&&(e+=(p??"")+i[a+1]),this._$AH[a]=p}n&&!o&&this.j(e)}j(e){e===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},se=class extends R{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===d?void 0:e}},ie=class extends R{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==d)}},ne=class extends R{constructor(e,t,r,o,i){super(e,t,r,o,i),this.type=5}_$AI(e,t=this){if((e=C(this,e,t,0)??d)===E)return;let r=this._$AH,o=e===d&&r!==d||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==d&&(r===d||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ae=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){C(this,e)}};var ot=le.litHtmlPolyfillSupport;ot?.(D,I),(le.litHtmlVersions??=[]).push("3.3.3");var Re=(s,e,t)=>{let r=t?.renderBefore??e,o=r._$litPart$;if(o===void 0){let i=t?.renderBefore??null;r._$litPart$=o=new I(e.insertBefore(N(),i),i,void 0,t??{})}return o._$AI(s),o};var he=globalThis,w=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Re(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}};w._$litElement$=!0,w.finalized=!0,he.litElementHydrateSupport?.({LitElement:w});var st=he.litElementPolyfillSupport;st?.({LitElement:w});(he.litElementVersions??=[]).push("4.2.2");var Ue=s=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(s,e)}):customElements.define(s,e)};var it={attribute:!0,type:String,converter:P,reflect:!1,hasChanged:V},nt=(s=it,e,t)=>{let{kind:r,metadata:o}=t,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(t.name,s),r==="accessor"){let{name:n}=t;return{set(l){let a=e.get.call(this);e.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}=t;return function(l){let a=this[n];e.call(this,l),this.requestUpdate(n,a,s,!0,l)}}throw Error("Unsupported decorator location: "+r)};function f(s){return(e,t)=>typeof t=="object"?nt(s,e,t):((r,o,i)=>{let n=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),n?Object.getOwnPropertyDescriptor(o,i):void 0})(s,e,t)}function _(s){return f({...s,state:!0,attribute:!1})}var L=s=>s??d;var J=x`:host{font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}.roxy-surface{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a)}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var X="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function Oe(s){return!!s&&!s.startsWith("pk_")}function Pe(s,e={}){e.warn&&console.warn(X),s.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:X},bubbles:!0,composed:!0}))}var at="https://roxyapi.com/api/v2",Z=class{constructor(e){this.baseUrl=at;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e),signal:t.signal}):await this.callApi(e,t.signal);if(!r.ok)throw new Error(await this.readError(r));let o=await r.json();if(t.signal.aborted)return;this.host.data=o}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=!1)}}callApi(e,t){let r=new URL(`${this.baseUrl}${e.path}`);for(let[i,n]of Object.entries(e.query??{}))n!=null&&r.searchParams.set(i,String(n));let o={Accept:"application/json"};return this.publishableKey&&(o["X-API-Key"]=this.publishableKey),e.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:o,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}secretKeyRefused(){return Oe(this.publishableKey)?(this.host.error=X,Pe(this.host),!0):!1}async readError(e){try{let t=await e.json();if(t?.error)return t.error}catch{}return`Request failed (${e.status})`}};function Me(s,e,t,r=[]){let o={...t},i=`/${s.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,u)=>{let h=o[u];return delete o[u],encodeURIComponent(String(h??""))}),n=new Set(r),l={},a={};for(let[p,u]of Object.entries(o))u===void 0||u===""||(e==="GET"||n.has(p)?l[p]=u:a[p]=u);return{path:i,method:e,query:l,body:e==="POST"?a:void 0}}var lt="roxy-data";function dt(s){return s.nodeName==="SCRIPT"&&s.getAttribute("type")==="application/json"}var Q=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if(dt(e)&&e.classList.contains(lt))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var y=class extends w{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(Me(this.endpoint,this.method,r.values,r.queryKeys??[]))};new Q(this),this.fetcher=new Z(this)}static{this.styles=[J]}willUpdate(t){t.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),t.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),t.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl)}render(){return this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?c`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderResult(t){let r=this.sticky?c`${this.renderForm()}${this.renderData(t)}`:c`<div class="roxy-edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">Edit query</button></div>${this.renderData(t)}`;return this.showAttribution()?c`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">Spiritual data by RoxyAPI</a></div>`}renderNoData(){return this.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return c`<roxy-endpoint-form data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${L(this.specUrl)}" publishable-key="${L(this.publishableKey)}" submit-label="${L(this.submitLabel)}" lang="${L(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}effectiveLang(){return this.lang||void 0}rememberKey(){return`roxy-ui:form:${this.endpoint}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return c`<div class="roxy-empty" role="status">No data</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="Loading"></div>`}renderError(t){let r=c`<div class="roxy-error" role="alert">${t}</div>`;return this.endpoint?c`${r}${this.renderForm()}`:r}};m([f({attribute:!1})],y.prototype,"data",2),m([f({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),m([f({type:String})],y.prototype,"method",2),m([f({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),m([f({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),m([f({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),m([f({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),m([f({type:Boolean})],y.prototype,"remember",2),m([f({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),m([f({type:String})],y.prototype,"attribution",2),m([_()],y.prototype,"loading",2),m([_()],y.prototype,"error",2),m([_()],y.prototype,"selfFetched",2),m([_()],y.prototype,"editing",2),m([_()],y.prototype,"sticky",2);function Ne(){return c`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var He=x`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var De=x`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}`;function Ie(s,e,t="Reading"){let r=s.filter(o=>!!o.body);return r.length===0?d:c`<section class="block"><h3>${t}</h3>${r.map((o,i)=>c`<details class="interp-card" name="${e}" ?open="${i===0}"><summary><span class="interp-lead">${o.label}</span> ${Ne()} ${o.aside?c`<span class="interp-aside"><small>${o.aside}</small></span>`:d}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??d}</div></details>`)}</section>`}var Le=x`.roxy-tablist{border-bottom:2px solid var(--roxy-border,#e4e4e7);scrollbar-width:thin;gap:2px;min-width:0;display:flex;overflow-x:auto}.roxy-tab{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);cursor:pointer;color:var(--roxy-muted,#71717a);transition:color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);background:0 0;border:none;border-bottom:2px solid #0000;flex-shrink:0;margin-bottom:-2px;font-family:inherit}.roxy-tab[aria-selected=true]{color:var(--roxy-accent-ink,#b45309);border-bottom-color:var(--roxy-accent,#f59e0b);font-weight:var(--roxy-weight-bold,600)}.roxy-tab:hover:not([aria-selected=true]){color:var(--roxy-fg,#0a0a0a)}.roxy-tab:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:-2px;border-radius:4px}`;function je(s){let{items:e,active:t,onSelect:r,label:o,idPrefix:i,controls:n=!1}=s;return c`<div class="roxy-tablist" role="tablist" aria-label="${o}" @keydown="${a=>{if(a.key!=="ArrowRight"&&a.key!=="ArrowLeft")return;a.preventDefault();let p=e.findIndex(b=>b.id===t);if(p===-1)return;let u=a.key==="ArrowRight"?1:-1,h=e[(p+u+e.length)%e.length];if(!h)return;r(h.id);let g=a.currentTarget.getRootNode();requestAnimationFrame(()=>{g.querySelector(`#${i}-tab-${h.id}`)?.focus()})}}">${e.map(a=>c`<button type="button" class="roxy-tab" role="tab" id="${i}-tab-${a.id}" aria-selected="${t===a.id?"true":"false"}" aria-controls="${n&&t===a.id?`${i}-panel-${a.id}`:d}" tabindex="${t===a.id?"0":"-1"}" @click="${()=>r(a.id)}">${a.label}</button>`)}</div>`}var ct=[["love","Love"],["career","Career"],["finances","Finances"],["health","Health"],["spirituality","Spirituality"]],T=class extends y{constructor(){super(...arguments);this.orientation="upright"}renderEmpty(){return c`<div class="roxy-empty" role="status">No tarot data</div>`}renderData(t){return"card"in t?this.renderDailyCard(t):this.renderFullCard(t)}renderDailyCard(t){let r=t.card,o=!!r.reversed,i=r.keywords??[],n=[r.arcana?`${r.arcana} arcana`:"",r.suit??""].filter(Boolean).join(" \xB7 ");return c`<article class="card" aria-label="${r.name??"Tarot card"}">${this.renderImage(r.imageUrl,r.name,o)}<div><div class="meta">${n?`${n} \xB7 `:""}<span class="drawn">${o?"drawn reversed":"drawn upright"}</span></div><h2 class="title">${r.name??"Tarot card"}</h2>${t.dailyMessage?c`<p class="message">${t.dailyMessage}</p>`:d} ${r.meaning?c`<p class="reading">${r.meaning}</p>`:d} ${i.length>0?c`<div class="chips">${i.map(l=>c`<span>${l}</span>`)}</div>`:d} ${this.renderGuidance(r,"tarot-daily-guidance")}</div></article>`}renderFullCard(t){let r=this.orientation==="reversed",o=r?t.reversed:t.upright,i=(r?t.keywords?.reversed:t.keywords?.upright)??o?.keywords??[];return c`<article class="card" aria-label="${t.name??"Tarot card"}">${this.renderImage(t.imageUrl,t.name,r)}<div><div class="meta">${[t.arcana?`${t.arcana} arcana`:"",t.suit??"",t.number!==void 0&&t.number!==null?`no. ${t.number}`:""].filter(Boolean).join(" \xB7 ")}</div><h2 class="title">${t.name??"Tarot card"}</h2>${je({items:[{id:"upright",label:"Upright"},{id:"reversed",label:"Reversed"}],active:this.orientation,onSelect:n=>{this.orientation=n},label:"Card orientation",idPrefix:"tarot",controls:!0})}<div id="tarot-panel-${this.orientation}" role="tabpanel" tabindex="0" aria-labelledby="tarot-tab-${this.orientation}">${o?.description?c`<p class="reading">${o.description}</p>`:d} ${i.length>0?c`<div class="chips">${i.map(n=>c`<span>${n}</span>`)}</div>`:d} ${this.renderGuidance(o,`tarot-${this.orientation}-guidance`)}</div></div></article>`}renderImage(t,r,o){let i=`image ${o?"reversed":""}`;return t?c`<img class="${i}" src="${t}" alt="${r??"Tarot card"}">`:c`<div class="${i}" style="aspect-ratio:0.6;display:flex;align-items:center;justify-content:center;color:var(--roxy-muted)">${r??"?"}</div>`}renderGuidance(t,r){if(!t)return d;let o=ct.map(([i,n])=>({label:n,body:t[i]??""}));return Ie(o,r,"Guidance")}};T.styles=[J,He,De,Le,x`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-lg,1.5rem);grid-template-columns:minmax(0,9rem) 1fr;align-items:start;display:grid}@container (width<=480px){.card{grid-template-columns:1fr}}.image{border-radius:var(--roxy-radius-md,8px);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);width:100%;height:auto;transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.image.reversed{transform:rotate(180deg)}.title{font-size:var(--roxy-text-xl,1.5rem);font-weight:var(--roxy-weight-bold,600);letter-spacing:var(--roxy-tracking-tight);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);text-transform:uppercase;letter-spacing:.06em;margin-bottom:var(--roxy-space-sm,.5rem)}.drawn{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}.message{color:var(--roxy-fg,#0a0a0a);margin:var(--roxy-space-sm,.5rem) 0 var(--roxy-space-md,1rem)}.reading{margin:0 0 var(--roxy-space-md,1rem);white-space:pre-line}.roxy-tablist{margin:var(--roxy-space-sm,.5rem) 0}.chips{gap:var(--roxy-space-xs,.25rem);margin-top:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}`],m([_()],T.prototype,"orientation",2),T=m([Ue("roxy-tarot-card")],T);F();return Ge(ht);})();
265
265
  /*! Bundled license information:
266
266
 
267
267
  @lit/reactive-element/css-tag.js: