PageSourceSearch

https://prazerdapalavra.com.br/assets/_slug-BmpcbsKO.js

js prazerdapalavra.com.br collected 2026-09-25 01:36:40 UTC 78,050 bytes, 8 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-9_f8-5WS.js","assets/jsx-runtime-B5yqYJvp.js","assets/react-dom-DjQW_1RK.js","assets/dist-Dg0519yv.js","assets/dist-Dflwk_Iy.js","assets/utils-B6KiDbIe.js","assets/createLucideIcon-BSmofTXP.js"])))=>i.map(i=>d[i]);
2import{n as e,s as t,t as n}from"./jsx-runtime-B5yqYJvp.js";import{a as r,i,n as a,t as o}from"./dist-Dg0519yv.js";import{i as s,n as c}from"./dist-Dflwk_Iy.js";import{t as l}from"./utils-B6KiDbIe.js";import{t as u}from"./createLucideIcon-BSmofTXP.js";import{t as d}from"./arrow-left-YlQFT-tb.js";import{t as f}from"./calendar-liMhROgy.js";import{t as p}from"./check-BcH2fnlI.js";import{t as ee}from"./chevron-left-nIGcPqge.js";import{t as te}from"./chevron-right-DKoprtRI.js";import{t as m}from"./clock-CBe4-cB7.js";import{t as h}from"./eye-CCx4D1Tf.js";import{t as ne}from"./file-down-B0hdgIOm.js";import{t as g}from"./heart-Ds_EaCZX.js";import{t as _}from"./loader-circle-BsIS5AAt.js";import{t as v}from"./map-pin-0WpgNX3A.js";import{t as re}from"./music-BiLDTuxN.js";import{t as y}from"./printer-C4EX8atl.js";import{t as b}from"./share-2-CbSJs7lo.js";import{i as x,r as S,t as C}from"./useArticleViews-PWUPPTJ6.js";import{t as w}from"./user-B2JA6ZxQ.js";import{t as ie}from"./volume-2-3KVX4m_x.js";import{t as ae}from"./dist-BFp383kE.js";import{$ as T,A as oe,G as se,H as E,J as D,K as ce,L as le,O as ue,R as de,X as O,Y as fe,Z as pe,_ as me,c as he,f as ge,i as _e,j as ve,k as ye,l as be,o as k,tt as xe,w as A,y as j}from"./index-9_f8-5WS.js";import{t as M}from"./dist-CD-JdUXJ.js";import{i as Se,n as Ce,r as we,t as Te}from"./Combination-BGq0LILz.js";import{t as Ee}from"./progress-C6QHhfx8.js";import{n as De,r as Oe,t as ke}from"./dist-BHP3SxAk.js";import{n as Ae,t as N}from"./SEOHead-arZKTscK.js";import{t as je}from"./useBibliaCampanhas-D96IUX4O.js";import{t as Me}from"./NewsletterSection-BmaKvivG.js";var Ne=u(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Pe=u(`facebook`,[[`path`,{d:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z`,key:`1jg4f8`}]]),Fe=u(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),Ie=u(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),Le=u(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),P=t(e(),1),F=n();function Re({currentId:e,category:t,author:n,series:r,tags:i}){let{data:a}=xe({queryKey:[`related-articles`,e],queryFn:async()=>{let i=[];if(r){let{data:t}=await A.from(`articles`).select(`id, title, slug, author, published_at, cover_image, category`).eq(`published`,!0).eq(`series`,r).neq(`id`,e).order(`published_at`,{ascending:!0}).limit(4);t&&i.push(...t)}if(i.length<4){let{data:r}=await A.from(`articles`).select(`id, title, slug, author, published_at, cover_image, category`).eq(`published`,!0).eq(`author`,n).eq(`category`,t).neq(`id`,e).order(`published_at`,{ascending:!1}).limit(4);if(r)for(let e of r)i.find(t=>t.id===e.id)||i.push(e)}if(i.length<4){let{data:n}=await A.from(`articles`).select(`id, title, slug, author, published_at, cover_image, category`).eq(`published`,!0).eq(`category`,t).neq(`id`,e).order(`published_at`,{ascending:!1}).limit(6);if(n)for(let e of n)i.find(t=>t.id===e.id)||i.push(e)}return i.slice(0,4)}});return!a||a.length===0?null:(0,F.jsxs)(`section`,{className:`mt-12 pt-10 border-t border-border`,children:[(0,F.jsx)(`h2`,{className:`font-display text-2xl font-bold text-foreground mb-6`,children:`Leia também`}),(0,F.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:a.map(e=>(0,F.jsxs)(ge,{to:`/sermao/${e.slug}`,className:`group flex gap-4 bg-card rounded-lg p-4 hover:shadow-card transition-all`,children:[e.cover_image?(0,F.jsx)(`img`,{src:e.cover_image,alt:``,className:`w-20 h-20 rounded-sm object-cover shrink-0`}):(0,F.jsx)(`div`,{className:`w-20 h-20 rounded-sm bg-gradient-hero shrink-0 flex items-center justify-center`,children:(0,F.jsx)(`span`,{className:`font-display text-2xl text-primary-foreground
2/20`,children:`✝`})}),(0,F.jsxs)(`div`,{className:`min-w-0 flex flex-col justify-center`,children:[(0,F.jsx)(`span`,{className:`text-xs font-body text-accent font-semibold mb-1`,children:e.category}),(0,F.jsx)(`h3`,{className:`font-display text-sm font-bold text-foreground group-hover:text-accent transition-colors line-clamp-2 leading-tight`,children:e.title}),(0,F.jsxs)(`div`,{className:`flex items-center gap-3 mt-1.5 text-xs font-body text-muted-foreground`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(w,{className:`w-3 h-3`}),e.author]}),e.published_at&&(0,F.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(f,{className:`w-3 h-3`}),new Date(e.published_at).toLocaleDateString(`pt-BR`,{day:`2-digit`,month:`short`,year:`numeric`})]})]})]})]},e.id))})]})}function ze(){let{data:e}=je();if(!e||e.length===0)return null;let t=e[Math.floor((Date.now()-new Date(new Date().getFullYear(),0,0).getTime())/864e5)%e.length];if(!t)return null;let n=be(t.slug);return(0,F.jsx)(`aside`,{className:`my-10 overflow-hidden rounded-xl border border-accent/30 bg-accent/5`,children:(0,F.jsxs)(`div`,{className:`flex flex-col sm:flex-row`,children:[(0,F.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,className:`sm:w-48 shrink-0 aspect-[3/2] sm:aspect-auto overflow-hidden bg-muted`,children:(0,F.jsx)(`img`,{src:he(t.imageKey),alt:t.title,loading:`lazy`,decoding:`async`,className:`h-full w-full object-cover`})}),(0,F.jsxs)(`div`,{className:`flex flex-1 flex-col gap-2 p-5`,children:[(0,F.jsx)(`span`,{className:`font-body text-xs font-semibold uppercase tracking-wide text-accent`,children:`Doe uma Bíblia`}),(0,F.jsx)(`h3`,{className:`font-display text-lg font-semibold leading-snug text-foreground`,children:t.title}),t.location&&(0,F.jsxs)(`p`,{className:`flex items-center gap-1.5 font-body text-xs text-muted-foreground`,children:[(0,F.jsx)(v,{className:`h-3.5 w-3.5`}),` `,t.location]}),(0,F.jsx)(`p`,{className:`font-body line-clamp-2 text-sm text-muted-foreground`,children:t.summary}),(0,F.jsx)(`div`,{className:`pt-2`,children:(0,F.jsx)(j,{asChild:!0,size:`sm`,className:`font-body gap-2`,children:(0,F.jsxs)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,children:[(0,F.jsx)(g,{className:`h-4 w-4`}),` Quero doar`]})})})]})]})})}var Be=Object.defineProperty,I=(e,t)=>Be(e,`name`,{value:t,configurable:!0}),Ve=[`Enter`,` `],He=[`ArrowDown`,`PageUp`,`Home`],Ue=[`ArrowUp`,`PageDown`,`End`],We=[...He,...Ue],Ge={ltr:[...Ve,`ArrowRight`],rtl:[...Ve,`ArrowLeft`]},Ke={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},qe=`Menu`,[Je,L,Ye]=pe(qe),[R,Xe]=i(qe,[Ye,ve,Oe]),Ze=ve(),Qe=Oe(),[$e,et]=R(qe),[tt,nt]=R(qe),rt=I(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Ze(t),[c,l]=P.useState(null),u=P.useRef(!1),d=D(a),f=M(i);return P.useEffect(()=>{let e=I(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=I(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),P.useEffect(()=>{if(!n)return;let e=I(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,F.jsx)(oe,{...s,children:(0,F.jsx)($e,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,F.jsx)(tt,{scope:t,onClose:P.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),it=P.forwardRef(I(function(e,t){let{__scopeMenu:n,...r}=e,i=Ze(n);return(0,F.jsx)(ue,{...i,...r,ref:t})},`MenuAnchor`)),z=`MenuPortal`,[at,ot]=R(z,{forceMount:void 0}),st=I(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=et(z,t);return(0,F.jsx)(at,{scope:t,forceMount:n,children:(0,F.jsx)(a,{present:n||o.open,children:(0,F.jsx)(se,{asChild:!0,container:i,children:r})})})}
2,`MenuPortal`),B=`MenuContent`,[ct,lt]=R(B),ut=P.forwardRef(I(function(e,t){let n=ot(B,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=et(B,e.__scopeMenu),s=nt(B,e.__scopeMenu);return(0,F.jsx)(Je.Provider,{scope:e.__scopeMenu,children:(0,F.jsx)(a,{present:r||o.open,children:(0,F.jsx)(Je.Slot,{scope:e.__scopeMenu,children:s.modal?(0,F.jsx)(dt,{...i,ref:t}):(0,F.jsx)(ft,{...i,ref:t})})})})},`MenuContent`)),dt=P.forwardRef(I(function(e,t){let n=et(B,e.__scopeMenu),i=P.useRef(null),a=s(t,i);return P.useEffect(()=>{let e=i.current;if(e)return Ce(e)},[]),(0,F.jsx)(V,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:r(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),ft=P.forwardRef(I(function(e,t){let n=et(B,e.__scopeMenu);return(0,F.jsx)(V,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),pt=c(`MenuContent.ScrollLock`),V=P.forwardRef(I(function(e,t){let{__scopeMenu:n,loop:i=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:c,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:ee,onDismiss:te,disableOutsideScroll:m,...h}=e,ne=et(B,n),g=nt(B,n),_=Ze(n),v=Qe(n),re=L(n),[y,b]=P.useState(null),x=P.useRef(null),S=s(t,x,ne.onContentChange),C=P.useRef(0),w=P.useRef(``),ie=P.useRef(0),ae=P.useRef(null),T=P.useRef(`right`),oe=P.useRef(0),se=m?Te:P.Fragment,E=m?{as:pt,allowPinchZoom:!0}:void 0,D=I(e=>{let t=w.current+e,n=re().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=zt(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;I((function e(t){w.current=t,window.clearTimeout(C.current),t!==``&&(C.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);P.useEffect(()=>()=>window.clearTimeout(C.current),[]),Se();let le=P.useCallback(e=>T.current===ae.current?.side&&Vt(e,ae.current?.area),[]);return(0,F.jsx)(ct,{scope:n,searchRef:w,onItemEnter:P.useCallback(e=>{le(e)&&e.preventDefault()},[le]),onItemLeave:P.useCallback(e=>{le(e)||(x.current?.focus(),b(null))},[le]),onTriggerLeave:P.useCallback(e=>{le(e)&&e.preventDefault()},[le]),pointerGraceTimerRef:ie,onPointerGraceIntentChange:P.useCallback(e=>{ae.current=e},[]),children:(0,F.jsx)(se,{...E,children:(0,F.jsx)(we,{asChild:!0,trapped:a,onMountAutoFocus:r(o,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,F.jsx)(ce,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:ee,onDismiss:te,children:(0,F.jsx)(De,{asChild:!0,...v,dir:g.dir,orientation:`vertical`,loop:i,currentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:r(u,e=>{g.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,F.jsx)(ye,{role:`menu`,"aria-orientation":`vertical`,"data-state":Pt(ne.open),"data-radix-menu-content":``,dir:g.dir,..._,...h,ref:S,style:{outline:`none`,...h.style},onKeyDown:r(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&D(e.key));let i=x.current;if(e.target!==i||!We.includes(e.key))return;e.preventDefault();let a=re().filter(e=>!e.disabled).map(e=>e.ref.current);Ue.includes(e.key)&&a.reverse(),Lt(a)}),onBlur:r(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),w.current=``)}),onPointerMove:r(e.onPointerMove,Ht(e=>{let t=e.target,n=oe.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>oe.current?`right`:`left`;T.current=t,oe.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),mt=P.forwardRef(I(function(e,t){let{__scopeMenu:n,...r}=e;return(0,F.jsx)(fe.div,{...r,ref:t})},`MenuLabel`)),ht=`MenuItem`,gt=`menu.itemSelect`,_t=P.forwardRef(I(function(e,t){let{disabled:n=!1,onSelect:i,...a}=e,o=P.useRef(null),c=nt(ht,e.__scopeMenu),l=lt(ht,e.__scopeMenu),u=s(t,o),d=P.useRef(!1),f=I(()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(gt,{bubbles:!0,cancelable:!0});e.addEventListener(gt,e=>i?.(e),{once:!0}),O(e,t),t.defaultPrevented?d.current=!1:c.onClose()}},`handleSelect`);return(0,F.jsx)(vt,{...a,ref:u,disabled:n,onClick:r(e.onClick,f),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:r(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:r(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(l.searchRef.current===``||e.key!==` `)&&Ve.includes(e.ke
2y)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),vt=P.forwardRef(I(function(e,t){let{__scopeMenu:n,disabled:i=!1,textValue:a,...o}=e,c=lt(ht,n),l=Qe(n),u=P.useRef(null),d=s(t,u),[f,p]=P.useState(!1),[ee,te]=P.useState(``);return P.useEffect(()=>{let e=u.current;e&&te((e.textContent??``).trim())},[o.children]),(0,F.jsx)(Je.ItemSlot,{scope:n,disabled:i,textValue:a??ee,children:(0,F.jsx)(ke,{asChild:!0,...l,focusable:!i,children:(0,F.jsx)(fe.div,{role:`menuitem`,"data-highlighted":f?``:void 0,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,...o,ref:d,onPointerMove:r(e.onPointerMove,Ht(e=>{i?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:r(e.onPointerLeave,Ht(e=>c.onItemLeave(e))),onFocus:r(e.onFocus,()=>p(!0)),onBlur:r(e.onBlur,()=>p(!1))})})})},`MenuItemImpl`)),yt=P.forwardRef(I(function(e,t){let{checked:n=!1,onCheckedChange:i,...a}=e;return(0,F.jsx)(Tt,{scope:e.__scopeMenu,checked:n,children:(0,F.jsx)(_t,{role:`menuitemcheckbox`,"aria-checked":Ft(n)?`mixed`:n,...a,ref:t,"data-state":It(n),onSelect:r(a.onSelect,()=>i?.(Ft(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[bt,xt]=R(`MenuRadioGroup`,{value:void 0,onValueChange:I(()=>{},`onValueChange`)}),St=`MenuRadioItem`,Ct=P.forwardRef(I(function(e,t){let{value:n,...i}=e,a=xt(St,e.__scopeMenu),o=n===a.value;return(0,F.jsx)(Tt,{scope:e.__scopeMenu,checked:o,children:(0,F.jsx)(_t,{role:`menuitemradio`,"aria-checked":o,...i,ref:t,"data-state":It(o),onSelect:r(i.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),wt=`MenuItemIndicator`,[Tt,Et]=R(wt,{checked:!1}),Dt=P.forwardRef(I(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,o=Et(wt,n);return(0,F.jsx)(a,{present:r||Ft(o.checked)||o.checked===!0,children:(0,F.jsx)(fe.span,{...i,ref:t,"data-state":It(o.checked)})})},`MenuItemIndicator`)),H=P.forwardRef(I(function(e,t){let{__scopeMenu:n,...r}=e;return(0,F.jsx)(fe.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),[Ot,kt]=R(`MenuSub`),At=`MenuSubTrigger`,jt=P.forwardRef(I(function(e,t){let n=et(At,e.__scopeMenu),i=nt(At,e.__scopeMenu),a=kt(At,e.__scopeMenu),o=lt(At,e.__scopeMenu),c=P.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=o,d={__scopeMenu:e.__scopeMenu},f=P.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);P.useEffect(()=>f,[f]),P.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]);let p=s(t,a.onTriggerChange);return(0,F.jsx)(it,{asChild:!0,...d,children:(0,F.jsx)(vt,{id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?a.contentId:void 0,"data-state":Pt(n.open),...e,ref:p,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:r(e.onPointerMove,Ht(t=>{o.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(o.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:r(e.onPointerLeave,Ht(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,a=i?-5:5,s=t[i?`left`:`right`],c=t[i?`right`:`left`];o.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:r(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(o.searchRef.current===``||t.key!==` `)&&Ge[i.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),Mt=`MenuSubContent`,Nt=P.forwardRef(I(function(e,t){let n=ot(B,e.__scopeMenu),{forceMount:i=n.forceMount,align:o=`start`,...c}=e,l=et(B,e.__scopeMenu),u=nt(B,e.__scopeMenu),d=kt(Mt,e.__scopeMenu),f=P.useRef(null),p=s(t,f);return(0,F.jsx)(Je.Provider,{scope:e.__scopeMenu,children:(0,F.jsx)(a,{present:i||l.open,children:(0,F.jsx)(Je.Slot,{scope:e.__scopeMenu,children:(0,F.jsx)(V,{id:d.contentId,"aria-labelledby":d.triggerId,...c,ref:p,align:o,side:u.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:r(e.onFocusOutside,e=>{e.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:r(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:r(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Ke[u.dir].includes(e.ke
2y);t&&n&&(l.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function Pt(e){return e?`open`:`closed`}I(Pt,`getOpenState`);function Ft(e){return e===`indeterminate`}I(Ft,`isIndeterminate`);function It(e){return Ft(e)?`indeterminate`:e?`checked`:`unchecked`}I(It,`getCheckedState`);function Lt(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}I(Lt,`focusFirst`);function Rt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}I(Rt,`wrapArray`);function zt(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Rt(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}I(zt,`getNextMatch`);function Bt(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}I(Bt,`isPointInPolygon`);function Vt(e,t){return t?Bt({x:e.clientX,y:e.clientY},t):!1}I(Vt,`isPointerInGraceArea`);function Ht(e){return t=>t.pointerType===`mouse`?e(t):void 0}I(Ht,`whenMouse`);var Ut=rt,Wt=it,Gt=st,Kt=ut,qt=mt,Jt=_t,Yt=yt,Xt=Ct,Zt=Dt,Qt=H,$t=jt,en=Nt,tn=Object.defineProperty,U=(e,t)=>tn(e,`name`,{value:t,configurable:!0}),nn=`DropdownMenu`,[rn,an]=i(nn,[Xe]),W=Xe(),[on,sn]=rn(nn),cn=U(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=W(t),u=P.useRef(null),[d,f]=o({prop:i,defaultProp:a??!1,onChange:s,caller:nn});return(0,F.jsx)(on,{scope:t,triggerId:ae(),triggerRef:u,contentId:ae(),open:d,onOpenChange:f,onOpenToggle:P.useCallback(()=>f(e=>!e),[f]),modal:c,children:(0,F.jsx)(Ut,{...l,open:d,onOpenChange:f,dir:r,modal:c,children:n})})},`DropdownMenu`),ln=`DropdownMenuTrigger`,un=P.forwardRef(U(function(e,t){let{__scopeDropdownMenu:n,disabled:i=!1,...a}=e,o=sn(ln,n),c=W(n),l=s(t,o.triggerRef);return(0,F.jsx)(Wt,{asChild:!0,...c,children:(0,F.jsx)(fe.button,{type:`button`,id:o.triggerId,"aria-haspopup":`menu`,"aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?`open`:`closed`,"data-disabled":i?``:void 0,disabled:i,...a,ref:l,onPointerDown:r(e.onPointerDown,e=>{!i&&e.button===0&&e.ctrlKey===!1&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:r(e.onKeyDown,e=>{i||([`Enter`,` `].includes(e.key)&&o.onOpenToggle(),e.key===`ArrowDown`&&o.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),dn=U(e=>{let{__scopeDropdownMenu:t,...n}=e,r=W(t);return(0,F.jsx)(Gt,{...r,...n})},`DropdownMenuPortal`),fn=`DropdownMenuContent`,pn=P.forwardRef(U(function(e,t){let{__scopeDropdownMenu:n,...i}=e,a=sn(fn,n),o=W(n),s=P.useRef(!1);return(0,F.jsx)(Kt,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...i,ref:t,onCloseAutoFocus:r(e.onCloseAutoFocus,e=>{s.current||a.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:r(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!a.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),mn=P.forwardRef(U(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=W(n);return(0,F.jsx)(qt,{...i,...r,ref:t})},`DropdownMenuLabel`)),hn=P.forwardRef(U(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=W(n);return(0,F.jsx)(Jt,{...i,...r,ref:t})},`DropdownMenuItem`)),gn=P.forwardRef(U(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=W(n);return(0,F.jsx)(Yt,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),_n=P.forwardRef(U(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=W(n);return(0,F.jsx)(Xt,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),vn=P.forwardRef(U(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=W(n);return(0,F.jsx)(Zt,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),yn=P.forwardRef(U(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=W(n);return(0,F.jsx)(Qt,{...i,...r,ref:t})},`DropdownMenuSeparator`)),bn=P.forwardRef(U(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=W(n);return(0,F.jsx)($t,{...i,...r,ref:t})},`DropdownMenuSubTrigger`)),xn=P.forwardRef(U(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=W(n);return(0,F.jsx)(en,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuSubContent`)),Sn=cn,Cn=un,wn=dn,Tn=pn,En=mn,Dn=hn,On=gn,kn=_n,An=vn,jn=yn,Mn=bn,Nn=xn,Pn=Sn,Fn=Cn,In=P.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,F.jsxs)(Mn,{ref:i,className:l(`flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden data-[state=open]:bg-accent focus:bg-accent`,t&&`pl-8`,e),...r,children:[n,(0,F.jsx)(te,{className:`ml-auto h-4 w-4`})]}));In.displayName=Mn.displayName;var Ln=P.forwardRef(({className:e,...t},n)=>(0,F.jsx)(Nn,{ref:n,className:l(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
2de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...t}));Ln.displayName=Nn.displayName;var Rn=P.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,F.jsx)(wn,{children:(0,F.jsx)(Tn,{ref:r,sideOffset:t,className:l(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...n})}));Rn.displayName=Tn.displayName;var zn=P.forwardRef(({className:e,inset:t,...n},r)=>(0,F.jsx)(Dn,{ref:r,className:l(`relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground`,t&&`pl-8`,e),...n}));zn.displayName=Dn.displayName;var Bn=P.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,F.jsxs)(On,{ref:i,className:l(`relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground`,e),checked:n??!1,...r,children:[(0,F.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,F.jsx)(An,{children:(0,F.jsx)(p,{className:`h-4 w-4`})})}),t]}));Bn.displayName=On.displayName;var Vn=P.forwardRef(({className:e,children:t,...n},r)=>(0,F.jsxs)(kn,{ref:r,className:l(`relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground`,e),...n,children:[(0,F.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,F.jsx)(An,{children:(0,F.jsx)(Ne,{className:`h-2 w-2 fill-current`})})}),t]}));Vn.displayName=kn.displayName;var Hn=P.forwardRef(({className:e,inset:t,...n},r)=>(0,F.jsx)(En,{ref:r,className:l(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));Hn.displayName=En.displayName;var Un=P.forwardRef(({className:e,...t},n)=>(0,F.jsx)(jn,{ref:n,className:l(`-mx-1 my-1 h-px bg-muted`,e),...t}));Un.displayName=jn.displayName;var Wn=({title:e,url:t,className:n})=>{let[r,i]=(0,P.useState)(!1),a=t||window.location.href,o=encodeURIComponent(a),s=encodeURIComponent(e);return typeof navigator.share==`function`?(0,F.jsxs)(j,{variant:`outline`,size:`sm`,onClick:async()=>{try{await navigator.share({title:e,url:a})}catch{}},className:`gap-2 ${n||``}`,children:[(0,F.jsx)(b,{className:`w-4 h-4`}),` Compartilhar`]}):(0,F.jsxs)(Pn,{children:[(0,F.jsx)(Fn,{asChild:!0,children:(0,F.jsxs)(j,{variant:`outline`,size:`sm`,className:`gap-2 ${n||``}`,children:[(0,F.jsx)(b,{className:`w-4 h-4`}),` Compartilhar`]})}),(0,F.jsxs)(Rn,{align:`end`,className:`w-48`,children:[(0,F.jsxs)(zn,{onClick:()=>window.open(`https://wa.me/?text=${s}%20${o}`,`_blank`),children:[(0,F.jsx)(Ie,{className:`w-4 h-4 mr-2`}),` WhatsApp`]}),(0,F.jsxs)(zn,{onClick:()=>window.open(`https://www.facebook.com/sharer/sharer.php?u=${o}`,`_blank`),children:[(0,F.jsx)(Pe,{className:`w-4 h-4 mr-2`}),` Facebook`]}),(0,F.jsxs)(zn,{onClick:()=>window.open(`https://twitter.com/intent/tweet?text=${s}&url=${o}`,`_blank`),children:[(0,F.jsx)(b,{className:`w-4 h-4 mr-2`}),` X / Twitter`]}),(0,F.jsxs)(zn,{onClick:async()=>{await navigator.clipboard.writeText(a),i(!0),T.success(`Link copiado!`),setTimeout(()=>i(!1),2e3)},children:[r?(0,F.jsx)(p,{className:`w-4 h-4 mr-2`}):(0,F.jsx)(Fe,{className:`w-4 h-4 mr-2`}),r?`Copiado!`:`Copiar link`]})]})]})};function Gn(e){let t=document.createElement(`div`);t.innerHTML=e,t.querySelectorAll(`script, style, iframe, img, svg, noscript`).forEach(e=>e.remove());let n=t.innerText||t.textContent||``;return n=n.replace(/\n{3,}/g,`
3
4`).replace(/[ \t]+/g,` `).trim(),n}function Kn(e){let t=e.slice(0,2e3).toLowerCase();return/[áàâãéêíóôõúç]/i.test(t)||/\b(que|não|para|com|uma|mais|como|deus|senhor|jesus|igreja|bíblia|palavra|culto|oração|vida|quando|ela|vem)\b/i.test(t)}function qn(e){return e.find(e=>
4e.lang===`pt-BR`)||e.find(e=>e.lang.toLowerCase().startsWith(`pt`))||e[0]||null}var Jn=[.75,1,1.25,1.5],Yn=[{id:`af_heart`,label:`Heart (feminina)`},{id:`af_bella`,label:`Bella (feminina)`},{id:`am_adam`,label:`Adam (masculina)`}];function Xn({content:e,title:t}){let[n,r]=(0,P.useState)(`idle`),[i,a]=(0,P.useState)(1),[o,s]=(0,P.useState)(0),[c,l]=(0,P.useState)(0),[u,d]=(0,P.useState)(``),[f,p]=(0,P.useState)(!1),[ee,te]=(0,P.useState)(`af_heart`),[m,h]=(0,P.useState)(!1),[ne,g]=(0,P.useState)([]),[v,re]=(0,P.useState)(``),y=(0,P.useRef)(null),b=(0,P.useRef)([]),x=(0,P.useRef)(0),S=(0,P.useRef)(null),C=(0,P.useRef)(!1),w=(0,P.useRef)(0),ae=(0,P.useRef)(null),T=(0,P.useRef)(0),oe=(0,P.useRef)([]),se=(0,P.useMemo)(()=>Kn(Gn(e)),[e]),E=m||se,D=(0,P.useCallback)(()=>{C.current=!1,x.current=0,T.current=0,w.current=0,r(`idle`),s(0),d(``)},[]),ce=(0,P.useCallback)(()=>{let e=S.current,t=w.current;if(!e||!e.duration||t<=0)return;let n=x.current,r=e.currentTime/e.duration;s((n+r)/t*100)},[]),ue=(0,P.useCallback)(()=>{let e=b.current,t=x.current;if(t>=e.length){C.current||D();return}let n=e[t];!S.current||n===void 0||(S.current.src=n,S.current.playbackRate=i,S.current.play().catch(console.error),r(`playing`))},[D,i]),O=(0,P.useCallback)(()=>{x.current+=1,ue()},[ue]),fe=(0,P.useCallback)(e=>{if(e>=oe.current.length){D();return}T.current=e,s((e+.35)/oe.current.length*100);let t=new SpeechSynthesisUtterance(oe.current[e]);t.rate=i;let n=ne.find(e=>e.name===v)||qn(ne);n?(t.voice=n,t.lang=n.lang):t.lang=`pt-BR`,t.onend=()=>fe(e+1),t.onerror=e=>{e.error!==`interrupted`&&e.error!==`canceled`&&console.error(`TTS error:`,e.error)},ae.current=t,speechSynthesis.speak(t),r(`playing`)},[ne,v,D,i]),pe=(0,P.useCallback)(t=>{speechSynthesis.cancel();let n=t??Gn(e),i=n.match(/[^.!?]+[.!?]+[\s]*/g)||[n],a=[],o=``;for(let e of i)o.length+e.length>500&&o.length>0&&(a.push(o.trim()),o=``),o+=e;o.trim()&&a.push(o.trim()),oe.current=a,r(`playing`),p(!0),s(0),d(``),T.current=0,fe(0)},[e,fe]);(0,P.useEffect)(()=>{let e=new Worker(new URL(`/assets/kokoro-tts.worker-CqokJh7f.js`,``+import.meta.url),{type:`module`});return y.current=e,()=>{e.terminate(),b.current.forEach(e=>URL.revokeObjectURL(e)),speechSynthesis.cancel()}},[]),(0,P.useEffect)(()=>{let t=y.current;t&&(t.onmessage=t=>{let{type:n}=t.data;if(n===`status`)t.data.status===`loading`?(r(`loading-model`),d(t.data.message)):t.data.status===`generating`?d(t.data.message):t.data.status===`ready`&&d(``);else if(n===`progress`)l(t.data.percent);else if(n===`chunk-progress`)d(`Gerando: ${t.data.current}/${t.data.total}`),w.current=t.data.total;else if(n===`audio-chunk`){let e=URL.createObjectURL(t.data.blob);b.current.push(e),b.current.length===1&&x.current===0&&ue()}else n===`generation-complete`?C.current=!1:n===`error`?(console.error(`Kokoro TTS error:`,t.data.error),h(!0),d(``),pe(Gn(e))):n===`cancelled`&&(C.current=!1)})},[e,pe,ue]),(0,P.useEffect)(()=>{function e(){let e=speechSynthesis.getVoices();g(e);let t=qn(e);t&&!v&&re(t.name)}return e(),speechSynthesis.addEventListener(`voiceschanged`,e),()=>speechSynthesis.removeEventListener(`voiceschanged`,e)},[v]);let me=(0,P.useCallback)(()=>{if(n===`paused`){E?speechSynthesis.resume():S.current&&S.current.play().catch(console.error),r(`playing`);return}b.current.forEach(e=>URL.revokeObjectURL(e)),b.current=[],x.current=0,w.current=0,p(!0),s(0),d(``);let t=Gn(e);if(E){C.current=!1,pe(t);return}C.current=!0,r(`generating`),y.current?.postMessage({type:`generate`,text:t,voice:ee,id:Date.now()})},[e,pe,E,n,ee]),he=(0,P.useCallback)(()=>{E?speechSynthesis.pause():S.current&&S.current.pause(),r(`paused`)},[E]),ge=(0,P.useCallback)(()=>{y.current?.postMessage({type:`cancel`}),S.current&&(S.current.pause(),S.current.currentTime=0,S.current.src=``),speechSynthesis.cancel(),b.current.forEach(e=>URL.revokeObjectURL(e)),b.current=[],D()},[D]),_e=(0,P.useCallback)(()=>{let e=Jn[(Jn.indexOf(i)+1)%Jn.length]??1;a(e),S.current&&(S.current.playbackRate=e)},[i]),ve=n===`loading-model`||n===`generating`;return f?(0,F.jsxs)(`div`,{className:`audio-player-container rounded-xl border border-border bg-card p-3 md:p-4 space-y-3`,children:[(0,F.jsx)(`audio`,{ref:S,onEnded:O,onTimeUpdate:ce}),(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[ve?(0,F.jsx)(j,{variant:`ghost`,size:`icon`,disabled:!0,className:`h-9 w-9 shrink-0`,children:(0,F.jsx)(_,{className:`w-4 h-4 animate-spin`})}):n===`playing`?(0,F.jsx)(j,{variant:`ghost`,size:`icon`,onClick:he,className:`h-9 w-9 shrink-0`,children:(0,F.jsx)(de,{className:`w-4 h-4`})}):(0,F.jsx)(j,{variant:`ghost`,size:`icon`,onClick:me,className:`h-9 w-9 shrink-0`,children:(0,F.jsx)(le,{className:`w-4 h-4`})}),(0,F.jsx)(j,{variant:`ghost`,size:`icon`,onClick:ge,className:`h-9 w-9 shrink-0`,disabled:n===`loading-model`,children:(0,F.jsx)(Le,{className:`w-3.5 h-3.5`})}),(0,F.jsx)(`div`,{className:`flex-1 min-w-0`,children:n===`loading-model`?(0,F.jsx)(Ee,{value:c,className:`h-2`}):(0,F.jsx)(Ee,{value:o,className:`h-2`})}),(0,F.jsxs)(`button`,{onClick:_e,className:`shrink-0 text-xs font-body font-semibold text-muted-foreground hover:text-foreground bg-secondary px-2 py-1 rounded-md transition-colors`,title:`Velocidade`,children:[i,`x`]})]}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,F.jsxs)(`p`,{className:`text-xs font-body text-muted-foreground truncate`,children:[(0,F.jsx)(ie,{className:`w-3 h-3 inline mr-1`}),ve?u||`Preparando...`:n===`playing`?`Reproduzindo: ${t}`:n===`paused`?`Pausado: ${t}`:t]}),!E&&n===`idle`&&(0,F.jsx)(`select`,{value:ee,onChange:e=>te(e.target.value),className:`text-xs font-body bg-secondary text-foreground border-none rounded-md px-2 py-1`,"aria-label":`Selecionar voz`,children:Yn.map(e=>(0,F.jsx)(`option`,{value:e.id,children:e.label},e.id))})]}),E&&(0,F.jsx)(`p`,{className:`text-[11px] font-body text-muted-foreground
4/80`,children:`Voz em português: usando a voz do seu dispositivo, porque o Kokoro ainda só oferece vozes em inglês.`})]}):(0,F.jsxs)(`button`,{onClick:me,className:`inline-flex items-center gap-2 text-sm font-body font-medium text-accent hover:text-accent/80 transition-colors py-1`,children:[(0,F.jsx)(ie,{className:`w-4 h-4`}),`Ouvir artigo`]})}function Zn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qn(e){if(Array.isArray(e))return e}function $n(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function er(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tr(e,t){return Qn(e)||$n(e,t)||nr(e,t)||er()}function nr(e,t){if(e){if(typeof e==`string`)return Zn(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zn(e,t):void 0}}var rr=Object.entries,ir=Object.setPrototypeOf,ar=Object.isFrozen,or=Object.getPrototypeOf,sr=Object.getOwnPropertyDescriptor,G=Object.freeze,K=Object.
vendor: 4,096 bytes, line 5
5seal,cr=Object.create,lr=typeof Reflect<`u`&&Reflect,ur=lr.apply,dr=lr.construct;G||=function(e){return e},K||=function(e){return e},ur||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},dr||=function(e){return new e(...[...arguments].slice(1))};var fr=Y(Array.prototype.forEach),pr=Y(Array.prototype.lastIndexOf),mr=Y(Array.prototype.pop),hr=Y(Array.prototype.push),gr=Y(Array.prototype.splice),_r=Array.isArray,vr=Y(String.prototype.toLowerCase),yr=Y(String.prototype.toString),br=Y(String.prototype.match),xr=Y(String.prototype.replace),Sr=Y(String.prototype.indexOf),Cr=Y(String.prototype.trim),wr=Y(Number.prototype.toString),Tr=Y(Boolean.prototype.toString),Er=typeof BigInt>`u`?null:Y(BigInt.prototype.toString),Dr=typeof Symbol>`u`?null:Y(Symbol.prototype.toString),q=Y(Object.prototype.hasOwnProperty),Or=Y(Object.prototype.toString),J=Y(RegExp.prototype.test),kr=Ar(TypeError);function Y(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return ur(e,t,n)}}function Ar(e){return function(){return dr(e,[...arguments])}}function X(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vr;if(ir&&ir(e,null),!_r(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ar(t)||(t[r]=e),i=e)}e[i]=!0}return e}function jr(e){for(let t=0;t<e.length;t++)q(e,t)||(e[t]=null);return e}function Z(e){let t=cr(null);for(let r of rr(e)){var n=tr(r,2);let i=n[0],a=n[1];q(e,i)&&(t[i]=_r(a)?jr(a):a&&typeof a==`object`&&a.constructor===Object?Z(a):a)}return t}function Mr(e){switch(typeof e){case`string`:return e;case`number`:return wr(e);case`boolean`:return Tr(e);case`bigint`:return Er?Er(e):`0`;case`symbol`:return Dr?Dr(e):`Symbol()`;case`undefined`:return Or(e);case`function`:case`object`:{if(e===null)return Or(e);let t=e,n=Q(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Or(e)}return Or(e)}default:return Or(e)}}function Q(e,t){for(;e!==null;){let n=sr(e,t);if(n){if(n.get)return Y(n.get);if(typeof n.value==`function`)return Y(n.value)}e=or(e)}function n(){return null}return n}function Nr(e){try{return J(e,``),!0}catch{return!1}}var Pr=G(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Fr=G(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Ir=G([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Lr=G([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Rr=G(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),zr=G([`maction`,`mal
5igngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Br=G([`#text`]),Vr=G(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Hr=G(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Ur=G(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Wr=G([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Gr=K(/{{[\w\W]*|^[\w\W]*}}/g),Kr=K(/<%[\w\W]*|^[\w\W]*%>/g),qr=K(/\${[\w\W]*/g),Jr=K(/^data-[\-\w.\u00B7-\uFFFF]+$/),Yr=K(/^aria-[\-\w]+$/),Xr=K(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Zr=K(/^(?:\w+script|data):/i),Qr=K(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$r=K(/^html$/i),ei=K(/^[a-z][.\w]*(-[.\w]+)+$/i),ti=K(/<[/\w!]/g),ni=K(/<[/\w]/g),ri=K(/<\/no(script|embed|frames)/i),ii=K(/\/>/i),$={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ai=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],oi=G(X({},ai)),si=function(){let e={};return fr(ai,t=>{e[t]=K(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),G(e)}(),ci=function(){return typeof window>`u`?null:window},li=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},ui=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},di=function(e,t,n,r){return q(e,t)&&_r(e[t])?X(r.base?Z(r.base):{},e[t],r.transform):n},fi=function(e,t,n){let r=q(e,t)?e[t]:void 0;return r&&typeof r==`object`?Z(r):n()};function pi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ci(),t=e=>pi(e);if(t.version=`3.4.15`,t.removed=[],!e||!e.document||e.document.nodeType!==$.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Q(d,`cloneNode`),p=Q(d,`remove`),ee=Q(d,`removeAttributeNode`),te=Q(d,`nextSibling`),m=Q(d,`childNodes`),h=Q(d,`parentNode`),ne=Q(d,`shadowRoot`),g=Q(d,`attributes`),_=o&&o.prototype?Q(o.prototype,`nodeType`):null,v=o&&o.prototype?Q(o.prototype,`nodeName`):null,re=o&&o.prototype?Q(o.prototype,`ownerDocument`):null,y=function(e){return _?_(e):e.nodeType},b=function(e){return v?v(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C,w=!1,ie=0,ae=function(){if(ie>0)throw kr(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},T=function(e){ae(),ie++;try{return x.createHTML(e)}finally{ie--}},oe=function(e){ae(),ie++;try{return x.createScriptURL(e)}finally{ie--}},se=function(){return w||=(C=li(u,i),!0),C},E=n,D=E.implementation,ce=E.createNodeIterator,le=E.createDocumentFragment,ue=E.getElementsByTagName,de=r.importNode,O=ui();t.isSupported=typeof rr==`function`&&typeof h==`function`&&D&&D.createHTMLDocument!==void 0;let fe=Gr,pe=Kr,me=qr,he=Jr,ge=Yr,_e=Zr,ve=Qr,ye=ei,be=Xr,k=null,xe=X({},[...Pr,...Fr,...Ir,...Rr,...Br]),A=null,j=X({}
vendor: 4,861 bytes, line 5
5,[...Vr,...Hr,...Ur,...Wr]),M=Object.seal(cr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Ce=null,we=Object.seal(cr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Te=!0,Ee=!0,De=!1,Oe=!0,ke=!1,Ae=!0,N=!1,je=!1,Me=null,Ne=null,Pe=!1,Fe=!1,Ie=!1,Le=!1,P=!0,F=!1,Re=`user-content-`,ze=!0,Be=!1,I={},Ve=null,He=X({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ue=null,We=X({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ge=null,Ke=X({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),qe=`http://www.w3.org/1998/Math/MathML`,Je=`http://www.w3.org/2000/svg`,L=`http://www.w3.org/1999/xhtml`,Ye=L,R=!1,Xe=null,Ze=X({},[qe,Je,L],yr),Qe=G([`mi`,`mo`,`mn`,`ms`,`mtext`]),$e=X({},Qe),et=G([`annotation-xml`]),tt=X({},et),nt=X({},[`title`,`style`,`font`,`a`,`script`]),rt=null,it=[`application/xhtml+xml`,`text/html`],z=null,at=null,ot=n.createElement(`form`),st=function(e){return e instanceof RegExp||e instanceof Function},B=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(at&&at===e)return;(!e||typeof e!=`object`)&&(e={}),e=Z(e),rt=it.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,z=rt===`application/xhtml+xml`?yr:vr,k=di(e,`ALLOWED_TAGS`,xe,{transform:z}),A=di(e,`ALLOWED_ATTR`,j,{transform:z}),Xe=di(e,`ALLOWED_NAMESPACES`,Ze,{transform:yr}),Ge=di(e,`ADD_URI_SAFE_ATTR`,Ke,{transform:z,base:Ke}),Ue=di(e,`ADD_DATA_URI_TAGS`,We,{transform:z,base:We}),Ve=di(e,`FORBID_CONTENTS`,He,{transform:z}),Se=di(e,`FORBID_TAGS`,Z({}),{transform:z}),Ce=di(e,`FORBID_ATTR`,Z({}),{transform:z}),I=q(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Z(e.USE_PROFILES):e.USE_PROFILES:!1,Te=e.ALLOW_ARIA_ATTR!==!1,Ee=e.ALLOW_DATA_ATTR!==!1,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ke=e.SAFE_FOR_TEMPLATES||!1,Ae=e.SAFE_FOR_XML!==!1,N=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,P=e.SANITIZE_DOM!==!1,F=e.SANITIZE_NAMED_PROPS||!1,ze=e.KEEP_CONTENT!==!1,Be=e.IN_PLACE||!1,be=Nr(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Xr,Ye=typeof e.NAMESPACE==`string`?e.NAMESPACE:L,$e=fi(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>X({},Qe)),tt=fi(e,`HTML_INTEGRATION_POINTS`,()=>X({},et));let t=fi(e,`CUSTOM_ELEMENT_HANDLING`,()=>cr(null));if(M=cr(null),q(t,`tagNameCheck`)&&st(t.tagNameCheck)&&(M.tagNameCheck=t.tagNameCheck),q(t,`attributeNameCheck`)&&st(t.attributeNameCheck)&&(M.attributeNameCheck=t.attributeNameCheck),q(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(M.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),K(M),ke&&(Ee=!1),Ie&&(Fe=!0),I&&(k=X({},Br),A=cr(null),I.html===!0&&(X(k,Pr),X(A,Vr)),I.svg===!0&&(X(k,Fr),X(A,Hr),X(A,Wr)),I.svgFilters===!0&&(X(k,Ir),X(A,Hr),X(A,Wr)),I.mathMl===!0&&(X(k,Rr),X(A,Ur),X(A,Wr))),we.tagCheck=null,we.attributeCheck=null,q(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?we.tagCheck=e.ADD_TAGS:_r(e.ADD_TAGS)&&(k===xe&&(k=Z(k)),X(k,e.ADD_TAGS,z))),q(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?we.attributeCheck=e.ADD_ATTR:_r(e.ADD_ATTR)&&(A===j&&(A=Z(A)),X(A,e.ADD_ATTR,z))),q(e,`ADD_FORBID_CONTENTS`)&&_r(e.ADD_FORBID_CONTENTS)&&(Ve===He&&(Ve=Z(Ve)),X(Ve,e.ADD_FORBID_CONTENTS,z)),ze&&(k[`#text`]=!0),N&&X(k,[`html`,`head`,`body`]),k.table&&(X(k,[`tbody`]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw kr(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw kr(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=x;x=e.TRUSTED_TYPES_POLICY;try{S=T(``)}catch(e){throw x=t,e}}else e.TRUSTED_TYPES_POLICY===null?(x=void 0,S=``):(x===void 0&&(x=se()),x&&typeof S==`string`&&(S=T(``)));G&&G(e),at=e},ct=X({},[...Fr,...Ir,...Lr]),lt=X({},[...Rr,...zr]),ut=function(e,t,n){return t.namespaceURI===L?e===`svg`:t.namespaceURI===qe?e===`svg`&&(n===`annotation-xml`||$e[n]):!!ct[e]},dt=function(e,t,n){return t.namespaceURI===L?e===`math`:t.namespaceURI===Je?e===`math`&&tt[n]:!!lt[e]},ft=function(e,t,n){return t.namespaceURI===Je&&!tt[n]||t.namespaceURI===qe&&!$e[n]?!1:!lt[e]&&(nt[e]||!ct[e])},pt=function(e){let t=h(e);(!t||!t.tagName)&&(t={namespaceURI:Ye,tagName:`template`});let n=vr(e.tagName),r=vr(t.tagName);
vendor: 4,416 bytes, line 5
5return Xe[e.namespaceURI]?e.namespaceURI===Je?ut(n,t,r):e.namespaceURI===qe?dt(n,t,r):e.namespaceURI===L?ft(n,t,r):!!(rt===`application/xhtml+xml`&&Xe[e.namespaceURI]):!1},V=function(e){hr(t.removed,{element:e});try{h(e).removeChild(e)}catch{if(p(e),!h(e))throw kr(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},mt=function(e,t,n){try{ee(e,t)}catch{try{e.removeAttribute(n)}catch{}}},ht=function(e){vt(e);let t=m(e);if(t){let e=[];fr(t,t=>{hr(e,t)}),fr(e,e=>{try{p(e)}catch{}})}let n=g(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&mt(e,r,i)}},gt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}hr(t.removed,{attribute:r||null,from:n});try{r?ee(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`)if(Fe||Ie)try{V(n)}catch{}else try{n.setAttribute(e,``)}catch{}},_t=function(e){let t=g(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||A[z(i)]||mt(e,r,i)}},vt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();y(e)===$.element&&_t(e);let n=m(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},yt=function(e,t){return Ae?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},bt=function(e){if(!Ae)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=y(e);if(n===$.processingInstruction||n===$.comment&&J(ni,e.data)){try{p(e)}catch{}continue}if(n===$.element){let t=e,n=z(b(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&yt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=m(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},xt=function(e){let t=null,r=null;if(Pe)e=`<remove></remove>`+e;else{let t=br(e,/^[\r\n\t ]+/);r=t&&t[0]}rt===`application/xhtml+xml`&&Ye===L&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?T(e):e;if(Ye===L)try{t=new l().parseFromString(i,rt)}catch{}if(!t||!t.documentElement){t=D.createDocument(Ye,`template`,null);try{t.documentElement.innerHTML=R?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ye===L?ue.call(t,N?`html`:`body`)[0]:N?t.documentElement:a},St=function(e){let t=re?re(e):e.ownerDocument;return ce.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ct=function(e){return e=xr(e,fe,` `),e=xr(e,pe,` `),e=xr(e,me,` `),e},wt=function(e){e.normalize();let t=re?re(e):e.ownerDocument,n=ce.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Ct(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&fr(i,e=>{Et(e.content)&&wt(e.content)})},Tt=function(e){let t=v?v(e):null;return typeof t!=`string`||z(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==g(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==_(e)||e.childNodes!==m(e)},Et=function(e){if(!_||typeof e!=`object`||!e)return!1;try{return _(e)===$.documentFragment}catch{return!1}},Dt=function(e){if(!_||typeof e!=`object`||!e)return!1;try{return typeof _(e)==`number`}catch{return!1}};function H(e,n,r){e.length!==0&&fr(e,e=>{e.call(t,n,r,at)})}let Ot=function(e,t){return!!(Ae&&e.hasChildNodes()&&!Dt(e.firstElementChild)&&J(ti,e.textContent)&&J(ti,e.innerHTML)||Ae&&e.namespaceURI===L&&oi[t]&&(Dt(e.firstElementChild)||typeof e.textContent==`string`&&J(si[t],e.textContent))||e.nodeType===$.processingInstruction||Ae&&e.nodeType===$.comment&&J(ni,e.data))},kt=function(e,t){return e instanceof RegExp?J(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},At=function(e,t,n){if(!Se[t]&&It(t)&&kt(M.tagNameCheck,t))return!1;if(ze&&!Ve[t]){let t=h(e),r=m(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,te(e))}}}return V(e),!0},jt=function(e,t,n,r){return e.length===0?t:t===n||t===r?Z(t):t},Mt=function(e,t){return e===t||h(e)!==null?!1:(Be&&vt(e),!0)},Nt=function(e,n){if(H(O.beforeSanitizeElements,e,null),Mt(e,n))return!0;
5if(Tt(e))return V(e),!0;let r=z(b(e));if(k=jt(O.uponSanitizeElement,k,xe,Me),H(O.uponSanitizeElement,e,{tagName:r,allowedTags:k}),Mt(e,n))return!0;if(Ot(e,r))return V(e),!0;if(Se[r]||!(we.tagCheck instanceof Function&&we.tagCheck(r))&&!k[r]){let t=At(e,r,n);return t===!1&&H(O.afterSanitizeElements,e,null),t}if(y(e)===$.element&&!pt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&J(ri,e.innerHTML))return V(e),!0;if(ke&&e.nodeType===$.text){let n=Ct(e.textContent);e.textContent!==n&&(hr(t.removed,{element:e.cloneNode()}),e.textContent=n)}return H(O.afterSanitizeElements,e,null),!1},Pt=function(e,t,r){if(Ce[t]||yt(t,e)||P&&(t===`id`||t===`name`)&&(r in n||r in ot))return!1;let i=A[t]||we.attributeCheck instanceof Function&&we.attributeCheck(t,e);return Ee&&J(he,t)||Te&&J(ge,t)?!0:i?Ge[t]||J(be,xr(r,ve,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Sr(r,`data:`)===0&&Ue[e]||De&&!J(_e,xr(r,ve,``))?!0:!r:It(e)&&kt(M.tagNameCheck,e)&&kt(M.attributeNameCheck,t,e)||t===`is`&&M.allowCustomizedBuiltInElements&&kt(M.tagNameCheck,r)},Ft=X({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),It=function(e){return!Ft[vr(e)]&&J(ye,e)},Lt=function(e,t,n,r){if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return T(r);case`TrustedScriptURL`:return oe(r)}return r},Rt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Tt(e)||(V(e),!1)}catch{return gt(t,e),!1}},zt=function(e){H(O.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||Tt(e))return;A=jt(O.uponSanitizeAttribute,A,j,Ne);let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0},i=n.length,a=z(e.nodeName);for(;i--;){let o=n[i],s=o.name,c=o.namespaceURI,l=o.value,u=z(s),d=l,f=s===`value`?d:Cr(d),p=!1;if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,H(O.uponSanitizeAttribute,e,r),f=r.attrValue,F&&(u===`id`||u===`name`)&&Sr(f,Re)!==0&&(gt(s,e,o),f=Re+f,p=!0),Ae&&J(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){gt(s,e,o);continue}if(u===`attributename`&&br(f,`href`)){gt(s,e,o);continue}if(!r.forceKeepAttr){if(!r.keepAttr){gt(s,e,o);continue}if(!Oe&&J(ii,f)){gt(s,e,o);continue}if(ke&&(f=Ct(f)),!Pt(a,u,f)){gt(s,e,o);continue}f=Lt(a,u,c,f),f!==d&&Rt(e,s,c,f)&&p&&mr(t.removed)}}H(O.afterSanitizeAttributes,e,null)},Bt=function(e){let t=null,n=St(e);for(H(O.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(H(O.uponSanitizeShadowNode,t,null),Nt(t,e),zt(t),Et(t.content)&&Bt(t.content),y(t)===$.element){let e=ne(t);Et(e)&&(Vt(e),Bt(e))}H(O.afterSanitizeShadowDOM,e,null)},Vt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Bt(e.shadow);continue}let n=e.node,r=y(n)===$.element,i=m(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=v?v(n):null;if(typeof e==`string`&&z(e)===`template`){let e=n.content;Et(e)&&t.push({node:e,shadow:null})}}if(r){let e=ne(n);Et(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(R=!e,R&&(e=`<!-->`),typeof e!=`string`&&!Dt(e)&&(e=Mr(e),typeof e!=`string`))throw kr(`dirty is not a string, aborting`);if(!t.isSupported)return e;je?(k=Me,A=Ne):B(n),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(k=Z(k)),O.uponSanitizeAttribute.length>0&&(A=Z(A)),t.removed=[];let c=Be&&typeof e!=`string`&&Dt(e);if(c){bt(e);let t=b(e);if(typeof t==`string`){let n=z(t);if(!k[n]||Se[n])throw ht(e),kr(`root node is forbidden and cannot be sanitized in-place`)}if(Tt(e))throw ht(e),kr(`root node is clobbered and cannot be sanitized in-place`);try{Vt(e)}catch(t){throw ht(e),t}}else if(Dt(e))i=xt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===$.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Vt(i);else{if(!Fe&&!ke&&!N&&e.indexOf(`<`)===-1)return x&&Le?T(e):e;if(i=xt(e),!i)return Fe?null:Le?S:``}i&&Pe&&V(i.firstChild);let l=c?e:i;try{let e=St(l);for(;o=e.nextNode();)Nt(o,l),zt(o),Et(o.content)&&Bt(o.content)}catch(n){throw c&&(ht(e),fr(t.removed,e=>{e.element&&vt(e.element)})),n}if(c)return fr(t.removed,e=>{e.element&&vt(e.element)}),ke&&wt(e),e;if(Fe){if(ke&&wt(i),Ie)for(s=le.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(A.shadowroot||A.shadowrootmode)&&(s=de.call(r,s,!0)),s}let u=N?i.outerHTML:i.innerHTML;return N&&k[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&J($r,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
6`+u),ke&&(u=Ct(u)),x&&Le?T(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};B(e),je=!0,Me=k,Ne=A},t.clearConfig=function(){at=null,je=!1,Me=null,Ne=null,x=C,S=``},t.isValidAttribute=function(e,t,n){at||B({});let r=z(e),i=z(t);return Pt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&q(O,e)&&hr(O[e],t)},t.removeHook=function(e,t){if(q(O,e)){if(t!==void 0){let n=pr(O[e],t);return n===-1?void 0:gr(O[e],n,1)[0]}return mr(O[e])}},t.removeHooks=function(e){q(O,e)&&(O[e]=[])},t.removeAllHooks=function(){O=ui()},t}var mi=pi();function hi(e){return mi.sanitize(e,{ADD_ATTR:[`target`,`rel`,`allowfullscreen`,`frameborder`],ADD_TAGS:[`iframe`]})}function gi(e){return!e||/<(p|div|h[1-6]|ul|ol|table|blockquote|figure|section|article)\b/i.test(e)?e:e.split(/\n\s*\n/).map(e=>e.trim()).filter(e=>e.length>0).map(e=>`<p>${e.replace(/\n/g,`<br>`)}</p>`).join(`
7`)}function _i(e){return e.replace(/<p>\s*<em>\s*(Crédito da imagem:[\s\S]*?)<\/em>\s*<\/p>/i,`<p class="image-credit"><span>$1</span></p>`)}function vi(e){return e.match(/<p>\s*<em>\s*(Crédito da imagem:[\s\S]*?)<\/em>\s*<\/p>/i)?.[1]?.replace(/<[^>]+>/g,``).trim()??null}function yi(e){return e.replace(/<p>\s*<em>\s*Crédito da imagem:[\s\S]*?<\/em>\s*<\/p>/i,``)}function bi(e){return e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/)?.[1]??null}function xi(e){let t=e;for(let[e,n]of Object.entries({"Dirigente:":`liturgy-leader`,"Todos:":`liturgy-all`,"Congregação:":`liturgy-all`,"Homens:":`liturgy-men`,"Mulheres:":`liturgy-women`,"Coro:":`liturgy-choir`})){let r=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);t=t.replace(RegExp(`(<p[^>]*>\\s*(?:<(?:strong|b)>\\s*)?)${r}`,`gi`),`$1<span class="${n}">${e}</span> `)}return t=t.replace(/<h2([^>]*)>/g,`<h2$1 class="liturgy-moment">`),t=t.replace(/class="liturgy-moment"\s*class="/g,`class="liturgy-moment `),t=t.replace(/<h3([^>]*)>/g,`<h3$1 class="liturgy-song">`),t=t.replace(/class="liturgy-song"\s*class="/g,`class="liturgy-song `),t=t.replace(/(\d+)\s*HCC/g,`<span class="liturgy-hcc-badge">HCC $1</span>`),t=t.replace(/HCC\s*(\d+)/g,`<span class="liturgy-hcc-badge">HCC $1</span>`),t=t.replace(/<p>(\s*<(?:b|strong)>)?\s*Leitura b[ií]blica:\s*/gi,`<p class="liturgy-reading"><span class="liturgy-reading-label">📖 Leitura bíblica:</span> `),t}function Si(e){let t=document.createElement(`div`);t.innerHTML=e;let n=null,r=null,i=[],a=Array.from(t.children);for(let e=0;e<a.length;e++){let t=a[e];if(!t)continue;let o=t.textContent?.trim()||``;if(!n&&e<3&&/^[\u201C"\u00AB]/.test(o)){let e=o.match(/^[\u201C"\u00AB](.+?)[\u201D"\u00BB]\s*[.\s]*(?:\((.+?)\))?/s);if(e){n={text:(e[1]??``).trim(),author:(e[2]||``).trim()};continue}}if(e>=a.length-3){let e=o.match(/^[\u201C"\u00AB]?(.+?)[\u201D"\u00BB]?\s*\(([A-ZÀ-Ú][a-zà-ú]+\s+\d+[.:]\d+.*?)\)\s*$/s);if(e){r={text:(e[1]??``).trim(),ref:(e[2]??``).trim()};continue}}i.push(t.outerHTML)}return{quote:n,verse:r,body:i.join(`
8`)}}var Ci=()=>{let{slug:e}=me(),{data:t,isLoading:n}=xe({queryKey:[`article`,e],queryFn:async()=>{let{data:t,error:n}=await A.from(`articles`).select(`*`).eq(`slug`,e).eq(`published`,!0).single();if(n)throw n;return t},enabled:!!e}),r=t?.series===`Bom Dia Amigo`,i=t?.category===`Ordem de Culto`,{data:a}=S(),o=C(t?.content),s=t?a?.[t.slug]:void 0,{data:c}=xe({queryKey:[`bda-adjacent`,t?.id],queryFn:async()=>{let e=t.published_at||t.created_at,[n,r]=await Promise.all([A.from(`articles`).select(`slug, title`).eq(`series`,`Bom Dia Amigo`).eq(`published`,!0).lt(`published_at`,e).order(`published_at`,{ascending:!1}).limit(1).single(),A.from(`articles`).select(`slug, title`).eq(`series`,`Bom Dia Amigo`).eq(`published`,!0).gt(`published_at`,e).order(`published_at`,{ascending:!0}).limit(1).single()]);return{prev:n.data,next:r.data}},enabled:!!t?.id&&r}),l=(0,P.useMemo)(()=>!r||!t?.content?null:Si(t.content),[r,t?.content]);if((0,P.useEffect)(()=>
8{if(!t?.id)return;let e=navigator.userAgent||``;if(/bot|crawler|spider|crawling|preview|facebookexternalhit|whatsapp|telegram|slackbot|discordbot|embedly|googlebot|bingbot|duckduckbot|baiduspider|yandex|headless/i.test(e))return;let n=`pv:${t.id}`;try{let e=sessionStorage.getItem(n);if(e&&Date.now()-parseInt(e,10)<18e5)return}catch{}let r=setTimeout(()=>{try{sessionStorage.setItem(n,String(Date.now()))}catch{}A.from(`page_views`).insert({article_id:t.id,user_agent:e.slice(0,1024),referrer:(document.referrer||null)?.slice(0,2048)||null}).then(()=>{});let r=window;typeof r.gtag==`function`&&r.gtag(`event`,`page_view`,{page_path:window.location.pathname+window.location.search,page_title:t.title,page_location:window.location.href}),_e(async()=>{let{ttTrack:e}=await import(`./tiktokPixel-Dl1NAfNe.js`);return{ttTrack:e}},[]).then(({ttTrack:e})=>{e(`ViewContent`,{contents:[{content_id:t.id,content_type:`product`,content_name:t.title}]})}),_e(async()=>{let{fbTrack:e}=await import(`./index-9_f8-5WS.js`).then(e=>e.n);return{fbTrack:e}},__vite__mapDeps([0,1,2,3,4,5,6])).then(({fbTrack:e})=>{e(`ViewContent`,{content_ids:[t.id],content_name:t.title,content_type:`product`,content_category:t.category??void 0})})},1500);return()=>clearTimeout(r)},[t?.id,t?.title]),n)return(0,F.jsx)(k,{children:(0,F.jsx)(`div`,{className:`container mx-auto px-4 py-20 text-center`,children:(0,F.jsx)(`p`,{className:`font-body text-muted-foreground`,children:`Carregando...`})})});if(!t)return(0,F.jsx)(k,{children:(0,F.jsxs)(`div`,{className:`container mx-auto px-4 py-20 text-center`,children:[(0,F.jsx)(`h1`,{className:`font-display text-3xl font-bold text-foreground mb-4`,children:`Conteúdo não encontrado`}),(0,F.jsx)(ge,{to:`/sermoes`,className:`font-body text-accent hover:underline`,children:`Voltar para Sermões`})]})});let u=t.published_at?new Date(t.published_at).toLocaleDateString(`pt-BR`,{day:`2-digit`,month:`long`,year:`numeric`}):``,p=t.attachments??[],g=t.video_url?bi(t.video_url):null,_=vi(t.content||``),v=_?yi(t.content||``):t.content||``;return r?(0,F.jsxs)(k,{children:[(0,F.jsx)(N,{title:`${t.meta_title||t.title} — Bom Dia Amigo`,description:t.meta_description||t.excerpt||``,path:`/sermao/${t.slug}`,image:t.cover_image||void 0,type:`article`,article:{author:t.author,publishedAt:t.published_at||void 0,modifiedAt:t.updated_at,tags:t.tags||void 0,section:`Bom Dia Amigo`},jsonLd:Ae({title:t.meta_title||t.title,description:t.meta_description||t.excerpt||``,url:`https://prazerdapalavra.com.br/sermao/${t.slug}`,image:t.cover_image||void 0,author:t.author,publishedAt:t.published_at||void 0,modifiedAt:t.updated_at})}),(0,F.jsx)(`article`,{className:`py-10 md:py-16`,children:(0,F.jsxs)(`div`,{className:`container mx-auto px-4 max-w-2xl`,children:[(0,F.jsxs)(ge,{to:`/bom-dia-amigo`,className:`inline-flex items-center gap-2 font-body text-sm text-muted-foreground hover:text-accent transition-colors mb-8`,children:[(0,F.jsx)(d,{className:`w-4 h-4`}),` Bom Dia Amigo`]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-2 mb-4`,children:[(0,F.jsx)(`span`,{className:`inline-block bg-accent/15 text-accent text-xs font-body font-semibold px-3 py-1 rounded-full`,children:`☀️ Bom Dia Amigo`}),t.edition_number&&(0,F.jsxs)(`span`,{className:`inline-block bg-secondary text-muted-foreground text-xs font-body font-medium px-3 py-1 rounded-full`,children:[`Edição #`,t.edition_number]})]}),(0,F.jsx)(`h1`,{className:`font-display text-2xl md:text-4xl font-bold text-foreground leading-tight mb-4`,children:t.title}),u&&(0,F.jsxs)(`div`,{className:`flex items-center flex-wrap gap-4 text-sm font-body text-muted-foreground mb-4`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(f,{className:`w-4 h-4`}),` `,u]}),o>0&&(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(m,{className:`w-4 h-4`}),` `,o,` min`]}),s!=null&&s>0&&(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(h,{className:`w-4 h-4`}),` `,s.toLocaleString(`pt-BR`)]})]}),(0,F.jsx)(Wn,{title:t.title,className:`mb-6`}),(0,F.jsx)(`div`,{className:`mb-8`,children:(0,F.jsx)(Xn,{content:t.content||``,title:t.title})}),g&&(0,F.jsx)(`div`,{className:`mb-8 rounded-xl overflow-hidden shadow-card`,children:(0,F.jsx)(`div`,{className:`relative w-full`,style:{paddingBottom:`56.25%`},children:(0,F.jsx)(`iframe`,{src:`https://www.youtube.com/embed/${g}`,title:`Vídeo`,className:`absolute inset-0 w-full h-full`,allowFullScreen:!0,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`})})}),l?.quote&&(0,F.jsxs)(`div`,{className:`bda-quote`,children:[`"`,l.quote.text,`"`,l.quote.author&&(0,F.jsxs)(`span`,{className:`bda-quote-author`,children:[`— `,l.quote.author]})]}),(0,F.jsx)(`div`,{className:`bda-content`,dangerouslySetInnerHTML:{__html:hi(l?.body||t.content||``)}}
8),l?.verse&&(0,F.jsxs)(`div`,{className:`bda-verse`,children:[(0,F.jsx)(E,{className:`w-5 h-5 mx-auto mb-3 text-accent opacity-60`}),`"`,l.verse.text,`"`,(0,F.jsx)(`span`,{className:`bda-verse-ref`,children:l.verse.ref})]}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between mt-10 pt-8 border-t border-border`,children:[c?.prev?(0,F.jsxs)(ge,{to:`/sermao/${c.prev.slug}`,className:`flex items-center gap-2 text-sm font-body text-muted-foreground hover:text-accent transition-colors max-w-[45%]`,children:[(0,F.jsx)(ee,{className:`w-4 h-4 shrink-0`}),(0,F.jsx)(`span`,{className:`truncate`,children:c.prev.title})]}):(0,F.jsx)(`div`,{}),c?.next?(0,F.jsxs)(ge,{to:`/sermao/${c.next.slug}`,className:`flex items-center gap-2 text-sm font-body text-muted-foreground hover:text-accent transition-colors max-w-[45%] text-right ml-auto`,children:[(0,F.jsx)(`span`,{className:`truncate`,children:c.next.title}),(0,F.jsx)(te,{className:`w-4 h-4 shrink-0`})]}):(0,F.jsx)(`div`,{})]}),t.tags&&t.tags.length>0&&(0,F.jsx)(`div`,{className:`flex flex-wrap gap-2 mt-8 pt-6 border-t border-border`,children:t.tags.map(e=>(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1 bg-secondary text-secondary-foreground text-sm font-body px-3 py-1 rounded-full`,children:[(0,F.jsx)(x,{className:`w-3.5 h-3.5`}),` `,e]},e))}),(0,F.jsx)(ze,{}),(0,F.jsx)(Re,{currentId:t.id,category:t.category,author:t.author,series:t.series,tags:t.tags})]})}),(0,F.jsx)(Me,{})]}):i?(0,F.jsxs)(k,{children:[(0,F.jsx)(N,{title:`${t.title} — Ordem de Culto`,description:t.meta_description||t.excerpt||``,path:`/sermao/${t.slug}`,image:t.cover_image||void 0,type:`article`,article:{author:t.author,publishedAt:t.published_at||void 0,modifiedAt:t.updated_at,section:`Ordem de Culto`}}),(0,F.jsx)(`article`,{className:`py-10 md:py-16 print-area`,children:(0,F.jsxs)(`div`,{className:`container mx-auto px-4 max-w-3xl`,children:[(0,F.jsxs)(ge,{to:`/ordens-de-culto`,className:`inline-flex items-center gap-2 font-body text-sm text-muted-foreground hover:text-accent transition-colors mb-8 no-print`,children:[(0,F.jsx)(d,{className:`w-4 h-4`}),` Ordens de Culto`]}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between mb-4 no-print`,children:[(0,F.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 bg-primary/10 text-primary text-xs font-body font-semibold px-3 py-1 rounded-full`,children:[(0,F.jsx)(re,{className:`w-3.5 h-3.5`}),` Ordem de Culto`]})}),(0,F.jsxs)(j,{variant:`outline`,size:`sm`,onClick:()=>window.print(),className:`gap-1.5`,children:[(0,F.jsx)(y,{className:`w-4 h-4`}),` Imprimir`]})]}),(0,F.jsx)(`h1`,{className:`font-display text-2xl md:text-4xl font-bold text-foreground leading-tight mb-4`,children:t.title}),(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-4 text-sm font-body text-muted-foreground mb-8 pb-6 border-b border-border`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(re,{className:`w-4 h-4 text-accent`}),` Preparada por `,t.author]}),u&&(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(f,{className:`w-4 h-4`}),` `,u]}),(0,F.jsx)(Wn,{title:t.title,className:`ml-auto no-print`})]}),(0,F.jsx)(`div`,{className:`mb-8 no-print`,children:(0,F.jsx)(Xn,{content:t.content||``,title:t.title})}),(0,F.jsx)(`div`,{className:`liturgy-content`,dangerouslySetInnerHTML:{__html:hi(xi(t.content||``))}}),t.tags&&t.tags.length>0&&(0,F.jsx)(`div`,{className:`flex flex-wrap gap-2 mt-10 pt-6 border-t border-border no-print`,children:t.tags.map(e=>(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1 bg-secondary text-secondary-foreground text-sm font-body px-3 py-1 rounded-full`,children:[(0,F.jsx)(x,{className:`w-3.5 h-3.5`}),` `,e]},e))}),(0,F.jsxs)(`div`,{className:`no-print`,children:[(0,F.jsx)(ze,{}),(0,F.jsx)(Re,{currentId:t.id,category:t.category,author:t.author,series:t.series,tags:t.tags})]})]})}),(0,F.jsx)(`div`,{className:`no-print`,children:(0,F.jsx)(Me,{})})]}):(0,F.jsxs)(k,{children:[(0,F.jsx)(N,{title:t.meta_title||t.title,de
8scription:t.meta_description||t.excerpt||``,path:`/sermao/${t.slug}`,image:t.cover_image||void 0,type:`article`,article:{author:t.author,publishedAt:t.published_at||void 0,modifiedAt:t.updated_at,tags:t.tags||void 0,section:t.category},jsonLd:Ae({title:t.meta_title||t.title,description:t.meta_description||t.excerpt||``,url:`https://prazerdapalavra.com.br/sermao/${t.slug}`,image:t.cover_image||void 0,author:t.author,publishedAt:t.published_at||void 0,modifiedAt:t.updated_at})}),t.cover_image&&(0,F.jsxs)(`div`,{className:`w-full h-64 md:h-96 relative`,children:[(0,F.jsx)(`img`,{src:t.cover_image,alt:t.title,className:`w-full h-full object-cover`}),(0,F.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-background/80 to-transparent`})]}),(0,F.jsx)(`article`,{className:`py-12 md:py-20`,children:(0,F.jsxs)(`div`,{className:`container mx-auto px-4 max-w-3xl`,children:[(0,F.jsxs)(ge,{to:`/sermoes`,className:`inline-flex items-center gap-2 font-body text-sm text-muted-foreground hover:text-accent transition-colors mb-8`,children:[(0,F.jsx)(d,{className:`w-4 h-4`}),` Voltar`]}),(0,F.jsx)(`span`,{className:`inline-block bg-accent text-accent-foreground text-xs font-body font-semibold px-3 py-1 rounded-full mb-4`,children:t.category}),(0,F.jsx)(`h1`,{className:`font-display text-3xl md:text-5xl font-bold text-foreground leading-tight mb-6`,children:t.title}),(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-4 text-sm font-body text-muted-foreground mb-8 pb-8 border-b border-border`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(w,{className:`w-4 h-4`}),` `,t.author]}),u&&(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(f,{className:`w-4 h-4`}),` `,u]}),o>0&&(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(m,{className:`w-4 h-4`}),` `,o,` min de leitura`]}),s!=null&&s>0&&(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(h,{className:`w-4 h-4`}),` `,s.toLocaleString(`pt-BR`),` visualizações`]}),(0,F.jsx)(Wn,{title:t.title,className:`ml-auto`})]}),(0,F.jsx)(`div`,{className:`mb-8`,children:(0,F.jsx)(Xn,{content:t.content||``,title:t.title})}),g&&(0,F.jsx)(`div`,{className:`mb-8 rounded-lg overflow-hidden shadow-card`,children:(0,F.jsx)(`div`,{className:`relative w-full`,style:{paddingBottom:`56.25%`},children:(0,F.jsx)(`iframe`,{src:`https://www.youtube.com/embed/${g}`,title:`Vídeo`,className:`absolute inset-0 w-full h-full`,allowFullScreen:!0,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`})})}),t.cover_image&&_&&(0,F.jsxs)(`figure`,{className:`article-body-image`,children:[(0,F.jsx)(`img`,{src:t.cover_image,alt:`Escavação arqueológica — ${t.title}`,loading:`lazy`}),(0,F.jsx)(`figcaption`,{children:_})]}),(0,F.jsx)(`div`,{className:`article-content max-w-none`,dangerouslySetInnerHTML:{__html:hi(_i(gi(v)))}}),p.length>0&&(0,F.jsxs)(`div`,{className:`mt-10 pt-8 border-t border-border`,children:[(0,F.jsxs)(`h3`,{className:`font-display text-lg font-bold text-foreground mb-4 flex items-center gap-2`,children:[(0,F.jsx)(ne,{className:`w-5 h-5 text-accent`}),` Material para download`]}),(0,F.jsx)(`div`,{className:`space-y-2`,children:p.map((e,t)=>(0,F.jsxs)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-3 bg-secondary rounded-lg px-4 py-3 hover:bg-accent/10 transition-colors group`,children:[(0,F.jsx)(ne,{className:`w-5 h-5 text-accent shrink-0`}),(0,F.jsx)(`div`,{className:`flex-1 min-w-0`,children:(0,F.jsx)(`p`,{className:`font-body text-sm font-medium text-foreground group-hover:text-accent truncate`,children:e.name})}),(0,F.jsx)(`span`,{className:`font-body text-xs text-muted-foreground shrink-0`,children:`Baixar`})]},t))})]}),t.tags&&t.tags.length>0&&(0,F.jsx)(`div`,{className:`flex flex-wrap gap-2 mt-10 pt-8 border-t border-border`,children:t.tags.map(e=>(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1 bg-secondary text-secondary-foreground text-sm font-body px-3 py-1 rounded-full`,children:[(0,F.jsx)(x,{className:`w-3.5 h-3.5`}),` `,e]},e))}),(0,F.jsx)(ze,{}),(0,F.jsx)(Re,{currentId:t.id,category:t.category,author:t.author,series:t.series,tags:t.tags})]})}),(0,F.jsx)(Me,{})]})};export{Ci as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.