1websiteComponents.loader.define("website.components.form.visitor",[],()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t.r(e),t.d(e,{Visitor:()=>Y,default:()=>G});const o=(new Proxy({},{get:function(t){return()=>t}}),function(){const t=globalThis;return(t=>void 0!==t.SQUARESPACE_VISITOR_SENTRY)(t)?t.SQUARESPACE_VISITOR_SENTRY.captureException(...arguments):""});let i=!1,s=!1,a=!1,c=!1;"undefined"!=typeof window&&"CSS"in window&&"function"==typeof CSS.supports&&(i="Animation"in window,"ViewTimeline"in window&&CSS.supports("animation-range","entry 0% exit 100%"),a="registerProperty"in CSS,CSS.supports("animation-timing-function","linear(0, 0.25 75%, 1)"));const l=i&&a,u=()=>window.__sqsAnimationRuntime;function d(t){return"__proto__"===t}function h(t){if(!t||"object"!=typeof t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e))&&"[object Object]"===Object.prototype.toString.call(t)}function f(t,e,n){const r=Object.keys(e);for(let o=0;o<r.length;o++){const i=r[o];if(d(i))continue;const s=e[i],a=t[i],c=n(a,s,i,t,e);void 0!==c?t[i]=c:Array.isArray(s)?Array.isArray(a)?t[i]=f(a,s,n):t[i]=f([],s,n):h(s)?h(a)?t[i]=f(a,s,n):t[i]=f({},s,n):void 0!==a&&void 0===s||(t[i]=s)}return t}function p(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function b(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const m="[object String]",g="[object Number]",v="[object Boolean]",y="[object Arguments]",w="[object Object]";function k(t){return null==t||"object"!=typeof t&&"function"!=typeof t}function x(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function S(t,e,n,r=new Map,o=void 0){const i=o?.(t,e,n,r);if(void 0!==i)return i;if(k(t))return t;if(r.has(t))return r.get(t);if(Array.isArray(t)){const e=new Array(t.length);r.set(t,e);for(let i=0;i<t.length;i++)e[i]=S(t[i],i,n,r,o);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){const e=new Map;r.set(t,e);for(const[i,s]of t)e.set(i,S(s,i,n,r,o));return e}if(t instanceof Set){const e=new Set;r.set(t,e);for(const i of t)e.add(S(i,void 0,n,r,o));return e}if("undefined"!=typeof Buffer&&Buffer.isBuffer(t))return t.subarray();if(x(t)){const e=new(Object.getPrototypeOf(t).constructor)(t.length);r.set(t,e);for(let i=0;i<t.length;i++)e[i]=S(t[i],i,n,r,o);return e}if(t instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){const e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return r.set(t,e),O(e,t,n,r,o),e}if("undefined"!=typeof File&&t instanceof File){const e=new File([t],t.name,{type:t.type});return r.set(t,e),O(e,t,n,r,o),e}if("undefined"!=typeof Blob&&t instanceof Blob){const e=new Blob([t],{type:t.type});return r.set(t,e),O(e,t,n,r,o),e}if(t instanceof Error){const e=structuredClone(t);return r.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,O(e,t,n,r,o),e}if(t instanceof Boolean){const e=new Boolean(t.valueOf());return r.set(t,e),O(e,t,n,r,o),e}if(t instanceof Number){const e=new Number(t.valueOf());return r.set(t,e),O(e,t,n,r,o),e}if(t instanceof String){const e=new String(t.valueOf());return r.set(t,e),O(e,t,n,r,o),e}if("object"==typeof t&&function(t){switch(b(t)){case y:case"[object Array]":case"[object ArrayBuffer]":case"[object DataView]":case v:case"[object Date]":case"[object Float32Array]":case"[object Float64Array
1]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Map]":case g:case w:case"[object RegExp]":case"[object Set]":case m:case"[object Symbol]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return!0;default:return!1}}(t)){const e=Object.create(Object.getPrototypeOf(t));return r.set(t,e),O(e,t,n,r,o),e}return t}function O(t,e,n=t,r,o){const i=[...Object.keys(e),...p(e)];for(let s=0;s<i.length;s++){const a=i[s],c=Object.getOwnPropertyDescriptor(t,a);(null==c||c.writable)&&(t[a]=S(e[a],a,n,r,o))}}function j(t){return function(t,e){return function(t,e){return S(t,void 0,t,new Map,e)}(t,(n,r,o,i)=>{const s=e?.(n,r,o,i);if(void 0!==s)return s;if("object"==typeof t){if(b(t)===w&&"function"!=typeof t.constructor){const e={};return i.set(t,e),O(e,t,o,i),e}switch(Object.prototype.toString.call(t)){case g:case m:case v:{const e=new t.constructor(t?.valueOf());return O(e,t),e}case y:{const e={};return O(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}})}(t)}function C(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===b(t)}function B(t){return"object"==typeof t&&null!==t}function A(t){return B(t)&&function(t){return null!=t&&"function"!=typeof t&&function(t){return Number.isSafeInteger(t)&&t>=0}(t.length)}(t)}function L(t){if("object"!=typeof t)return!1;if(null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){const e=t[Symbol.toStringTag];return null!=e&&(!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`)}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function E(t){return x(t)}function F(t,e,n,r){if(k(t)&&(t=Object(t)),null==e||"object"!=typeof e)return t;if(r.has(e))return function(t){if(k(t))return t;if(Array.isArray(t)||x(t)||t instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);const e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);const n=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new n(t);if(t instanceof RegExp){const e=new n(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new n(t.buffer.slice(0));if(t instanceof Error){let e;return e=t instanceof AggregateError?new n(t.errors,t.message,{cause:t.cause}):new n(t.message,{cause:t.cause}),e.stack=t.stack,Object.assign(e,t),e}if("undefined"!=typeof File&&t instanceof File)return new n([t],t.name,{type:t.type,lastModified:t.lastModified});if("object"==typeof t){const n=Object.create(e);return Object.assign(n,t)}return t}(r.get(e));if(r.set(e,t),Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]=e[t]??void 0}const o=[...Object.keys(e),...p(e)];for(let i=0;i<o.length;i++){const s=o[i];if(d(s))continue;let a=e[s],c=t[s];if(C(a)&&(a={...a}),C(c)&&(c={...c}),"undefined"!=typeof Buffer&&Buffer.isBuffer(a)&&(a=j(a)),Array.isArray(a))if(Array.isArray(c)){const t=[],e=Reflect.ownKeys(c);for(let n=0;n<e.length;n++){const r=e[n];t[r]=c[r]}c=t}else if(A(c)){const t=[];for(let e=0;e<c.length;e++)t[e]=c[e];c=t}else c=[];const l=n(c,a,s,t,e,r);void 0!==l?t[s]=l:Array.isArray(a)||B(c)&&B(a)&&(L(c)||L(a)||E(c)||E(a))?t[s]=F(c,a,n,r):null==c&&L(a)?t[s]=F({},a,n,r):null==c&&E(a)?t[s]=j(a):void 0!==c&&void 0===a||(t[s]=a)}return t}function z(){}function D(t){if(null==t||!t.length)return null;const e=t.sort((t,e)=>(t.maxWidth?parseInt(t.maxWidth):1/0)-(e.maxWidth?parseInt(e.maxWidth):1/0)),n=document.documentElement.clientWidth;return e.find(t=>{if((null!=t&&t.maxWidth?parseInt(t.maxWidth):Number.MAX_SAFE_INTEGER)>n)return t})??t[0]??null}function R(t,e,n){if(!e||null==t||!t.breakpointOverrides)return t;const r=t.breakpointOverrides[e.id];return r?n?f(S(o=t,void 0,o,new Map,void 0),r,(t,e,r,o,i)=>n({baseValue:t,overrideValue:e,key:r,base:o,override:i})):function(t,...e){return function(t,...e){const n=e.slice(0,-1),r=e[e.length-1];let o=t;for(let t=0;t<n.length;t++)o=F(o,n[t],r,new Map);return o}(t,...e,z)}({},t,r):t;var o}class M{constructor(t){var e,n,o,i;let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r(this,"componentId",""),r(this,"processedValue",null),r(this,"previousBreakpoint",null),r(this,"resizeListener",null),r(this,"handlePrefersReducedMotionChange",t=>{t?(this.destroyAnimations(),this.detachResizeListener()):(this.parseBlockData(),this.attachResizeListener(),this.createAnimations())}),this.root=t,this.root=t,!l)return void this.removePrerender();this.componentId=(null===(e=this.root.closest("[data-website-component-id]"))||void 0===e?void 0:e.dataset.websiteComponentId)??"";const a=null===(n=this.root.parentElement)||void 0===n?void 0:n.classList.contains("pseudo-engine__block");s||a||(this.prefersReducedMotionUnsub=null===(o=u())||void 0===o||null===(i=o.registerReducedMotionChangeHandler)||void 0===i?void 0:i.call(o,this.handlePrefersReducedMotionChange),window.matchMedia("(prefers-reduced-motion: reduce)").matches||this.attachResizeListener())}processBreakpointOverrideValue(){this.websiteBreakpoints||this.parseBlockData();const t=this.websiteBreakpoints;if(!t)return;const e=D(t);this.processedValue=R(this.blockData,e)}removePrerender(){var t;null===(t=this.root.querySelector("style[data-block-animations-prerender]"))||void 0===t||t.remove()}parseBlockData(){const t=this.root.querySelector(`script[data-block-animations="${this.componentId||""}"]`);if(!t)return this.blockData={animations:[],transforms:{},componentId:this.componentId},void(this.websiteBreakpoints=void 0);const e=JSON.parse(String(t.textContent)),{websitesBreakpoints:n,...r}=e;this.websiteBreakpoints=n,this.blockData=r,this.processBreakpointOverrideValue()}
1attachResizeListener(){if(this.resizeListener)return;this.blockData||this.parseBlockData();const t=this.websiteBreakpoints;var e;t&&(null!==(e=this.previousBreakpoint)&&void 0!==e&&e.id||(this.previousBreakpoint=D(t)),this.resizeListener=()=>{var e;const n=D(t);if((null===(e=this.previousBreakpoint)||void 0===e?void 0:e.id)!==(null==n?void 0:n.id)){if(this.previousBreakpoint=n,this.processBreakpointOverrideValue(),!this.root.isConnected)return;this.destroyAnimationTriggers(),this.createAnimations()}},window.addEventListener("resize",this.resizeListener))}detachResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null,this.previousBreakpoint=null)}createAnimations(){var t,e;l&&this.blockData&&(this.processBreakpointOverrideValue(),this.processedValue?null===(t=u())||void 0===t||t.createAnimationTriggers(this.processedValue):null===(e=u())||void 0===e||e.createAnimationTriggers(this.blockData))}destroyAnimationTriggers(){const t=u();this.processedValue?null==t||t.destroyAnimationTriggers(this.processedValue):null==t||t.destroyAnimationTriggers(this.blockData)}destroyAnimations(){var t;null===(t=this.prefersReducedMotionUnsub)||void 0===t||t.call(this),this.blockData&&this.destroyAnimationTriggers()}updateBlockData(t,e){t&&(this.blockData||this.parseBlockData(),this.blockData={...this.blockData||{},...t},this.websiteBreakpoints=e,this.processBreakpointOverrideValue())}getBlockData(){return this.blockData||this.parseBlockData(),this.processBreakpointOverrideValue(),this.processedValue?this.processedValue:this.blockData}}function P(t,e,n){T(t,e),e.set(t,n)}function T(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function V(t,e,n){return t.set(I(t,e),n),n}function N(t,e){return t.get(I(t,e))}function I(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var q=new WeakMap,_=new WeakMap,W=new WeakMap,H=new WeakMap,U=new WeakSet;function $(){N(q,this)&&(V(W,this,t=>{t.target===N(q,this)&&this.close()}),N(q,this).addEventListener("click",N(W,this)),V(H,this,t=>{"Escape"===t.key&&N(_,this)&&this.close()}),document.addEventListener("keydown",N(H,this)))}function J(){var t;N(q,this)&&N(W,this)&&N(q,this).removeEventListener("click",N(W,this)),N(H,this)&&document.removeEventListener("keydown",N(H,this));const e=null===(t=N(q,this))||void 0===t?void 0:t.parentElement;e&&e.parentNode&&e.parentNode.removeChild(e),V(q,this,null),V(W,this,null),V(H,this,null),V(_,this,!1),document.body.style.overflow=""}const Q=new class{constructor(){var t;T(this,t=U),t.add(this),P(this,q,null),P(this,_,!1),P(this,W,null),P(this,H,null)}open(t){const{wrapper:e,overlay:n}=((t,e)=>{const{wrapper:n,overlay:r}=(()=>{const t=document.createElement("div");t.className="sqs-modal-lightbox";const e=document.createElement("div");return e.className="sqs-modal-lightbox-content",e.style.cssText="\n display: flex;\n align-items: center;\n justify-content: center;\n ",t.appendChild(e),{wrapper:t,overlay:e}})(),o=(()=>{const t=document.createElement("div");return t.className="lightbox-inner",t})(),i=(()=>{const t=document.createElement("div");return t.className="lightbox-background",t})(),s=(t=>{const e=document.createElement("div");return e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.setAttribute("aria-label","Close"),e.className="lightbox-close",e.innerHTML="Ã",e.addEventListener("click",t),e.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||t()}),e})(e),a=(t=>{var e;const n=document.createElement("div");return n.className="lightbox-content",n.style.cssText="\n margin: 50px auto;\n ",null!==(e=t.contentClasses)&&void 0!==e&&e.length&&n.classList.add(...t.contentClasses),t.contentDataAttributes&&Object.entries(t.contentDataAttributes).forEach(t=>{let[e,r]=t;n.setAttribute(`data-${e}`,r)}),n})(t);return a.appendChild(s),a.appendChild(t.content),o.appendChild(a),r.appendChild(i),r.appendChild(o),{wrapper:n,overlay:r}})(t,()=>this.close());V(q,this,n),document.body.appendChild(e),I(U,this,$).call(this),N(q,this).style.display="flex",V(_,this,!0),document.body.style.overflow="hidden"}close(){I(U,this,J).call(this)}isLightboxOpen(){return N(_,this)}};class Y{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r(this,"localizedStrings",{}),r(this,"localizedFieldFormats",{}),r(this,"previewSubmissionState",!1),r(this,"resizeListener",null),r(this,"lastBreakpoint",null),r(this,"lightboxButtonListeners",null),this.root=t,this.animationVisitor=new M(this.root,e);const n=this.root.querySelector("script.sqs-form-block-localized-strings");null!=n&&n.textContent&&(this.localizedStrings=JSON.parse(n.textContent));const o=this.getFormContextFromMarkup(),i=this.getDesignFieldsFromMarkup();this.formContext={...o,...i},o.formFieldFormats&&(this.localizedFieldFormats=o.formFieldFormats);const s=this.isBreakpointOverrideable();if(!this.resizeListener&&s){var a;const t=D(null===(a=this.formContext)||void 0===a?void 0:a.breakpoints);this.lastBreakpoint=t,this.attachResizeListener()}else this.resizeListener&&!s&&this.detachResizeListener();this.renderFormOrLightBox()}isBreakpointOverrideable(){var t,e;const n=null===(t=this.formContext)||void 0===t?void 0:t.breakpoints,r=null===(e=this.formContext)||void 0===e?void 0:e.breakpointOverridesFlag;return n&&r}renderFormOrLightBox(){if(this.isBreakpointOverrideable()){var t;const e=D(null===(t=this.formContext)||void 0===t?void 0:t.breakpoints);R(this.formContext,e).useLightbox?this.setupLightBoxHandlerWithBreakpointOverrides():this.renderReactForm(!0).catch(console.error)}else{var e;(null===(e=this.formContext)||void 0===e?void 0:e.useLightbox)?this.setupLightboxHandler():this.renderReactForm(!0).catch(console.error)}}attachResizeListener(){this.resizeListener||(this.resizeListener=()=>{var t;if(!this.formContext||!this.formContext.breakpoints||!this.root.isConnected)return;const e=D(this.formContext.breakpoints);(null===(t=this.lastBreakpoint)||void 0===t?void 0:t.id)!==(null==e?void 0:e.id)&&(this.lastBreakpoint=e,Q.isLightboxOpen()&&Q.close(),this.renderFormOrLightBox())},window.addEventListener("resize",this.resizeListener))}detachResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null,this.lastBreakpoint=null)}createLightboxContent(){const t=document.createElement("div");t.className="sqs-block-form sqs-block-form-lightbox sqs-background-enabled";const e=document.createElement("div");if(e.className="form-wrapper sqs-site-style-form",t.appendChild(e),!this.formContext)throw new Error("Form context not initialized");const n=document.createElement("div");n.innerHTML=this.formContext.formName||"",n.classList.add("form-title"),e.appendChild(n);const r=document.createElement("div");return r.className="form-inner-wrapper",e.appendChild(r),{wrapper:t,inner:r}}onLightboxClick(){const{wrapper:t,inner:e}=this.createLightboxContent(),n=["lightbox-form-content-background"],r={},o=this.root.closest("[data-section-theme]"),i=(null==o?void 0:o.getAttribute("data-section-theme"))||"";i&&(n.push(i),r["section-theme"]=i),Q.open({content:t,contentClasses:n,contentDataAttributes:r}
1),this.renderReactForm(!0,e).catch(console.error)}setupLightboxHandler(){const t=this.root.querySelector(".lightbox-handle");if(!t)throw new Error("Lightbox handle element not found");t.addEventListener("click",()=>this.onLightboxClick())}setupLightBoxHandlerWithBreakpointOverrides(){var t;const e=D(null===(t=this.formContext)||void 0===t?void 0:t.breakpoints);if(!e){const t=new Error("Form component cannot get current breakpoint to bind lightbox handler");return void o(t)}null===this.lightboxButtonListeners&&(this.lightboxButtonListeners=new Map);const n=t=>this.root.querySelector(`.lightbox-handle-wrapper-${t} .lightbox-handle`),r=n(e.id)??n("system_desktop");if(!r){const t=new Error("Form component cannot find a Lightbox element for the current breakpoint to attach a click handler");return void o(t)}this.lightboxButtonListeners.has(r)||(this.lightboxButtonListeners.set(r,!0),r.addEventListener("click",()=>this.onLightboxClick()))}updateFormContext(t){var e;if(null!==(e=this.formContext)&&void 0!==e&&e.breakpoints&&this.formContext.breakpointOverridesFlag){const e={...this.formContext,...t};this.formContext=e}else this.formContext=t}setPreviewSubmissionState(t){this.previewSubmissionState=t}async renderReactForm(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=(arguments.length>1?arguments[1]:void 0)||this.root.querySelector(".form-wrapper");if(!e)throw new Error("Form wrapper element not found");if(!this.formContext)throw new Error("Form context not initialized");const n=this.generateReactProps();window.Squarespace.renderReactFormForWebsiteComponent(n,e,t)}generateReactProps(){var t;if(!this.formContext)throw new Error("Form context not initialized");let e=this.formContext;if(this.isBreakpointOverrideable()){var n;const t=D(null===(n=this.formContext)||void 0===n?void 0:n.breakpoints);e=R(this.formContext,t)}return{...e,lightboxHandleText:e.lightboxHandleText||(null===(t=this.localizedStrings)||void 0===t?void 0:t.lightbox.openForm),previewSubmissionState:this.previewSubmissionState,formFieldFormats:this.localizedFieldFormats,localizedStrings:this.localizedStrings}}getFormContextFromMarkup(){const t=this.root.querySelector("script.sqs-form-block-context");if(null==t||!t.textContent)throw new Error("Form context script not found or empty");const e=this.root.querySelector(".sqs-form-block-submission-html"),n=(null==e?void 0:e.getAttribute("data-submission-html"))||void 0;try{return{formSubmissionHTML:n,...JSON.parse(t.textContent)}}catch(t){throw new Error(`Error parsing the JSON form context: ${t}`)}}getDesignFieldsFromMarkup(){const t=this.root.querySelector("script.sqs-form-block-design-fields");if(null==t||!t.textContent)throw new Error("Design fields script not found or empty");try{return JSON.parse(t.textContent)}catch(t){throw new Error(`Error parsing design fields: ${t}`)}}}const G=function(t){return new Y(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1])};return e})());
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.