${t}
`}br(t){return"An error occurred:
"+$n(r.message+"",!0)+"";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}}const Lr=new vB;function et(e,t){return Lr.parse(e,t)}et.options=et.setOptions=function(e){return Lr.setOptions(e),et.defaults=Lr.defaults,mm(et.defaults),et};et.getDefaults=Rd;et.defaults=Dr;et.use=function(...e){return Lr.use(...e),et.defaults=Lr.defaults,mm(et.defaults),et};et.walkTokens=function(e,t){return Lr.walkTokens(e,t)};et.parseInline=Lr.parseInline;et.Parser=Fn;et.parser=Fn.parse;et.Renderer=rl;et.TextRenderer=Ad;et.Lexer=Mn;et.lexer=Mn.lex;et.Tokenizer=nl;et.Hooks=ts;et.parse=et;et.options;et.setOptions;et.use;et.walkTokens;et.parseInline;Fn.parse;Mn.lex;const yB={class:"mb-4 md:mb-8 text-2xl text-start"},kB={class:"italic"},xB=pt({__name:"QuestionPreview ",setup(e){Ts(),gd();const t=Lt(),{question:n,componentKey:r,email:s}=nn(t),a=Ve(()=>{var f;return(f=Rs.find(g=>g.id==u.value))==null?void 0:f.t}),c=Ve(()=>n.value?n.value.qid:""),u=Ve(()=>n.value?n.value.topic:"...");function d(f){if(f.origin===window.origin){if(console.log("Msg received"),!f.data){console.log("No question payload in message"),n.value=void 0;return}h(f.data).then(g=>{n.value=g})}}window.removeEventListener("message",d,!1),window.addEventListener("message",d,!1),Ao(async()=>{console.log("Loading question from LS");const f=localStorage.getItem(Eu);if(!f){console.log("No question in LS"),n.value=void 0;return}n.value=await h(f)});async function h(f){const g=JSON.parse(f);et.use({async:!0,breaks:!0});const b=await Promise.all(g.answers.map(async v=>({a:v.a?await et.parse(v.a):"",c:v.c,e:v.e?await et.parse(v.e):"",sel:v.sel})));return{qid:g.qid,topic:g.topic,question:g.question?await et.parse(g.question):"",answers:b,author:g.author,updated:g.updated,correct:g.correct,stats:g.stats,contributor:g.contributor}}return(f,g)=>(D(),Y(lt,null,[R("h1",yB,[g[0]||(g[0]=Ne("Question preview about ")),R("em",kB,Ct(a.value),1)]),be(Td,{topic:u.value,qid:c.value,next:!1,"is-preview":!0},null,8,["topic","qid"]),be(Rl)],64))}}),wB=pt({__name:"SponsorshipCTA",setup(e){return Lt(),(t,n)=>(D(),Y("div",null,n[0]||(n[0]=[rr('
As a small token of appreciation for helping us all become a little bit more competent we add
As a small token of appreciation for helping us all become a little bit more competent we add