1class m{constructor(t=0,r="Network Error"){this.status=t,this.text=r}}const S=()=>{if(!(typeof localStorage>"u"))return{get:e=>Promise.resolve(localStorage.getItem(e)),set:(e,t)=>Promise.resolve(localStorage.setItem(e,t)),remove:e=>Promise.resolve(localStorage.removeItem(e))}},s={origin:"https://api.emailjs.com",blockHeadless:!1,storageProvider:S()},p=e=>e?typeof e=="string"?{publicKey:e}:e.toString()==="[object Object]"?e:{}:{},_=(e,t="https://api.emailjs.com")=>{if(!e)return;const r=p(e);s.publicKey=r.publicKey,s.blockHeadless=r.blockHeadless,s.storageProvider=r.storageProvider,s.blockList=r.blockList,s.limitRate=r.limitRate,s.origin=r.origin||t},w=async(e,t,r={})=>{const o=await fetch(s.origin+e,{method:"POST",headers:r,body:t}),i=await o.text(),a=new m(o.status,i);if(o.ok)return a;throw a},k=(e,t,r)=>{if(!e||typeof e!="string")throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t||typeof t!="string")throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!r||typeof r!="string")throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates"},H=e=>{if(e&&e.toString()!=="[object Object]")throw"The template params have to be the object. Visit https://www.emailjs.com/docs/sdk/send/"},L=e=>e.webdriver||!e.languages||e.languages.length===0,P=()=>new m(451,"Unavailable For Headless Browser"),V=(e,t)=>{if(!Array.isArray(e))throw"The BlockList list has to be an array";if(typeof t!="string")throw"The BlockList watchVariable has to be a string"},B=e=>!e.list?.length||!e.watchVariable,F=(e,t)=>e instanceof FormData?e.get(t):e[t],T=(e,t)=>{if(B(e))return!1;V(e.list,e.watchVariable);const r=F(t,e.watchVariable);return typeof r!="string"?!1:e.list.includes(r)},j=()=>new m(403,"Forbidden"),I=(e,t)=>{if(typeof e!="number"||e<0)throw"The LimitRate throttle has to be a positive number";if(t&&typeof t!="string")throw"The LimitRate ID has to be a non-empty string"},K=async(e,t,r)=>{const o=Number(await r.get(e)||0);return t-Date.now()+o},E=async(e,t,r)=>{if(!t.throttle||!r)return!1;I(t.throttle,t.id);const o=t.id||e;return await K(o,t.throttle,r)>0?!0:(await r.set(o,Date.now().toString()),!1)},R=()=>new m(429,"Too Many Requests"),x=async(e,t,r,o)=>{const i=p(o),a=i.publicKey||s.publicKey,u=i.blockHeadless||s.blockHeadless,b=i.storageProvider||s.storageProvider,f={...s.blockList,...i.blockList},h={...s.limitRate,...i.limitRate};return u&&L(navigator)?Promise.reject(P()):(k(a,e,t),H(r),r&&T(f,r)?Promise.reject(j()):await E(location.pathname,h,b)?Promise.reject(R()):w("/api/v1.0/email/send",JSON.stringify({lib_version:"4.4.1",user_id:a,service_id:e,template_id:t,template_params:r}),{"Content-type":"application/json"}))},N=e=>{if(!e||e.nodeName!=="FORM")throw"The 3rd parameter is expected to be the HTML form element or the style selector of the form"},C=e=>typeof e=="string"?document.querySelector(e):e,D=async(e,t,r,o)=>{const i=p(o),a=i.publicKey||s.publicKey,u=i.blockHeadless||s.blockHeadless,b=s.storageProvider||i.storageProvider,f={...s.blockList,...i.blockList},h={...s.limitRate,...i.limitRate};if(u&&L(navigator))return Promise.reject(P());const g=C(r);k(a,e,t),N(g);const c=new FormData(g);return T(f,c)?Promise.reject(j()):await E(location.pathname,h,b)?Promise.reject(R()):(c.append("lib_version","4.4.1"),c.append("service_id",e),c.append("template_id",t),c.append("user_id",a),w("/api/v1.0/email/send-form",c))},y={init:_,send:x,sendForm:D,EmailJSResponseStatus:m},O="service_twct90m",M="template_ts314zi",q="r7sR9Nlr4CPvj1_e3",d=document.getElementById("contact-form"),n=document.getElementById("submit-button"),l=document.getElementById("form-status");function v(e,t){l&&(l.textContent=e,l.classList.remove("hidden"),l.classList.toggle("text-primary",t),l.classList.toggle("text-red-600",!t))}d&&(y.init({publicKey:q}),d.addEventListener("submit",async e=>{e.preventDefault();const t=n?.textContent??"ENVIAR";n&&(n.disabled=!0,n.textContent="ENVIANDO...");try{await y.sendForm(O,M,d),d.reset(),v("Mensagem enviada com sucesso! Em breve entrarei em contato.",!0)}catch(r){console.error("Erro ao enviar e-mail:",r),v("Não foi possÃvel enviar a mensagem. Tente novamente.",!1)}finally{n&&(n.disabled=!1,n.textContent=t)}}));
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.