import{j as e}from"./ui-vendor-ChZMp8UW.js";import{H as t}from"./Header-BhKe-yvd.js";import{F as o}from"./Footer-DENxtm0h.js";import{AppDownload as a}from"./AppDownload-CxUcDDuN.js";import{h as n,r,L as i}from"./react-vendor-SJkaNtXX.js";import{S as s}from"./SEOBreadcrumb-BtX1CWx9.js";import{u as l,S as c,B as m,H as d,s as u}from"./index-kLDukJJH.js";import{u as p}from"./useQuery-D0lkQCfK.js";import{S as f}from"./SEOHead-4QDTPfQ2.js";import{C as h,a as g,b as x,c as b}from"./card-CZYIQ2l-.js";import{Q as y,a0 as N,a1 as w,a2 as T,a3 as _,a4 as v}from"./icons-BXTKTZdO.js";import"./logo-oficial-BW9aD_Pb.js";import"./blur-C4W21N4H.js";import"./supabase-vendor-CkDt80Sz.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:A,setPrototypeOf:E,isFrozen:S,getPrototypeOf:j,getOwnPropertyDescriptor:C}=Object;let{freeze:k,seal:R,create:L}=Object,{apply:O,construct:D}="undefined"!=typeof Reflect&&Reflect;k||(k=function(e){return e}),R||(R=function(e){return e}),O||(O=function(e,t){for(var o=arguments.length,a=new Array(o>2?o-2:0),n=2;n<o;n++)a[n-2]=arguments[n];return e.apply(t,a)}),D||(D=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 I=K(Array.prototype.forEach),M=K(Array.prototype.lastIndexOf),z=K(Array.prototype.pop),P=K(Array.prototype.push),U=K(Array.prototype.splice),F=K(String.prototype.toLowerCase),H=K(String.prototype.toString),B=K(String.prototype.match),W=K(String.prototype.replace),q=K(String.prototype.indexOf),G=K(String.prototype.trim),Y=K(Object.prototype.hasOwnProperty),$=K(RegExp.prototype.test),V=(X=TypeError,function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return D(X,t)});var X;function K(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var o=arguments.length,a=new Array(o>1?o-1:0),n=1;n<o;n++)a[n-1]=arguments[n];return O(e,t,a)}}function Q(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:F;E&&E(e,null);let a=t.length;for(;a--;){let n=t[a];if("string"==typeof n){const e=o(n);e!==n&&(S(t)||(t[a]=e),n=e)}e[n]=!0}return e}function J(e){for(let t=0;t<e.length;t++){Y(e,t)||(e[t]=null)}return e}function Z(e){const t=L(null);for(const[o,a]of A(e)){Y(e,o)&&(Array.isArray(a)?t[o]=J(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=Z(a):t[o]=a)}return t}function ee(e,t){for(;null!==e;){const o=C(e,t);if(o){if(o.get)return K(o.get);if("function"==typeof o.value)return K(o.value)}e=j(e)}return function(){return null}}const te=k(["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"]),oe=k(["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"]),ae=k(["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=k(["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"]),re=k(["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"]),ie=k(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),se=k(["#text"]),le=k(["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"]),ce=k(["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"]),me=k(["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"]),de=k(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ue=R(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pe=R(/<%[\w\W]*|[\w\W]*%>/gm),fe=R(/\$\{[\w\W]*/gm),he=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),ge=R(/^aria-[\-\w]+$/),xe=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),be=R(/^(?:\w+script|data):/i),ye=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ne=R(/^html$/i),we=R(/^[a-z][.\w]*(-[.\w]+)+$/i);var Te=Object.freeze({__proto__:null,ARIA_ATTR:ge,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:we,DATA_ATTR:he,DOCTYPE_NAME:Ne,ERB_EXPR:pe,IS_ALLOWED_URI:xe,IS_SCRIPT_OR_DATA:be,MUSTACHE_EXPR:ue,TMPLIT_EXPR:fe});const _e=1,ve=3,Ae=7,Ee=8,Se=9;var je=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!==Se||!t.Element)return o.isSupported=!1,o;let{document:a}=t;const n=a,r=n.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=ee(h,"cloneNode"),x=ee(h,"remove"),b=ee(h,"nextSibling"),y=ee(h,"childNodes"),N=ee(h,"parentNode");if("function"==typeof s){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let w,T="";const{implementation:_,createNodeIterator:v,createDocumentFragment:E,getElementsByTagName:S}=a,{importNode:j}=n;let C={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof A&&"function"==typeof N&&_&&void 0!==_.createHTMLDocument;const{MUSTACHE_EXPR:R,ERB_EXPR:O,TMPLIT_EXPR:D,DATA_ATTR:X,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:J,ATTR_WHITESPACE:ue,CUSTOM_ELEMENT:pe}=Te;let{IS_ALLOWED_URI:fe}=Te,he=null;const ge=Q({},[...te,...oe,...ae,...re,...se]);let be=null;const ye=Q({},[...le,...ce,...me,...de]);let we=Object.seal(L(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}})),je=null,Ce=null;const ke=Object.seal(L(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=Q({},["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=Q({},["audio","video","img","source","image","track"]);let Je=null;const Ze=Q({},["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,nt=!1,rt=null;const it=Q({},[et,tt,ot],H);let st=Q({},["mi","mo","mn","ms","mtext"]),lt=Q({},["annotation-xml"]);const ct=Q({},["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=Z(e),mt=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ut="application/xhtml+xml"===mt?H:F,he=Y(e,"ALLOWED_TAGS")?Q({},e.ALLOWED_TAGS,ut):ge,be=Y(e,"ALLOWED_ATTR")?Q({},e.ALLOWED_ATTR,ut):ye,rt=Y(e,"ALLOWED_NAMESPACES")?Q({},e.ALLOWED_NAMESPACES,H):it,Je=Y(e,"ADD_URI_SAFE_ATTR")?Q(Z(Ze),e.ADD_URI_SAFE_ATTR,ut):Ze,Ke=Y(e,"ADD_DATA_URI_TAGS")?Q(Z(Qe),e.ADD_DATA_URI_TAGS,ut):Qe,Ve=Y(e,"FORBID_CONTENTS")?Q({},e.FORBID_CONTENTS,ut):Xe,je=Y(e,"FORBID_TAGS")?Q({},e.FORBID_TAGS,ut):Z({}),Ce=Y(e,"FORBID_ATTR")?Q({},e.FORBID_ATTR,ut):Z({}),$e=!!Y(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,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Le=!1),He&&(Fe=!0),$e&&(he=Q({},se),be=[],!0===$e.html&&(Q(he,te),Q(be,le)),!0===$e.svg&&(Q(he,oe),Q(be,ce),Q(be,de)),!0===$e.svgFilters&&(Q(he,ae),Q(be,ce),Q(be,de)),!0===$e.mathMl&&(Q(he,re),Q(be,me),Q(be,de))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?ke.tagCheck=e.ADD_TAGS:(he===ge&&(he=Z(he)),Q(he,e.ADD_TAGS,ut))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?ke.attributeCheck=e.ADD_ATTR:(be===ye&&(be=Z(be)),Q(be,e.ADD_ATTR,ut))),e.ADD_URI_SAFE_ATTR&&Q(Je,e.ADD_URI_SAFE_ATTR,ut),e.FORBID_CONTENTS&&(Ve===Xe&&(Ve=Z(Ve)),Q(Ve,e.FORBID_CONTENTS,ut)),Ge&&(he["#text"]=!0),ze&&Q(he,["html","head","body"]),he.table&&(Q(he,["tbody"]),delete je.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw V('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw V('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,T=w.createHTML("")}else void 0===w&&(w=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 n="dompurify"+(o?"#"+o:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(r){return null}}(f,r)),null!==w&&"string"==typeof T&&(T=w.createHTML(""));k&&k(e),pt=e}},xt=Q({},[...oe,...ae,...ne]),bt=Q({},[...re,...ie]),yt=function(e){P(o.removed,{element:e});try{N(e).removeChild(e)}catch(t){x(e)}},Nt=function(e,t){try{P(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(a){P(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){}},wt=function(e){let t=null,o=null;if(Ue)e="<remove></remove>"+e;else{const t=B(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 n=w?w.createHTML(e):e;if(at===ot)try{t=(new p).parseFromString(n,mt)}catch(i){}if(!t||!t.documentElement){t=_.createDocument(at,"template",null);try{t.documentElement.innerHTML=nt?T:n}catch(i){}}const r=t.body||t.documentElement;return e&&o&&r.insertBefore(a.createTextNode(o),r.childNodes[0]||null),at===ot?S.call(t,ze?"html":"body")[0]:ze?t.documentElement:r},Tt=function(e){return v.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)},vt=function(e){return"function"==typeof l&&e instanceof l};function At(e,t,a){I(e,e=>{e.call(o,t,a,pt)})}const Et=function(e){let t=null;if(At(C.beforeSanitizeElements,e,null),_t(e))return yt(e),!0;const a=ut(e.nodeName);if(At(C.uponSanitizeElement,e,{tagName:a,allowedTags:he}),Me&&e.hasChildNodes()&&!vt(e.firstElementChild)&&$(/<[/\w!]/g,e.innerHTML)&&$(/<[/\w!]/g,e.textContent))return yt(e),!0;if(e.nodeType===Ae)return yt(e),!0;if(Me&&e.nodeType===Ee&&$(/<[/\w]/g,e.data))return yt(e),!0;if(!(ke.tagCheck instanceof Function&&ke.tagCheck(a))&&(!he[a]||je[a])){if(!je[a]&&jt(a)){if(we.tagNameCheck instanceof RegExp&&$(we.tagNameCheck,a))return!1;if(we.tagNameCheck instanceof Function&&we.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 n=g(o[a],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,b(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=F(e.tagName),a=F(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===ot?"svg"===o:t.namespaceURI===et?"svg"===o&&("annotation-xml"===a||st[a]):Boolean(xt[o]):e.namespaceURI===et?t.namespaceURI===ot?"math"===o:t.namespaceURI===tt?"math"===o&<[a]:Boolean(bt[o]):e.namespaceURI===ot?!(t.namespaceURI===tt&&!lt[a])&&!(t.namespaceURI===et&&!st[a])&&!bt[o]&&(ct[o]||!xt[o]):!("application/xhtml+xml"!==mt||!rt[e.namespaceURI]))}(e)?(yt(e),!0):"noscript"!==a&&"noembed"!==a&&"noframes"!==a||!$(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&e.nodeType===ve&&(t=e.textContent,I([R,O,D],e=>{t=W(t,e," ")}),e.textContent!==t&&(P(o.removed,{element:e.cloneNode()}),e.textContent=t)),At(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]&&$(X,t));else if(Re&&$(K,t));else if(ke.attributeCheck instanceof Function&&ke.attributeCheck(t,e));else if(!be[t]||Ce[t]){if(!(jt(e)&&(we.tagNameCheck instanceof RegExp&&$(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&$(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t,e))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&$(we.tagNameCheck,o)||we.tagNameCheck instanceof Function&&we.tagNameCheck(o))))return!1}else if(Je[t]);else if($(fe,W(o,ue,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==q(o,"data:")||!Ke[e]){if(Oe&&!$(J,W(o,ue,"")));else if(o)return!1}else;return!0},jt=function(e){return"annotation-xml"!==e&&B(e,pe)},Ct=function(e){At(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 n=t.length;for(;n--;){const i=t[n],{name:s,namespaceURI:l,value:c}=i,m=ut(s),d=c;let u="value"===s?d:G(d);if(a.attrName=m,a.attrValue=u,a.keepAttr=!0,a.forceKeepAttr=void 0,At(C.uponSanitizeAttribute,e,a),u=a.attrValue,!qe||"id"!==m&&"name"!==m||(Nt(s,e),u="user-content-"+u),Me&&$(/((--!?|])>)|<\/(style|title|textarea)/i,u)){Nt(s,e);continue}if("attributename"===m&&B(u,"href")){Nt(s,e);continue}if(a.forceKeepAttr)continue;if(!a.keepAttr){Nt(s,e);continue}if(!De&&$(/\/>/i,u)){Nt(s,e);continue}Ie&&I([R,O,D],e=>{u=W(u,e," ")});const p=ut(e.nodeName);if(St(p,m,u)){if(w&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(l);else switch(f.getAttributeType(p,m)){case"TrustedHTML":u=w.createHTML(u);break;case"TrustedScriptURL":u=w.createScriptURL(u)}if(u!==d)try{l?e.setAttributeNS(l,s,u):e.setAttribute(s,u),_t(e)?yt(e):z(o.removed)}catch(r){Nt(s,e)}}else Nt(s,e)}At(C.afterSanitizeAttributes,e,null)},kt=function e(t){let o=null;const a=Tt(t);for(At(C.beforeSanitizeShadowDOM,t,null);o=a.nextNode();)At(C.uponSanitizeShadowNode,o,null),Et(o),Ct(o),o.content instanceof i&&e(o.content);At(C.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null,r=null,s=null,c=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!vt(e)){if("function"!=typeof e.toString)throw V("toString is not a function");if("string"!=typeof(e=e.toString()))throw V("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]||je[t])throw V("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)a=wt("\x3c!----\x3e"),r=a.ownerDocument.importNode(e,!0),r.nodeType===_e&&"BODY"===r.nodeName||"HTML"===r.nodeName?a=r:a.appendChild(r);else{if(!Fe&&!Ie&&!ze&&-1===e.indexOf("<"))return w&&Be?w.createHTML(e):e;if(a=wt(e),!a)return Fe?null:Be?T:""}a&&Ue&&yt(a.firstChild);const m=Tt(Ye?e:a);for(;s=m.nextNode();)Et(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(n,c,!0)),c}let d=ze?a.outerHTML:a.innerHTML;return ze&&he["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&$(Ne,a.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+d),Ie&&I([R,O,D],e=>{d=W(d,e," ")}),w&&Be?w.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),n=ut(t);return St(a,n,o)},o.addHook=function(e,t){"function"==typeof t&&P(C[e],t)},o.removeHook=function(e,t){if(void 0!==t){const o=M(C[e],t);return-1===o?void 0:U(C[e],o,1)[0]}return z(C[e])},o.removeHooks=function(e){C[e]=[]},o.removeAllHooks=function(){C={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();const Ce=()=>{var A,E;const{slug:S}=n(),{toast:j}=l(),[C,k]=r.useState("client"),R=S?S.split("-").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):"Blog Sempre Comigo";r.useEffect(()=>{window.scrollTo(0,0)},[S]);const{data:L,isLoading:O,error:D}=p({queryKey:["blog-post",S],queryFn:async()=>{const{data:e,error:t}=await u.from("blog_posts").select("*").eq("slug",S).eq("status","published").single();if(t)throw t;return await u.from("blog_posts").update({view_count:(e.view_count||0)+1}).eq("id",e.id),e},retry:!1}),I={"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:M}=p({queryKey:["related-articles",null==L?void 0:L.category,null==L?void 0:L.id],queryFn:async()=>{if(!L)return[];const{data:e}=await u.from("blog_posts").select("id, title, slug, excerpt, featured_image, published_at, category").eq("category",L.category).eq("status","published").neq("id",L.id).order("published_at",{ascending:!1}).limit(2),t=e||[];if(t.length<3){const e=I[L.category]||[];if(e.length>0){const{data:o}=await u.from("blog_posts").select("id, title, slug, excerpt, featured_image, published_at, category").in("category",e).eq("status","published").neq("id",L.id).order("published_at",{ascending:!1}).limit(3-t.length);o&&t.push(...o)}}return t},enabled:!!L}),z="undefined"!=typeof window?window.location.href:"",P=e=>{const t=encodeURIComponent(z),o={facebook:`https://www.facebook.com/sharer/sharer.php?u=${t}`,twitter:`https://twitter.com/intent/tweet?url=${t}&text=${encodeURIComponent((null==L?void 0:L.title)||"")}`,linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${t}`,copy:z};"copy"===e?(navigator.clipboard.writeText(z),j({title:"Link copiado!",description:"O link foi copiado para a área de transferência."})):window.open(o[e],"_blank","width=600,height=400")},U=L?Math.ceil(L.content.replace(/<[^>]*>/g," ").split(/\s+/).length/200):0,F=(null==L?void 0:L.title)||R,H=(null==L?void 0:L.meta_description)||`Leia conteúdos sobre ${R.toLowerCase()}, assistência 24h, rastreamento e segurança veicular com orientações práticas da Sempre Comigo.`,B=`/blog/${S||""}`;if(O)return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white",children:[e.jsx(f,{title:F,description:H,canonical:B,type:"article"}),e.jsx(t,{viewMode:C,onViewModeChange:k}),e.jsx("div",{className:"container mx-auto px-4 py-12",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx(c,{className:"h-8 w-3/4 mb-4"}),e.jsx(c,{className:"h-4 w-1/2 mb-8"}),e.jsx(c,{className:"h-96 w-full mb-8"}),e.jsx(c,{className:"h-4 w-full mb-2"}),e.jsx(c,{className:"h-4 w-full mb-2"}),e.jsx(c,{className:"h-4 w-3/4"})]})}),e.jsx(o,{})]});if(D||!L)return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white",children:[e.jsx(f,{title:"Artigo não encontrado",description:"Este artigo não está mais disponível. Explore outros conteúdos no nosso blog sobre rastreamento, assistência 24h e segurança veicular.",canonical:B,noIndex:!0}),e.jsx(t,{viewMode:C,onViewModeChange:k}),e.jsx("main",{className:"container mx-auto px-4 py-24",children:e.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Artigo não encontrado"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Este conteúdo pode ter sido movido ou despublicado. Confira outros artigos no nosso blog."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(m,{asChild:!0,size:"lg",children:e.jsx(i,{to:"/blog",children:"Ver todos os artigos"})}),e.jsx(m,{asChild:!0,size:"lg",variant:"outline",children:e.jsx(i,{to:"/",children:"Ir para a página inicial"})})]})]})}),e.jsx(o,{})]});const W={"@context":"https://schema.org","@type":"BlogPosting",headline:L.title,description:L.meta_description,image:(q=L.featured_image,q?q.startsWith("http://")||q.startsWith("https://")?q:`https://semprecomigo.com.br${q}`:"https://semprecomigo.com.br/assets/logo.png"),author:{"@type":"Organization",name:L.author||"Sempre Comigo"},publisher:{"@type":"Organization",name:"Sempre Comigo",logo:{"@type":"ImageObject",url:"https://semprecomigo.com.br/assets/logo.png"}},datePublished:L.published_at,dateModified:L.updated_at||L.published_at,mainEntityOfPage:{"@type":"WebPage","@id":`https://semprecomigo.com.br/blog/${L.slug}`},keywords:null==(A=L.keywords)?void 0:A.join(", ")};var q;const G={"@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:L.title,item:`https://semprecomigo.com.br/blog/${L.slug}`}]};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white",children:[e.jsx(f,{title:F,description:H,image:L.featured_image,canonical:B,type:"article",publishedTime:L.published_at,author:L.author,keywords:null==(E=L.keywords)?void 0:E.join(", ")}),e.jsxs(d,{children:[e.jsx("script",{type:"application/ld+json",children:JSON.stringify(W)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(G)}),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:C,onViewModeChange:k}),e.jsx(s,{items:[{label:"Blog",href:"/blog"},{label:L.category.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),href:`/blog?category=${L.category}`},{label:L.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(m,{variant:"outline",size:"sm",asChild:!0,children:e.jsx(i,{to:"/blog",children:"← Voltar ao Blog"})})}),e.jsx(h,{className:"mb-8 bg-gradient-to-r from-primary/10 to-primary/5 border-primary/20",children:e.jsxs(g,{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(m,{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:L.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(y,{className:"h-4 w-4"}),e.jsx("span",{children:L.author})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{className:"h-4 w-4"}),e.jsx("span",{children:new Date(L.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:[U," min de leitura"]})})]}),L.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:L.featured_image||"/assets/blog-fallback.jpg",alt:L.image_alt||L.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(m,{variant:"outline",size:"sm",onClick:()=>P("facebook"),children:e.jsx(w,{className:"h-4 w-4"})}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>P("twitter"),children:e.jsx(T,{className:"h-4 w-4"})}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>P("linkedin"),children:e.jsx(_,{className:"h-4 w-4"})}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>P("copy"),children:e.jsx(v,{className:"h-4 w-4"})})]})]}),e.jsx("div",{className:"prose prose-xl max-w-none mb-12 blog-content",dangerouslySetInnerHTML:{__html:je.sanitize(L.content,{ALLOWED_TAGS:["p","br","strong","em","u","h1","h2","h3","h4","h5","h6","ul","ol","li","a","img","blockquote","code","pre","span","div","table","thead","tbody","tfoot","tr","th","td","caption","colgroup","col"],ALLOWED_ATTR:["href","src","alt","title","class","id","target","rel","style","colspan","rowspan","scope"],ALLOW_DATA_ATTR:!1})}}),(L.category.toLowerCase().includes("franquia")||L.keywords.some(e=>e.toLowerCase().includes("franquia")))&&e.jsx(h,{className:"mb-12 border-2 border-primary/20 bg-primary/5",children:e.jsx(g,{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(m,{size:"lg",asChild:!0,children:e.jsx(i,{to:"/franquia",children:"Conhecer a Franquia"})}),e.jsx(m,{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(h,{className:"hover:shadow-lg transition-shadow",children:[e.jsx(x,{children:e.jsx(b,{className:"text-lg",children:"Rastreamento GPS"})}),e.jsxs(g,{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(m,{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(h,{className:"hover:shadow-lg transition-shadow",children:[e.jsx(x,{children:e.jsx(b,{className:"text-lg",children:"Assistência 24h"})}),e.jsxs(g,{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(m,{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(h,{className:"hover:shadow-lg transition-shadow",children:[e.jsx(x,{children:e.jsx(b,{className:"text-lg",children:"Seguros"})}),e.jsxs(g,{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(m,{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"})})]})]})]})]}),M&&M.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:M.map((t,o)=>e.jsxs(i,{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{Ce as default};