forked from bombastictranz/builder.io
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4deb61e0b0aef839dd1a811ab23de4bd18b429bd.260077ea9c3f90d52b05.js.download
1 lines (1 loc) · 211 KB
/
4deb61e0b0aef839dd1a811ab23de4bd18b429bd.260077ea9c3f90d52b05.js.download
1
(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[4],{"0w6r":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return Builder})),__webpack_require__.d(__webpack_exports__,"a",(function(){return BehaviorSubject})),__webpack_require__.d(__webpack_exports__,"c",(function(){return Subscription})),__webpack_require__.d(__webpack_exports__,"d",(function(){return builder}));var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("mrSG"),hash_sum__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("hjRj"),hash_sum__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(hash_sum__WEBPACK_IMPORTED_MODULE_1__);!function(){if("undefined"===typeof window||"function"===typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}();var isSafari="undefined"!==typeof window&&/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent);function nextTick(e){if("function"===typeof setImmediate&&"undefined"===typeof window)return setImmediate(e);if(isSafari||"undefined"===typeof MutationObserver)setTimeout(e);else{var t=0,n=new MutationObserver((function(){return e()})),r=document.createTextNode("");n.observe(r,{characterData:!0}),r.data=String(t=++t)}}var PROPERTY_NAME_DENY_LIST=Object.freeze(["__proto__","prototype","constructor"]),QueryString=function(){function e(){}return e.parseDeep=function(e){var t=this.parse(e);return this.deepen(t)},e.stringifyDeep=function(e){var t=this.flatten(e);return this.stringify(t)},e.parse=function(e){for(var t={},n=("?"===e[0]?e.substr(1):e).split("&"),r=0;r<n.length;r++){var i=n[r].split("=");try{t[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}catch(o){}}return t},e.stringify=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(r)}return t},e.deepen=function(e){var t={};for(var n in e){for(var r=t,i=n.split("."),o=i.pop(),a=0,s=i;a<s.length;a++){var c=s[a];assertAllowedPropertyName(c),r=r[c]=r[c]||{}}r[o]=e[n]}return t},e.flatten=function(e,t,n){for(var r in void 0===n&&(n={}),e){var i=e[r],o=t?t+"."+r:r;i&&"object"===typeof i?this.flatten(i,o,n):n[o]=i}return n},e}();function assertAllowedPropertyName(e){if(PROPERTY_NAME_DENY_LIST.indexOf(e)>=0)throw new Error('Property name "'.concat(e,'" is not allowed'))}var version="2.0.2",Subscription=function(){function e(e,t){this.listeners=e,this.listener=t,this.unsubscribed=!1,this.otherSubscriptions=[]}return Object.defineProperty(e.prototype,"closed",{get:function(){return this.unsubscribed},enumerable:!1,configurable:!0}),e.prototype.add=function(e){this.otherSubscriptions.push(e)},e.prototype.unsubscribe=function(){if(!this.unsubscribed){if(this.listener&&this.listeners){var e=this.listeners.indexOf(this.listener);e>-1&&this.listeners.splice(e,1)}this.otherSubscriptions.forEach((function(e){return e.unsubscribe()})),this.unsubscribed=!0}},e}(),BehaviorSubject=function(){function e(e){this.value=e,this.listeners=[],this.errorListeners=[]}return e.prototype.next=function(e){this.value=e;for(var t=0,n=this.listeners;t<n.length;t++){(0,n[t])(e)}},e.prototype.map=function(t){var n=new e(t(this.value));return this.subscribe((function(e){n.next(t(e))})),this.catch((function(e){n.error(e)})),n},e.prototype.catch=function(e){return this.errorListeners.push(e),new Subscription(this.errorListeners,e)},e.prototype.error=function(e){for(var t=0,n=this.errorListeners;t<n.length;t++){(0,n[t])(e)}},e.prototype.subscribe=function(e,t){return this.listeners.push(e),t&&this.errorListeners.push(t),new Subscription(this.listeners,e)},e.prototype.toPromise=function(){var e=this;return new Promise((function(t,n){var r=e.subscribe((function(e){t(e),r.unsubscribe()}),(function(e){n(e),r.unsubscribe()}))}))},e.prototype.promise=function(){return this.toPromise()},e}(),State={Pending:"Pending",Fulfilled:"Fulfilled",Rejected:"Rejected"};function isFunction(e){return e&&"function"===typeof e}function isObject(e){return e&&"object"===typeof e}var TinyPromise=function(){function e(e){this._state=State.Pending,this._handlers=[],this._value=null,e(this._resolve.bind(this),this._reject.bind(this))}return e.prototype._resolve=function(t){var n=this;if(t instanceof e)t.then(this._resolve.bind(this),this._reject.bind(this));else if(isObject(t)||isFunction(t)){var r=!1;try{var i=t.then;isFunction(i)?i.call(t,(function(e){r||n._resolve(e),r=!0}),(function(e){r||n._reject(e),r=!0})):this._fulfill(t)}catch(o){r||this._reject(o)}}else this._fulfill(t)},e.prototype._fulfill=function(e){var t=this;this._state=State.Fulfilled,this._value=e,this._handlers.forEach((function(e){return t._callHandler(e)}))},e.prototype._reject=function(e){var t=this;this._state=State.Rejected,this._value=e,this._handlers.forEach((function(e){return t._callHandler(e)}))},e.prototype._isPending=function(){return this._state===State.Pending},e.prototype._isFulfilled=function(){return this._state===State.Fulfilled},e.prototype._isRejected=function(){return this._state===State.Rejected},e.prototype._addHandler=function(e,t){this._handlers.push({onFulfilled:e,onRejected:t})},e.prototype._callHandler=function(e){this._isFulfilled()&&isFunction(e.onFulfilled)?e.onFulfilled(this._value):this._isRejected()&&isFunction(e.onRejected)&&e.onRejected(this._value)},e.prototype.then=function(t,n){var r=this;switch(this._state){case State.Pending:return new e((function(e,i){r._addHandler((function(n){nextTick((function(){try{isFunction(t)?e(t(n)):e(n)}catch(r){i(r)}}))}),(function(t){nextTick((function(){try{isFunction(n)?e(n(t)):i(t)}catch(r){i(r)}}))}))}));case State.Fulfilled:return new e((function(e,n){nextTick((function(){try{isFunction(t)?e(t(r._value)):e(r._value)}catch(i){n(i)}}))}));case State.Rejected:return new e((function(e,t){nextTick((function(){try{isFunction(n)?e(n(r._value)):t(r._value)}catch(i){t(i)}}))}))}},e}(),Promise$1="undefined"!==typeof Promise?Promise:TinyPromise,serverOnlyRequire;try{serverOnlyRequire=eval("require")}catch(err){serverOnlyRequire=function(){return null}}var serverOnlyRequire$1=serverOnlyRequire;function promiseResolve(e){return new Promise$1((function(t){return t(e)}))}function tinyFetch(e,t){return void 0===t&&(t={}),new Promise$1((function(n,r){var i=new XMLHttpRequest;if(i.open(t.method||"get",e,!0),t.headers)for(var o in t.headers)i.setRequestHeader(o,t.headers[o]);function a(){var e=[],t=[],n={},r=void 0;return i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(i,o,a){var s=o;return e.push(s=s.toLowerCase()),t.push([s,a]),r=n[s],n[s]=r?"".concat(r,",").concat(a):a,""})),{ok:2===(i.status/100|0),status:i.status,statusText:i.statusText,url:i.responseURL,clone:a,text:function(){return promiseResolve(i.responseText)},json:function(){return promiseResolve(i.responseText).then(JSON.parse)},blob:function(){return promiseResolve(new Blob([i.response]))},headers:{keys:function(){return e},entries:function(){return t},get:function(e){return n[e.toLowerCase()]},has:function(e){return e.toLowerCase()in n}}}}i.withCredentials="include"===t.credentials,i.onload=function(){n(a())},i.onerror=r,i.send(t.body)}))}function getFetch(){var e=void 0;if(globalThis.fetch)null!==e&&void 0!==e||(e=globalThis.fetch);else if("undefined"===typeof window)try{null!==e&&void 0!==e||(e=serverOnlyRequire$1("node-fetch"))}catch(t){console.warn("node-fetch is not installed. consider polyfilling fetch or installing node-fetch."),console.warn(t)}return null!==e&&void 0!==e?e:tinyFetch}function assign(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=Object(e),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r}function throttle(e,t,n){var r,i,o;void 0===n&&(n={});var a=null,s=0,c=function(){s=!1===n.leading?0:Date.now(),a=null,o=e.apply(r,i),a||(r=i=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var l=t-(u-s);return r=this,i=arguments,l<=0||l>t?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(c,l)),o}}var camelCaseToKebabCase=function(e){return e?e.replace(/([A-Z])/g,(function(e){return"-".concat(e[0].toLowerCase())})):""},Animator=function(){function e(){}return e.prototype.bindAnimations=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];switch(r.trigger){case"pageLoad":this.triggerAnimation(r);break;case"hover":this.bindHoverAnimation(r);break;case"scrollInView":this.bindScrollInViewAnimation(r)}}},e.prototype.warnElementNotPresent=function(e){console.warn("Cannot animate element: element with ID ".concat(e," not found!"))},e.prototype.augmentAnimation=function(e,t){for(var n=this.getAllStylesUsed(e),r=getComputedStyle(t),i=0,o=[e.steps[0].styles,e.steps[e.steps.length-1].styles];i<o.length;i++)for(var a=o[i],s=0,c=n;s<c.length;s++){var u=c[s];u in a||(a[u]=r[u])}},e.prototype.getAllStylesUsed=function(e){for(var t=[],n=0,r=e.steps;n<r.length;n++){var i=r[n];for(var o in i.styles)-1===t.indexOf(o)&&t.push(o)}return t},e.prototype.triggerAnimation=function(e){var t=this,n=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));n.length?Array.from(n).forEach((function(n){t.augmentAnimation(e,n),n.style.transition="none",n.style.transitionDelay="0",assign(n.style,e.steps[0].styles),setTimeout((function(){n.style.transition="all ".concat(e.duration,"s ").concat(camelCaseToKebabCase(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s"),assign(n.style,e.steps[1].styles),setTimeout((function(){n.style.transition="",n.style.transitionDelay=""}),1e3*(e.delay||0)+1e3*e.duration+100)}))})):this.warnElementNotPresent(e.elementId||e.id||"")},e.prototype.bindHoverAnimation=function(e){var t=this,n=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));n.length?Array.from(n).forEach((function(n){t.augmentAnimation(e,n);var r=e.steps[0].styles,i=e.steps[1].styles;function o(){assign(n.style,r)}o(),n.addEventListener("mouseenter",(function(){assign(n.style,i)})),n.addEventListener("mouseleave",o),setTimeout((function(){n.style.transition="all ".concat(e.duration,"s ").concat(camelCaseToKebabCase(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s")}))})):this.warnElementNotPresent(e.elementId||e.id||"")},e.prototype.bindScrollInViewAnimation=function(e){var t=this,n=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));n.length?Array.from(n).forEach((function(n){t.augmentAnimation(e,n);var r=!1,i=!1;function o(){!r&&s(n)?(r=!0,i=!0,setTimeout((function(){assign(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",a),setTimeout((function(){i=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")}),1e3*(e.duration+(e.delay||0))+100)}))):e.repeat&&r&&!i&&!s(n)&&(r=!1,assign(n.style,e.steps[0].styles))}var a=throttle(o,200,{leading:!1});function s(t){var n=t.getBoundingClientRect(),r=window.innerHeight,i=(e.thresholdPercent||0)/100*r;return n.bottom>i&&n.top<r-i}var c=e.steps[0].styles;assign(n.style,c),setTimeout((function(){n.style.transition="all ".concat(e.duration,"s ").concat(camelCaseToKebabCase(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s")})),document.addEventListener("scroll",a,{capture:!0,passive:!0}),o()})):this.warnElementNotPresent(e.elementId||e.id||"")},e}();function getTopLevelDomain(e){var t=e.split(".");return t.length>2?t.slice(1).join("."):e}var fieldContentRegExp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Cookies=function(){function e(e,t){this.request=e,this.response=t}return e.prototype.get=function(e){var t=this.request.headers.cookie;if(t){var n=t.match(getPattern(e));if(n)return n[1]}},e.prototype.set=function(e,t,n){var r=this.response,i=this.request,o=r.getHeader("Set-Cookie")||[],a=void 0!==this.secure?!!this.secure:"https"===i.protocol||i.connection.encrypted,s=new Cookie(e,t,n);if("string"===typeof o&&(o=[o]),!a&&n&&n.secure)throw new Error("Cannot send secure cookie over unencrypted connection");return s.secure=a,n&&"secure"in n&&(s.secure=!!n.secure),s.domain=i.headers.host&&getTopLevelDomain(i.headers.host),pushCookie(o,s),r.setHeader.call(r,"Set-Cookie",o),this},e}(),Cookie=function(){function e(e,t,n){if(this.path="/",this.domain=void 0,this.httpOnly=!0,this.sameSite=!1,this.secure=!1,this.overwrite=!1,this.name="",this.value="",!fieldContentRegExp.test(e))throw new TypeError("argument name is invalid");if(t&&!fieldContentRegExp.test(t))throw new TypeError("argument value is invalid");t||(this.expires=new Date(0)),this.name=e,this.value=t||"",n.expires&&(this.expires=n.expires),n.secure&&(this.secure=n.secure)}return e.prototype.toString=function(){return"".concat(this.name,"=").concat(this.value)},e.prototype.toHeader=function(){var e=this.toString();return this.maxAge&&(this.expires=new Date(Date.now()+this.maxAge)),this.path&&(e+="; path=".concat(this.path)),this.expires&&(e+="; expires=".concat(this.expires.toUTCString())),this.domain&&(e+="; domain=".concat(this.domain)),e+="; SameSite=".concat(!0===this.sameSite?"strict":"None"),this.secure&&(e+="; secure"),this.httpOnly&&(e+="; httponly"),e},e}();function getPattern(e){return new RegExp("(?:^|;) *".concat(e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"=([^;]*)"))}function pushCookie(e,t){if(t.overwrite)for(var n=e.length-1;n>=0;n--)0===e[n].indexOf("".concat(t.name,"="))&&e.splice(n,1);e.push(t.toHeader())}function omit(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=Object.assign({},e),i=0,o=t;i<o.length;i++){var a=o[i];delete r[a]}return r}function uuidv4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}function uuid(){return uuidv4().replace(/-/g,"")}function emptyUrl(){return{query:null,port:null,auth:null,hash:null,host:null,hostname:null,href:null,path:null,pathname:null,protocol:null,search:null,slashes:null}}function parse(e){var t,n=emptyUrl();return""===e||"/"===e[0]?(t=new URL(e,"http://0.0.0.0/"),n.href=t.href,n.href=n.href.slice(14)):(t=new URL(e),n.href=t.href,n.port=""===t.port?null:t.port,n.hash=""===t.hash?null:t.hash,n.host=t.host,n.hostname=t.hostname,n.href=t.href,n.pathname=t.pathname,n.protocol=t.protocol,n.slashes="/"===e[t.protocol.length]),n.search=t.search,n.query=t.search.slice(1),n.path="".concat(t.pathname).concat(t.search),n.pathname=t.pathname,n}function toError(e){return e instanceof Error?e:new Error(String(e))}var DEFAULT_API_VERSION="v3";function datePlusMinutes(e){return void 0===e&&(e=30),new Date(Date.now()+6e4*e)}var isPositiveNumber=function(e){return"number"===typeof e&&!isNaN(e)&&e>=0},isReactNative="object"===typeof navigator&&"ReactNative"===navigator.product,validEnvList=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"];function getQueryParam(e,t){for(var n=(e.split("?")[1]||"").split("&"),r=0;r<n.length;r++){var i=n[r].split("=");if(decodeURIComponent(i[0])===t)return decodeURIComponent(i[1])}return null}var urlParser={parse:function(e){var t=document.createElement("a");t.href=e;for(var n={},r=0,i=["username","password","host","hostname","port","protocol","origin","pathname","search","hash"];r<i.length;r++){var o=i[r];n[o]=t[o]}return!n.pathname&&""!==n.pathname||"string"!==typeof n.pathname||0===n.pathname.indexOf("/")||(n.pathname="/"+n.pathname),n}},parse$1=isReactNative?function(){return emptyUrl()}:"object"===typeof window?urlParser.parse:parse;function setCookie(e,t,n){try{var r="";n&&(r="; expires="+n.toUTCString());var i=!isBrowser||"https:"===location.protocol;document.cookie=e+"="+(t||"")+r+"; path=/"+"; domain=".concat(getTopLevelDomain(location.hostname))+(i?";secure ; SameSite=None":"")}catch(err){console.warn("Could not set cookie",err)}}function getCookie(e){try{return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}catch(err){console.warn("Could not get cookie",err)}}function size(e){return Object.keys(e).length}function find(e,t){for(var n=e,r=n.length>>>0,i=arguments[1],o=0;o<r;o++){var a=n[o];if(t.call(i,a,o,n))return a}}var sessionStorageKey="builderSessionId",localStorageKey="builderVisitorId",isBrowser="undefined"!==typeof window&&!isReactNative,isIframe=isBrowser&&window.top!==window.self;function BuilderComponent(e){return void 0===e&&(e={}),Builder.Component(e)}var Builder=function(){function e(t,n,r,i,o,a){void 0===t&&(t=null),void 0===i&&(i=!1),void 0===o&&(o=null);var s=this;if(this.request=n,this.response=r,this.eventsQueue=[],this.throttledClearEventsQueue=throttle((function(){s.processEventsQueue(),s.setCookie(sessionStorageKey,s.sessionId,datePlusMinutes(30))}),5),this.env="production",this.sessionId=this.getSessionId(),this.targetContent=!0,this.contentPerRequest=1,this.allowCustomFonts=!0,this.cookies=null,this.cachebust=!1,this.overrideParams="",this.noCache=!1,this.preview=!1,this.apiVersion$=new BehaviorSubject(void 0),this.canTrack$=new BehaviorSubject(!this.browserTrackingDisabled),this.apiKey$=new BehaviorSubject(null),this.authToken$=new BehaviorSubject(null),this.userAttributesChanged=new BehaviorSubject(null),this.editingMode$=new BehaviorSubject(isIframe),this.editingModel$=new BehaviorSubject(null),this.userAgent="object"===typeof navigator&&navigator.userAgent||"",this.trackingHooks=[],this.visitorId=this.getVisitorId(),this.autoTrack=!!e.isBrowser&&(!this.isDevelopmentEnv&&!(e.isBrowser&&-1!==location.search.indexOf("builder.preview="))),this.trackingUserAttributes={},this.blockContentLoading="",this.observersByKey={},this.noEditorUpdates={},this.overrides={},this.queryOptions={},this.getContentQueue=null,this.priorContentQueue=null,this.testCookiePrefix="builder.tests",this.cookieQueue=[],e.isBrowser&&!i&&e.singletonInstance)return e.singletonInstance;this.request&&this.response&&(this.setUserAgent(this.request.headers["user-agent"]||""),this.cookies=new Cookies(this.request,this.response)),t&&(this.apiKey=t),a&&(this.apiVersion=a),o&&(this.authToken=o),isBrowser&&(this.bindMessageListeners(),e.isEditing&&parent.postMessage({type:"builder.animatorOptions",data:{options:{version:2}}},"*")),isIframe&&this.messageFrameLoaded(),this.canTrack$.subscribe((function(e){if(e){if("undefined"!==typeof sessionStorage)try{sessionStorage.getItem(sessionStorageKey)||sessionStorage.setItem(sessionStorageKey,s.sessionId)}catch(err){console.debug("Session storage error",err)}s.eventsQueue.length&&s.throttledClearEventsQueue(),s.cookieQueue.length&&(s.cookieQueue.forEach((function(e){s.setCookie(e[0],e[1])})),s.cookieQueue.length=0)}})),isBrowser&&(this.setTestsFromUrl(),this.getOverridesFromQueryString())}return e.register=function(t,n){var r=this.registry[t];if(r||(r=this.registry[t]=[]),r.push(n),e.isBrowser){var i={type:"builder.register",data:{type:t,info:n}};try{parent.postMessage(i,"*"),parent!==window&&window.postMessage(i,"*")}catch(err){console.debug("Could not postmessage",err)}}this.registryChange.next(this.registry)},e.registerEditor=function(t){if(e.isBrowser){window.postMessage({type:"builder.registerEditor",data:omit(t,"component")},"*");var n=location.hostname;e.isTrustedHost(n)||console.error("Builder.registerEditor() called in the wrong environment! You cannot load custom editors from your app, they must be loaded through the Builder.io app itself. Follow the readme here for more details: https://github.com/builderio/builder/tree/master/plugins/cloudinary or contact chat us in our Spectrum community for help: https://spectrum.chat/builder")}this.editors.push(t)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerAction=function(e){this.actions.push(e)},e.registerTrustedHost=function(e){this.trustedHosts.push(e)},e.isTrustedHost=function(e){return this.trustedHosts.findIndex((function(t){return t===e||e.endsWith(".".concat(t))}))>-1},e.runAction=function(e){if(!("string"===typeof e?find(this.actions,(function(t){return t.name===e})):e))throw new Error("Action not found: ".concat(e))},e.fields=function(e,t){var n;null===(n=window.parent)||void 0===n||n.postMessage({type:"builder.fields",data:{name:e,fields:t}},"*")},e.set=function(t){e.register("editor.settings",t)},e.import=function(t){if(e.isBrowser){var n=window.System;if(n)return n.import("https://cdn.builder.io/systemjs/".concat(t));console.warn("System.js not available. Please include System.js when using Builder.import")}else console.warn("Builder.import used on the server - this should only be used in the browser")},Object.defineProperty(e,"editingPage",{get:function(){return this._editingPage},set:function(e){this._editingPage=e,isBrowser&&isIframe&&(e?document.body.classList.add("builder-editing-page"):document.body.classList.remove("builder-editing-page"))},enumerable:!1,configurable:!0}),e.prepareComponentSpecToSend=function(e){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e),e.inputs&&{inputs:e.inputs.map((function(e){for(var t,n=0,r=["onChange","showIf"];n<r.length;n++){var i=r[n];if(e[i]&&"function"===typeof e[i]){var o=e[i];e=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e),((t={})[i]="return (".concat(o.toString(),").apply(this, arguments)"),t))}}return e}))}),{hooks:Object.keys(e.hooks||{}).reduce((function(t,n){var r=e.hooks&&e.hooks[n];return r?(t[n]="string"===typeof r?r:"return (".concat(r.toString(),").apply(this, arguments)"),t):t}),{}),class:void 0})},e.registerBlock=function(e,t){this.registerComponent(e,t)},e.registerComponent=function(e,t){var n,r=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({class:e},e.builderOptions),t);if(this.addComponent(r),t.models&&this.singletonInstance.editingModel?isBrowser&&t.models.includes(this.singletonInstance.editingModel):isBrowser){var i=this.prepareComponentSpecToSend(r);null===(n=window.parent)||void 0===n||n.postMessage({type:"builder.registerComponent",data:i},"*")}},e.addComponent=function(e){var t=find(this.components,(function(t){return t.name===e.name}));if(t){if(t.class&&!e.class)return;this.components.splice(this.components.indexOf(t),1,e)}else this.components.push(e)},e.component=function(e){var t=this;return void 0===e&&(e={}),function(n){var r,i=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e),{class:n});i.name||(i.name=n.name),t.addComponent(i);var o=t.prepareComponentSpecToSend(i);return isBrowser&&(null===(r=window.parent)||void 0===r||r.postMessage({type:"builder.registerComponent",data:o},"*")),n}},Object.defineProperty(e,"Component",{get:function(){return this.component},enumerable:!1,configurable:!0}),e.prototype.processEventsQueue=function(){if(this.eventsQueue.length){var t=this.eventsQueue;this.eventsQueue=[];for(var n=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e.overrideUserAttributes),this.trackingUserAttributes),r=0,i=t;r<i.length;r++){var o=i[r];o.data.metadata||(o.data.metadata={}),o.data.metadata.user||(o.data.metadata.user={}),Object.assign(o.data.metadata.user,n,o.data.metadata.user)}var a=this.host;getFetch()("".concat(a,"/api/v1/track"),{method:"POST",body:JSON.stringify({events:t}),headers:{"content-type":"application/json"},mode:"cors"}).catch((function(){}))}},Object.defineProperty(e.prototype,"browserTrackingDisabled",{get:function(){return e.isBrowser&&Boolean(window.builderNoTrack||!navigator.cookieEnabled)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canTrack",{get:function(){return this.canTrack$.value},set:function(e){this.canTrack!==e&&this.canTrack$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"apiVersion",{get:function(){return this.apiVersion$.value},set:function(e){this.apiVersion!==e&&this.apiVersion$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingMode",{get:function(){return this.editingMode$.value},set:function(e){e!==this.editingMode&&this.editingMode$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingModel",{get:function(){return this.editingModel$.value},set:function(e){e!==this.editingModel&&this.editingModel$.next(e)},enumerable:!1,configurable:!0}),e.prototype.findParentElement=function(e,t,n){if(void 0===n&&(n=!0),!(e instanceof HTMLElement))return null;var r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},e.prototype.findBuilderParent=function(e){return this.findParentElement(e,(function(e){var t=e.getAttribute("builder-id")||e.id;return Boolean(t&&0===t.indexOf("builder-"))}))},e.prototype.setUserAgent=function(e){this.userAgent=e||""},e.prototype.setTrackingHook=function(e){this.trackingHooks.push(e)},e.prototype.track=function(t,n,r){if(void 0===n&&(n={}),!isIframe&&isBrowser&&!e.isPreviewing){var i=this.apiKey;if(i){for(var o=JSON.parse(JSON.stringify({type:t,data:Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},omit(n,"meta")),{metadata:Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({sdkVersion:e.VERSION,url:location.href},n.meta),n.metadata),ownerId:i,userAttributes:this.getUserAttributes(),sessionId:this.sessionId,visitorId:this.visitorId})})),a=0,s=this.trackingHooks;a<s.length;a++){var c=(0,s[a])(o,r||{});c&&(o=c)}this.eventsQueue.push(o),this.canTrack&&this.throttledClearEventsQueue()}else console.error('Builder integration error: Looks like the Builder SDK has not been initialized properly (your API key has not been set). Make sure you are calling `builder.init("\xabYOUR-API-KEY\xbb");` as early as possible in your application\'s code.')}},e.prototype.getSessionId=function(){var t=this,n=null;try{e.isBrowser&&"undefined"!==typeof sessionStorage&&(n=this.getCookie(sessionStorageKey))}catch(err){console.debug("Session storage error",err)}return n||(n=uuid()),e.isBrowser&&setTimeout((function(){try{t.canTrack&&t.setCookie(sessionStorageKey,n,datePlusMinutes(30))}catch(err){console.debug("Cookie setting error",err)}})),n},e.prototype.getVisitorId=function(){var t=this;if(this.visitorId)return this.visitorId;var n=null;try{e.isBrowser&&"undefined"!==typeof localStorage&&(n=localStorage.getItem(localStorageKey))}catch(err){console.debug("Local storage error",err)}return n||(n=uuid()),this.visitorId=n,e.isBrowser&&setTimeout((function(){try{t.canTrack&&"undefined"!==typeof localStorage&&n&&localStorage.setItem(localStorageKey,n)}catch(err){console.debug("Session storage error",err)}})),n},e.prototype.trackImpression=function(t,n,r,i){isIframe||!isBrowser||e.isPreviewing||this.track("impression",{contentId:t,variationId:n!==t?n:void 0,metadata:r},i)},e.prototype.trackConversion=function(t,n,r,i,o){if(!isIframe&&isBrowser&&!e.isPreviewing){var a="object"===typeof n?n:i,s="string"===typeof n?n:void 0;this.track("conversion",{amount:t,variationId:r,meta:a,contentId:s},o)}},Object.defineProperty(e.prototype,"isDevelopmentEnv",{get:function(){return e.isIframe||e.isBrowser&&("localhost"===location.hostname||""!==location.port)||"production"!==this.env},enumerable:!1,configurable:!0}),e.prototype.trackInteraction=function(t,n,r,i,o){if(void 0===r&&(r=!1),!isIframe&&isBrowser&&!e.isPreviewing){var a=i&&i.target,s=a&&this.findBuilderParent(a),c={};if(i){var u=i.clientX,l=i.clientY;if(a){var _=u-(h=a.getBoundingClientRect()).left,d=l-h.top,p=b(_/h.width),f=b(d/h.height);c.targetOffset={x:p,y:f}}if(s){var h;_=u-(h=s.getBoundingClientRect()).left,d=l-h.top,p=b(_/h.width),f=b(d/h.height);c.builderTargetOffset={x:p,y:f}}}var m=s&&(s.getAttribute("builder-id")||s.id);m&&s&&(c.builderElementIndex=[].slice.call(document.getElementsByClassName(m)).indexOf(s)),this.track("click",{contentId:t,metadata:c,variationId:n!==t?n:void 0,unique:!r,targetBuilderElement:m||void 0},o)}function b(e){return Math.round(1e3*e)/1e3}},e.prototype.component=function(t){return void 0===t&&(t={}),e.component(t)},Object.defineProperty(e.prototype,"apiKey",{get:function(){return this.apiKey$.value},set:function(e){this.apiKey$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authToken",{get:function(){return this.authToken$.value},set:function(e){this.authToken$.next(e)},enumerable:!1,configurable:!0}),e.prototype.modifySearch=function(e){return e.replace(/(^|&|\?)(builder_.*?)=/gi,(function(e,t,n){return t+n.replace(/_/g,".")+"="}))},e.prototype.setTestsFromUrl=function(){var e=this.getLocation().search,t=QueryString.parseDeep(this.modifySearch(e||"").substr(1)),n=t.builder&&t.builder.tests;if(n&&"object"===typeof n)for(var r in n)n.hasOwnProperty(r)&&this.setTestCookie(r,n[r])},e.prototype.resetOverrides=function(){e.overrideUserAttributes={},this.cachebust=!1,this.noCache=!1,this.preview=!1,this.editingModel=null,this.overrides={},this.env="production",this.userAgent="",this.request=void 0,this.response=void 0},e.prototype.getOverridesFromQueryString=function(){var t=this.getLocation(),n=QueryString.parseDeep(this.modifySearch(t.search||"").substr(1)),r=n.builder;if(r){var i=r.userAttributes,o=r.overrides,a=r.env,s=(r.host,r.api),c=r.cachebust,u=r.noCache,l=r.preview,_=r.editing,d=r.frameEditing,p=r.options,f=r.params;if(i&&this.setUserAttributes(i),p&&(this.queryOptions=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},p.locale&&{locale:p.locale}),p.includeRefs&&{includeRefs:p.includeRefs}),p.enrich&&{enrich:p.enrich})),o&&(this.overrides=o),validEnvList.indexOf(a||s)>-1&&(this.env=a||s),e.isEditing){var h=d||_||l;h&&"true"!==h&&(this.editingModel=h)}c&&(this.cachebust=!0),u&&(this.noCache=!0),l&&(this.preview=!0),n&&(this.overrideParams=f)}},e.prototype.messageFrameLoaded=function(){var e;null===(e=window.parent)||void 0===e||e.postMessage({type:"builder.loaded",data:{value:!0}},"*")},e.prototype.bindMessageListeners=function(){var t=this;isBrowser&&addEventListener("message",(function(n){var r,i,o,a,s,c=parse$1(n.origin),u=-1===["builder.register","builder.registerComponent"].indexOf(null===(r=n.data)||void 0===r?void 0:r.type),l=c.hostname&&e.isTrustedHost(c.hostname);if(!u||l){var _=n.data;if(_)switch(_.type){case"builder.ping":null===(i=window.parent)||void 0===i||i.postMessage({type:"builder.pong",data:{}},"*");break;case"builder.register":if(n.source===window)break;var d=_.data;if(!d)break;var p=d.type,f=d.info,h=e.registry[p];h||(h=e.registry[p]=[]),h.push(f),e.registryChange.next(e.registry);break;case"builder.settingsChange":if(n.source===window)break;var m=_.data;if(!m)break;Object.assign(e.settings,m),e.settingsChange.next(e.settings);break;case"builder.registerEditor":if(n.source===window)break;var b=_.data;if(!b)break;var v=!!b.component;e.editors.every((function(t,n){return b.name!==t.name||(t.component&&!v||(e.editors[n]=t),!1)}));break;case"builder.triggerAnimation":e.animator.triggerAnimation(_.data);break;case"builder.contentUpdate":var g=_.data.key||_.data.alias||_.data.entry||_.data.modelName,y=_.data.data,E=t.observersByKey[g];E&&!t.noEditorUpdates[g]&&E.next([y]);break;case"builder.getComponents":null===(o=window.parent)||void 0===o||o.postMessage({type:"builder.components",data:e.components.map((function(t){return e.prepareComponentSpecToSend(t)}))},"*");break;case"builder.editingModel":t.editingModel=_.data.model;break;case"builder.registerComponent":var O=_.data;e.addComponent(O);break;case"builder.blockContentLoading":"string"===typeof _.data.model&&(t.blockContentLoading=_.data.model);break;case"builder.editingMode":_.data?(t.editingMode=!0,document.body.classList.add("builder-editing")):(t.editingMode=!1,document.body.classList.remove("builder-editing"));break;case"builder.editingPageMode":var C=_.data;e.editingPage=C;break;case"builder.overrideUserAttributes":var k=_.data;assign(e.overrideUserAttributes,k),t.flushGetContentQueue(!0);break;case"builder.overrideTestGroup":var P=_.data,M=P.variationId,w=P.contentId;M&&w&&(t.setTestCookie(w,M),t.flushGetContentQueue(!0));break;case"builder.evaluate":var D=_.data.text,T=_.data.arguments||[],B=_.data.id,x=new Function(D),R=void 0,A=null;try{R=x.apply(t,T)}catch(err){A=toError(err)}A?null===(a=window.parent)||void 0===a||a.postMessage({type:"builder.evaluateError",data:{id:B,error:A.message}},"*"):R&&"function"===typeof R.then?R.then((function(e){var t;null===(t=window.parent)||void 0===t||t.postMessage({type:"builder.evaluateResult",data:{id:B,result:e}},"*")})).catch(console.error):null===(s=window.parent)||void 0===s||s.postMessage({type:"builder.evaluateResult",data:{result:R,id:B}},"*")}}}))},Object.defineProperty(e.prototype,"defaultCanTrack",{get:function(){return Boolean(e.isBrowser&&navigator.userAgent.trim()&&!navigator.userAgent.match(/bot|crawler|spider|robot|crawling|prerender|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex|phantom|headless|selenium|puppeteer/i)&&!this.browserTrackingDisabled)},enumerable:!1,configurable:!0}),e.prototype.init=function(e,t,n,r,i,o){return void 0===t&&(t=this.defaultCanTrack),n&&(this.request=n),r&&(this.response=r),this.canTrack=t,this.apiKey=e,i&&(this.authToken=i),o&&(this.apiVersion=o),this},Object.defineProperty(e.prototype,"previewingModel",{get:function(){var e=this.getLocation().search;return QueryString.parse((e||"").substr(1))["builder.preview"]},enumerable:!1,configurable:!0}),e.prototype.getLocation=function(){var e,t={};return this.request?t=parse$1(null!==(e=this.request.url)&&void 0!==e?e:""):"object"===typeof location&&(t=parse$1(location.href)),""===t.pathname&&(t.pathname="/"),t},e.prototype.getUserAttributes=function(t){void 0===t&&(t=this.userAgent||"");var n={Android:function(){return t.match(/Android/i)},BlackBerry:function(){return t.match(/BlackBerry/i)},iOS:function(){return t.match(/iPhone|iPod/i)},Opera:function(){return t.match(/Opera Mini/i)},Windows:function(){return t.match(/IEMobile/i)||t.match(/WPDesktop/i)},any:function(){return n.Android()||n.BlackBerry()||n.iOS()||n.Opera()||n.Windows()}},r=t.match(/Tablet|iPad/i),i=this.getLocation();return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({urlPath:i.pathname,host:i.host||i.hostname,device:r?"tablet":n.any()?"mobile":"desktop"},e.overrideUserAttributes)},e.prototype.setUserAttributes=function(t){assign(e.overrideUserAttributes,t),this.userAttributesChanged.next(t)},e.prototype.setTrackingUserAttributes=function(e){assign(this.trackingUserAttributes,e)},e.prototype.get=function(t,n){void 0===n&&(n={});var r=this;return e.isBrowser?(n.apiKey&&!this.apiKey&&(this.apiKey=n.apiKey),n.authToken&&!this.authToken&&(this.authToken=n.authToken),n.apiVersion&&!this.apiVersion&&(this.apiVersion=n.apiVersion)):(r=new e(n.apiKey||this.apiKey,n.req,n.res,void 0,n.authToken||this.authToken,n.apiVersion||this.apiVersion)).setUserAttributes(this.getUserAttributes()),r.queueGetContent(t,n).map((function(t){var n=t&&t[0];if(e.isStatic)return n;var r=n&&n.data;return r?("undefined"!==typeof r.blocksString&&(r.blocks=JSON.parse(r.blocksString),delete r.blocksString),{data:r,id:n.id,variationId:n.testVariationId||n.variationId||null,testVariationId:n.testVariationId||n.variationId||null,testVariationName:n.testVariationName||null,lastUpdated:n.lastUpdated||null}):null}))},e.prototype.queueGetContent=function(t,n){var r=this;void 0===n&&(n={});var i=n.key||n.alias||t,o=this.editingModel===t,a=this.observersByKey[i];"DEMO"!==this.apiKey||this.overrides[i]||n.initialContent||(n.initialContent=[]);var s=n.initialContent;if(a&&(!a.value||n.cache))return a.value&&nextTick((function(){a.next(a.value)})),a;if(o&&e.isBrowser&&parent.postMessage({type:"builder.updateContent",data:{options:n}},"*"),!s)if(this.getContentQueue||(this.getContentQueue=[]),this.getContentQueue.push(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},n),{model:t,key:i})),this.getContentQueue&&this.getContentQueue.length>=this.contentPerRequest){var c=this.getContentQueue.slice();this.getContentQueue=[],nextTick((function(){r.flushGetContentQueue(!1,c)}))}else nextTick((function(){r.flushGetContentQueue()}));var u=new BehaviorSubject(null);return this.observersByKey[i]=u,n.noEditorUpdates&&(this.noEditorUpdates[i]=!0),s&&nextTick((function(){u.next(s)})),u},e.prototype.requestUrl=function(e,t){return getFetch()(e,t).then((function(e){return e.json()}))},Object.defineProperty(e.prototype,"host",{get:function(){switch(this.env){case"qa":return"https://qa.builder.io";case"test":return"https://builder-io-test.web.app";case"fast":return"https://fast.builder.io";case"cloud":return"https://cloud.builder.io";case"cdn2":return"https://cdn2.builder.io";case"cdn-qa":return"https://cdn-qa.builder.io";case"development":case"dev":return"http://localhost:5000";case"cdn-prod":return"https://cdn.builder.io";default:return e.overrideHost||"https://cdn.builder.io"}},enumerable:!1,configurable:!0}),e.prototype.flushGetContentQueue=function(t,n){var r=this;if(void 0===t&&(t=!1),!this.apiKey)throw new Error("Fetching content failed, expected apiKey to be defined instead got: ".concat(this.apiKey));if(this.apiVersion){if(!["v1","v3"].includes(this.apiVersion))throw new Error("Invalid apiVersion: expected 'v1' or 'v3', received '".concat(this.apiVersion,"'"))}else this.apiVersion=DEFAULT_API_VERSION;if(t||this.getContentQueue){var i=n||(t?this.priorContentQueue:this.getContentQueue)||[];this.getOverridesFromQueryString();var o=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({omit:i[0].omit||"meta.componentsUsed",apiKey:this.apiKey},i[0].options),this.queryOptions);i[0].locale&&(o.locale=i[0].locale),i[0].fields&&(o.fields=i[0].fields),i[0].format&&(o.format=i[0].format);var a="undefined"!==typeof location?QueryString.parseDeep(location.search.substr(1)):{},s=i&&i[0].userAttributes?i[0].userAttributes:this.targetContent?this.getUserAttributes():{urlPath:this.getLocation().pathname};if(i.find((function(e){return!!e.includeUrl}))){var c=this.getLocation();c.origin&&(o.url="".concat(c.origin).concat(c.pathname).concat(c.search))}var u=null===n||void 0===n?void 0:n.find((function(e){return e.url}));if((null===u||void 0===u?void 0:u.url)&&(s.urlPath=u.url.split("?")[0]),o.userAttributes=s,t||n||(this.priorContentQueue=i,this.getContentQueue=null),(this.cachebust||isIframe||a.cachebust||a["builder.cachebust"]||"production"!==this.env)&&(o.cachebust=!0),e.isEditing&&(o.isEditing=!0),(this.noCache||"production"!==this.env)&&(o.noCache=!0),size(this.overrides))for(var l in this.overrides)this.overrides.hasOwnProperty(l)&&(o["overrides.".concat(l)]=this.overrides[l]);for(var _=0,d=i;_<d.length;_++){var p=d[_];p.format&&(o.format=p.format),p.static&&(o.static=p.static),p.cachebust&&(o.cachebust=p.cachebust),isPositiveNumber(p.cacheSeconds)&&(o.cacheSeconds=p.cacheSeconds),isPositiveNumber(p.staleCacheSeconds)&&(o.staleCacheSeconds=p.staleCacheSeconds);for(var f=0,h=["prerender","extractCss","limit","offset","query","preview","model","entry","rev","static"];f<h.length;f++){var m=p[l=h[f]];void 0!==m&&(o.options=o.options||{},o.options[p.key]=o.options[p.key]||{},o.options[p.key][l]=JSON.stringify(m))}}this.preview&&(o.preview="true");var b=Object.keys(o).length>0,v=this.host,g=i.map((function(e){return encodeURIComponent(e.key)})).join(",");if(this.overrideParams)assign(o,omit(QueryString.parse(this.overrideParams),"apiKey"));var y=QueryString.stringifyDeep(o),E=o.format,O={headers:{}};this.authToken&&(O.headers=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},O.headers),{Authorization:"Bearer ".concat(this.authToken)}));var C="solid"===E||"react"===E?"codegen":"query",k="query"===C?this.apiVersion:"v1",P="".concat(v,"/api/").concat(k,"/").concat(C,"/").concat(this.apiKey,"/").concat(g)+(o&&b?"?".concat(y):"");return getFetch()(P,O).then((function(e){return e.json()})).then((function(t){for(var n=0,o=i;n<o.length;n++){var a=o[n],s=a.key;if(a.model!==r.blockContentLoading||a.noEditorUpdates){r.editingModel===a.model&&e.isEditing&&parent.postMessage({type:"builder.updateContent",data:{options:a}},"*");var c=r.observersByKey[s];if(!c)return;var u=t[s],l=u;if(u){var _=e.isServer?l:r.processResultsForTests(l);c.next(_)}else{if((r.getLocation().search||"").includes("builder.preview="+a.model)){c.next([{id:"preview",name:"Preview",data:{}}])}c.next([])}}}}),(function(e){for(var t=0,n=i;t<n.length;t++){var o=n[t],a=r.observersByKey[o.key];if(!a)return;a.error(e)}}))}},e.prototype.processResultsForTests=function(e){var t,n=this,r=e.map((function(e){if(!e.variations)return e;var t=n.getTestCookie(e.id),r=t===e.id?e:e.variations[t];if(r)return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e),{data:r.data,variationId:t,testVariationId:t,testVariationName:r.name});if(n.canTrack&&e.variations&&size(e.variations)){var i=0,o=Math.random();for(var a in e.variations){var s=e.variations[a];if(o<(i+=s.testRatio)){n.setTestCookie(e.id,s.id);var c=s.name||(s.id===e.id?"Default variation":"");return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e),{data:s.data,variationId:s.id,testVariationId:s.id,variationName:c,testVariationName:c})}}n.setTestCookie(e.id,e.id)}return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e),{variationId:e.id}),e.variations&&size(e.variations)&&{testVariationId:e.id,testVariationName:"Default variation"})}));return isIframe&&(null===(t=window.parent)||void 0===t||t.postMessage({type:"builder.contentResults",data:{results:r}},"*")),r},e.prototype.getTestCookie=function(e){return this.getCookie("".concat(this.testCookiePrefix,".").concat(e))},e.prototype.setTestCookie=function(e,t){if(this.canTrack){var n=new Date;return n.setDate(n.getDate()+30),this.setCookie("".concat(this.testCookiePrefix,".").concat(e),t,n)}this.cookieQueue.push([e,t])},e.prototype.getCookie=function(t){return this.cookies?this.cookies.get(t):e.isBrowser&&getCookie(t)},e.prototype.setCookie=function(t,n,r){return!this.cookies||e.isServer&&e.isStatic?e.isBrowser&&setCookie(t,n,r):this.cookies.set(t,n,{expires:r,secure:"https:"===this.getLocation().protocol})},e.prototype.getContent=function(e,t){if(void 0===t&&(t={}),!this.apiKey)throw new Error("Fetching content from model ".concat(e," failed, expected apiKey to be defined instead got: ").concat(this.apiKey));return this.queueGetContent(e,t)},e.prototype.getAll=function(t,n){void 0===n&&(n={});var r=this;return e.isBrowser?(n.apiKey&&!this.apiKey&&(this.apiKey=n.apiKey),n.apiVersion&&!this.apiVersion&&(this.apiVersion=n.apiVersion)):(r=new e(n.apiKey||this.apiKey,n.req,n.res,!1,null,n.apiVersion||this.apiVersion)).setUserAttributes(this.getUserAttributes()),r.getContent(t,Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({limit:30},n),{key:n.key||e.isBrowser?"".concat(t,":").concat(hash_sum__WEBPACK_IMPORTED_MODULE_1___default()(omit(n,"initialContent","req","res"))):void 0})).promise()},e.VERSION=version,e.components=[],e.isStatic=!0,e.animator=new Animator,e.nextTick=nextTick,e.throttle=throttle,e.editors=[],e.trustedHosts=["builder.io","localhost"],e.plugins=[],e.actions=[],e.registry={},e.registryChange=new BehaviorSubject({}),e._editingPage=!1,e.isIframe=isIframe,e.isBrowser=isBrowser,e.isReactNative=isReactNative,e.isServer=!isBrowser&&!isReactNative,e.previewingModel=e.isBrowser&&getQueryParam(location.href,"builder.preview"),e.settings={},e.settingsChange=new BehaviorSubject({}),e.isEditing=Boolean(isIframe&&(document.referrer&&document.referrer.match(/builder\.io|localhost:1234/)||-1!==location.search.indexOf("builder.frameEditing="))),e.isPreviewing=Boolean(isBrowser&&(-1!==location.search.indexOf("builder.preview=")||-1!==location.search.indexOf("builder.frameEditing="))),e.isReact=!1,e.overrideUserAttributes={},e}(),builder=new Builder(null,void 0,void 0,!0);Builder.singletonInstance=builder},"2mql":function(e,t,n){"use strict";var r=n("TOwV"),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,_=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var a=l(n);_&&(a=a.concat(_(n)));for(var s=c(t),h=c(n),m=0;m<a.length;++m){var b=a[m];if(!o[b]&&(!r||!r[b])&&(!h||!h[b])&&(!s||!s[b])){var v=d(n,b);try{u(t,b,v)}catch(g){}}}}return t}},"3mcS":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}}},"4qRI":function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},"8oxB":function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,_=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):_=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++_<t;)c&&c[_].run();_=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||l||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},AeFk:function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return s}));var r=n("FdF9"),i=(n("fkni"),n("cSFU")),o=(n("pVnL"),n("gRFL"),n("2mql"),n("3mcS")),a=n("JIq1"),s=(n("rEPE"),function(e,t){var n=arguments;if(null==t||!i.d.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=i.a,a[1]=Object(i.c)(e,t);for(var s=2;s<o;s++)a[s]=n[s];return r.createElement.apply(null,a)});function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(a.a)(t)}var u=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function l(e,t,n){var r=[],i=Object(o.a)(e,r,n);return r.length<2?n:i+t(r)}var _=Object(i.e)((function(e,t){var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Object(a.a)(n,t.registered);return Object(o.b)(t,i,!1),t.key+"-"+i.name},s={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return l(t.registered,n,u(r))},theme:Object(r.useContext)(i.b)},c=e.children(s);return!0,c}))},JIq1:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("zpY+"),i=n("ME5O"),o=n("4qRI"),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!==typeof e},l=Object(o.a)((function(e){return c(e)?e:e.replace(a,"-$&").toLowerCase()})),_=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===i.a[e]||c(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=d(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=l(o)+":"+_(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=d(e,t,a);switch(o){case"animation":case"animationName":r+=l(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var c=0;c<a.length;c++)u(a[c])&&(r+=l(o)+":"+_(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=p,o=n(e);return p=i,d(e,t,o)}break;case"string":}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var p,f=/label:\s*([^\s;\n{]+)\s*;/g;var h=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";p=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=d(n,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=d(n,t,e[s]),i&&(o+=a[s]);f.lastIndex=0;for(var c,u="";null!==(c=f.exec(o));)u+="-"+c[1];return{name:Object(r.a)(o)+u,styles:o,next:p}}},ME5O:function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},PSTX:function(e,t,n){"use strict";n.d(t,"b",(function(){return z})),n.d(t,"a",(function(){return G})),n.d(t,"c",(function(){return H}));var r=n("dI71"),i=n("FdF9");var o=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var a=function(e){function t(e,r,c,u,d){for(var p,f,h,m,y,O=0,C=0,k=0,P=0,M=0,R=0,I=h=p=0,L=0,U=0,W=0,K=0,j=c.length,F=j-1,N="",q="",$="",V="";L<j;){if(f=c.charCodeAt(L),L===F&&0!==C+P+k+O&&(0!==C&&(f=47===C?10:47),P=k=O=0,j++,F++),0===C+P+k+O){if(L===F&&(0<U&&(N=N.replace(_,"")),0<N.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:N+=c.charAt(L)}f=59}switch(f){case 123:for(p=(N=N.trim()).charCodeAt(0),h=1,K=++L;L<j;){switch(f=c.charCodeAt(L)){case 123:h++;break;case 125:h--;break;case 47:switch(f=c.charCodeAt(L+1)){case 42:case 47:e:{for(I=L+1;I<F;++I)switch(c.charCodeAt(I)){case 47:if(42===f&&42===c.charCodeAt(I-1)&&L+2!==I){L=I+1;break e}break;case 10:if(47===f){L=I+1;break e}}L=I}}break;case 91:f++;case 40:f++;case 34:case 39:for(;L++<F&&c.charCodeAt(L)!==f;);}if(0===h)break;L++}switch(h=c.substring(K,L),0===p&&(p=(N=N.replace(l,"").trim()).charCodeAt(0)),p){case 64:switch(0<U&&(N=N.replace(_,"")),f=N.charCodeAt(1)){case 100:case 109:case 115:case 45:U=r;break;default:U=x}if(K=(h=t(r,U,h,f,d+1)).length,0<A&&(y=s(3,h,U=n(x,N,W),r,D,w,K,f,d,u),N=U.join(""),void 0!==y&&0===(K=(h=y.trim()).length)&&(f=0,h="")),0<K)switch(f){case 115:N=N.replace(E,a);case 100:case 109:case 45:h=N+"{"+h+"}";break;case 107:h=(N=N.replace(b,"$1 $2"))+"{"+h+"}",h=1===B||2===B&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=N+h,112===u&&(q+=h,h="")}else h="";break;default:h=t(r,n(r,N,W),h,u,d+1)}$+=h,h=W=U=I=p=0,N="",f=c.charCodeAt(++L);break;case 125:case 59:if(1<(K=(N=(0<U?N.replace(_,""):N).trim()).length))switch(0===I&&(p=N.charCodeAt(0),45===p||96<p&&123>p)&&(K=(N=N.replace(" ",":")).length),0<A&&void 0!==(y=s(1,N,r,e,D,w,q.length,u,d,u))&&0===(K=(N=y.trim()).length)&&(N="\0\0"),p=N.charCodeAt(0),f=N.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){V+=N+c.charAt(L);break}default:58!==N.charCodeAt(K-1)&&(q+=i(N,p,f,N.charCodeAt(2)))}W=U=I=p=0,N="",f=c.charCodeAt(++L)}}switch(f){case 13:case 10:47===C?C=0:0===1+p&&107!==u&&0<N.length&&(U=1,N+="\0"),0<A*S&&s(0,N,r,e,D,w,q.length,u,d,u),w=1,D++;break;case 59:case 125:if(0===C+P+k+O){w++;break}default:switch(w++,m=c.charAt(L),f){case 9:case 32:if(0===P+O+C)switch(M){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===P+C+O&&(U=W=1,m="\f"+m);break;case 108:if(0===P+C+O+T&&0<I)switch(L-I){case 2:112===M&&58===c.charCodeAt(L-3)&&(T=M);case 8:111===R&&(T=R)}break;case 58:0===P+C+O&&(I=L);break;case 44:0===C+k+P+O&&(U=1,m+="\r");break;case 34:case 39:0===C&&(P=P===f?0:0===P?f:P);break;case 91:0===P+C+k&&O++;break;case 93:0===P+C+k&&O--;break;case 41:0===P+C+O&&k--;break;case 40:if(0===P+C+O){if(0===p)switch(2*M+3*R){case 533:break;default:p=1}k++}break;case 64:0===C+k+P+O+I+h&&(h=1);break;case 42:case 47:if(!(0<P+O+k))switch(C){case 0:switch(2*f+3*c.charCodeAt(L+1)){case 235:C=47;break;case 220:K=L,C=42}break;case 42:47===f&&42===M&&K+2!==L&&(33===c.charCodeAt(K+2)&&(q+=c.substring(K,L+1)),m="",C=0)}}0===C&&(N+=m)}R=M,M=f,L++}if(0<(K=q.length)){if(U=r,0<A&&(void 0!==(y=s(2,q,U,e,D,w,K,u,d,u))&&0===(q=y).length))return V+q+$;if(q=U.join(",")+"{"+q+"}",0!==B*T){switch(2!==B||o(q,2)||(T=0),T){case 111:q=q.replace(g,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}T=0}}return V+q+$}function n(e,t,n){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<o;++s)for(var u=0;u<a;++u)t[c++]=r(e[u]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===B||2===B&&o(c,1)?"-webkit-"+c+c:c}if(0===B||2===B&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(M,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(y,"tb");break;case 232:c=a.replace(y,"tb-rl");break;case 220:c=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===P.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(k,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,c,l){for(var _,d=0,p=t;d<A;++d)switch(_=R[d].call(u,e,p,n,r,i,o,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=_}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!==typeof e?B=1:(B=2,I=e):B=0),c}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<A){var i=s(-1,n,r,r,D,w,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var o=t(x,r,n,0,0);return 0<A&&(void 0!==(i=s(-2,o,r,r,D,w,o.length,0,0,0))&&(o=i)),"",T=0,w=D=1,o}var l=/^\0+/g,_=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,g=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,P=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,w=1,D=1,T=0,B=1,x=[],R=[],A=0,I=null,S=0;return u.use=function e(t){switch(t){case void 0:case null:A=R.length=0;break;default:if("function"===typeof t)R[A++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else S=0|!!t}return e},u.set=c,void 0!==e&&c(e),u},s=(n("gRFL"),"/*|*/");function c(e){e&&u.current.insert(e+"}")}var u={current:null},l=function(e,t,n,r,i,o,a,l,_,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return u.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+s;break;case 3:switch(l){case 102:case 112:return u.current.insert(n[0]+t),"";default:return t+(0===d?s:"")}case-2:t.split("/*|*/}").forEach(c)}},_=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new a(t);var i,s={};i=e.container||document.head;var c,_=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(_,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){s[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(l),c=function(e,t,n,i){var o=t.name;u.current=n,r(e,t.styles),i&&(d.inserted[o]=!0)};var d={key:n,sheet:new o({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:s,registered:{},insert:c};return d};n("VbXa");function d(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var p=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}},f=n("zpY+"),h=n("ME5O"),m=n("4qRI"),b=/[A-Z]|^ms/g,v=/_EMO_([^_]+?)_([^]*?)_EMO_/g,g=function(e){return 45===e.charCodeAt(1)},y=function(e){return null!=e&&"boolean"!==typeof e},E=Object(m.a)((function(e){return g(e)?e:e.replace(b,"-$&").toLowerCase()})),O=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(v,(function(e,t,n){return k={name:t,styles:n,next:k},t}))}return 1===h.a[e]||g(e)||"number"!==typeof t||0===t?t:t+"px"};function C(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return k={name:n.name,styles:n.styles,next:k},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)k={name:i.name,styles:i.styles,next:k},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=C(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":y(a)&&(r+=E(o)+":"+O(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=C(e,t,a,!1);switch(o){case"animation":case"animationName":r+=E(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var c=0;c<a.length;c++)y(a[c])&&(r+=E(o)+":"+O(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=k,a=n(e);return k=o,C(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var k,P=/label:\s*([^\s;\n{]+)\s*;/g;var M=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";k=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=C(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=C(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);P.lastIndex=0;for(var s,c="";null!==(s=P.exec(i));)c+="-"+s[1];return{name:Object(f.a)(i)+c,styles:i,next:k}},w=Object.prototype.hasOwnProperty,D=Object(i.createContext)("undefined"!==typeof HTMLElement?_():null),T=Object(i.createContext)({}),B=(D.Provider,function(e){var t=function(t,n){return Object(i.createElement)(D.Consumer,null,(function(r){return e(t,r,n)}))};return Object(i.forwardRef)(t)}),x="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",R=function(e,t){var n={};for(var r in t)w.call(t,r)&&(n[r]=t[r]);return n[x]=e,n},A=function(){return null},I=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"===typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var a=t[x],s=[o],c="";"string"===typeof t.className?c=d(e.registered,s,t.className):null!=t.className&&(c=t.className+" ");var u=M(s);p(e,u,"string"===typeof a);c+=e.key+"-"+u.name;var l={};for(var _ in t)w.call(t,_)&&"css"!==_&&_!==x&&(l[_]=t[_]);l.ref=r,l.className=c;var f=Object(i.createElement)(a,l),h=Object(i.createElement)(A,null);return Object(i.createElement)(i.Fragment,null,h,f)},S=B((function(e,t,n){return"function"===typeof e.css?Object(i.createElement)(T.Consumer,null,(function(r){return I(t,e,r,n)})):I(t,e,null,n)}));var L=/[A-Z]|^ms/g,U=/_EMO_([^_]+?)_([^]*?)_EMO_/g,W=function(e){return 45===e.charCodeAt(1)},K=function(e){return null!=e&&"boolean"!==typeof e},j=Object(m.a)((function(e){return W(e)?e:e.replace(L,"-$&").toLowerCase()})),F=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(U,(function(e,t,n){return q={name:t,styles:n,next:q},t}))}return 1===h.a[e]||W(e)||"number"!==typeof t||0===t?t:t+"px"};function N(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return q={name:n.name,styles:n.styles,next:q},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)q={name:i.name,styles:i.styles,next:q},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=N(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":K(a)&&(r+=j(o)+":"+F(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=N(e,t,a,!1);switch(o){case"animation":case"animationName":r+=j(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var c=0;c<a.length;c++)K(a[c])&&(r+=j(o)+":"+F(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=q,a=n(e);return q=o,N(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var q,$=/label:\s*([^\s;\n{]+)\s*;/g;var V=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";q=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=N(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=N(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);$.lastIndex=0;for(var s,c="";null!==(s=$.exec(i));)c+="-"+s[1];return{name:Object(f.a)(i)+c,styles:i,next:q}};var z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return V(t)},H=function(e,t){var n=arguments;if(null==t||!w.call(t,"css"))return i.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=S,o[1]=R(e,t);for(var a=2;a<r;a++)o[a]=n[a];return i.createElement.apply(null,o)},Q=(i.Component,function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i});function J(e,t,n){var r=[],i=d(e,r,n);return r.length<2?n:i+t(r)}var Y=function(){return null},G=B((function(e,t){return Object(i.createElement)(T.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=M(n,t.registered);return p(t,i,!1),t.key+"-"+i.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return J(t.registered,r,Q(n))},theme:n},a=e.children(o);var s=Object(i.createElement)(Y,null);return Object(i.createElement)(i.Fragment,null,s,a)}))}))},Swqf:function(e,t,n){"use strict";var r=n("2mql"),i=n.n(r);t.a=function(e,t){return i()(e,t)}},TOwV:function(e,t,n){"use strict";e.exports=n("qT12")},VbXa:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},cSFU:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u}));var r=n("FdF9"),i=n("fkni"),o=(n("wx14"),n("gRFL"),n("Swqf"),n("3mcS")),a=n("JIq1"),s=Object.prototype.hasOwnProperty,c=Object(r.createContext)("undefined"!==typeof HTMLElement?Object(i.a)({key:"css"}):null),u=(c.Provider,function(e){return Object(r.forwardRef)((function(t,n){var i=Object(r.useContext)(c);return e(t,i,n)}))}),l=Object(r.createContext)({});var _="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",d=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[_]=e,n},p=u((function(e,t,n){var i=e.css;"string"===typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var c=e[_],u=[i],d="";"string"===typeof e.className?d=Object(o.a)(t.registered,u,e.className):null!=e.className&&(d=e.className+" ");var p=Object(a.a)(u,void 0,"function"===typeof i||Array.isArray(i)?Object(r.useContext)(l):void 0);Object(o.b)(t,p,"string"===typeof c);d+=t.key+"-"+p.name;var f={};for(var h in e)s.call(e,h)&&"css"!==h&&h!==_&&(f[h]=e[h]);return f.ref=n,f.className=d,Object(r.createElement)(c,f)}))},dI71:function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},fkni:function(e,t,n){"use strict";var r=n("rEPE"),i="-ms-",o="-moz-",a="-webkit-",s="comm",c="rule",u="decl",l=Math.abs,_=String.fromCharCode;function d(e){return e.trim()}function p(e,t,n){return e.replace(t,n)}function f(e,t){return e.indexOf(t)}function h(e,t){return 0|e.charCodeAt(t)}function m(e,t,n){return e.slice(t,n)}function b(e){return e.length}function v(e){return e.length}function g(e,t){return t.push(e),e}function y(e,t){return e.map(t).join("")}var E=1,O=1,C=0,k=0,P=0,M="";function w(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:E,column:O,length:a,return:""}}function D(e,t,n){return w(e,t.root,t.parent,n,t.props,t.children,0)}function T(){return P=k<C?h(M,k++):0,O++,10===P&&(O=1,E++),P}function B(){return h(M,k)}function x(){return k}function R(e,t){return m(M,e,t)}function A(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function I(e){return E=O=1,C=b(M=e),k=0,[]}function S(e){return M="",e}function L(e){return d(R(k-1,W(91===e?e+2:40===e?e+1:e)))}function U(e){for(;(P=B())&&P<33;)T();return A(e)>2||A(P)>3?"":" "}function W(e){for(;T();)switch(P){case e:return k;case 34:case 39:return W(34===e||39===e?e:P);case 40:41===e&&W(e);break;case 92:T()}return k}function K(e,t){for(;T()&&e+P!==57&&(e+P!==84||47!==B()););return"/*"+R(t,k-1)+"*"+_(47===e?e:T())}function j(e){for(;!A(B());)T();return R(e,k)}function F(e){return S(N("",null,null,null,[""],e=I(e),0,[0],e))}function N(e,t,n,r,i,o,a,s,c){for(var u=0,l=0,d=a,f=0,h=0,m=0,v=1,y=1,E=1,O=0,C="",k=i,P=o,M=r,w=C;y;)switch(m=O,O=T()){case 34:case 39:case 91:case 40:w+=L(O);break;case 9:case 10:case 13:case 32:w+=U(m);break;case 47:switch(B()){case 42:case 47:g($(K(T(),x()),t,n),c);break;default:w+="/"}break;case 123*v:s[u++]=b(w)*E;case 125*v:case 59:case 0:switch(O){case 0:case 125:y=0;case 59+l:h>0&&g(h>32?V(w+";",r,n,d-1):V(p(w," ","")+";",r,n,d-2),c);break;case 59:w+=";";default:if(g(M=q(w,t,n,u,l,i,s,C,k=[],P=[],d),o),123===O)if(0===l)N(w,t,M,M,k,o,d,s,P);else switch(f){case 100:case 109:case 115:N(e,M,M,r&&g(q(e,M,M,0,0,i,s,C,i,k=[],d),P),i,P,d,s,r?k:P);break;default:N(w,M,M,M,[""],P,d,s,P)}}u=l=h=0,v=E=1,C=w="",d=a;break;case 58:d=1+b(w),h=m;default:switch(w+=_(O),O*v){case 38:E=l>0?1:(w+="\f",-1);break;case 44:s[u++]=(b(w)-1)*E,E=1;break;case 64:45===B()&&(w+=L(T())),f=B(),l=b(C=w+=j(x())),O++;break;case 45:45===m&&2==b(w)&&(v=0)}}return o}function q(e,t,n,r,i,o,a,s,u,_,f){for(var h=i-1,b=0===i?o:[""],g=v(b),y=0,E=0,O=0;y<r;++y)for(var C=0,k=m(e,h+1,h=l(E=a[y])),P=e;C<g;++C)(P=d(E>0?b[C]+" "+k:p(k,/&\f/g,b[C])))&&(u[O++]=P);return w(e,t,n,0===i?c:s,u,_,f)}function $(e,t,n){return w(e,t,n,s,_(P),m(e,2,-2),0)}function V(e,t,n,r){return w(e,t,n,u,m(e,0,r),m(e,r+1,-1),r)}function z(e,t){switch(function(e,t){return(((t<<2^h(e,0))<<2^h(e,1))<<2^h(e,2))<<2^h(e,3)}(e,t)){case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a+e+o+e+i+e+e;case 6828:case 4268:return a+e+i+e+e;case 6165:return a+e+i+"flex-"+e+e;case 5187:return a+e+p(e,/(\w+).+(:[^]+)/,a+"box-$1$2"+i+"flex-$1$2")+e;case 5443:return a+e+i+"flex-item-"+p(e,/flex-|-self/,"")+e;case 4675:return a+e+i+"flex-line-pack"+p(e,/align-content|flex-|-self/,"")+e;case 5548:return a+e+i+p(e,"shrink","negative")+e;case 5292:return a+e+i+p(e,"basis","preferred-size")+e;case 6060:return a+"box-"+p(e,"-grow","")+a+e+i+p(e,"grow","positive")+e;case 4554:return a+p(e,/([^-])(transform)/g,"$1"+a+"$2")+e;case 6187:return p(p(p(e,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),e,"")+e;case 5495:case 3959:return p(e,/(image-set\([^]*)/,a+"$1$`$1");case 4968:return p(p(e,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+i+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+e+e;case 4095:case 3583:case 4068:case 2532:return p(e,/(.+)-inline(.+)/,a+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(b(e)-1-t>6)switch(h(e,t+1)){case 102:t=h(e,t+3);case 109:return p(e,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+o+(108==t?"$3":"$2-$3"))+e;case 115:return~f(e,"stretch")?z(p(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==h(e,t+1))break;case 6444:switch(h(e,b(e)-3-(~f(e,"!important")&&10))){case 107:case 111:return p(e,e,a+e)+e;case 101:return p(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===h(e,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+i+"$2box$3")+e}break;case 5936:switch(h(e,t+11)){case 114:return a+e+i+p(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a+e+i+p(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a+e+i+p(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a+e+i+e+e}return e}function H(e,t){for(var n="",r=v(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Q(e,t,n,r){switch(e.type){case"@import":case u:return e.return=e.return||e.value;case s:return"";case c:e.value=e.props.join(",")}return b(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function J(e){return function(t){t.root||(t=t.return)&&e(t)}}n("gRFL"),n("4qRI");var Y=function(e,t){return S(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===B()&&(t[n]=1),e[n]+=j(k-1);break;case 2:e[n]+=L(r);break;case 4:if(44===r){e[++n]=58===B()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=_(r)}}while(r=T());return e}(I(e),t))},G=new WeakMap,Z=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||G.get(n))&&!r){G.set(e,!0);for(var i=[],o=Y(t,i),a=n.props,s=0,c=0;s<o.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},X=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ee=[function(e,t,n,r){if(!e.return)switch(e.type){case u:e.return=z(e.value,e.length);break;case"@keyframes":return H([D(p(e.value,"@","@"+a),e,"")],r);case c:if(e.length)return y(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([D(p(t,/:(read-\w+)/,":-moz-$1"),e,"")],r);case"::placeholder":return H([D(p(t,/:(plac\w+)/,":"+a+"input-$1"),e,""),D(p(t,/:(plac\w+)/,":-moz-$1"),e,""),D(p(t,/:(plac\w+)/,i+"input-$1"),e,"")],r)}return""}))}}];t.a=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){document.head.appendChild(e),e.setAttribute("data-s","")}))}var i=e.stylisPlugins||ee;var o,a,s={},c=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion]"),(function(e){var n=e.getAttribute("data-emotion").split(" ");if(n[0]===t){for(var r=1;r<n.length;r++)s[n[r]]=!0;c.push(e)}}));var u=[Z,X];var l,_=[Q,J((function(e){l.insert(e)}))],d=function(e){var t=v(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}(u.concat(i,_));a=function(e,t,n,r){l=n,H(F(e?e+"{"+t.styles+"}":t.styles),d),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new r.a({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:s,registered:{},insert:a};return p.sheet.hydrate(c),p}},gRFL:function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},hjRj:function(e,t,n){"use strict";function r(e,t){var n,r;if(0===t.length)return e;for(n=0,r=t.length;n<r;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return e<0?-2*e:e}function i(e,t,n,o){var a,s=r(r(r(e,n),(a=t,Object.prototype.toString.call(a))),typeof t);if(null===t)return r(s,"null");if(void 0===t)return r(s,"undefined");if("object"===typeof t||"function"===typeof t){if(-1!==o.indexOf(t))return r(s,"[Circular]"+n);o.push(t);var c=function(e,t,n){return Object.keys(t).sort().reduce((function(e,r){return i(e,t[r],r,n)}),e)}(s,t,o);if(!("valueOf"in t)||"function"!==typeof t.valueOf)return c;try{return r(c,String(t.valueOf()))}catch(u){return r(c,"[valueOf exception]"+(u.stack||u.message))}}return r(s,t.toString())}e.exports=function(e){return function(e,t){for(;e.length<t;)e="0"+e;return e}(i(0,e,"",[]).toString(16),8)}},mrSG:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}},oY9k:function(e,t,n){"use strict";var r=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof r)return r;throw new Error("unable to locate global object")}();e.exports=t=r.fetch,r.fetch&&(t.default=r.fetch.bind(r)),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},pVnL:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},qT12:function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,_=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function O(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case _:case d:case a:case c:case s:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case b:case m:case u:return e;default:return t}}case o:return t}}}function C(e){return O(e)===d}t.AsyncMode=_,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=b,t.Memo=m,t.Portal=o,t.Profiler=c,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||O(e)===_},t.isConcurrentMode=C,t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return O(e)===p},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===b},t.isMemo=function(e){return O(e)===m},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===c},t.isStrictMode=function(e){return O(e)===s},t.isSuspense=function(e){return O(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===c||e===s||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===E||e.$$typeof===v)},t.typeOf=O},rEPE:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},wx14:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},ytZV:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(process){__webpack_require__.d(__webpack_exports__,"BuilderAsyncRequestsContext",(function(){return BuilderAsyncRequestsContext})),__webpack_require__.d(__webpack_exports__,"BuilderBlock",(function(){return BuilderBlock})),__webpack_require__.d(__webpack_exports__,"BuilderBlockComponent",(function(){return BuilderBlock$1})),__webpack_require__.d(__webpack_exports__,"BuilderBlocks",(function(){return BuilderBlocks})),__webpack_require__.d(__webpack_exports__,"BuilderComponent",(function(){return BuilderComponent})),__webpack_require__.d(__webpack_exports__,"BuilderContent",(function(){return BuilderContent})),__webpack_require__.d(__webpack_exports__,"BuilderMetaContext",(function(){return BuilderMetaContext})),__webpack_require__.d(__webpack_exports__,"BuilderPage",(function(){return BuilderComponent})),__webpack_require__.d(__webpack_exports__,"BuilderStoreContext",(function(){return BuilderStoreContext})),__webpack_require__.d(__webpack_exports__,"Button",(function(){return Button})),__webpack_require__.d(__webpack_exports__,"Columns",(function(){return Columns})),__webpack_require__.d(__webpack_exports__,"CustomCode",(function(){return CustomCode})),__webpack_require__.d(__webpack_exports__,"Dropzone",(function(){return Slot})),__webpack_require__.d(__webpack_exports__,"Embed",(function(){return Embed})),__webpack_require__.d(__webpack_exports__,"Form",(function(){return Form})),__webpack_require__.d(__webpack_exports__,"FormInput",(function(){return FormInput})),__webpack_require__.d(__webpack_exports__,"FormSelect",(function(){return FormSelect})),__webpack_require__.d(__webpack_exports__,"FormSubmitButton",(function(){return FormSubmitButton})),__webpack_require__.d(__webpack_exports__,"Fragment",(function(){return Fragment})),__webpack_require__.d(__webpack_exports__,"Image",(function(){return Image})),__webpack_require__.d(__webpack_exports__,"Img",(function(){return Img})),__webpack_require__.d(__webpack_exports__,"Label",(function(){return Label})),__webpack_require__.d(__webpack_exports__,"Mutation",(function(){return Mutation})),__webpack_require__.d(__webpack_exports__,"RawText",(function(){return RawText})),__webpack_require__.d(__webpack_exports__,"RenderContent",(function(){return BuilderComponent})),__webpack_require__.d(__webpack_exports__,"Router",(function(){return Router})),__webpack_require__.d(__webpack_exports__,"Section",(function(){return Section})),__webpack_require__.d(__webpack_exports__,"StateProvider",(function(){return StateProvider})),__webpack_require__.d(__webpack_exports__,"Symbol",(function(){return Symbol$1})),__webpack_require__.d(__webpack_exports__,"Text",(function(){return Text})),__webpack_require__.d(__webpack_exports__,"TextArea",(function(){return TextArea})),__webpack_require__.d(__webpack_exports__,"Video",(function(){return Video})),__webpack_require__.d(__webpack_exports__,"getSrcSet",(function(){return getSrcSet})),__webpack_require__.d(__webpack_exports__,"noWrap",(function(){return noWrap})),__webpack_require__.d(__webpack_exports__,"onChange",(function(){return onChange})),__webpack_require__.d(__webpack_exports__,"stringToFunction",(function(){return stringToFunction})),__webpack_require__.d(__webpack_exports__,"updateMetadata",(function(){return updateMetadata})),__webpack_require__.d(__webpack_exports__,"useIsPreviewing",(function(){return useIsPreviewing})),__webpack_require__.d(__webpack_exports__,"withBuilder",(function(){return withBuilder})),__webpack_require__.d(__webpack_exports__,"withChildren",(function(){return withChildren}));var _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("0w6r");__webpack_require__.d(__webpack_exports__,"Builder",(function(){return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b})),__webpack_require__.d(__webpack_exports__,"builder",(function(){return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d})),__webpack_require__.d(__webpack_exports__,"default",(function(){return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d}));var _emotion_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("PSTX"),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("FdF9"),hash_sum__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("hjRj"),hash_sum__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(hash_sum__WEBPACK_IMPORTED_MODULE_3__),version="3.0.2",_a;"undefined"!=typeof window&&(null===(_a=window.parent)||void 0===_a||_a.postMessage({type:"builder.isReactSdk",data:{value:!0,supportsPatchUpdates:"v4",supportsCustomBreakpoints:!0,priorVersion:version}},"*"));var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function __decorate(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var fastClone=function(e){return JSON.parse(JSON.stringify(e))},sizeNames=["xsmall","small","medium","large"],sizes={xsmall:{min:0,default:0,max:0},small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200},getWidthForSize:function(e){return this[e].default},getSizeForWidth:function(e){for(var t=0,n=sizeNames;t<n.length;t++){var r=n[t];if(e<=this[r].max)return r}return"large"}},getSizesForBreakpoints=function(e){var t=e.small,n=e.medium,r=__assign(__assign({},sizes),fastClone(sizes));if(!t||!n)return r;var i=Math.floor(t/2);r.small={max:t,min:i,default:i+1};var o=r.small.max+1;r.medium={max:n,min:o,default:o+1};var a=r.medium.max+1;return r.large={max:2e3,min:a,default:a+1},r},set=function(e,t,n){if(Object(e)!==e)return e;var r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((function(e,t,n){return Object(e[t])===e[t]?e[t]:e[t]=Math.abs(Number(r[n+1]))>>0==+r[n+1]?[]:{}}),e)[r[r.length-1]]=n,e},noop=function(){return null},safeDynamicRequire;if("function"==typeof(null===globalThis||void 0===globalThis?void 0:globalThis.require)||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isServer)try{safeDynamicRequire=eval("require")}catch(e){safeDynamicRequire=(null===globalThis||void 0===globalThis?void 0:globalThis.require)?globalThis.require:noop}null!=safeDynamicRequire||(safeDynamicRequire=noop);var fnCache={},api=function(e){return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d};function stringToFunction(e,t,n,r){if(void 0===t&&(t=!0),!e||!e.trim())return function(){};var i=e+":"+t;if(fnCache[i])return fnCache[i];var o=t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))||e.trim().startsWith("builder.run"),a=function(){};try{_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&(a=new Function("state","event","block","builder","Device","update","Builder","context","\n var names = [\n 'state',\n 'event',\n 'block',\n 'builder',\n 'Device',\n 'update',\n 'Builder',\n 'context'\n ];\n var rootState = state;\n if (typeof Proxy !== 'undefined') {\n rootState = new Proxy(rootState, {\n set: function () {\n return false;\n },\n get: function (target, key) {\n if (names.includes(key)) {\n return undefined;\n }\n return target[key];\n }\n });\n }\n /* Alias */\n var ctx = context;\n with (rootState) {\n ".concat(o?"return (".concat(e,");"):e,";\n }\n ")))}catch(t){n&&n.push(t);var s=t&&t.message;s&&"string"==typeof s&&r&&-1===r.indexOf(s)&&r.push(s),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&console.warn("Function compile error in ".concat(e),t)}var c=function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];try{if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser)return a.apply(void 0,r);var o=safeDynamicRequire("vm2").VM,s=r[0],c=r[1],u=(r[2],r[3],r[4],r[5],r[6],r[7]);return new o({timeout:100,sandbox:__assign(__assign(__assign(__assign(__assign({},s),{state:s}),{context:u}),{builder:api}),{event:c})}).run(e.replace(/(^|;)return /,"$1"))}catch(r){return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser?console.warn("Builder custom code error:",r.message||r,"in",e,r.stack||r):(null===(t=null===process||void 0===process?void 0:process.env)||void 0===t?void 0:t.DEBUG)&&console.debug("Builder custom code error:",r.message||r,"in",e,r.stack||r),n&&n.push(r),null}};return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&(fnCache[i]=c),c}var isPromise=function(e){return"function"==typeof e.then},isRequestInfo=function(e){return!isPromise(e)},BuilderAsyncRequestsContext=react__WEBPACK_IMPORTED_MODULE_2__.default.createContext({requests:[],errors:[],logs:[]}),BuilderStoreContext=react__WEBPACK_IMPORTED_MODULE_2__.default.createContext({state:{},rootState:{},content:{},context:{},update:function(e){return null}}),applyPatchWithMinimalMutationChain=function(e,t,n){if(void 0===n&&(n=!1),Object(e)!==e)return e;var r=t.path,i=t.op,o=t.value,a=r.split(/\//);""===a[0]&&a.shift();for(var s=n?e:__assign({},e),c=s,u=0;u<a.length;u++){var l=u===a.length-1,_=a[u];if(l)if("replace"===i)c[_]=o;else if("add"===i){var d=Number(_);Array.isArray(c)?"-"===_?c.push(o):c.splice(d,0,o):c[_]=o}else"remove"===i&&(d=Number(_),Array.isArray(c)?c.splice(d,1):delete c[_]);else{var p=a[u+1],f=Object(c[_])===c[_]?c[_]:String(Number(p))===p?[]:{};c=c[_]=Array.isArray(f)?__spreadArray([],f,!0):__assign({},f)}}return s},htmlEscape=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},blockToHtmlString=function(e){var t;return"<".concat(htmlEscape(e.tagName||"div"),' \n class="builder-block ').concat(e.id," ").concat(e.class||"",'"\n builder-id="').concat(e.id,'"\n ').concat(Object.keys(e.properties||{}).map((function(t){return"".concat(htmlEscape(t),'="').concat(htmlEscape(e.properties[t]),'"')})).join(" "),"\n >").concat("Text"===(null===(t=null==e?void 0:e.component)||void 0===t?void 0:t.name)?e.component.options.text:e.children?e.children.map((function(e){return blockToHtmlString(e)})).join(""):"","</").concat(e.tagName||"div",">").replace(/\s+/g," ")},Link=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderStoreContext.Consumer,null,(function(t){return t.renderLink?t.renderLink(e):react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("a",__assign({},e))}))},camelCaseToKebabCase=function(e){return e?e.replace(/([A-Z])/g,(function(e){return"-".concat(e[0].toLowerCase())})):""},kebabCaseToCamelCase=function(e){return void 0===e&&(e=""),e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},Device={desktop:0,tablet:1,mobile:2},voidElements=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","textarea"]),last=function(e){return e[e.length-1]};function omit$1(e,t){for(var n=Object.assign({},e),r=0,i=t;r<i.length;r++)delete n[i[r]];return n}var cssCase=function(e){if(!e)return e;var t=camelCaseToKebabCase(e);return e[0]===e[0].toUpperCase()&&(t="-"+t),t};function capitalize(e){if(e)return e[0].toUpperCase()+e.slice(1)}var BuilderBlock$1=function(_super){function BuilderBlock(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.state={hasError:!1,updates:0},_this.privateState={state:{},rootState:{},context:{},update:function(){}},_this.onWindowMessage=function(event){var message=event.data;if(message)switch(message.type){case"builder.selectionChange":var data=message.data;if(!data)break;var selection=data.selection,id=_this.block&&_this.block.id;id&&Array.isArray(selection)&&selection.indexOf(id)>-1&&setTimeout((function(){window.$block=_this,window.$blocks||(window.$blocks=[]),window.$blocks.push(_this)}));break;case"builder.patchUpdates":var data=message.data;if(!data||!data.data)break;var patches=data.data[_this.block.id];if(!patches)return;location.href.includes("builder.debug=true")&&eval("debugger");for(var _i=0,patches_1=patches;_i<patches_1.length;_i++){var patch=patches_1[_i];applyPatchWithMinimalMutationChain(_this.props.block,patch,!0)}_this.setState({updates:_this.state.updates+1})}},_this}return __extends(BuilderBlock,_super),Object.defineProperty(BuilderBlock.prototype,"store",{get:function(){return this.privateState},enumerable:!1,configurable:!0}),BuilderBlock.getDerivedStateFromError=function(e){return{hasError:!0}},BuilderBlock.prototype.componentDidCatch=function(e,t){console.error("Builder block error:",e,t)},BuilderBlock.prototype.stringToFunction=function(e,t){return void 0===t&&(t=!0),stringToFunction(e,t,this._errors,this._logs)},Object.defineProperty(BuilderBlock.prototype,"block",{get:function(){return this.props.block},enumerable:!1,configurable:!0}),Object.defineProperty(BuilderBlock.prototype,"emotionCss",{get:function(){var e,t,n,r,i,o=this.block;if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isServer){var a=o.animations&&o.animations[0];if(a&&"hover"!==a.trigger){var s=a&&a.steps&&a.steps[0],c=s&&s.styles;c&&(i=c)}}var u=sizeNames.slice().reverse(),l=this.block,_={};if(l.responsiveStyles)for(var d=0,p=u;d<p.length;d++){var f=p[d];if("large"===f)this.props.emailMode||(_["&.builder-block"]=Object.assign({},l.responsiveStyles[f],i));else{var h=getSizesForBreakpoints((null===(t=null===(e=this.privateState.context.builderContent)||void 0===e?void 0:e.meta)||void 0===t?void 0:t.breakpoints)||{});_["@media only screen and (max-width: ".concat(h[f].max,"px)")]={"&.builder-block":l.responsiveStyles[f]}}}var m=o.animations&&o.animations.find((function(e){return"hover"===e.trigger}));return m&&(_[":hover"]=(null===(r=null===(n=m.steps)||void 0===n?void 0:n[1])||void 0===r?void 0:r.styles)||{},_.transition="all ".concat(m.duration,"s ").concat(camelCaseToKebabCase(m.easing)),m.delay&&(_.transitionDelay=m.delay+"s")),_},enumerable:!1,configurable:!0}),BuilderBlock.prototype.eval=function(e){return this.stringToFunction(e)(this.privateState.state,void 0,this.block,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d,Device,this.privateState.update,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b,this.privateState.context)},BuilderBlock.prototype.componentWillUnmount=function(){_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&removeEventListener("message",this.onWindowMessage)},BuilderBlock.prototype.componentDidMount=function(){var e,t=this,n=this.block,r=n&&n.animations;if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&addEventListener("message",this.onWindowMessage),r){var i={animations:fastClone(r)};if(n.bindings)for(var o in n.bindings)if((null===(e=o.trim)||void 0===e?void 0:e.call(o))&&o.startsWith("animations.")){var a=this.stringToFunction(n.bindings[o]);void 0!==a&&set(i,o,a(this.privateState.state,null,n,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d,null,null,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b,this.privateState.context))}_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.animator.bindAnimations(i.animations.filter((function(e){return"hover"!==e.trigger})).map((function(e){return __assign(__assign({},e),{elementId:t.block.id})})))}},BuilderBlock.prototype.getElement=function(e,t){var n,r,i,o,a,s=this;void 0===e&&(e=0),void 0===t&&(t=this.privateState.state);var c=this.props;c.child,c.fieldName;var u,l=this.block,_=(l.tagName||"div").toLowerCase();if("template"===_){var d=l.children?l.children.map((function(e){return blockToHtmlString(e)})).join(" "):"";return console.debug("template html",d),Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("template",__assign({},l.properties,{dangerouslySetInnerHTML:{__html:d}}))}var p=l.component&&(l.component.name||l.component.component),f=null;l.component&&!l.component.class&&(l.component&&l.component.tag?u=l.component.tag:(f=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.components.find((function(e){return e.name===p}))||null)&&f.class?u=f.class:f&&f.tag?u=f.tag:(null==p?void 0:p.startsWith("Builder:"))?console.warn("Missing @builder.io/widgets installation, please install and import @builder.io/widgets to use ".concat(p.split(":")[1]," in your content, more info here: https://github.com/BuilderIO/builder/tree/main/packages/widgets")):p&&console.warn("Missing registration for ".concat(p,", have you included the registration in your bundle?")));var h=__assign(__assign({},l.properties),{style:{}});if(h=__assign(__assign({},h.properties),h),l.component&&(h.component=fastClone(l.component)),l.bindings)for(var m in l.bindings)if(null===(r=m.trim)||void 0===r?void 0:r.call(m)){var b=this.stringToFunction(l.bindings[m]);set(h,m,b(t,null,l,api(),Device,null,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b,this.privateState.context))}if(h.hide)return null;if(delete h.hide,("show"in h||l.bindings&&l.bindings.show)&&!h.show)return null;if(delete h.show,l.actions){var v=function(e){if(!(null===(i=e.trim)||void 0===i?void 0:i.call(e)))return"continue";var n=l.actions[e];h["on"+capitalize(e)]=function(e){var r=t;return"undefined"!=typeof Proxy&&(r=new Proxy(t,{set:function(e,t,n){return e[t]=n,s.privateState.rootState[t]=n,!0}})),s.stringToFunction(n,!1)(r,e,s.block,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d,Device,s.privateState.update,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b,s.privateState.context)}};for(var m in l.actions)v(m)}var g=(h.component||h.options)&&__assign(__assign({},h.options),h.component.options||h.component.data),y=voidElements.has(_),E=f&&(f.fragment||f.noWrap),O=(null===(o=h.attr)||void 0===o?void 0:o.style)||("string"==typeof h.style?h.style:"")||"";if("string"==typeof O){"object"!=typeof h.style&&(h.style={});for(var C=0,k=O.split(";");C<k.length;C++){var P=k[C].split(":");if(!P.length)return;m=P[0],b=P[1],m&&(P.length>2&&(b=P.slice(1).join(":")),h.style[kebabCaseToCamelCase(m)]=b)}}var M=__assign(__assign(__assign({},omit$1(h,["class","component","attr"])),((n={})["string"!=typeof _||_.includes("-")?"class":"className"]="builder-block ".concat(this.id).concat(l.class?" ".concat(l.class):"").concat(!l.component||["Image","Video","Banner"].indexOf(p)>-1?"":" builder-has-component")+(h.class?" "+h.class:"")+(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&(null===(a=this.privateState.state._spacer)||void 0===a?void 0:a.parent)===l.id?" builder-spacer-parent":""),n.key=this.id+e,n["builder-id"]=this.id,n)),0!==e&&{"builder-index":e});_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&(M["builder-inline-styles"]=h.attr&&h.attr.style?Object.keys(h.style).reduce((function(e,t){return(e?"".concat(e,";"):"")+"".concat(cssCase(t),":").concat(h.style[t],";")}),""):""),(M.properties&&M.properties.href||M.href)&&"div"===_&&(_="a"),"a"===_&&(_=Link);var w=l.children||M.children||[];return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(react__WEBPACK_IMPORTED_MODULE_2__.default.Fragment,null,Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.a,null,(function(e){var t=e.css;if(e.cx,!s.props.emailMode){var n=" "+t(s.emotionCss);M.class&&(M.class+=n),M.className&&(M.className+=n)}return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderAsyncRequestsContext.Consumer,null,(function(e){return s._asyncRequests=e&&e.requests,s._errors=e&&e.errors,s._logs=e&&e.logs,y?Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(_,__assign({},M)):u&&(E||s.props.emailMode)?Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(u,__assign({},g,{attributes:M,builderBlock:l,builderState:s.privateState})):Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(_,__assign({},M),u&&Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(u,__assign({builderState:s.privateState,builderBlock:l},g)),l.text||h.text?h.text:!u&&w&&Array.isArray(w)&&w.length?w.map((function(e,t){return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlock,{key:(s.id||"")+t,block:e,index:t,size:s.props.size,fieldName:s.props.fieldName,child:s.props.child,emailMode:s.props.emailMode})})):null)}))})))},Object.defineProperty(BuilderBlock.prototype,"id",{get:function(){var e=this.block;return e.id.startsWith("builder")?e.id:"builder-"+e.id},enumerable:!1,configurable:!0}),BuilderBlock.prototype.contents=function(e){var t=this,n=this.block;if(this.privateState=e,n.repeat&&n.repeat.collection){var r=n.repeat.collection,i=last((r||"").trim().split("(")[0].trim().split(".")),o=n.repeat.itemName||(i?i+"Item":"item"),a=this.stringToFunction(r)(e.state,null,n,api(),Device,null,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b,this.privateState.context);return Array.isArray(a)?a.map((function(n,r){var i,a=__assign(__assign({},e.state),((i={$index:r,$item:n})[o]=n,i["$".concat(o,"Index")]=r,i));return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderStoreContext.Provider,{key:r,value:__assign(__assign({},e),{state:a})},t.getElement(r,a))})):null}return this.getElement()},BuilderBlock.prototype.render=function(){var e=this;return this.state.hasError?Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("span",{css:{display:"inline-block",padding:5,color:"#999",fontSize:11,fontStyle:"italic"}},"Builder block error :( Check console for details"):Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderStoreContext.Consumer,null,(function(t){return e.contents(t)}))},BuilderBlock}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),BuilderBlocks=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClickEmptyBlocks=function(){var e;_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isIframe&&t.noBlocks&&(null===(e=window.parent)||void 0===e||e.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:t.parentId,dataPath:t.path}},"*"))},t.onHoverEmptyBlocks=function(){var e;_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&t.noBlocks&&(null===(e=window.parent)||void 0===e||e.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:t.parentId,dataPath:t.path}},"*"))},t}return __extends(t,e),Object.defineProperty(t.prototype,"isRoot",{get:function(){return!this.props.child},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noBlocks",{get:function(){var e=this.props.blocks;return!(e&&e.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){var e=this.props.dataPath||"";return e.trim()&&(e.startsWith("this.")?e=e.replace("this.",""):e.startsWith("component.options.")||(e="component.options."+e)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentId",{get:function(){return this.props.parentElementId?this.props.parentElementId:this.props.parent&&this.props.parent.id},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props.blocks,n=this.props.emailMode?"span":"div";return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(n,__assign({className:"builder-blocks"+(this.noBlocks?" no-blocks":"")+(this.props.child?" builder-blocks-child":"")+(this.props.className?" "+this.props.className:""),"builder-type":"blocks","builder-path":_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isIframe?this.path:void 0,"builder-parent-id":this.parentId,css:__assign(__assign({},!this.props.emailMode&&{display:"flex",flexDirection:"column",alignItems:"stretch"}),this.props.style),onClick:function(){e.noBlocks&&e.onClickEmptyBlocks()}},_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&{onMouseEnter:function(){return e.onHoverEmptyBlocks()}}),t&&Array.isArray(t)&&t.map((function(t,n){return t&&"@builder.io/sdk:Element"===t["@type"]?Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlock$1,{key:t.id,block:t,index:n,fieldName:e.props.fieldName,child:e.props.child,emailMode:e.props.emailMode}):t}))||t)},t.renderInto=function(e,n,r){if(void 0===n&&(n={}),e){var i=null;return"string"==typeof e?i=document.querySelector(e):e instanceof Element&&(i=e),react__WEBPACK_IMPORTED_MODULE_2__.default.render(Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderStoreContext.Provider,{value:r},Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(t,__assign({},n))),i)}},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),NoWrap=function(e){return e.children};function getData(e){if(void 0!==(null==e?void 0:e.data)){var t=e.data,n=t.blocks,r=t.blocksString,i=Array.isArray(n)||"string"==typeof r,o=__assign(__assign({},e.data),i&&{blocks:n||JSON.parse(r)});return delete o.blocksString,o}}var variantsScript=function(e,t){return"\n(function() {\n if (window.builderNoTrack || !navigator.cookieEnabled) {\n return;\n }\n\n var variants = ".concat(e,";\n function removeVariants() {\n variants.forEach(function (template) {\n document.querySelector('template[data-template-variant-id=\"' + template.id + '\"]').remove();\n });\n document.getElementById('variants-script-").concat(t,'\').remove();\n }\n\n if (typeof document.createElement("template").content === \'undefined\') {\n removeVariants();\n return ;\n }\n\n function setCookie(name,value,days) {\n var expires = "";\n if (days) {\n var date = new Date();\n date.setTime(date.getTime() + (days*24*60*60*1000));\n expires = "; expires=" + date.toUTCString();\n }\n document.cookie = name + "=" + (value || "") + expires + "; path=/" + "; Secure; SameSite=None";\n }\n\n function getCookie(name) {\n var nameEQ = name + "=";\n var ca = document.cookie.split(\';\');\n for(var i=0;i < ca.length;i++) {\n var c = ca[i];\n while (c.charAt(0)==\' \') c = c.substring(1,c.length);\n if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);\n }\n return null;\n }\n var cookieName = \'builder.tests.').concat(t,"';\n var variantInCookie = getCookie(cookieName);\n var availableIDs = variants.map(function(vr) { return vr.id }).concat('").concat(t,"');\n var variantId;\n if (availableIDs.indexOf(variantInCookie) > -1) {\n variantId = variantInCookie;\n }\n if (!variantId) {\n var n = 0;\n var random = Math.random();\n for (var i = 0; i < variants.length; i++) {\n var variant = variants[i];\n var testRatio = variant.testRatio;\n n += testRatio;\n if (random < n) {\n setCookie(cookieName, variant.id);\n variantId = variant.id;\n break;\n }\n }\n if (!variantId) {\n variantId = \"").concat(t,'";\n setCookie(cookieName, "').concat(t,'");\n }\n }\n if (variantId && variantId !== "').concat(t,"\") {\n var winningTemplate = document.querySelector('template[data-template-variant-id=\"' + variantId + '\"]');\n if (winningTemplate) {\n var parentNode = winningTemplate.parentNode;\n var newParent = parentNode.cloneNode(false);\n newParent.appendChild(winningTemplate.content.firstChild);\n parentNode.parentNode.replaceChild(newParent, parentNode);\n }\n } else if (variants.length > 0) {\n removeVariants();\n }\n})()").replace(/\s+/g," ")},VariantsProvider=function(e){var t=e.initialContent,n=e.children;if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&!_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.canTrack)return n([t]);if(!Boolean(Object.keys((null==t?void 0:t.variations)||{}).length))return n([t]);var r=Object.keys(t.variations).map((function(e){return __assign(__assign({id:e},t.variations[e]),{data:getData(t.variations[e])})})),i=__spreadArray(__spreadArray([],r,!0),[t],!1);if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isServer){var o=JSON.stringify(Object.keys(t.variations||{}).map((function(e){return{id:e,testRatio:t.variations[e].testRatio}})));return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,n(i,(function(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("script",{id:"variants-script-".concat(t.id),dangerouslySetInnerHTML:{__html:variantsScript(o,t.id)}})})))}var a="builder.tests.".concat(t.id),s=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.getCookie(a);if(!s&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser)for(var c=0,u=Math.random(),l=0;l<r.length;l++){var _=r[l];if(u<(c+=_.testRatio)){_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.setCookie(a,_.id),s=_.id;break}}return s||(s=t.id,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.setCookie(a,s)),n([i.find((function(e){return e.id===s}))])},BuilderContent=function(_super){function BuilderContent(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.ref=null,_this.state={loading:!_this.props.content,data:getContentWithInfo(_this.props.content),updates:1},_this.onWindowMessage=function(event){var _a,_b,message=event.data;if(message)switch(message.type){case"builder.patchUpdates":if(null===(_a=_this.props.options)||void 0===_a?void 0:_a.noEditorUpdates)return;var data=message.data;if(!data||!data.data)break;var patches=data.data[null===(_b=_this.state.data)||void 0===_b?void 0:_b.id];if(!patches||!patches.length)return;location.href.includes("builder.debug=true")&&eval("debugger");for(var newData=_this.state.data,_i=0,patches_1=patches;_i<patches_1.length;_i++){var patch=patches_1[_i];newData=applyPatchWithMinimalMutationChain(newData,patch,!1)}_this.setState({updates:_this.state.updates+1,data:newData}),_this.props.contentLoaded&&_this.props.contentLoaded(newData.data,newData)}},_this.subscriptions=new _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.c,_this.firstLoad=!0,_this.clicked=!1,_this.trackedImpression=!1,_this.intersectionObserver=null,_this.onClick=function(e){var t=e.nativeEvent,n=_this.data;n&&(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.autoTrack&&_this.builder.trackInteraction(n.id,_this.renderedVariantId,_this.clicked,t,{content:n}),_this.clicked||(_this.clicked=!0))},_this}return __extends(BuilderContent,_super),Object.defineProperty(BuilderContent.prototype,"builder",{get:function(){return this.props.builder||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d},enumerable:!1,configurable:!0}),Object.defineProperty(BuilderContent.prototype,"name",{get:function(){var e=this.props;return"model"in e?e.model:e.modelName},enumerable:!1,configurable:!0}),Object.defineProperty(BuilderContent.prototype,"renderedVariantId",{get:function(){var e,t,n=this.props.isStatic?this.builder.getCookie("builder.tests.".concat(null===(e=this.data)||void 0===e?void 0:e.id)):null===(t=this.data)||void 0===t?void 0:t.variationId;if(null!==n)return n},enumerable:!1,configurable:!0}),Object.defineProperty(BuilderContent.prototype,"options",{get:function(){var e,t,n=__assign({},this.props.options||{});return n.key||!(null===(e=this.props.content)||void 0===e?void 0:e.id)||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isPreviewing||(n.key=this.props.content.id),!this.props.content||(null===(t=n.initialContent)||void 0===t?void 0:t.length)||!this.props.inline&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isPreviewing||(n.initialContent=[this.props.content]),n},enumerable:!1,configurable:!0}),Object.defineProperty(BuilderContent.prototype,"data",{get:function(){var e=(this.props.inline||!_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser||this.firstLoad)&&this.options.initialContent&&this.options.initialContent[0]||this.state.data;return getContentWithInfo(e)},enumerable:!1,configurable:!0}),BuilderContent.prototype.componentDidMount=function(){var e,t;if(!this.props.inline||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isPreviewing)this.subscribeToContent();else if(this.props.inline&&(null===(t=null===(e=this.options)||void 0===e?void 0:e.initialContent)||void 0===t?void 0:t.length)){var n=this.options.initialContent[0];(null==n?void 0:n.id)&&this.builder.trackImpression(n.id,this.renderedVariantId,void 0,{content:n})}_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&addEventListener("message",this.onWindowMessage)},BuilderContent.prototype.subscribeToContent=function(){var e=this;"_inline"!==this.name&&this.subscriptions.add(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.queueGetContent(this.name,this.options).subscribe((function(t){var n=t&&t[0];e.setState({data:n,loading:!1});var r=(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.editingModel||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.previewingModel)===e.name;if(!e.props.inline&&e.props.content&&e.firstLoad&&r&&(e.firstLoad=!1,e.subscriptions.unsubscribe(),e.subscribeToContent()),n&&e.firstLoad&&(e.firstLoad=!1,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.autoTrack&&!_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing)){var i=!1;if("function"==typeof IntersectionObserver&&e.ref)try{(e.intersectionObserver=new IntersectionObserver((function(t,r){t.forEach((function(t){t.intersectionRatio>0&&!e.trackedImpression&&(e.builder.trackImpression(n.id,e.renderedVariantId,void 0,{content:e.data}),e.data,e.trackedImpression=!0,e.ref&&r.unobserve(e.ref))}))}))).observe(e.ref),i=!0}catch(e){console.warn("Could not bind intersection observer")}i||(e.trackedImpression=!0,e.builder.trackImpression(n.id,e.renderedVariantId,void 0,{content:n}))}e.props.contentLoaded&&e.props.contentLoaded(n&&n.data,n)}),(function(t){e.props.contentError&&(e.props.contentError(t),e.setState({loading:!1}))})))},BuilderContent.prototype.componentWillUnmount=function(){_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&removeEventListener("message",this.onWindowMessage),this.subscriptions.unsubscribe(),this.intersectionObserver&&this.ref&&this.intersectionObserver.unobserve(this.ref)},BuilderContent.prototype.render=function(){var e=this;if(this.props.dataOnly)return null;var t=this.state.loading,n=this.data,r=this.props.dataOnly?NoWrap:"div";return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(VariantsProvider,{initialContent:n},(function(i,o){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(react__WEBPACK_IMPORTED_MODULE_2__.default.Fragment,null,i.map((function(a,s){var c=s===i.length-1?react__WEBPACK_IMPORTED_MODULE_2__.default.Fragment:"template";return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(react__WEBPACK_IMPORTED_MODULE_2__.default.Fragment,{key:String((null==a?void 0:a.id)+s)},"template"!==c&&(null==o?void 0:o()),react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(c,__assign({key:String((null==a?void 0:a.id)+s)},"template"===c&&{"data-template-variant-id":null==a?void 0:a.id}),react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(r,__assign({},0===s&&!e.props.dataOnly&&{ref:function(t){return e.ref=t}},{className:"builder-content",onClick:e.onClick,"builder-content-id":null==a?void 0:a.id,"builder-model":e.name}),e.props.children(null==a?void 0:a.data,!e.props.inline&&t,n))))})))}))},BuilderContent}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),getContentWithInfo=function(e){var t;if(e){var n=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.getCookie("builder.tests.".concat(e.id)),r=n===e.id?e:null===(t=e.variations)||void 0===t?void 0:t[n],i=(null==r?void 0:r.name)||((null==r?void 0:r.id)===e.id?"Default variation":"");return __assign(__assign({},e),{variationId:n,testVariationId:n,testVariationName:i})}return null};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var onChange_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Symbol("target"),r=Symbol("unsubscribe"),i=function(e,t){return t&&t.toString&&(e&&(e+="."),e+=t.toString()),e},o=function(e){return Array.isArray(e)?e.slice():Object.assign({},e)},a=function(e,t,a){if("undefined"==typeof Proxy)return e;void 0===a&&(a={});var s,c,u=Symbol("ProxyTarget"),l=!1,_=!1,d=!1,p=a.equals||Object.is,f=new WeakMap,h=new WeakMap,m=new WeakMap,b=function(e,n,r,a){if(!d)if(l){if(l&&c&&void 0!==r&&void 0!==a&&"length"!==n){var u=c;e!==s&&function(e,t){for(var n;e;)-1===(n=e.indexOf("."))&&(n=e.length),t(e.slice(0,n)),e=e.slice(n+1)}(e=e.replace(s,"").slice(1),(function(e){u[e]=o(u[e]),u=u[e]})),u[n]=r}_=!0}else t(i(e,n),a,r)},v=function(e,t){var n=f?f.get(e):void 0;n&&n.delete(t)},g=function(e,t){if(d)return e;h.set(e,t);var n=m.get(e);return void 0===n&&(n=new Proxy(e,E),m.set(e,n)),n},y=function(e){return d||!0===a.ignoreSymbols&&"symbol"==typeof e},E={get:function(e,t,o){if(t===u||t===n)return e;if(t===r&&""===h.get(e))return function(e){return d=!0,f=null,h=null,m=null,e}(e);var s=Reflect.get(e,t,o);if(function(e){return null===e||"object"!=typeof e&&"function"!=typeof e}(s)||function(e){return e instanceof RegExp||e instanceof Number}(s)||"constructor"===t||!0===a.isShallow)return s;var c=function(e,t){var n=f?f.get(e):void 0;if(n)return n;n=new Map,f.set(e,n);var r=n.get(t);return r||(r=Reflect.getOwnPropertyDescriptor(e,t),n.set(t,r)),r}(e,t);if(c&&!c.configurable){if(c.set&&!c.get)return;if(!1===c.writable)return s}return g(s,i(h.get(e),t))},set:function(e,t,n,r){n&&void 0!==n[u]&&(n=n[u]);var i=y(t),o=i?null:Reflect.get(e,t,r),a=Reflect.set(e[u]||e,t,n);return i||p(o,n)||b(h.get(e),t,o,n),a},defineProperty:function(e,t,n){var r=Reflect.defineProperty(e,t,n);return y(t)||(v(e,t),b(h.get(e),t,void 0,n.value)),r},deleteProperty:function(e,t){if(!Reflect.has(e,t))return!0;var n=y(t),r=n?null:Reflect.get(e,t),i=Reflect.deleteProperty(e,t);return n||(v(e,t),b(h.get(e),t,r)),i},apply:function(e,t,n){var r=t instanceof Date;if(r&&(t=t[u]),!l){l=!0,r&&(c=t.valueOf()),(Array.isArray(t)||"[object Object]"===toString.call(t))&&(c=o(t[u])),s=(s=h.get(e)).slice(0,Math.max(s.lastIndexOf("."),0));var i=Reflect.apply(e,t,n);return l=!1,(_||r&&!p(c,t.valueOf()))&&(b(s,"",c,t[u]||t),c=null,_=!1),i}return Reflect.apply(e,t,n)}},O=g(e,"");return t=t.bind(O),O};a.target=function(e){return e[n]||e},a.unsubscribe=function(e){return e[r]||e},e.exports=a,t.default=a})),onChange=unwrapExports(onChange_1),nextTick=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.nextTick;function debounceNextTick(e,t,n){return void 0===t&&"function"==typeof e?debounceNextTickImpl(e):{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,t,{configurable:!0,enumerable:n.enumerable,value:debounceNextTickImpl(n.value)}),this[t]}}}function debounceNextTickImpl(e){var t=null,n=null;return function(){var e=t;t=[].slice.call(arguments),n=this,null===e&&nextTick(r)};function r(){e.apply(n,t),t=null,n=null}}function throttle(e,t,n){var r,i,o;void 0===n&&(n={});var a=null,s=0,c=function(){s=!1===n.leading?0:Date.now(),a=null,o=e.apply(r,i),a||(r=i=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var l=t-(u-s);return r=this,i=arguments,l<=0||l>t?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(c,l)),o}}var BuilderMetaContext=react__WEBPACK_IMPORTED_MODULE_2__.default.createContext({emailMode:!1,ampMode:!1,isServer:!1}),tryEval=function(e,t,n){var r;void 0===t&&(t={});var i=e;if("string"==typeof i&&i.trim()){var o=!(i.includes(";")||i.includes(" return ")),a=function(){};try{_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&(a=new Function("state","var rootState = state;\n if (typeof Proxy !== 'undefined') {\n rootState = new Proxy(rootState, {\n set: function () {\n return false;\n },\n get: function (target, key) {\n if (key === 'state') {\n return state;\n }\n return target[key]\n }\n });\n }\n with (rootState) {\n ".concat(o?"return (".concat(e,");"):e,";\n }")))}catch(e){_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&console.warn("Could not compile javascript",e)}try{return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser?a(t||{}):new(0,safeDynamicRequire("vm2").VM)({sandbox:__assign(__assign({},t),{state:t})}).run(i.replace(/(^|;)return /,"$1"))}catch(t){n&&n.push(t),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser?console.warn("Builder custom code error:",t.message,"in",e,t.stack):(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.DEBUG)&&console.debug("Builder custom code error:",t.message,"in",e,t.stack)}}};function toError(e){return e instanceof Error?e:new Error(String(e))}function getBuilderPixel(e){return{id:"builder-pixel-"+Math.random().toString(36).split(".")[1],"@type":"@builder.io/sdk:Element",tagName:"img",properties:{role:"presentation","aria-hidden":"true",src:"https://cdn.builder.io/api/v1/pixel?apiKey=".concat(e)},responsiveStyles:{large:{height:"0",width:"0",display:"inline-block",opacity:"0",overflow:"hidden",pointerEvents:"none"}}}}function pick(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r={};return t.forEach((function(t){r[t]=e[t]})),r}function omit(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=__assign({},e);return t.forEach((function(e){delete r[e]})),r}var wrapComponent=function(e){return function(t){var n,r=t.builderTag||"div",i=["children"].concat((null===(n=e.inputs)||void 0===n?void 0:n.map((function(e){return e.name})))||[]),o=omit.apply(void 0,__spreadArray(__spreadArray([t],i,!1),["attributes"],!1)),a=t;return e.noWrap?react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(e.class,__assign({attributes:o},a)):react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(r,__assign({},o),react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(e.class,__assign({},a)))}},size$1=function(e){return Object.keys(e).length};function debounce(e,t,n){var r;return void 0===n&&(n=!1),function(){var i=this,o=arguments;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(i,o)}),t),n&&!r&&e.apply(i,o)}}var fontsLoaded=new Set,fetch$1;globalThis.fetch&&(fetch$1=globalThis.fetch),null!=fetch$1||(fetch$1=__webpack_require__("oY9k"));var sizeMap={desktop:"large",tablet:"medium",mobile:"small"},fetchCache={};function searchToObject$1(e){var t=(e.search||"").substring(1).split("&"),n={};for(var r in t)if(t[r]&&"string"==typeof t[r]){var i=t[r].split("=");n[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return n}var BuilderComponent=function(e){function t(t){var n,r=this;(r=e.call(this,t)||this).subscriptions=new _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.c,r.onStateChange=new _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.a(null),r.asServer=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isServer,r.contentRef=null,r.styleRef=null,r.rootState=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isServer?{}:onChange({},(function(){return r.updateState()})),r.lastJsCode="",r.lastHttpRequests={},r.httpSubscriptionPerKey={},r.firstLoad=!0,r.ref=null,r.messageListener=function(e){var t,n=e.data;switch(n.type){case"builder.configureSdk":var i=n.data;if(!i.contentId||i.contentId!==(null===(t=r.useContent)||void 0===t?void 0:t.id))return;r.sizes=getSizesForBreakpoints(i.breakpoints||{}),r.setState({state:Object.assign(r.rootState,{deviceSize:r.deviceSizeState,device:r.device}),updates:(r.state&&r.state.updates||0)+1,breakpoints:i.breakpoints});break;case"builder.updateSpacer":var o=n.data;r.rootState._spacer,r.updateState((function(e){e._spacer=o}));break;case"builder.resetState":var a=n.data,s=a.state;if(a.model===r.name){for(var c in r.rootState)"function"!=typeof r.rootState[c]&&delete r.rootState[c];Object.assign(r.rootState,s),r.setState(__assign(__assign({},r.state),{state:r.rootState,updates:(r.state&&r.state.updates||0)+1}))}break;case"builder.resetSymbolState":var u=n.data.state,l=(s=u.state,u.model,u.id);if(r.props.builderBlock&&r.props.builderBlock===l){for(var c in r.rootState)delete r.rootState[c];Object.assign(r.rootState,s),r.setState(__assign(__assign({},r.state),{state:r.rootState,updates:(r.state&&r.state.updates||0)+1}))}}},r.resizeFn=function(){var e=r.deviceSizeState;e!==r.state.state.deviceSize&&r.setState(__assign(__assign({},r.state),{updates:(r.state&&r.state.updates||0)+1,state:Object.assign(r.rootState,__assign(__assign({},r.state.state),{deviceSize:e}))}))},r.resizeListener=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing?throttle(r.resizeFn,200):debounce(r.resizeFn,400),r.mounted=!1,r.updateState=function(e){var t=r.rootState;e&&e(t),r.mounted?r.setState({update:r.updateState,state:t,updates:(r.state&&r.state.updates||0)+1}):r.state=__assign(__assign({},r.state),{update:r.updateState,state:t,updates:(r.state&&r.state.updates||0)+1}),r.notifyStateChange()},r.onContentLoaded=function(e,t){var n;if("page"===r.name&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&e){var i=e.title,o=e.pageTitle,a=e.description,s=e.pageDescription;if((i||o)&&(document.title=i||o),a||s){var c=document.querySelector('meta[name="description"]');c||((c=document.createElement("meta")).setAttribute("name","description"),document.head.appendChild(c)),c.setAttribute("content",a||s)}}if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&r.notifyStateChange(),r.props.contentLoaded&&r.props.contentLoaded(e,t),e&&e.inputs&&Array.isArray(e.inputs)&&e.inputs.length&&(e.state||(e.state={}),e.inputs.forEach((function(t){t&&t.name&&void 0!==t.defaultValue&&void 0===e.state[t.name]&&(e.state[t.name]=t.defaultValue)}))),e&&e.state){var u=__assign(__assign({},r.state),{updates:(r.state&&r.state.updates||0)+1,state:Object.assign(r.rootState,__assign(__assign(__assign(__assign({},r.state.state),{location:r.locationState,deviceSize:r.deviceSizeState,device:r.device}),e.state),r.externalState))});r.mounted?r.setState(u):r.state=u}if(e&&e.jsCode&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&!r.options.codegen){var l=!1;if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&(r.lastJsCode===e.jsCode?l=!0:r.lastJsCode=e.jsCode),!l){var _=r.state.state;try{new Function("data","ref","state","update","element","Builder","builder","context",e.jsCode)(e,r,_,r.state.update,r.ref,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d,r.state.context)}catch(t){var d=toError(t);_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser?console.warn("Builder custom code error:",d.message,"in",e.jsCode,d.stack):(null===(n=null===process||void 0===process?void 0:process.env)||void 0===n?void 0:n.DEBUG)&&console.debug("Builder custom code error:",d.message,"in",e.jsCode,d.stack)}}}if(e&&e.httpRequests&&!r.props.noAsync&&!(l=!1)){var p=function(t){var n=e.httpRequests[t];if(n&&(!r.data[t]||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing))if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser){var i=r.evalExpression(n);if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&r.lastHttpRequests[t]===i)return"continue";r.lastHttpRequests[t]=i;var o=n.match(/builder\.io\/api\/v2\/([^\/\?]+)/i);o&&o[1],r.handleRequest(t,i);var a=r.httpSubscriptionPerKey[t];a&&a.unsubscribe();var s=r.httpSubscriptionPerKey[t]=r.onStateChange.subscribe((function(){var e=r.evalExpression(n);e!==i&&(r.handleRequest(t,e),r.lastHttpRequests[t]=e)}));r.subscriptions.add(s)}else r.handleRequest(t,r.evalExpression(n))};for(var f in e.httpRequests)p(f)}};var i=r.inlinedContent;if(i&&i.content&&(i=i.content),r.sizes=getSizesForBreakpoints((null===(n=null==i?void 0:i.meta)||void 0===n?void 0:n.breakpoints)||{}),r.state={context:__assign(__assign({},t.context),{apiKey:_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.apiKey||r.props.apiKey}),state:Object.assign(r.rootState,__assign(__assign(__assign(__assign({},r.inlinedContent&&r.inlinedContent.data&&r.inlinedContent.data.state),{isBrowser:_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser,isServer:!_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser,_hydrate:t.hydrate,location:r.locationState,deviceSize:r.deviceSizeState,device:r.device}),r.getHtmlData()),t.data)),updates:0,key:0,update:r.updateState},_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser){var o=r.props.apiKey;if(o&&o!==r.builder.apiKey&&(r.builder.apiKey=o),r.inlinedContent){var a=r.inlinedContent.content||r.inlinedContent;r.onContentLoaded(null==a?void 0:a.data,getContentWithInfo(a))}}return r}return __extends(t,e),Object.defineProperty(t.prototype,"options",{get:function(){return __assign(__assign({},t.defaults),this.props)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.model||this.props.modelName||this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.ref},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inlinedContent",{get:function(){if(!this.isPreviewing||this.props.inlineContent)return this.props.content},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"builder",{get:function(){return this.props.builder||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d},enumerable:!1,configurable:!0}),t.prototype.getHtmlData=function(){var e=this.inlinedContent&&this.inlinedContent.id||this.props.entry,t=e&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&document.querySelector('script[data-builder-json="'.concat(e,'"],script[data-builder-state="').concat(e,'"]'));if(t)try{return JSON.parse(t.innerText)}catch(e){console.warn("Could not parse Builder.io HTML data transfer",e,t.innerText)}return{}},Object.defineProperty(t.prototype,"device",{get:function(){return this.builder.getUserAttributes().device||"desktop"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locationState",{get:function(){return __assign(__assign({},pick(this.location,"pathname","hostname","search","host")),{path:this.location.pathname&&this.location.pathname.split("/").slice(1)||"",query:searchToObject$1(this.location)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceSizeState",{get:function(){return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser?this.sizes.getSizeForWidth(window.innerWidth):sizeMap[this.device]||"large"},enumerable:!1,configurable:!0}),t.renderInto=function(e,n,r,i){if(void 0===n&&(n={}),void 0===r&&(r=!0),void 0===i&&(i=!1),console.debug("BuilderPage.renderInto",e,n,r,this),e){var o=null;if("string"==typeof e?o=document.querySelector(e):e instanceof Element&&(o=e),o){var a=o.classList.contains("builder-hydrated");if(!a||i){o.classList.add("builder-hydrated");var s=r&&o.innerHTML.includes("builder-block");if(!o.classList.contains("builder-component")){var c=o.querySelector(".builder-api-styles")||(o.previousElementSibling&&o.previousElementSibling.matches(".builder-api-styles")?o.previousElementSibling:null),u="";c&&(c.innerHTML.replace(/\/\*start:([^\*]+?)\*\/([\s\S]*?)\/\*end:([^\*]+?)\*\//g,(function(e,t,n){var r=null;try{r=document.querySelector('[data-emotion-css="'.concat(t,'"]'))}catch(e){console.warn(e)}return r?r.innerHTML=n:_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing||(u+=e),e})),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.nextTick((function(){c.innerHTML=u})));var l=o.querySelector(".builder-component");l?o=l:s=!1}location.search.includes("builder.debug=true")&&console.debug("hydrate",s,o);var _=o;if(!a){var d=document.createElement("div");o.insertAdjacentElement("beforebegin",d),d.appendChild(o),_=d}if((_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&location.search.includes("builder.preview="))&&(s=!1),s&&o){var p=react__WEBPACK_IMPORTED_MODULE_2__.default.render(react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(t,__assign({},n)),_,_.builderRootRef);return _.builderRootRef=p,p}var f=react__WEBPACK_IMPORTED_MODULE_2__.default.render(react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(t,__assign({},n)),_,_.builderRootRef);return _.builderRootRef=f,f}console.debug("Tried to hydrate multiple times")}}},t.prototype.componentDidMount=function(){var e,t=this;this.mounted=!0,this.asServer&&(this.asServer=!1,this.updateState((function(e){e.isBrowser=!0,e.isServer=!1}))),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isIframe&&(null===(e=window.parent)||void 0===e||e.postMessage({type:"builder.sdkInjected",data:{modelName:this.name}},"*")),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&(window.addEventListener("resize",this.resizeListener),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&window.addEventListener("message",this.messageListener),(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isPreviewing)&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.nextTick((function(){t.firstLoad=!1,t.reload()})),setTimeout((function(){window.dispatchEvent(new CustomEvent("builder:component:load",{detail:{ref:t}}))})))},Object.defineProperty(t.prototype,"isPreviewing",{get:function(){return(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isServer||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isPreviewing&&!this.firstLoad)&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.previewingModel===this.name},enumerable:!1,configurable:!0}),t.prototype.notifyStateChange=function(){if(!_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isServer&&this&&this.state){var e=this.state.state;this.props.onStateChange&&this.props.onStateChange(e),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:e,ref:this}})),this.onStateChange.next(e)}},t.prototype.processStateFromApi=function(e){return e},Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location||(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser?location:{})},enumerable:!1,configurable:!0}),t.prototype.getCssFromFont=function(e,t){var n=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),r=n.split(",")[0],i=e.fileUrl?e.fileUrl:e.files&&e.files.regular,o="";if(i&&n&&r&&(o+='\n@font-face {\n font-family: "'.concat(n,'";\n src: local("').concat(r,"\"), url('").concat(i,"') format('woff2');\n font-display: fallback;\n font-weight: 400;\n}\n ").trim()),e.files)for(var a in e.files)if(String(Number(a))===a){var s=e.files[a];s&&s!==i&&(o+='\n@font-face {\n font-family: "'.concat(n,"\";\n src: url('").concat(s,"') format('woff2');\n font-display: fallback;\n font-weight: ").concat(a,";\n}\n ").trim())}return o},t.prototype.componentWillUnmount=function(){this.unsubscribe(),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("message",this.messageListener))},t.prototype.getFontCss=function(e){var t=this;return this.builder.allowCustomFonts&&(null==e?void 0:e.customFonts)&&e.customFonts.length&&e.customFonts.map((function(n){return t.getCssFromFont(n,e)})).join(" ")||""},t.prototype.ensureFontsLoaded=function(e){if(this.builder.allowCustomFonts&&(null==e?void 0:e.customFonts)&&Array.isArray(e.customFonts))for(var t=0,n=e.customFonts;t<n.length;t++){var r=n[t],i=r.fileUrl?r.fileUrl:r.files&&r.files.regular;if(!fontsLoaded.has(i)){var o=this.getCssFromFont(r,e);if(fontsLoaded.add(i),!o)continue;var a=document.createElement("style");a.className="builder-custom-font",a.setAttribute("data-builder-custom-font",i),a.innerHTML=o,document.head.appendChild(a)}}},t.prototype.getCss=function(e){var t,n=null===(t=this.useContent)||void 0===t?void 0:t.id,r=(null==e?void 0:e.cssCode)||"";return n&&(r=r.replace(/&/g,".builder-component-".concat(n))),r+this.getFontCss(e)},Object.defineProperty(t.prototype,"data",{get:function(){var e,t=__assign(__assign(__assign({},this.inlinedContent&&(null===(e=this.inlinedContent.data)||void 0===e?void 0:e.state)),this.externalState),this.state.state);return Object.assign(this.rootState,t),t},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e){var t=this;this.props.data&&e.data!==this.props.data&&this.state.update((function(e){Object.assign(e,t.externalState)})),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&this.inlinedContent&&e.content!==this.inlinedContent&&this.onContentLoaded(this.inlinedContent.data,this.inlinedContent)},t.prototype.checkStyles=function(e){if(this.styleRef){var t=this.getCss(e);this.styleRef.innerHTML!==t&&(this.styleRef.innerHTML=t)}},t.prototype.reload=function(){this.setState({key:this.state.key+1})},Object.defineProperty(t.prototype,"content",{get:function(){var e=this.inlinedContent;return e&&e.content&&(e=__assign(__assign({},e),{data:e.content})),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"externalState",{get:function(){return __assign(__assign({},this.props.data),this.props.locale?{locale:this.props.locale}:{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useContent",{get:function(){return this.content||this.state.context.builderContent},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this,n=this.content,r=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&this.externalState&&size$1(this.externalState)&&hash_sum__WEBPACK_IMPORTED_MODULE_3___default()(this.externalState),i=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing?this.name:this.props.entry;i&&!_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&r&&r.length<300&&(i+=":"+r);var o=this.props.dataOnly?react__WEBPACK_IMPORTED_MODULE_2__.default.Fragment:"div",a=null===(e=this.useContent)||void 0===e?void 0:e.id;return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(o,{onClick:function(e){!_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing||t.props.isChild||t.props.stopClickPropagationWhenEditing||e.stopPropagation()},className:"builder-component ".concat(a?"builder-component-".concat(a):""),"data-name":this.name,"data-source":"Rendered by Builder.io",key:this.state.key,ref:function(e){return t.ref=e}},react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderMetaContext.Consumer,null,(function(e){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderMetaContext.Provider,{value:"boolean"==typeof t.props.ampMode?__assign(__assign({},e),{ampMode:t.props.ampMode}):e},react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderAsyncRequestsContext.Consumer,null,(function(e){var r;return t._asyncRequests=e&&e.requests,t._errors=e&&e.errors,t._logs=e&&e.logs,react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderContent,{isStatic:t.props.isStatic||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isStatic,key:(null===(r=t.inlinedContent)||void 0===r?void 0:r.id)||("content"in t.props&&!t.isPreviewing?"null-content-prop":"no-content-prop"),builder:t.builder,ref:function(e){return t.contentRef=e},contentLoaded:function(e,n){return t.onContentLoaded(e,n)},options:__assign(__assign(__assign(__assign(__assign(__assign({key:i,entry:t.props.entry},n&&{initialContent:[n]}),!n&&"content"in t.props&&!t.isPreviewing&&{initialContent:[]}),t.props.url&&{url:t.props.url}),t.props.options),t.props.locale?{locale:t.props.locale}:{}),t.options.codegen&&{format:"react"}),inline:t.props.inlineContent||!t.isPreviewing&&"content"in t.props,contentError:t.props.contentError,modelName:t.name||"page"},(function(e,n,r){var i;if(t.props.dataOnly)return null;r&&r.id&&(t.state.breakpoints&&(r.meta=r.meta||{},r.meta.breakpoints=t.state.breakpoints),t.state.context.builderContent=r),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.nextTick((function(){t.checkStyles(e)}));var o=t.options.codegen;if(o&&!t.Component&&(null==e?void 0:e.blocksJs)){var a=Array.from(new Set(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.components.map((function(e){return e.name})))),s=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.components.slice().reverse(),c=a.map((function(e){return s.find((function(t){return t.class&&t.name===e}))})),u=a.map((function(e){return(e||"").replace(/[^\w]+/gi,"")})),l=c.map((function(e){return wrapComponent(e)}));t.Component=(new(Function.bind.apply(Function,__spreadArray(__spreadArray([void 0,"jsx","_css","Builder","builder","React","useBuilderState"],u,!1),[e.blocksJs],!1)))).apply(void 0,__spreadArray([_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c,_emotion_core__WEBPACK_IMPORTED_MODULE_1__.b,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b,_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d,react__WEBPACK_IMPORTED_MODULE_2__.default,function(e){var t=react__WEBPACK_IMPORTED_MODULE_2__.default.useState(0)[1];return react__WEBPACK_IMPORTED_MODULE_2__.default.useState((function(){return onChange(e,(function(){t((function(e){return e+1}))}))}))[0]}],l,!1))}var _=(null==e?void 0:e.blocks)||[],d=_.find((function(e){var t;return null===(t=e.id)||void 0===t?void 0:t.startsWith("builder-pixel")}));return e&&!d&&_.length>0&&_.push(getBuilderPixel(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.apiKey)),e?react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("div",__assign({"data-builder-component":t.name,"data-builder-content-id":r.id},t.isPreviewing?{"data-builder-variation-id":r.testVariationId||r.variationId||r.id}:{}),!o&&t.getCss(e)&&react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("style",{ref:function(e){return t.styleRef=e},className:"builder-custom-styles",dangerouslySetInnerHTML:{__html:t.getCss(e)}}),react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderStoreContext.Provider,{value:__assign(__assign({},t.state),{rootState:t.rootState,state:t.data,content:r,renderLink:t.props.renderLink})},o&&t.Component?react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(t.Component,{data:t.data,context:t.state.context}):react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderBlocks,{key:String(!!(null===(i=null==e?void 0:e.blocks)||void 0===i?void 0:i.length)),emailMode:t.props.emailMode,fieldName:"blocks",blocks:_}))):n?react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("div",{"data-builder-component":t.name,className:"builder-loading"},t.props.children):react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("div",{"data-builder-component":t.name,className:"builder-no-content"})}))})))})))},t.prototype.evalExpression=function(e){var t=this,n=this.data;return String(e).replace(/{{([^}]+)}}/g,(function(e,r){return tryEval(r,n,t._errors)}))},t.prototype.handleRequest=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a=this;return __generator(this,(function(s){return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isIframe&&fetchCache[t]?(this.updateState((function(n){n[e]=fetchCache[t]})),[2,fetchCache[t]]):(n=function(){return __awaiter(a,void 0,void 0,(function(){var n,r,i,o;return __generator(this,(function(a){switch(a.label){case 0:n=Date.now(),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser||console.time("Fetch "+t),a.label=1;case 1:return a.trys.push([1,4,5,6]),[4,fetch$1(t)];case 2:return[4,a.sent().json()];case 3:return r=a.sent(),[3,6];case 4:return i=a.sent(),o=toError(i),this._errors&&this._errors.push(o),this._logs&&this._logs.push("Fetch to ".concat(t," errored in ").concat(Date.now()-n,"ms")),[2];case 5:return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser||(console.timeEnd("Fetch "+t),this._logs&&this._logs.push("Fetched ".concat(t," in ").concat(Date.now()-n,"ms"))),[7];case 6:return r&&(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isIframe&&(fetchCache[t]=r),this.updateState((function(t){t[e]=r}))),[2,r]}}))}))},(r=this._asyncRequests&&this._asyncRequests.find((function(e){return isRequestInfo(e)&&e.url===t})))?((i=r.promise).then((function(t){t&&a.updateState((function(n){n[e]=t}))})),[2,i]):(o=n(),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.nextTick((function(){a._asyncRequests&&a._asyncRequests.push(o)})),[2,o]))}))}))},t.prototype.unsubscribe=function(){this.subscriptions&&(this.subscriptions.unsubscribe(),this.subscriptions=new _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.c)},t.prototype.handleBuilderRequest=function(e,t){var n=this,r=tryEval(t,this.data,this._errors);this.subscriptions&&this.unsubscribe(),r&&this.subscriptions.add(this.builder.queueGetContent(r.model,r).subscribe((function(t){t&&n.updateState((function(n){n[e]=t}))})))},t.defaults={codegen:Boolean(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&location.href.includes("builder.codegen=true"))},__decorate([debounceNextTick,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],t.prototype,"notifyStateChange",null),t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component);function BuilderBlock(e){return e.type="react",_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.Component(e)}function updateMetadata(e,t){var n=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.components.find((function(t){return"string"==typeof e?t.name===e:t.class===t}))||null,r=t(n);n&&r?_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.registerComponent(r.class||n.class,r):n&&!r||!n&&r&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.registerComponent(r.class,r)}function withBuilder(e,t){return BuilderBlock(t)(e),e}var withChildren=function(e){var t=react__WEBPACK_IMPORTED_MODULE_2__.default.forwardRef((function(t,n){var r=t.children||t.builderBlock&&t.builderBlock.children&&t.builderBlock.children.map((function(e){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderBlock$1,{key:e.id,block:e})}));return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(e,__assign({},t,{ref:n}),r)}));return t.builderOptions={canHaveChildren:!0},t},noWrap=function(e){var t=react__WEBPACK_IMPORTED_MODULE_2__.default.forwardRef((function(t,n){var r=__assign(__assign({},t),t.attributes);return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(e,__assign({},r,{ref:n}))}));return t.builderOptions={noWrap:!0},t},iconUrl="https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",TextComponent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.textRef=null,t}return __extends(t,e),t.prototype.componentDidUpdate=function(e){this.allowTextEdit&&(!this.textRef||"true"===this.textRef.contentEditable&&this.textRef===document.activeElement||this.props.text!==e.text&&(this.textRef.innerHTML=this.props.text))},t.prototype.componentDidMount=function(){this.textRef&&(this.textRef.innerHTML=this.props.text)},t.prototype.evalExpression=function(e,t){return String(e).replace(/{{([^}]+)}}/g,(function(e,n){return tryEval(n,t)}))},Object.defineProperty(t.prototype,"allowTextEdit",{get:function(){return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&location.search.includes("builder.allowTextEdit=true")&&!(this.props.builderBlock&&this.props.builderBlock.bindings&&(this.props.builderBlock.bindings["component.options.text"]||this.props.builderBlock.bindings["options.text"]||this.props.builderBlock.bindings.text))},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.allowTextEdit,n={outline:"none","& p:first-of-type, & .builder-paragraph:first-of-type":{margin:0},"& > p, & .builder-paragraph":{color:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit",fontSize:"inherit",textAlign:"inherit",fontFamily:"inherit"}};return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderStoreContext.Consumer,null,(function(r){var i;return(null===(i=r.content.meta)||void 0===i?void 0:i.rtlMode)&&(n.direction="rtl"),Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(react__WEBPACK_IMPORTED_MODULE_2__.default.Fragment,null,Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("span",__assign({ref:function(t){e.textRef=t},contentEditable:t||void 0,onInput:function(n){var r;t&&(null===(r=window.parent)||void 0===r||r.postMessage({type:"builder.textEdited",data:{id:e.props.builderBlock&&e.props.builderBlock.id,value:n.currentTarget.innerHTML}},"*"))},onKeyDown:function(n){t&&e.textRef&&27===n.which&&document.activeElement===e.textRef&&e.textRef.blur()},onFocus:function(n){var r;t&&(null===(r=window.parent)||void 0===r||r.postMessage({type:"builder.textFocused",data:{id:e.props.builderBlock&&e.props.builderBlock.id}},"*"))},onBlur:function(n){var r;t&&(null===(r=window.parent)||void 0===r||r.postMessage({type:"builder.textBlurred",data:{id:e.props.builderBlock&&e.props.builderBlock.id}},"*"))},css:n,className:"builder-text"},!t&&{dangerouslySetInnerHTML:{__html:e.evalExpression(e.props.text||e.props.content||"",r.state)}})))}))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Text=withBuilder(TextComponent,{name:"Text",static:!0,image:iconUrl,inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}});function Slot(e){var t=e.name,n=Object(react__WEBPACK_IMPORTED_MODULE_2__.useContext)(BuilderStoreContext),r=!n.context.symbolId;return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",__assign({css:{pointerEvents:"auto"}},r&&{"builder-slot":t}),Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlocks,{child:!0,parentElementId:n.context.symbolId,dataPath:"symbol.data.".concat(t),blocks:n.state[t]||[]}))}_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.registerComponent(Slot,{name:"Slot",description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]});var FragmentComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){return this.props.builderBlock&&this.props.builderBlock.children&&this.props.builderBlock.children.map((function(e,t){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderBlock$1,{block:e,key:e.id,index:t})}))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Fragment=withBuilder(FragmentComponent,{name:"Core:Fragment",canHaveChildren:!0,noWrap:!0,static:!0,hideFromInsertMenu:!0}),DEFAULT_ASPECT_RATIO$2=.7004048582995948,defaultBlocks=[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:DEFAULT_ASPECT_RATIO$2}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}],ColumnsComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"columns",{get:function(){return this.props.columns||[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gutterSize",{get:function(){return"number"==typeof this.props.space?this.props.space||0:20},enumerable:!1,configurable:!0}),t.prototype.getWidth=function(e){return this.columns[e]&&this.columns[e].width||100/this.columns.length},t.prototype.getColumnWidth=function(e){var t=this.columns,n=this.gutterSize*(t.length-1)/t.length;return"calc(".concat(this.getWidth(e),"% - ").concat(n,"px)")},t.prototype.render=function(){var e,t,n,r,i=this,o=this.columns,a=this.gutterSize,s=(null===(r=null===(n=null===(t=this.props.builderState)||void 0===t?void 0:t.context.builderContent)||void 0===n?void 0:n.meta)||void 0===r?void 0:r.breakpoints)||{},c=getSizesForBreakpoints(s);return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(react__WEBPACK_IMPORTED_MODULE_2__.default.Fragment,null,Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{className:"builder-columns",css:__assign({display:"flex"},"never"!==this.props.stackColumnsAt&&(e={},e["@media (max-width: ".concat("tablet"!==this.props.stackColumnsAt?c.small.max:c.medium.max,"px)")]={flexDirection:this.props.reverseColumnsWhenStacked?"column-reverse":"column",alignItems:"stretch"},e))},o.map((function(e,t){var n,r,o=e.link?Link:"div";return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(react__WEBPACK_IMPORTED_MODULE_2__.default.Fragment,{key:t},Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(o,__assign({className:"builder-column"},e.link?{href:e.link}:null,{css:__assign((n={display:"flex",flexDirection:"column",alignItems:"stretch",lineHeight:"normal"},n["& > .builder-blocks"]={flexGrow:1},n.width=i.getColumnWidth(t),n.marginLeft=0===t?0:a,n),"never"!==i.props.stackColumnsAt&&(r={},r["@media (max-width: ".concat("tablet"!==i.props.stackColumnsAt?c.small.max:c.medium.max,"px)")]={width:"100%",marginLeft:0},r))}),Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlocks,{key:t,child:!0,parentElementId:i.props.builderBlock&&i.props.builderBlock.id,blocks:e.blocks,dataPath:"component.options.columns.".concat(t,".blocks")})))}))))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Columns=withBuilder(ColumnsComponent,{name:"Columns",static:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:defaultBlocks},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:defaultBlocks},{blocks:defaultBlocks}],onChange:function(e){var t=e.get("columns");Array.isArray(t)&&(!t.find((function(e){return e.get("width")}))||(t.find((function(e){return!e.get("width")}))||100!==t.reduce((function(e,t){return e+t.get("width")}),0))&&t.forEach((function(e){e.delete("width")})))}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]}),EmbedComponent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elementRef=null,t.scriptsInserted=new Set,t.scriptsRun=new Set,t}return __extends(t,e),t.prototype.componentDidUpdate=function(e){this.props.content!==e.content&&this.findAndRunScripts()},t.prototype.componentDidMount=function(){this.findAndRunScripts()},t.prototype.findAndRunScripts=function(){if(this.elementRef&&"undefined"!=typeof window)for(var e=this.elementRef.getElementsByTagName("script"),t=0;t<e.length;t++){var n=e[t];if(n.src){if(this.scriptsInserted.has(n.src))continue;this.scriptsInserted.add(n.src);var r=document.createElement("script");r.async=!0,r.src=n.src,document.head.appendChild(r)}else{if(this.scriptsRun.has(n.innerText))continue;this.scriptsRun.add(n.innerText);try{new Function(n.innerText)()}catch(e){console.warn("Builder custom code component error:",e)}}}},Object.defineProperty(t.prototype,"content",{get:function(){return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isServer?(this.props.content||"").replace(/<script[\s\S]*?<\/script>/g,""):this.props.content},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("div",{ref:function(t){return e.elementRef=t},className:"builder-embed",dangerouslySetInnerHTML:{__html:this.content}})},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Embed=withBuilder(EmbedComponent,{name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:function(e){var t=e.get("url");if(t)return e.set("content","Loading..."),fetch("https://iframe.ly/api/iframely?url=".concat(t,"&api_key=").concat("ae0e60e78201a3f2b0de4b")).then((function(e){return e.json()})).then((function(n){e.get("url")===t&&(n.html?e.set("content",n.html):e.set("content","Invalid url, please try another"))})).catch((function(t){e.set("content","There was an error embedding this URL, please try again or another URL")}));e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]}),globalReplaceNodes={}||null,isShopify$1=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&"Shopify"in window;if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&globalReplaceNodes){var customCodeQuerySelector_1=".builder-custom-code";try{var allCustomCodeElements_1=Array.from(document.querySelectorAll(customCodeQuerySelector_1)),builderTemplates=document.querySelectorAll("template[data-template-variant-id]");builderTemplates.length&&Array.from(builderTemplates).forEach((function(e){var t=e.content.querySelectorAll(customCodeQuerySelector_1);t.length&&(allCustomCodeElements_1=allCustomCodeElements_1.concat(Array.from(t)))})),allCustomCodeElements_1.forEach((function(e){var t=e.parentElement,n=t&&t.getAttribute("builder-id");n&&(globalReplaceNodes[n]=globalReplaceNodes[n]||[],globalReplaceNodes[n].push(isShopify$1?e:e.cloneNode(!0)))}))}catch(e){console.error("Builder replace nodes error:",e)}}var CustomCodeComponent=function(e){function t(t){var n,r=this;if((r=e.call(this,t)||this).elementRef=null,r.originalRef=null,r.scriptsInserted=new Set,r.scriptsRun=new Set,r.firstLoad=!0,r.replaceNodes=!1,r.state={hydrated:!1},_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser){var i=null===(n=r.props.builderBlock)||void 0===n?void 0:n.id;if(r.replaceNodes=Boolean(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&(t.replaceNodes||isShopify$1)&&i&&(null==globalReplaceNodes?void 0:globalReplaceNodes[i])),r.firstLoad&&r.props.builderBlock)if(i&&(null==globalReplaceNodes?void 0:globalReplaceNodes[i])){var o=globalReplaceNodes[i].shift()||null;r.originalRef=o,0===globalReplaceNodes[i].length&&delete globalReplaceNodes[i]}else if(r.replaceNodes){var a=document.querySelectorAll(".".concat(r.props.builderBlock.id," .builder-custom-code"));if(1===a.length){var s=a[0];r.originalRef=s,r.originalRef.remove()}}}return r}return __extends(t,e),Object.defineProperty(t.prototype,"noReactRender",{get:function(){var e;return Boolean(isShopify$1&&(null===(e=this.props.code)||void 0===e?void 0:e.match(/{[{%]/g)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isHydrating",{get:function(){return!isShopify$1&&this.originalRef},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e){this.props.code!==e.code&&this.findAndRunScripts()},t.prototype.componentDidMount=function(){var e=this;this.firstLoad=!1,this.replaceNodes||(this.isHydrating?(this.setState({hydrated:!0}),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.nextTick((function(){return e.findAndRunScripts()}))):this.findAndRunScripts()),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&this.replaceNodes&&this.originalRef&&this.elementRef&&this.elementRef.appendChild(this.originalRef)},t.prototype.findAndRunScripts=function(){if(this.elementRef&&"undefined"!=typeof window)for(var e=this.elementRef.getElementsByTagName("script"),t=0;t<e.length;t++){var n=e[t];if(n.src){if(this.scriptsInserted.has(n.src))continue;this.scriptsInserted.add(n.src);var r=document.createElement("script");r.async=!0,r.src=n.src,document.head.appendChild(r)}else if(!n.type||["text/javascript","application/javascript","application/ecmascript"].includes(n.type)){if(this.scriptsRun.has(n.innerText))continue;try{this.scriptsRun.add(n.innerText),new Function(n.innerText)()}catch(e){console.warn("Builder custom code component error:",e)}}}},Object.defineProperty(t.prototype,"code",{get:function(){return(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isServer||this.isHydrating&&this.firstLoad)&&this.props.scriptsClientOnly?(this.props.code||"").replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,""):this.props.code},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("div",__assign({ref:function(t){return e.elementRef=t},className:"builder-custom-code"},!this.replaceNodes&&!this.noReactRender&&{dangerouslySetInnerHTML:{__html:this.code}}))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),CustomCode=withBuilder(CustomCodeComponent,{name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},__assign({name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},isShopify$1&&{defaultValue:!0}),__assign({name:"scriptsClientOnly",type:"boolean",helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0},!isShopify$1&&{defaultValue:!0})]});function removeProtocol(e){return e.replace(/http(s)?:/,"")}function isElementInViewport(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function getShopifyImageUrl(e,t){if(!e||!(null==e?void 0:e.match(/cdn\.shopify\.com/))||!t)return e;if("master"===t)return removeProtocol(e);var n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){var r=e.split(n[0]),i=n[3],o=t.match("x")?t:"".concat(t,"x");return removeProtocol("".concat(r[0],"_").concat(o).concat(i))}return null}var DEFAULT_ASPECT_RATIO$1=.7041;function updateQueryParam(e,t,n){void 0===e&&(e="");var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+i+t+"="+encodeURIComponent(n)}function getSrcSet(e){if(!e)return e;var t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){var n=e,r=Number(e.split("?width=")[1]);return isNaN(r)||(n="".concat(n," ").concat(r,"w")),t.filter((function(e){return e!==r})).map((function(t){return"".concat(updateQueryParam(e,"width",t)," ").concat(t,"w")})).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map((function(t){return[getShopifyImageUrl(e,"".concat(t,"x").concat(t)),t]})).filter((function(e){return!!e[0]})).map((function(e){var t=e[0],n=e[1];return"".concat(t," ").concat(n,"w")})).concat([e]).join(", "):e}var getSizes=function(e,t,n){var r,i,o,a,s,c,u,l;void 0===n&&(n={});var _="";if(e){var d=e.split(","),p=d.length;_=d.map((function(e,t){return p===t+1?e.replace(/\([\s\S]*?\)/g,"").trim():e})).join(", ")}else if(t&&t.responsiveStyles){var f=[],h=!1,m=/^\d+/,b=getSizesForBreakpoints(n);if(null===(o=null===(i=null===(r=t.responsiveStyles)||void 0===r?void 0:r.small)||void 0===i?void 0:i.width)||void 0===o?void 0:o.match(m)){h=!0;var v="(max-width: ".concat(b.small.max,"px)"),g="".concat(v," ").concat(t.responsiveStyles.small.width.replace("%","vw"));f.push(g)}if((null===(c=null===(s=null===(a=t.responsiveStyles)||void 0===a?void 0:a.medium)||void 0===s?void 0:s.width)||void 0===c?void 0:c.match(m))&&(h=!0,v="(max-width: ".concat(b.medium.max,"px)"),g="".concat(v," ").concat(t.responsiveStyles.medium.width.replace("%","vw")),f.push(g)),null===(l=null===(u=t.responsiveStyles)||void 0===u?void 0:u.large)||void 0===l?void 0:l.width){var y=t.responsiveStyles.large.width.replace("%","vw");f.push(y)}else h&&f.push("100vw");f.length&&(_=f.join(", "))}return _},ImageComponent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={imageLoaded:!t.useLazyLoading,load:!t.useLazyLoading},t.pictureRef=null,t.scrollListener=null,t.intersectionObserver=null,t}return __extends(t,e),Object.defineProperty(t.prototype,"useLazyLoading",{get:function(){return(!_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser||!location.search.includes("builder.lazyLoadImages=false"))&&(!(!_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser||!location.href.includes("builder.lazyLoadImages=true"))||this.props.lazy)},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&(this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null),this.intersectionObserver&&this.pictureRef&&this.intersectionObserver.unobserve(this.pictureRef))},t.prototype.componentDidMount=function(){var e=this;if(this.props.lazy&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser)if(this.pictureRef&&isElementInViewport(this.pictureRef))this.setState({load:!0});else if("function"==typeof IntersectionObserver&&this.pictureRef)(this.intersectionObserver=new IntersectionObserver((function(t,n){t.forEach((function(t){t.intersectionRatio>0&&(e.setState({load:!0}),e.pictureRef&&n.unobserve(e.pictureRef))}))}))).observe(this.pictureRef);else{var t=throttle((function(n){if(e.pictureRef){var r=e.pictureRef.getBoundingClientRect(),i=window.innerHeight/2;r.top<window.innerHeight+i&&(e.setState(__assign(__assign({},e.state),{load:!0})),window.removeEventListener("scroll",t),e.scrollListener=null)}}),400,{leading:!1,trailing:!0});this.scrollListener=t,window.addEventListener("scroll",t,{capture:!0,passive:!0}),t()}},Object.defineProperty(t.prototype,"image",{get:function(){return this.props.image||this.props.src},enumerable:!1,configurable:!0}),t.prototype.getSrcSet=function(){var e=this.image;if(e&&(e.match(/builder\.io/)||e.match(/cdn\.shopify\.com/)))return getSrcSet(e)},t.prototype.render=function(){var e,t,n=this,r=this.props,i=r.aspectRatio,o=r.lazy,a=r.builderBlock,s=r.builderState,c=this.props.builderBlock&&this.props.builderBlock.children,u=this.props.srcset,l=getSizes(this.props.sizes,a,(null===(t=null===(e=null==s?void 0:s.context.builderContent)||void 0===e?void 0:e.meta)||void 0===t?void 0:t.breakpoints)||{}),_=this.image;u&&_&&_.includes("builder.io/api/v1/image")?u.includes(_.split("?")[0])||(console.debug("Removed given srcset"),u=this.getSrcSet()):_&&!u&&(u=this.getSrcSet());var d=null==a?void 0:a.id.startsWith("builder-pixel-"),p=this.props.fitContent;return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderMetaContext.Consumer,null,(function(e){var t,r=e.ampMode,a=r?"amp-img":"img",s=(!o||n.state.load||r)&&Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(a,__assign({},r?{layout:"responsive",height:n.props.height||(i?Math.round(1e3*i):void 0),width:n.props.width||(i?Math.round(1e3/i):void 0)}:null,{alt:n.props.altText,key:_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&"string"==typeof n.image&&n.image.split("?")[0]||void 0,role:n.props.altText?void 0:"presentation",css:__assign(__assign({opacity:r?1:n.useLazyLoading&&!n.state.imageLoaded?0:1,transition:"opacity 0.2s ease-in-out",objectFit:n.props.backgroundSize||"cover",objectPosition:n.props.backgroundPosition||"center"},i&&!r&&{position:"absolute",height:"100%",width:"100%",left:0,top:0}),r&&(t={},t["& img"]={objectFit:n.props.backgroundSize,objectPosition:n.props.backgroundPosition},t)),loading:d?"eager":"lazy",className:"builder-image"+(n.props.className?" "+n.props.className:""),src:n.image},!r&&{onLoad:function(){return n.setState({imageLoaded:!0})}},{srcSet:u,sizes:!r&&l?l:void 0}));return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(react__WEBPACK_IMPORTED_MODULE_2__.default.Fragment,null,r?s:Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("picture",{ref:function(e){return n.pictureRef=e}},u&&u.match(/builder\.io/)&&!n.props.noWebp&&Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("source",{srcSet:u.replace(/\?/g,"?format=webp&"),type:"image/webp"}),s),!i||r||p&&c&&c.length?null:Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{className:"builder-image-sizer",css:{width:"100%",paddingTop:100*i+"%",pointerEvents:"none",fontSize:0}}," "),c&&c.length?p?c.map((function(e,t){return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlock$1,{key:e.id,block:e})})):Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{css:{display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:0,left:0,width:"100%",height:"100%"}},c.map((function(e,t){return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlock$1,{key:e.id,block:e})}))):null)}))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Image=withBuilder(ImageComponent,{name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:function(e){e.delete("srcset"),e.delete("noWebp");var t,n,r=e.get("image"),i=e.get("aspectRatio");if(fetch(r).then((function(e){return e.blob()})).then((function(t){t.type.includes("svg")&&e.set("noWebp",!0)})),r&&(!i||.7041===i))return(t=r,void 0===n&&(n=6e4),new Promise((function(e,r){var i=document.createElement("img"),o=!1;i.onload=function(){o=!0,e(i)},i.addEventListener("error",(function(e){console.warn("Image load failed",e.error),r(e.error)})),i.src=t,setTimeout((function(){o||r(new Error("Image load timed out"))}),n)}))).then((function(t){var n,i=e.get("aspectRatio");e.get("image")!==r||i&&.7041!==i||t.width&&t.height&&(e.set("aspectRatio",(n=t.height/t.width,Math.round(1e3*n)/1e3)),e.set("height",t.height),e.set("width",t.width))}))}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill its box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:DEFAULT_ASPECT_RATIO$1}]}),DEFAULT_ASPECT_RATIO=.7004048582995948,VideoComponent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.video=null,t.containerRef=null,t.scrollListener=null,t.state={load:!t.lazyLoad},t}return __extends(t,e),Object.defineProperty(t.prototype,"lazyLoad",{get:function(){return!1!==this.props.lazyLoad},enumerable:!1,configurable:!0}),t.prototype.updateVideo=function(){var e=this,t=this.video;t&&["muted","playsInline","autoPlay"].forEach((function(n){var r=n.toLowerCase();e.props[n]?t.setAttribute(r,r):t.removeAttribute(r)}))},t.prototype.componentDidUpdate=function(){this.updateVideo()},t.prototype.componentDidMount=function(){var e=this;if(this.updateVideo(),this.lazyLoad&&_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser){var t=throttle((function(n){if(e.containerRef){var r=e.containerRef.getBoundingClientRect(),i=window.innerHeight/2;r.top<window.innerHeight+i&&(e.setState((function(e){return __assign(__assign({},e),{load:!0})})),window.removeEventListener("scroll",t),e.scrollListener=null)}}),400,{leading:!1,trailing:!0});this.scrollListener=t,window.addEventListener("scroll",t,{capture:!0,passive:!0}),t()}},t.prototype.componentWillUnmount=function(){_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},t.prototype.render=function(){var e=this,t=this.props,n=t.aspectRatio,r=t.children;return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{ref:function(t){return e.containerRef=t},css:{position:"relative"}},Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("video",{key:this.props.video||"no-src",poster:this.props.posterImage,ref:function(t){return e.video=t},autoPlay:this.props.autoPlay,muted:this.props.muted,controls:this.props.controls,loop:this.props.loop,className:"builder-video",css:__assign({width:"100%",height:"100%",objectFit:this.props.fit,objectPosition:this.props.position,zIndex:2,borderRadius:1},n?{position:"absolute"}:null)},(!this.lazyLoad||this.state.load)&&Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("source",{type:"video/mp4",src:this.props.video})),!n||this.props.fitContent&&r?null:Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{css:{width:"100%",paddingTop:100*n+"%",pointerEvents:"none",fontSize:0}}),r&&this.props.fitContent?Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{css:{display:"flex",flexDirection:"column",alignItems:"stretch"}},r):r?Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{css:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:0,left:0,width:"100%",height:"100%"}},r):null)},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Video=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.registerComponent(withChildren(VideoComponent),{name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:DEFAULT_ASPECT_RATIO},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]}),size=function(e){return Object.keys(e).length},isShopify=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&"Shopify"in window,refs={};if(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser)try{Array.from(document.querySelectorAll("[builder-static-symbol]")).forEach((function(e){var t=e.getAttribute("builder-static-symbol");t&&(refs[t]=e)}))}catch(e){console.error("Builder replace nodes error:",e)}var SymbolComponent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ref=null,t.staticRef=null,t}return __extends(t,e),Object.defineProperty(t.prototype,"placeholder",{get:function(){return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{css:{padding:10}},"Symbols let you reuse dynamic elements across your content. Please choose a model and entry for this symbol.")},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e,t,n;this.useStatic&&this.staticRef&&refs[null===(e=this.props.builderBlock)||void 0===e?void 0:e.id]&&(null===(t=this.staticRef.parentNode)||void 0===t||t.replaceChild(refs[null===(n=this.props.builderBlock)||void 0===n?void 0:n.id],this.staticRef))},Object.defineProperty(t.prototype,"useStatic",{get:function(){var e;return Boolean(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isBrowser&&refs[null===(e=this.props.builderBlock)||void 0===e?void 0:e.id]&&!(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isPreviewing))},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this;if(this.useStatic)return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{ref:function(e){return t.staticRef=e}});var n=this.props.symbol,r=!1;n||(r=!0);var i=this.props.dataOnly?NoWrap:this.props.builderBlock&&this.props.builderBlock.tagName||"div",o=n||{},a=o.model,s=o.entry,c=o.data,u=o.content,l=o.inline,_=(null==n?void 0:n.dynamic)||this.props.dynamic;a&&(s||_)||(null===(e=null==u?void 0:u.data)||void 0===e?void 0:e.blocksJs)||l||(r=!0);var d=_?void 0:[a,s].join(":"),p=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing?null:c&&size(c)&&hash_sum__WEBPACK_IMPORTED_MODULE_3___default()(c);d&&p&&p.length<300&&(d+=":"+p);var f=this.props.attributes||{};return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderStoreContext.Consumer,{key:(a||"no model")+":"+(s||"no entry")},(function(e){var o,l,_,p,h,m,b,v,g,y;return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(i,__assign({"data-model":a},f,{className:(f.class||f.className||"")+" builder-symbol"+((null==n?void 0:n.inline)?" builder-inline-symbol":"")+((null==n?void 0:n.dynamic)||t.props.dynamic?" builder-dynamic-symbol":"")}),r?t.placeholder:Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderComponent,__assign({},(null===(o=e.state)||void 0===o?void 0:o.locale)&&{locale:e.state.locale},{isChild:!0,ref:function(e){return t.ref=e},context:__assign(__assign({},e.context),{symbolId:null===(l=t.props.builderBlock)||void 0===l?void 0:l.id}),modelName:a,entry:s,data:__assign(__assign(__assign({},c),!!t.props.inheritState&&e.state),null===(v=null===(b=null===(m=null===(h=null===(p=null===(_=t.props.builderBlock)||void 0===_?void 0:_.component)||void 0===p?void 0:p.options)||void 0===h?void 0:h.symbol)||void 0===m?void 0:m.content)||void 0===b?void 0:b.data)||void 0===v?void 0:v.state),renderLink:e.renderLink,inlineContent:null==n?void 0:n.inline},u&&{content:u},{options:{key:d,noEditorUpdates:!0},codegen:!!(null===(g=null==u?void 0:u.data)||void 0===g?void 0:g.blocksJs),hydrate:null===(y=e.state)||void 0===y?void 0:y._hydrate,builderBlock:t.props.builderBlock,dataOnly:t.props.dataOnly}),t.props.children))}))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Symbol$1=withBuilder(SymbolComponent,{name:"Symbol",noWrap:!0,static:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:isShopify,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:isShopify,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]}),ButtonComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props.link?Link:"span";return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(e,__assign({role:"button",href:this.props.link,target:this.props.openLinkInNewTab?"_blank":void 0},this.props.attributes),this.props.text)},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Button=withBuilder(ButtonComponent,{name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0}),SectionComponent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ref=null,t.unmountCallbacks=[],t.state={inView:!1},t}return __extends(t,e),Object.defineProperty(t.prototype,"renderContents",{get:function(){return!0!==this.props.lazyLoad||this.state.inView},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){this.unmountCallbacks.forEach((function(e){return e()}))},t.prototype.componentDidMount=function(){var e=this;if(this.props.lazyLoad)if("undefined"!=typeof IntersectionObserver&&this.ref){var t=new IntersectionObserver((function(t,n){t.forEach((function(t){t.intersectionRatio>0&&(e.setState({inView:!0}),e.ref&&n.unobserve(e.ref))}))}),{rootMargin:"10px"});t.observe(this.ref),this.unmountCallbacks.push((function(){e.ref&&t.unobserve(e.ref)}))}else this.setState({inView:!0})},t.prototype.render=function(){var e=this;return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("section",{ref:function(t){return e.ref=t},css:__assign({width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:this.props.maxWidth,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},this.renderContents?null:this.props.lazyStyles)},this.renderContents?Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(react__WEBPACK_IMPORTED_MODULE_2__.default.Fragment,null,this.props.children,this.props.builderBlock&&this.props.builderBlock.children&&this.props.builderBlock.children.map((function(e,t){return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlock$1,{key:e.id,block:e})}))):null)},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Section=withBuilder(SectionComponent,{name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]}),StateProviderComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderStoreContext.Consumer,null,(function(t){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderStoreContext.Provider,{value:__assign(__assign({},t),{state:__assign(__assign({},t.state),e.props.state),context:__assign(__assign({},t.context),e.props.context)})},e.props.builderBlock&&e.props.builderBlock.children&&e.props.builderBlock.children.map((function(e,t){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderBlock$1,{block:e,key:e.id,index:t,child:!0})})),e.props.children)}))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),StateProvider=withBuilder(StateProviderComponent,{name:"Builder:StateProvider",canHaveChildren:!0,static:!0,noWrap:!0,hideFromInsertMenu:!0}),prefetched=new Set;function searchToObject(e){var t=(e.search||"").substring(1).split("&"),n={};for(var r in t)if(t[r]&&"string"==typeof t[r]){var i=t[r].split("=");n[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return n}var RouterComponent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.builder=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d,t.routed=!1,t.preloadQueue=0,t.onPopState=function(e){t.updateLocationState()},t.onMouseOverOrTouchStart=function(e){if(!(t.preloadQueue>4)&&!1!==t.props.preloadOnHover){var n=t.findHrefTarget(e);if(n){var r=n.getAttribute("href");if(r){if(!t.isRelative(r)){var i=t.convertToRelative(r);if(!i)return;r=i}if(!r.startsWith("#")&&!prefetched.has(r)){prefetched.add(r);var o=t.parseUrl(r);t.preloadQueue++;var a=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.getUserAttributes();a.urlPath=o.pathname,a.queryString=o.search;var s=_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.get(t.model,{userAttributes:a,key:t.model+":"+o.pathname+o.search}).subscribe((function(){t.preloadQueue--,s.unsubscribe()}))}}}}},t.onClick=function(e){return __awaiter(t,void 0,void 0,(function(){var t,n,r,i;return __generator(this,(function(o){if(!1===this.props.handleRouting)return[2];if(0!==e.button||e.ctrlKey||e.defaultPrevented||e.metaKey)return[2];if(!(t=this.findHrefTarget(e)))return[2];if(t.target&&"_client"!==t.target)return[2];if(!(n=t.getAttribute("href")))return[2];if(this.props.onRoute&&(r={url:n,anchorNode:t,preventDefault:function(){this.defaultPrevented=!0},defaultPrevented:!1},this.props.onRoute(r),r.defaultPrevented))return[2];if(!this.isRelative(n)){if(!(i=this.convertToRelative(n)))return[2];n=i}return n.startsWith("#")||(e.preventDefault(),this.route(n)),[2]}))}))},t.privateState=null,t}return __extends(t,e),t.prototype.route=function(e){var t;return this.routed=!0,"function"==typeof(null===(t=window.history)||void 0===t?void 0:t.pushState)?(history.pushState(null,"",e),this.updateLocationState(),!0):(location.href=e,!1)},t.prototype.updateLocationState=function(){this.privateState&&this.privateState.update((function(e){e.location=__assign(__assign({},e.location),{pathname:location.pathname,search:location.search,path:location.pathname.split("/").slice(1),query:searchToObject(location)})}))},Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model||"page"},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){"undefined"!=typeof document&&(document.addEventListener("click",this.onClick),window.addEventListener("popstate",this.onPopState),document.addEventListener("mouseover",this.onMouseOverOrTouchStart),document.addEventListener("touchstart",this.onMouseOverOrTouchStart))},t.prototype.componentWillUnmount=function(){"undefined"!=typeof document&&(document.removeEventListener("click",this.onClick),document.removeEventListener("mouseover",this.onMouseOverOrTouchStart),window.removeEventListener("popstate",this.onPopState),document.removeEventListener("touchstart",this.onMouseOverOrTouchStart))},t.prototype.render=function(){var e=this,t=this.model;return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderStoreContext.Consumer,null,(function(n){e.privateState=n;var r=n.state&&n.state.location&&n.state.location.pathname+n.state.location.search;return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{className:"builder-router","data-model":t},Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("style",null,"\n @keyframes builderLoadingSpinner {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n /* TODO: overridable tag */\n .builder-page-loading {\n -webkit-animation: builderLoadingSpinner 1s infinite linear;\n animation: builderLoadingSpinner 1s infinite linear;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n border-radius: 50%;\n width: 36px;\n height: 36px;\n margin: 6px auto;\n position: relative;\n border: 1px solid transparent;\n border-left: 1px solid #808284;\n }\n "),Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderComponent,{key:r,data:e.props.data,content:e.routed?void 0:e.props.content,modelName:t,options:{key:_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing?void 0:e.model+":"+r}},e.props.children||Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{css:{display:"flex"}},Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("div",{css:{margin:"40vh auto"},className:"builder-page-loading"}))))}))},t.prototype.findHrefTarget=function(e){for(var t=e.target;t;){if(t instanceof HTMLAnchorElement&&t.getAttribute("href"))return t;if(t===e.currentTarget)break;t=t.parentElement}return null},t.prototype.isRelative=function(e){return!e.match(/^(\/\/|https?:\/\/)/i)},t.prototype.parseUrl=function(e){var t=document.createElement("a");return t.href=e,t},t.prototype.convertToRelative=function(e){var t=this.parseUrl(location.href),n=this.parseUrl(e);if(t.host===n.host){var r=n.pathname+(n.search?n.search:"");return r.startsWith("#")?null:r||"/"}return null},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Router=withBuilder(RouterComponent,{name:"Core:Router",hideFromInsertMenu:!0,inputs:[{name:"model",type:"string",defaultValue:"page",advanced:!0},{name:"handleRouting",type:"boolean",defaultValue:!0,advanced:!0},{name:"preloadOnHover",type:"boolean",defaultValue:!0,advanced:!0},{name:"onRoute",type:"function",advanced:!0}]});function Mutation(e){var t,n,r=react__WEBPACK_IMPORTED_MODULE_2__.default.useRef(null);useWaitForSelector(e.selector,(function(t){"afterEnd"!==e.type&&(t.innerHTML=""),t.appendChild(r.current.firstElementChild)}));var i=null===(t=e.builderBlock)||void 0===t?void 0:t.children;return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("span",{style:{display:"none"},ref:r},Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlocks,{style:{display:"inline"},child:!0,parentElementId:null===(n=e.builderBlock)||void 0===n?void 0:n.id,dataPath:"this.children",blocks:i}))}function useWaitForSelector(e,t){react__WEBPACK_IMPORTED_MODULE_2__.default.useLayoutEffect((function(){try{var n=document.querySelector(e);if(n)return void t(n)}catch(e){console.warn(e)}var r=new MutationObserver((function(){try{var n=document.querySelector(e);n&&(r.disconnect(),t(n))}catch(e){console.warn(e)}}));return r.observe(document.body,{attributes:!0,subtree:!0,characterData:!0}),function(){r.disconnect()}}),[e])}_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.registerComponent(Mutation,{name:"Builder:Mutation",canHaveChildren:!0,noWrap:!0,hideFromInsertMenu:!0,inputs:[{name:"type",type:"string",defaultValue:"replace",enum:[{label:"Replace",value:"replace",helperText:"Replace the contents of this site region with content from Builder"},{label:"Append",value:"afterEnd",helperText:"Append Builder content after the chosen site region"}]},{name:"selector",type:"builder:domSelector"}]});var get=function(e,t,n){var r=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((function(e,t){return null!=e?e[t]:e}),e);return void 0===r||r===e?n:r},MULTIPART_CONTENT_TYPE="multipart/form-data",JSON_CONTENT_TYPE="application/json",ENCODED_CONTENT_TYPE="application/x-www-form-urlencoded",FormComponent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ref=null,t.state={state:"unsubmitted",responseData:null,formErrorMessage:""},t}return __extends(t,e),Object.defineProperty(t.prototype,"submissionState",{get:function(){return _builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&this.props.previewState||this.state.state},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderStoreContext.Consumer,null,(function(t){return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderStoreContext.Provider,{value:__assign(__assign({},t),{state:__assign(__assign({},t.state),{formErrorMessage:e.state.formErrorMessage})})},Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("form",__assign({validate:e.props.validate,ref:function(t){return e.ref=t},action:!e.props.sendWithJs&&e.props.action,method:e.props.method,name:e.props.name,onSubmit:function(t){var n,r=e.props.sendWithJs||"email"===e.props.sendSubmissionsTo;if("zapier"===e.props.sendSubmissionsTo)t.preventDefault();else if(r){if(!e.props.action&&"email"!==e.props.sendSubmissionsTo)return void t.preventDefault();t.preventDefault();var i=t.currentTarget,o=e.props.customHeaders||{},a=void 0,s=new FormData(i),c=Array.from(t.currentTarget.querySelectorAll("input,select,textarea")).filter((function(e){return!!e.name})).map((function(e){var t,n=e.name;if(e instanceof HTMLInputElement)if("radio"===e.type){if(e.checked)return{key:n,value:t=e.name}}else if("checkbox"===e.type)t=e.checked;else if("number"===e.type||"range"===e.type){var r=e.valueAsNumber;isNaN(r)||(t=r)}else t="file"===e.type?e.files:e.value;else t=e.value;return{key:n,value:t}})),u=e.props.contentType;if("email"===e.props.sendSubmissionsTo&&(u=MULTIPART_CONTENT_TYPE),Array.from(c).forEach((function(e){var t=e.value;(t instanceof File||Array.isArray(t)&&t[0]instanceof File||t instanceof FileList)&&(u=MULTIPART_CONTENT_TYPE)})),u===MULTIPART_CONTENT_TYPE)a=s;else if(u===JSON_CONTENT_TYPE){var l={};Array.from(c).forEach((function(e){var t=e.value,n=e.key;set(l,n,t)})),a=JSON.stringify(l)}else{if(u!==ENCODED_CONTENT_TYPE)return void console.error("Unsupported content type: ",u);a=Array.from(c).map((function(e){var t=e.value,n=e.key;return encodeURIComponent(n)+"="+encodeURIComponent(t)})).join("&")}u&&u!==MULTIPART_CONTENT_TYPE&&(r&&(null===(n=e.props.action)||void 0===n?void 0:n.includes("zapier.com"))||(o["content-type"]=u));var _=new CustomEvent("presubmit",{detail:{body:a}});if(e.ref&&(e.ref.dispatchEvent(_),_.defaultPrevented))return;e.setState(__assign(__assign({},e.state),{state:"sending"}));var d="".concat("dev"===_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.env?"http://localhost:5000":"https://builder.io","/api/v1/form-submit?apiKey=").concat(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.d.apiKey,"&to=").concat(btoa(e.props.sendSubmissionsToEmail||""),"&name=").concat(encodeURIComponent(e.props.name||""));fetch("email"===e.props.sendSubmissionsTo?d:e.props.action,{body:a,headers:o,method:e.props.method||"post"}).then((function(t){return __awaiter(e,void 0,void 0,(function(){var e,n,r,i,o;return __generator(this,(function(a){switch(a.label){case 0:return(n=t.headers.get("content-type"))&&-1!==n.indexOf(JSON_CONTENT_TYPE)?[4,t.json()]:[3,2];case 1:return e=a.sent(),[3,4];case 2:return[4,t.text()];case 3:e=a.sent(),a.label=4;case 4:if(!t.ok&&this.props.errorMessagePath&&(r=get(e,this.props.errorMessagePath))&&("string"!=typeof r&&(r=JSON.stringify(r)),this.setState(__assign(__assign({},this.state),{formErrorMessage:r}))),this.setState(__assign(__assign({},this.state),{responseData:e,state:t.ok?"success":"error"})),t.ok){if(i=new CustomEvent("submit:success",{detail:{res:t,body:e}}),this.ref){if(this.ref.dispatchEvent(i),i.defaultPrevented)return[2];!1!==this.props.resetFormOnSubmit&&this.ref.reset()}this.props.successUrl&&(this.ref?(o=new CustomEvent("route",{detail:{url:this.props.successUrl}}),this.ref.dispatchEvent(o),o.defaultPrevented||(location.href=this.props.successUrl)):location.href=this.props.successUrl)}return[2]}}))}))}),(function(t){var n=new CustomEvent("submit:error",{detail:{error:t}});e.ref&&(e.ref.dispatchEvent(n),n.defaultPrevented)||e.setState(__assign(__assign({},e.state),{responseData:t,state:"error"}))}))}}},e.props.attributes),e.props.builderBlock&&e.props.builderBlock.children&&e.props.builderBlock.children.map((function(e,t){return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlock$1,{key:e.id,block:e})})),"error"===e.submissionState&&Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlocks,{dataPath:"errorMessage",blocks:e.props.errorMessage}),"sending"===e.submissionState&&Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlocks,{dataPath:"sendingMessage",blocks:e.props.sendingMessage}),"error"===e.submissionState&&e.state.responseData&&Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)("pre",{className:"builder-form-error-text",css:{padding:10,color:"red",textAlign:"center"}},JSON.stringify(e.state.responseData,null,2)),"success"===e.submissionState&&Object(_emotion_core__WEBPACK_IMPORTED_MODULE_1__.c)(BuilderBlocks,{dataPath:"successMessage",blocks:e.props.successMessage})))}))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Form=withBuilder(FormComponent,{name:"Form:Form",defaults:{responsiveStyles:{large:{marginTop:"15px",paddingBottom:"15px"}}},image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fef36d2a846134910b64b88e6d18c5ca5",inputs:[{name:"sendSubmissionsTo",type:"string",enum:[{label:"Send to email",value:"email",helperText:"Send form submissions to the email address of your choosing"},{label:"Custom",value:"custom",helperText:"Handle where the form requests go manually with a little code, e.g. to your own custom backend"}],defaultValue:"email"},{name:"sendSubmissionsToEmail",type:"string",required:!0,defaultValue:"[email protected]",showIf:'options.get("sendSubmissionsTo") === "email"'},{name:"sendWithJs",type:"boolean",helperText:"Set to false to use basic html form action",defaultValue:!0,showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"name",type:"string",defaultValue:"My form"},{name:"action",type:"string",helperText:"URL to send the form data to",showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"contentType",type:"string",defaultValue:JSON_CONTENT_TYPE,advanced:!0,enum:[JSON_CONTENT_TYPE,MULTIPART_CONTENT_TYPE,ENCODED_CONTENT_TYPE],showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'},{name:"method",type:"string",showIf:'options.get("sendSubmissionsTo") === "custom"',defaultValue:"POST",advanced:!0},{name:"previewState",type:"string",enum:["unsubmitted","sending","success","error"],defaultValue:"unsubmitted",helperText:'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"successUrl",type:"url",helperText:"Optional URL to redirect the user to on form submission success",showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"resetFormOnSubmit",type:"boolean",showIf:function(e){return"custom"===e.get("sendSubmissionsTo")&&!0===e.get("sendWithJs")},advanced:!0},{name:"successMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Thanks!</span>"}}}]},{name:"validate",type:"boolean",defaultValue:!0,advanced:!0},{name:"errorMessagePath",type:"text",advanced:!0,helperText:'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'},{name:"errorMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},bindings:{"component.options.text":"state.formErrorMessage || block.component.options.text"},component:{name:"Text",options:{text:"<span>Form submission error :( Please check your answers and try again</span>"}}}]},{name:"sendingMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Sending...</span>"}}}]},__assign(__assign({name:"customHeaders",type:"map"},{valueType:{type:"string"}}),{advanced:!0,showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'})],noWrap:!0,canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your name</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"name",placeholder:"Jane Doe"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your email</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"email",placeholder:"[email protected]"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:SubmitButton",options:{text:"Submit"}}}]}),FormInputComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("input",__assign({key:_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&this.props.defaultValue?this.props.defaultValue:"default-key",placeholder:this.props.placeholder,type:this.props.type,name:this.props.name,value:this.props.value,defaultValue:this.props.defaultValue,required:this.props.required},this.props.attributes))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),FormInput=withBuilder(FormInputComponent,{name:"Form:Input",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",inputs:[{name:"type",type:"text",enum:["text","number","email","url","checkbox","radio","range","date","datetime-local","search","tel","time","file","month","week","password","color","hidden"],defaultValue:"text"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it takes, e.g. "email"'},{name:"placeholder",type:"string",defaultValue:"Hello there",helperText:"Text to display when there is no value"},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",helperText:"Is this input required to be filled out to submit a form",defaultValue:!1}],noWrap:!0,static:!0,defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"}}),FormSubmitButtonComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("button",__assign({type:"submit"},this.props.attributes),this.props.text)},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),FormSubmitButton=withBuilder(FormSubmitButtonComponent,{name:"Form:SubmitButton",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#3898EC",color:"white",borderRadius:"4px",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me"}],static:!0,noWrap:!0}),LabelComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("label",__assign({htmlFor:this.props.for},this.props.attributes),this.props.text&&react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("span",{className:"builder-label-text",dangerouslySetInnerHTML:{__html:this.props.text}}),this.props.builderBlock&&this.props.builderBlock.children&&this.props.builderBlock.children.map((function(e){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement(BuilderBlock$1,{key:e.id,block:e})})))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Label=withBuilder(LabelComponent,{name:"Form:Label",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F9322342f04b545fb9a8091cd801dfb5b",inputs:[{name:"text",type:"html",richText:!0,defaultValue:"Label"},{name:"for",type:"text",helperText:"The name of the input this label is for",advanced:!0}],noWrap:!0,static:!0,canHaveChildren:!0}),FormSelectComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props.options;return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("select",__assign({value:this.props.value,key:_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing&&this.props.defaultValue?this.props.defaultValue:"default-key",defaultValue:this.props.defaultValue,name:this.props.name},this.props.attributes),e&&e.map((function(e){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("option",{value:e.value},e.name||e.value)})))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),FormSelect=withBuilder(FormSelectComponent,{name:"Form:Select",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",defaultStyles:{alignSelf:"flex-start"},inputs:[{name:"options",type:"list",required:!0,subFields:[{name:"value",type:"text",required:!0},{name:"name",type:"text"}],defaultValue:[{value:"option 1"},{value:"option 2"}]},{name:"name",type:"string",required:!0,helperText:'Every select in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",defaultValue:!1}],static:!0,noWrap:!0}),TextAreaComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("textarea",__assign({placeholder:this.props.placeholder,name:this.props.name,value:this.props.value,defaultValue:this.props.defaultValue},this.props.attributes))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),TextArea=withBuilder(TextAreaComponent,{name:"Form:TextArea",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",inputs:[{advanced:!0,name:"value",type:"string"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"placeholder",type:"string",defaultValue:"Hello there"},{name:"required",type:"boolean",defaultValue:!1}],defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"},static:!0,noWrap:!0}),ImgComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props.attributes||{};return react__WEBPACK_IMPORTED_MODULE_2__.default.createElement("img",__assign({},this.props.attributes,{src:this.props.image||e.src}))},t}(react__WEBPACK_IMPORTED_MODULE_2__.default.Component),Img=withBuilder(ImgComponent,{name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg"],required:!0}],noWrap:!0,static:!0}),RawText=function(e){var t=e.attributes||{};return react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{className:(null==t?void 0:t.class)||(null==t?void 0:t.className),dangerouslySetInnerHTML:{__html:e.text||""}})};function useIsPreviewing(){var e=Object(react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),t=e[0],n=e[1];return Object(react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((function(){(_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isEditing||_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isPreviewing)&&n(!0)}),[]),t}_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.registerComponent(RawText,{name:"Builder:RawText",hideFromInsertMenu:!0,inputs:[{name:"text",bubble:!0,type:"longText",required:!0}]}),_builder_io_sdk__WEBPACK_IMPORTED_MODULE_0__.b.isReact=!0}.call(this,__webpack_require__("8oxB"))},"zpY+":function(e,t,n){"use strict";t.a=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}}}]);