(()=>{"use strict";var e={d:(n,t)=>{for(var _ in t)e.o(t,_)&&!e.o(n,_)&&Object.defineProperty(n,_,{enumerable:!0,get:t[_]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{Component:()=>m,Fragment:()=>y,cloneElement:()=>W,createContext:()=>L,createElement:()=>d,createFactory:()=>Be,createPortal:()=>Ue,createRef:()=>v,forwardRef:()=>Ce,h:()=>d,hydrate:()=>M,isValidElement:()=>o,memo:()=>be,options:()=>_,render:()=>F,renderToString:()=>ln,toChildArray:()=>w,useCallback:()=>le,useContext:()=>ue,useDebugValue:()=>ce,useEffect:()=>te,useErrorBoundary:()=>ae,useImperativeHandle:()=>oe,useLayoutEffect:()=>_e,useMemo:()=>ie,useReducer:()=>ne,useRef:()=>re,useState:()=>ee});var t,_,r,o,i,l,u,c={},a=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(e,n){for(var t in n)e[t]=n[t];return e}function p(e){var n=e.parentNode;n&&n.removeChild(e)}function d(e,n,_){var r,o,i,l={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:l[i]=n[i];if(arguments.length>2&&(l.children=arguments.length>3?t.call(arguments,2):_),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return h(e,l,r,o,null)}function h(e,n,t,o,i){var l={type:e,props:n,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++r:i};return null==i&&null!=_.vnode&&_.vnode(l),l}function v(){return{current:null}}function y(e){return e.children}function m(e,n){this.props=e,this.context=n}function g(e,n){if(null==n)return e.__?g(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n0?h(v.type,v.props,v.key,null,v.__v):v)){if(v.__=t,v.__b=t.__b+1,null===(d=x[s])||d&&v.key==d.key&&v.type===d.type)x[s]=void 0;else for(p=0;p2&&(l.children=arguments.length>3?t.call(arguments,2):_),h(e.type,l,r||e.key,o||e.ref,null)}function L(e,n){var t={__c:n="__cC"+u++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,_;return this.getChildContext||(t=[],(_={})[n]=this,this.getChildContext=function(){return _},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(k)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t}t=a.slice,_={__e:function(e,n,t,_){for(var r,o,i;n=n.__;)if((r=n.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,_||{}),i=r.__d),i)return r.__E=r}catch(n){e=n}throw e}},r=0,o=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof e&&(e=e(s({},t),this.props)),e&&s(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),k(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},m.prototype.render=y,i=[],x.__r=0,u=0;var $,j,I,B,q=0,z=[],Z=[],G=_.__b,J=_.__r,K=_.diffed,Q=_.__c,X=_.unmount;function Y(e,n){_.__h&&_.__h(j,e,q||n),q=0;var t=j.__H||(j.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({__V:Z}),t.__[e]}function ee(e){return q=1,ne(ve,e)}function ne(e,n,t){var _=Y($++,2);if(_.t=e,!_.__c&&(_.__=[t?t(n):ve(void 0,n),function(e){var n=_.__N?_.__N[0]:_.__[0],t=_.t(n,e);n!==t&&(_.__N=[t,_.__[1]],_.__c.setState({}))}],_.__c=j,!_.__c.u)){_.__c.__H.u=!0;var r=_.__c.shouldComponentUpdate;_.__c.shouldComponentUpdate=function(e,n,t){if(!_.__c.__H)return!0;var o=_.__c.__H.__.filter((function(e){return e.__c}));return(o.every((function(e){return!e.__N}))||!o.every((function(e){if(!e.__N)return!0;var n=e.__[0];return e.__=e.__N,e.__N=void 0,n===e.__[0]})))&&(!r||r(e,n,t))}}return _.__N||_.__}function te(e,n){var t=Y($++,3);!_.__s&&he(t.__H,n)&&(t.__=e,t.i=n,j.__H.__h.push(t))}function _e(e,n){var t=Y($++,4);!_.__s&&he(t.__H,n)&&(t.__=e,t.i=n,j.__h.push(t))}function re(e){return q=5,ie((function(){return{current:e}}),[])}function oe(e,n,t){q=6,_e((function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))}function ie(e,n){var t=Y($++,7);return he(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function le(e,n){return q=8,ie((function(){return e}),n)}function ue(e){var n=j.context[e.__c],t=Y($++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(j)),n.props.value):e.__}function ce(e,n){_.useDebugValue&&_.useDebugValue(n?n(e):e)}function ae(e){var n=Y($++,10),t=ee();return n.__=e,j.componentDidCatch||(j.componentDidCatch=function(e){n.__&&n.__(e),t[1](e)}),[t[0],function(){t[1](void 0)}]}function fe(){for(var e;e=z.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pe),e.__H.__h.forEach(de),e.__H.__h=[]}catch(n){e.__H.__h=[],_.__e(n,e.__v)}}_.__b=function(e){j=null,G&&G(e)},_.__r=function(e){J&&J(e),$=0;var n=(j=e.__c).__H;n&&(I===j?(n.__h=[],j.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Z,e.__N=e.i=void 0}))):(n.__h.forEach(pe),n.__h.forEach(de),n.__h=[])),I=j},_.diffed=function(e){K&&K(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==z.push(n)&&B===_.requestAnimationFrame||((B=_.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(_),se&&cancelAnimationFrame(n),setTimeout(e)},_=setTimeout(t,100);se&&(n=requestAnimationFrame(t))})(fe)),n.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Z&&(e.__=e.__V),e.i=void 0,e.__V=Z}))),I=j=null},_.__c=function(e,n){n.some((function(e){try{e.__h.forEach(pe),e.__h=e.__h.filter((function(e){return!e.__||de(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],_.__e(t,e.__v)}})),Q&&Q(e,n)},_.unmount=function(e){X&&X(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{pe(e)}catch(e){n=e}})),n&&_.__e(n,t.__v))};var se="function"==typeof requestAnimationFrame;function pe(e){var n=j,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),j=n}function de(e){var n=j;e.__c=e.__(),j=n}function he(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function ve(e,n){return"function"==typeof n?n(e):n}function ye(e,n){for(var t in n)e[t]=n[t];return e}function me(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var _ in n)if("__source"!==_&&e[_]!==n[_])return!0;return!1}function ge(e){this.props=e}function be(e,n){function t(e){var t=this.props.ref,_=t==e.ref;return!_&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!_:me(this.props,e)}function _(n){return this.shouldComponentUpdate=t,d(e,n)}return _.displayName="Memo("+(e.displayName||e.name)+")",_.prototype.isReactComponent=!0,_.__f=!0,_}(ge.prototype=new m).isPureReactComponent=!0,ge.prototype.shouldComponentUpdate=function(e,n){return me(this.props,e)||me(this.state,n)};var ke=_.__b;_.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ke&&ke(e)};var xe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ce(e){function n(n){var t=ye({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=xe,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var Se=_.__e;_.__e=function(e,n,t,_){if(e.then)for(var r,o=n;o=o.__;)if((r=o.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);Se(e,n,t,_)};var we=_.unmount;function Ee(){this.__u=0,this.t=null,this.__b=null}function Pe(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function Ne(){this.u=null,this.o=null}_.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),we&&we(e)},(Ee.prototype=new m).__c=function(e,n){var t=n.__c,_=this;null==_.t&&(_.t=[]),_.t.push(t);var r=Pe(_.__v),o=!1,i=function(){o||(o=!0,t.__R=null,r?r(l):l())};t.__R=i;var l=function(){if(!--_.__u){if(_.state.__a){var e=_.state.__a;_.__v.__k[0]=function e(n,t,_){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return e(n,t,_)})),n.__c&&n.__c.__P===t&&(n.__e&&_.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=_)),n}(e,e.__c.__P,e.__c.__O)}var n;for(_.setState({__a:_.__b=null});n=_.t.pop();)n.forceUpdate()}},u=!0===n.__h;_.__u++||u||_.setState({__a:_.__b=_.__v.__k[0]}),e.then(i,i)},Ee.prototype.componentWillUnmount=function(){this.t=[]},Ee.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),_=this.__v.__k[0].__c;this.__v.__k[0]=function e(n,t,_){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),n.__c.__H=null),null!=(n=ye({},n)).__c&&(n.__c.__P===_&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return e(n,t,_)}))),n}(this.__b,t,_.__O=_.__P)}this.__b=null}var r=n.__a&&d(y,null,e.fallback);return r&&(r.__h=null),[d(y,null,n.__a?null:e.children),r]};var He=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]>>1,1),n.i.removeChild(e)}}),F(d(Ae,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}function Ue(e,n){var t=d(Oe,{__v:e,i:n});return t.containerInfo=n,t}(Ne.prototype=new m).__a=function(e){var n=this,t=Pe(n.__v),_=n.o.get(e);return _[0]++,function(r){var o=function(){n.props.revealOrder?(_.push(r),He(n,e,_)):r()};t?t(o):o()}},Ne.prototype.render=function(e){this.u=null,this.o=new Map;var n=w(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},Ne.prototype.componentDidUpdate=Ne.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){He(e,t,n)}))};var Te="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Re=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,De="undefined"!=typeof document,Ve=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};m.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(m.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Fe=_.event;function Me(){}function We(){return this.cancelBubble}function Le(){return this.defaultPrevented}_.event=function(e){return Fe&&(e=Fe(e)),e.persist=Me,e.isPropagationStopped=We,e.isDefaultPrevented=Le,e.nativeEvent=e};var $e={configurable:!0,get:function(){return this.class}},je=_.vnode;_.vnode=function(e){var n=e.type,t=e.props,_=t;if("string"==typeof n){var r=-1===n.indexOf("-");for(var o in _={},t){var i=t[o];De&&"children"===o&&"noscript"===n||"value"===o&&"defaultValue"in t&&null==i||("defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+n)&&!Ve(t.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():r&&Re.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===i&&(i=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),_[o]&&(o="oninputCapture")),_[o]=i)}"select"==n&&_.multiple&&Array.isArray(_.value)&&(_.value=w(t.children).forEach((function(e){e.props.selected=-1!=_.value.indexOf(e.props.value)}))),"select"==n&&null!=_.defaultValue&&(_.value=w(t.children).forEach((function(e){e.props.selected=_.multiple?-1!=_.defaultValue.indexOf(e.props.value):_.defaultValue==e.props.value}))),e.props=_,t.class!=t.className&&($e.enumerable="className"in t,null!=t.className&&(_.class=t.className),Object.defineProperty(_,"className",$e))}e.$$typeof=Te,je&&je(e)};var Ie=_.__r;function Be(e){return d.bind(null,e)}_.__r=function(e){Ie&&Ie(e),e.__c};var qe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,ze=/[&<>"]/;function Ze(e){var n=String(e);return ze.test(n)?n.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):n}var Ge=function(e,n){return String(e).replace(/(\n+)/g,"$1"+(n||"\t"))},Je=function(e,n,t){return String(e).length>(n||40)||!t&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},Ke={};function Qe(e){var n="";for(var t in e){var _=e[t];null!=_&&""!==_&&(n&&(n+=" "),n+="-"==t[0]?t:Ke[t]||(Ke[t]=t.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=_,"number"==typeof _&&!1===qe.test(t)&&(n+="px"),n+=";")}return n||void 0}function Xe(e,n){for(var t in n)e[t]=n[t];return e}function Ye(e,n){return Array.isArray(n)?n.reduce(Ye,e):null!=n&&!1!==n&&e.push(n),e}var en={shallow:!0},nn=[],tn=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,_n=/[\s\n\\/='"\0<>]/;function rn(){this.__d=!0}ln.render=ln;var on=[];function ln(e,n,t){n=n||{},t=t||{};var r=_.__s;_.__s=!0;var o=un(e,n,t);return _.__c&&_.__c(e,on),on.length=0,_.__s=r,o}function un(e,n,t,r,o,i){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return Ze(e);var l=t.pretty,u=l&&"string"==typeof l?l:"\t";if(Array.isArray(e)){for(var c="",a=0;a0&&(c+="\n"),c+=un(e[a],n,t,r,o,i);return c}var f,s=e.type,p=e.props,d=!1;if("function"==typeof s){if(d=!0,!t.shallow||!r&&!1!==t.renderRootComponent){if(s===y){var h=[];return Ye(h,e.props.children),un(h,n,t,!1!==t.shallowHighOrder,o,i)}var v,m=e.__c={__v:e,context:n,props:e.props,setState:rn,forceUpdate:rn,__d:!0,__h:[]};_.__b&&_.__b(e);var g=_.__r;if(s.prototype&&"function"==typeof s.prototype.render){var b=s.contextType,k=b&&n[b.__c],x=null!=b?k?k.props.value:b.__:n;(m=e.__c=new s(p,x)).__v=e,m._dirty=m.__d=!0,m.props=p,null==m.state&&(m.state={}),null==m._nextState&&null==m.__s&&(m._nextState=m.__s=m.state),m.context=x,s.getDerivedStateFromProps?m.state=Xe(Xe({},m.state),s.getDerivedStateFromProps(m.props,m.state)):m.componentWillMount&&(m.componentWillMount(),m.state=m._nextState!==m.state?m._nextState:m.__s!==m.state?m.__s:m.state),g&&g(e),v=m.render(m.props,m.state,m.context)}else for(var C=s.contextType,S=C&&n[C.__c],w=null!=C?S?S.props.value:C.__:n,E=0;m.__d&&E++<25;)m.__d=!1,g&&g(e),v=s.call(e.__c,p,w);return m.getChildContext&&(n=Xe(Xe({},n),m.getChildContext())),_.diffed&&_.diffed(e),un(v,n,t,!1!==t.shallowHighOrder,o,i)}s=(f=s).displayName||f!==Function&&f.name||function(e){var n=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!n){for(var t=-1,_=nn.length;_--;)if(nn[_]===e){t=_;break}t<0&&(t=nn.push(e)-1),n="UnnamedComponent"+t}return n}(f)}var P,N,H="<"+s;if(p){var A=Object.keys(p);t&&!0===t.sortAttributes&&A.sort();for(var O=0;O",_n.test(s))throw new Error(s+" is not a valid HTML tag name in "+H);var V,F=tn.test(s)||t.voidElements&&t.voidElements.test(s),M=[];if(N)l&&Je(N)&&(N="\n"+u+Ge(N,u)),H+=N;else if(null!=P&&Ye(V=[],P).length){for(var W=l&&~H.indexOf("\n"),L=!1,$=0;$0&&"<"!=I[0];L&&B?M[M.length-1]+=I:M.push(I),L=B}else M.push(I)}}if(l&&W)for(var q=M.length;q--;)M[q]="\n"+u+Ge(M[q],u)}if(M.length||N)H+=M.join("");else if(t&&t.xml)return H.substring(0,H.length-1)+" />";return!F||V||N?(l&&~H.indexOf("\n")&&(H+="\n"),H=H+""):H=H.replace(/>$/," />"),H}ln.shallowRender=function(e,n){return ln(e,n,en)},globalThis.__AURISERVE={h:d},window.__ASP_AURISERVE_PREACT=n})(); (()=>{"use strict";var e={542:(e,t)=>{t.TS=void 0,t.TS=function(...e){return e.filter((e=>e)).join(" ")}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{Static:()=>i,hydrate:()=>a,hydrateElement:()=>c});const e=window.__ASP_AURISERVE_PREACT;var t=r(542);const o="hydrated:static";function i(e){return"undefined"==typeof window?__AURISERVE.h("div",{class:(0,t.TS)(o,e.class),style:e.style},e.children):__AURISERVE.h("div",{class:(0,t.TS)(o,e.class),style:e.style,dangerouslySetInnerHTML:{__html:""}})}function a(e,t){return t}function c(t){document.querySelectorAll(`[data-element="${t.identifier}"]`).forEach((r=>{const n=r.querySelector(":scope > script"),o=JSON.parse(n.innerText);n.remove(),(0,e.hydrate)((0,e.h)(t.component,o),r)}))}})(),window.__ASP_HYDRATED=n})(); (()=>{"use strict";var e={};(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);const t=window.__ASP_HYDRATED,n=window.__ASP_AURISERVE_PREACT,a="tax_calculator:contact_form";function l(e,t,n,a){let l=`

Hey there! My name is ${e},
and I'm contacting you on behalf of the municipality of ${n}.

We are in need of a simple, user-friendly, and secure Tax Calculator for our residents to use, and your tool looks perfect. We'd love to get in contact.

You can reach me at ${t}.
Thanks!

`;return a&&(l=l.replace(/<\/p>/g,"\n\n").replace(//g,"\n").replace(/<\/?\w+>/g,"")),l}const s=(0,t.hydrate)(a,(function(){const e=(0,n.useRef)(null),[t,s]=(0,n.useState)(""),[o,u]=(0,n.useState)(""),[r,i]=(0,n.useState)(""),[c,_]=(0,n.useState)(""),[h,E]=(0,n.useState)(!1),[R,d]=(0,n.useState)(!1),[m,S]=(0,n.useState)(!1),[p,A]=(0,n.useState)(!0);(0,n.useEffect)((()=>E(!0)),[]);const f=l(t||"John Doe",o||"johndoe@example.com",r||"Townsville",!0);return(0,n.useEffect)((()=>{p&&_(f)}),[t,o,r,f,p]),h?m?__AURISERVE.h("div",{class:`${a} submitted`},__AURISERVE.h("h6",null,"Submission Received!"),__AURISERVE.h("p",null,"Thanks for reaching out, we'll make sure to get back to you in the next couple of business days.")):__AURISERVE.h("form",{class:a,ref:e,onSubmit:function(e){e.preventDefault(),d(!0),fetch("/form/contact",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,email:o,municipality:r,message:c})}).then((()=>setTimeout((()=>S(!0)),500)))},disabled:R},__AURISERVE.h("div",{class:"left"},__AURISERVE.h("label",null,__AURISERVE.h("span",null,"Name"),__AURISERVE.h("input",{disabled:R,maxLength:64,required:!0,type:"text",placeholder:"John Doe",value:t,onChange:e=>s(e.target.value)})),__AURISERVE.h("label",null,__AURISERVE.h("span",null,"Municipality"),__AURISERVE.h("input",{disabled:R,maxLength:64,required:!0,type:"text",placeholder:"Townsville",value:r,onChange:e=>i(e.target.value)})),__AURISERVE.h("label",null,__AURISERVE.h("span",null,"Email"),__AURISERVE.h("input",{disabled:R,maxLength:128,required:!0,name:"email",type:"email",placeholder:"johndoe@example.com",value:o,onChange:e=>u(e.target.value)})),__AURISERVE.h("hr",null),__AURISERVE.h("button",{type:"submit",disabled:R},__AURISERVE.h("span",null,"Send Message"))),__AURISERVE.h("div",{class:"right"},__AURISERVE.h("label",null,__AURISERVE.h("span",null,"Message"),__AURISERVE.h("div",{class:"message-container"},__AURISERVE.h("textarea",{maxLength:1048576,disabled:R,onFocus:function(){p&&(_(f),A(!1))},onBlur:function(){c===f&&(_(""),A(!0))},name:"message",onChange:e=>_(e.target.value)},c),p&&__AURISERVE.h("div",{class:"message-template",dangerouslySetInnerHTML:{__html:l(t||"John Doe",o||"johndoe@example.com",r||"Townsville")}}))))):null})),o={identifier:a,component:s},u="tax_calculator:quote_generator",r=[1e3,1250,1500,2e3,2500],i=[0,5e3,1e4,15e3,2e4,25e3,3e4,35e3,4e4,45e3,5e4,55e3,6e4,65e3,7e4,75e3,8e4,85e3,9e4,95e3,1e5],c=(0,t.hydrate)(u,(function(){const e=(0,n.useRef)(null),t=(0,n.useRef)(null),[a,l]=(0,n.useState)(5),[s,o]=(0,n.useState)(r[Math.floor(a/5)]),[c,_]=(0,n.useState)(i[a]),h=a/20*100;return __AURISERVE.h("div",{class:u},__AURISERVE.h("label",null,__AURISERVE.h("div",{class:"numbers"},__AURISERVE.h("p",{class:"population"},__AURISERVE.h("span",{class:"value"},Intl.NumberFormat("en-us",{useGrouping:!1,maximumFractionDigits:0}).format(c),1e5===c&&"+"),__AURISERVE.h("span",{class:"label"}," Residents")),__AURISERVE.h("p",{class:"evaluation"},__AURISERVE.h("span",{class:"value"},"$",Intl.NumberFormat("en-us",{maximumFractionDigits:0,useGrouping:!1}).format(s)),__AURISERVE.h("span",{class:"label"}," / year"))),__AURISERVE.h("input",{type:"range",min:"0",max:"20",step:"1",value:a,onChange:function(n){const s=parseInt(n.target.value,10);l(s);const u=r[Math.floor(a/5)],c=r[Math.floor(s/5)],h=i[a],E=i[s];if(u!==c){e.current&&e.current.abort();const R=new AbortController;e.current=R;let d=0;const m=11;function S(){R.signal.aborted||(o(u+(c-u)*d/m),d++=0?"active":""},"0"),__AURISERVE.h("span",{class:a>=5?"active":""},"25k"),__AURISERVE.h("span",{class:a>=10?"active":""},"50k"),__AURISERVE.h("span",{class:a>=15?"active":""},"75k"),__AURISERVE.h("span",{class:a>=20?"active":""},"100k+"))))})),_={identifier:u,component:c},h="tax_calculator:unsubscribe_form",E=(0,t.hydrate)(h,(function(){const[e,t]=(0,n.useState)(""),[a,l]=(0,n.useState)(!1),[s,o]=(0,n.useState)(!1),[u,r]=(0,n.useState)(!1);return(0,n.useEffect)((()=>l(!0)),[]),a?u?__AURISERVE.h("div",{class:`${h} submitted`},__AURISERVE.h("h6",null,"You have been unsubscribed."),__AURISERVE.h("p",null,"Redirecting to the home page...")):__AURISERVE.h("form",{class:h,onSubmit:function(t){t.preventDefault(),o(!0),fetch("/form/unsubscribe",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})}).then((()=>setTimeout((()=>{r(!0),setTimeout((()=>{window.location.href="/"}),1e3)}),500)))},disabled:s},__AURISERVE.h("label",null,__AURISERVE.h("span",null,"Email"),__AURISERVE.h("input",{disabled:s,maxLength:128,required:!0,type:"email",placeholder:"johndoe@example.com",value:e,onChange:e=>t(e.target.value)})),__AURISERVE.h("button",{type:"submit",disabled:s},__AURISERVE.h("span",null,"Unsubscribe"))):null}));[o,_,{identifier:h,component:E}].forEach(t.hydrateElement),window.__ASP_TAX_CALCULATOR=e})(); /*! For license information please see client.js.LICENSE.txt */ (()=>{"use strict";var t={114:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.emit=e.off=e.once=e.on=e.dataPath=e.config=e.database=e.Watcher=e.plugins=e.YAML=e.log=e.router=void 0;const i=n.g._CONTEXT;if(!i)throw new Error("Could not find AuriServe context!\nPlease make sure you are loading the 'AuriServe' module synchronously at least once at the beginning of your plugin to catch the context.");e.default=i,e.router=i.router,e.log=i.log,e.YAML=i.YAML,e.plugins=i.plugins,e.Watcher=i.Watcher,e.database=i.database,e.config=i.config,e.dataPath=i.dataPath,e.on=i.on,e.once=i.once,e.off=i.off,e.emit=i.emit},787:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assertSchema=e.matchesSchema=e.isRawObject=e.isType=e.assertEq=e.assert=e.AssertError=void 0;class n extends Error{constructor(...t){super(...t),Error.captureStackTrace&&Error.captureStackTrace(this,n),this.name="AssertError"}}function i(t,e,...i){var r;if(!t)throw new(null!==(r=i[0])&&void 0!==r?r:n)(e,...i.length>1?i.slice(1):[])}function r(t,e){if("any"===e)return!0;if("string"==typeof e){if("undefined"===e)return void 0===t;if(typeof t===e)return!0}else if(t instanceof e)return!0;return!1}function a(t){return t&&t.constructor===Object||!1}function o(t,e,n=""){if(!a(t))return"Not an object.";for(const[i,s]of Object.entries(e)){const l=Array.isArray(s)?s:[s],c=Object.keys(t).filter((t=>void 0===e[t])).map((t=>`'${n}${t}'`));if(c.length>0){const t=1===c.length?c[0]:2===c.length?`${c[0]} and ${c[1]}`:`${c.slice(0,-1).join(", ")}, and ${c.slice(-1)}`;return`Unknown propert${c.length>=2?"ies":"y"} ${t}.`}let u=!1;for(const e of l)if(a(e)){if(!0===o(t[i],e,`${n}${i}.`)){u=!0;break}}else if(e.includes("[]")){const n=e.replace("[]","");if(Array.isArray(t[i])){let e=!0;for(const a of t[i])if(!r(a,n)){e=!1;break}if(e){u=!0;break}}}else if(r(t[i],e)){u=!0;break}if(!u){const t=l.map((t=>a(t)?"[subschema]":t.toString())),e=1===t.length?t[0]:2===t.length?`${t[0]} or ${t[1]}`:`${t.slice(0,-1).join(", ")}, or ${t.slice(-1)}`;return`'${n}${i}' must be ${e}.`}}return!0}e.AssertError=n,e.assert=i,e.assertEq=function(t,e,n,...r){if(t!==e)return i(!1,`${n} (${t} != ${e})`,...r)},e.isType=r,e.isRawObject=a,e.matchesSchema=o,e.assertSchema=function(t,e,n,...r){const a=o(t,e);"string"==typeof a&&i(!1,`${n}: ${a}`,...r)}},864:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.to=e.isHSVA=e.isRGBA=e.isHex=void 0;const i=n(787);function r(t){return"string"==typeof t&&"#"===t[0]&&(7===t.length||9===t.length)}function a(t){return"string"!=typeof t&&"r"in t}function o(t={h:0,s:0,v:0,a:1}){let e=0,n=0,i=0;const r=Math.floor(6*t.h),a=6*t.h-r,o=t.v*(1-t.s),s=t.v*(1-a*t.s),l=t.v*(1-(1-a)*t.s);switch(r%6){default:break;case 0:e=t.v,n=l,i=o;break;case 1:e=s,n=t.v,i=o;break;case 2:e=o,n=t.v,i=l;break;case 3:e=o,n=s,i=t.v;break;case 4:e=l,n=o,i=t.v;break;case 5:e=t.v,n=o,i=s}return{r:255*e,g:255*n,b:255*i,a:255*t.a}}function s(t={r:0,g:0,b:0,a:1}){let e,n,i,r,a=0;const o=t.a/255,s=Math.max(t.r,t.g,t.b)/255,l=s-Math.min(t.r,t.g,t.b)/255,c=t=>(s-t)/6/l+.5;return 0===l?a=r=0:(r=l/s,e=c(t.r/255),n=c(t.g/255),i=c(t.b/255),t.r/255===s?a=i-n:t.g/255===s?a=1/3+e-i:t.b/255===s&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),{h:a,s:r,v:s,a:o}}function l(t){const e=Math.floor(t).toString(16);return 1===e.length?`0${e}`:e}e.isHex=r,e.isRGBA=a,e.isHSVA=function(t){return"string"!=typeof t&&"h"in t},e.to=function(t,e){const n=r(t)?s(function(t){const e=parseInt(`0x${t[1]}${t[2]}`,16),n=parseInt(`0x${t[3]}${t[4]}`,16),i=parseInt(`0x${t[5]}${t[6]}`,16);let r=parseInt(`0x${t[7]}${t[8]}`,16);return Number.isNaN(r)&&(r=255),{r:e,g:n,b:i,a:r}}(t)):a(t)?s(t):t;switch(e){case"hex":return function(t={h:0,s:0,v:0,a:1}){return function(t={r:0,g:0,b:0,a:255}){return`#${l(t.r)}${l(t.g)}${l(t.b)}${255===t.a?"":l(t.a)}`}(o(t))}(n);case"rgba":return o(n);case"hsva":return n;default:(0,i.assert)(!1,`Invalid format '${e}' provided.`)}}},554:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.titleCase=e.identifier=e.date=e.vector=e.bytes=void 0;const n=["B","KB","MB","GB"];e.bytes=function(t){t=Math.round(t);let e=0;for(;t>800&&en&&i?r.substring(0,n):r.lengthn?null:r},e.titleCase=function(t){return t.replace(/[_-]/g," ").replace(/\w\S*/g,(t=>{var e,n,i,r;return(null!==(n=null===(e=t.charAt(0))||void 0===e?void 0:e.toUpperCase())&&void 0!==n?n:"")+(null!==(r=null===(i=t.substring(1))||void 0===i?void 0:i.toLowerCase())&&void 0!==r?r:"")}))}},717:(t,e,n)=>{e.hu=e.TS=void 0;n(906),n(554),n(864);var i=n(542);Object.defineProperty(e,"TS",{enumerable:!0,get:function(){return i.merge}});n(443);var r=n(787);Object.defineProperty(e,"hu",{enumerable:!0,get:function(){return r.assert}})},906:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.splitPath=e.setPath=e.buildPath=e.traversePath=void 0;const i=n(787);function r(t,e){return"number"==typeof t?((0,i.assert)(Array.isArray(e),`Invalid Array index into Value '${JSON.stringify(e)}'.`),e[t]):((0,i.assert)(void 0!==e&&"object"==typeof e,`Value is not an object: '${e}'.`),e[t])}function a(t){return t.replace(/\[/g,".[").split(".").filter(Boolean).map((t=>{if(t.startsWith("[")){(0,i.assert)(t.endsWith("]"),`Invalid path array segment '${t}'. [1]`);const e=Number.parseInt(t.substring(1,t.length-1),10);return(0,i.assert)(!Number.isNaN(e),`Invalid path array segment '${t}'. [2]`),e}return t}))}e.traversePath=function(t,e){return a(e).forEach((e=>t=r(e,t))),t},e.buildPath=function(...t){return t.filter((t=>""!==t)).reduce(((t,e,n)=>t+(Number.isInteger(e)?`[${e.toString()}]`:(0!==n?".":"")+e)),"")},e.setPath=function(t,e,n){const i=a(e);i.slice(0,-1).forEach((e=>t=r(e,t))),t[i[i.length-1]]=n},e.splitPath=a},542:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sign=e.merge=void 0,e.merge=function(...t){return t.filter((t=>t)).join(" ")},e.sign=function(t){return t<0?-1:t>0?1:0}},443:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=n(787);e.default=class{constructor(t){const e=t.trim().split(".");(0,i.assert)(3===e.length,`Invalid version string: '${t}'.`),this.major=parseInt(e[0],10),this.minor=parseInt(e[1],10),this.patch=parseInt(e[2],10)}matches(t){const e=t.trim().split(".");let n="x"===e[1];!n&&e[0].startsWith("^")&&(e[0]=e[0].substring(1).trim(),n=!0);let i="x"===e[2];!i&&e[0].startsWith("~")&&(e[0]=e[0].substring(1).trim(),i=!0);const r=e[0].startsWith("x");n||(n=r),i||(i=n);const a="x"===e[0]?0:parseInt(e[0],10),o="x"===e[1]||void 0===e[1]?0:parseInt(e[1],10),s="x"===e[2]||void 0===e[2]?0:parseInt(e[2],10);return a!==this.major?!!r&&this.major>=a:o!==this.minor?!!n&&this.minor>=o:s===this.patch||!!i&&this.patch>=s}toString(){return`${this.major}.${this.minor}.${this.patch}`}}},811:t=>{t.exports=window.__ASP_MEDIA}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var a=e[i]={exports:{}};return t[i](a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};(()=>{n.r(i);const t=window.__ASP_HYDRATED,e=window.__ASP_AURISERVE_PREACT,r="base:grid",a={identifier:r,component:(0,t.hydrate)(r,(function(n){var i,r;const a=(0,e.useRef)(null),o=n.initialCount?`i${Math.random().toString(36).substring(7)}`:"",[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(null!==(i=n.initialCount)&&void 0!==i?i:null),d=(0,e.useCallback)((()=>{u((t=>(l(!!a.current&&!!t&&a.current.querySelectorAll(":scope > .hydrated\\:static > .contents > *").length>t),t)))}),[]);return(0,e.useLayoutEffect)((()=>d()),[c,d]),__AURISERVE.h("div",{class:`base:grid ${o} ${null!==(r=n.class)&&void 0!==r?r:""}`,ref:a},null!=c&&__AURISERVE.h("style",{dangerouslySetInnerHTML:{__html:`.base\\:grid.${o} > .hydrated\\:static > .contents > *:nth-child(n + ${c+1}) { display: none !important; }`}}),__AURISERVE.h(t.Static,null,__AURISERVE.h("div",{class:"contents",style:{gap:n.gap,gridTemplateColumns:`repeat(auto-fit, minmax(min(${n.minWidth}px, 100%), 1fr))`}},n.children)),s&&__AURISERVE.h("button",{class:"show-more",onClick:function(){u((t=>{var e;return t+(null!==(e=n.revealCount)&&void 0!==e?e:1)}))}},"Show More"))}))};var o=n(717);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e{t.open?a(!0):setTimeout((()=>a(!1)),200)}),[t.open]),(0,e.useLayoutEffect)((()=>{if(!r)return;const e=()=>{var e,n;const r=Math.min(1,(window.innerWidth-64)/t.width,(window.innerHeight-64-(null!==(e=null===(n=i.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==e?e:0))/t.height);l({width:t.width*r,height:t.height*r})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[t.width,t.height,i,r]),r?(0,e.createPortal)(__AURISERVE.h("div",{class:`base:image-modal ${t.open&&"open"}`,onClick:t.onClose},__AURISERVE.h("figure",{class:"content",onClick:t=>t.stopPropagation(),style:{maxWidth:o.width}},__AURISERVE.h("div",{class:"image",style:{width:o.width,height:o.height}},__AURISERVE.h("img",s({style:t.protect?"pointer-events: none; user-select: none;":"",src:t.path},o,{alt:null!==(n=t.alt)&&void 0!==n?n:""}))),__AURISERVE.h("div",{class:"meta",ref:i},t.alt&&__AURISERVE.h("figcaption",{class:"alt"},t.alt),!t.protect&&__AURISERVE.h("a",{class:"link",href:t.fullPath,target:"_blank",rel:"noopener noreferrer"},"Open Original")))),document.getElementById("page")):null}function h(t){var n,i;const r=(t.protect?"pointer-events: none; user-select: none; ":"")+(t.aspect?`object-fit: cover; aspect-ratio: ${t.aspect}; `:""),[a,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!0),[h,f]=(0,e.useState)({width:0,height:0});function g(t){t.preventDefault(),s(!a)}const p=t.lightbox&&!t.protect?"a":t.lightbox?"button":"div";return __AURISERVE.h(p,{class:(0,o.TS)(u,"external",t.class),style:t.style,onClick:t.lightbox?g:void 0,target:"_blank",href:"a"===p?t.url:void 0},__AURISERVE.h("img",{ref:function(t){t&&l&&(c(!1),t.complete?f({width:t.naturalWidth,height:t.naturalHeight}):t.addEventListener("load",(()=>f({width:t.naturalWidth,height:t.naturalHeight}))))},style:r,src:t.url,alt:null!==(n=t.alt)&&void 0!==n?n:"",loading:null===(i=t.lazy)||void 0===i||i?"lazy":void 0}),__AURISERVE.h(d,{open:a,path:t.url,fullPath:t.url,width:h.width,height:h.height,alt:t.alt,protect:t.protect,onClose:g}))}function f(n){var i,r,a,s,h,f;let g=n.path,p=n.width,v=n.height;const m=n.aspect||p/v;if(!("path"in n)){var b,y,_;const t=l.getMediaImageVariants(n.media).find((t=>"lg"===t.type));t||c.log.error("No variant found for media image",n.media),g=(null!==(b=null==t?void 0:t.path)&&void 0!==b?b:"").replace(/.+[\\/]media\/variants\//,"").replace(/\.\w+\.webp/,""),p=null!==(y=null==t?void 0:t.width)&&void 0!==y?y:0,v=null!==(_=null==t?void 0:t.height)&&void 0!==_?_:0}const[E,S]=(0,e.useState)(!1),[w,$]=(0,e.useState)(!0),[R,A]=(0,e.useState)("static");function I(t){t.preventDefault(),S(!E)}const x=n.lightbox&&!n.protect?"a":n.lightbox?"button":"div";return __AURISERVE.h(x,{class:(0,o.TS)(u,"media",n.class),style:n.style,onClick:n.lightbox?I:void 0,target:"_blank",href:"a"===x?`/media/variants/${g}.full.webp`:void 0},"loaded"!==R&&__AURISERVE.h(t.Static,null,__AURISERVE.h("div",{"aria-hidden":!0,style:`aspect-ratio: ${m}; ${null!==(i=n.imgStyle)&&void 0!==i?i:""};\n\t\t\t\t\t\t\tbackground-image: url(${"media"in n&&null!==(r=null===(a=l.getMediaImageVariants(n.media).find((t=>"load"===t.type)))||void 0===a?void 0:a.path)&&void 0!==r?r:""});`,class:"preview"})),__AURISERVE.h("div",{style:`aspect-ratio: ${m}; ${null!==(s=n.imgStyle)&&void 0!==s?s:""}\n\t\t\t\t\tbackground-image: url(/media/variants/${g}.lg.webp);`,class:(0,o.TS)("image","static"===R&&"static","loaded"===R&&"loaded","transition"===R&&"loaded animate")}),__AURISERVE.h("img",{ref:function(t){t&&w&&($(!1),setTimeout((()=>{t.complete?A("loaded"):(A("loading"),t.addEventListener("load",(()=>{A("transition"),setTimeout((()=>A("loaded")),1e3)})))}),50))},style:`${n.protect?"pointer-events: none; user-select: none;":""} aspect-ratio: ${m};`,width:p,height:v,src:`/media/variants/${g}.lg.webp`,alt:null!==(h=n.alt)&&void 0!==h?h:"",loading:null===(f=n.lazy)||void 0===f||f?"lazy":void 0,class:"loader"}),__AURISERVE.h(d,{open:E,path:`/media/variants/${g}.lg.webp`,fullPath:`/media/variants/${g}.full.webp`,width:p,height:v,alt:n.alt,protect:n.protect,onClose:I}))}const g=(0,t.hydrate)(u,(function(t){return"url"in t?__AURISERVE.h(h,t):__AURISERVE.h(f,t)}),(t=>{var e,n,i;if("url"in t)return t;(0,o.hu)("media"in t,"Hydration function is running on the client?");const r=t,a=l.getMediaImageVariants(t.media).find((t=>"lg"===t.type));return a||c.log.error("No variant found for media image",t.media),delete r.media,r.path=(null!==(e=null==a?void 0:a.path)&&void 0!==e?e:"").replace(/.+[\\/]media\/variants\//,"").replace(/\.\w+\.webp/,""),r.width=null!==(n=null==a?void 0:a.width)&&void 0!==n?n:0,r.height=null!==(i=null==a?void 0:a.height)&&void 0!==i?i:0,r})),p={identifier:u,component:g},v="base:carousel",m=(0,t.hydrate)(v,(function(n){var i,r;const a=(0,e.useRef)(null),s=Array.isArray(n.children)?n.children:[n.children];return null!==(i=n.speed)&&void 0!==i||(n.speed=200),(0,e.useEffect)((()=>{const t=a.current,e=t.querySelector(".carousel-items"),i=e.children[0];let r=0;t.classList.remove("static"),i.children[0].classList.add("active"),e.style.height=`${i.children[0].clientHeight}px`;let o,s=!0;const l=new IntersectionObserver((t=>{const e=t[0].isIntersecting;e&&!o&&s?o=setInterval((()=>{c(1,"right",!1)}),n.interval):!e&&o&&s&&(clearInterval(o),o=0)}),{threshold:.5});function c(t,a,c){c&&s&&(clearInterval(o),o=0,s=!1,l.disconnect());const u=i.children[r];r=(r+t+4*i.children.length)%i.children.length;const d=i.children[r];u.style.transitionDuration=`${n.speed}ms`,u.classList.add("right"===a?"transition-left":"transition-right"),d.classList.add("active"),d.classList.add("right"===a?"transition-right":"transition-left"),e.style.height=`${d.clientHeight}px`,setTimeout((()=>{requestAnimationFrame((()=>{d.style.transitionDuration=`${n.speed}ms`,requestAnimationFrame((()=>{d.classList.remove("right"===a?"transition-right":"transition-left")}))})),setTimeout((()=>{d.style.transitionDuration=""}),n.speed)}),n.speed/2),setTimeout((()=>{u.classList.remove("active"),u.classList.remove("right"===a?"transition-left":"transition-right"),u.style.transitionDuration=""}),n.speed)}l.observe(t);const u=Array.prototype.slice.call(t.querySelectorAll(".button-arrow"));u.length&&(u[0].addEventListener("click",(()=>c(-1,"left",!0))),u[1].addEventListener("click",(()=>c(1,"right",!0))))}),[n.interval,n.speed]),__AURISERVE.h("div",{ref:a,class:(0,o.TS)(v,n.class,"static"),style:{maxWidth:n.width?`${n.width}px`:void 0,..."arrows"===n.pagination?{paddingLeft:64,paddingRight:64}:{},...null!==(r=n.style)&&void 0!==r?r:{}}},__AURISERVE.h("div",{class:"carousel-items",style:{transitionDuration:1.5*n.speed+"ms"}},__AURISERVE.h(t.Static,null,s.map(((t,e)=>__AURISERVE.h("div",{key:e,class:"carousel-item"},t))))),"arrows"===n.pagination&&__AURISERVE.h("button",{class:"button-arrow","aria-label":"Previous"}),"arrows"===n.pagination&&__AURISERVE.h("button",{class:"button-arrow","aria-label":"Next"}))})),b={identifier:v,component:m};(0,t.hydrateElement)(b),(0,t.hydrateElement)(p),(0,t.hydrateElement)(a)})(),window.__ASP_ELEMENTS_BASE=i})();