(()=>{var w=(p,s)=>{fetch(`${p}/submissions`,{method:"POST",credentials:"include",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).catch(()=>{})};var J=(p)=>("fbp"in p)&&("ev"in p),N=(p)=>{let s=Object.fromEntries(new FormData(p).entries());if(J(s))return null;return s},x=(p)=>{let s=new WeakSet,t=new WeakSet,y=(c)=>{if(s.has(c))return;s.add(c);let n=N(c);if(!n)return;w(p,n)},T=(c)=>{let n=c.target;if(!n?.reportValidity())return;y(n)};document.addEventListener("submit",T,!0);let A=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){if(this.reportValidity())y(this);return A.call(this)};let j=(c)=>{if(t.has(c))return;try{let n=c.contentDocument??c.contentWindow?.document;if(!n)return;t.add(c),n.addEventListener("submit",T,!0)}catch{}},g=(c)=>{if(c.contentDocument?.readyState==="complete")j(c);else c.addEventListener("load",()=>j(c))};document.querySelectorAll("iframe").forEach(g),new MutationObserver((c)=>{for(let n of c)n.addedNodes.forEach((O)=>{if(O instanceof HTMLIFrameElement)g(O);else if(O instanceof HTMLElement)O.querySelectorAll("iframe").forEach(g)})}).observe(document.body,{childList:!0,subtree:!0})};var R=document.currentScript,h=R?.getAttribute("src");if(h){let p=h.substring(0,h.lastIndexOf("/"));x(p)}})();