!function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rr?1:-1,c=setTimeout((function(){o(r+u)}),l);return function(){return clearTimeout(c)}}),[i.React.Children.count(e.children),l,r,p,a]),i.React.createElement(s,{className:e.className},i.React.Children.map(e.children,(function(t,n){return i.React.createElement(d,{className:e.childClassName,style:{transition:"opacity ".concat(a,"ms, transform ").concat(a,"ms"),transform:r>n?"none":"translateY(".concat(f,"px)"),opacity:r>n?1:0}},t)})))}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function l(e,t,r){return n=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==f(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e;var n}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,m),u=t?g[t]:void 0;!u&&o&&t&&b&&(u=h(t));var c=n(y(u?u.loading:Boolean(t)),2),a=c[0],f=c[1],l=n(y(u?u.error:null),2),s=l[0],d=l[1];return v((function(){if(b&&t&&a&&!s){var e;!(u=g[t])&&o&&(u=h(t)),u?e=u.scriptEl:((e=document.createElement("script")).src=t,Object.keys(i).forEach((function(t){void 0===e[t]?e.setAttribute(t,i[t]):e[t]=i[t]})),u=g[t]={loading:!0,error:null,scriptEl:e});var r=function(){u&&(u.loading=!1),f(!1)},n=function(e){u&&(u.error=e),d(e)};return e.addEventListener("load",r),e.addEventListener("error",n),document.body.appendChild(e),function(){e.removeEventListener("load",r),e.removeEventListener("error",n)}}}),[t]),[a,s]}var w=gform.utils,j=/input|select|textarea|button|object/,S="a, input, select, textarea, button, object, [tabindex]";function E(e){var t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function P(e){var t=e.nodeName.toLowerCase(),r=!isNaN(E(e));return(j.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&function(e){for(var t,r=e;r&&r!==document.body;){if(t=r,!(0,w.isJestTest)()&&(t.offsetWidth<=0&&t.offsetHeight<=0||"none"===t.style.display))return!1;r=r.parentNode}return!0}(e)}function A(e){var t=E(e);return(isNaN(t)||t>=0)&&P(e)}function D(e){return Array.from(e.querySelectorAll(S)).filter(A)}var T=[],R=null,k=!1;function C(){k=!0}function L(){if(k){if(k=!1,!R)return;if(!R)return;if(R.contains(document.activeElement))return;(D(R)[0]||R).focus()}}var x=i.React.useCallback,N=i.React.useEffect,M=i.React.useRef,F=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=M(),n=M(null),o=x((function(o){if(n.current&&n.current(),r.current&&(function(){var e=null;try{(e=T.pop())&&setTimeout((function(){return e.focus()}))}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}}(),R=null,document.removeEventListener("focusout",C),document.removeEventListener("focusin",L)),e&&o){R=o,document.addEventListener("focusout",C,!1),document.addEventListener("focusin",L,!0),T.push(document.activeElement);setTimeout((function(){o.ownerDocument?function(e){n.current=t.disableAriaHider?null:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body > :not(script)",r=Array.from(document.querySelectorAll(t)).map((function(t){if(!t.contains(e)){var r=t.getAttribute("aria-hidden");return null!==r&&"false"!==r||t.setAttribute("aria-hidden","true"),{node:t,ariaHidden:r}}}));return function(){r.forEach((function(e){e&&(null===e.ariaHidden?e.node.removeAttribute("aria-hidden"):e.node.setAttribute("aria-hidden",e.ariaHidden))}))}}(e);var r=null;if(t.focusSelector&&(r="string"==typeof t.focusSelector?e.querySelector(t.focusSelector):t.focusSelector),!r){var o=Array.from(e.querySelectorAll(S));!(r=o.find(A)||o.find(P)||null)&&P(e)&&(r=e)}r?r.focus():console.warn('[useFocusTrap]: Failed to find a focusable element after activating the focus trap. Make sure to include at an element that can recieve focus. As a fallback, you can also set "tabIndex={-1}" on the focus trap node.',e)}(o):console.warn("[useFocusTrap]: The focus trap is not part of the DOM yet, so it is unable to correctly set focus. Make sure to render the ref node.",o)})),r.current=o}else r.current=null}),[e,t.focusSelector,t.disableAriaHider]);return N((function(){if(e){var t=function(e){"Tab"===e.key&&r.current&&function(e,t){var r=D(e);if(r.length){if(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement){t.preventDefault();var n=r[t.shiftKey?r.length-1:0];n&&n.focus()}}else t.preventDefault()}(r.current,e)};return document.addEventListener("keydown",t),function(){document.removeEventListener("keydown",t)}}}),[e]),o};function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;t