import{j as e}from"./ui-vendor-CPlxOuHz.js";import{H as t}from"./Header-CCcWTXhg.js";import{F as o}from"./Footer-BqYZBv1u.js";import{AppDownload as a}from"./AppDownload-DyC4lp3c.js";import{f as r,r as n,N as i,L as s}from"./react-vendor-DjUmVRt1.js";import{S as l}from"./SEOBreadcrumb-DCKCzdmc.js";import{u as c,S as m,H as d,B as u,s as p}from"./index-09CqdSdZ.js";import{u as f}from"./useQuery-CQM8Ox_9.js";import{S as h}from"./SEOHead-_u8HLdws.js";import{C as g,a as b,b as x,c as y}from"./card-DOdpRqkP.js";import{Q as N,a0 as T,a1 as w,a2 as _,a3 as A,a4 as E}from"./icons-ClkGBw8e.js";import"./logo-oficial-BW9aD_Pb.js";import"./blur-BN0S1GFv.js";import"./supabase-vendor-CuzYIAJN.js";
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:v,setPrototypeOf:S,isFrozen:j,getPrototypeOf:C,getOwnPropertyDescriptor:k}=Object;let{freeze:R,seal:L,create:O}=Object,{apply:D,construct:I}="undefined"!=typeof Reflect&&Reflect;R||(R=function(e){return e}),L||(L=function(e){return e}),D||(D=function(e,t){for(var o=arguments.length,a=new Array(o>2?o-2:0),r=2;r<o;r++)a[r-2]=arguments[r];return e.apply(t,a)}),I||(I=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];return new e(...o)});const M=Q(Array.prototype.forEach),z=Q(Array.prototype.lastIndexOf),P=Q(Array.prototype.pop),U=Q(Array.prototype.push),F=Q(Array.prototype.splice),H=Q(String.prototype.toLowerCase),B=Q(String.prototype.toString),W=Q(String.prototype.match),q=Q(String.prototype.replace),G=Q(String.prototype.indexOf),Y=Q(String.prototype.trim),$=Q(Object.prototype.hasOwnProperty),V=Q(RegExp.prototype.test),X=(K=TypeError,function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return I(K,t)});var K;function Q(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var o=arguments.length,a=new Array(o>1?o-1:0),r=1;r<o;r++)a[r-1]=arguments[r];return D(e,t,a)}}function J(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H;S&&S(e,null);let a=t.length;for(;a--;){let r=t[a];if("string"==typeof r){const e=o(r);e!==r&&(j(t)||(t[a]=e),r=e)}e[r]=!0}return e}function Z(e){for(let t=0;t<e.length;t++){$(e,t)||(e[t]=null)}return e}function ee(e){const t=O(null);for(const[o,a]of v(e)){$(e,o)&&(Array.isArray(a)?t[o]=Z(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=ee(a):t[o]=a)}return t}function te(e,t){for(;null!==e;){const o=k(e,t);if(o){if(o.get)return Q(o.get);if("function"==typeof o.value)return Q(o.value)}e=C(e)}return function(){return null}}const oe=R(["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"]),ae=R(["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"]),re=R(["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"]),ne=R(["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"]),ie=R(["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"]),se=R(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),le=R(["#text"]),ce=R(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","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","slot"]),me=R(["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","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","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-rendering","textlength","type","u1","u2","unicode","values","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"]),de=R(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),ue=R(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pe=L(/\{\{[\w\W]*|[\w\W]*\}\}/gm),fe=L(/<%[\w\W]*|[\w\W]*%>/gm),he=L(/\$\{[\w\W]*/gm),ge=L(/^data-[\-\w.\u00B7-\uFFFF]+$/),be=L(/^aria-[\-\w]+$/),xe=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ye=L(/^(?:\w+script|data):/i),Ne=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Te=L(/^html$/i),we=L(/^[a-z][.\w]*(-[.\w]+)+$/i);var _e=Object.freeze({__proto__:null,ARIA_ATTR:be,ATTR_WHITESPACE:Ne,CUSTOM_ELEMENT:we,DATA_ATTR:ge,DOCTYPE_NAME:Te,ERB_EXPR:fe,IS_ALLOWED_URI:xe,IS_SCRIPT_OR_DATA:ye,MUSTACHE_EXPR:pe,TMPLIT_EXPR:he});const Ae=1,Ee=3,ve=7,Se=8,je=9;var Ce=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const o=t=>e(t);if(o.version="3.3.0",o.removed=[],!t||!t.document||t.document.nodeType!==je||!t.Element)return o.isSupported=!1,o;let{document:a}=t;const r=a,n=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:m,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:p,trustedTypes:f}=t,h=c.prototype,g=te(h,"cloneNode"),b=te(h,"remove"),x=te(h,"nextSibling"),y=te(h,"childNodes"),N=te(h,"parentNode");if("function"==typeof s){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let T,w="";const{implementation:_,createNodeIterator:A,createDocumentFragment:E,getElementsByTagName:S}=a,{importNode:j}=r;let C={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof v&&"function"==typeof N&&_&&void 0!==_.createHTMLDocument;const{MUSTACHE_EXPR:k,ERB_EXPR:L,TMPLIT_EXPR:D,DATA_ATTR:I,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:Q,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:pe}=_e;let{IS_ALLOWED_URI:fe}=_e,he=null;const ge=J({},[...oe,...ae,...re,...ie,...le]);let be=null;const ye=J({},[...ce,...me,...de,...ue]);let Ne=Object.seal(O(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}})),we=null,Ce=null;const ke=Object.seal(O(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Re=!0,Le=!0,Oe=!1,De=!0,Ie=!1,Me=!0,ze=!1,Pe=!1,Ue=!1,Fe=!1,He=!1,Be=!1,We=!0,qe=!1,Ge=!0,Ye=!1,$e={},Ve=null;const Xe=J({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ke=null;const Qe=J({},["audio","video","img","source","image","track"]);let Je=null;const Ze=J({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let at=ot,rt=!1,nt=null;const it=J({},[et,tt,ot],B);let st=J({},["mi","mo","mn","ms","mtext"]),lt=J({},["annotation-xml"]);const ct=J({},["title","style","font","a","script"]);let mt=null;const dt=["application/xhtml+xml","text/html"];let ut=null,pt=null;const ft=a.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&"object"==typeof e||(e={}),e=ee(e),mt=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ut="application/xhtml+xml"===mt?B:H,he=$(e,"ALLOWED_TAGS")?J({},e.ALLOWED_TAGS,ut):ge,be=$(e,"ALLOWED_ATTR")?J({},e.ALLOWED_ATTR,ut):ye,nt=$(e,"ALLOWED_NAMESPACES")?J({},e.ALLOWED_NAMESPACES,B):it,Je=$(e,"ADD_URI_SAFE_ATTR")?J(ee(Ze),e.ADD_URI_SAFE_ATTR,ut):Ze,Ke=$(e,"ADD_DATA_URI_TAGS")?J(ee(Qe),e.ADD_DATA_URI_TAGS,ut):Qe,Ve=$(e,"FORBID_CONTENTS")?J({},e.FORBID_CONTENTS,ut):Xe,we=$(e,"FORBID_TAGS")?J({},e.FORBID_TAGS,ut):ee({}),Ce=$(e,"FORBID_ATTR")?J({},e.FORBID_ATTR,ut):ee({}),$e=!!$(e,"USE_PROFILES")&&e.USE_PROFILES,Re=!1!==e.ALLOW_ARIA_ATTR,Le=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ie=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,ze=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Ue=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,qe=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,fe=e.ALLOWED_URI_REGEXP||xe,at=e.NAMESPACE||ot,st=e.MATHML_TEXT_INTEGRATION_POINTS||st,lt=e.HTML_INTEGRATION_POINTS||lt,Ne=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ne.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ne.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ne.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Le=!1),He&&(Fe=!0),$e&&(he=J({},le),be=[],!0===$e.html&&(J(he,oe),J(be,ce)),!0===$e.svg&&(J(he,ae),J(be,me),J(be,ue)),!0===$e.svgFilters&&(J(he,re),J(be,me),J(be,ue)),!0===$e.mathMl&&(J(he,ie),J(be,de),J(be,ue))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?ke.tagCheck=e.ADD_TAGS:(he===ge&&(he=ee(he)),J(he,e.ADD_TAGS,ut))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?ke.attributeCheck=e.ADD_ATTR:(be===ye&&(be=ee(be)),J(be,e.ADD_ATTR,ut))),e.ADD_URI_SAFE_ATTR&&J(Je,e.ADD_URI_SAFE_ATTR,ut),e.FORBID_CONTENTS&&(Ve===Xe&&(Ve=ee(Ve)),J(Ve,e.FORBID_CONTENTS,ut)),Ge&&(he["#text"]=!0),ze&&J(he,["html","head","body"]),he.table&&(J(he,["tbody"]),delete we.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw X('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw X('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=e.TRUSTED_TYPES_POLICY,w=T.createHTML("")}else void 0===T&&(T=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let o=null;const a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(o=t.getAttribute(a));const r="dompurify"+(o?"#"+o:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(n){return null}}(f,n)),null!==T&&"string"==typeof w&&(w=T.createHTML(""));R&&R(e),pt=e}},bt=J({},[...ae,...re,...ne]),xt=J({},[...ie,...se]),yt=function(e){U(o.removed,{element:e});try{N(e).removeChild(e)}catch(t){b(e)}},Nt=function(e,t){try{U(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(a){U(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Fe||He)try{yt(t)}catch(a){}else try{t.setAttribute(e,"")}catch(a){}},Tt=function(e){let t=null,o=null;if(Ue)e="<remove></remove>"+e;else{const t=W(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===mt&&at===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=T?T.createHTML(e):e;if(at===ot)try{t=(new p).parseFromString(r,mt)}catch(i){}if(!t||!t.documentElement){t=_.createDocument(at,"template",null);try{t.documentElement.innerHTML=rt?w:r}catch(i){}}const n=t.body||t.documentElement;return e&&o&&n.insertBefore(a.createTextNode(o),n.childNodes[0]||null),at===ot?S.call(t,ze?"html":"body")[0]:ze?t.documentElement:n},wt=function(e){return A.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof u&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(e){return"function"==typeof l&&e instanceof l};function Et(e,t,a){M(e,e=>{e.call(o,t,a,pt)})}const vt=function(e){let t=null;if(Et(C.beforeSanitizeElements,e,null),_t(e))return yt(e),!0;const a=ut(e.nodeName);if(Et(C.uponSanitizeElement,e,{tagName:a,allowedTags:he}),Me&&e.hasChildNodes()&&!At(e.firstElementChild)&&V(/<[/\w!]/g,e.innerHTML)&&V(/<[/\w!]/g,e.textContent))return yt(e),!0;if(e.nodeType===ve)return yt(e),!0;if(Me&&e.nodeType===Se&&V(/<[/\w]/g,e.data))return yt(e),!0;if(!(ke.tagCheck instanceof Function&&ke.tagCheck(a))&&(!he[a]||we[a])){if(!we[a]&&jt(a)){if(Ne.tagNameCheck instanceof RegExp&&V(Ne.tagNameCheck,a))return!1;if(Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(a))return!1}if(Ge&&!Ve[a]){const t=N(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&t){for(let a=o.length-1;a>=0;--a){const r=g(o[a],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,x(e))}}}return yt(e),!0}return e instanceof c&&!function(e){let t=N(e);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});const o=H(e.tagName),a=H(t.tagName);return!!nt[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===ot?"svg"===o:t.namespaceURI===et?"svg"===o&&("annotation-xml"===a||st[a]):Boolean(bt[o]):e.namespaceURI===et?t.namespaceURI===ot?"math"===o:t.namespaceURI===tt?"math"===o&&lt[a]:Boolean(xt[o]):e.namespaceURI===ot?!(t.namespaceURI===tt&&!lt[a])&&!(t.namespaceURI===et&&!st[a])&&!xt[o]&&(ct[o]||!bt[o]):!("application/xhtml+xml"!==mt||!nt[e.namespaceURI]))}(e)?(yt(e),!0):"noscript"!==a&&"noembed"!==a&&"noframes"!==a||!V(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&e.nodeType===Ee&&(t=e.textContent,M([k,L,D],e=>{t=q(t,e," ")}),e.textContent!==t&&(U(o.removed,{element:e.cloneNode()}),e.textContent=t)),Et(C.afterSanitizeElements,e,null),!1):(yt(e),!0)},St=function(e,t,o){if(We&&("id"===t||"name"===t)&&(o in a||o in ft))return!1;if(Le&&!Ce[t]&&V(I,t));else if(Re&&V(K,t));else if(ke.attributeCheck instanceof Function&&ke.attributeCheck(t,e));else if(!be[t]||Ce[t]){if(!(jt(e)&&(Ne.tagNameCheck instanceof RegExp&&V(Ne.tagNameCheck,e)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(e))&&(Ne.attributeNameCheck instanceof RegExp&&V(Ne.attributeNameCheck,t)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(t,e))||"is"===t&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&V(Ne.tagNameCheck,o)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(o))))return!1}else if(Je[t]);else if(V(fe,q(o,Z,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==G(o,"data:")||!Ke[e]){if(Oe&&!V(Q,q(o,Z,"")));else if(o)return!1}else;return!0},jt=function(e){return"annotation-xml"!==e&&W(e,pe)},Ct=function(e){Et(C.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:s,namespaceURI:l,value:c}=i,m=ut(s),d=c;let u="value"===s?d:Y(d);if(a.attrName=m,a.attrValue=u,a.keepAttr=!0,a.forceKeepAttr=void 0,Et(C.uponSanitizeAttribute,e,a),u=a.attrValue,!qe||"id"!==m&&"name"!==m||(Nt(s,e),u="user-content-"+u),Me&&V(/((--!?|])>)|<\/(style|title|textarea)/i,u)){Nt(s,e);continue}if("attributename"===m&&W(u,"href")){Nt(s,e);continue}if(a.forceKeepAttr)continue;if(!a.keepAttr){Nt(s,e);continue}if(!De&&V(/\/>/i,u)){Nt(s,e);continue}Ie&&M([k,L,D],e=>{u=q(u,e," ")});const p=ut(e.nodeName);if(St(p,m,u)){if(T&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(l);else switch(f.getAttributeType(p,m)){case"TrustedHTML":u=T.createHTML(u);break;case"TrustedScriptURL":u=T.createScriptURL(u)}if(u!==d)try{l?e.setAttributeNS(l,s,u):e.setAttribute(s,u),_t(e)?yt(e):P(o.removed)}catch(n){Nt(s,e)}}else Nt(s,e)}Et(C.afterSanitizeAttributes,e,null)},kt=function e(t){let o=null;const a=wt(t);for(Et(C.beforeSanitizeShadowDOM,t,null);o=a.nextNode();)Et(C.uponSanitizeShadowNode,o,null),vt(o),Ct(o),o.content instanceof i&&e(o.content);Et(C.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null,n=null,s=null,c=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!At(e)){if("function"!=typeof e.toString)throw X("toString is not a function");if("string"!=typeof(e=e.toString()))throw X("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Pe||gt(t),o.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=ut(e.nodeName);if(!he[t]||we[t])throw X("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)a=Tt("\x3c!----\x3e"),n=a.ownerDocument.importNode(e,!0),n.nodeType===Ae&&"BODY"===n.nodeName||"HTML"===n.nodeName?a=n:a.appendChild(n);else{if(!Fe&&!Ie&&!ze&&-1===e.indexOf("<"))return T&&Be?T.createHTML(e):e;if(a=Tt(e),!a)return Fe?null:Be?w:""}a&&Ue&&yt(a.firstChild);const m=wt(Ye?e:a);for(;s=m.nextNode();)vt(s),Ct(s),s.content instanceof i&&kt(s.content);if(Ye)return e;if(Fe){if(He)for(c=E.call(a.ownerDocument);a.firstChild;)c.appendChild(a.firstChild);else c=a;return(be.shadowroot||be.shadowrootmode)&&(c=j.call(r,c,!0)),c}let d=ze?a.outerHTML:a.innerHTML;return ze&&he["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&V(Te,a.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+d),Ie&&M([k,L,D],e=>{d=q(d,e," ")}),T&&Be?T.createHTML(d):d},o.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pe=!0},o.clearConfig=function(){pt=null,Pe=!1},o.isValidAttribute=function(e,t,o){pt||gt({});const a=ut(e),r=ut(t);return St(a,r,o)},o.addHook=function(e,t){"function"==typeof t&&U(C[e],t)},o.removeHook=function(e,t){if(void 0!==t){const o=z(C[e],t);return-1===o?void 0:F(C[e],o,1)[0]}return P(C[e])},o.removeHooks=function(e){C[e]=[]},o.removeAllHooks=function(){C={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();const ke=()=>{var v,S;const{slug:j}=r(),{toast:C}=c(),[k,R]=n.useState("client"),L=j?j.split("-").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):"Blog Sempre Comigo";n.useEffect(()=>{window.scrollTo(0,0)},[j]);const{data:O,isLoading:D,error:I}=f({queryKey:["blog-post",j],queryFn:async()=>{const{data:e,error:t}=await p.from("blog_posts").select("*").eq("slug",j).eq("status","published").single();if(t)throw t;return await p.from("blog_posts").update({view_count:(e.view_count||0)+1}).eq("id",e.id),e},retry:!1}),M={"rastreamento-veicular":["gestao-frotas","seguros-protecao"],"seguros-protecao":["assistencia-24h","rastreamento-veicular"],"assistencia-24h":["seguros-protecao","dicas-utilidades"],"gestao-frotas":["rastreamento-veicular","pequenas-medias-empresas"],franquias:[],"pequenas-medias-empresas":["gestao-frotas","rastreamento-veicular"],"dicas-utilidades":["assistencia-24h","seguros-protecao"],"gestao-pessoas-motoristas":["gestao-frotas","rastreamento-veicular"]},{data:z}=f({queryKey:["related-articles",null==O?void 0:O.category,null==O?void 0:O.id],queryFn:async()=>{if(!O)return[];const{data:e}=await p.from("blog_posts").select("id, title, slug, excerpt, featured_image, published_at, category").eq("category",O.category).eq("status","published").neq("id",O.id).order("published_at",{ascending:!1}).limit(2),t=e||[];if(t.length<3){const e=M[O.category]||[];if(e.length>0){const{data:o}=await p.from("blog_posts").select("id, title, slug, excerpt, featured_image, published_at, category").in("category",e).eq("status","published").neq("id",O.id).order("published_at",{ascending:!1}).limit(3-t.length);o&&t.push(...o)}}return t},enabled:!!O}),P="undefined"!=typeof window?window.location.href:"",U=e=>{const t=encodeURIComponent(P),o={facebook:`https://www.facebook.com/sharer/sharer.php?u=${t}`,twitter:`https://twitter.com/intent/tweet?url=${t}&text=${encodeURIComponent((null==O?void 0:O.title)||"")}`,linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${t}`,copy:P};"copy"===e?(navigator.clipboard.writeText(P),C({title:"Link copiado!",description:"O link foi copiado para a área de transferência."})):window.open(o[e],"_blank","width=600,height=400")},F=O?Math.ceil(O.content.replace(/<[^>]*>/g," ").split(/\s+/).length/200):0,H=(null==O?void 0:O.title)||L,B=(null==O?void 0:O.meta_description)||`Leia conteúdos sobre ${L.toLowerCase()}, assistência 24h, rastreamento e segurança veicular com orientações práticas da Sempre Comigo.`,W=`/blog/${j||""}`;if(D)return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white",children:[e.jsx(h,{title:H,description:B,canonical:W,type:"article"}),e.jsx(t,{viewMode:k,onViewModeChange:R}),e.jsx("div",{className:"container mx-auto px-4 py-12",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx(m,{className:"h-8 w-3/4 mb-4"}),e.jsx(m,{className:"h-4 w-1/2 mb-8"}),e.jsx(m,{className:"h-96 w-full mb-8"}),e.jsx(m,{className:"h-4 w-full mb-2"}),e.jsx(m,{className:"h-4 w-full mb-2"}),e.jsx(m,{className:"h-4 w-3/4"})]})}),e.jsx(o,{})]});if(I||!O)return e.jsxs(e.Fragment,{children:[e.jsx(h,{title:"Artigo não encontrado",description:"O artigo solicitado não está disponível. Explore outros conteúdos sobre rastreamento, assistência 24h e segurança veicular.",canonical:"/blog",noIndex:!0}),e.jsx(i,{to:"/blog",replace:!0})]});const q={"@context":"https://schema.org","@type":"BlogPosting",headline:O.title,description:O.meta_description,image:(G=O.featured_image,G?G.startsWith("http://")||G.startsWith("https://")?G:`https://semprecomigo.com.br${G}`:"https://semprecomigo.com.br/assets/logo.png"),author:{"@type":"Organization",name:O.author||"Sempre Comigo"},publisher:{"@type":"Organization",name:"Sempre Comigo",logo:{"@type":"ImageObject",url:"https://semprecomigo.com.br/assets/logo.png"}},datePublished:O.published_at,dateModified:O.updated_at||O.published_at,mainEntityOfPage:{"@type":"WebPage","@id":`https://semprecomigo.com.br/blog/${O.slug}`},keywords:null==(v=O.keywords)?void 0:v.join(", ")};var G;const Y={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://semprecomigo.com.br"},{"@type":"ListItem",position:2,name:"Blog",item:"https://semprecomigo.com.br/blog"},{"@type":"ListItem",position:3,name:O.title,item:`https://semprecomigo.com.br/blog/${O.slug}`}]};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white",children:[e.jsx(h,{title:H,description:B,image:O.featured_image,canonical:W,type:"article",publishedTime:O.published_at,author:O.author,keywords:null==(S=O.keywords)?void 0:S.join(", ")}),e.jsxs(d,{children:[e.jsx("script",{type:"application/ld+json",children:JSON.stringify(q)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(Y)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:"Sempre Comigo",url:"https://semprecomigo.com.br",logo:"https://semprecomigo.com.br/assets/logo.png",description:"Empresa especializada em rastreamento veicular, assistência 24h e seguros desde 2014.",foundingDate:"2014",numberOfEmployees:{"@type":"QuantitativeValue",value:40},address:{"@type":"PostalAddress",streetAddress:"Rua Rio Beberibe, 30A - Emaús",addressLocality:"Parnamirim",addressRegion:"RN",postalCode:"59141-050",addressCountry:"BR"},contactPoint:{"@type":"ContactPoint",telephone:"+55-0800-111-8686",contactType:"customer service",availableLanguage:"Portuguese"},sameAs:["https://www.facebook.com/semprecomigobr","https://www.instagram.com/semprecomigobr_oficial/","https://br.linkedin.com/company/semprecomigo","https://www.youtube.com/@semprecomigo"]})})]}),e.jsx(t,{viewMode:k,onViewModeChange:R}),e.jsx(l,{items:[{label:"Blog",href:"/blog"},{label:O.category.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),href:`/blog?category=${O.category}`},{label:O.title}]}),e.jsx("article",{className:"container mx-auto px-4 py-12",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("div",{className:"mb-6 flex justify-end",children:e.jsx(u,{variant:"outline",size:"sm",asChild:!0,children:e.jsx(s,{to:"/blog",children:"← Voltar ao Blog"})})}),e.jsx(g,{className:"mb-8 bg-gradient-to-r from-primary/10 to-primary/5 border-primary/20",children:e.jsxs(b,{className:"p-6 flex flex-col md:flex-row items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg mb-1",children:"Precisa de Proteção para seu Veículo?"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Faça uma cotação gratuita em menos de 2 minutos"})]}),e.jsx(u,{asChild:!0,children:e.jsx("a",{href:"https://semprecomigo.com.br/loja?utm_source=blog&utm_medium=banner&utm_campaign=top-cta",target:"_blank",rel:"noopener noreferrer",children:"Cotar Agora"})})]})}),e.jsxs("header",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4 leading-tight",children:O.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-muted-foreground mb-6",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{className:"h-4 w-4"}),e.jsx("span",{children:O.author})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T,{className:"h-4 w-4"}),e.jsx("span",{children:new Date(O.published_at).toLocaleDateString("pt-BR",{day:"2-digit",month:"long",year:"numeric"})})]}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs("span",{children:[F," min de leitura"]})})]}),O.featured_image&&e.jsx("div",{className:"relative w-full h-[400px] rounded-lg overflow-hidden mb-8 bg-gray-100",children:e.jsx("img",{src:O.featured_image||"/assets/blog-fallback.jpg",alt:O.image_alt||O.title,className:"w-full h-full object-cover",loading:"eager",width:"1200",height:"630",decoding:"sync",onError:e=>{e.currentTarget.src="/assets/blog-fallback.jpg"}})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-sm font-semibold",children:"Compartilhar:"}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>U("facebook"),children:e.jsx(w,{className:"h-4 w-4"})}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>U("twitter"),children:e.jsx(_,{className:"h-4 w-4"})}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>U("linkedin"),children:e.jsx(A,{className:"h-4 w-4"})}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>U("copy"),children:e.jsx(E,{className:"h-4 w-4"})})]})]}),e.jsx("div",{className:"prose prose-xl max-w-none mb-12 blog-content",dangerouslySetInnerHTML:{__html:Ce.sanitize(O.content,{ALLOWED_TAGS:["p","br","strong","em","u","h1","h2","h3","h4","h5","h6","ul","ol","li","a","img","blockquote","code","pre","span","div"],ALLOWED_ATTR:["href","src","alt","title","class","id","target","rel"],ALLOW_DATA_ATTR:!1})}}),(O.category.toLowerCase().includes("franquia")||O.keywords.some(e=>e.toLowerCase().includes("franquia")))&&e.jsx(g,{className:"mb-12 border-2 border-primary/20 bg-primary/5",children:e.jsx(b,{className:"pt-6",children:e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Quer Abrir Sua Própria Franquia Sempre Comigo?"}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"Invista em um negócio consolidado com 12 anos de mercado e receita recorrente. Modelos a partir de R$ 35.000."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(u,{size:"lg",asChild:!0,children:e.jsx(s,{to:"/franquia",children:"Conhecer a Franquia"})}),e.jsx(u,{size:"lg",variant:"outline",asChild:!0,children:e.jsx("a",{href:"https://wa.me/5584996380412?text=Olá! Vi o artigo sobre franquia e gostaria de mais informações.",target:"_blank",rel:"noopener noreferrer",children:"Falar no WhatsApp"})})]})]})})}),e.jsxs("aside",{className:"mt-12 mb-12",children:[e.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Nossos Serviços"}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[e.jsxs(g,{className:"hover:shadow-lg transition-shadow",children:[e.jsx(x,{children:e.jsx(y,{className:"text-lg",children:"Rastreamento GPS"})}),e.jsxs(b,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Monitoramento 24h do seu veículo com tecnologia de ponta"}),e.jsx(u,{size:"sm",asChild:!0,className:"w-full",children:e.jsx("a",{href:"https://semprecomigo.com.br/loja/plano-rastreamento?utm_source=blog&utm_medium=related&utm_campaign=rastreamento",target:"_blank",rel:"noopener noreferrer",children:"Ver Planos"})})]})]}),e.jsxs(g,{className:"hover:shadow-lg transition-shadow",children:[e.jsx(x,{children:e.jsx(y,{className:"text-lg",children:"Assistência 24h"})}),e.jsxs(b,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Socorro completo para seu veículo quando você mais precisa"}),e.jsx(u,{size:"sm",asChild:!0,className:"w-full",children:e.jsx("a",{href:"https://semprecomigo.com.br/loja/plano-assistencia?utm_source=blog&utm_medium=related&utm_campaign=assistencia",target:"_blank",rel:"noopener noreferrer",children:"Contratar"})})]})]}),e.jsxs(g,{className:"hover:shadow-lg transition-shadow",children:[e.jsx(x,{children:e.jsx(y,{className:"text-lg",children:"Seguros"})}),e.jsxs(b,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Proteção completa do seu veículo com as melhores coberturas"}),e.jsx(u,{size:"sm",asChild:!0,className:"w-full",children:e.jsx("a",{href:"https://semprecomigo.com.br/loja?utm_source=blog&utm_medium=related&utm_campaign=seguros",target:"_blank",rel:"noopener noreferrer",children:"Cotar Seguro"})})]})]})]})]}),z&&z.length>0&&e.jsxs("aside",{className:"mt-12",children:[e.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Artigos Relacionados"}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:z.map((t,o)=>e.jsxs(s,{to:`/blog/${t.slug}`,className:"group hover:shadow-lg transition-all rounded-lg overflow-hidden bg-white",children:[t.featured_image&&e.jsx("div",{className:"relative h-40 overflow-hidden",children:e.jsx("img",{src:t.featured_image,alt:t.title,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-300",loading:"lazy",width:"400",height:"225",decoding:"async"})}),e.jsxs("div",{className:"p-4",children:[e.jsx("h4",{className:"font-bold mb-2 group-hover:text-primary transition-colors line-clamp-2",children:t.title}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:t.excerpt})]})]},t.id))})]})]})}),e.jsx(a,{}),e.jsx(o,{})]})};export{ke as default};