@builder.io/react 8.2.0 → 8.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/builder-react-lite.cjs.js +1 -1
- package/dist/builder-react-lite.cjs.js.map +1 -1
- package/dist/builder-react-lite.esm.js +1 -1
- package/dist/builder-react-lite.esm.js.map +1 -1
- package/dist/builder-react.browser.js +2 -2
- package/dist/builder-react.browser.js.map +1 -1
- package/dist/builder-react.cjs.js +1 -1
- package/dist/builder-react.cjs.js.map +1 -1
- package/dist/builder-react.es5.js +1 -1
- package/dist/builder-react.es5.js.map +1 -1
- package/dist/builder-react.unpkg.js +2 -2
- package/dist/builder-react.unpkg.js.map +1 -1
- package/dist/lib/package.json +1 -1
- package/dist/lib/src/blocks/forms/Form.js +6 -1
- package/dist/lib/src/blocks/forms/Form.js.map +1 -1
- package/dist/lib/src/sdk-version.js +1 -1
- package/dist/types/src/sdk-version.d.ts +1 -1
- package/package.json +1 -1
- package/src/blocks/forms/Form.tsx +7 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var BuilderReact=function(exports){"use strict";var SDK_VERSION$1="8.2.0",_a;"undefined"!=typeof window&&(null===(_a=window.parent)||void 0===_a||_a.postMessage({type:"builder.isReactSdk",data:{value:!0,supportsPatchUpdates:"v4",supportsCustomBreakpoints:!0,supportsXSmallBreakpoint:!0,supportsGlobalSymbols:!0,blockLevelPersonalization:!0,version:SDK_VERSION$1}},"*"));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 __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function __decorate(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}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,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)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 o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}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,l])}}}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;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))}function pad$1(e,t){for(;e.length<t;)e="0"+e;return e}function fold$1(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 foldObject$1(e,t,n){return Object.keys(t).sort().reduce((function(e,r){return foldValue$1(e,t[r],r,n)}),e)}function foldValue$1(e,t,n,r){var i=fold$1(fold$1(fold$1(e,n),toString$2(t)),typeof t);if(null===t)return fold$1(i,"null");if(void 0===t)return fold$1(i,"undefined");if("object"==typeof t||"function"==typeof t){if(-1!==r.indexOf(t))return fold$1(i,"[Circular]"+n);r.push(t);var a=foldObject$1(i,t,r);if(!("valueOf"in t)||"function"!=typeof t.valueOf)return a;try{return fold$1(a,String(t.valueOf()))}catch(e){return fold$1(a,"[valueOf exception]"+(e.stack||e.message))}}return fold$1(i,t.toString())}function toString$2(e){return Object.prototype.toString.call(e)}function sum$1(e){return pad$1(foldValue$1(0,e,"",[]).toString(16),8)}"function"==typeof SuppressedError&&SuppressedError;var hashSum$1=sum$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),isClient="undefined"!=typeof window;function nextTick$1(e){if(isClient&&!isSafari&&"undefined"!=typeof MutationObserver){var t=0,n=new MutationObserver((function(){return e()})),r=document.createTextNode("");n.observe(r,{characterData:!0}),r.data=String(t=++t)}else setTimeout(e)}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(e){}}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("."),a=i.pop(),o=0,s=i;o<s.length;o++){var l=s[o];assertAllowedPropertyName(l),r=r[l]=r[l]||{}}r[a]=e[n]}return t},e.flatten=function(e,t,n){for(var r in void 0===n&&(n={}),e){var i=e[r],a=t?t+"."+r:r;i&&"object"==typeof i?this.flatten(i,a,n):n[a]=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 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){var t=this;this.value=e,this.listeners=[],this.errorListeners=[],this.then=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(e=t.toPromise()).then.apply(e,n)}}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(e){r||this._reject(e)}}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$1((function(){try{isFunction(t)?e(t(n)):e(n)}catch(e){i(e)}}))}),(function(t){nextTick$1((function(){try{isFunction(n)?e(n(t)):i(t)}catch(e){i(e)}}))}))}));case State.Fulfilled:return new e((function(e,n){nextTick$1((function(){try{isFunction(t)?e(t(r._value)):e(r._value)}catch(e){n(e)}}))}));case State.Rejected:return new e((function(e,t){nextTick$1((function(){try{isFunction(n)?e(n(r._value)):t(r._value)}catch(e){t(e)}}))}))}},e}(),Promise$1="undefined"!=typeof Promise?Promise:TinyPromise,serverOnlyRequire;try{serverOnlyRequire=eval("require")}catch(e){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 a in t.headers)i.setRequestHeader(a,t.headers[a]);function o(){var e=[],t=[],n={},r=void 0;return i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(i,a,o){var s=a;return e.push(s=s.toLowerCase()),t.push([s,o]),r=n[s],n[s]=r?"".concat(r,",").concat(o):o,""})),{ok:2==(i.status/100|0),status:i.status,statusText:i.statusText,url:i.responseURL,clone:o,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(o())},i.onerror=r,i.send(t.body)}))}function getFetch(){var e=void 0;if(globalThis.fetch)null!=e||(e=globalThis.fetch);else if("undefined"==typeof window)try{null!=e||(e=serverOnlyRequire$1("node-fetch"))}catch(e){console.warn("node-fetch is not installed. consider polyfilling fetch or installing node-fetch."),console.warn(e)}return null!=e?e:tinyFetch}function assign(e){for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}function throttle$1(e,t,n){var r,i,a;void 0===n&&(n={});var o=null,s=0,l=function(){s=!1===n.leading?0:Date.now(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,i=arguments,c<=0||c>t?(o&&(clearTimeout(o),o=null),s=u,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=setTimeout(l,c)),a}}var camelCaseToKebabCase$1=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,a=[e.steps[0].styles,e.steps[e.steps.length-1].styles];i<a.length;i++)for(var o=a[i],s=0,l=n;s<l.length;s++){var u=l[s];u in o||(o[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 a in i.styles)-1===t.indexOf(a)&&t.push(a)}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$1(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 a(){assign(n.style,r)}a(),n.addEventListener("mouseenter",(function(){assign(n.style,i)})),n.addEventListener("mouseleave",a),setTimeout((function(){n.style.transition="all ".concat(e.duration,"s ").concat(camelCaseToKebabCase$1(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 a(){!r&&s(n)?(r=!0,i=!0,setTimeout((function(){assign(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",o),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 o=throttle$1(a,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 l=e.steps[0].styles;assign(n.style,l),setTimeout((function(){n.style.transition="all ".concat(e.duration,"s ").concat(camelCaseToKebabCase$1(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s")})),document.addEventListener("scroll",o,{capture:!0,passive:!0}),a()})):this.warnElementNotPresent(e.elementId||e.id||"")},e}(),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,a=r.getHeader("Set-Cookie")||[],o=void 0!==this.secure?!!this.secure:"https"===i.protocol||i.connection.encrypted,s=new Cookie(e,t,n);if("string"==typeof a&&(a=[a]),!o&&n&&n.secure)throw new Error("Cannot send secure cookie over unencrypted connection");return s.secure=o,n&&"secure"in n&&(s.secure=!!n.secure),pushCookie(a,s),r.setHeader.call(r,"Set-Cookie",a),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$3(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=Object.assign({},e),i=0,a=t;i<a.length;i++){var o=a[i];delete r[o]}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$1(e){var t,n,r=emptyUrl();return""===e||"/"===e[0]?(n=new URL(e,"http://0.0.0.0/"),r.href=n.href,r.href=null===(t=r.href)||void 0===t?void 0:t.slice(14)):(n=new URL(e),r.href=n.href,r.port=""===n.port?null:n.port,r.hash=""===n.hash?null:n.hash,r.host=n.host,r.hostname=n.hostname,r.href=n.href,r.pathname=n.pathname,r.protocol=n.protocol,r.slashes="/"===e[n.protocol.length]),r.search=n.search,r.query=n.search.slice(1),r.path="".concat(n.pathname).concat(n.search),r.pathname=n.pathname,r}function toError$1(e){return e instanceof Error?e:new Error(String(e))}var DEFAULT_API_VERSION="v3",SDK_VERSION="6.0.9";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 a=i[r];n[a]=t[a]}return!n.pathname&&""!==n.pathname||"string"!=typeof n.pathname||0===n.pathname.indexOf("/")||(n.pathname="/"+n.pathname),n}},parse=isReactNative?function(){return emptyUrl()}:"object"==typeof window?urlParser.parse:parse$1;function setCookie(e,t,n){try{var r="";n&&(r="; expires="+n.toUTCString());var i=!isBrowser$3||"https:"===location.protocol;document.cookie=e+"="+(t||"")+r+"; path=/"+(i?"; secure; SameSite=None":"")}catch(e){console.warn("Could not set cookie",e)}}function getCookie(e){try{return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}catch(e){console.warn("Could not get cookie",e)}}function size$2(e){return Object.keys(e).length}function find(e,t){for(var n=e,r=n.length>>>0,i=arguments[1],a=0;a<r;a++){var o=n[a];if(t.call(i,o,a,n))return o}}var sessionStorageKey="builderSessionId",localStorageKey="builderVisitorId",isBrowser$3="undefined"!=typeof window&&!isReactNative,isIframe=isBrowser$3&&window.top!==window.self,Builder=function(){function e(t,n,r,i,a,o){void 0===t&&(t=null),void 0===i&&(i=!1),void 0===a&&(a=null);var s=this;if(this.request=n,this.response=r,this.eventsQueue=[],this.throttledClearEventsQueue=throttle$1((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.apiEndpoint$=new BehaviorSubject("query"),this.apiVersion$=new BehaviorSubject(void 0),this.canTrack$=new BehaviorSubject(!this.browserTrackingDisabled),this.hasOverriddenCanTrack=!1,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;if(this.request&&this.response&&(this.setUserAgent(this.request.headers["user-agent"]||""),this.cookies=new Cookies(this.request,this.response)),t&&(this.apiKey=t),o&&(this.apiVersion=o),a&&(this.authToken=a),isBrowser$3&&e.isEditing&&(this.bindMessageListeners(),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(e){console.debug("Session storage error",e)}s.eventsQueue.length&&s.throttledClearEventsQueue(),s.cookieQueue.length&&(s.cookieQueue.forEach((function(e){s.setCookie(e[0],e[1])})),s.cookieQueue.length=0)}})),isBrowser$3){this.setTestsFromUrl(),this.getOverridesFromQueryString();var l=this.getCookie(e.attributesCookieName);if(l)try{var u=JSON.parse(l);this.setUserAttributes(u)}catch(e){console.debug("Error parsing user attributes cookie",e)}}}return e.register=function(t,n){"plugin"===t&&(n=this.serializeIncludingFunctions(n,!0));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(e){console.debug("Could not postmessage",e)}}this.registryChange.next(this.registry)},e.registerEditor=function(t){if(e.isBrowser){window.postMessage({type:"builder.registerEditor",data:omit$3(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(t){var n;if(this.actions.push(t),e.isBrowser){var r=JSON.parse(JSON.stringify(t));t.action&&(r.action=t.action.toString()),null===(n=window.parent)||void 0===n||n.postMessage({type:"builder.registerAction",data:r},"*")}},e.registerTrustedHost=function(e){this.trustedHosts.push(e)},e.setServerContext=function(e){this.serverContext=e},e.isTrustedHost=function(e){return this.trustedHosts.findIndex((function(t){return t.startsWith("*.")?e.endsWith(t.slice(1)):t===e}))>-1},e.isTrustedHostForEvent=function(t){if("null"===t.origin)return!1;var n=parse(t.origin);return n.hostname&&e.isTrustedHost(n.hostname)},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$3&&isIframe&&(e?document.body.classList.add("builder-editing-page"):document.body.classList.remove("builder-editing-page"))},enumerable:!1,configurable:!0}),e.serializeIncludingFunctions=function(e,t){var n=JSON.parse(JSON.stringify(e,(function(e,n){var r,i,a;return"function"!=typeof n||t&&"onSave"===e?n:(r=n.toString().trim(),i=/^[a-zA-Z0-9_]+\s*=>/i.test(r),a=!(r.startsWith("function")||r.startsWith("async")||r.startsWith("(")||i),"return (".concat(a?"function ":"").concat(r,").apply(this, arguments)"))})));return t&&(n.onSave=e.onSave),n},e.prepareComponentSpecToSend=function(e){return __assign(__assign({},this.serializeIncludingFunctions(e)),{class:void 0})},e.registerBlock=function(e,t){this.registerComponent(e,t)},e.registerComponent=function(e,t){var n,r=__assign(__assign({class:e},e.builderOptions),t);if(this.addComponent(r),t.models&&this.singletonInstance.editingModel?isBrowser$3&&t.models.includes(this.singletonInstance.editingModel):isBrowser$3){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=__assign(__assign({},e),{class:n});i.name||(i.name=n.name),t.addComponent(i);var a=t.prepareComponentSpecToSend(i);return isBrowser$3&&(null===(r=window.parent)||void 0===r||r.postMessage({type:"builder.registerComponent",data:a},"*")),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=__assign(__assign({},e.overrideUserAttributes),this.trackingUserAttributes),r=0,i=t;r<i.length;r++){var a=i[r];a.data.metadata||(a.data.metadata={}),a.data.metadata.user||(a.data.metadata.user={}),Object.assign(a.data.metadata.user,n,a.data.metadata.user)}var o=this.host;getFetch()("".concat(o,"/api/v1/track"),{method:"POST",body:JSON.stringify({events:t}),headers:__assign({"content-type":"application/json"},this.getSdkHeaders()),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.hasOverriddenCanTrack=!0,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,"apiEndpoint",{get:function(){return this.apiEndpoint$.value},set:function(e){this.apiEndpoint!==e&&this.apiEndpoint$.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$3&&!e.isPreviewing){var i=this.apiKey;if(i){for(var a=JSON.parse(JSON.stringify({type:t,data:__assign(__assign({},omit$3(n,"meta")),{metadata:__assign(__assign({sdkVersion:e.VERSION,url:location.href},n.meta),n.metadata),ownerId:i,userAttributes:this.getUserAttributes(),sessionId:this.sessionId,visitorId:this.visitorId})})),o=0,s=this.trackingHooks;o<s.length;o++){var l=(0,s[o])(a,r||{});l&&(a=l)}this.eventsQueue.push(a),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("«YOUR-API-KEY»");` 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(e){console.debug("Session storage error",e)}return n||(n=uuid()),e.isBrowser&&setTimeout((function(){try{t.canTrack&&t.setCookie(sessionStorageKey,n,datePlusMinutes(30))}catch(e){console.debug("Cookie setting error",e)}})),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(e){console.debug("Local storage error",e)}return n||(n=uuid()),this.visitorId=n,e.isBrowser&&setTimeout((function(){try{t.canTrack&&"undefined"!=typeof localStorage&&n&&localStorage.setItem(localStorageKey,n)}catch(e){console.debug("Session storage error",e)}})),n},e.prototype.trackImpression=function(t,n,r,i){isIframe||!isBrowser$3||e.isPreviewing||this.track("impression",{contentId:t,variationId:n!==t?n:void 0,metadata:r},i)},e.prototype.trackConversion=function(t,n,r,i,a){if(!isIframe&&isBrowser$3&&!e.isPreviewing){var o="object"==typeof n?n:i,s="string"==typeof n?n:void 0;this.track("conversion",{amount:t,variationId:r,meta:o,contentId:s},a)}},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,a){if(void 0===r&&(r=!1),!isIframe&&isBrowser$3&&!e.isPreviewing){var o=i&&i.target,s=o&&this.findBuilderParent(o),l={};if(i){var u=i.clientX,c=i.clientY;if(o){var d=u-(m=o.getBoundingClientRect()).left,p=c-m.top,f=v(d/m.width),h=v(p/m.height);l.targetOffset={x:f,y:h}}if(s){var m;d=u-(m=s.getBoundingClientRect()).left,p=c-m.top,f=v(d/m.width),h=v(p/m.height);l.builderTargetOffset={x:f,y:h}}}var g=s&&(s.getAttribute("builder-id")||s.id);g&&s&&(l.builderElementIndex=[].slice.call(document.getElementsByClassName(g)).indexOf(s)),this.track("click",{contentId:t,metadata:l,variationId:n!==t?n:void 0,unique:!r,targetBuilderElement:g||void 0},a)}function v(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;try{var 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])}catch(e){console.debug("Error parsing tests from URL",e)}},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();try{var n=QueryString.parseDeep(this.modifySearch(t.search||"").substr(1)),r=n.builder;if(r){var i=r.userAttributes,a=r.overrides,o=r.env,s=(r.host,r.api),l=r.cachebust,u=r.noCache,c=r.preview,d=r.editing,p=r.frameEditing,f=r.options,h=r.params;if(i&&this.setUserAttributes(i),f&&(this.queryOptions=__assign(__assign(__assign({},f.locale&&{locale:f.locale}),f.includeRefs&&{includeRefs:f.includeRefs}),f.enrich&&{enrich:f.enrich})),a&&(this.overrides=a),validEnvList.indexOf(o||s)>-1&&(this.env=o||s),e.isEditing){var m=p||d||c;m&&"true"!==m&&(this.editingModel=m)}l&&(this.cachebust=!0),u&&(this.noCache=!0),c&&(this.preview=!0),n&&(this.overrideParams=h)}}catch(e){console.debug("Error parsing overrides from URL",e)}},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;addEventListener("message",(function(n){var r,i,a,o;if(e.isTrustedHostForEvent(n)){var s=n.data;if(s)switch(s.type){case"builder.ping":null===(r=window.parent)||void 0===r||r.postMessage({type:"builder.pong",data:{}},"*");break;case"builder.register":if(n.source===window)break;var l=s.data;if(!l)break;var u=l.type,c=l.info,d=e.registry[u];d||(d=e.registry[u]=[]),d.push(c),e.registryChange.next(e.registry);break;case"builder.settingsChange":if(n.source===window)break;var p=s.data;if(!p)break;Object.assign(e.settings,p),e.settingsChange.next(e.settings);break;case"builder.registerEditor":if(n.source===window)break;var f=s.data;if(!f)break;var h=!!f.component;e.editors.every((function(t,n){return f.name!==t.name||(t.component&&!h||(e.editors[n]=t),!1)}));break;case"builder.triggerAnimation":e.animator.triggerAnimation(s.data);break;case"builder.contentUpdate":var m=s.data.key||s.data.alias||s.data.entry||s.data.modelName,g=s.data.data,v=t.observersByKey[m];v&&!t.noEditorUpdates[m]&&v.next([g]);break;case"builder.getComponents":null===(i=window.parent)||void 0===i||i.postMessage({type:"builder.components",data:e.components.map((function(t){return e.prepareComponentSpecToSend(t)}))},"*");break;case"builder.editingModel":t.editingModel=s.data.model;break;case"builder.registerComponent":var b=s.data;e.addComponent(b);break;case"builder.blockContentLoading":"string"==typeof s.data.model&&(t.blockContentLoading=s.data.model);break;case"builder.editingMode":s.data?(t.editingMode=!0,document.body.classList.add("builder-editing")):(t.editingMode=!1,document.body.classList.remove("builder-editing"));break;case"builder.editingPageMode":var y=s.data;e.editingPage=y;break;case"builder.overrideUserAttributes":var k=s.data;assign(e.overrideUserAttributes,k),t.flushGetContentQueue(!0);break;case"builder.overrideTestGroup":var w=s.data,S=w.variationId,_=w.contentId;S&&_&&(t.setTestCookie(_,S),t.flushGetContentQueue(!0));break;case"builder.evaluate":var x=s.data.text,C=s.data.arguments||[],E=s.data.id,B=new Function(x),T=void 0,P=null;try{T=B.apply(t,C)}catch(e){P=toError$1(e)}P?null===(a=window.parent)||void 0===a||a.postMessage({type:"builder.evaluateError",data:{id:E,error:P.message}},"*"):T&&"function"==typeof T.then?T.then((function(e){var t;null===(t=window.parent)||void 0===t||t.postMessage({type:"builder.evaluateResult",data:{id:E,result:e}},"*")})).catch(console.error):null===(o=window.parent)||void 0===o||o.postMessage({type:"builder.evaluateResult",data:{result:T,id:E}},"*")}}}))},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,a){return void 0===t&&(t=this.defaultCanTrack),n&&(this.request=n),r&&(this.response=r),this.hasOverriddenCanTrack||(this.canTrack=t),this.apiKey=e,i&&(this.authToken=i),a&&(this.apiVersion=a),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(null!==(e=this.request.url)&&void 0!==e?e:""):"object"==typeof location&&(t=parse(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 __assign({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.canTrack&&this.setCookie(e.attributesCookieName,JSON.stringify(this.getUserAttributes())),this.userAttributesChanged.next(t)},e.prototype.setTrackingUserAttributes=function(e){assign(this.trackingUserAttributes,e)},e.prototype.get=function(t,n){var r;void 0===n&&(n={});var i=this,a=n.locale||(null===(r=n.userAttributes)||void 0===r?void 0:r.locale)||this.getUserAttributes().locale;"noTraverse"in n||(n.noTraverse=!1);var o=__assign(__assign({},n),a&&{locale:String(a),userAttributes:__assign({locale:String(a)},n.userAttributes)});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)):((i=new e(n.apiKey||this.apiKey,n.req,n.res,void 0,n.authToken||this.authToken,n.apiVersion||this.apiVersion)).apiEndpoint=this.apiEndpoint,i.setUserAttributes(this.getUserAttributes())),i.queueGetContent(t,o).map((function(t){var n=t&&t[0];if(e.isStatic)return n;var r=n&&n.data;return r?(void 0!==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,a=this.editingModel===t,o=this.observersByKey[i];"DEMO"!==this.apiKey||this.overrides[i]||n.initialContent||(n.initialContent=[]);var s=n.initialContent;if(o&&(!o.value||n.cache))return o.value&&nextTick$1((function(){o.next(o.value)})),o;if(a&&e.isBrowser&&parent.postMessage({type:"builder.updateContent",data:{options:n}},"*"),!s)if(this.getContentQueue||(this.getContentQueue=[]),this.getContentQueue.push(__assign(__assign({},n),{model:t,key:i})),this.getContentQueue&&this.getContentQueue.length>=this.contentPerRequest){var l=this.getContentQueue.slice();this.getContentQueue=[],nextTick$1((function(){r.flushGetContentQueue(!1,l)}))}else nextTick$1((function(){r.flushGetContentQueue()}));var u=new BehaviorSubject(null);return this.observersByKey[i]=u,n.noEditorUpdates&&(this.noEditorUpdates[i]=!0),s&&nextTick$1((function(){u.next(s)})),u},e.prototype.requestUrl=function(e,t){return getFetch()(e,this.addSdkHeaders(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.getSdkHeaders=function(){return e.sdkInfo?{"X-Builder-SDK":e.sdkInfo.name,"X-Builder-SDK-GEN":"1","X-Builder-SDK-Version":e.sdkInfo.version}:{}},e.prototype.addSdkHeaders=function(e){return __assign(__assign({},e),{headers:__assign(__assign({},e.headers),this.getSdkHeaders())})},e.prototype.makeFetchApiCall=function(e,t){return getFetch()(e,this.addSdkHeaders(t))},e.prototype.flattenMongoQuery=function(e,t,n){for(var r in void 0===n&&(n={}),e){var i=e[r],a=t?t+"."+r:r;!i||"object"!=typeof i||Array.isArray(i)||Object.keys(i).find((function(e){return e.startsWith("$")}))?n[a]=i:this.flattenMongoQuery(i,a,n)}return n},e.prototype.flushGetContentQueue=function(t,n){var r,i,a=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 o=n||(t?this.priorContentQueue:this.getContentQueue)||[];this.getOverridesFromQueryString();var s=__assign(__assign({omit:null!==(r=o[0].omit)&&void 0!==r?r:"meta.componentsUsed",apiKey:this.apiKey},o[0].options),this.queryOptions);o[0].locale&&(s.locale=o[0].locale),o[0].fields&&(s.fields=o[0].fields),o[0].format&&(s.format=o[0].format),"noTraverse"in o[0]&&(s.noTraverse=o[0].noTraverse),"includeUnpublished"in o[0]&&(s.includeUnpublished=o[0].includeUnpublished),o[0].sort&&(s.sort=o[0].sort);var l=("undefined"!=typeof location?QueryString.parseDeep(location.search.substr(1)):void 0)||{},u=o&&o[0].userAttributes?o[0].userAttributes:this.targetContent?this.getUserAttributes():{urlPath:this.getLocation().pathname};if(o.find((function(e){return!!e.includeUrl}))){var c=this.getLocation();c.origin&&(s.url="".concat(c.origin).concat(c.pathname).concat(c.search))}var d=null==n?void 0:n.find((function(e){return e.url}));if((null==d?void 0:d.url)&&(u.urlPath=d.url.split("?")[0]),s.userAttributes=JSON.stringify(u),t||n||(this.priorContentQueue=o,this.getContentQueue=null),(this.cachebust||isIframe||l.cachebust||l["builder.cachebust"]||"production"!==this.env)&&(s.cachebust=!0),e.isEditing&&(s.isEditing=!0),(this.noCache||"production"!==this.env)&&(s.noCache=!0),size$2(this.overrides))for(var p in this.overrides)this.overrides.hasOwnProperty(p)&&(s["overrides.".concat(p)]=this.overrides[p]);for(var f=0,h=o;f<h.length;f++){var m=h[f],g=m.format;g&&(s.format=g),m.static&&(s.static=m.static),m.cachebust&&(s.cachebust=m.cachebust),isPositiveNumber(m.cacheSeconds)&&(s.cacheSeconds=m.cacheSeconds),isPositiveNumber(m.staleCacheSeconds)&&(s.staleCacheSeconds=m.staleCacheSeconds),"content"===this.apiEndpoint&&(s.includeRefs=!0);for(var v=0,b=["prerender","extractCss","limit","offset","query","preview","model","entry","rev","static","includeRefs"];v<b.length;v++){var y=m[p=b[v]];void 0!==y&&("query"===this.apiEndpoint?(s.options=s.options||{},s.options[m.key]=s.options[m.key]||{},s.options[m.key][p]=JSON.stringify(y)):s[p]=JSON.stringify(y))}}this.preview&&this.previewingModel===(null===(i=null==o?void 0:o[0])||void 0===i?void 0:i.model)&&(s.preview="true");var k=Object.keys(s).length>0,w=this.host,S=o.map((function(e){return encodeURIComponent(e.key)})).join(",");if(this.overrideParams)assign(s,omit$3(QueryString.parse(this.overrideParams),"apiKey"));var _=s.format,x="solid"===_||"react"===_,C=x||"query"===this.apiEndpoint;if("content"===this.apiEndpoint&&o[0].query){var E=this.flattenMongoQuery({query:o[0].query});for(var p in E)s[p]=E[p];delete s.query}var B,T=QueryString.stringifyDeep(s),P=__assign({headers:{}},o[0].fetchOptions);return this.authToken&&(P.headers=__assign(__assign({},P.headers),{Authorization:"Bearer ".concat(this.authToken)})),B=x?"".concat(w,"/api/v1/codegen/").concat(this.apiKey,"/").concat(S):"query"===this.apiEndpoint?"".concat(w,"/api/v3/query/").concat(this.apiKey,"/").concat(S):"".concat(w,"/api/v3/content/").concat(o[0].model),B+=s&&k?"?".concat(T):"",this.makeFetchApiCall(B,P).then((function(e){return e.json()})).then((function(t){for(var n=0,r=o;n<r.length;n++){var i=r[n],s=i.key;if(i.model!==a.blockContentLoading||i.noEditorUpdates){a.editingModel===i.model&&e.isEditing&&parent.postMessage({type:"builder.updateContent",data:{options:i}},"*");var l=a.observersByKey[s];if(!l)return;var u=C?t[s]:t.results,c=u;if(u){var d=e.isServer?c:a.processResultsForTests(c);l.next(d)}else{if((a.getLocation().search||"").includes("builder.preview="+i.model)){l.next([{id:"preview",name:"Preview",data:{}}])}l.next([])}}}}),(function(e){for(var t=0,n=o;t<n.length;t++){var r=n[t],i=a.observersByKey[r.key];if(!i)return;i.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 __assign(__assign({},e),{data:r.data,variationId:t,testVariationId:t,testVariationName:r.name});if(n.canTrack&&e.variations&&size$2(e.variations)){var i=0,a=Math.random();for(var o in e.variations){var s=e.variations[o];if(a<(i+=s.testRatio)){n.setTestCookie(e.id,s.id);var l=s.name||(s.id===e.id?"Default variation":"");return __assign(__assign({},e),{data:s.data,variationId:s.id,testVariationId:s.id,variationName:l,testVariationName:l})}}n.setTestCookie(e.id,e.id)}return __assign(__assign(__assign({},e),{variationId:e.id}),e.variations&&size$2(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.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,!1,n.authToken||this.authToken,n.apiVersion||this.apiVersion)).setUserAttributes(this.getUserAttributes()),"noTraverse"in n||(n.noTraverse=!0),r.getContent(t,__assign(__assign({limit:30},n),{key:n.key||e.isBrowser?"".concat(t,":").concat(hashSum$1(omit$3(n,"initialContent","req","res"))):void 0})).promise()},e.VERSION=SDK_VERSION,e.components=[],e.isStatic=!0,e.animator=new Animator,e.nextTick=nextTick$1,e.throttle=throttle$1,e.editors=[],e.trustedHosts=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"],e.plugins=[],e.actions=[],e.registry={},e.attributesCookieName="builder.userAttributes",e.registryChange=new BehaviorSubject({}),e._editingPage=!1,e.isIframe=isIframe,e.isBrowser=isBrowser$3,e.isReactNative=isReactNative,e.isServer=!isBrowser$3&&!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$3&&(-1!==location.search.indexOf("builder.preview=")||-1!==location.search.indexOf("builder.frameEditing="))),e.isReact=!1,e.sdkInfo=void 0,e.overrideUserAttributes={},e}(),builder=new Builder(null,void 0,void 0,!0);function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}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
|
|
1
|
+
var BuilderReact=function(exports){"use strict";var SDK_VERSION$1="8.2.1",_a;"undefined"!=typeof window&&(null===(_a=window.parent)||void 0===_a||_a.postMessage({type:"builder.isReactSdk",data:{value:!0,supportsPatchUpdates:"v4",supportsCustomBreakpoints:!0,supportsXSmallBreakpoint:!0,supportsGlobalSymbols:!0,blockLevelPersonalization:!0,version:SDK_VERSION$1}},"*"));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 __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function __decorate(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}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,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)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 o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}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,l])}}}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;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))}function pad$1(e,t){for(;e.length<t;)e="0"+e;return e}function fold$1(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 foldObject$1(e,t,n){return Object.keys(t).sort().reduce((function(e,r){return foldValue$1(e,t[r],r,n)}),e)}function foldValue$1(e,t,n,r){var i=fold$1(fold$1(fold$1(e,n),toString$2(t)),typeof t);if(null===t)return fold$1(i,"null");if(void 0===t)return fold$1(i,"undefined");if("object"==typeof t||"function"==typeof t){if(-1!==r.indexOf(t))return fold$1(i,"[Circular]"+n);r.push(t);var a=foldObject$1(i,t,r);if(!("valueOf"in t)||"function"!=typeof t.valueOf)return a;try{return fold$1(a,String(t.valueOf()))}catch(e){return fold$1(a,"[valueOf exception]"+(e.stack||e.message))}}return fold$1(i,t.toString())}function toString$2(e){return Object.prototype.toString.call(e)}function sum$1(e){return pad$1(foldValue$1(0,e,"",[]).toString(16),8)}"function"==typeof SuppressedError&&SuppressedError;var hashSum$1=sum$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),isClient="undefined"!=typeof window;function nextTick$1(e){if(isClient&&!isSafari&&"undefined"!=typeof MutationObserver){var t=0,n=new MutationObserver((function(){return e()})),r=document.createTextNode("");n.observe(r,{characterData:!0}),r.data=String(t=++t)}else setTimeout(e)}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(e){}}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("."),a=i.pop(),o=0,s=i;o<s.length;o++){var l=s[o];assertAllowedPropertyName(l),r=r[l]=r[l]||{}}r[a]=e[n]}return t},e.flatten=function(e,t,n){for(var r in void 0===n&&(n={}),e){var i=e[r],a=t?t+"."+r:r;i&&"object"==typeof i?this.flatten(i,a,n):n[a]=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 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){var t=this;this.value=e,this.listeners=[],this.errorListeners=[],this.then=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(e=t.toPromise()).then.apply(e,n)}}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(e){r||this._reject(e)}}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$1((function(){try{isFunction(t)?e(t(n)):e(n)}catch(e){i(e)}}))}),(function(t){nextTick$1((function(){try{isFunction(n)?e(n(t)):i(t)}catch(e){i(e)}}))}))}));case State.Fulfilled:return new e((function(e,n){nextTick$1((function(){try{isFunction(t)?e(t(r._value)):e(r._value)}catch(e){n(e)}}))}));case State.Rejected:return new e((function(e,t){nextTick$1((function(){try{isFunction(n)?e(n(r._value)):t(r._value)}catch(e){t(e)}}))}))}},e}(),Promise$1="undefined"!=typeof Promise?Promise:TinyPromise,serverOnlyRequire;try{serverOnlyRequire=eval("require")}catch(e){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 a in t.headers)i.setRequestHeader(a,t.headers[a]);function o(){var e=[],t=[],n={},r=void 0;return i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(i,a,o){var s=a;return e.push(s=s.toLowerCase()),t.push([s,o]),r=n[s],n[s]=r?"".concat(r,",").concat(o):o,""})),{ok:2==(i.status/100|0),status:i.status,statusText:i.statusText,url:i.responseURL,clone:o,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(o())},i.onerror=r,i.send(t.body)}))}function getFetch(){var e=void 0;if(globalThis.fetch)null!=e||(e=globalThis.fetch);else if("undefined"==typeof window)try{null!=e||(e=serverOnlyRequire$1("node-fetch"))}catch(e){console.warn("node-fetch is not installed. consider polyfilling fetch or installing node-fetch."),console.warn(e)}return null!=e?e:tinyFetch}function assign(e){for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}function throttle$1(e,t,n){var r,i,a;void 0===n&&(n={});var o=null,s=0,l=function(){s=!1===n.leading?0:Date.now(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,i=arguments,c<=0||c>t?(o&&(clearTimeout(o),o=null),s=u,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=setTimeout(l,c)),a}}var camelCaseToKebabCase$1=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,a=[e.steps[0].styles,e.steps[e.steps.length-1].styles];i<a.length;i++)for(var o=a[i],s=0,l=n;s<l.length;s++){var u=l[s];u in o||(o[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 a in i.styles)-1===t.indexOf(a)&&t.push(a)}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$1(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 a(){assign(n.style,r)}a(),n.addEventListener("mouseenter",(function(){assign(n.style,i)})),n.addEventListener("mouseleave",a),setTimeout((function(){n.style.transition="all ".concat(e.duration,"s ").concat(camelCaseToKebabCase$1(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 a(){!r&&s(n)?(r=!0,i=!0,setTimeout((function(){assign(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",o),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 o=throttle$1(a,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 l=e.steps[0].styles;assign(n.style,l),setTimeout((function(){n.style.transition="all ".concat(e.duration,"s ").concat(camelCaseToKebabCase$1(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s")})),document.addEventListener("scroll",o,{capture:!0,passive:!0}),a()})):this.warnElementNotPresent(e.elementId||e.id||"")},e}(),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,a=r.getHeader("Set-Cookie")||[],o=void 0!==this.secure?!!this.secure:"https"===i.protocol||i.connection.encrypted,s=new Cookie(e,t,n);if("string"==typeof a&&(a=[a]),!o&&n&&n.secure)throw new Error("Cannot send secure cookie over unencrypted connection");return s.secure=o,n&&"secure"in n&&(s.secure=!!n.secure),pushCookie(a,s),r.setHeader.call(r,"Set-Cookie",a),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$3(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=Object.assign({},e),i=0,a=t;i<a.length;i++){var o=a[i];delete r[o]}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$1(e){var t,n,r=emptyUrl();return""===e||"/"===e[0]?(n=new URL(e,"http://0.0.0.0/"),r.href=n.href,r.href=null===(t=r.href)||void 0===t?void 0:t.slice(14)):(n=new URL(e),r.href=n.href,r.port=""===n.port?null:n.port,r.hash=""===n.hash?null:n.hash,r.host=n.host,r.hostname=n.hostname,r.href=n.href,r.pathname=n.pathname,r.protocol=n.protocol,r.slashes="/"===e[n.protocol.length]),r.search=n.search,r.query=n.search.slice(1),r.path="".concat(n.pathname).concat(n.search),r.pathname=n.pathname,r}function toError$1(e){return e instanceof Error?e:new Error(String(e))}var DEFAULT_API_VERSION="v3",SDK_VERSION="6.0.9";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 a=i[r];n[a]=t[a]}return!n.pathname&&""!==n.pathname||"string"!=typeof n.pathname||0===n.pathname.indexOf("/")||(n.pathname="/"+n.pathname),n}},parse=isReactNative?function(){return emptyUrl()}:"object"==typeof window?urlParser.parse:parse$1;function setCookie(e,t,n){try{var r="";n&&(r="; expires="+n.toUTCString());var i=!isBrowser$3||"https:"===location.protocol;document.cookie=e+"="+(t||"")+r+"; path=/"+(i?"; secure; SameSite=None":"")}catch(e){console.warn("Could not set cookie",e)}}function getCookie(e){try{return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}catch(e){console.warn("Could not get cookie",e)}}function size$2(e){return Object.keys(e).length}function find(e,t){for(var n=e,r=n.length>>>0,i=arguments[1],a=0;a<r;a++){var o=n[a];if(t.call(i,o,a,n))return o}}var sessionStorageKey="builderSessionId",localStorageKey="builderVisitorId",isBrowser$3="undefined"!=typeof window&&!isReactNative,isIframe=isBrowser$3&&window.top!==window.self,Builder=function(){function e(t,n,r,i,a,o){void 0===t&&(t=null),void 0===i&&(i=!1),void 0===a&&(a=null);var s=this;if(this.request=n,this.response=r,this.eventsQueue=[],this.throttledClearEventsQueue=throttle$1((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.apiEndpoint$=new BehaviorSubject("query"),this.apiVersion$=new BehaviorSubject(void 0),this.canTrack$=new BehaviorSubject(!this.browserTrackingDisabled),this.hasOverriddenCanTrack=!1,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;if(this.request&&this.response&&(this.setUserAgent(this.request.headers["user-agent"]||""),this.cookies=new Cookies(this.request,this.response)),t&&(this.apiKey=t),o&&(this.apiVersion=o),a&&(this.authToken=a),isBrowser$3&&e.isEditing&&(this.bindMessageListeners(),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(e){console.debug("Session storage error",e)}s.eventsQueue.length&&s.throttledClearEventsQueue(),s.cookieQueue.length&&(s.cookieQueue.forEach((function(e){s.setCookie(e[0],e[1])})),s.cookieQueue.length=0)}})),isBrowser$3){this.setTestsFromUrl(),this.getOverridesFromQueryString();var l=this.getCookie(e.attributesCookieName);if(l)try{var u=JSON.parse(l);this.setUserAttributes(u)}catch(e){console.debug("Error parsing user attributes cookie",e)}}}return e.register=function(t,n){"plugin"===t&&(n=this.serializeIncludingFunctions(n,!0));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(e){console.debug("Could not postmessage",e)}}this.registryChange.next(this.registry)},e.registerEditor=function(t){if(e.isBrowser){window.postMessage({type:"builder.registerEditor",data:omit$3(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(t){var n;if(this.actions.push(t),e.isBrowser){var r=JSON.parse(JSON.stringify(t));t.action&&(r.action=t.action.toString()),null===(n=window.parent)||void 0===n||n.postMessage({type:"builder.registerAction",data:r},"*")}},e.registerTrustedHost=function(e){this.trustedHosts.push(e)},e.setServerContext=function(e){this.serverContext=e},e.isTrustedHost=function(e){return this.trustedHosts.findIndex((function(t){return t.startsWith("*.")?e.endsWith(t.slice(1)):t===e}))>-1},e.isTrustedHostForEvent=function(t){if("null"===t.origin)return!1;var n=parse(t.origin);return n.hostname&&e.isTrustedHost(n.hostname)},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$3&&isIframe&&(e?document.body.classList.add("builder-editing-page"):document.body.classList.remove("builder-editing-page"))},enumerable:!1,configurable:!0}),e.serializeIncludingFunctions=function(e,t){var n=JSON.parse(JSON.stringify(e,(function(e,n){var r,i,a;return"function"!=typeof n||t&&"onSave"===e?n:(r=n.toString().trim(),i=/^[a-zA-Z0-9_]+\s*=>/i.test(r),a=!(r.startsWith("function")||r.startsWith("async")||r.startsWith("(")||i),"return (".concat(a?"function ":"").concat(r,").apply(this, arguments)"))})));return t&&(n.onSave=e.onSave),n},e.prepareComponentSpecToSend=function(e){return __assign(__assign({},this.serializeIncludingFunctions(e)),{class:void 0})},e.registerBlock=function(e,t){this.registerComponent(e,t)},e.registerComponent=function(e,t){var n,r=__assign(__assign({class:e},e.builderOptions),t);if(this.addComponent(r),t.models&&this.singletonInstance.editingModel?isBrowser$3&&t.models.includes(this.singletonInstance.editingModel):isBrowser$3){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=__assign(__assign({},e),{class:n});i.name||(i.name=n.name),t.addComponent(i);var a=t.prepareComponentSpecToSend(i);return isBrowser$3&&(null===(r=window.parent)||void 0===r||r.postMessage({type:"builder.registerComponent",data:a},"*")),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=__assign(__assign({},e.overrideUserAttributes),this.trackingUserAttributes),r=0,i=t;r<i.length;r++){var a=i[r];a.data.metadata||(a.data.metadata={}),a.data.metadata.user||(a.data.metadata.user={}),Object.assign(a.data.metadata.user,n,a.data.metadata.user)}var o=this.host;getFetch()("".concat(o,"/api/v1/track"),{method:"POST",body:JSON.stringify({events:t}),headers:__assign({"content-type":"application/json"},this.getSdkHeaders()),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.hasOverriddenCanTrack=!0,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,"apiEndpoint",{get:function(){return this.apiEndpoint$.value},set:function(e){this.apiEndpoint!==e&&this.apiEndpoint$.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$3&&!e.isPreviewing){var i=this.apiKey;if(i){for(var a=JSON.parse(JSON.stringify({type:t,data:__assign(__assign({},omit$3(n,"meta")),{metadata:__assign(__assign({sdkVersion:e.VERSION,url:location.href},n.meta),n.metadata),ownerId:i,userAttributes:this.getUserAttributes(),sessionId:this.sessionId,visitorId:this.visitorId})})),o=0,s=this.trackingHooks;o<s.length;o++){var l=(0,s[o])(a,r||{});l&&(a=l)}this.eventsQueue.push(a),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("«YOUR-API-KEY»");` 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(e){console.debug("Session storage error",e)}return n||(n=uuid()),e.isBrowser&&setTimeout((function(){try{t.canTrack&&t.setCookie(sessionStorageKey,n,datePlusMinutes(30))}catch(e){console.debug("Cookie setting error",e)}})),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(e){console.debug("Local storage error",e)}return n||(n=uuid()),this.visitorId=n,e.isBrowser&&setTimeout((function(){try{t.canTrack&&"undefined"!=typeof localStorage&&n&&localStorage.setItem(localStorageKey,n)}catch(e){console.debug("Session storage error",e)}})),n},e.prototype.trackImpression=function(t,n,r,i){isIframe||!isBrowser$3||e.isPreviewing||this.track("impression",{contentId:t,variationId:n!==t?n:void 0,metadata:r},i)},e.prototype.trackConversion=function(t,n,r,i,a){if(!isIframe&&isBrowser$3&&!e.isPreviewing){var o="object"==typeof n?n:i,s="string"==typeof n?n:void 0;this.track("conversion",{amount:t,variationId:r,meta:o,contentId:s},a)}},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,a){if(void 0===r&&(r=!1),!isIframe&&isBrowser$3&&!e.isPreviewing){var o=i&&i.target,s=o&&this.findBuilderParent(o),l={};if(i){var u=i.clientX,c=i.clientY;if(o){var d=u-(m=o.getBoundingClientRect()).left,p=c-m.top,f=v(d/m.width),h=v(p/m.height);l.targetOffset={x:f,y:h}}if(s){var m;d=u-(m=s.getBoundingClientRect()).left,p=c-m.top,f=v(d/m.width),h=v(p/m.height);l.builderTargetOffset={x:f,y:h}}}var g=s&&(s.getAttribute("builder-id")||s.id);g&&s&&(l.builderElementIndex=[].slice.call(document.getElementsByClassName(g)).indexOf(s)),this.track("click",{contentId:t,metadata:l,variationId:n!==t?n:void 0,unique:!r,targetBuilderElement:g||void 0},a)}function v(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;try{var 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])}catch(e){console.debug("Error parsing tests from URL",e)}},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();try{var n=QueryString.parseDeep(this.modifySearch(t.search||"").substr(1)),r=n.builder;if(r){var i=r.userAttributes,a=r.overrides,o=r.env,s=(r.host,r.api),l=r.cachebust,u=r.noCache,c=r.preview,d=r.editing,p=r.frameEditing,f=r.options,h=r.params;if(i&&this.setUserAttributes(i),f&&(this.queryOptions=__assign(__assign(__assign({},f.locale&&{locale:f.locale}),f.includeRefs&&{includeRefs:f.includeRefs}),f.enrich&&{enrich:f.enrich})),a&&(this.overrides=a),validEnvList.indexOf(o||s)>-1&&(this.env=o||s),e.isEditing){var m=p||d||c;m&&"true"!==m&&(this.editingModel=m)}l&&(this.cachebust=!0),u&&(this.noCache=!0),c&&(this.preview=!0),n&&(this.overrideParams=h)}}catch(e){console.debug("Error parsing overrides from URL",e)}},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;addEventListener("message",(function(n){var r,i,a,o;if(e.isTrustedHostForEvent(n)){var s=n.data;if(s)switch(s.type){case"builder.ping":null===(r=window.parent)||void 0===r||r.postMessage({type:"builder.pong",data:{}},"*");break;case"builder.register":if(n.source===window)break;var l=s.data;if(!l)break;var u=l.type,c=l.info,d=e.registry[u];d||(d=e.registry[u]=[]),d.push(c),e.registryChange.next(e.registry);break;case"builder.settingsChange":if(n.source===window)break;var p=s.data;if(!p)break;Object.assign(e.settings,p),e.settingsChange.next(e.settings);break;case"builder.registerEditor":if(n.source===window)break;var f=s.data;if(!f)break;var h=!!f.component;e.editors.every((function(t,n){return f.name!==t.name||(t.component&&!h||(e.editors[n]=t),!1)}));break;case"builder.triggerAnimation":e.animator.triggerAnimation(s.data);break;case"builder.contentUpdate":var m=s.data.key||s.data.alias||s.data.entry||s.data.modelName,g=s.data.data,v=t.observersByKey[m];v&&!t.noEditorUpdates[m]&&v.next([g]);break;case"builder.getComponents":null===(i=window.parent)||void 0===i||i.postMessage({type:"builder.components",data:e.components.map((function(t){return e.prepareComponentSpecToSend(t)}))},"*");break;case"builder.editingModel":t.editingModel=s.data.model;break;case"builder.registerComponent":var b=s.data;e.addComponent(b);break;case"builder.blockContentLoading":"string"==typeof s.data.model&&(t.blockContentLoading=s.data.model);break;case"builder.editingMode":s.data?(t.editingMode=!0,document.body.classList.add("builder-editing")):(t.editingMode=!1,document.body.classList.remove("builder-editing"));break;case"builder.editingPageMode":var y=s.data;e.editingPage=y;break;case"builder.overrideUserAttributes":var k=s.data;assign(e.overrideUserAttributes,k),t.flushGetContentQueue(!0);break;case"builder.overrideTestGroup":var w=s.data,S=w.variationId,_=w.contentId;S&&_&&(t.setTestCookie(_,S),t.flushGetContentQueue(!0));break;case"builder.evaluate":var x=s.data.text,C=s.data.arguments||[],E=s.data.id,B=new Function(x),T=void 0,P=null;try{T=B.apply(t,C)}catch(e){P=toError$1(e)}P?null===(a=window.parent)||void 0===a||a.postMessage({type:"builder.evaluateError",data:{id:E,error:P.message}},"*"):T&&"function"==typeof T.then?T.then((function(e){var t;null===(t=window.parent)||void 0===t||t.postMessage({type:"builder.evaluateResult",data:{id:E,result:e}},"*")})).catch(console.error):null===(o=window.parent)||void 0===o||o.postMessage({type:"builder.evaluateResult",data:{result:T,id:E}},"*")}}}))},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,a){return void 0===t&&(t=this.defaultCanTrack),n&&(this.request=n),r&&(this.response=r),this.hasOverriddenCanTrack||(this.canTrack=t),this.apiKey=e,i&&(this.authToken=i),a&&(this.apiVersion=a),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(null!==(e=this.request.url)&&void 0!==e?e:""):"object"==typeof location&&(t=parse(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 __assign({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.canTrack&&this.setCookie(e.attributesCookieName,JSON.stringify(this.getUserAttributes())),this.userAttributesChanged.next(t)},e.prototype.setTrackingUserAttributes=function(e){assign(this.trackingUserAttributes,e)},e.prototype.get=function(t,n){var r;void 0===n&&(n={});var i=this,a=n.locale||(null===(r=n.userAttributes)||void 0===r?void 0:r.locale)||this.getUserAttributes().locale;"noTraverse"in n||(n.noTraverse=!1);var o=__assign(__assign({},n),a&&{locale:String(a),userAttributes:__assign({locale:String(a)},n.userAttributes)});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)):((i=new e(n.apiKey||this.apiKey,n.req,n.res,void 0,n.authToken||this.authToken,n.apiVersion||this.apiVersion)).apiEndpoint=this.apiEndpoint,i.setUserAttributes(this.getUserAttributes())),i.queueGetContent(t,o).map((function(t){var n=t&&t[0];if(e.isStatic)return n;var r=n&&n.data;return r?(void 0!==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,a=this.editingModel===t,o=this.observersByKey[i];"DEMO"!==this.apiKey||this.overrides[i]||n.initialContent||(n.initialContent=[]);var s=n.initialContent;if(o&&(!o.value||n.cache))return o.value&&nextTick$1((function(){o.next(o.value)})),o;if(a&&e.isBrowser&&parent.postMessage({type:"builder.updateContent",data:{options:n}},"*"),!s)if(this.getContentQueue||(this.getContentQueue=[]),this.getContentQueue.push(__assign(__assign({},n),{model:t,key:i})),this.getContentQueue&&this.getContentQueue.length>=this.contentPerRequest){var l=this.getContentQueue.slice();this.getContentQueue=[],nextTick$1((function(){r.flushGetContentQueue(!1,l)}))}else nextTick$1((function(){r.flushGetContentQueue()}));var u=new BehaviorSubject(null);return this.observersByKey[i]=u,n.noEditorUpdates&&(this.noEditorUpdates[i]=!0),s&&nextTick$1((function(){u.next(s)})),u},e.prototype.requestUrl=function(e,t){return getFetch()(e,this.addSdkHeaders(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.getSdkHeaders=function(){return e.sdkInfo?{"X-Builder-SDK":e.sdkInfo.name,"X-Builder-SDK-GEN":"1","X-Builder-SDK-Version":e.sdkInfo.version}:{}},e.prototype.addSdkHeaders=function(e){return __assign(__assign({},e),{headers:__assign(__assign({},e.headers),this.getSdkHeaders())})},e.prototype.makeFetchApiCall=function(e,t){return getFetch()(e,this.addSdkHeaders(t))},e.prototype.flattenMongoQuery=function(e,t,n){for(var r in void 0===n&&(n={}),e){var i=e[r],a=t?t+"."+r:r;!i||"object"!=typeof i||Array.isArray(i)||Object.keys(i).find((function(e){return e.startsWith("$")}))?n[a]=i:this.flattenMongoQuery(i,a,n)}return n},e.prototype.flushGetContentQueue=function(t,n){var r,i,a=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 o=n||(t?this.priorContentQueue:this.getContentQueue)||[];this.getOverridesFromQueryString();var s=__assign(__assign({omit:null!==(r=o[0].omit)&&void 0!==r?r:"meta.componentsUsed",apiKey:this.apiKey},o[0].options),this.queryOptions);o[0].locale&&(s.locale=o[0].locale),o[0].fields&&(s.fields=o[0].fields),o[0].format&&(s.format=o[0].format),"noTraverse"in o[0]&&(s.noTraverse=o[0].noTraverse),"includeUnpublished"in o[0]&&(s.includeUnpublished=o[0].includeUnpublished),o[0].sort&&(s.sort=o[0].sort);var l=("undefined"!=typeof location?QueryString.parseDeep(location.search.substr(1)):void 0)||{},u=o&&o[0].userAttributes?o[0].userAttributes:this.targetContent?this.getUserAttributes():{urlPath:this.getLocation().pathname};if(o.find((function(e){return!!e.includeUrl}))){var c=this.getLocation();c.origin&&(s.url="".concat(c.origin).concat(c.pathname).concat(c.search))}var d=null==n?void 0:n.find((function(e){return e.url}));if((null==d?void 0:d.url)&&(u.urlPath=d.url.split("?")[0]),s.userAttributes=JSON.stringify(u),t||n||(this.priorContentQueue=o,this.getContentQueue=null),(this.cachebust||isIframe||l.cachebust||l["builder.cachebust"]||"production"!==this.env)&&(s.cachebust=!0),e.isEditing&&(s.isEditing=!0),(this.noCache||"production"!==this.env)&&(s.noCache=!0),size$2(this.overrides))for(var p in this.overrides)this.overrides.hasOwnProperty(p)&&(s["overrides.".concat(p)]=this.overrides[p]);for(var f=0,h=o;f<h.length;f++){var m=h[f],g=m.format;g&&(s.format=g),m.static&&(s.static=m.static),m.cachebust&&(s.cachebust=m.cachebust),isPositiveNumber(m.cacheSeconds)&&(s.cacheSeconds=m.cacheSeconds),isPositiveNumber(m.staleCacheSeconds)&&(s.staleCacheSeconds=m.staleCacheSeconds),"content"===this.apiEndpoint&&(s.includeRefs=!0);for(var v=0,b=["prerender","extractCss","limit","offset","query","preview","model","entry","rev","static","includeRefs"];v<b.length;v++){var y=m[p=b[v]];void 0!==y&&("query"===this.apiEndpoint?(s.options=s.options||{},s.options[m.key]=s.options[m.key]||{},s.options[m.key][p]=JSON.stringify(y)):s[p]=JSON.stringify(y))}}this.preview&&this.previewingModel===(null===(i=null==o?void 0:o[0])||void 0===i?void 0:i.model)&&(s.preview="true");var k=Object.keys(s).length>0,w=this.host,S=o.map((function(e){return encodeURIComponent(e.key)})).join(",");if(this.overrideParams)assign(s,omit$3(QueryString.parse(this.overrideParams),"apiKey"));var _=s.format,x="solid"===_||"react"===_,C=x||"query"===this.apiEndpoint;if("content"===this.apiEndpoint&&o[0].query){var E=this.flattenMongoQuery({query:o[0].query});for(var p in E)s[p]=E[p];delete s.query}var B,T=QueryString.stringifyDeep(s),P=__assign({headers:{}},o[0].fetchOptions);return this.authToken&&(P.headers=__assign(__assign({},P.headers),{Authorization:"Bearer ".concat(this.authToken)})),B=x?"".concat(w,"/api/v1/codegen/").concat(this.apiKey,"/").concat(S):"query"===this.apiEndpoint?"".concat(w,"/api/v3/query/").concat(this.apiKey,"/").concat(S):"".concat(w,"/api/v3/content/").concat(o[0].model),B+=s&&k?"?".concat(T):"",this.makeFetchApiCall(B,P).then((function(e){return e.json()})).then((function(t){for(var n=0,r=o;n<r.length;n++){var i=r[n],s=i.key;if(i.model!==a.blockContentLoading||i.noEditorUpdates){a.editingModel===i.model&&e.isEditing&&parent.postMessage({type:"builder.updateContent",data:{options:i}},"*");var l=a.observersByKey[s];if(!l)return;var u=C?t[s]:t.results,c=u;if(u){var d=e.isServer?c:a.processResultsForTests(c);l.next(d)}else{if((a.getLocation().search||"").includes("builder.preview="+i.model)){l.next([{id:"preview",name:"Preview",data:{}}])}l.next([])}}}}),(function(e){for(var t=0,n=o;t<n.length;t++){var r=n[t],i=a.observersByKey[r.key];if(!i)return;i.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 __assign(__assign({},e),{data:r.data,variationId:t,testVariationId:t,testVariationName:r.name});if(n.canTrack&&e.variations&&size$2(e.variations)){var i=0,a=Math.random();for(var o in e.variations){var s=e.variations[o];if(a<(i+=s.testRatio)){n.setTestCookie(e.id,s.id);var l=s.name||(s.id===e.id?"Default variation":"");return __assign(__assign({},e),{data:s.data,variationId:s.id,testVariationId:s.id,variationName:l,testVariationName:l})}}n.setTestCookie(e.id,e.id)}return __assign(__assign(__assign({},e),{variationId:e.id}),e.variations&&size$2(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.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,!1,n.authToken||this.authToken,n.apiVersion||this.apiVersion)).setUserAttributes(this.getUserAttributes()),"noTraverse"in n||(n.noTraverse=!0),r.getContent(t,__assign(__assign({limit:30},n),{key:n.key||e.isBrowser?"".concat(t,":").concat(hashSum$1(omit$3(n,"initialContent","req","res"))):void 0})).promise()},e.VERSION=SDK_VERSION,e.components=[],e.isStatic=!0,e.animator=new Animator,e.nextTick=nextTick$1,e.throttle=throttle$1,e.editors=[],e.trustedHosts=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"],e.plugins=[],e.actions=[],e.registry={},e.attributesCookieName="builder.userAttributes",e.registryChange=new BehaviorSubject({}),e._editingPage=!1,e.isIframe=isIframe,e.isBrowser=isBrowser$3,e.isReactNative=isReactNative,e.isServer=!isBrowser$3&&!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$3&&(-1!==location.search.indexOf("builder.preview=")||-1!==location.search.indexOf("builder.frameEditing="))),e.isReact=!1,e.sdkInfo=void 0,e.overrideUserAttributes={},e}(),builder=new Builder(null,void 0,void 0,!0);function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}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
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -7,5 +7,5 @@ var BuilderReact=function(exports){"use strict";var SDK_VERSION$1="8.2.0",_a;"un
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/}Builder.singletonInstance=builder;var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p$1=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v$1=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z$1=Symbol.iterator;function A$1(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z$1&&e[z$1]||e["@@iterator"])?e:null}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$1=Object.assign,D$1={};function E$1(e,t,n){this.props=e,this.context=t,this.refs=D$1,this.updater=n||B$1}function F(){}function G$1(e,t,n){this.props=e,this.context=t,this.refs=D$1,this.updater=n||B$1}E$1.prototype.isReactComponent={},E$1.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E$1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},F.prototype=E$1.prototype;var H$1=G$1.prototype=new F;H$1.constructor=G$1,C$1(H$1,E$1.prototype),H$1.isPureReactComponent=!0;var I$1=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$1={key:!0,ref:!0,__self:!0,__source:!0};function M$1(e,t,n){var r,i={},a=null,o=null;if(null!=t)for(r in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(a=""+t.key),t)J.call(t,r)&&!L$1.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:l,type:e,key:a,ref:o,props:i,_owner:K$1.current}}function N$1(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function O$1(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}function escape(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}var P$1=/\/+/g;function Q$1(e,t){return"object"==typeof e&&null!==e&&null!=e.key?escape(""+e.key):t.toString(36)}function R$1(e,t,r,i,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case l:case n:s=!0}}if(s)return a=a(s=e),e=""===i?"."+Q$1(s,0):i,I$1(a)?(r="",null!=e&&(r=e.replace(P$1,"$&/")+"/"),R$1(a,t,r,"",(function(e){return e}))):null!=a&&(O$1(a)&&(a=N$1(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(P$1,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",I$1(e))for(var u=0;u<e.length;u++){var c=i+Q$1(o=e[u],u);s+=R$1(o,t,r,c,a)}else if("function"==typeof(c=A$1(e)))for(e=c.call(e),u=0;!(o=e.next()).done;)s+=R$1(o=o.value,t,r,c=i+Q$1(o,u++),a);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function S$1(e,t,n){if(null==e)return e;var r=[],i=0;return R$1(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T$1(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var U$1={current:null},V$1={transition:null},W$1={ReactCurrentDispatcher:U$1,ReactCurrentBatchConfig:V$1,ReactCurrentOwner:K$1},Children={map:S$1,forEach:function(e,t,n){S$1(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return S$1(e,(function(){t++})),t},toArray:function(e){return S$1(e,(function(e){return e}))||[]},only:function(e){if(!O$1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Component=E$1,Fragment$1=p$1,Profiler=r,PureComponent=G$1,StrictMode=q,Suspense=w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED$1=W$1,cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C$1({},e.props),i=e.key,a=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,o=K$1.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)J.call(t,u)&&!L$1.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:l,type:e.type,key:i,ref:a,props:r,_owner:o}},createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:t,_context:e},e.Consumer=e},createElement=M$1,createFactory=function(e){var t=M$1.bind(null,e);return t.type=e,t},createRef=function(){return{current:null}},forwardRef=function(e){return{$$typeof:v$1,render:e}},isValidElement=O$1,lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T$1}},memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},startTransition=function(e){var t=V$1.transition;V$1.transition={};try{e()}finally{V$1.transition=t}},unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},useCallback=function(e,t){return U$1.current.useCallback(e,t)},useContext=function(e){return U$1.current.useContext(e)},useDebugValue=function(){},useDeferredValue=function(e){return U$1.current.useDeferredValue(e)},useEffect=function(e,t){return U$1.current.useEffect(e,t)},useId=function(){return U$1.current.useId()},useImperativeHandle=function(e,t,n){return U$1.current.useImperativeHandle(e,t,n)},useInsertionEffect=function(e,t){return U$1.current.useInsertionEffect(e,t)},useLayoutEffect=function(e,t){return U$1.current.useLayoutEffect(e,t)},useMemo=function(e,t){return U$1.current.useMemo(e,t)},useReducer=function(e,t,n){return U$1.current.useReducer(e,t,n)},useRef=function(e){return U$1.current.useRef(e)},useState=function(e){return U$1.current.useState(e)},useSyncExternalStore=function(e,t,n){return U$1.current.useSyncExternalStore(e,t,n)},useTransition=function(){return U$1.current.useTransition()},version$1="18.2.0",react_production_min={Children:Children,Component:Component,Fragment:Fragment$1,Profiler:Profiler,PureComponent:PureComponent,StrictMode:StrictMode,Suspense:Suspense,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED$1,cloneElement:cloneElement,createContext:createContext,createElement:createElement,createFactory:createFactory,createRef:createRef,forwardRef:forwardRef,isValidElement:isValidElement,lazy:lazy,memo:memo,startTransition:startTransition,unstable_act:unstable_act,useCallback:useCallback,useContext:useContext,useDebugValue:useDebugValue,useDeferredValue:useDeferredValue,useEffect:useEffect,useId:useId,useImperativeHandle:useImperativeHandle,useInsertionEffect:useInsertionEffect,useLayoutEffect:useLayoutEffect,useMemo:useMemo,useReducer:useReducer,useRef:useRef,useState:useState,useSyncExternalStore:useSyncExternalStore,useTransition:useTransition,version:version$1},react=createCommonjsModule((function(e){e.exports=react_production_min}));react.cloneElement;var react_2=react.createContext,react_3=react.useContext,react_4=react.Component,react_5=react.useRef,react_6=react.createElement,react_7=react.forwardRef,react_8=react.Fragment,react_9=react.useEffect,react_10=react.useState;function sheetForTag(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]}function createStyleElement(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}var StyleSheet=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=createStyleElement(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=sheetForTag(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,a?0:i.cssRules.length)}catch(e){}}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}();function stylis_min(e){function t(e,t,r){var i=t.trim().split(h);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var u=0;u<o;++u)t[l++]=n(e[u]+" ",i[s],r).trim()}return t}function n(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 r(e,t,n,a){var o=e+";",s=2*t+3*n+4*a;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===P||2===P&&i(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!i(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(C,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return p.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(y,"tb");break;case 232:l=o.replace(y,"tb-rl");break;case 220:l=o.replace(y,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(S,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(S,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+a&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+o}return o}function i(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(_,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function o(e,t,n,r,i,a,o,s,u,c){for(var d,p=0,f=t;p<N;++p)switch(d=O[p].call(l,e,f,n,r,i,a,o,s,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?P=1:(P=2,I=e):P=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<N){var l=o(-1,n,s,s,B,E,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,s,l,d,p){for(var f,h,m,y,w,S=0,_=0,x=0,C=0,O=0,I=0,L=m=f=0,A=0,M=0,z=0,F=0,D=l.length,V=D-1,$="",U="",W="",q="";A<D;){if(h=l.charCodeAt(A),A===V&&0!==_+C+x+S&&(0!==_&&(h=47===_?10:47),C=x=S=0,D++,V++),0===_+C+x+S){if(A===V&&(0<M&&($=$.replace(c,"")),0<$.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:$+=l.charAt(A)}h=59}switch(h){case 123:for(f=($=$.trim()).charCodeAt(0),m=1,F=++A;A<D;){switch(h=l.charCodeAt(A)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(A+1)){case 42:case 47:e:{for(L=A+1;L<V;++L)switch(l.charCodeAt(L)){case 47:if(42===h&&42===l.charCodeAt(L-1)&&A+2!==L){A=L+1;break e}break;case 10:if(47===h){A=L+1;break e}}A=L}}break;case 91:h++;case 40:h++;case 34:case 39:for(;A++<V&&l.charCodeAt(A)!==h;);}if(0===m)break;A++}switch(m=l.substring(F,A),0===f&&(f=($=$.replace(u,"").trim()).charCodeAt(0)),f){case 64:switch(0<M&&($=$.replace(c,"")),h=$.charCodeAt(1)){case 100:case 109:case 115:case 45:M=s;break;default:M=j}if(F=(m=e(s,M,m,h,p+1)).length,0<N&&(w=o(3,m,M=t(j,$,z),s,B,E,F,h,p,d),$=M.join(""),void 0!==w&&0===(F=(m=w.trim()).length)&&(h=0,m="")),0<F)switch(h){case 115:$=$.replace(k,a);case 100:case 109:case 45:m=$+"{"+m+"}";break;case 107:m=($=$.replace(g,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=$+m,112===d&&(U+=m,m="")}else m="";break;default:m=e(s,t(s,$,z),m,d,p+1)}W+=m,m=z=M=L=f=0,$="",h=l.charCodeAt(++A);break;case 125:case 59:if(1<(F=($=(0<M?$.replace(c,""):$).trim()).length))switch(0===L&&(f=$.charCodeAt(0),45===f||96<f&&123>f)&&(F=($=$.replace(" ",":")).length),0<N&&void 0!==(w=o(1,$,s,n,B,E,U.length,d,p,d))&&0===(F=($=w.trim()).length)&&($="\0\0"),f=$.charCodeAt(0),h=$.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){q+=$+l.charAt(A);break}default:58!==$.charCodeAt(F-1)&&(U+=r($,f,h,$.charCodeAt(2)))}z=M=L=f=0,$="",h=l.charCodeAt(++A)}}switch(h){case 13:case 10:47===_?_=0:0===1+f&&107!==d&&0<$.length&&(M=1,$+="\0"),0<N*R&&o(0,$,s,n,B,E,U.length,d,p,d),E=1,B++;break;case 59:case 125:if(0===_+C+x+S){E++;break}default:switch(E++,y=l.charAt(A),h){case 9:case 32:if(0===C+S+_)switch(O){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===C+_+S&&(M=z=1,y="\f"+y);break;case 108:if(0===C+_+S+T&&0<L)switch(A-L){case 2:112===O&&58===l.charCodeAt(A-3)&&(T=O);case 8:111===I&&(T=I)}break;case 58:0===C+_+S&&(L=A);break;case 44:0===_+x+C+S&&(M=1,y+="\r");break;case 34:case 39:0===_&&(C=C===h?0:0===C?h:C);break;case 91:0===C+_+x&&S++;break;case 93:0===C+_+x&&S--;break;case 41:0===C+_+S&&x--;break;case 40:if(0===C+_+S){if(0===f)switch(2*O+3*I){case 533:break;default:f=1}x++}break;case 64:0===_+x+C+S+L+m&&(m=1);break;case 42:case 47:if(!(0<C+S+x))switch(_){case 0:switch(2*h+3*l.charCodeAt(A+1)){case 235:_=47;break;case 220:F=A,_=42}break;case 42:47===h&&42===O&&F+2!==A&&(33===l.charCodeAt(F+2)&&(U+=l.substring(F,A+1)),y="",_=0)}}0===_&&($+=y)}I=O,O=h,A++}if(0<(F=U.length)){if(M=s,0<N&&(void 0!==(w=o(2,U,M,n,B,E,F,d,p,d))&&0===(U=w).length))return q+U+W;if(U=M.join(",")+"{"+U+"}",0!=P*T){switch(2!==P||i(U,2)||(T=0),T){case 111:U=U.replace(b,":-moz-$1")+U;break;case 112:U=U.replace(v,"::-webkit-input-$1")+U.replace(v,"::-moz-$1")+U.replace(v,":-ms-input-$1")+U}T=0}}return q+U+W}(j,s,n,0,0);return 0<N&&(void 0!==(l=o(-2,d,s,s,B,E,d.length,0,0,0))&&(d=l)),"",T=0,E=B=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,E=1,B=1,T=0,P=1,j=[],O=[],N=0,I=null,R=0;return l.use=function e(t){switch(t){case void 0:case null:N=O.length=0;break;default:if("function"==typeof t)O[N++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},l.set=s,void 0!==e&&s(e),l}var weakMemoize=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}},delimiter="/*|*/",needle=delimiter+"}";function toSheet(e){e&&Sheet.current.insert(e+"}")}var Sheet={current:null},ruleSheet=function(e,t,n,r,i,a,o,s,l,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Sheet.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+delimiter;break;case 3:switch(s){case 102:case 112:return Sheet.current.insert(n[0]+t),"";default:return t+(0===u?delimiter:"")}case-2:t.split(needle).forEach(toSheet)}},removeLabel=function(e,t){if(1===e&&108===t.charCodeAt(0)&&98===t.charCodeAt(2))return""},isBrowser$2="undefined"!=typeof document,rootServerStylisCache={},getServerStylisCache=isBrowser$2?void 0:weakMemoize((function(){var e=weakMemoize((function(){return{}})),t={},n={};return function(r){return void 0===r||!0===r?t:!1===r?n:e(r)}})),createCache=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,i,a=new stylis_min(t),o={};if(isBrowser$2){r=e.container||document.head;var s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==r&&r.appendChild(e)}))}if(isBrowser$2)a.use(e.stylisPlugins)(ruleSheet),i=function(e,t,n,r){var i=t.name;Sheet.current=n,a(e,t.styles),r&&(u.inserted[i]=!0)};else{a.use(removeLabel);var l=rootServerStylisCache;(e.stylisPlugins||void 0!==e.prefix)&&(a.use(e.stylisPlugins),l=getServerStylisCache(e.stylisPlugins||rootServerStylisCache)(e.prefix));i=function(e,t,n,r){var i=t.name,o=function(e,t){var n=t.name;return void 0===l[n]&&(l[n]=a(e,t.styles)),l[n]}(e,t);return void 0===u.compat?(r&&(u.inserted[i]=!0),o):r?void(u.inserted[i]=o):o}}var u={key:n,sheet:new StyleSheet({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:i};return u},isBrowser$1="undefined"!=typeof document;function getRegisteredStyles(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var insertStyles=function(e,t,n){var r=e.key+"-"+t.name;if((!1===n||!1===isBrowser$1&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i="",a=t;do{var o=e.insert("."+r,a,e.sheet,!0);isBrowser$1||void 0===o||(i+=o),a=a.next}while(void 0!==a);if(!isBrowser$1&&0!==i.length)return i}};function murmur2(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)}var unitlessKeys={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};function memoize(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize((function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,(function(e,t,n){return cursor={name:t,styles:n,next:cursor},t}))}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"};function handleInterpolation(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 cursor={name:n.name,styles:n.styles,next:cursor},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)cursor={name:i.name,styles:i.styles,next:cursor},i=i.next;return n.styles+";"}return createStringFromObject(e,t,n);case"function":if(void 0!==e){var a=cursor,o=n(e);return cursor=a,handleInterpolation(e,t,o,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=handleInterpolation(e,t,n[i],!1);else for(var a in n){var o=n[a];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=a+"{"+t[o]+"}":isProcessableValue(o)&&(r+=processStyleName(a)+":"+processStyleValue(a,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=handleInterpolation(e,t,o,!1);switch(a){case"animation":case"animationName":r+=processStyleName(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<o.length;l++)isProcessableValue(o[l])&&(r+=processStyleName(a)+":"+processStyleValue(a,o[l])+";")}return r}var labelPattern=/label:\s*([^\s;\n{]+)\s*;/g,cursor,serializeStyles=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="";cursor=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,i+=handleInterpolation(n,t,a,!1)):i+=a[0];for(var o=1;o<e.length;o++)i+=handleInterpolation(n,t,e[o],46===i.charCodeAt(i.length-1)),r&&(i+=a[o]);labelPattern.lastIndex=0;for(var s,l="";null!==(s=labelPattern.exec(i));)l+="-"+s[1];return{name:murmur2(i)+l,styles:i,next:cursor}},isBrowser="undefined"!=typeof document,hasOwnProperty=Object.prototype.hasOwnProperty,EmotionCacheContext=react_2("undefined"!=typeof HTMLElement?createCache():null),ThemeContext=react_2({});EmotionCacheContext.Provider;var withEmotionCache=function(e){return react_7((function(t,n){return react_6(EmotionCacheContext.Consumer,null,(function(r){return e(t,r,n)}))}))};if(!isBrowser){var BasicProvider=function(e){function t(t,n,r){var i;return(i=e.call(this,t,n,r)||this).state={value:createCache()},i}return _inheritsLoose(t,e),t.prototype.render=function(){return react_6(EmotionCacheContext.Provider,this.state,this.props.children(this.state.value))},t}(react_4);withEmotionCache=function(e){return function(t){return react_6(EmotionCacheContext.Consumer,null,(function(n){return null===n?react_6(BasicProvider,null,(function(n){return e(t,n)})):e(t,n)}))}}}var typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(e,t){var n={};for(var r in t)hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n[typePropName]=e,n},Noop$1=function(){return null},render$1=function(e,t,n,r){var i=null===n?t.css:t.css(n);"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var a=t[typePropName],o=[i],s="";"string"==typeof t.className?s=getRegisteredStyles(e.registered,o,t.className):null!=t.className&&(s=t.className+" ");var l=serializeStyles(o),u=insertStyles(e,l,"string"==typeof a);s+=e.key+"-"+l.name;var c={};for(var d in t)hasOwnProperty.call(t,d)&&"css"!==d&&d!==typePropName&&(c[d]=t[d]);c.ref=r,c.className=s;var p=react_6(a,c),f=react_6(Noop$1,null);if(!isBrowser&&void 0!==u){for(var h,m=l.name,g=l.next;void 0!==g;)m+=" "+g.name,g=g.next;f=react_6("style",((h={})["data-emotion-"+e.key]=m,h.dangerouslySetInnerHTML={__html:u},h.nonce=e.sheet.nonce,h))}return react_6(react_8,null,f,p)},Emotion=withEmotionCache((function(e,t,n){return"function"==typeof e.css?react_6(ThemeContext.Consumer,null,(function(r){return render$1(t,e,r,n)})):render$1(t,e,null,n)}));function css(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return serializeStyles(t)}var jsx=function(e,t){var n=arguments;if(null==t||!hasOwnProperty.call(t,"css"))return react_6.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Emotion,i[1]=createEmotionProps(e,t);for(var a=2;a<r;a++)i[a]=n[a];return react_6.apply(null,i)},classnames=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(null!=a){var o=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))o=e(a);else for(var s in o="",a)a[s]&&s&&(o&&(o+=" "),o+=s);break;default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function merge(e,t,n){var r=[],i=getRegisteredStyles(e,r,n);return r.length<2?n:i+t(r)}var Noop=function(){return null},ClassNames=withEmotionCache((function(e,t){return react_6(ThemeContext.Consumer,null,(function(n){var r="",i="",a=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];var o=serializeStyles(n,t.registered);if(isBrowser)insertStyles(t,o,!1);else{var s=insertStyles(t,o,!1);void 0!==s&&(r+=s)}return isBrowser||(i+=" "+o.name),t.key+"-"+o.name},o={css:a,cx:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return merge(t.registered,a,classnames(n))},theme:n},s=e.children(o);var l,u=react_6(Noop,null);isBrowser||0===r.length||(u=react_6("style",((l={})["data-emotion-"+t.key]=i.substring(1),l.dangerouslySetInnerHTML={__html:r},l.nonce=t.sheet.nonce,l)));return react_6(react_8,null,u,s)}))})),fastClone=function(e){return JSON.parse(JSON.stringify(e))},omit$2=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=Object.assign({},e),i=0,a=t;i<a.length;i++){var o=a[i];delete r[o]}return r},sizeNames=["xsmall","small","medium","large"],sizes={xsmall:{min:0,default:160,max:320},small:{min:321,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=__assign(__assign({},sizes),fastClone(sizes));if(!e)return t;var n=e.xsmall,r=e.small,i=e.medium;if(n){var a=Math.floor(n/2);t.xsmall={max:n,min:a,default:a+1}}if(!r||!i)return t;var o=n?t.xsmall.max+1:Math.floor(r/2);t.small={max:r,min:o,default:o+1};var s=t.small.max+1;t.medium={max:i,min:s,default:s+1};var l=t.medium.max+1;return t.large={max:2e3,min:l,default:l+1},t},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.isServer&&"function"==typeof require)try{safeDynamicRequire=eval("require")}catch(e){safeDynamicRequire=(null===globalThis||void 0===globalThis?void 0:globalThis.require)?globalThis.require:noop}function isDebug(){return Boolean("undefined"!=typeof process&&void 0!==process.env&&process.env.DEBUG)}function isNodeRuntime(){var e;return"undefined"!=typeof process&&Boolean(null===(e=null===process||void 0===process?void 0:process.versions)||void 0===e?void 0:e.node)}null!=safeDynamicRequire||(safeDynamicRequire=noop);var shouldForceBrowserRuntimeInNode=function(){var e;if(!isNodeRuntime())return!1;var t="arm64"===process.arch,n=process.version.startsWith("v20"),r=null===(e=process.env.NODE_OPTIONS)||void 0===e?void 0:e.includes("--no-node-snapshot");return!(!t||!n||r)&&(console.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/react/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0)},fnCache={},api=function(e){return builder};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 a=t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))||e.trim().startsWith("builder.run"),o=function(){};try{Builder.isBrowser&&(o=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 var log = console.log.bind(console);\n with (rootState) {\n ".concat(a?"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.isBrowser&&console.warn("Function compile error in ".concat(e),t)}var l=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{if(Builder.isBrowser||shouldForceBrowserRuntimeInNode())return o.apply(void 0,t);var i=getIsolateContext(),s=safeDynamicRequire("isolated-vm"),l=i.evalClosureSync(makeFn(e,a),t.map((function(e,t){return"object"==typeof e?new s.Reference(t===indexOfBuilderInstance?__assign(__assign({},e),{getUserAttributes:function(){return e.getUserAttributes("")}}):e):null})));try{var u=JSON.parse(l);return u}catch(e){return l}}catch(t){return Builder.isBrowser?console.warn("Builder custom code error:",t.message||t,"in",e,t.stack||t):isDebug()&&console.debug("Builder custom code error:",t.message||t,"in",e,t.stack||t),n&&n.push(t),null}};return Builder.isBrowser&&(fnCache[i]=l),l}var indexOfBuilderInstance=3,makeFn=function(e,t,n){var r=n||["state","event","block","builder","Device","update","Builder","context"];return"\n".concat("\n var refToProxy = (obj) => {\n if (typeof obj !== 'object' || obj === null) {\n return obj;\n }\n return new Proxy({}, {\n get(target, key) {\n if (key === 'copySync') {\n return () => obj.copySync();\n }\n const val = obj.getSync(key);\n if (typeof val?.copySync === 'function') {\n return JSON.parse(stringify(val));\n }\n return val;\n },\n set(target, key, value) {\n obj.setSync(key, value);\n },\n deleteProperty(target, key) {\n obj.deleteSync(key);\n }\n })\n }\n","\n").concat("\n var stringify = (val) => {\n if (typeof val === 'object' && val !== null) {\n return JSON.stringify(val.copySync ? val.copySync() : val);\n }\n return val;\n }\n ","\n").concat(r.map((function(e,t){return"var ".concat(e," = refToProxy($").concat(t,");")})).join("\n")).concat("\n".concat(r.includes("context")?"var ctx = context;":"","\nvar endResult = function() {\n ").concat(t?"return (".concat(e,");"):e,";\n};\n\nreturn stringify(endResult());\n"))},getIsolateContext=function(){var e=Builder.serverContext;e||(e=new(safeDynamicRequire("isolated-vm").Isolate)({memoryLimit:128}).createContextSync(),Builder.setServerContext(e));var t=e.global;return t.setSync("global",t.derefInto()),t.setSync("log",(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];isDebug()&&console.log.apply(console,e)})),e},isPromise=function(e){return"function"==typeof e.then},isRequestInfo=function(e){return!isPromise(e)},BuilderAsyncRequestsContext=react.createContext({requests:[],errors:[],logs:[]}),BuilderStoreContext=react.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,a=t.value,o=r.split(/\//);""===o[0]&&o.shift();for(var s=n?e:__assign({},e),l=s,u=0;u<o.length;u++){var c=u===o.length-1,d=o[u];if(c){if("replace"===i)l[d]=a;else if("add"===i){var p=Number(d);Array.isArray(l)?"-"===d?l.push(a):l.splice(p,0,a):l[d]=a}else if("remove"===i){p=Number(d);Array.isArray(l)?l.splice(p,1):delete l[d]}}else{var f=o[u+1],h=Object(l[d])===l[d]?l[d]:String(Number(f))===f?[]:{};l=l[d]=Array.isArray(h)?__spreadArray([],h,!0):__assign({},h)}}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.createElement(BuilderStoreContext.Consumer,null,(function(t){return t.renderLink?t.renderLink(e):react.createElement("a",__assign({},e))}))};function traverse(e,t,n,r,i){void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=new WeakSet),null!=e&&"object"==typeof e?i.has(e)||(i.add(e),Array.isArray(e)?e.forEach((function(n,r){t(n,(function(t){e[r]=t})),traverse(n,t,e,r,i)})):Object.entries(e).forEach((function(n){var r=n[0],a=n[1];t(a,(function(t){e[r]=t})),traverse(a,t,e,r,i)}))):t(e,(function(e){null!==n&&null!==r&&(n[r]=e)}))}var isLocalizedField=function(e){return e&&"object"==typeof e&&"@builder.io/core:LocalizedValue"===e["@type"]},containsLocalizedValues=function(e){if(!e||!Object.getOwnPropertyNames(e).length)return!1;var t=!1;return traverse(e,(function(e){isLocalizedField(e)&&(t=!0)})),t},extractLocalizedValues=function(e,t){return e&&Object.getOwnPropertyNames(e).length?(traverse(e,(function(e,n){var r;isLocalizedField(e)&&n(null!==(r=e[t])&&void 0!==r?r:void 0)})),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};function deepCloneWithConditions(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map((function(e){return deepCloneWithConditions(e)}));if("@builder.io/sdk:Element"===e["@type"])return e;var t={};for(var n in e)"meta"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=deepCloneWithConditions(e[n]));return t}var 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.hydrated=!1,_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}),BuilderBlock.prototype.emotionCss=function(e){var t,n,r,i,a,o,s,l,u=this.block,c=u.animations&&u.animations[0];if(c&&"hover"!==c.trigger){var d=c&&c.steps&&c.steps[0],p=d&&d.styles;p&&(l=p)}var f=sizeNames.slice().reverse(),h={};if(e)for(var m=Boolean(null===(r=null===(n=null===(t=this.privateState.context.builderContent)||void 0===t?void 0:t.meta)||void 0===n?void 0:n.breakpoints)||void 0===r?void 0:r.xsmall),g=0,v=f;g<v.length;g++){var b=v[g];if(m||"xsmall"!==b)if("large"===b)this.props.emailMode||(h["&.builder-block"]=Object.assign({},e[b],l));else{var y=getSizesForBreakpoints((null===(a=null===(i=this.privateState.context.builderContent)||void 0===i?void 0:i.meta)||void 0===a?void 0:a.breakpoints)||{});h["@media only screen and (max-width: ".concat(y[b].max,"px)")]={"&.builder-block":e[b]}}}var k=u.animations&&u.animations.find((function(e){return"hover"===e.trigger}));return k&&(h[":hover"]=(null===(s=null===(o=k.steps)||void 0===o?void 0:o[1])||void 0===s?void 0:s.styles)||{},h.transition="all ".concat(k.duration,"s ").concat(camelCaseToKebabCase(k.easing)),k.delay&&(h.transitionDelay=k.delay+"s")),h},BuilderBlock.prototype.eval=function(e){return this.stringToFunction(e)(this.privateState.state,void 0,this.block,builder,Device,this.privateState.update,Builder,this.privateState.context)},BuilderBlock.prototype.componentWillUnmount=function(){Builder.isEditing&&removeEventListener("message",this.onWindowMessage)},BuilderBlock.prototype.componentDidMount=function(){var e,t=this;this.hydrated=!0;var n=this.block,r=n&&n.animations;if(Builder.isEditing&&addEventListener("message",this.onWindowMessage),r){var i={animations:fastClone(r)};if(n.bindings)for(var a in n.bindings)if((null===(e=a.trim)||void 0===e?void 0:e.call(a))&&a.startsWith("animations.")){var o=this.stringToFunction(n.bindings[a]);void 0!==o&&set(i,a,o(this.privateState.state,null,n,builder,null,null,Builder,this.privateState.context))}Builder.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,a,o,s,l=this;void 0===e&&(e=0),void 0===t&&(t=this.privateState.state);var u=this.props;u.child,u.fieldName;var c,d=this.block,p=(d.tagName||"div").toLowerCase();if("template"===p){var f=d.children?d.children.map((function(e){return blockToHtmlString(e)})).join(" "):"";return console.debug("template html",f),jsx("template",__assign({},d.properties,{dangerouslySetInnerHTML:{__html:f}}))}var h=d.component&&(d.component.name||d.component.component),m=null;d.component&&!d.component.class&&(d.component&&d.component.tag?c=d.component.tag:(m=Builder.components.find((function(e){return e.name===h}))||null)&&m.class?c=m.class:m&&m.tag?c=m.tag:(null==h?void 0:h.startsWith("Builder:"))?console.warn("Missing @builder.io/widgets installation, please install and import @builder.io/widgets to use ".concat(h.split(":")[1]," in your content, more info here: https://github.com/BuilderIO/builder/tree/main/packages/widgets")):h&&console.warn("Missing registration for ".concat(h,", have you included the registration in your bundle?")));var g=__assign(__assign({},d.properties),{style:{},responsiveStyles:fastClone(d.responsiveStyles||{})});if(g=__assign(__assign({},g.properties),g),d.component&&(g.component=deepCloneWithConditions(d.component)),d.bindings)for(var v in d.bindings)if(null===(r=v.trim)||void 0===r?void 0:r.call(v)){var b=this.stringToFunction(d.bindings[v]);set(g,v,b(t,null,d,api(),Device,null,Builder,this.privateState.context))}if(g.hide)return null;if(delete g.hide,("show"in g||d.bindings&&d.bindings.show)&&!g.show)return null;if(delete g.show,d.actions){var y=function(e){if(!(null===(i=e.trim)||void 0===i?void 0:i.call(e)))return"continue";var n=d.actions[e];g["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,l.privateState.rootState[t]=n,!0}})),l.stringToFunction(n,!1)(r,e,l.block,builder,Device,l.privateState.update,Builder,l.privateState.context)}};for(var v in d.actions)y(v)}var k=(g.component||g.options)&&__assign(__assign({},g.options),g.component.options||g.component.data);containsLocalizedValues(k)&&(this.privateState.state.locale||console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"),k=extractLocalizedValues(k,null!==(a=this.privateState.state.locale)&&void 0!==a?a:"Default"));var w=voidElements.has(p),S=m&&(m.fragment||m.noWrap),_=(null===(o=g.attr)||void 0===o?void 0:o.style)||("string"==typeof g.style?g.style:"")||"";if("string"==typeof _){"object"!=typeof g.style&&(g.style={});for(var x=0,C=_.split(";");x<C.length;x++){var E=C[x].split(":");if(!E.length)return;v=E[0],b=E[1];v&&(E.length>2&&(b=E.slice(1).join(":")),g.style[kebabCaseToCamelCase(v)]=b)}}var B=__assign(__assign(__assign({},omit$1(g,["class","component","attr","responsiveStyles"])),((n={})["string"!=typeof p||p.includes("-")?"class":"className"]="builder-block ".concat(this.id).concat(d.class?" ".concat(d.class):"").concat(!d.component||["Image","Video","Banner"].indexOf(h)>-1?"":" builder-has-component")+(g.class?" "+g.class:"")+(this.hydrated&&Builder.isEditing&&(null===(s=this.privateState.state._spacer)||void 0===s?void 0:s.parent)===d.id?" builder-spacer-parent":""),n.key=this.id+e,n["builder-id"]=this.id,n)),0!==e&&{"builder-index":e});Builder.isEditing&&this.hydrated&&(B["builder-inline-styles"]=g.attr&&g.attr.style?Object.keys(g.style).reduce((function(e,t){return(e?"".concat(e,";"):"")+"".concat(cssCase(t),":").concat(g.style[t],";")}),""):""),(B.properties&&B.properties.href||B.href)&&"div"===p&&(p="a"),"a"===p&&(p=Link);var T=d.children||B.children||[];return jsx(react.Fragment,null,jsx(ClassNames,null,(function(e){var t=e.css;if(e.cx,!l.props.emailMode){var n=" "+t(l.emotionCss(g.responsiveStyles));B.class&&(B.class+=n),B.className&&(B.className+=n)}return jsx(BuilderAsyncRequestsContext.Consumer,null,(function(e){return l._asyncRequests=e&&e.requests,l._errors=e&&e.errors,l._logs=e&&e.logs,w?jsx(p,__assign({},B)):c&&(S||l.props.emailMode)?jsx(c,__assign({},k,{attributes:B,builderBlock:d,builderState:l.privateState})):jsx(p,__assign({},B),c&&jsx(c,__assign({builderState:l.privateState,builderBlock:d},k)),d.text||g.text?g.text:!c&&T&&Array.isArray(T)&&T.length?T.map((function(e,t){return jsx(BuilderBlock,{key:(l.id||"")+t,block:e,index:t,size:l.props.size,fieldName:l.props.fieldName,child:l.props.child,emailMode:l.props.emailMode})})):null)}))})))},Object.defineProperty(BuilderBlock.prototype,"id",{get:function(){var e=this.block;return e.id&&!e.id.startsWith("builder")?"builder-"+e.id: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(".")),a=n.repeat.itemName||(i?i+"Item":"item"),o=this.stringToFunction(r)(e.state,null,n,api(),Device,null,Builder,this.privateState.context);return Array.isArray(o)?o.map((function(n,r){var i,o=__assign(__assign({},e.state),((i={$index:r,$item:n})[a]=n,i["$".concat(a,"Index")]=r,i));return jsx(BuilderStoreContext.Provider,{key:r,value:__assign(__assign({},e),{state:o})},t.getElement(r,o))})):null}return this.getElement()},BuilderBlock.prototype.render=function(){var e=this;return this.state.hasError?jsx("span",{css:{display:"inline-block",padding:5,color:"#999",fontSize:11,fontStyle:"italic"}},"Builder block error :( Check console for details"):jsx(BuilderStoreContext.Consumer,null,(function(t){return e.contents(t)}))},BuilderBlock}(react.Component),scheduler_production_min=createCommonjsModule((function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>a(l,n))u<i&&0>a(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,k(e),!m)if(null!==r(u))m=!0,I(S);else{var t=r(c);null!==t&&R(w,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,b(E),E=-1),h=!0;var a=f;try{for(k(n),p=r(u);null!==p&&(!(p.expirationTime>n)||e&&!P());){var o=p.callback;if("function"==typeof o){p.callback=null,f=p.priorityLevel;var s=o(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(u)&&i(u),k(n)}else i(u);p=r(u)}if(null!==p)var l=!0;else{var d=r(c);null!==d&&R(w,d.startTime-n),l=!1}return l}finally{p=null,f=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,x=!1,C=null,E=-1,B=5,T=-1;function P(){return!(t.unstable_now()-T<B)}function j(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?_():(x=!1,C=null)}}else x=!1}if("function"==typeof y)_=function(){y(j)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,N=O.port2;O.port1.onmessage=j,_=function(){N.postMessage(null)}}else _=function(){v(j,0)};function I(e){C=e,x||(x=!0,_())}function R(e,n){E=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,I(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(g?(b(E),E=-1):g=!0,R(w,a-o))):(e.sortIndex=s,n(u,e),m||h||(m=!0,I(S))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}));scheduler_production_min.unstable_now,scheduler_production_min.unstable_IdlePriority,scheduler_production_min.unstable_ImmediatePriority,scheduler_production_min.unstable_LowPriority,scheduler_production_min.unstable_NormalPriority,scheduler_production_min.unstable_Profiling,scheduler_production_min.unstable_UserBlockingPriority,scheduler_production_min.unstable_cancelCallback,scheduler_production_min.unstable_continueExecution,scheduler_production_min.unstable_forceFrameRate,scheduler_production_min.unstable_getCurrentPriorityLevel,scheduler_production_min.unstable_getFirstCallbackNode,scheduler_production_min.unstable_next,scheduler_production_min.unstable_pauseExecution,scheduler_production_min.unstable_requestPaint,scheduler_production_min.unstable_runWithPriority,scheduler_production_min.unstable_scheduleCallback,scheduler_production_min.unstable_shouldYield,scheduler_production_min.unstable_wrapCallback;var scheduler=createCommonjsModule((function(e){e.exports=scheduler_production_min}));function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(e,t){ha(e,t),ha(e+"Capture",t)}function ha(e,t){for(ea[e]=t,e=0;e<t.length;e++)da.add(t[e])}var ia=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function oa(e){return!!ja.call(ma,e)||!ja.call(la,e)&&(ka.test(e)?ma[e]=!0:(la[e]=!0,!1))}function pa(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}function qa(e,t,n,r){if(null==t||pa(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){z[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];z[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){z[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){z[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){z[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){z[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){z[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){z[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){z[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ra=/[\-:]([a-z])/g;function sa(e){return e[1].toUpperCase()}function ta(e,t,n,r){var i=z.hasOwnProperty(t)?z[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(qa(t,n,i,r)&&(n=null),r||null===i?oa(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ra,sa);z[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ra,sa);z[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ra,sa);z[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){z[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),z.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){z[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var ua=react.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ja&&e[Ja]||e["@@iterator"])?e:null}var A=Object.assign,La;function Ma(e){if(void 0===La)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);La=t&&t[1]||""}return"\n"+La+e}var Na=!1;function Oa(e,t){if(!e||Na)return"";Na=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var l="\n"+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{Na=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ma(e):""}function Pa(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=Oa(e.type,!1);case 11:return e=Oa(e.type.render,!1);case 1:return e=Oa(e.type,!0);default:return""}}function Qa(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ca:return(e.displayName||"Context")+".Consumer";case Ba:return(e._context.displayName||"Context")+".Provider";case Da:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ga:return null!==(t=e.displayName||null)?t:Qa(e.type)||"Memo";case Ha:t=e._payload,e=e._init;try{return Qa(e(t))}catch(e){}}return null}function Ra(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(t);case 8:return t===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Ta(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ua(e){var t=Ta(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Va(e){e._valueTracker||(e._valueTracker=Ua(e))}function Wa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ta(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Xa(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ya(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Za(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Sa(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ab(e,t){null!=(t=t.checked)&&ta(e,"checked",t,!1)}function bb(e,t){ab(e,t);var n=Sa(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?cb(e,t.type,n):t.hasOwnProperty("defaultValue")&&cb(e,t.type,Sa(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function db(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function cb(e,t,n){"number"===t&&Xa(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var eb=Array.isArray;function fb(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Sa(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function gb(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(p(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hb(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(p(92));if(eb(n)){if(1<n.length)throw Error(p(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Sa(n)}}function ib(e,t){var n=Sa(t.value),r=Sa(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function jb(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function kb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?kb(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var mb,nb=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((mb=mb||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=mb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ob(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];function rb(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pb.hasOwnProperty(e)&&pb[e]?(""+t).trim():t+"px"}function sb(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=rb(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pb).forEach((function(e){qb.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pb[t]=pb[e]}))}));var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(e,t){if(t){if(tb[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(p(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(p(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(p(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(p(62))}}function vb(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var yb=null,zb=null,Ab=null;function Bb(e){if(e=Cb(e)){if("function"!=typeof yb)throw Error(p(280));var t=e.stateNode;t&&(t=Db(t),yb(e.stateNode,e.type,t))}}function Eb(e){zb?Ab?Ab.push(e):Ab=[e]:zb=e}function Fb(){if(zb){var e=zb,t=Ab;if(Ab=zb=null,Bb(e),t)for(e=0;e<t.length;e++)Bb(t[e])}}function Gb(e,t){return e(t)}function Hb(){}var Ib=!1;function Jb(e,t,n){if(Ib)return e(t,n);Ib=!0;try{return Gb(e,t,n)}finally{Ib=!1,(null!==zb||null!==Ab)&&(Hb(),Fb())}}function Kb(e,t){var n=e.stateNode;if(null===n)return null;var r=Db(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(p(231,t,typeof n));return n}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch(e){Lb=!1}function Nb(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(e){Ob=!0,Pb=e}};function Tb(e,t,n,r,i,a,o,s,l){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(e,t,n,r,i,a,o,s,l){if(Tb.apply(this,arguments),Ob){if(!Ob)throw Error(p(198));var u=Pb;Ob=!1,Pb=null,Qb||(Qb=!0,Rb=u)}}function Vb(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Wb(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xb(e){if(Vb(e)!==e)throw Error(p(188))}function Yb(e){var t=e.alternate;if(!t){if(null===(t=Vb(e)))throw Error(p(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Xb(i),e;if(a===r)return Xb(i),t;a=a.sibling}throw Error(p(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(p(189))}}if(n.alternate!==r)throw Error(p(190))}if(3!==n.tag)throw Error(p(188));return n.stateNode.current===n?e:t}function Zb(e){return null!==(e=Yb(e))?$b(e):null}function $b(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$b(e);if(null!==t)return t;e=e.sibling}return null}var ac=scheduler.unstable_scheduleCallback,bc=scheduler.unstable_cancelCallback,cc=scheduler.unstable_shouldYield,dc=scheduler.unstable_requestPaint,B=scheduler.unstable_now,ec=scheduler.unstable_getCurrentPriorityLevel,fc=scheduler.unstable_ImmediatePriority,gc=scheduler.unstable_UserBlockingPriority,hc=scheduler.unstable_NormalPriority,ic=scheduler.unstable_LowPriority,jc=scheduler.unstable_IdlePriority,kc=null,lc=null;function mc(e){if(lc&&"function"==typeof lc.onCommitFiberRoot)try{lc.onCommitFiberRoot(kc,e,void 0,128==(128&e.current.flags))}catch(e){}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(e){return 0===(e>>>=0)?32:31-(pc(e)/qc|0)|0}var rc=64,sc=4194304;function tc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=tc(s):0!==(a&=o)&&(r=tc(a))}else 0!==(o=n&~i)?r=tc(o):0!==a&&(r=tc(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-oc(t)),r|=e[n],t&=~i;return r}function vc(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:default:return-1}}function wc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-oc(a),s=1<<o,l=i[o];-1===l?0!=(s&n)&&0==(s&r)||(i[o]=vc(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function xc(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yc(){var e=rc;return 0==(4194240&(rc<<=1))&&(rc=64),e}function zc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ac(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-oc(t)]=n}function Bc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-oc(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Cc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-oc(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var C=0;function Dc(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(e,t){switch(e){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(t.pointerId)}}function Tc(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=Cb(t))&&Fc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Uc(e,t,n,r,i){switch(t){case"focusin":return Lc=Tc(Lc,e,t,n,r,i),!0;case"dragenter":return Mc=Tc(Mc,e,t,n,r,i),!0;case"mouseover":return Nc=Tc(Nc,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Oc.set(a,Tc(Oc.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Pc.set(a,Tc(Pc.get(a)||null,e,t,n,r,i)),!0}return!1}function Vc(e){var t=Wc(e.target);if(null!==t){var n=Vb(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Wb(n)))return e.blockedOn=t,void Ic(e.priority,(function(){Gc(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Xc(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Cb(n))&&Fc(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);wb=r,n.target.dispatchEvent(r),wb=null,t.shift()}return!0}function Zc(e,t,n){Xc(e)&&n.delete(t)}function $c(){Jc=!1,null!==Lc&&Xc(Lc)&&(Lc=null),null!==Mc&&Xc(Mc)&&(Mc=null),null!==Nc&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(e,t){e.blockedOn===t&&(e.blockedOn=null,Jc||(Jc=!0,scheduler.unstable_scheduleCallback(scheduler.unstable_NormalPriority,$c)))}function bd(e){function t(t){return ad(t,e)}if(0<Kc.length){ad(Kc[0],e);for(var n=1;n<Kc.length;n++){var r=Kc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Lc&&ad(Lc,e),null!==Mc&&ad(Mc,e),null!==Nc&&ad(Nc,e),Oc.forEach(t),Pc.forEach(t),n=0;n<Qc.length;n++)(r=Qc[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Qc.length&&null===(n=Qc[0]).blockedOn;)Vc(n),null===n.blockedOn&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(e,t,n,r){var i=C,a=cd.transition;cd.transition=null;try{C=1,fd(e,t,n,r)}finally{C=i,cd.transition=a}}function gd(e,t,n,r){var i=C,a=cd.transition;cd.transition=null;try{C=4,fd(e,t,n,r)}finally{C=i,cd.transition=a}}function fd(e,t,n,r){if(dd){var i=Yc(e,t,n,r);if(null===i)hd(e,t,r,id,n),Sc(e,r);else if(Uc(i,e,t,n,r))r.stopPropagation();else if(Sc(e,r),4&t&&-1<Rc.indexOf(e)){for(;null!==i;){var a=Cb(i);if(null!==a&&Ec(a),null===(a=Yc(e,t,n,r))&&hd(e,t,r,id,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else hd(e,t,r,null,n)}}var id=null;function Yc(e,t,n,r){if(id=null,null!==(e=Wc(e=xb(r))))if(null===(t=Vb(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Wb(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return id=e,null}function jd(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var e,t,n=ld,r=n.length,i="value"in kd?kd.value:kd.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return md=i.slice(e,1<t?1-t:void 0)}function od(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function pd(){return!0}function qd(){return!1}function rd(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?pd:qd,this.isPropagationStopped=qd,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),t}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yd&&(yd&&"mousemove"===e.type?(wd=e.screenX-yd.screenX,xd=e.screenY-yd.screenY):xd=wd=0,yd=e),wd)},movementY:function(e){return"movementY"in e?e.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Od[e])&&!!t[e]}function zd(){return Pd}var Qd=A({},ud,{key:function(e){if(e.key){var t=Md[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=od(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Nd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(e){return"keypress"===e.type?od(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?od(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=String.fromCharCode(32),fe=!1;function ge(e,t){switch(e){case"keyup":return-1!==$d.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ie=!1;function je(e,t){switch(e){case"compositionend":return he(t);case"keypress":return 32!==t.which?null:(fe=!0,ee);case"textInput":return(e=t.data)===ee&&fe?null:e;default:return null}}function ke(e,t){if(ie)return"compositionend"===e||!ae&&ge(e,t)?(e=nd(),md=ld=kd=null,ie=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return de&&"ko"!==t.locale?null:t.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!le[e.type]:"textarea"===t}function ne(e,t,n,r){Eb(r),0<(t=oe(t,"onChange")).length&&(n=new td("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var pe=null,qe=null;function re(e){se(e,0)}function te(e){if(Wa(ue(e)))return e}function ve(e,t){if("change"===e)return t}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye="function"==typeof ze.oninput}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(e){if("value"===e.propertyName&&te(qe)){var t=[];ne(t,qe,e,xb(e)),Jb(re,t)}}function Ce(e,t,n){"focusin"===e?(Ae(),qe=n,(pe=t).attachEvent("onpropertychange",Be)):"focusout"===e&&Ae()}function De(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return te(qe)}function Ee(e,t){if("click"===e)return te(t)}function Fe(e,t){if("input"===e||"change"===e)return te(t)}function Ge(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var He="function"==typeof Object.is?Object.is:Ge;function Ie(e,t){if(He(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ja.call(t,i)||!He(e[i],t[i]))return!1}return!0}function Je(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ke(e,t){var n,r=Je(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Je(r)}}function Le(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Le(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Me(){for(var e=window,t=Xa();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Xa((e=t.contentWindow).document)}return t}function Ne(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Oe(e){var t=Me(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Le(n.ownerDocument.documentElement,n)){if(null!==r&&Ne(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Ke(n,a);var o=Ke(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Te||null==Qe||Qe!==Xa(r)||("selectionStart"in(r=Qe)&&Ne(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Se&&Ie(Se,r)||(Se=r,0<(r=oe(Re,"onSelect")).length&&(t=new td("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qe)))}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};function Ze(e){if(Xe[e])return Xe[e];if(!We[e])return e;var t,n=We[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ye)return Xe[e]=n[t];return e}ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(e,t){df.set(e,t),fa(t,[e])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd"),ff(af,"onAnimationIteration"),ff(bf,"onAnimationStart"),ff("dblclick","onDoubleClick"),ff("focusin","onFocus"),ff("focusout","onBlur"),ff(cf,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ub(r,t,void 0,e),e.currentTarget=null}function se(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;nf(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;nf(i,s,u),a=l}}}if(Qb)throw e=Rb,Qb=!1,Rb=null,e}function D(e,t){var n=t[of];void 0===n&&(n=t[of]=new Set);var r=e+"__bubble";n.has(r)||(pf(t,e,2,!1),n.add(r))}function qf(e,t,n){var r=0;t&&(r|=4),pf(n,e,r,t)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(e){if(!e[rf]){e[rf]=!0,da.forEach((function(t){"selectionchange"!==t&&(mf.has(t)||qf(t,!1,e),qf(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[rf]||(t[rf]=!0,qf("selectionchange",!1,t))}}function pf(e,t,n,r){switch(jd(t)){case 1:var i=ed;break;case 4:i=gd;break;default:i=fd}n=i.bind(null,t,n,e),i=void 0,!Lb||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function hd(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=Wc(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}Jb((function(){var r=a,i=xb(n),o=[];e:{var s=df.get(e);if(void 0!==s){var l=td,u=e;switch(e){case"keypress":if(0===od(n))break e;case"keydown":case"keyup":l=Rd;break;case"focusin":u="focus",l=Fd;break;case"focusout":u="blur",l=Fd;break;case"beforeblur":case"afterblur":l=Fd;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Vd;break;case $e:case af:case bf:l=Hd;break;case cf:l=Xd;break;case"scroll":l=vd;break;case"wheel":l=Zd;break;case"copy":case"cut":case"paste":l=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Td}var c=0!=(4&t),d=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Kb(h,p))&&c.push(tf(h,m,f)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===wb||!(u=n.relatedTarget||n.fromElement)||!Wc(u)&&!u[uf])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?Wc(u):null)&&(u!==(d=Vb(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=Bd,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Td,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:ue(l),f=null==u?s:ue(u),(s=new c(m,h+"leave",l,n,i)).target=d,s.relatedTarget=f,m=null,Wc(i)===r&&((c=new c(p,h+"enter",u,n,i)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(p=u,h=0,f=c=l;f;f=vf(f))h++;for(f=0,m=p;m;m=vf(m))f++;for(;0<h-f;)c=vf(c),h--;for(;0<f-h;)p=vf(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=vf(c),p=vf(p)}c=null}else c=null;null!==l&&wf(o,s,l,c,!1),null!==u&&null!==d&&wf(o,d,u,c,!0)}if("select"===(l=(s=r?ue(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=ve;else if(me(s))if(we)g=Fe;else{g=De;var v=Ce}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=Ee);switch(g&&(g=g(e,r))?ne(o,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&cb(s,"number",s.value)),v=r?ue(r):window,e){case"focusin":(me(v)||"true"===v.contentEditable)&&(Qe=v,Re=r,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(o,n,i);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(o,n,i)}var b;if(ae)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else ie?ge(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(de&&"ko"!==n.locale&&(ie||"onCompositionStart"!==y?"onCompositionEnd"===y&&ie&&(b=nd()):(ld="value"in(kd=i)?kd.value:kd.textContent,ie=!0)),0<(v=oe(r,y)).length&&(y=new Ld(y,e,null,n,i),o.push({event:y,listeners:v}),b?y.data=b:null!==(b=he(n))&&(y.data=b))),(b=ce?je(e,n):ke(e,n))&&(0<(r=oe(r,"onBeforeInput")).length&&(i=new Ld("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=b))}se(o,t)}))}function tf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function oe(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Kb(e,n))&&r.unshift(tf(e,a,i)),null!=(a=Kb(e,t))&&r.push(tf(e,a,i))),e=e.return}return r}function vf(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function wf(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Kb(n,a))&&o.unshift(tf(n,l,s)):i||null!=(l=Kb(n,a))&&o.push(tf(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(e){return("string"==typeof e?e:""+e).replace(xf,"\n").replace(yf,"")}function Af(e,t,n){if(t=zf(t),zf(e)!==t&&n)throw Error(p(425))}function Bf(){}var Cf=null,Df=null;function Ef(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ff="function"==typeof setTimeout?setTimeout:void 0,Gf="function"==typeof clearTimeout?clearTimeout:void 0,Hf="function"==typeof Promise?Promise:void 0,Jf="function"==typeof queueMicrotask?queueMicrotask:void 0!==Hf?function(e){return Hf.resolve(null).then(e).catch(If)}:Ff;function If(e){setTimeout((function(){throw e}))}function Kf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void bd(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);bd(t)}function Lf(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Mf(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(e){var t=e[Of];if(t)return t;for(var n=e.parentNode;n;){if(t=n[uf]||n[Of]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Mf(e);null!==e;){if(n=e[Of])return n;e=Mf(e)}return t}n=(e=n).parentNode}return null}function Cb(e){return!(e=e[Of]||e[uf])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ue(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(p(33))}function Db(e){return e[Pf]||null}var Sf=[],Tf=-1;function Uf(e){return{current:e}}function E(e){0>Tf||(e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(e,t){Tf++,Sf[Tf]=e.current,e.current=t}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(e,t){var n=e.type.contextTypes;if(!n)return Vf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Zf(e){return null!=(e=e.childContextTypes)}function $f(){E(Wf),E(H)}function ag(e,t,n){if(H.current!==Vf)throw Error(p(168));G(H,t),G(Wf,n)}function bg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(p(108,Ra(e)||"Unknown",i));return A({},n,r)}function cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,e),G(Wf,Wf.current),!0}function dg(e,t,n){var r=e.stateNode;if(!r)throw Error(p(169));n?(e=bg(e,t,Xf),r.__reactInternalMemoizedMergedChildContext=e,E(Wf),E(H),G(H,e)):E(Wf),G(Wf,n)}var eg=null,fg=!1,gg=!1;function hg(e){null===eg?eg=[e]:eg.push(e)}function ig(e){fg=!0,hg(e)}function jg(){if(!gg&&null!==eg){gg=!0;var e=0,t=C;try{var n=eg;for(C=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}eg=null,fg=!1}catch(t){throw null!==eg&&(eg=eg.slice(e+1)),ac(fc,jg),t}finally{C=t,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(e,t){kg[lg++]=ng,kg[lg++]=mg,mg=e,ng=t}function ug(e,t,n){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=e;var r=rg;e=sg;var i=32-oc(r)-1;r&=~(1<<i),n+=1;var a=32-oc(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,rg=1<<32-oc(t)+i|n<<i|r,sg=a+e}else rg=1<<a|n<<i|r,sg=e}function vg(e){null!==e.return&&(tg(e,1),ug(e,1,0))}function wg(e){for(;e===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;e===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(e,t){var n=Bg(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Cg(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,xg=e,yg=Lf(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,xg=e,yg=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qg?{id:rg,overflow:sg}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Bg(18,null,null,0)).stateNode=t,n.return=e,e.child=n,xg=e,yg=null,!0);default:return!1}}function Dg(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Eg(e){if(I){var t=yg;if(t){var n=t;if(!Cg(e,t)){if(Dg(e))throw Error(p(418));t=Lf(n.nextSibling);var r=xg;t&&Cg(e,t)?Ag(r,n):(e.flags=-4097&e.flags|2,I=!1,xg=e)}}else{if(Dg(e))throw Error(p(418));e.flags=-4097&e.flags|2,I=!1,xg=e}}}function Fg(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xg=e}function Gg(e){if(e!==xg)return!1;if(!I)return Fg(e),I=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Ef(e.type,e.memoizedProps)),t&&(t=yg)){if(Dg(e))throw Hg(),Error(p(418));for(;t;)Ag(e,t),t=Lf(t.nextSibling)}if(Fg(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(p(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){yg=Lf(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}yg=null}}else yg=xg?Lf(e.stateNode.nextSibling):null;return!0}function Hg(){for(var e=yg;e;)e=Lf(e.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(e){null===zg?zg=[e]:zg.push(e)}var Kg=ua.ReactCurrentBatchConfig;function Lg(e,t){if(e&&e.defaultProps){for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(e){var t=Mg.current;E(Mg),e._currentValue=t}function Sg(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Tg(e,t){Ng=e,Pg=Og=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ug=!0),e.firstContext=null)}function Vg(e){var t=e._currentValue;if(Pg!==e)if(e={context:e,memoizedValue:t,next:null},null===Og){if(null===Ng)throw Error(p(308));Og=e,Ng.dependencies={lanes:0,firstContext:e}}else Og=Og.next=e;return t}var Wg=null;function Xg(e){null===Wg?Wg=[e]:Wg.push(e)}function Yg(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Xg(t)):(n.next=i.next,i.next=n),t.interleaved=n,Zg(e,r)}function Zg(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var $g=!1;function ah(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ch(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dh(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&K)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Zg(e,n)}return null===(i=r.interleaved)?(t.next=t,Xg(r)):(t.next=i.next,i.next=t),r.interleaved=t,Zg(e,n)}function eh(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Cc(e,n)}}function fh(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gh(e,t,n,r){var i=e.updateQueue;$g=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==a){var d=i.baseState;for(o=0,c=u=l=null,s=a;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=A({},d,p);break e;case 2:$g=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,o|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);hh|=o,e.lanes=o,e.memoizedState=d}}function ih(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(p(191,i));i.call(r)}}}var jh=(new react.Component).refs;function kh(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var nh={isMounted:function(e){return!!(e=e._reactInternals)&&Vb(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=L(),i=lh(e),a=ch(r,i);a.payload=t,null!=n&&(a.callback=n),null!==(t=dh(e,a,i))&&(mh(t,e,i,r),eh(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=L(),i=lh(e),a=ch(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=dh(e,a,i))&&(mh(t,e,i,r),eh(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=L(),r=lh(e),i=ch(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=dh(e,i,r))&&(mh(t,e,r,n),eh(t,e,r))}};function oh(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!Ie(n,r)||!Ie(i,a))}function ph(e,t,n){var r=!1,i=Vf,a=t.contextType;return"object"==typeof a&&null!==a?a=Vg(a):(i=Zf(t)?Xf:H.current,a=(r=null!=(r=t.contextTypes))?Yf(e,i):Vf),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=nh,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function qh(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&nh.enqueueReplaceState(t,t.state,null)}function rh(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=jh,ah(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=Vg(a):(a=Zf(t)?Xf:H.current,i.context=Yf(e,a)),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(kh(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&nh.enqueueReplaceState(i,i.state,null),gh(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function sh(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(p(309));var r=n.stateNode}if(!r)throw Error(p(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=i.refs;t===jh&&(t=i.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(p(284));if(!n._owner)throw Error(p(290,e))}return e}function th(e,t){throw e=Object.prototype.toString.call(t),Error(p(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uh(e){return(0,e._init)(e._payload)}function vh(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=wh(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=xh(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var a=n.type;return a===ya?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Ha&&uh(a)===t.type)?((r=i(t,n.props)).ref=sh(e,t,n),r.return=e,r):((r=yh(n.type,n.key,n.props,null,e.mode,r)).ref=sh(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zh(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,a){return null===t||7!==t.tag?((t=Ah(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=xh(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case va:return(n=yh(t.type,t.key,t.props,null,e.mode,n)).ref=sh(e,null,t),n.return=e,n;case wa:return(t=zh(t,e.mode,n)).return=e,t;case Ha:return d(e,(0,t._init)(t._payload),n)}if(eb(t)||Ka(t))return(t=Ah(t,e.mode,n,null)).return=e,t;th(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case va:return n.key===i?l(e,t,n,r):null;case wa:return n.key===i?u(e,t,n,r):null;case Ha:return f(e,t,(i=n._init)(n._payload),r)}if(eb(n)||Ka(n))return null!==i?null:c(e,t,n,r,null);th(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case va:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case wa:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case Ha:return h(e,t,n,(0,r._init)(r._payload),i)}if(eb(r)||Ka(r))return c(t,e=e.get(n)||null,r,i,null);th(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,p=o,m=o=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,s[m],l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,p=g}if(m===s.length)return n(i,p),I&&tg(i,m),u;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(o=a(p,o,m),null===c?u=p:c.sibling=p,c=p);return I&&tg(i,m),u}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(i,e)})),I&&tg(i,m),u}function g(i,o,s,l){var u=Ka(s);if("function"!=typeof u)throw Error(p(150));if(null==(s=u.call(s)))throw Error(p(151));for(var c=u=null,m=o,g=o=0,v=null,b=s.next();null!==m&&!b.done;g++,b=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=f(i,m,b.value,l);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(i,m),o=a(y,o,g),null===c?u=y:c.sibling=y,c=y,m=v}if(b.done)return n(i,m),I&&tg(i,g),u;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=d(i,b.value,l))&&(o=a(b,o,g),null===c?u=b:c.sibling=b,c=b);return I&&tg(i,g),u}for(m=r(i,m);!b.done;g++,b=s.next())null!==(b=h(m,i,g,b.value,l))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),o=a(b,o,g),null===c?u=b:c.sibling=b,c=b);return e&&m.forEach((function(e){return t(i,e)})),I&&tg(i,g),u}return function e(r,a,s,l){if("object"==typeof s&&null!==s&&s.type===ya&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case va:e:{for(var u=s.key,c=a;null!==c;){if(c.key===u){if((u=s.type)===ya){if(7===c.tag){n(r,c.sibling),(a=i(c,s.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Ha&&uh(u)===c.type){n(r,c.sibling),(a=i(c,s.props)).ref=sh(r,c,s),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===ya?((a=Ah(s.props.children,r.mode,l,s.key)).return=r,r=a):((l=yh(s.type,s.key,s.props,null,r.mode,l)).ref=sh(r,a,s),l.return=r,r=l)}return o(r);case wa:e:{for(c=s.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){n(r,a.sibling),(a=i(a,s.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=zh(s,r.mode,l)).return=r,r=a}return o(r);case Ha:return e(r,a,(c=s._init)(s._payload),l)}if(eb(s))return m(r,a,s,l);if(Ka(s))return g(r,a,s,l);th(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,s)).return=r,r=a):(n(r,a),(a=xh(s,r.mode,l)).return=r,r=a),o(r)):n(r,a)}}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(e){if(e===Dh)throw Error(p(174));return e}function Ih(e,t){switch(G(Gh,t),G(Fh,e),G(Eh,Dh),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lb(null,"");break;default:t=lb(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}E(Eh),G(Eh,t)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(e){Hh(Gh.current);var t=Hh(Eh.current),n=lb(t,e.type);t!==n&&(G(Fh,e),G(Eh,n))}function Lh(e){Fh.current===e&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Nh=[];function Oh(){for(var e=0;e<Nh.length;e++)Nh[e]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O=null,P=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q(){throw Error(p(321))}function Wh(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!He(e[n],t[n]))return!1;return!0}function Xh(e,t,n,r,i,a){if(Rh=a,N=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ph.current=null===e||null===e.memoizedState?Yh:Zh,e=n(r,i),Th){a=0;do{if(Th=!1,Uh=0,25<=a)throw Error(p(301));a+=1,P=O=null,t.updateQueue=null,Ph.current=$h,e=n(r,i)}while(Th)}if(Ph.current=ai,t=null!==O&&null!==O.next,Rh=0,P=O=N=null,Sh=!1,t)throw Error(p(300));return e}function bi(){var e=0!==Uh;return Uh=0,e}function ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===P?N.memoizedState=P=e:P=P.next=e,P}function di(){if(null===O){var e=N.alternate;e=null!==e?e.memoizedState:null}else e=O.next;var t=null===P?N.memoizedState:P.next;if(null!==t)P=t,O=e;else{if(null===e)throw Error(p(310));e={memoizedState:(O=e).memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null},null===P?N.memoizedState=P=e:P=P.next=e}return P}function ei(e,t){return"function"==typeof t?t(e):t}function fi(e){var t=di(),n=t.queue;if(null===n)throw Error(p(311));n.lastRenderedReducer=e;var r=O,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var s=o=null,l=null,u=a;do{var c=u.lane;if((Rh&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,N.lanes|=c,hh|=c}u=u.next}while(null!==u&&u!==a);null===l?o=r:l.next=s,He(r,t.memoizedState)||(Ug=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,N.lanes|=a,hh|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gi(e){var t=di(),n=t.queue;if(null===n)throw Error(p(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);He(a,t.memoizedState)||(Ug=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function hi(){}function ii(e,t){var n=N,r=di(),i=t(),a=!He(r.memoizedState,i);if(a&&(r.memoizedState=i,Ug=!0),r=r.queue,ji(ki.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==P&&1&P.memoizedState.tag){if(n.flags|=2048,li(9,mi.bind(null,n,r,i,t),void 0,null),null===R)throw Error(p(349));0!=(30&Rh)||ni(n,t,i)}return i}function ni(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=N.updateQueue)?(t={lastEffect:null,stores:null},N.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function mi(e,t,n,r){t.value=n,t.getSnapshot=r,oi(t)&&pi(e)}function ki(e,t,n){return n((function(){oi(t)&&pi(e)}))}function oi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!He(e,n)}catch(e){return!0}}function pi(e){var t=Zg(e,1);null!==t&&mh(t,e,1,-1)}function qi(e){var t=ci();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:e},t.queue=e,e=e.dispatch=ri.bind(null,N,e),[t.memoizedState,e]}function li(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=N.updateQueue)?(t={lastEffect:null,stores:null},N.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function si(){return di().memoizedState}function ti(e,t,n,r){var i=ci();N.flags|=e,i.memoizedState=li(1|t,n,void 0,void 0===r?null:r)}function ui(e,t,n,r){var i=di();r=void 0===r?null:r;var a=void 0;if(null!==O){var o=O.memoizedState;if(a=o.destroy,null!==r&&Wh(r,o.deps))return void(i.memoizedState=li(t,n,a,r))}N.flags|=e,i.memoizedState=li(1|t,n,a,r)}function vi(e,t){return ti(8390656,8,e,t)}function ji(e,t){return ui(2048,8,e,t)}function wi(e,t){return ui(4,2,e,t)}function xi(e,t){return ui(4,4,e,t)}function yi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function zi(e,t,n){return n=null!=n?n.concat([e]):null,ui(4,4,yi.bind(null,t,e),n)}function Ai(){}function Bi(e,t){var n=di();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ci(e,t){var n=di();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Di(e,t,n){return 0==(21&Rh)?(e.baseState&&(e.baseState=!1,Ug=!0),e.memoizedState=n):(He(n,t)||(n=yc(),N.lanes|=n,hh|=n,e.baseState=!0),t)}function Ei(e,t){var n=C;C=0!==n&&4>n?n:4,e(!0);var r=Qh.transition;Qh.transition={};try{e(!1),t()}finally{C=n,Qh.transition=r}}function Fi(){return di().memoizedState}function Gi(e,t,n){var r=lh(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hi(e))Ii(t,n);else if(null!==(n=Yg(e,t,n,r))){mh(n,e,r,L()),Ji(n,t,r)}}function ri(e,t,n){var r=lh(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hi(e))Ii(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,He(s,o)){var l=t.interleaved;return null===l?(i.next=i,Xg(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Yg(e,t,i,r))&&(mh(n,e,r,i=L()),Ji(n,t,r))}}function Hi(e){var t=e.alternate;return e===N||null!==t&&t===N}function Ii(e,t){Th=Sh=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ji(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Cc(e,n)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(e,t){return ci().memoizedState=[e,void 0===t?null:t],e},useContext:Vg,useEffect:vi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ti(4194308,4,yi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return ti(4,2,e,t)},useMemo:function(e,t){var n=ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ci();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gi.bind(null,N,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ci().memoizedState=e},useState:qi,useDebugValue:Ai,useDeferredValue:function(e){return ci().memoizedState=e},useTransition:function(){var e=qi(!1),t=e[0];return e=Ei.bind(null,e[1]),ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=N,i=ci();if(I){if(void 0===n)throw Error(p(407));n=n()}else{if(n=t(),null===R)throw Error(p(349));0!=(30&Rh)||ni(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,vi(ki.bind(null,r,a,e),[e]),r.flags|=2048,li(9,mi.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ci(),t=R.identifierPrefix;if(I){var n=sg;t=":"+t+"R"+(n=(rg&~(1<<32-oc(rg)-1)).toString(32)+n),0<(n=Uh++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Vh++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(e){return Di(di(),O.memoizedState,e)},useTransition:function(){return[fi(ei)[0],di().memoizedState]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(e){var t=di();return null===O?t.memoizedState=e:Di(t,O.memoizedState,e)},useTransition:function(){return[gi(ei)[0],di().memoizedState]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(e,t){try{var n="",r=t;do{n+=Pa(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function Li(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Mi(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ni="function"==typeof WeakMap?WeakMap:Map;function Oi(e,t,n){(n=ch(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Pi||(Pi=!0,Qi=r),Mi(e,t)},n}function Ri(e,t,n){(n=ch(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Mi(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Mi(e,t),"function"!=typeof r&&(null===Si?Si=new Set([this]):Si.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function Ti(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ni;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ui.bind(null,e,t,n),t.then(e,e))}function Vi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Wi(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ch(-1,1)).tag=2,dh(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(e,t,n,r){t.child=null===e?Ch(t,null,n,r):Bh(t,e.child,n,r)}function Zi(e,t,n,r,i){n=n.render;var a=t.ref;return Tg(t,i),r=Xh(e,t,n,r,a,i),n=bi(),null===e||Ug?(I&&n&&vg(t),t.flags|=1,Yi(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$i(e,t,i))}function aj(e,t,n,r,i){if(null===e){var a=n.type;return"function"!=typeof a||bj(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=yh(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,cj(e,t,a,r,i))}if(a=e.child,0==(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:Ie)(o,r)&&e.ref===t.ref)return $i(e,t,i)}return t.flags|=1,(e=wh(a,r)).ref=t.ref,e.return=t,t.child=e}function cj(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(Ie(a,r)&&e.ref===t.ref){if(Ug=!1,t.pendingProps=r=a,0==(e.lanes&i))return t.lanes=e.lanes,$i(e,t,i);0!=(131072&e.flags)&&(Ug=!0)}}return dj(e,t,n,r,i)}function ej(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,G(fj,gj),gj|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,G(fj,gj),gj|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,G(fj,gj),gj|=r;return Yi(e,t,i,n),t.child}function hj(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function dj(e,t,n,r,i){var a=Zf(n)?Xf:H.current;return a=Yf(t,a),Tg(t,i),n=Xh(e,t,n,r,a,i),r=bi(),null===e||Ug?(I&&r&&vg(t),t.flags|=1,Yi(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$i(e,t,i))}function ij(e,t,n,r,i){if(Zf(n)){var a=!0;cg(t)}else a=!1;if(Tg(t,i),null===t.stateNode)jj(e,t),ph(t,n,r),rh(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;"object"==typeof u&&null!==u?u=Vg(u):u=Yf(t,u=Zf(n)?Xf:H.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&qh(t,o,r,u),$g=!1;var p=t.memoizedState;o.state=p,gh(t,r,o,i),l=t.memoizedState,s!==r||p!==l||Wf.current||$g?("function"==typeof c&&(kh(t,n,c,r),l=t.memoizedState),(s=$g||oh(t,n,s,r,p,l,u))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,bh(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Lg(t.type,s),o.props=u,d=t.pendingProps,p=o.context,"object"==typeof(l=n.contextType)&&null!==l?l=Vg(l):l=Yf(t,l=Zf(n)?Xf:H.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||p!==l)&&qh(t,o,r,l),$g=!1,p=t.memoizedState,o.state=p,gh(t,r,o,i);var h=t.memoizedState;s!==d||p!==h||Wf.current||$g?("function"==typeof f&&(kh(t,n,f,r),h=t.memoizedState),(u=$g||oh(t,n,u,r,p,h,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return kj(e,t,n,r,a,i)}function kj(e,t,n,r,i,a){hj(e,t);var o=0!=(128&t.flags);if(!r&&!o)return i&&dg(t,n,!1),$i(e,t,a);r=t.stateNode,Xi.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Bh(t,e.child,null,a),t.child=Bh(t,null,s,a)):Yi(e,t,s,a),t.memoizedState=r.state,i&&dg(t,n,!0),t.child}function lj(e){var t=e.stateNode;t.pendingContext?ag(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ag(e,t.context,!1),Ih(e,t.containerInfo)}function mj(e,t,n,r,i){return Ig(),Jg(i),t.flags|=256,Yi(e,t,n,r),t.child}var nj={dehydrated:null,treeContext:null,retryLane:0},Aj,Bj,Cj,Dj;function oj(e){return{baseLanes:e,cachePool:null,transitions:null}}function pj(e,t,n){var r,i=t.pendingProps,a=M.current,o=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),G(M,1&a),null===e)return Eg(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,o?(i=t.mode,o=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==o?(o.childLanes=0,o.pendingProps=s):o=qj(s,i,0,null),e=Ah(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=oj(n),t.memoizedState=nj,e):rj(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return sj(e,t,s,i,r,a,n);if(o){o=i.fallback,s=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=wh(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?o=wh(r,o):(o=Ah(o,s,n,null)).flags|=2,o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,s=null===(s=e.child.memoizedState)?oj(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=nj,i}return e=(o=e.child).sibling,i=wh(o,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function rj(e,t){return(t=qj({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function tj(e,t,n,r){return null!==r&&Jg(r),Bh(t,e.child,null,n),(e=rj(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function sj(e,t,n,r,i,a,o){if(n)return 256&t.flags?(t.flags&=-257,tj(e,t,o,r=Li(Error(p(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=qj({mode:"visible",children:r.children},i,0,null),(a=Ah(a,i,o,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Bh(t,e.child,null,o),t.child.memoizedState=oj(o),t.memoizedState=nj,a);if(0==(1&t.mode))return tj(e,t,o,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,tj(e,t,o,r=Li(a=Error(p(419)),r,void 0))}if(s=0!=(o&e.childLanes),Ug||s){if(null!==(r=R)){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|o))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Zg(e,i),mh(r,e,i,-1))}return uj(),tj(e,t,o,r=Li(Error(p(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=vj.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,yg=Lf(i.nextSibling),xg=t,I=!0,zg=null,null!==e&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=e.id,sg=e.overflow,qg=t),(t=rj(t,r.children)).flags|=4096,t)}function wj(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sg(e.return,t,n)}function xj(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function yj(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Yi(e,t,r.children,n),0!=(2&(r=M.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&wj(e,n,t);else if(19===e.tag)wj(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(G(M,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Mh(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xj(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Mh(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xj(t,!0,n,null,a);break;case"together":xj(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jj(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $i(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),hh|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(p(153));if(null!==t.child){for(n=wh(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=wh(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function zj(e,t,n){switch(t.tag){case 3:lj(t),Ig();break;case 5:Kh(t);break;case 1:Zf(t.type)&&cg(t);break;case 4:Ih(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;G(Mg,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(G(M,1&M.current),t.flags|=128,null):0!=(n&t.child.childLanes)?pj(e,t,n):(G(M,1&M.current),null!==(e=$i(e,t,n))?e.sibling:null);G(M,1&M.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return yj(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(M,M.current),r)break;return null;case 22:case 23:return t.lanes=0,ej(e,t,n)}return $i(e,t,n)}function Ej(e,t){if(!I)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function S(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fj(e,t,n){var r=t.pendingProps;switch(wg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(t),null;case 1:return Zf(t.type)&&$f(),S(t),null;case 3:return r=t.stateNode,Jh(),E(Wf),E(H),Oh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Gg(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==zg&&(Gj(zg),zg=null))),Bj(e,t),S(t),null;case 5:Lh(t);var i=Hh(Gh.current);if(n=t.type,null!==e&&null!=t.stateNode)Cj(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(p(166));return S(t),null}if(e=Hh(Eh.current),Gg(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Of]=t,r[Pf]=a,e=0!=(1&t.mode),n){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(i=0;i<lf.length;i++)D(lf[i],r);break;case"source":D("error",r);break;case"img":case"image":case"link":D("error",r),D("load",r);break;case"details":D("toggle",r);break;case"input":Za(r,a),D("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},D("invalid",r);break;case"textarea":hb(r,a),D("invalid",r)}for(var o in ub(n,a),i=null,a)if(a.hasOwnProperty(o)){var s=a[o];"children"===o?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Af(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Af(r.textContent,s,e),i=["children",""+s]):ea.hasOwnProperty(o)&&null!=s&&"onScroll"===o&&D("scroll",r)}switch(n){case"input":Va(r),db(r,a,!0);break;case"textarea":Va(r),jb(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Bf)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{o=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=kb(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),"select"===n&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Of]=t,e[Pf]=r,Aj(e,t,!1,!1),t.stateNode=e;e:{switch(o=vb(n,r),n){case"dialog":D("cancel",e),D("close",e),i=r;break;case"iframe":case"object":case"embed":D("load",e),i=r;break;case"video":case"audio":for(i=0;i<lf.length;i++)D(lf[i],e);i=r;break;case"source":D("error",e),i=r;break;case"img":case"image":case"link":D("error",e),D("load",e),i=r;break;case"details":D("toggle",e),i=r;break;case"input":Za(e,r),i=Ya(e,r),D("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=A({},r,{value:void 0}),D("invalid",e);break;case"textarea":hb(e,r),i=gb(e,r),D("invalid",e);break;default:i=r}for(a in ub(n,i),s=i)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?sb(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&nb(e,l):"children"===a?"string"==typeof l?("textarea"!==n||""!==l)&&ob(e,l):"number"==typeof l&&ob(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(ea.hasOwnProperty(a)?null!=l&&"onScroll"===a&&D("scroll",e):null!=l&&ta(e,a,l,o))}switch(n){case"input":Va(e),db(e,r,!1);break;case"textarea":Va(e),jb(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Sa(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?fb(e,!!r.multiple,a,!1):null!=r.defaultValue&&fb(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Bf)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return S(t),null;case 6:if(e&&null!=t.stateNode)Dj(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(p(166));if(n=Hh(Gh.current),Hh(Eh.current),Gg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Of]=t,(a=r.nodeValue!==n)&&null!==(e=xg))switch(e.tag){case 3:Af(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Af(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Of]=t,t.stateNode=r}return S(t),null;case 13:if(E(M),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(I&&null!==yg&&0!=(1&t.mode)&&0==(128&t.flags))Hg(),Ig(),t.flags|=98560,a=!1;else if(a=Gg(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(p(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(p(317));a[Of]=t}else Ig(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;S(t),a=!1}else null!==zg&&(Gj(zg),zg=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&M.current)?0===T&&(T=3):uj())),null!==t.updateQueue&&(t.flags|=4),S(t),null);case 4:return Jh(),Bj(e,t),null===e&&sf(t.stateNode.containerInfo),S(t),null;case 10:return Rg(t.type._context),S(t),null;case 17:return Zf(t.type)&&$f(),S(t),null;case 19:if(E(M),null===(a=t.memoizedState))return S(t),null;if(r=0!=(128&t.flags),null===(o=a.rendering))if(r)Ej(a,!1);else{if(0!==T||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=Mh(e))){for(t.flags|=128,Ej(a,!1),null!==(r=o.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(o=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return G(M,1&M.current|2),t.child}e=e.sibling}null!==a.tail&&B()>Hj&&(t.flags|=128,r=!0,Ej(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Mh(o))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ej(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!I)return S(t),null}else 2*B()-a.renderingStartTime>Hj&&1073741824!==n&&(t.flags|=128,r=!0,Ej(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(n=a.last)?n.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=B(),t.sibling=null,n=M.current,G(M,r?1&n|2:1&n),t):(S(t),null);case 22:case 23:return Ij(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&gj)&&(S(t),6&t.subtreeFlags&&(t.flags|=8192)):S(t),null;case 24:case 25:return null}throw Error(p(156,t.tag))}function Jj(e,t){switch(wg(t),t.tag){case 1:return Zf(t.type)&&$f(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Jh(),E(Wf),E(H),Oh(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Lh(t),null;case 13:if(E(M),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(p(340));Ig()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(t.type._context),null;case 22:case 23:return Ij(),null;case 24:default:return null}}Aj=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Bj=function(){},Cj=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Hh(Eh.current);var a,o=null;switch(n){case"input":i=Ya(e,i),r=Ya(e,r),o=[];break;case"select":i=A({},i,{value:void 0}),r=A({},r,{value:void 0}),o=[];break;case"textarea":i=gb(e,i),r=gb(e,r),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Bf)}for(u in ub(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ea.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(o=o||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(o=o||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ea.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&D("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},Dj=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kj=!1,U=!1,Lj="function"==typeof WeakSet?WeakSet:Set,V=null;function Mj(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){W(e,t,n)}else n.current=null}function Nj(e,t,n){try{n()}catch(n){W(e,t,n)}}var Oj=!1;function Pj(e,t){if(Cf=dd,Ne(e=Me())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=o+i),d!==a||0!==r&&3!==d.nodeType||(l=o+r),3===d.nodeType&&(o+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=o),f===a&&++c===r&&(l=o),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Df={focusedElem:e,selectionRange:n},dd=!1,V=t;null!==V;)if(e=(t=V).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,V=e;else for(;null!==V;){t=V;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:Lg(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var k=t.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(e){W(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,V=e;break}V=t.return}return m=Oj,Oj=!1,m}function Qj(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&Nj(t,n,a)}i=i.next}while(i!==r)}}function Rj(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Sj(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}"function"==typeof t?t(e):t.current=e}}function Tj(e){var t=e.alternate;null!==t&&(e.alternate=null,Tj(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Of],delete t[Pf],delete t[of],delete t[Qf],delete t[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Uj(e){return 5===e.tag||3===e.tag||4===e.tag}function Vj(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Uj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Wj(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Bf));else if(4!==r&&null!==(e=e.child))for(Wj(e,t,n),e=e.sibling;null!==e;)Wj(e,t,n),e=e.sibling}function Xj(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Xj(e,t,n),e=e.sibling;null!==e;)Xj(e,t,n),e=e.sibling}var X=null,Yj=!1;function Zj(e,t,n){for(n=n.child;null!==n;)ak(e,t,n),n=n.sibling}function ak(e,t,n){if(lc&&"function"==typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,n)}catch(e){}switch(n.tag){case 5:U||Mj(n,t);case 6:var r=X,i=Yj;X=null,Zj(e,t,n),Yj=i,null!==(X=r)&&(Yj?(e=X,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):X.removeChild(n.stateNode));break;case 18:null!==X&&(Yj?(e=X,n=n.stateNode,8===e.nodeType?Kf(e.parentNode,n):1===e.nodeType&&Kf(e,n),bd(e)):Kf(X,n.stateNode));break;case 4:r=X,i=Yj,X=n.stateNode.containerInfo,Yj=!0,Zj(e,t,n),X=r,Yj=i;break;case 0:case 11:case 14:case 15:if(!U&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!=(2&a)||0!=(4&a))&&Nj(n,t,o),i=i.next}while(i!==r)}Zj(e,t,n);break;case 1:if(!U&&(Mj(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){W(n,t,e)}Zj(e,t,n);break;case 21:Zj(e,t,n);break;case 22:1&n.mode?(U=(r=U)||null!==n.memoizedState,Zj(e,t,n),U=r):Zj(e,t,n);break;default:Zj(e,t,n)}}function bk(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Lj),t.forEach((function(t){var r=ck.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function dk(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,s=o;e:for(;null!==s;){switch(s.tag){case 5:X=s.stateNode,Yj=!1;break e;case 3:case 4:X=s.stateNode.containerInfo,Yj=!0;break e}s=s.return}if(null===X)throw Error(p(160));ak(a,o,i),X=null,Yj=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){W(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ek(t,e),t=t.sibling}function ek(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dk(t,e),fk(e),4&r){try{Qj(3,e,e.return),Rj(3,e)}catch(t){W(e,e.return,t)}try{Qj(5,e,e.return)}catch(t){W(e,e.return,t)}}break;case 1:dk(t,e),fk(e),512&r&&null!==n&&Mj(n,n.return);break;case 5:if(dk(t,e),fk(e),512&r&&null!==n&&Mj(n,n.return),32&e.flags){var i=e.stateNode;try{ob(i,"")}catch(t){W(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,o=null!==n?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&ab(i,a),vb(s,o);var u=vb(s,a);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];"style"===c?sb(i,d):"dangerouslySetInnerHTML"===c?nb(i,d):"children"===c?ob(i,d):ta(i,c,d,u)}switch(s){case"input":bb(i,a);break;case"textarea":ib(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?fb(i,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?fb(i,!!a.multiple,a.defaultValue,!0):fb(i,!!a.multiple,a.multiple?[]:"",!1))}i[Pf]=a}catch(t){W(e,e.return,t)}}break;case 6:if(dk(t,e),fk(e),4&r){if(null===e.stateNode)throw Error(p(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){W(e,e.return,t)}}break;case 3:if(dk(t,e),fk(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{bd(t.containerInfo)}catch(t){W(e,e.return,t)}break;case 4:dk(t,e),fk(e);break;case 13:dk(t,e),fk(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(gk=B())),4&r&&bk(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(U=(u=U)||c,dk(t,e),U=u):dk(t,e),fk(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(V=e,c=e.child;null!==c;){for(d=V=c;null!==V;){switch(h=(f=V).child,f.tag){case 0:case 11:case 14:case 15:Qj(4,f,f.return);break;case 1:Mj(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){W(r,n,e)}}break;case 5:Mj(f,f.return);break;case 22:if(null!==f.memoizedState){hk(d);continue}}null!==h?(h.return=f,V=h):hk(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{i=d.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,o=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=rb("display",o))}catch(t){W(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){W(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:dk(t,e),fk(e),4&r&&bk(e);break;case 21:break;default:dk(t,e),fk(e)}}function fk(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Uj(n)){var r=n;break e}n=n.return}throw Error(p(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(ob(i,""),r.flags&=-33),Xj(e,Vj(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;Wj(e,Vj(e),a);break;default:throw Error(p(161))}}catch(t){W(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ik(e,t,n){V=e,jk(e)}function jk(e,t,n){for(var r=0!=(1&e.mode);null!==V;){var i=V,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||Kj;if(!o){var s=i.alternate,l=null!==s&&null!==s.memoizedState||U;s=Kj;var u=U;if(Kj=o,(U=l)&&!u)for(V=i;null!==V;)l=(o=V).child,22===o.tag&&null!==o.memoizedState?kk(i):null!==l?(l.return=o,V=l):kk(i);for(;null!==a;)V=a,jk(a),a=a.sibling;V=i,Kj=s,U=u}lk(e)}else 0!=(8772&i.subtreeFlags)&&null!==a?(a.return=i,V=a):lk(e)}}function lk(e){for(;null!==V;){var t=V;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:U||Rj(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!U)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Lg(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&ih(t,a,r);break;case 3:var o=t.updateQueue;if(null!==o){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ih(t,o,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&bd(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p(163))}U||512&t.flags&&Sj(t)}catch(e){W(t,t.return,e)}}if(t===e){V=null;break}if(null!==(n=t.sibling)){n.return=t.return,V=n;break}V=t.return}}function hk(e){for(;null!==V;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(null!==n){n.return=t.return,V=n;break}V=t.return}}function kk(e){for(;null!==V;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rj(4,t)}catch(e){W(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){W(t,i,e)}}var a=t.return;try{Sj(t)}catch(e){W(t,a,e)}break;case 5:var o=t.return;try{Sj(t)}catch(e){W(t,o,e)}}}catch(e){W(t,t.return,e)}if(t===e){V=null;break}var s=t.sibling;if(null!==s){s.return=t.return,V=s;break}V=t.return}}var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K=0,R=null,Y=null,Z=0,gj=0,fj=Uf(0),T=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0,Wk;function L(){return 0!=(6&K)?B():-1!==Bk?Bk:Bk=B()}function lh(e){return 0==(1&e.mode)?1:0!=(2&K)&&0!==Z?Z&-Z:null!==Kg.transition?(0===Ck&&(Ck=yc()),Ck):0!==(e=C)?e:e=void 0===(e=window.event)?16:jd(e.type)}function mh(e,t,n,r){if(50<zk)throw zk=0,Ak=null,Error(p(185));Ac(e,n,r),0!=(2&K)&&e===R||(e===R&&(0==(2&K)&&(rk|=n),4===T&&Dk(e,Z)),Ek(e,r),1===n&&0===K&&0==(1&t.mode)&&(Hj=B()+500,fg&&jg()))}function Ek(e,t){var n=e.callbackNode;wc(e,t);var r=uc(e,e===R?Z:0);if(0===r)null!==n&&bc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&bc(n),1===t)0===e.tag?ig(Fk.bind(null,e)):hg(Fk.bind(null,e)),Jf((function(){0==(6&K)&&jg()})),n=null;else{switch(Dc(r)){case 1:n=fc;break;case 4:n=gc;break;case 16:n=hc;break;case 536870912:n=jc;break;default:n=hc}n=Gk(n,Hk.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Hk(e,t){if(Bk=-1,Ck=0,0!=(6&K))throw Error(p(327));var n=e.callbackNode;if(Ik()&&e.callbackNode!==n)return null;var r=uc(e,e===R?Z:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Jk(e,r);else{t=r;var i=K;K|=2;var a=Kk();for(R===e&&Z===t||(vk=null,Hj=B()+500,Lk(e,t));;)try{Mk();break}catch(t){Nk(e,t)}Qg(),nk.current=a,K=i,null!==Y?t=0:(R=null,Z=0,t=T)}if(0!==t){if(2===t&&(0!==(i=xc(e))&&(r=i,t=Ok(e,i))),1===t)throw n=qk,Lk(e,0),Dk(e,r),Ek(e,B()),n;if(6===t)Dk(e,r);else{if(i=e.current.alternate,0==(30&r)&&!Pk(i)&&(2===(t=Jk(e,r))&&(0!==(a=xc(e))&&(r=a,t=Ok(e,a))),1===t))throw n=qk,Lk(e,0),Dk(e,r),Ek(e,B()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(p(345));case 2:Qk(e,uk,vk);break;case 3:if(Dk(e,r),(130023424&r)===r&&10<(t=gk+500-B())){if(0!==uc(e,0))break;if(((i=e.suspendedLanes)&r)!==r){L(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ff(Qk.bind(null,e,uk,vk),t);break}Qk(e,uk,vk);break;case 4:if(Dk(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-oc(r);a=1<<o,(o=t[o])>i&&(i=o),r&=~a}if(r=i,10<(r=(120>(r=B()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mk(r/1960))-r)){e.timeoutHandle=Ff(Qk.bind(null,e,uk,vk),r);break}Qk(e,uk,vk);break;case 5:Qk(e,uk,vk);break;default:throw Error(p(329))}}}return Ek(e,B()),e.callbackNode===n?Hk.bind(null,e):null}function Ok(e,t){var n=tk;return e.current.memoizedState.isDehydrated&&(Lk(e,t).flags|=256),2!==(e=Jk(e,t))&&(t=uk,uk=n,null!==t&&Gj(t)),e}function Gj(e){null===uk?uk=e:uk.push.apply(uk,e)}function Pk(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!He(a(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Dk(e,t){for(t&=~sk,t&=~rk,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-oc(t),r=1<<n;e[n]=-1,t&=~r}}function Fk(e){if(0!=(6&K))throw Error(p(327));Ik();var t=uc(e,0);if(0==(1&t))return Ek(e,B()),null;var n=Jk(e,t);if(0!==e.tag&&2===n){var r=xc(e);0!==r&&(t=r,n=Ok(e,r))}if(1===n)throw n=qk,Lk(e,0),Dk(e,t),Ek(e,B()),n;if(6===n)throw Error(p(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qk(e,uk,vk),Ek(e,B()),null}function Rk(e,t){var n=K;K|=1;try{return e(t)}finally{0===(K=n)&&(Hj=B()+500,fg&&jg())}}function Sk(e){null!==xk&&0===xk.tag&&0==(6&K)&&Ik();var t=K;K|=1;var n=pk.transition,r=C;try{if(pk.transition=null,C=1,e)return e()}finally{C=r,pk.transition=n,0==(6&(K=t))&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Gf(n)),null!==Y)for(n=Y.return;null!==n;){var r=n;switch(wg(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&$f();break;case 3:Jh(),E(Wf),E(H),Oh();break;case 5:Lh(r);break;case 4:Jh();break;case 13:case 19:E(M);break;case 10:Rg(r.type._context);break;case 22:case 23:Ij()}n=n.return}if(R=e,Y=e=wh(e.current,null),Z=gj=t,T=0,qk=null,sk=rk=hh=0,uk=tk=null,null!==Wg){for(t=0;t<Wg.length;t++)if(null!==(r=(n=Wg[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Wg=null}return e}function Nk(e,t){for(;;){var n=Y;try{if(Qg(),Ph.current=ai,Sh){for(var r=N.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Sh=!1}if(Rh=0,P=O=N=null,Th=!1,Uh=0,ok.current=null,null===n||null===n.return){T=1,qk=t,Y=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Z,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Vi(o);if(null!==h){h.flags&=-257,Wi(h,o,s,a,t),1&h.mode&&Ti(a,u,t),l=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}if(0==(1&t)){Ti(a,u,t),uj();break e}l=Error(p(426))}else if(I&&1&s.mode){var v=Vi(o);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),Wi(v,o,s,a,t),Jg(Ki(l,s));break e}}a=l=Ki(l,s),4!==T&&(T=2),null===tk?tk=[a]:tk.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,fh(a,Oi(a,l,t));break e;case 1:s=l;var b=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Si||!Si.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,fh(a,Ri(a,s,t));break e}}a=a.return}while(null!==a)}Tk(n)}catch(e){t=e,Y===n&&null!==n&&(Y=n=n.return);continue}break}}function Kk(){var e=nk.current;return nk.current=ai,null===e?ai:e}function uj(){0!==T&&3!==T&&2!==T||(T=4),null===R||0==(268435455&hh)&&0==(268435455&rk)||Dk(R,Z)}function Jk(e,t){var n=K;K|=2;var r=Kk();for(R===e&&Z===t||(vk=null,Lk(e,t));;)try{Uk();break}catch(t){Nk(e,t)}if(Qg(),K=n,nk.current=r,null!==Y)throw Error(p(261));return R=null,Z=0,T}function Uk(){for(;null!==Y;)Vk(Y)}function Mk(){for(;null!==Y&&!cc();)Vk(Y)}function Vk(e){var t=Wk(e.alternate,e,gj);e.memoizedProps=e.pendingProps,null===t?Tk(e):Y=t,ok.current=null}function Tk(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Fj(n,t,gj)))return void(Y=n)}else{if(null!==(n=Jj(n,t)))return n.flags&=32767,void(Y=n);if(null===e)return T=6,void(Y=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Y=t);Y=t=e}while(null!==t);0===T&&(T=5)}function Qk(e,t,n){var r=C,i=pk.transition;try{pk.transition=null,C=1,Xk(e,t,n,r)}finally{pk.transition=i,C=r}return null}function Xk(e,t,n,r){do{Ik()}while(null!==xk);if(0!=(6&K))throw Error(p(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(p(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(Bc(e,a),e===R&&(Y=R=null,Z=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||wk||(wk=!0,Gk(hc,(function(){return Ik(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=pk.transition,pk.transition=null;var o=C;C=1;var s=K;K|=4,ok.current=null,Pj(e,n),ek(n,e),Oe(Df),dd=!!Cf,Df=Cf=null,e.current=n,ik(n),dc(),K=s,C=o,pk.transition=a}else e.current=n;if(wk&&(wk=!1,xk=e,yk=i),0===(a=e.pendingLanes)&&(Si=null),mc(n.stateNode),Ek(e,B()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Pi)throw Pi=!1,e=Qi,Qi=null,e;return 0!=(1&yk)&&0!==e.tag&&Ik(),0!=(1&(a=e.pendingLanes))?e===Ak?zk++:(zk=0,Ak=e):zk=0,jg(),null}function Ik(){if(null!==xk){var e=Dc(yk),t=pk.transition,n=C;try{if(pk.transition=null,C=16>e?16:e,null===xk)var r=!1;else{if(e=xk,xk=null,yk=0,0!=(6&K))throw Error(p(331));var i=K;for(K|=4,V=e.current;null!==V;){var a=V,o=a.child;if(0!=(16&V.flags)){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(V=u;null!==V;){var c=V;switch(c.tag){case 0:case 11:case 15:Qj(8,c,a)}var d=c.child;if(null!==d)d.return=c,V=d;else for(;null!==V;){var f=(c=V).sibling,h=c.return;if(Tj(c),c===u){V=null;break}if(null!==f){f.return=h,V=f;break}V=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}V=a}}if(0!=(2064&a.subtreeFlags)&&null!==o)o.return=a,V=o;else e:for(;null!==V;){if(0!=(2048&(a=V).flags))switch(a.tag){case 0:case 11:case 15:Qj(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,V=b;break e}V=a.return}}var y=e.current;for(V=y;null!==V;){var k=(o=V).child;if(0!=(2064&o.subtreeFlags)&&null!==k)k.return=o,V=k;else e:for(o=y;null!==V;){if(0!=(2048&(s=V).flags))try{switch(s.tag){case 0:case 11:case 15:Rj(9,s)}}catch(e){W(s,s.return,e)}if(s===o){V=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,V=w;break e}V=s.return}}if(K=i,jg(),lc&&"function"==typeof lc.onPostCommitFiberRoot)try{lc.onPostCommitFiberRoot(kc,e)}catch(e){}r=!0}return r}finally{C=n,pk.transition=t}}return!1}function Yk(e,t,n){e=dh(e,t=Oi(e,t=Ki(n,t),1),1),t=L(),null!==e&&(Ac(e,1,t),Ek(e,t))}function W(e,t,n){if(3===e.tag)Yk(e,e,n);else for(;null!==t;){if(3===t.tag){Yk(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Si||!Si.has(r))){t=dh(t,e=Ri(t,e=Ki(n,e),1),1),e=L(),null!==t&&(Ac(t,1,e),Ek(t,e));break}}t=t.return}}function Ui(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=L(),e.pingedLanes|=e.suspendedLanes&n,R===e&&(Z&n)===n&&(4===T||3===T&&(130023424&Z)===Z&&500>B()-gk?Lk(e,0):sk|=n),Ek(e,t)}function Zk(e,t){0===t&&(0==(1&e.mode)?t=1:(t=sc,0==(130023424&(sc<<=1))&&(sc=4194304)));var n=L();null!==(e=Zg(e,t))&&(Ac(e,t,n),Ek(e,n))}function vj(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Zk(e,n)}function ck(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(p(314))}null!==r&&r.delete(t),Zk(e,n)}function Gk(e,t){return ac(e,t)}function al(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,t,n,r){return new al(e,t,n,r)}function bj(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $k(e){if("function"==typeof e)return bj(e)?1:0;if(null!=e){if((e=e.$$typeof)===Da)return 11;if(e===Ga)return 14}return 2}function wh(e,t){var n=e.alternate;return null===n?((n=Bg(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function yh(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)bj(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case ya:return Ah(n.children,i,a,t);case za:o=8,i|=8;break;case Aa:return(e=Bg(12,n,t,2|i)).elementType=Aa,e.lanes=a,e;case Ea:return(e=Bg(13,n,t,i)).elementType=Ea,e.lanes=a,e;case Fa:return(e=Bg(19,n,t,i)).elementType=Fa,e.lanes=a,e;case Ia:return qj(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ba:o=10;break e;case Ca:o=9;break e;case Da:o=11;break e;case Ga:o=14;break e;case Ha:o=16,r=null;break e}throw Error(p(130,null==e?e:typeof e,""))}return(t=Bg(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Ah(e,t,n,r){return(e=Bg(7,e,r,t)).lanes=n,e}function qj(e,t,n,r){return(e=Bg(22,e,r,t)).elementType=Ia,e.lanes=n,e.stateNode={isHidden:!1},e}function xh(e,t,n){return(e=Bg(6,e,null,t)).lanes=n,e}function zh(e,t,n){return(t=Bg(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cl(e,t,n,r,i,a,o,s,l){return e=new bl(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Bg(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(a),e}function dl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:wa,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function el(e){if(!e)return Vf;e:{if(Vb(e=e._reactInternals)!==e||1!==e.tag)throw Error(p(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Zf(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(p(171))}if(1===e.tag){var n=e.type;if(Zf(n))return bg(e,n,t)}return t}function fl(e,t,n,r,i,a,o,s,l){return(e=cl(n,r,!0,e,i,a,o,s,l)).context=el(null),n=e.current,(a=ch(r=L(),i=lh(n))).callback=null!=t?t:null,dh(n,a,i),e.current.lanes=i,Ac(e,i,r),Ek(e,r),e}function gl(e,t,n,r){var i=t.current,a=L(),o=lh(i);return n=el(n),null===t.context?t.context=n:t.pendingContext=n,(t=ch(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=dh(i,t,o))&&(mh(e,i,o,a),eh(e,i,o)),o}function hl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function il(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function jl(e,t){il(e,t),(e=e.alternate)&&il(e,t)}function kl(){return null}Wk=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Wf.current)Ug=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Ug=!1,zj(e,t,n);Ug=0!=(131072&e.flags)}else Ug=!1,I&&0!=(1048576&t.flags)&&ug(t,ng,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jj(e,t),e=t.pendingProps;var i=Yf(t,H.current);Tg(t,n),i=Xh(null,t,r,e,i,n);var a=bi();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zf(r)?(a=!0,cg(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ah(t),i.updater=nh,t.stateNode=i,i._reactInternals=t,rh(t,r,e,n),t=kj(null,t,r,!0,a,n)):(t.tag=0,I&&a&&vg(t),Yi(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jj(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=$k(r),e=Lg(r,e),i){case 0:t=dj(null,t,r,e,n);break e;case 1:t=ij(null,t,r,e,n);break e;case 11:t=Zi(null,t,r,e,n);break e;case 14:t=aj(null,t,r,Lg(r.type,e),n);break e}throw Error(p(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,dj(e,t,r,i=t.elementType===r?i:Lg(r,i),n);case 1:return r=t.type,i=t.pendingProps,ij(e,t,r,i=t.elementType===r?i:Lg(r,i),n);case 3:e:{if(lj(t),null===e)throw Error(p(387));r=t.pendingProps,i=(a=t.memoizedState).element,bh(e,t),gh(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=mj(e,t,r,n,i=Ki(Error(p(423)),t));break e}if(r!==i){t=mj(e,t,r,n,i=Ki(Error(p(424)),t));break e}for(yg=Lf(t.stateNode.containerInfo.firstChild),xg=t,I=!0,zg=null,n=Ch(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ig(),r===i){t=$i(e,t,n);break e}Yi(e,t,r,n)}t=t.child}return t;case 5:return Kh(t),null===e&&Eg(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,Ef(r,i)?o=null:null!==a&&Ef(r,a)&&(t.flags|=32),hj(e,t),Yi(e,t,o,n),t.child;case 6:return null===e&&Eg(t),null;case 13:return pj(e,t,n);case 4:return Ih(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Bh(t,null,r,n):Yi(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Zi(e,t,r,i=t.elementType===r?i:Lg(r,i),n);case 7:return Yi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Yi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,G(Mg,r._currentValue),r._currentValue=o,null!==a)if(He(a.value,o)){if(a.children===i.children&&!Wf.current){t=$i(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){o=a.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=ch(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Sg(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===a.tag)o=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(o=a.return))throw Error(p(341));o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),Sg(o,n,t),o=a.sibling}else o=a.child;if(null!==o)o.return=a;else for(o=a;null!==o;){if(o===t){o=null;break}if(null!==(a=o.sibling)){a.return=o.return,o=a;break}o=o.return}a=o}Yi(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Tg(t,n),r=r(i=Vg(i)),t.flags|=1,Yi(e,t,r,n),t.child;case 14:return i=Lg(r=t.type,t.pendingProps),aj(e,t,r,i=Lg(r.type,i),n);case 15:return cj(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lg(r,i),jj(e,t),t.tag=1,Zf(r)?(e=!0,cg(t)):e=!1,Tg(t,n),ph(t,r,i),rh(t,r,i,n),kj(null,t,r,!0,e,n);case 19:return yj(e,t,n);case 22:return ej(e,t,n)}throw Error(p(156,t.tag))};var ll="function"==typeof reportError?reportError:function(e){console.error(e)};function ml(e){this._internalRoot=e}function nl(e){this._internalRoot=e}function ol(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function pl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ql(){}function rl(e,t,n,r,i){if(i){if("function"==typeof r){var a=r;r=function(){var e=hl(o);a.call(e)}}var o=fl(t,r,e,0,null,!1,!1,"",ql);return e._reactRootContainer=o,e[uf]=o.current,sf(8===e.nodeType?e.parentNode:e),Sk(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=hl(l);s.call(e)}}var l=cl(e,0,!1,null,null,!1,!1,"",ql);return e._reactRootContainer=l,e[uf]=l.current,sf(8===e.nodeType?e.parentNode:e),Sk((function(){gl(t,l,n,r)})),l}function sl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"==typeof i){var s=i;i=function(){var e=hl(o);s.call(e)}}gl(t,o,e,i)}else o=rl(n,t,e,i,r);return hl(o)}nl.prototype.render=ml.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(p(409));gl(e,t,null,null)},nl.prototype.unmount=ml.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Sk((function(){gl(null,e,null,null)})),t[uf]=null}},nl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Hc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qc.length&&0!==t&&t<Qc[n].priority;n++);Qc.splice(n,0,e),0===n&&Vc(e)}},Ec=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tc(t.pendingLanes);0!==n&&(Cc(t,1|n),Ek(t,B()),0==(6&K)&&(Hj=B()+500,jg()))}break;case 13:Sk((function(){var t=Zg(e,1);if(null!==t){var n=L();mh(t,e,1,n)}})),jl(e,1)}},Fc=function(e){if(13===e.tag){var t=Zg(e,134217728);if(null!==t)mh(t,e,134217728,L());jl(e,134217728)}},Gc=function(e){if(13===e.tag){var t=lh(e),n=Zg(e,t);if(null!==n)mh(n,e,t,L());jl(e,t)}},Hc=function(){return C},Ic=function(e,t){var n=C;try{return C=e,t()}finally{C=n}},yb=function(e,t,n){switch(t){case"input":if(bb(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Db(r);if(!i)throw Error(p(90));Wa(r),bb(r,i)}}}break;case"textarea":ib(e,n);break;case"select":null!=(t=n.value)&&fb(e,!!n.multiple,t,!1)}},Gb=Rk,Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Zb(e))?null:e.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||kl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch(e){}}var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(t))throw Error(p(200));return dl(e,t,null,n)},createRoot=function(e,t){if(!ol(e))throw Error(p(299));var n=!1,r="",i=ll;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=cl(e,1,!1,null,null,n,!1,r,i),e[uf]=t.current,sf(8===e.nodeType?e.parentNode:e),new ml(t)},findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(p(188));throw e=Object.keys(e).join(","),Error(p(268,e))}return e=null===(e=Zb(t))?null:e.stateNode},flushSync=function(e){return Sk(e)},hydrate=function(e,t,n){if(!pl(t))throw Error(p(200));return sl(null,e,t,!0,n)},hydrateRoot=function(e,t,n){if(!ol(e))throw Error(p(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",o=ll;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(o=n.onRecoverableError)),t=fl(t,null,e,1,null!=n?n:null,i,!1,a,o),e[uf]=t.current,sf(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new nl(t)},render=function(e,t,n){if(!pl(t))throw Error(p(200));return sl(null,e,t,!1,n)},unmountComponentAtNode=function(e){if(!pl(e))throw Error(p(40));return!!e._reactRootContainer&&(Sk((function(){sl(null,null,e,!1,(function(){e._reactRootContainer=null,e[uf]=null}))})),!0)},unstable_batchedUpdates=Rk,unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pl(n))throw Error(p(200));if(null==e||void 0===e._reactInternals)throw Error(p(38));return sl(e,t,n,!1,r)},version="18.2.0-next-9e3b772b8-20220608",reactDom_production_min={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,createPortal:createPortal,createRoot:createRoot,findDOMNode:findDOMNode,flushSync:flushSync,hydrate:hydrate,hydrateRoot:hydrateRoot,render:render,unmountComponentAtNode:unmountComponentAtNode,unstable_batchedUpdates:unstable_batchedUpdates,unstable_renderSubtreeIntoContainer:unstable_renderSubtreeIntoContainer,version:version},reactDom=createCommonjsModule((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=reactDom_production_min}));reactDom.render,reactDom.hydrate;var BuilderBlocks=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hydrated=!1,t.onClickEmptyBlocks=function(){var e;Builder.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.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.componentDidMount=function(){this.hydrated=!0},t.prototype.render=function(){var e=this,t=this.props.blocks,n=this.props.emailMode?"span":"div";return jsx(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.isIframe&&this.hydrated?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.isEditing&&{onMouseEnter:function(){return e.onHoverEmptyBlocks()}}),t&&Array.isArray(t)&&t.map((function(t,n){return t&&"@builder.io/sdk:Element"===t["@type"]?jsx(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),reactDom.render(jsx(BuilderStoreContext.Provider,{value:r},jsx(t,__assign({},n))),i)}},t}(react.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,a=__assign(__assign({},e.data),i&&{blocks:n||JSON.parse(r)});return delete a.blocksString,a}}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.isBrowser&&!builder.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.isServer){var a=JSON.stringify(Object.keys(t.variations||{}).map((function(e){return{id:e,testRatio:t.variations[e].testRatio}})));return react_6(react_8,null,n(i,(function(){return react_6("script",{id:"variants-script-".concat(t.id),dangerouslySetInnerHTML:{__html:variantsScript(a,t.id)}})})))}var o="builder.tests.".concat(t.id),s=builder.getCookie(o);if(!s&&Builder.isBrowser)for(var l=0,u=Math.random(),c=0;c<r.length;c++){var d=r[c];if(u<(l+=d.testRatio)){builder.setCookie(o,d.id),s=d.id;break}}return s||(s=t.id,builder.setCookie(o,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,isTrusted=Builder.isTrustedHostForEvent(event);if(isTrusted){var 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 Subscription,_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.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},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.isEditing||Builder.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.isPreviewing||(n.initialContent=[this.props.content]),n},enumerable:!1,configurable:!0}),Object.defineProperty(BuilderContent.prototype,"data",{get:function(){var e=(this.props.inline||!Builder.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.isEditing||Builder.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.isEditing&&addEventListener("message",this.onWindowMessage)},BuilderContent.prototype.subscribeToContent=function(){var e=this;"_inline"!==this.name&&this.subscriptions.add(this.builder.queueGetContent(this.name,this.options).subscribe((function(t){var n=t&&t[0];e.setState({data:n,loading:!1});var r=(e.builder.editingModel||e.builder.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.autoTrack&&!Builder.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.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.createElement(VariantsProvider,{initialContent:n},(function(i,a){return react.createElement(react.Fragment,null,i.map((function(o,s){var l=s===i.length-1?react.Fragment:"template";return react.createElement(react.Fragment,{key:String((null==o?void 0:o.id)+s)},"template"!==l&&(null==a?void 0:a()),react.createElement(l,__assign({key:String((null==o?void 0:o.id)+s)},"template"===l&&{"data-template-variant-id":null==o?void 0:o.id}),react.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==o?void 0:o.id,"builder-model":e.name}),e.props.children(null==o?void 0:o.data,!e.props.inline&&t,n))))})))}))},BuilderContent}(react.Component),getContentWithInfo=function(e){var t;if(e){var n=builder.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 pad(e,t){for(;e.length<t;)e="0"+e;return e}function fold(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 foldObject(e,t,n){return Object.keys(t).sort().reduce((function(e,r){return foldValue(e,t[r],r,n)}),e)}function foldValue(e,t,n,r){var i=fold(fold(fold(e,n),toString$1(t)),typeof t);if(null===t)return fold(i,"null");if(void 0===t)return fold(i,"undefined");if("object"==typeof t||"function"==typeof t){if(-1!==r.indexOf(t))return fold(i,"[Circular]"+n);r.push(t);var a=foldObject(i,t,r);if(!("valueOf"in t)||"function"!=typeof t.valueOf)return a;try{return fold(a,String(t.valueOf()))}catch(e){return fold(a,"[valueOf exception]"+(e.stack||e.message))}}return fold(i,t.toString())}function toString$1(e){return Object.prototype.toString.call(e)}function sum(e){return pad(foldValue(0,e,"",[]).toString(16),8)}var hashSum=sum,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},a=function(e){return Array.isArray(e)?e.slice():Object.assign({},e)},o=function(e,t,o){if("undefined"==typeof Proxy)return e;void 0===o&&(o={});var s,l,u=Symbol("ProxyTarget"),c=!1,d=!1,p=!1,f=o.equals||Object.is,h=new WeakMap,m=new WeakMap,g=new WeakMap,v=function(e,n,r,o){if(!p)if(c){if(c&&l&&void 0!==r&&void 0!==o&&"length"!==n){var u=l;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]=a(u[e]),u=u[e]})),u[n]=r}d=!0}else t(i(e,n),o,r)},b=function(e,t){var n=h?h.get(e):void 0;n&&n.delete(t)},y=function(e,t){if(p)return e;m.set(e,t);var n=g.get(e);return void 0===n&&(n=new Proxy(e,w),g.set(e,n)),n},k=function(e){return p||!0===o.ignoreSymbols&&"symbol"==typeof e},w={get:function(e,t,a){if(t===u||t===n)return e;if(t===r&&""===m.get(e))return function(e){return p=!0,h=null,m=null,g=null,e}(e);var s=Reflect.get(e,t,a);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===o.isShallow)return s;var l=function(e,t){var n=h?h.get(e):void 0;if(n)return n;n=new Map,h.set(e,n);var r=n.get(t);return r||(r=Reflect.getOwnPropertyDescriptor(e,t),n.set(t,r)),r}(e,t);if(l&&!l.configurable){if(l.set&&!l.get)return;if(!1===l.writable)return s}return y(s,i(m.get(e),t))},set:function(e,t,n,r){n&&void 0!==n[u]&&(n=n[u]);var i=k(t),a=i?null:Reflect.get(e,t,r),o=Reflect.set(e[u]||e,t,n);return i||f(a,n)||v(m.get(e),t,a,n),o},defineProperty:function(e,t,n){var r=Reflect.defineProperty(e,t,n);return k(t)||(b(e,t),v(m.get(e),t,void 0,n.value)),r},deleteProperty:function(e,t){if(!Reflect.has(e,t))return!0;var n=k(t),r=n?null:Reflect.get(e,t),i=Reflect.deleteProperty(e,t);return n||(b(e,t),v(m.get(e),t,r)),i},apply:function(e,t,n){var r=t instanceof Date;if(r&&(t=t[u]),!c){c=!0,r&&(l=t.valueOf()),(Array.isArray(t)||"[object Object]"===toString.call(t))&&(l=a(t[u])),s=(s=m.get(e)).slice(0,Math.max(s.lastIndexOf("."),0));var i=Reflect.apply(e,t,n);return c=!1,(d||r&&!f(l,t.valueOf()))&&(v(s,"",l,t[u]||t),l=null,d=!1),i}return Reflect.apply(e,t,n)}},S=y(e,"");return t=t.bind(S),S};o.target=function(e){return e[n]||e},o.unsubscribe=function(e){return e[r]||e},e.exports=o,t.default=o})),onChange=unwrapExports(onChange_1),nextTick=Builder.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;if(t=[].slice.call(arguments),n=this,null!==e)return;nextTick(r)};function r(){e.apply(n,t),t=null,n=null}}function throttle(e,t,n){var r,i,a;void 0===n&&(n={});var o=null,s=0,l=function(){s=!1===n.leading?0:Date.now(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,i=arguments,c<=0||c>t?(o&&(clearTimeout(o),o=null),s=u,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=setTimeout(l,c)),a}}var BuilderMetaContext=react.createContext({emailMode:!1,ampMode:!1,isServer:!1}),tryEval=function(e,t,n){void 0===t&&(t={});var r=e;if("string"==typeof r&&r.trim()){var i=!(r.includes(";")||r.includes(" return ")),a=function(){};try{Builder.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(i?"return (".concat(e,");"):e,";\n }")))}catch(e){Builder.isBrowser&&console.warn("Could not compile javascript",e)}try{if(Builder.isBrowser||shouldForceBrowserRuntimeInNode())return a(t||{});var o=safeDynamicRequire("isolated-vm"),s=getIsolateContext(),l=makeFn(e,i,["state"]),u=s.evalClosureSync(l,[new o.Reference(t||{})]);try{return JSON.parse(u)}catch(e){return u}}catch(t){n&&n.push(t),Builder.isBrowser?console.warn("Builder custom code error:",t.message,"in",e,t.stack):isDebug()&&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 instancesMap=new Map,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})))||[]),a=omit.apply(void 0,__spreadArray(__spreadArray([t],i,!1),["attributes"],!1)),o=t;return e.noWrap?react.createElement(e.class,__assign({attributes:a},o)):react.createElement(r,__assign({},a),react.createElement(e.class,__assign({},o)))}},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,a=arguments;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(i,a)}),t),n&&!r&&e.apply(i,a)}}var fontsLoaded=new Set,fetch$1;globalThis.fetch&&(fetch$1=globalThis.fetch),null!=fetch$1||(fetch$1=require("node-fetch"));var sizeMap={desktop:"large",tablet:"medium",mobile:"small",xsmall:"xsmall"},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,i=this;(i=e.call(this,t)||this).subscriptions=new Subscription,i.onStateChange=new BehaviorSubject(null),i.asServer=Builder.isServer,i.contentRef=null,i.styleRef=null,i.rootState=Builder.isServer?{}:onChange({},(function(){return i.updateState()})),i.lastJsCode="",i.lastHttpRequests={},i.httpSubscriptionPerKey={},i.firstLoad=!0,i.ref=null,i.messageListener=function(e){var t;if(Builder.isTrustedHostForEvent(e)){var n=e.data;switch(n.type){case"builder.configureSdk":var r=n.data;if(!r.contentId||r.contentId!==(null===(t=i.useContent)||void 0===t?void 0:t.id))return;i.sizes=getSizesForBreakpoints(r.breakpoints||{}),i.setState({state:Object.assign(i.rootState,{deviceSize:i.deviceSizeState,device:i.device}),updates:(i.state&&i.state.updates||0)+1,breakpoints:r.breakpoints});break;case"builder.updateSpacer":var a=n.data;i.rootState._spacer,i.updateState((function(e){e._spacer=a}));break;case"builder.resetState":var o=n.data,s=o.state;if(o.model===i.name){for(var l in i.rootState)"function"!=typeof i.rootState[l]&&delete i.rootState[l];Object.assign(i.rootState,s),i.setState(__assign(__assign({},i.state),{state:i.rootState,updates:(i.state&&i.state.updates||0)+1}))}break;case"builder.resetSymbolState":var u=n.data.state,c=(s=u.state,u.model,u.id);if(i.props.builderBlock&&i.props.builderBlock===c){for(var l in i.rootState)delete i.rootState[l];Object.assign(i.rootState,s),i.setState(__assign(__assign({},i.state),{state:i.rootState,updates:(i.state&&i.state.updates||0)+1}))}}}},i.resizeFn=function(){var e=i.deviceSizeState;e!==i.state.state.deviceSize&&i.setState(__assign(__assign({},i.state),{updates:(i.state&&i.state.updates||0)+1,state:Object.assign(i.rootState,__assign(__assign({},i.state.state),{deviceSize:e}))}))},i.resizeListener=Builder.isEditing?throttle(i.resizeFn,200):debounce(i.resizeFn,400),i.mounted=!1,i.updateState=function(e){var t=i.rootState;e&&e(t),i.mounted?i.setState({update:i.updateState,state:t,updates:(i.state&&i.state.updates||0)+1}):i.state=__assign(__assign({},i.state),{update:i.updateState,state:t,updates:(i.state&&i.state.updates||0)+1}),i.notifyStateChange()},i.onContentLoaded=function(e,t){if("page"===i.name&&Builder.isBrowser&&e){var n=e.title,r=e.pageTitle,a=e.description,o=e.pageDescription;if((n||r)&&(document.title=n||r),a||o){var s=document.querySelector('meta[name="description"]');s||((s=document.createElement("meta")).setAttribute("name","description"),document.head.appendChild(s)),s.setAttribute("content",a||o)}}if(Builder.isEditing&&i.notifyStateChange(),i.props.contentLoaded&&i.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 l=__assign(__assign({},i.state),{updates:(i.state&&i.state.updates||0)+1,state:Object.assign(i.rootState,__assign(__assign(__assign(__assign(__assign({},i.state.state),{location:i.locationState,device:i.device}),e.state),i.externalState),{deviceSize:i.deviceSizeState}))});i.mounted?i.setState(l):i.state=l}if(e&&e.jsCode&&!i.options.codegen){var u=!1;if(Builder.isEditing&&(i.lastJsCode===e.jsCode?u=!0:i.lastJsCode=e.jsCode),!u){var c=i.state.state;try{new Function("data","ref","state","update","element","Builder","builder","context",e.jsCode)(e,i,c,i.state.update,i.ref,Builder,builder,i.state.context)}catch(t){var d=toError(t);Builder.isBrowser?console.warn("Builder custom code error:",d.message,"in",e.jsCode,d.stack):isDebug()&&console.debug("Builder custom code error:",d.message,"in",e.jsCode,d.stack)}}}if(e&&e.httpRequests&&!i.props.noAsync&&!(u=!1)){var p=function(t){var n=e.httpRequests[t];if(n&&(!i.data[t]||Builder.isEditing)){var r="object"==typeof n&&"@builder.io/core:Request"===n["@type"];if(Builder.isBrowser){var a=r?i.evalExpression(n.request.url):i.evalExpression(n);if(Builder.isEditing&&i.lastHttpRequests[t]===a)return"continue";i.lastHttpRequests[t]=a,r?i.handleRequest(t,{url:a,method:n.request.method,body:n.request.body,headers:n.request.headers}):i.handleRequest(t,{url:a,method:"GET"});var o=i.httpSubscriptionPerKey[t];o&&o.unsubscribe();var s=i.httpSubscriptionPerKey[t]=i.onStateChange.subscribe((function(){var e=r?i.evalExpression(n.request.url):i.evalExpression(n);e!==a&&(r?i.handleRequest(t,{url:e,method:n.request.method,body:n.request.body,headers:n.request.headers}):i.handleRequest(t,{url:e,method:"GET"}),i.lastHttpRequests[t]=e)}));i.subscriptions.add(s)}else r?i.handleRequest(t,{url:i.evalExpression(n.request.url),method:n.request.method,body:n.request.body,headers:n.request.headers}):i.handleRequest(t,{url:i.evalExpression(n),method:"GET"})}};for(var f in e.httpRequests)p(f)}};var a=i.inlinedContent;a&&a.content&&(a=a.content),i.sizes=getSizesForBreakpoints((null===(n=null==a?void 0:a.meta)||void 0===n?void 0:n.breakpoints)||{});var o=null===(r=i.inlinedContent)||void 0===r?void 0:r.data;o&&Array.isArray(o.inputs)&&o.inputs.length>0&&(o.state||(o.state={}),o.inputs.forEach((function(e){e&&e.name&&void 0!==e.defaultValue&&void 0===o.state[e.name]&&(o.state[e.name]=e.defaultValue)}))),i.state={context:__assign(__assign({},t.context),{apiKey:i.props.apiKey||builder.apiKey}),state:Object.assign(i.rootState,__assign(__assign(__assign(__assign({},i.inlinedContent&&i.inlinedContent.data&&i.inlinedContent.data.state),{isBrowser:Builder.isBrowser,isServer:!Builder.isBrowser,_hydrate:t.hydrate,location:i.locationState,deviceSize:i.deviceSizeState,device:i.device}),i.getHtmlData()),t.data)),updates:0,key:0,update:i.updateState};var s=i.props.apiKey;if(s&&s!==i.builder.apiKey&&!instancesMap.has(s)){var l=new Builder(s,void 0,void 0,!0);instancesMap.set(s,l)}if(i.inlinedContent){var u=i.inlinedContent.content||i.inlinedContent;i.onContentLoaded(null==u?void 0:u.data,getContentWithInfo(u))}return i.registerCustomComponents(),i}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.apiKey&&instancesMap.get(this.props.apiKey)||this.props.builder||builder},enumerable:!1,configurable:!0}),t.prototype.getHtmlData=function(){var e=this.inlinedContent&&this.inlinedContent.id||this.props.entry,t=e&&Builder.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.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 a=null;if("string"==typeof e?a=document.querySelector(e):e instanceof Element&&(a=e),a){var o=a.classList.contains("builder-hydrated");if(!o||i){a.classList.add("builder-hydrated");var s=r&&a.innerHTML.includes("builder-block");if(!a.classList.contains("builder-component")){var l=a.querySelector(".builder-api-styles")||(a.previousElementSibling&&a.previousElementSibling.matches(".builder-api-styles")?a.previousElementSibling:null),u="";if(l)l.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.isEditing||(u+=e),e})),Builder.nextTick((function(){l.innerHTML=u}));var c=a.querySelector(".builder-component");c?a=c:s=!1}location.search.includes("builder.debug=true")&&console.debug("hydrate",s,a);var d=a;if(!o){var p=document.createElement("div");a.insertAdjacentElement("beforebegin",p),p.appendChild(a),d=p}if((Builder.isEditing||Builder.isBrowser&&location.search.includes("builder.preview="))&&(s=!1),s&&a){var f=reactDom.render(react.createElement(t,__assign({},n)),d,d.builderRootRef);return d.builderRootRef=f,f}var h=reactDom.render(react.createElement(t,__assign({},n)),d,d.builderRootRef);return d.builderRootRef=h,h}console.debug("Tried to hydrate multiple times")}}},t.prototype.registerCustomComponents=function(){if(this.props.customComponents)for(var e=0,t=this.props.customComponents;e<t.length;e++){var n=t[e];if(n){var r=n.component,i=__rest(n,["component"]);Builder.registerComponent(r,i)}}},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.isIframe&&(null===(e=window.parent)||void 0===e||e.postMessage({type:"builder.sdkInjected",data:{modelName:this.name,apiKey:this.props.apiKey||builder.apiKey}},"*")),Builder.isBrowser&&(window.addEventListener("resize",this.resizeListener),Builder.isEditing&&window.addEventListener("message",this.messageListener),(Builder.isEditing||Builder.isPreviewing)&&Builder.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.isServer||Builder.isBrowser&&Builder.isPreviewing&&!this.firstLoad)&&(builder.previewingModel===this.name||"BUILDER_STUDIO"===builder.previewingModel)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChange=function(){if(!Builder.isServer&&this&&this.state){var e=this.state.state;this.props.onStateChange&&this.props.onStateChange(e),Builder.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.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,a="";if(i&&n&&r&&(a+='\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 o in e.files){if(String(Number(o))===o){var s=e.files[o];s&&s!==i&&(a+='\n@font-face {\n font-family: "'.concat(n,"\";\n src: url('").concat(s,"') format('woff2');\n font-display: fallback;\n font-weight: ").concat(o,";\n}\n ").trim())}}return a},t.prototype.componentWillUnmount=function(){this.unsubscribe(),Builder.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 a=this.getCssFromFont(r,e);if(fontsLoaded.add(i),!a)continue;var o=document.createElement("style");o.className="builder-custom-font",o.setAttribute("data-builder-custom-font",i),o.innerHTML=a,document.head.appendChild(o)}}},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)})),this.props.customComponents&&this.props.customComponents!==e.customComponents&&this.registerCustomComponents(),Builder.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.isBrowser&&this.externalState&&size$1(this.externalState)&&hashSum(this.externalState),i=Builder.isEditing?this.name:this.props.entry;i&&!Builder.isEditing&&r&&r.length<300&&(i+=":"+r);var a=this.props.dataOnly?react.Fragment:"div",o=null===(e=this.useContent)||void 0===e?void 0:e.id;return react.createElement(a,{onClick:function(e){!Builder.isEditing||t.props.isChild||t.props.stopClickPropagationWhenEditing||e.stopPropagation()},className:"builder-component ".concat(o?"builder-component-".concat(o):""),"data-name":this.name,"data-source":"Rendered by Builder.io",key:this.state.key,ref:function(e){return t.ref=e}},react.createElement(BuilderMetaContext.Consumer,null,(function(e){return react.createElement(BuilderMetaContext.Provider,{value:"boolean"==typeof t.props.ampMode?__assign(__assign({},e),{ampMode:t.props.ampMode}):e},react.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.createElement(BuilderContent,{isStatic:t.props.isStatic||Builder.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.isBrowser&&Builder.nextTick((function(){t.checkStyles(e)}));var a=t.options.codegen;if(a&&!t.Component&&(null==e?void 0:e.blocksJs)){var o=Array.from(new Set(Builder.components.map((function(e){return e.name})))),s=Builder.components.slice().reverse(),l=o.map((function(e){return s.find((function(t){return t.class&&t.name===e}))})),u=o.map((function(e){return(e||"").replace(/[^\w]+/gi,"")})),c=l.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([jsx,css,Builder,builder,react,function(e){var t=react.useState(0)[1];return react.useState((function(){return onChange(e,(function(){t((function(e){return e+1}))}))}))[0]}],c,!1))}var d=(null==e?void 0:e.blocks)||[],p=d.find((function(e){var t;return null===(t=e.id)||void 0===t?void 0:t.startsWith("builder-pixel")}));return e&&!p&&d.length>0&&d.push(getBuilderPixel(builder.apiKey)),e?react.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}:{}),!a&&t.getCss(e)&&react.createElement("style",{ref:function(e){return t.styleRef=e},className:"builder-custom-styles",dangerouslySetInnerHTML:{__html:t.getCss(e)}}),react.createElement(BuilderStoreContext.Provider,{value:__assign(__assign({},t.state),{rootState:t.rootState,state:t.data,content:r,renderLink:t.props.renderLink})},a&&t.Component?react.createElement(t.Component,{data:t.data,context:t.state.context}):react.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:d}))):n?react.createElement("div",{"data-builder-component":t.name,className:"builder-loading"},t.props.children):react.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,a,o,s,l,u,c,d=this;return __generator(this,(function(p){return n=t.url,r=t.method,i=t.body,a=t.headers,o=JSON.stringify({url:n,method:r,body:i,headers:a}),Builder.isIframe&&fetchCache[o]?(this.updateState((function(t){t[e]=fetchCache[o]})),[2,fetchCache[o]]):(s=function(){return __awaiter(d,void 0,void 0,(function(){var t,s,l,u;return __generator(this,(function(c){switch(c.label){case 0:t=Date.now(),Builder.isBrowser||console.time("Fetch "+o),c.label=1;case 1:return c.trys.push([1,4,5,6]),[4,fetch$1(n,{method:r,headers:a,body:i})];case 2:return[4,c.sent().json()];case 3:return s=c.sent(),[3,6];case 4:return l=c.sent(),u=toError(l),this._errors&&this._errors.push(u),this._logs&&this._logs.push("Fetch to ".concat(o," errored in ").concat(Date.now()-t,"ms")),[2];case 5:return Builder.isBrowser||(console.timeEnd("Fetch "+o),this._logs&&this._logs.push("Fetched ".concat(o," in ").concat(Date.now()-t,"ms"))),[7];case 6:return s&&(Builder.isIframe&&(fetchCache[o]=s),this.updateState((function(t){t[e]=s}))),[2,s]}}))}))},(l=this._asyncRequests&&this._asyncRequests.find((function(e){return isRequestInfo(e)&&e.url===n})))?((u=l.promise).then((function(t){t&&d.updateState((function(n){n[e]=t}))})),[2,u]):(c=s(),Builder.nextTick((function(){d._asyncRequests&&d._asyncRequests.push(c)})),[2,c]))}))}))},t.prototype.unsubscribe=function(){this.subscriptions&&(this.subscriptions.unsubscribe(),this.subscriptions=new Subscription)},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.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.Component);function BuilderBlock(e){return e.type="react",Builder.Component(e)}function updateMetadata(e,t){var n=Builder.components.find((function(t){return"string"==typeof e?t.name===e:t.class===t}))||null,r=t(n);n&&r?Builder.registerComponent(r.class||n.class,r):n&&!r||!n&&r&&Builder.registerComponent(r.class,r)}function withBuilder(e,t){return BuilderBlock(t)(e),e}var isBuilderElement=function(e){return Boolean("object"==typeof e&&e&&"@builder.io/sdk:Element"===(null==e?void 0:e["@type"]))},withChildren=function(e){var t=react.forwardRef((function(t,n){var r,i,a=__assign({},t),o=t.children||t.builderBlock&&t.builderBlock.children&&t.builderBlock.children.map((function(e){return react.createElement(BuilderBlock$1,{key:e.id,block:e})})),s=null===(i=null===(r=t.builderBlock)||void 0===r?void 0:r.component)||void 0===i?void 0:i.options;return s&&Object.keys(s).forEach((function(e){var t=s[e];Array.isArray(t)&&t.every(isBuilderElement)?a[e]=t.map((function(e){return react.createElement(BuilderBlock$1,{key:e.id,block:e})})):isBuilderElement(t)&&(a[e]=react.createElement(BuilderBlock$1,{block:t}))})),react.createElement(e,__assign({},a,{ref:n}),o)}));return t.builderOptions={canHaveChildren:!0},t},noWrap=function(e){var t=react.forwardRef((function(t,n){var r=__assign(__assign({},t),t.attributes);return react.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.componentDidMount=function(){this.textRef&&!/{{([^}]+)}}/.test(this.props.text)&&(this.textRef.innerHTML=this.props.text)},t.prototype.evalExpression=function(e,t){return this.allowTextEdit?String(e):String(e).replace(/{{([^}]+)}}/g,(function(e,n){return tryEval(n,t)}))},Object.defineProperty(t.prototype,"allowTextEdit",{get:function(){return Builder.isBrowser&&Builder.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={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 jsx(BuilderStoreContext.Consumer,null,(function(n){var r;return(null===(r=n.content.meta)||void 0===r?void 0:r.rtlMode)&&(t.direction="rtl"),jsx(react.Fragment,null,jsx("span",__assign({ref:function(t){e.textRef=t},css:t,className:"builder-text"},{dangerouslySetInnerHTML:{__html:e.evalExpression(e.props.text||e.props.content||"",n.state)}})))}))},t}(react.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=react_3(BuilderStoreContext),r=!n.context.symbolId;return jsx("div",__assign({css:{pointerEvents:"auto"}},r&&{"builder-slot":t}),jsx(BuilderBlocks,{child:!0,parentElementId:n.context.symbolId,dataPath:"symbol.data.".concat(t),blocks:n.state[t]||[]}))}Builder.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.createElement(BuilderBlock$1,{block:e,key:e.id,index:t})}))},t}(react.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,r=this.getWidth(e),i=n*(t.length-1)*(r/100);return"calc(".concat(r,"% - ").concat(i,"px)")},t.prototype.render=function(){var e,t,n,r,i=this,a=this.columns,o=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)||{},l=getSizesForBreakpoints(s);return jsx(react.Fragment,null,jsx("div",{className:"builder-columns",css:__assign({display:"flex",height:"100%"},"never"!==this.props.stackColumnsAt&&(e={},e["@media (max-width: ".concat("tablet"!==this.props.stackColumnsAt?l.small.max:l.medium.max,"px)")]={flexDirection:this.props.reverseColumnsWhenStacked?"column-reverse":"column",alignItems:"stretch"},e))},a.map((function(e,t){var n,r,a=e.link?Link:"div";return jsx(react.Fragment,{key:t},jsx(a,__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:o,n),"never"!==i.props.stackColumnsAt&&(r={},r["@media (max-width: ".concat("tablet"!==i.props.stackColumnsAt?l.small.max:l.medium.max,"px)")]={width:"100%",marginLeft:0},r))}),jsx(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.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){function t(){n.forEach((function(e){e.delete("width")}))}var n=e.get("columns");Array.isArray(n)&&(!n.find((function(e){return e.get("width")}))||(n.find((function(e){return!e.get("width")}))||100!==n.reduce((function(e,t){return e+t.get("width")}),0))&&t())}},{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.shouldComponentUpdate=function(e){return e.content!==this.props.content},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.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.createElement("div",{ref:function(t){return e.elementRef=t},className:"builder-embed",dangerouslySetInnerHTML:{__html:this.content}})},t}(react.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"},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]}),globalReplaceNodes={}||null,isShopify$1=Builder.isBrowser&&"Shopify"in window;if(Builder.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.isBrowser){var i=null===(n=r.props.builderBlock)||void 0===n?void 0:n.id;if(r.replaceNodes=Boolean(Builder.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 a=globalReplaceNodes[i].shift()||null;r.originalRef=a,0===globalReplaceNodes[i].length&&delete globalReplaceNodes[i]}else if(r.replaceNodes){var o=document.querySelectorAll(".".concat(r.props.builderBlock.id," .builder-custom-code"));if(1===o.length){var s=o[0];r.originalRef=s,r.originalRef.remove()}}}return r}return __extends(t,e),t.prototype.shouldComponentUpdate=function(e){return e.code!==this.props.code},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.nextTick((function(){return e.findAndRunScripts()}))):this.findAndRunScripts()),Builder.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.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.createElement("div",__assign({ref:function(t){return e.elementRef=t},className:"builder-custom-code"},!this.replaceNodes&&!this.noReactRender&&{dangerouslySetInnerHTML:{__html:this.code}}))},t}(react.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})]}),IMAGE_FILE_TYPES=["jpeg","jpg","png","svg","webp","gif","jfif","pjpeg","pjp","apng","avif","tif","tiff","heif","bmp","eps","raw","cr2","nef","orf","sr2","psd","heic","dib","ai"],VIDEO_FILE_TYPES=["mp4","webm","mkv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mov","qt","mts","m2ts","ts","wmv","yuv","rm","rmvb","viv","asf","amv","m4p","mpeg","mpe","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","f4v","f4p","f4a","f4b"];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],a=t.match("x")?t:"".concat(t,"x");return removeProtocol("".concat(r[0],"_").concat(a).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,a,o,s,l,u,c;void 0===n&&(n={});var d="";if(e){var p=e.split(","),f=p.length;d=p.map((function(e,t){return f===t+1?e.replace(/\([\s\S]*?\)/g,"").trim():e})).join(", ")}else if(t&&t.responsiveStyles){var h=[],m=!1,g=/^\d+/,v=getSizesForBreakpoints(n);if(null===(a=null===(i=null===(r=t.responsiveStyles)||void 0===r?void 0:r.small)||void 0===i?void 0:i.width)||void 0===a?void 0:a.match(g)){m=!0;var b="(max-width: ".concat(v.small.max,"px)"),y="".concat(b," ").concat(t.responsiveStyles.small.width.replace("%","vw"));h.push(y)}if(null===(l=null===(s=null===(o=t.responsiveStyles)||void 0===o?void 0:o.medium)||void 0===s?void 0:s.width)||void 0===l?void 0:l.match(g)){m=!0;b="(max-width: ".concat(v.medium.max,"px)"),y="".concat(b," ").concat(t.responsiveStyles.medium.width.replace("%","vw"));h.push(y)}if(null===(c=null===(u=t.responsiveStyles)||void 0===u?void 0:u.large)||void 0===c?void 0:c.width){var k=t.responsiveStyles.large.width.replace("%","vw");h.push(k)}else m&&h.push("100vw");h.length&&(d=h.join(", "))}return d},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!this.props.highPriority&&((!Builder.isBrowser||!location.search.includes("builder.lazyLoadImages=false"))&&(!(!Builder.isBrowser||!location.href.includes("builder.lazyLoadImages=true"))||this.props.lazy))},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){Builder.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.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&&"string"==typeof e&&!this.props.noWebp&&(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,a=r.lazy,o=r.builderBlock,s=r.builderState,l=this.props.builderBlock&&this.props.builderBlock.children,u=this.props.srcset,c=getSizes(this.props.sizes,o,(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)||{}),d=this.image;u&&d&&d.includes("builder.io/api/v1/image")?u.includes(d.split("?")[0])||(console.debug("Removed given srcset"),u=this.getSrcSet()):d&&!u&&(u=this.getSrcSet());var p=(null==o?void 0:o.id.startsWith("builder-pixel-"))||this.props.highPriority,f=this.props.fitContent;return jsx(BuilderMetaContext.Consumer,null,(function(e){var t,r=e.ampMode,o=r?"amp-img":"img",s=(!a||n.state.load||r)&&jsx(o,__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,title:n.props.title,key:Builder.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:p?"eager":"lazy",fetchPriority:p?"high":"auto",className:"builder-image"+(n.props.className?" "+n.props.className:""),src:n.image},!r&&{onLoad:function(){return n.setState({imageLoaded:!0})}},{srcSet:u,sizes:!r&&c?c:void 0}));return jsx(react.Fragment,null,r?s:jsx("picture",{ref:function(e){return n.pictureRef=e}},u&&u.match(/builder\.io/)&&!n.props.noWebp&&jsx("source",{srcSet:u.replace(/\?/g,"?format=webp&"),type:"image/webp"}),s),!i||r||f&&l&&l.length?null:jsx("div",{className:"builder-image-sizer",css:{width:"100%",paddingTop:100*i+"%",pointerEvents:"none",fontSize:0}}," "),l&&l.length?f?l.map((function(e,t){return jsx(BuilderBlock$1,{key:e.id,block:e})})):jsx("div",{css:{display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:0,left:0,width:"100%",height:"100%"}},l.map((function(e,t){return jsx(BuilderBlock$1,{key:e.id,block:e})}))):null)}))},t}(react.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:IMAGE_FILE_TYPES,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"),a=!1;i.onload=function(){a=!0,e(i)},i.addEventListener("error",(function(e){console.warn("Image load failed",e.error),r(e.error)})),i.src=t,setTimeout((function(){a||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:"title",type:"string",helperText:"Text to display when hovering over the asset"},{name:"highPriority",type:"boolean",advanced:!0,helperText:"Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."},{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.lazyVideoObserver=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;if(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.isBrowser){var t=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(e.setState((function(e){return __assign(__assign({},e),{load:!0})})),e.lazyVideoObserver&&(e.lazyVideoObserver.disconnect(),e.lazyVideoObserver=null))}))}));this.containerRef&&(t.observe(this.containerRef),this.lazyVideoObserver=t)}},t.prototype.componentWillUnmount=function(){this.lazyVideoObserver&&(this.lazyVideoObserver.disconnect(),this.lazyVideoObserver=null)},t.prototype.render=function(){var e=this,t=this.props,n=t.aspectRatio,r=t.children;return jsx("div",{ref:function(t){return e.containerRef=t},css:{position:"relative"}},jsx("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,preload:this.props.preload||"metadata",className:"builder-video",css:__assign({width:"100%",height:"100%",objectFit:this.props.fit,objectPosition:this.props.position,borderRadius:1},n?{position:"absolute"}:null)},(!this.lazyLoad||this.state.load)&&jsx("source",{type:"video/mp4",src:this.props.video})),!n||this.props.fitContent&&r?null:jsx("div",{css:{width:"100%",paddingTop:100*n+"%",pointerEvents:"none",fontSize:0}}),r&&this.props.fitContent?jsx("div",{css:{display:"flex",flexDirection:"column",alignItems:"stretch"}},r):r?jsx("div",{css:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:0,left:0,width:"100%",height:"100%"}},r):null)},t}(react.Component),Video=Builder.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:VIDEO_FILE_TYPES,bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:IMAGE_FILE_TYPES,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:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{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.isBrowser&&"Shopify"in window,refs={};if(Builder.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.isEditingThisSymbol=!1,t}return __extends(t,e),Object.defineProperty(t.prototype,"placeholder",{get:function(){return jsx("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,r=this;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)),Builder.nextTick((function(){var e=r.props.symbol||{},t=e.model,n=e.entry;r.isEditingThisSymbol=Boolean(Builder.isEditing&&t===builder.editingModel&&n&&location.search.includes("overrides.".concat(n)))}))},Object.defineProperty(t.prototype,"useStatic",{get:function(){var e;return Boolean(Builder.isBrowser&&refs[null===(e=this.props.builderBlock)||void 0===e?void 0:e.id]&&!(Builder.isEditing||Builder.isPreviewing))},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t,n=this;if(this.useStatic)return jsx("div",{ref:function(e){return n.staticRef=e}});var r=this.props.symbol,i=!1;r||(i=!0);var a=this.props.dataOnly?NoWrap:this.props.builderBlock&&this.props.builderBlock.tagName||"div",o=r||{},s=o.model,l=o.entry,u=o.data,c=o.content,d=o.inline,p=o.ownerId,f=(null==r?void 0:r.dynamic)||this.props.dynamic;s&&(l||f)||(null===(e=null==c?void 0:c.data)||void 0===e?void 0:e.blocksJs)||d||(i=!0),this.isEditingThisSymbol&&(i=!1);var h=f?null===(t=this.props.builderBlock)||void 0===t?void 0:t.id:[s,l].join(":"),m=u&&size(u)&&hashSum(u);h&&m&&m.length<300&&(h+=":"+m);var g=this.props.attributes||{};return jsx(BuilderStoreContext.Consumer,{key:(s||"no model")+":"+(l||"no entry"+this.isEditingThisSymbol)},(function(e){var t,o,d,f,m,v,b,y,k,w,S,_="".concat(h,"_").concat((null===(t=null==e?void 0:e.state)||void 0===t?void 0:t.locale)||"Default");return jsx(a,__assign({"data-model":s},g,{className:(g.class||g.className||"")+" builder-symbol"+((null==r?void 0:r.inline)?" builder-inline-symbol":"")+((null==r?void 0:r.dynamic)||n.props.dynamic?" builder-dynamic-symbol":"")}),i?n.placeholder:jsx(BuilderComponent,__assign({},p&&{apiKey:p},(null===(o=e.state)||void 0===o?void 0:o.locale)&&{locale:e.state.locale},{isChild:!0,ref:function(e){return n.ref=e},context:__assign(__assign({},e.context),{symbolId:null===(d=n.props.builderBlock)||void 0===d?void 0:d.id}),model:s,entry:l,data:__assign(__assign(__assign({},u),!!n.props.inheritState&&omit$2(e.state,"children")),null===(k=null===(y=null===(b=null===(v=null===(m=null===(f=n.props.builderBlock)||void 0===f?void 0:f.component)||void 0===m?void 0:m.options)||void 0===v?void 0:v.symbol)||void 0===b?void 0:b.content)||void 0===y?void 0:y.data)||void 0===k?void 0:k.state),renderLink:e.renderLink,inlineContent:null==r?void 0:r.inline},c&&{content:c},{key:_,options:__assign(__assign({},!n.isEditingThisSymbol&&{key:_,noEditorUpdates:!0}),"content"===Builder.singletonInstance.apiEndpoint&&l&&{query:{id:l}}),codegen:!!(null===(w=null==c?void 0:c.data)||void 0===w?void 0:w.blocksJs),hydrate:null===(S=e.state)||void 0===S?void 0:S._hydrate,builderBlock:n.props.builderBlock,dataOnly:n.props.dataOnly}),n.props.children))}))},t}(react.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.createElement(e,__assign({role:"button",href:this.props.link,target:this.props.openLinkInNewTab?"_blank":void 0},this.props.attributes),this.props.text)},t}(react.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 jsx("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?jsx(react.Fragment,null,this.props.children,this.props.builderBlock&&this.props.builderBlock.children&&this.props.builderBlock.children.map((function(e,t){return jsx(BuilderBlock$1,{key:e.id,block:e})}))):null)},t}(react.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.createElement(BuilderStoreContext.Consumer,null,(function(t){return react.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.createElement(BuilderBlock$1,{block:e,key:e.id,index:t,child:!0})})),e.props.children)}))},t}(react.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,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 a=t.parseUrl(r);t.preloadQueue++;var o=builder.getUserAttributes();o.urlPath=a.pathname,o.queryString=a.search;var s=builder.get(t.model,{userAttributes:o,key:t.model+":"+a.pathname+a.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(a){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 jsx(BuilderStoreContext.Consumer,null,(function(n){e.privateState=n;var r=n.state&&n.state.location&&n.state.location.pathname+n.state.location.search;return jsx("div",{className:"builder-router","data-model":t},jsx("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 "),jsx(BuilderComponent,{key:r,data:e.props.data,content:e.routed?void 0:e.props.content,modelName:t,options:{key:Builder.isEditing?void 0:e.model+":"+r}},e.props.children||jsx("div",{css:{display:"flex"}},jsx("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.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.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 jsx("span",{style:{display:"none"},ref:r},jsx(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.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.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.isEditing&&this.props.previewState||this.state.state},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return jsx(BuilderStoreContext.Consumer,null,(function(t){return jsx(BuilderStoreContext.Provider,{value:__assign(__assign({},t),{state:__assign(__assign({},t.state),{formErrorMessage:e.state.formErrorMessage})})},jsx("form",__assign({},e.props.validate?{}:{noValidate:!0},{ref:function(t){return e.ref=t},action:!e.props.sendWithJs&&e.props.action?e.props.action:void 0,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,a=e.props.customHeaders||{},o=void 0,s=new FormData(i),l=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(l).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)o=s;else if(u===JSON_CONTENT_TYPE){var c={};Array.from(l).forEach((function(e){var t=e.value,n=e.key;set(c,n,t)})),o=JSON.stringify(c)}else{if(u!==ENCODED_CONTENT_TYPE)return void console.error("Unsupported content type: ",u);o=Array.from(l).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"))||(a["content-type"]=u));var d=new CustomEvent("presubmit",{detail:{body:o}});if(e.ref&&(e.ref.dispatchEvent(d),d.defaultPrevented))return;e.setState(__assign(__assign({},e.state),{state:"sending"}));var p="".concat("dev"===builder.env?"http://localhost:5000":"https://builder.io","/api/v1/form-submit?apiKey=").concat(builder.apiKey,"&to=").concat(btoa(e.props.sendSubmissionsToEmail||""),"&name=").concat(encodeURIComponent(e.props.name||""));fetch("email"===e.props.sendSubmissionsTo?p:e.props.action,{body:o,headers:a,method:e.props.method||"post"}).then((function(t){return __awaiter(e,void 0,void 0,(function(){var e,n,r,i,a;return __generator(this,(function(o){switch(o.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=o.sent(),[3,4];case 2:return[4,t.text()];case 3:e=o.sent(),o.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?(a=new CustomEvent("route",{detail:{url:this.props.successUrl}}),this.ref.dispatchEvent(a),a.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 jsx(BuilderBlock$1,{key:e.id,block:e})})),"error"===e.submissionState&&jsx(BuilderBlocks,{dataPath:"errorMessage",blocks:e.props.errorMessage}),"sending"===e.submissionState&&jsx(BuilderBlocks,{dataPath:"sendingMessage",blocks:e.props.sendingMessage}),"error"===e.submissionState&&e.state.responseData&&jsx("pre",{className:"builder-form-error-text",css:{padding:10,color:"red",textAlign:"center"}},JSON.stringify(e.state.responseData,null,2)),"success"===e.submissionState&&jsx(BuilderBlocks,{dataPath:"successMessage",blocks:e.props.successMessage})))}))},t}(react.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:"your@email.com",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:"jane@doe.com"}}},{"@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.createElement("input",__assign({key:Builder.isEditing&&this.props.defaultValue?this.props.defaultValue:"default-key",placeholder:this.props.placeholder,type:this.props.type,name:this.props.name},void 0===this.props.value?{defaultValue:this.props.defaultValue}:{value:this.props.value},{required:this.props.required},this.props.attributes))},t}(react.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.createElement("button",__assign({type:"submit"},this.props.attributes),this.props.text)},t}(react.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.createElement("label",__assign({htmlFor:this.props.for},this.props.attributes),this.props.text&&react.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.createElement(BuilderBlock$1,{key:e.id,block:e})})))},t}(react.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.createElement("select",__assign({value:this.props.value,key:Builder.isEditing&&this.props.defaultValue?this.props.defaultValue:"default-key",defaultValue:this.props.defaultValue,name:this.props.name,required:this.props.required},this.props.attributes),e&&e.map((function(e){return react.createElement("option",{value:e.value},e.name||e.value)})))},t}(react.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.createElement("textarea",__assign({placeholder:this.props.placeholder,name:this.props.name,value:this.props.value,defaultValue:this.props.defaultValue,required:this.props.required},this.props.attributes))},t}(react.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.getSrcSet=function(){var e=this.props.image;if(e&&"string"==typeof e&&e.match(/builder\.io/))return getSrcSet(e)},t.prototype.render=function(){var e=this.props.attributes||{},t=this.getSrcSet();return react.createElement("img",__assign({loading:"lazy"},this.props.attributes,{src:this.props.image||e.src,srcSet:t}))},t}(react.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:IMAGE_FILE_TYPES,required:!0}],noWrap:!0,static:!0}),RawText=function(e){var t=e.attributes||{};return react_6("span",{className:(null==t?void 0:t.class)||(null==t?void 0:t.className),dangerouslySetInnerHTML:{__html:e.text||""}})};Builder.registerComponent(RawText,{name:"Builder:RawText",hideFromInsertMenu:!0,inputs:[{name:"text",bubble:!0,type:"longText",required:!0}]});var filterWithCustomTargetingScript='function filterWithCustomTargeting(e,t,n,r){var i={query:t,startDate:n,endDate:r},o=e.date&&new Date(e.date)||new Date;return!(i.startDate&&new Date(i.startDate)>o)&&(!(i.endDate&&new Date(i.endDate)<o)&&(!i.query||!i.query.length||i.query.every((function(t){return objectMatchesQuery(e,t)}))))}function isString(e){return"string"==typeof e}function isNumber(e){return"number"==typeof e}function objectMatchesQuery(e,t){return function(){var n=t.property,r=t.operator,i=t.value;if(t&&"urlPath"===t.property&&t.value&&"string"==typeof t.value&&"/"!==t.value&&t.value.endsWith("/")&&(i=t.value.slice(0,-1)),!n||!r)return!0;if(Array.isArray(i))return"isNot"===r?i.every((function(t){return objectMatchesQuery(e,{property:n,operator:r,value:t})})):!!i.find((function(t){return objectMatchesQuery(e,{property:n,operator:r,value:t})}));var o=e[n];if(Array.isArray(o))return o.includes(i);switch(r){case"is":return o===i;case"isNot":return o!==i;case"contains":return(isString(o)||Array.isArray(o))&&o.includes(String(i));case"startsWith":return isString(o)&&o.startsWith(String(i));case"endsWith":return isString(o)&&o.endsWith(String(i));case"greaterThan":return isNumber(o)&&isNumber(i)&&o>i;case"lessThan":return isNumber(o)&&isNumber(i)&&o<i;case"greaterThanOrEqualTo":return isNumber(o)&&isNumber(i)&&o>=i;case"lessThanOrEqualTo":return isNumber(o)&&isNumber(i)&&o<=i}return!1}()}';function filterWithCustomTargeting(e,t,n,r){var i={query:t,startDate:n,endDate:r},a=e.date&&new Date(e.date)||new Date;return!(i.startDate&&new Date(i.startDate)>a)&&(!(i.endDate&&new Date(i.endDate)<a)&&(!i.query||!i.query.length||i.query.every((function(t){return objectMatchesQuery(e,t)}))))}function isString(e){return"string"==typeof e}function isNumber(e){return"number"==typeof e}function objectMatchesQuery(e,t){return function(){var n=t.property,r=t.operator,i=t.value;if(t&&"urlPath"===t.property&&t.value&&"string"==typeof t.value&&"/"!==t.value&&t.value.endsWith("/")&&(i=t.value.slice(0,-1)),!n||!r)return!0;if(Array.isArray(i))return"isNot"===r?i.every((function(t){return objectMatchesQuery(e,{property:n,operator:r,value:t})})):!!i.find((function(t){return objectMatchesQuery(e,{property:n,operator:r,value:t})}));var a=e[n];if(Array.isArray(a))return a.includes(i);switch(r){case"is":return a===i;case"isNot":return a!==i;case"contains":return(isString(a)||Array.isArray(a))&&a.includes(String(i));case"startsWith":return isString(a)&&a.startsWith(String(i));case"endsWith":return isString(a)&&a.endsWith(String(i));case"greaterThan":return isNumber(a)&&isNumber(i)&&a>i;case"lessThan":return isNumber(a)&&isNumber(i)&&a<i;case"greaterThanOrEqualTo":return isNumber(a)&&isNumber(i)&&a>=i;case"lessThanOrEqualTo":return isNumber(a)&&isNumber(i)&&a<=i}return!1}()}function PersonalizationContainer(e){var t,n,r,i,a,o,s,l,u,c,d,p,f,h,m,g,v,b,y,k,w,S=Boolean(Builder.isBrowser&&(null===(t=window.__hydrated)||void 0===t?void 0:t[null===(n=e.builderBlock)||void 0===n?void 0:n.id])),_=react_5(null),x=react_10(S),C=x[0],E=x[1],B=react_10(!1),T=B[0],P=B[1],j=react_10(0);j[0];var O=j[1],N=react_3(BuilderStoreContext);if(react_9((function(){var e;E(!0),P(!0);var t=builder.userAttributesChanged.subscribe((function(){O((function(e){return e+1}))})),n=[function(){return t.unsubscribe()}];if(!Builder.isEditing&&!Builder.isPreviewing){var r=I[0];null===(e=_.current)||void 0===e||e.dispatchEvent(new CustomEvent("builder.variantLoaded",{detail:{variant:r||"default",content:N.content},bubbles:!0}));var i=new IntersectionObserver((function(e){e.forEach((function(e){var t;e.isIntersecting&&(null===(t=_.current)||void 0===t||t.dispatchEvent(new CustomEvent("builder.variantDisplayed",{detail:{variant:r||"default",content:N.content},bubbles:!0})))}))}));i.observe(_.current),n.push((function(){return i.disconnect()}))}return function(){n.forEach((function(e){return e()}))}}),[]),Builder.isServer)return react.createElement(react.Fragment,null,react.createElement("div",__assign({},e.attributes,{style:__assign({opacity:1,transition:"opacity 0.2s ease-in-out"},null===(r=e.attributes)||void 0===r?void 0:r.style),className:"builder-personalization-container ".concat(e.attributes.className)}),null===(i=e.variants)||void 0===i?void 0:i.map((function(t,n){var r,i;return react.createElement("template",{key:n,"data-variant-id":(null===(r=e.builderBlock)||void 0===r?void 0:r.id)+n},react.createElement(BuilderBlocks,{blocks:t.blocks,parentElementId:null===(i=e.builderBlock)||void 0===i?void 0:i.id,dataPath:"component.options.variants.".concat(n,".blocks"),child:!0}))})),react.createElement("script",{id:"variants-script-".concat(null===(a=e.builderBlock)||void 0===a?void 0:a.id),dangerouslySetInnerHTML:{__html:getPersonalizationScript(e.variants,(null===(o=e.builderBlock)||void 0===o?void 0:o.id)||"none",null===(s=e.builderState.state)||void 0===s?void 0:s.locale)}}),react.createElement(BuilderBlocks,{blocks:null===(l=e.builderBlock)||void 0===l?void 0:l.children,parentElementId:null===(u=e.builderBlock)||void 0===u?void 0:u.id,dataPath:"this.children",child:!0})),react.createElement("script",{dangerouslySetInnerHTML:{__html:"\n window.__hydrated = window.__hydrated || {};\n window.__hydrated['".concat(null===(c=e.builderBlock)||void 0===c?void 0:c.id,"'] = true;\n ").replace(/\s+/g," ")}}));var I=(e.variants||[]).filter((function(t){var n;return filterWithCustomTargeting(__assign(__assign({},(null===(n=e.builderState.state)||void 0===n?void 0:n.locale)?{locale:e.builderState.state.locale}:{}),builder.getUserAttributes()),t.query,t.startDate,t.endDate)}));return react.createElement(react.Fragment,null,react.createElement("div",__assign({ref:_},e.attributes,{style:__assign({opacity:C?1:0,transition:"opacity 0.2s ease-in-out"},null===(d=e.attributes)||void 0===d?void 0:d.style),className:"builder-personalization-container ".concat(e.attributes.className).concat(C?"":" builder-personalization-container-loading")}),T&&Builder.isEditing&&"number"==typeof e.previewingIndex&&e.previewingIndex<((null===(p=e.variants)||void 0===p?void 0:p.length)||0)?react.createElement(BuilderBlocks,{blocks:null===(h=null===(f=e.variants)||void 0===f?void 0:f[e.previewingIndex])||void 0===h?void 0:h.blocks,parentElementId:null===(m=e.builderBlock)||void 0===m?void 0:m.id,dataPath:"component.options.variants.".concat(e.previewingIndex,".blocks"),child:!0}):T&&Builder.isEditing&&"number"!=typeof e.previewingIndex||!C||!I.length?react.createElement(BuilderBlocks,{blocks:null===(g=e.builderBlock)||void 0===g?void 0:g.children,parentElementId:null===(v=e.builderBlock)||void 0===v?void 0:v.id,dataPath:"this.children",child:!0}):react.createElement(BuilderBlocks,{blocks:null===(b=I[0])||void 0===b?void 0:b.blocks,parentElementId:null===(y=e.builderBlock)||void 0===y?void 0:y.id,dataPath:"component.options.variants.".concat(null===(k=e.variants)||void 0===k?void 0:k.indexOf(I[0]),".blocks"),child:!0})),react.createElement("script",{dangerouslySetInnerHTML:{__html:"\n window.__hydrated = window.__hydrated || {};\n window.__hydrated['".concat(null===(w=e.builderBlock)||void 0===w?void 0:w.id,"'] = true;\n ").replace(/\s+/g," ")}}))}function getPersonalizationScript(e,t,n){return"\n (function() {\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 function removeVariants() {\n variants.forEach(function (template, index) {\n document.querySelector('template[data-variant-id=\"' + \"".concat(t,"\" + index + '\"]').remove();\n });\n document.getElementById('variants-script-").concat(t,"').remove();\n }\n\n var attributes = JSON.parse(getCookie(\"").concat(Builder.attributesCookieName,'") || "{}");\n ').concat(n?'attributes.locale = "'.concat(n,'";'):"","\n var variants = ").concat(JSON.stringify(null==e?void 0:e.map((function(e){return{query:e.query,startDate:e.startDate,endDate:e.endDate}}))),";\n var winningVariantIndex = variants.findIndex(function(variant) {\n return filterWithCustomTargeting(\n attributes,\n variant.query,\n variant.startDate,\n variant.endDate\n );\n });\n var isDebug = location.href.includes('builder.debug=true');\n if (isDebug) {\n console.debug('PersonalizationContainer', {\n attributes: attributes,\n variants: variants,\n winningVariantIndex: winningVariantIndex,\n });\n }\n if (winningVariantIndex !== -1) {\n var winningVariant = document.querySelector('template[data-variant-id=\"' + \"").concat(t,"\" + winningVariantIndex + '\"]');\n if (winningVariant) {\n var parentNode = winningVariant.parentNode;\n var newParent = parentNode.cloneNode(false);\n newParent.appendChild(winningVariant.content.firstChild);\n parentNode.parentNode.replaceChild(newParent, parentNode);\n if (isDebug) {\n console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);\n }\n }\n } else if (variants.length > 0) {\n removeVariants();\n }\n ").concat(filterWithCustomTargetingScript,"\n })();\n ").replace(/\s+/g," ")}function useIsPreviewing(){var e=react_10(!1),t=e[0],n=e[1];return react_9((function(){(Builder.isEditing||Builder.isPreviewing)&&n(!0)}),[]),t}return Builder.registerComponent(PersonalizationContainer,{name:"PersonalizationContainer",noWrap:!0,friendlyName:"Dynamic Container",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",canHaveChildren:!0,inputs:[{name:"variants",defaultValue:[],behavior:"personalizationVariantList",type:"list",subFields:[{name:"name",type:"text",localized:!1},{name:"query",friendlyName:"Targeting rules",type:"BuilderQuery",defaultValue:[],localized:!1},{name:"startDate",type:"date",localized:!1},{name:"endDate",type:"date",localized:!1},{name:"blocks",type:"UiBlocks",hideFromUI:!0,defaultValue:[]}]}]}),Builder.isReact=!0,Builder.sdkInfo={name:"react",version:SDK_VERSION$1},exports.Builder=Builder,exports.BuilderAsyncRequestsContext=BuilderAsyncRequestsContext,exports.BuilderBlock=BuilderBlock,exports.BuilderBlockComponent=BuilderBlock$1,exports.BuilderBlocks=BuilderBlocks,exports.BuilderComponent=BuilderComponent,exports.BuilderContent=BuilderContent,exports.BuilderMetaContext=BuilderMetaContext,exports.BuilderPage=BuilderComponent,exports.BuilderStoreContext=BuilderStoreContext,exports.Button=Button,exports.Columns=Columns,exports.Content=BuilderComponent,exports.CustomCode=CustomCode,exports.Dropzone=Slot,exports.Embed=Embed,exports.Form=Form,exports.FormInput=FormInput,exports.FormSelect=FormSelect,exports.FormSubmitButton=FormSubmitButton,exports.Fragment=Fragment,exports.Image=Image,exports.Img=Img,exports.Label=Label,exports.Mutation=Mutation,exports.PersonalizationContainer=PersonalizationContainer,exports.RawText=RawText,exports.Router=Router,exports.Section=Section,exports.StateProvider=StateProvider,exports.Symbol=Symbol$1,exports.Text=Text,exports.TextArea=TextArea,exports.Video=Video,exports.builder=builder,exports.default=builder,exports.getSrcSet=getSrcSet,exports.noWrap=noWrap,exports.onChange=onChange,exports.stringToFunction=stringToFunction,exports.updateMetadata=updateMetadata,exports.useIsPreviewing=useIsPreviewing,exports.withBuilder=withBuilder,exports.withChildren=withChildren,Object.defineProperty(exports,"__esModule",{value:!0}),exports}({});
|
|
10
|
+
*/}Builder.singletonInstance=builder;var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p$1=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v$1=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z$1=Symbol.iterator;function A$1(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z$1&&e[z$1]||e["@@iterator"])?e:null}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$1=Object.assign,D$1={};function E$1(e,t,n){this.props=e,this.context=t,this.refs=D$1,this.updater=n||B$1}function F(){}function G$1(e,t,n){this.props=e,this.context=t,this.refs=D$1,this.updater=n||B$1}E$1.prototype.isReactComponent={},E$1.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E$1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},F.prototype=E$1.prototype;var H$1=G$1.prototype=new F;H$1.constructor=G$1,C$1(H$1,E$1.prototype),H$1.isPureReactComponent=!0;var I$1=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$1={key:!0,ref:!0,__self:!0,__source:!0};function M$1(e,t,n){var r,i={},a=null,o=null;if(null!=t)for(r in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(a=""+t.key),t)J.call(t,r)&&!L$1.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:l,type:e,key:a,ref:o,props:i,_owner:K$1.current}}function N$1(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function O$1(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}function escape(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}var P$1=/\/+/g;function Q$1(e,t){return"object"==typeof e&&null!==e&&null!=e.key?escape(""+e.key):t.toString(36)}function R$1(e,t,r,i,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case l:case n:s=!0}}if(s)return a=a(s=e),e=""===i?"."+Q$1(s,0):i,I$1(a)?(r="",null!=e&&(r=e.replace(P$1,"$&/")+"/"),R$1(a,t,r,"",(function(e){return e}))):null!=a&&(O$1(a)&&(a=N$1(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(P$1,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",I$1(e))for(var u=0;u<e.length;u++){var c=i+Q$1(o=e[u],u);s+=R$1(o,t,r,c,a)}else if("function"==typeof(c=A$1(e)))for(e=c.call(e),u=0;!(o=e.next()).done;)s+=R$1(o=o.value,t,r,c=i+Q$1(o,u++),a);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function S$1(e,t,n){if(null==e)return e;var r=[],i=0;return R$1(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T$1(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var U$1={current:null},V$1={transition:null},W$1={ReactCurrentDispatcher:U$1,ReactCurrentBatchConfig:V$1,ReactCurrentOwner:K$1},Children={map:S$1,forEach:function(e,t,n){S$1(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return S$1(e,(function(){t++})),t},toArray:function(e){return S$1(e,(function(e){return e}))||[]},only:function(e){if(!O$1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Component=E$1,Fragment$1=p$1,Profiler=r,PureComponent=G$1,StrictMode=q,Suspense=w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED$1=W$1,cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C$1({},e.props),i=e.key,a=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,o=K$1.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)J.call(t,u)&&!L$1.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:l,type:e.type,key:i,ref:a,props:r,_owner:o}},createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:t,_context:e},e.Consumer=e},createElement=M$1,createFactory=function(e){var t=M$1.bind(null,e);return t.type=e,t},createRef=function(){return{current:null}},forwardRef=function(e){return{$$typeof:v$1,render:e}},isValidElement=O$1,lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T$1}},memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},startTransition=function(e){var t=V$1.transition;V$1.transition={};try{e()}finally{V$1.transition=t}},unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},useCallback=function(e,t){return U$1.current.useCallback(e,t)},useContext=function(e){return U$1.current.useContext(e)},useDebugValue=function(){},useDeferredValue=function(e){return U$1.current.useDeferredValue(e)},useEffect=function(e,t){return U$1.current.useEffect(e,t)},useId=function(){return U$1.current.useId()},useImperativeHandle=function(e,t,n){return U$1.current.useImperativeHandle(e,t,n)},useInsertionEffect=function(e,t){return U$1.current.useInsertionEffect(e,t)},useLayoutEffect=function(e,t){return U$1.current.useLayoutEffect(e,t)},useMemo=function(e,t){return U$1.current.useMemo(e,t)},useReducer=function(e,t,n){return U$1.current.useReducer(e,t,n)},useRef=function(e){return U$1.current.useRef(e)},useState=function(e){return U$1.current.useState(e)},useSyncExternalStore=function(e,t,n){return U$1.current.useSyncExternalStore(e,t,n)},useTransition=function(){return U$1.current.useTransition()},version$1="18.2.0",react_production_min={Children:Children,Component:Component,Fragment:Fragment$1,Profiler:Profiler,PureComponent:PureComponent,StrictMode:StrictMode,Suspense:Suspense,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED$1,cloneElement:cloneElement,createContext:createContext,createElement:createElement,createFactory:createFactory,createRef:createRef,forwardRef:forwardRef,isValidElement:isValidElement,lazy:lazy,memo:memo,startTransition:startTransition,unstable_act:unstable_act,useCallback:useCallback,useContext:useContext,useDebugValue:useDebugValue,useDeferredValue:useDeferredValue,useEffect:useEffect,useId:useId,useImperativeHandle:useImperativeHandle,useInsertionEffect:useInsertionEffect,useLayoutEffect:useLayoutEffect,useMemo:useMemo,useReducer:useReducer,useRef:useRef,useState:useState,useSyncExternalStore:useSyncExternalStore,useTransition:useTransition,version:version$1},react=createCommonjsModule((function(e){e.exports=react_production_min}));react.cloneElement;var react_2=react.createContext,react_3=react.useContext,react_4=react.Component,react_5=react.useRef,react_6=react.createElement,react_7=react.forwardRef,react_8=react.Fragment,react_9=react.useEffect,react_10=react.useState;function sheetForTag(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]}function createStyleElement(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}var StyleSheet=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=createStyleElement(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=sheetForTag(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,a?0:i.cssRules.length)}catch(e){}}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}();function stylis_min(e){function t(e,t,r){var i=t.trim().split(h);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var u=0;u<o;++u)t[l++]=n(e[u]+" ",i[s],r).trim()}return t}function n(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 r(e,t,n,a){var o=e+";",s=2*t+3*n+4*a;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===P||2===P&&i(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!i(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(C,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return p.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(y,"tb");break;case 232:l=o.replace(y,"tb-rl");break;case 220:l=o.replace(y,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(S,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(S,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+a&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+o}return o}function i(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(_,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function o(e,t,n,r,i,a,o,s,u,c){for(var d,p=0,f=t;p<N;++p)switch(d=O[p].call(l,e,f,n,r,i,a,o,s,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?P=1:(P=2,I=e):P=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<N){var l=o(-1,n,s,s,B,E,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,s,l,d,p){for(var f,h,m,y,w,S=0,_=0,x=0,C=0,O=0,I=0,L=m=f=0,A=0,M=0,z=0,F=0,D=l.length,V=D-1,$="",U="",W="",q="";A<D;){if(h=l.charCodeAt(A),A===V&&0!==_+C+x+S&&(0!==_&&(h=47===_?10:47),C=x=S=0,D++,V++),0===_+C+x+S){if(A===V&&(0<M&&($=$.replace(c,"")),0<$.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:$+=l.charAt(A)}h=59}switch(h){case 123:for(f=($=$.trim()).charCodeAt(0),m=1,F=++A;A<D;){switch(h=l.charCodeAt(A)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(A+1)){case 42:case 47:e:{for(L=A+1;L<V;++L)switch(l.charCodeAt(L)){case 47:if(42===h&&42===l.charCodeAt(L-1)&&A+2!==L){A=L+1;break e}break;case 10:if(47===h){A=L+1;break e}}A=L}}break;case 91:h++;case 40:h++;case 34:case 39:for(;A++<V&&l.charCodeAt(A)!==h;);}if(0===m)break;A++}switch(m=l.substring(F,A),0===f&&(f=($=$.replace(u,"").trim()).charCodeAt(0)),f){case 64:switch(0<M&&($=$.replace(c,"")),h=$.charCodeAt(1)){case 100:case 109:case 115:case 45:M=s;break;default:M=j}if(F=(m=e(s,M,m,h,p+1)).length,0<N&&(w=o(3,m,M=t(j,$,z),s,B,E,F,h,p,d),$=M.join(""),void 0!==w&&0===(F=(m=w.trim()).length)&&(h=0,m="")),0<F)switch(h){case 115:$=$.replace(k,a);case 100:case 109:case 45:m=$+"{"+m+"}";break;case 107:m=($=$.replace(g,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=$+m,112===d&&(U+=m,m="")}else m="";break;default:m=e(s,t(s,$,z),m,d,p+1)}W+=m,m=z=M=L=f=0,$="",h=l.charCodeAt(++A);break;case 125:case 59:if(1<(F=($=(0<M?$.replace(c,""):$).trim()).length))switch(0===L&&(f=$.charCodeAt(0),45===f||96<f&&123>f)&&(F=($=$.replace(" ",":")).length),0<N&&void 0!==(w=o(1,$,s,n,B,E,U.length,d,p,d))&&0===(F=($=w.trim()).length)&&($="\0\0"),f=$.charCodeAt(0),h=$.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){q+=$+l.charAt(A);break}default:58!==$.charCodeAt(F-1)&&(U+=r($,f,h,$.charCodeAt(2)))}z=M=L=f=0,$="",h=l.charCodeAt(++A)}}switch(h){case 13:case 10:47===_?_=0:0===1+f&&107!==d&&0<$.length&&(M=1,$+="\0"),0<N*R&&o(0,$,s,n,B,E,U.length,d,p,d),E=1,B++;break;case 59:case 125:if(0===_+C+x+S){E++;break}default:switch(E++,y=l.charAt(A),h){case 9:case 32:if(0===C+S+_)switch(O){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===C+_+S&&(M=z=1,y="\f"+y);break;case 108:if(0===C+_+S+T&&0<L)switch(A-L){case 2:112===O&&58===l.charCodeAt(A-3)&&(T=O);case 8:111===I&&(T=I)}break;case 58:0===C+_+S&&(L=A);break;case 44:0===_+x+C+S&&(M=1,y+="\r");break;case 34:case 39:0===_&&(C=C===h?0:0===C?h:C);break;case 91:0===C+_+x&&S++;break;case 93:0===C+_+x&&S--;break;case 41:0===C+_+S&&x--;break;case 40:if(0===C+_+S){if(0===f)switch(2*O+3*I){case 533:break;default:f=1}x++}break;case 64:0===_+x+C+S+L+m&&(m=1);break;case 42:case 47:if(!(0<C+S+x))switch(_){case 0:switch(2*h+3*l.charCodeAt(A+1)){case 235:_=47;break;case 220:F=A,_=42}break;case 42:47===h&&42===O&&F+2!==A&&(33===l.charCodeAt(F+2)&&(U+=l.substring(F,A+1)),y="",_=0)}}0===_&&($+=y)}I=O,O=h,A++}if(0<(F=U.length)){if(M=s,0<N&&(void 0!==(w=o(2,U,M,n,B,E,F,d,p,d))&&0===(U=w).length))return q+U+W;if(U=M.join(",")+"{"+U+"}",0!=P*T){switch(2!==P||i(U,2)||(T=0),T){case 111:U=U.replace(b,":-moz-$1")+U;break;case 112:U=U.replace(v,"::-webkit-input-$1")+U.replace(v,"::-moz-$1")+U.replace(v,":-ms-input-$1")+U}T=0}}return q+U+W}(j,s,n,0,0);return 0<N&&(void 0!==(l=o(-2,d,s,s,B,E,d.length,0,0,0))&&(d=l)),"",T=0,E=B=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,E=1,B=1,T=0,P=1,j=[],O=[],N=0,I=null,R=0;return l.use=function e(t){switch(t){case void 0:case null:N=O.length=0;break;default:if("function"==typeof t)O[N++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},l.set=s,void 0!==e&&s(e),l}var weakMemoize=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}},delimiter="/*|*/",needle=delimiter+"}";function toSheet(e){e&&Sheet.current.insert(e+"}")}var Sheet={current:null},ruleSheet=function(e,t,n,r,i,a,o,s,l,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Sheet.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+delimiter;break;case 3:switch(s){case 102:case 112:return Sheet.current.insert(n[0]+t),"";default:return t+(0===u?delimiter:"")}case-2:t.split(needle).forEach(toSheet)}},removeLabel=function(e,t){if(1===e&&108===t.charCodeAt(0)&&98===t.charCodeAt(2))return""},isBrowser$2="undefined"!=typeof document,rootServerStylisCache={},getServerStylisCache=isBrowser$2?void 0:weakMemoize((function(){var e=weakMemoize((function(){return{}})),t={},n={};return function(r){return void 0===r||!0===r?t:!1===r?n:e(r)}})),createCache=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,i,a=new stylis_min(t),o={};if(isBrowser$2){r=e.container||document.head;var s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==r&&r.appendChild(e)}))}if(isBrowser$2)a.use(e.stylisPlugins)(ruleSheet),i=function(e,t,n,r){var i=t.name;Sheet.current=n,a(e,t.styles),r&&(u.inserted[i]=!0)};else{a.use(removeLabel);var l=rootServerStylisCache;(e.stylisPlugins||void 0!==e.prefix)&&(a.use(e.stylisPlugins),l=getServerStylisCache(e.stylisPlugins||rootServerStylisCache)(e.prefix));i=function(e,t,n,r){var i=t.name,o=function(e,t){var n=t.name;return void 0===l[n]&&(l[n]=a(e,t.styles)),l[n]}(e,t);return void 0===u.compat?(r&&(u.inserted[i]=!0),o):r?void(u.inserted[i]=o):o}}var u={key:n,sheet:new StyleSheet({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:i};return u},isBrowser$1="undefined"!=typeof document;function getRegisteredStyles(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var insertStyles=function(e,t,n){var r=e.key+"-"+t.name;if((!1===n||!1===isBrowser$1&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i="",a=t;do{var o=e.insert("."+r,a,e.sheet,!0);isBrowser$1||void 0===o||(i+=o),a=a.next}while(void 0!==a);if(!isBrowser$1&&0!==i.length)return i}};function murmur2(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)}var unitlessKeys={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};function memoize(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize((function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,(function(e,t,n){return cursor={name:t,styles:n,next:cursor},t}))}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"};function handleInterpolation(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 cursor={name:n.name,styles:n.styles,next:cursor},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)cursor={name:i.name,styles:i.styles,next:cursor},i=i.next;return n.styles+";"}return createStringFromObject(e,t,n);case"function":if(void 0!==e){var a=cursor,o=n(e);return cursor=a,handleInterpolation(e,t,o,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=handleInterpolation(e,t,n[i],!1);else for(var a in n){var o=n[a];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=a+"{"+t[o]+"}":isProcessableValue(o)&&(r+=processStyleName(a)+":"+processStyleValue(a,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=handleInterpolation(e,t,o,!1);switch(a){case"animation":case"animationName":r+=processStyleName(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<o.length;l++)isProcessableValue(o[l])&&(r+=processStyleName(a)+":"+processStyleValue(a,o[l])+";")}return r}var labelPattern=/label:\s*([^\s;\n{]+)\s*;/g,cursor,serializeStyles=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="";cursor=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,i+=handleInterpolation(n,t,a,!1)):i+=a[0];for(var o=1;o<e.length;o++)i+=handleInterpolation(n,t,e[o],46===i.charCodeAt(i.length-1)),r&&(i+=a[o]);labelPattern.lastIndex=0;for(var s,l="";null!==(s=labelPattern.exec(i));)l+="-"+s[1];return{name:murmur2(i)+l,styles:i,next:cursor}},isBrowser="undefined"!=typeof document,hasOwnProperty=Object.prototype.hasOwnProperty,EmotionCacheContext=react_2("undefined"!=typeof HTMLElement?createCache():null),ThemeContext=react_2({});EmotionCacheContext.Provider;var withEmotionCache=function(e){return react_7((function(t,n){return react_6(EmotionCacheContext.Consumer,null,(function(r){return e(t,r,n)}))}))};if(!isBrowser){var BasicProvider=function(e){function t(t,n,r){var i;return(i=e.call(this,t,n,r)||this).state={value:createCache()},i}return _inheritsLoose(t,e),t.prototype.render=function(){return react_6(EmotionCacheContext.Provider,this.state,this.props.children(this.state.value))},t}(react_4);withEmotionCache=function(e){return function(t){return react_6(EmotionCacheContext.Consumer,null,(function(n){return null===n?react_6(BasicProvider,null,(function(n){return e(t,n)})):e(t,n)}))}}}var typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(e,t){var n={};for(var r in t)hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n[typePropName]=e,n},Noop$1=function(){return null},render$1=function(e,t,n,r){var i=null===n?t.css:t.css(n);"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var a=t[typePropName],o=[i],s="";"string"==typeof t.className?s=getRegisteredStyles(e.registered,o,t.className):null!=t.className&&(s=t.className+" ");var l=serializeStyles(o),u=insertStyles(e,l,"string"==typeof a);s+=e.key+"-"+l.name;var c={};for(var d in t)hasOwnProperty.call(t,d)&&"css"!==d&&d!==typePropName&&(c[d]=t[d]);c.ref=r,c.className=s;var p=react_6(a,c),f=react_6(Noop$1,null);if(!isBrowser&&void 0!==u){for(var h,m=l.name,g=l.next;void 0!==g;)m+=" "+g.name,g=g.next;f=react_6("style",((h={})["data-emotion-"+e.key]=m,h.dangerouslySetInnerHTML={__html:u},h.nonce=e.sheet.nonce,h))}return react_6(react_8,null,f,p)},Emotion=withEmotionCache((function(e,t,n){return"function"==typeof e.css?react_6(ThemeContext.Consumer,null,(function(r){return render$1(t,e,r,n)})):render$1(t,e,null,n)}));function css(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return serializeStyles(t)}var jsx=function(e,t){var n=arguments;if(null==t||!hasOwnProperty.call(t,"css"))return react_6.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Emotion,i[1]=createEmotionProps(e,t);for(var a=2;a<r;a++)i[a]=n[a];return react_6.apply(null,i)},classnames=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(null!=a){var o=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))o=e(a);else for(var s in o="",a)a[s]&&s&&(o&&(o+=" "),o+=s);break;default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function merge(e,t,n){var r=[],i=getRegisteredStyles(e,r,n);return r.length<2?n:i+t(r)}var Noop=function(){return null},ClassNames=withEmotionCache((function(e,t){return react_6(ThemeContext.Consumer,null,(function(n){var r="",i="",a=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];var o=serializeStyles(n,t.registered);if(isBrowser)insertStyles(t,o,!1);else{var s=insertStyles(t,o,!1);void 0!==s&&(r+=s)}return isBrowser||(i+=" "+o.name),t.key+"-"+o.name},o={css:a,cx:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return merge(t.registered,a,classnames(n))},theme:n},s=e.children(o);var l,u=react_6(Noop,null);isBrowser||0===r.length||(u=react_6("style",((l={})["data-emotion-"+t.key]=i.substring(1),l.dangerouslySetInnerHTML={__html:r},l.nonce=t.sheet.nonce,l)));return react_6(react_8,null,u,s)}))})),fastClone=function(e){return JSON.parse(JSON.stringify(e))},omit$2=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=Object.assign({},e),i=0,a=t;i<a.length;i++){var o=a[i];delete r[o]}return r},sizeNames=["xsmall","small","medium","large"],sizes={xsmall:{min:0,default:160,max:320},small:{min:321,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=__assign(__assign({},sizes),fastClone(sizes));if(!e)return t;var n=e.xsmall,r=e.small,i=e.medium;if(n){var a=Math.floor(n/2);t.xsmall={max:n,min:a,default:a+1}}if(!r||!i)return t;var o=n?t.xsmall.max+1:Math.floor(r/2);t.small={max:r,min:o,default:o+1};var s=t.small.max+1;t.medium={max:i,min:s,default:s+1};var l=t.medium.max+1;return t.large={max:2e3,min:l,default:l+1},t},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.isServer&&"function"==typeof require)try{safeDynamicRequire=eval("require")}catch(e){safeDynamicRequire=(null===globalThis||void 0===globalThis?void 0:globalThis.require)?globalThis.require:noop}function isDebug(){return Boolean("undefined"!=typeof process&&void 0!==process.env&&process.env.DEBUG)}function isNodeRuntime(){var e;return"undefined"!=typeof process&&Boolean(null===(e=null===process||void 0===process?void 0:process.versions)||void 0===e?void 0:e.node)}null!=safeDynamicRequire||(safeDynamicRequire=noop);var shouldForceBrowserRuntimeInNode=function(){var e;if(!isNodeRuntime())return!1;var t="arm64"===process.arch,n=process.version.startsWith("v20"),r=null===(e=process.env.NODE_OPTIONS)||void 0===e?void 0:e.includes("--no-node-snapshot");return!(!t||!n||r)&&(console.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/react/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0)},fnCache={},api=function(e){return builder};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 a=t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))||e.trim().startsWith("builder.run"),o=function(){};try{Builder.isBrowser&&(o=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 var log = console.log.bind(console);\n with (rootState) {\n ".concat(a?"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.isBrowser&&console.warn("Function compile error in ".concat(e),t)}var l=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{if(Builder.isBrowser||shouldForceBrowserRuntimeInNode())return o.apply(void 0,t);var i=getIsolateContext(),s=safeDynamicRequire("isolated-vm"),l=i.evalClosureSync(makeFn(e,a),t.map((function(e,t){return"object"==typeof e?new s.Reference(t===indexOfBuilderInstance?__assign(__assign({},e),{getUserAttributes:function(){return e.getUserAttributes("")}}):e):null})));try{var u=JSON.parse(l);return u}catch(e){return l}}catch(t){return Builder.isBrowser?console.warn("Builder custom code error:",t.message||t,"in",e,t.stack||t):isDebug()&&console.debug("Builder custom code error:",t.message||t,"in",e,t.stack||t),n&&n.push(t),null}};return Builder.isBrowser&&(fnCache[i]=l),l}var indexOfBuilderInstance=3,makeFn=function(e,t,n){var r=n||["state","event","block","builder","Device","update","Builder","context"];return"\n".concat("\n var refToProxy = (obj) => {\n if (typeof obj !== 'object' || obj === null) {\n return obj;\n }\n return new Proxy({}, {\n get(target, key) {\n if (key === 'copySync') {\n return () => obj.copySync();\n }\n const val = obj.getSync(key);\n if (typeof val?.copySync === 'function') {\n return JSON.parse(stringify(val));\n }\n return val;\n },\n set(target, key, value) {\n obj.setSync(key, value);\n },\n deleteProperty(target, key) {\n obj.deleteSync(key);\n }\n })\n }\n","\n").concat("\n var stringify = (val) => {\n if (typeof val === 'object' && val !== null) {\n return JSON.stringify(val.copySync ? val.copySync() : val);\n }\n return val;\n }\n ","\n").concat(r.map((function(e,t){return"var ".concat(e," = refToProxy($").concat(t,");")})).join("\n")).concat("\n".concat(r.includes("context")?"var ctx = context;":"","\nvar endResult = function() {\n ").concat(t?"return (".concat(e,");"):e,";\n};\n\nreturn stringify(endResult());\n"))},getIsolateContext=function(){var e=Builder.serverContext;e||(e=new(safeDynamicRequire("isolated-vm").Isolate)({memoryLimit:128}).createContextSync(),Builder.setServerContext(e));var t=e.global;return t.setSync("global",t.derefInto()),t.setSync("log",(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];isDebug()&&console.log.apply(console,e)})),e},isPromise=function(e){return"function"==typeof e.then},isRequestInfo=function(e){return!isPromise(e)},BuilderAsyncRequestsContext=react.createContext({requests:[],errors:[],logs:[]}),BuilderStoreContext=react.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,a=t.value,o=r.split(/\//);""===o[0]&&o.shift();for(var s=n?e:__assign({},e),l=s,u=0;u<o.length;u++){var c=u===o.length-1,d=o[u];if(c){if("replace"===i)l[d]=a;else if("add"===i){var p=Number(d);Array.isArray(l)?"-"===d?l.push(a):l.splice(p,0,a):l[d]=a}else if("remove"===i){p=Number(d);Array.isArray(l)?l.splice(p,1):delete l[d]}}else{var f=o[u+1],h=Object(l[d])===l[d]?l[d]:String(Number(f))===f?[]:{};l=l[d]=Array.isArray(h)?__spreadArray([],h,!0):__assign({},h)}}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.createElement(BuilderStoreContext.Consumer,null,(function(t){return t.renderLink?t.renderLink(e):react.createElement("a",__assign({},e))}))};function traverse(e,t,n,r,i){void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=new WeakSet),null!=e&&"object"==typeof e?i.has(e)||(i.add(e),Array.isArray(e)?e.forEach((function(n,r){t(n,(function(t){e[r]=t})),traverse(n,t,e,r,i)})):Object.entries(e).forEach((function(n){var r=n[0],a=n[1];t(a,(function(t){e[r]=t})),traverse(a,t,e,r,i)}))):t(e,(function(e){null!==n&&null!==r&&(n[r]=e)}))}var isLocalizedField=function(e){return e&&"object"==typeof e&&"@builder.io/core:LocalizedValue"===e["@type"]},containsLocalizedValues=function(e){if(!e||!Object.getOwnPropertyNames(e).length)return!1;var t=!1;return traverse(e,(function(e){isLocalizedField(e)&&(t=!0)})),t},extractLocalizedValues=function(e,t){return e&&Object.getOwnPropertyNames(e).length?(traverse(e,(function(e,n){var r;isLocalizedField(e)&&n(null!==(r=e[t])&&void 0!==r?r:void 0)})),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};function deepCloneWithConditions(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map((function(e){return deepCloneWithConditions(e)}));if("@builder.io/sdk:Element"===e["@type"])return e;var t={};for(var n in e)"meta"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=deepCloneWithConditions(e[n]));return t}var 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.hydrated=!1,_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}),BuilderBlock.prototype.emotionCss=function(e){var t,n,r,i,a,o,s,l,u=this.block,c=u.animations&&u.animations[0];if(c&&"hover"!==c.trigger){var d=c&&c.steps&&c.steps[0],p=d&&d.styles;p&&(l=p)}var f=sizeNames.slice().reverse(),h={};if(e)for(var m=Boolean(null===(r=null===(n=null===(t=this.privateState.context.builderContent)||void 0===t?void 0:t.meta)||void 0===n?void 0:n.breakpoints)||void 0===r?void 0:r.xsmall),g=0,v=f;g<v.length;g++){var b=v[g];if(m||"xsmall"!==b)if("large"===b)this.props.emailMode||(h["&.builder-block"]=Object.assign({},e[b],l));else{var y=getSizesForBreakpoints((null===(a=null===(i=this.privateState.context.builderContent)||void 0===i?void 0:i.meta)||void 0===a?void 0:a.breakpoints)||{});h["@media only screen and (max-width: ".concat(y[b].max,"px)")]={"&.builder-block":e[b]}}}var k=u.animations&&u.animations.find((function(e){return"hover"===e.trigger}));return k&&(h[":hover"]=(null===(s=null===(o=k.steps)||void 0===o?void 0:o[1])||void 0===s?void 0:s.styles)||{},h.transition="all ".concat(k.duration,"s ").concat(camelCaseToKebabCase(k.easing)),k.delay&&(h.transitionDelay=k.delay+"s")),h},BuilderBlock.prototype.eval=function(e){return this.stringToFunction(e)(this.privateState.state,void 0,this.block,builder,Device,this.privateState.update,Builder,this.privateState.context)},BuilderBlock.prototype.componentWillUnmount=function(){Builder.isEditing&&removeEventListener("message",this.onWindowMessage)},BuilderBlock.prototype.componentDidMount=function(){var e,t=this;this.hydrated=!0;var n=this.block,r=n&&n.animations;if(Builder.isEditing&&addEventListener("message",this.onWindowMessage),r){var i={animations:fastClone(r)};if(n.bindings)for(var a in n.bindings)if((null===(e=a.trim)||void 0===e?void 0:e.call(a))&&a.startsWith("animations.")){var o=this.stringToFunction(n.bindings[a]);void 0!==o&&set(i,a,o(this.privateState.state,null,n,builder,null,null,Builder,this.privateState.context))}Builder.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,a,o,s,l=this;void 0===e&&(e=0),void 0===t&&(t=this.privateState.state);var u=this.props;u.child,u.fieldName;var c,d=this.block,p=(d.tagName||"div").toLowerCase();if("template"===p){var f=d.children?d.children.map((function(e){return blockToHtmlString(e)})).join(" "):"";return console.debug("template html",f),jsx("template",__assign({},d.properties,{dangerouslySetInnerHTML:{__html:f}}))}var h=d.component&&(d.component.name||d.component.component),m=null;d.component&&!d.component.class&&(d.component&&d.component.tag?c=d.component.tag:(m=Builder.components.find((function(e){return e.name===h}))||null)&&m.class?c=m.class:m&&m.tag?c=m.tag:(null==h?void 0:h.startsWith("Builder:"))?console.warn("Missing @builder.io/widgets installation, please install and import @builder.io/widgets to use ".concat(h.split(":")[1]," in your content, more info here: https://github.com/BuilderIO/builder/tree/main/packages/widgets")):h&&console.warn("Missing registration for ".concat(h,", have you included the registration in your bundle?")));var g=__assign(__assign({},d.properties),{style:{},responsiveStyles:fastClone(d.responsiveStyles||{})});if(g=__assign(__assign({},g.properties),g),d.component&&(g.component=deepCloneWithConditions(d.component)),d.bindings)for(var v in d.bindings)if(null===(r=v.trim)||void 0===r?void 0:r.call(v)){var b=this.stringToFunction(d.bindings[v]);set(g,v,b(t,null,d,api(),Device,null,Builder,this.privateState.context))}if(g.hide)return null;if(delete g.hide,("show"in g||d.bindings&&d.bindings.show)&&!g.show)return null;if(delete g.show,d.actions){var y=function(e){if(!(null===(i=e.trim)||void 0===i?void 0:i.call(e)))return"continue";var n=d.actions[e];g["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,l.privateState.rootState[t]=n,!0}})),l.stringToFunction(n,!1)(r,e,l.block,builder,Device,l.privateState.update,Builder,l.privateState.context)}};for(var v in d.actions)y(v)}var k=(g.component||g.options)&&__assign(__assign({},g.options),g.component.options||g.component.data);containsLocalizedValues(k)&&(this.privateState.state.locale||console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"),k=extractLocalizedValues(k,null!==(a=this.privateState.state.locale)&&void 0!==a?a:"Default"));var w=voidElements.has(p),S=m&&(m.fragment||m.noWrap),_=(null===(o=g.attr)||void 0===o?void 0:o.style)||("string"==typeof g.style?g.style:"")||"";if("string"==typeof _){"object"!=typeof g.style&&(g.style={});for(var x=0,C=_.split(";");x<C.length;x++){var E=C[x].split(":");if(!E.length)return;v=E[0],b=E[1];v&&(E.length>2&&(b=E.slice(1).join(":")),g.style[kebabCaseToCamelCase(v)]=b)}}var B=__assign(__assign(__assign({},omit$1(g,["class","component","attr","responsiveStyles"])),((n={})["string"!=typeof p||p.includes("-")?"class":"className"]="builder-block ".concat(this.id).concat(d.class?" ".concat(d.class):"").concat(!d.component||["Image","Video","Banner"].indexOf(h)>-1?"":" builder-has-component")+(g.class?" "+g.class:"")+(this.hydrated&&Builder.isEditing&&(null===(s=this.privateState.state._spacer)||void 0===s?void 0:s.parent)===d.id?" builder-spacer-parent":""),n.key=this.id+e,n["builder-id"]=this.id,n)),0!==e&&{"builder-index":e});Builder.isEditing&&this.hydrated&&(B["builder-inline-styles"]=g.attr&&g.attr.style?Object.keys(g.style).reduce((function(e,t){return(e?"".concat(e,";"):"")+"".concat(cssCase(t),":").concat(g.style[t],";")}),""):""),(B.properties&&B.properties.href||B.href)&&"div"===p&&(p="a"),"a"===p&&(p=Link);var T=d.children||B.children||[];return jsx(react.Fragment,null,jsx(ClassNames,null,(function(e){var t=e.css;if(e.cx,!l.props.emailMode){var n=" "+t(l.emotionCss(g.responsiveStyles));B.class&&(B.class+=n),B.className&&(B.className+=n)}return jsx(BuilderAsyncRequestsContext.Consumer,null,(function(e){return l._asyncRequests=e&&e.requests,l._errors=e&&e.errors,l._logs=e&&e.logs,w?jsx(p,__assign({},B)):c&&(S||l.props.emailMode)?jsx(c,__assign({},k,{attributes:B,builderBlock:d,builderState:l.privateState})):jsx(p,__assign({},B),c&&jsx(c,__assign({builderState:l.privateState,builderBlock:d},k)),d.text||g.text?g.text:!c&&T&&Array.isArray(T)&&T.length?T.map((function(e,t){return jsx(BuilderBlock,{key:(l.id||"")+t,block:e,index:t,size:l.props.size,fieldName:l.props.fieldName,child:l.props.child,emailMode:l.props.emailMode})})):null)}))})))},Object.defineProperty(BuilderBlock.prototype,"id",{get:function(){var e=this.block;return e.id&&!e.id.startsWith("builder")?"builder-"+e.id: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(".")),a=n.repeat.itemName||(i?i+"Item":"item"),o=this.stringToFunction(r)(e.state,null,n,api(),Device,null,Builder,this.privateState.context);return Array.isArray(o)?o.map((function(n,r){var i,o=__assign(__assign({},e.state),((i={$index:r,$item:n})[a]=n,i["$".concat(a,"Index")]=r,i));return jsx(BuilderStoreContext.Provider,{key:r,value:__assign(__assign({},e),{state:o})},t.getElement(r,o))})):null}return this.getElement()},BuilderBlock.prototype.render=function(){var e=this;return this.state.hasError?jsx("span",{css:{display:"inline-block",padding:5,color:"#999",fontSize:11,fontStyle:"italic"}},"Builder block error :( Check console for details"):jsx(BuilderStoreContext.Consumer,null,(function(t){return e.contents(t)}))},BuilderBlock}(react.Component),scheduler_production_min=createCommonjsModule((function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>a(l,n))u<i&&0>a(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,k(e),!m)if(null!==r(u))m=!0,I(S);else{var t=r(c);null!==t&&R(w,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,b(E),E=-1),h=!0;var a=f;try{for(k(n),p=r(u);null!==p&&(!(p.expirationTime>n)||e&&!P());){var o=p.callback;if("function"==typeof o){p.callback=null,f=p.priorityLevel;var s=o(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(u)&&i(u),k(n)}else i(u);p=r(u)}if(null!==p)var l=!0;else{var d=r(c);null!==d&&R(w,d.startTime-n),l=!1}return l}finally{p=null,f=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,x=!1,C=null,E=-1,B=5,T=-1;function P(){return!(t.unstable_now()-T<B)}function j(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?_():(x=!1,C=null)}}else x=!1}if("function"==typeof y)_=function(){y(j)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,N=O.port2;O.port1.onmessage=j,_=function(){N.postMessage(null)}}else _=function(){v(j,0)};function I(e){C=e,x||(x=!0,_())}function R(e,n){E=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,I(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(g?(b(E),E=-1):g=!0,R(w,a-o))):(e.sortIndex=s,n(u,e),m||h||(m=!0,I(S))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}));scheduler_production_min.unstable_now,scheduler_production_min.unstable_IdlePriority,scheduler_production_min.unstable_ImmediatePriority,scheduler_production_min.unstable_LowPriority,scheduler_production_min.unstable_NormalPriority,scheduler_production_min.unstable_Profiling,scheduler_production_min.unstable_UserBlockingPriority,scheduler_production_min.unstable_cancelCallback,scheduler_production_min.unstable_continueExecution,scheduler_production_min.unstable_forceFrameRate,scheduler_production_min.unstable_getCurrentPriorityLevel,scheduler_production_min.unstable_getFirstCallbackNode,scheduler_production_min.unstable_next,scheduler_production_min.unstable_pauseExecution,scheduler_production_min.unstable_requestPaint,scheduler_production_min.unstable_runWithPriority,scheduler_production_min.unstable_scheduleCallback,scheduler_production_min.unstable_shouldYield,scheduler_production_min.unstable_wrapCallback;var scheduler=createCommonjsModule((function(e){e.exports=scheduler_production_min}));function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(e,t){ha(e,t),ha(e+"Capture",t)}function ha(e,t){for(ea[e]=t,e=0;e<t.length;e++)da.add(t[e])}var ia=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function oa(e){return!!ja.call(ma,e)||!ja.call(la,e)&&(ka.test(e)?ma[e]=!0:(la[e]=!0,!1))}function pa(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}function qa(e,t,n,r){if(null==t||pa(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){z[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];z[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){z[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){z[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){z[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){z[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){z[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){z[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){z[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ra=/[\-:]([a-z])/g;function sa(e){return e[1].toUpperCase()}function ta(e,t,n,r){var i=z.hasOwnProperty(t)?z[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(qa(t,n,i,r)&&(n=null),r||null===i?oa(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ra,sa);z[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ra,sa);z[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ra,sa);z[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){z[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),z.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){z[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var ua=react.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ja&&e[Ja]||e["@@iterator"])?e:null}var A=Object.assign,La;function Ma(e){if(void 0===La)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);La=t&&t[1]||""}return"\n"+La+e}var Na=!1;function Oa(e,t){if(!e||Na)return"";Na=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var l="\n"+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{Na=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ma(e):""}function Pa(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=Oa(e.type,!1);case 11:return e=Oa(e.type.render,!1);case 1:return e=Oa(e.type,!0);default:return""}}function Qa(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ca:return(e.displayName||"Context")+".Consumer";case Ba:return(e._context.displayName||"Context")+".Provider";case Da:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ga:return null!==(t=e.displayName||null)?t:Qa(e.type)||"Memo";case Ha:t=e._payload,e=e._init;try{return Qa(e(t))}catch(e){}}return null}function Ra(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(t);case 8:return t===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Ta(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ua(e){var t=Ta(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Va(e){e._valueTracker||(e._valueTracker=Ua(e))}function Wa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ta(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Xa(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ya(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Za(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Sa(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ab(e,t){null!=(t=t.checked)&&ta(e,"checked",t,!1)}function bb(e,t){ab(e,t);var n=Sa(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?cb(e,t.type,n):t.hasOwnProperty("defaultValue")&&cb(e,t.type,Sa(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function db(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function cb(e,t,n){"number"===t&&Xa(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var eb=Array.isArray;function fb(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Sa(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function gb(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(p(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hb(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(p(92));if(eb(n)){if(1<n.length)throw Error(p(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Sa(n)}}function ib(e,t){var n=Sa(t.value),r=Sa(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function jb(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function kb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?kb(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var mb,nb=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((mb=mb||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=mb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ob(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];function rb(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pb.hasOwnProperty(e)&&pb[e]?(""+t).trim():t+"px"}function sb(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=rb(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pb).forEach((function(e){qb.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pb[t]=pb[e]}))}));var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(e,t){if(t){if(tb[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(p(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(p(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(p(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(p(62))}}function vb(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var yb=null,zb=null,Ab=null;function Bb(e){if(e=Cb(e)){if("function"!=typeof yb)throw Error(p(280));var t=e.stateNode;t&&(t=Db(t),yb(e.stateNode,e.type,t))}}function Eb(e){zb?Ab?Ab.push(e):Ab=[e]:zb=e}function Fb(){if(zb){var e=zb,t=Ab;if(Ab=zb=null,Bb(e),t)for(e=0;e<t.length;e++)Bb(t[e])}}function Gb(e,t){return e(t)}function Hb(){}var Ib=!1;function Jb(e,t,n){if(Ib)return e(t,n);Ib=!0;try{return Gb(e,t,n)}finally{Ib=!1,(null!==zb||null!==Ab)&&(Hb(),Fb())}}function Kb(e,t){var n=e.stateNode;if(null===n)return null;var r=Db(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(p(231,t,typeof n));return n}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch(e){Lb=!1}function Nb(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(e){Ob=!0,Pb=e}};function Tb(e,t,n,r,i,a,o,s,l){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(e,t,n,r,i,a,o,s,l){if(Tb.apply(this,arguments),Ob){if(!Ob)throw Error(p(198));var u=Pb;Ob=!1,Pb=null,Qb||(Qb=!0,Rb=u)}}function Vb(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Wb(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xb(e){if(Vb(e)!==e)throw Error(p(188))}function Yb(e){var t=e.alternate;if(!t){if(null===(t=Vb(e)))throw Error(p(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Xb(i),e;if(a===r)return Xb(i),t;a=a.sibling}throw Error(p(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(p(189))}}if(n.alternate!==r)throw Error(p(190))}if(3!==n.tag)throw Error(p(188));return n.stateNode.current===n?e:t}function Zb(e){return null!==(e=Yb(e))?$b(e):null}function $b(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$b(e);if(null!==t)return t;e=e.sibling}return null}var ac=scheduler.unstable_scheduleCallback,bc=scheduler.unstable_cancelCallback,cc=scheduler.unstable_shouldYield,dc=scheduler.unstable_requestPaint,B=scheduler.unstable_now,ec=scheduler.unstable_getCurrentPriorityLevel,fc=scheduler.unstable_ImmediatePriority,gc=scheduler.unstable_UserBlockingPriority,hc=scheduler.unstable_NormalPriority,ic=scheduler.unstable_LowPriority,jc=scheduler.unstable_IdlePriority,kc=null,lc=null;function mc(e){if(lc&&"function"==typeof lc.onCommitFiberRoot)try{lc.onCommitFiberRoot(kc,e,void 0,128==(128&e.current.flags))}catch(e){}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(e){return 0===(e>>>=0)?32:31-(pc(e)/qc|0)|0}var rc=64,sc=4194304;function tc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=tc(s):0!==(a&=o)&&(r=tc(a))}else 0!==(o=n&~i)?r=tc(o):0!==a&&(r=tc(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-oc(t)),r|=e[n],t&=~i;return r}function vc(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:default:return-1}}function wc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-oc(a),s=1<<o,l=i[o];-1===l?0!=(s&n)&&0==(s&r)||(i[o]=vc(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function xc(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yc(){var e=rc;return 0==(4194240&(rc<<=1))&&(rc=64),e}function zc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ac(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-oc(t)]=n}function Bc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-oc(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Cc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-oc(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var C=0;function Dc(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(e,t){switch(e){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(t.pointerId)}}function Tc(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=Cb(t))&&Fc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Uc(e,t,n,r,i){switch(t){case"focusin":return Lc=Tc(Lc,e,t,n,r,i),!0;case"dragenter":return Mc=Tc(Mc,e,t,n,r,i),!0;case"mouseover":return Nc=Tc(Nc,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Oc.set(a,Tc(Oc.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Pc.set(a,Tc(Pc.get(a)||null,e,t,n,r,i)),!0}return!1}function Vc(e){var t=Wc(e.target);if(null!==t){var n=Vb(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Wb(n)))return e.blockedOn=t,void Ic(e.priority,(function(){Gc(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Xc(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Cb(n))&&Fc(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);wb=r,n.target.dispatchEvent(r),wb=null,t.shift()}return!0}function Zc(e,t,n){Xc(e)&&n.delete(t)}function $c(){Jc=!1,null!==Lc&&Xc(Lc)&&(Lc=null),null!==Mc&&Xc(Mc)&&(Mc=null),null!==Nc&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(e,t){e.blockedOn===t&&(e.blockedOn=null,Jc||(Jc=!0,scheduler.unstable_scheduleCallback(scheduler.unstable_NormalPriority,$c)))}function bd(e){function t(t){return ad(t,e)}if(0<Kc.length){ad(Kc[0],e);for(var n=1;n<Kc.length;n++){var r=Kc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Lc&&ad(Lc,e),null!==Mc&&ad(Mc,e),null!==Nc&&ad(Nc,e),Oc.forEach(t),Pc.forEach(t),n=0;n<Qc.length;n++)(r=Qc[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Qc.length&&null===(n=Qc[0]).blockedOn;)Vc(n),null===n.blockedOn&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(e,t,n,r){var i=C,a=cd.transition;cd.transition=null;try{C=1,fd(e,t,n,r)}finally{C=i,cd.transition=a}}function gd(e,t,n,r){var i=C,a=cd.transition;cd.transition=null;try{C=4,fd(e,t,n,r)}finally{C=i,cd.transition=a}}function fd(e,t,n,r){if(dd){var i=Yc(e,t,n,r);if(null===i)hd(e,t,r,id,n),Sc(e,r);else if(Uc(i,e,t,n,r))r.stopPropagation();else if(Sc(e,r),4&t&&-1<Rc.indexOf(e)){for(;null!==i;){var a=Cb(i);if(null!==a&&Ec(a),null===(a=Yc(e,t,n,r))&&hd(e,t,r,id,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else hd(e,t,r,null,n)}}var id=null;function Yc(e,t,n,r){if(id=null,null!==(e=Wc(e=xb(r))))if(null===(t=Vb(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Wb(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return id=e,null}function jd(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var e,t,n=ld,r=n.length,i="value"in kd?kd.value:kd.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return md=i.slice(e,1<t?1-t:void 0)}function od(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function pd(){return!0}function qd(){return!1}function rd(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?pd:qd,this.isPropagationStopped=qd,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),t}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yd&&(yd&&"mousemove"===e.type?(wd=e.screenX-yd.screenX,xd=e.screenY-yd.screenY):xd=wd=0,yd=e),wd)},movementY:function(e){return"movementY"in e?e.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Od[e])&&!!t[e]}function zd(){return Pd}var Qd=A({},ud,{key:function(e){if(e.key){var t=Md[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=od(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Nd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(e){return"keypress"===e.type?od(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?od(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=String.fromCharCode(32),fe=!1;function ge(e,t){switch(e){case"keyup":return-1!==$d.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ie=!1;function je(e,t){switch(e){case"compositionend":return he(t);case"keypress":return 32!==t.which?null:(fe=!0,ee);case"textInput":return(e=t.data)===ee&&fe?null:e;default:return null}}function ke(e,t){if(ie)return"compositionend"===e||!ae&&ge(e,t)?(e=nd(),md=ld=kd=null,ie=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return de&&"ko"!==t.locale?null:t.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!le[e.type]:"textarea"===t}function ne(e,t,n,r){Eb(r),0<(t=oe(t,"onChange")).length&&(n=new td("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var pe=null,qe=null;function re(e){se(e,0)}function te(e){if(Wa(ue(e)))return e}function ve(e,t){if("change"===e)return t}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye="function"==typeof ze.oninput}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(e){if("value"===e.propertyName&&te(qe)){var t=[];ne(t,qe,e,xb(e)),Jb(re,t)}}function Ce(e,t,n){"focusin"===e?(Ae(),qe=n,(pe=t).attachEvent("onpropertychange",Be)):"focusout"===e&&Ae()}function De(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return te(qe)}function Ee(e,t){if("click"===e)return te(t)}function Fe(e,t){if("input"===e||"change"===e)return te(t)}function Ge(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var He="function"==typeof Object.is?Object.is:Ge;function Ie(e,t){if(He(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ja.call(t,i)||!He(e[i],t[i]))return!1}return!0}function Je(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ke(e,t){var n,r=Je(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Je(r)}}function Le(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Le(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Me(){for(var e=window,t=Xa();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Xa((e=t.contentWindow).document)}return t}function Ne(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Oe(e){var t=Me(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Le(n.ownerDocument.documentElement,n)){if(null!==r&&Ne(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Ke(n,a);var o=Ke(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Te||null==Qe||Qe!==Xa(r)||("selectionStart"in(r=Qe)&&Ne(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Se&&Ie(Se,r)||(Se=r,0<(r=oe(Re,"onSelect")).length&&(t=new td("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qe)))}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};function Ze(e){if(Xe[e])return Xe[e];if(!We[e])return e;var t,n=We[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ye)return Xe[e]=n[t];return e}ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(e,t){df.set(e,t),fa(t,[e])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd"),ff(af,"onAnimationIteration"),ff(bf,"onAnimationStart"),ff("dblclick","onDoubleClick"),ff("focusin","onFocus"),ff("focusout","onBlur"),ff(cf,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ub(r,t,void 0,e),e.currentTarget=null}function se(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;nf(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;nf(i,s,u),a=l}}}if(Qb)throw e=Rb,Qb=!1,Rb=null,e}function D(e,t){var n=t[of];void 0===n&&(n=t[of]=new Set);var r=e+"__bubble";n.has(r)||(pf(t,e,2,!1),n.add(r))}function qf(e,t,n){var r=0;t&&(r|=4),pf(n,e,r,t)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(e){if(!e[rf]){e[rf]=!0,da.forEach((function(t){"selectionchange"!==t&&(mf.has(t)||qf(t,!1,e),qf(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[rf]||(t[rf]=!0,qf("selectionchange",!1,t))}}function pf(e,t,n,r){switch(jd(t)){case 1:var i=ed;break;case 4:i=gd;break;default:i=fd}n=i.bind(null,t,n,e),i=void 0,!Lb||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function hd(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=Wc(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}Jb((function(){var r=a,i=xb(n),o=[];e:{var s=df.get(e);if(void 0!==s){var l=td,u=e;switch(e){case"keypress":if(0===od(n))break e;case"keydown":case"keyup":l=Rd;break;case"focusin":u="focus",l=Fd;break;case"focusout":u="blur",l=Fd;break;case"beforeblur":case"afterblur":l=Fd;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Vd;break;case $e:case af:case bf:l=Hd;break;case cf:l=Xd;break;case"scroll":l=vd;break;case"wheel":l=Zd;break;case"copy":case"cut":case"paste":l=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Td}var c=0!=(4&t),d=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Kb(h,p))&&c.push(tf(h,m,f)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===wb||!(u=n.relatedTarget||n.fromElement)||!Wc(u)&&!u[uf])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?Wc(u):null)&&(u!==(d=Vb(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=Bd,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Td,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:ue(l),f=null==u?s:ue(u),(s=new c(m,h+"leave",l,n,i)).target=d,s.relatedTarget=f,m=null,Wc(i)===r&&((c=new c(p,h+"enter",u,n,i)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(p=u,h=0,f=c=l;f;f=vf(f))h++;for(f=0,m=p;m;m=vf(m))f++;for(;0<h-f;)c=vf(c),h--;for(;0<f-h;)p=vf(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=vf(c),p=vf(p)}c=null}else c=null;null!==l&&wf(o,s,l,c,!1),null!==u&&null!==d&&wf(o,d,u,c,!0)}if("select"===(l=(s=r?ue(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=ve;else if(me(s))if(we)g=Fe;else{g=De;var v=Ce}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=Ee);switch(g&&(g=g(e,r))?ne(o,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&cb(s,"number",s.value)),v=r?ue(r):window,e){case"focusin":(me(v)||"true"===v.contentEditable)&&(Qe=v,Re=r,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(o,n,i);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(o,n,i)}var b;if(ae)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else ie?ge(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(de&&"ko"!==n.locale&&(ie||"onCompositionStart"!==y?"onCompositionEnd"===y&&ie&&(b=nd()):(ld="value"in(kd=i)?kd.value:kd.textContent,ie=!0)),0<(v=oe(r,y)).length&&(y=new Ld(y,e,null,n,i),o.push({event:y,listeners:v}),b?y.data=b:null!==(b=he(n))&&(y.data=b))),(b=ce?je(e,n):ke(e,n))&&(0<(r=oe(r,"onBeforeInput")).length&&(i=new Ld("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=b))}se(o,t)}))}function tf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function oe(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Kb(e,n))&&r.unshift(tf(e,a,i)),null!=(a=Kb(e,t))&&r.push(tf(e,a,i))),e=e.return}return r}function vf(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function wf(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Kb(n,a))&&o.unshift(tf(n,l,s)):i||null!=(l=Kb(n,a))&&o.push(tf(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(e){return("string"==typeof e?e:""+e).replace(xf,"\n").replace(yf,"")}function Af(e,t,n){if(t=zf(t),zf(e)!==t&&n)throw Error(p(425))}function Bf(){}var Cf=null,Df=null;function Ef(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ff="function"==typeof setTimeout?setTimeout:void 0,Gf="function"==typeof clearTimeout?clearTimeout:void 0,Hf="function"==typeof Promise?Promise:void 0,Jf="function"==typeof queueMicrotask?queueMicrotask:void 0!==Hf?function(e){return Hf.resolve(null).then(e).catch(If)}:Ff;function If(e){setTimeout((function(){throw e}))}function Kf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void bd(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);bd(t)}function Lf(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Mf(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(e){var t=e[Of];if(t)return t;for(var n=e.parentNode;n;){if(t=n[uf]||n[Of]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Mf(e);null!==e;){if(n=e[Of])return n;e=Mf(e)}return t}n=(e=n).parentNode}return null}function Cb(e){return!(e=e[Of]||e[uf])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ue(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(p(33))}function Db(e){return e[Pf]||null}var Sf=[],Tf=-1;function Uf(e){return{current:e}}function E(e){0>Tf||(e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(e,t){Tf++,Sf[Tf]=e.current,e.current=t}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(e,t){var n=e.type.contextTypes;if(!n)return Vf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Zf(e){return null!=(e=e.childContextTypes)}function $f(){E(Wf),E(H)}function ag(e,t,n){if(H.current!==Vf)throw Error(p(168));G(H,t),G(Wf,n)}function bg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(p(108,Ra(e)||"Unknown",i));return A({},n,r)}function cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,e),G(Wf,Wf.current),!0}function dg(e,t,n){var r=e.stateNode;if(!r)throw Error(p(169));n?(e=bg(e,t,Xf),r.__reactInternalMemoizedMergedChildContext=e,E(Wf),E(H),G(H,e)):E(Wf),G(Wf,n)}var eg=null,fg=!1,gg=!1;function hg(e){null===eg?eg=[e]:eg.push(e)}function ig(e){fg=!0,hg(e)}function jg(){if(!gg&&null!==eg){gg=!0;var e=0,t=C;try{var n=eg;for(C=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}eg=null,fg=!1}catch(t){throw null!==eg&&(eg=eg.slice(e+1)),ac(fc,jg),t}finally{C=t,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(e,t){kg[lg++]=ng,kg[lg++]=mg,mg=e,ng=t}function ug(e,t,n){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=e;var r=rg;e=sg;var i=32-oc(r)-1;r&=~(1<<i),n+=1;var a=32-oc(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,rg=1<<32-oc(t)+i|n<<i|r,sg=a+e}else rg=1<<a|n<<i|r,sg=e}function vg(e){null!==e.return&&(tg(e,1),ug(e,1,0))}function wg(e){for(;e===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;e===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(e,t){var n=Bg(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Cg(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,xg=e,yg=Lf(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,xg=e,yg=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qg?{id:rg,overflow:sg}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Bg(18,null,null,0)).stateNode=t,n.return=e,e.child=n,xg=e,yg=null,!0);default:return!1}}function Dg(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Eg(e){if(I){var t=yg;if(t){var n=t;if(!Cg(e,t)){if(Dg(e))throw Error(p(418));t=Lf(n.nextSibling);var r=xg;t&&Cg(e,t)?Ag(r,n):(e.flags=-4097&e.flags|2,I=!1,xg=e)}}else{if(Dg(e))throw Error(p(418));e.flags=-4097&e.flags|2,I=!1,xg=e}}}function Fg(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xg=e}function Gg(e){if(e!==xg)return!1;if(!I)return Fg(e),I=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Ef(e.type,e.memoizedProps)),t&&(t=yg)){if(Dg(e))throw Hg(),Error(p(418));for(;t;)Ag(e,t),t=Lf(t.nextSibling)}if(Fg(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(p(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){yg=Lf(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}yg=null}}else yg=xg?Lf(e.stateNode.nextSibling):null;return!0}function Hg(){for(var e=yg;e;)e=Lf(e.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(e){null===zg?zg=[e]:zg.push(e)}var Kg=ua.ReactCurrentBatchConfig;function Lg(e,t){if(e&&e.defaultProps){for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(e){var t=Mg.current;E(Mg),e._currentValue=t}function Sg(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Tg(e,t){Ng=e,Pg=Og=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ug=!0),e.firstContext=null)}function Vg(e){var t=e._currentValue;if(Pg!==e)if(e={context:e,memoizedValue:t,next:null},null===Og){if(null===Ng)throw Error(p(308));Og=e,Ng.dependencies={lanes:0,firstContext:e}}else Og=Og.next=e;return t}var Wg=null;function Xg(e){null===Wg?Wg=[e]:Wg.push(e)}function Yg(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Xg(t)):(n.next=i.next,i.next=n),t.interleaved=n,Zg(e,r)}function Zg(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var $g=!1;function ah(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ch(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dh(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&K)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Zg(e,n)}return null===(i=r.interleaved)?(t.next=t,Xg(r)):(t.next=i.next,i.next=t),r.interleaved=t,Zg(e,n)}function eh(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Cc(e,n)}}function fh(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gh(e,t,n,r){var i=e.updateQueue;$g=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==a){var d=i.baseState;for(o=0,c=u=l=null,s=a;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=A({},d,p);break e;case 2:$g=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,o|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);hh|=o,e.lanes=o,e.memoizedState=d}}function ih(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(p(191,i));i.call(r)}}}var jh=(new react.Component).refs;function kh(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var nh={isMounted:function(e){return!!(e=e._reactInternals)&&Vb(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=L(),i=lh(e),a=ch(r,i);a.payload=t,null!=n&&(a.callback=n),null!==(t=dh(e,a,i))&&(mh(t,e,i,r),eh(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=L(),i=lh(e),a=ch(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=dh(e,a,i))&&(mh(t,e,i,r),eh(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=L(),r=lh(e),i=ch(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=dh(e,i,r))&&(mh(t,e,r,n),eh(t,e,r))}};function oh(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!Ie(n,r)||!Ie(i,a))}function ph(e,t,n){var r=!1,i=Vf,a=t.contextType;return"object"==typeof a&&null!==a?a=Vg(a):(i=Zf(t)?Xf:H.current,a=(r=null!=(r=t.contextTypes))?Yf(e,i):Vf),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=nh,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function qh(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&nh.enqueueReplaceState(t,t.state,null)}function rh(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=jh,ah(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=Vg(a):(a=Zf(t)?Xf:H.current,i.context=Yf(e,a)),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(kh(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&nh.enqueueReplaceState(i,i.state,null),gh(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function sh(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(p(309));var r=n.stateNode}if(!r)throw Error(p(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=i.refs;t===jh&&(t=i.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(p(284));if(!n._owner)throw Error(p(290,e))}return e}function th(e,t){throw e=Object.prototype.toString.call(t),Error(p(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uh(e){return(0,e._init)(e._payload)}function vh(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=wh(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=xh(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var a=n.type;return a===ya?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Ha&&uh(a)===t.type)?((r=i(t,n.props)).ref=sh(e,t,n),r.return=e,r):((r=yh(n.type,n.key,n.props,null,e.mode,r)).ref=sh(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zh(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,a){return null===t||7!==t.tag?((t=Ah(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=xh(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case va:return(n=yh(t.type,t.key,t.props,null,e.mode,n)).ref=sh(e,null,t),n.return=e,n;case wa:return(t=zh(t,e.mode,n)).return=e,t;case Ha:return d(e,(0,t._init)(t._payload),n)}if(eb(t)||Ka(t))return(t=Ah(t,e.mode,n,null)).return=e,t;th(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case va:return n.key===i?l(e,t,n,r):null;case wa:return n.key===i?u(e,t,n,r):null;case Ha:return f(e,t,(i=n._init)(n._payload),r)}if(eb(n)||Ka(n))return null!==i?null:c(e,t,n,r,null);th(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case va:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case wa:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case Ha:return h(e,t,n,(0,r._init)(r._payload),i)}if(eb(r)||Ka(r))return c(t,e=e.get(n)||null,r,i,null);th(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,p=o,m=o=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,s[m],l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,p=g}if(m===s.length)return n(i,p),I&&tg(i,m),u;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(o=a(p,o,m),null===c?u=p:c.sibling=p,c=p);return I&&tg(i,m),u}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(i,e)})),I&&tg(i,m),u}function g(i,o,s,l){var u=Ka(s);if("function"!=typeof u)throw Error(p(150));if(null==(s=u.call(s)))throw Error(p(151));for(var c=u=null,m=o,g=o=0,v=null,b=s.next();null!==m&&!b.done;g++,b=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=f(i,m,b.value,l);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(i,m),o=a(y,o,g),null===c?u=y:c.sibling=y,c=y,m=v}if(b.done)return n(i,m),I&&tg(i,g),u;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=d(i,b.value,l))&&(o=a(b,o,g),null===c?u=b:c.sibling=b,c=b);return I&&tg(i,g),u}for(m=r(i,m);!b.done;g++,b=s.next())null!==(b=h(m,i,g,b.value,l))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),o=a(b,o,g),null===c?u=b:c.sibling=b,c=b);return e&&m.forEach((function(e){return t(i,e)})),I&&tg(i,g),u}return function e(r,a,s,l){if("object"==typeof s&&null!==s&&s.type===ya&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case va:e:{for(var u=s.key,c=a;null!==c;){if(c.key===u){if((u=s.type)===ya){if(7===c.tag){n(r,c.sibling),(a=i(c,s.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Ha&&uh(u)===c.type){n(r,c.sibling),(a=i(c,s.props)).ref=sh(r,c,s),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===ya?((a=Ah(s.props.children,r.mode,l,s.key)).return=r,r=a):((l=yh(s.type,s.key,s.props,null,r.mode,l)).ref=sh(r,a,s),l.return=r,r=l)}return o(r);case wa:e:{for(c=s.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){n(r,a.sibling),(a=i(a,s.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=zh(s,r.mode,l)).return=r,r=a}return o(r);case Ha:return e(r,a,(c=s._init)(s._payload),l)}if(eb(s))return m(r,a,s,l);if(Ka(s))return g(r,a,s,l);th(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,s)).return=r,r=a):(n(r,a),(a=xh(s,r.mode,l)).return=r,r=a),o(r)):n(r,a)}}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(e){if(e===Dh)throw Error(p(174));return e}function Ih(e,t){switch(G(Gh,t),G(Fh,e),G(Eh,Dh),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lb(null,"");break;default:t=lb(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}E(Eh),G(Eh,t)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(e){Hh(Gh.current);var t=Hh(Eh.current),n=lb(t,e.type);t!==n&&(G(Fh,e),G(Eh,n))}function Lh(e){Fh.current===e&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Nh=[];function Oh(){for(var e=0;e<Nh.length;e++)Nh[e]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O=null,P=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q(){throw Error(p(321))}function Wh(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!He(e[n],t[n]))return!1;return!0}function Xh(e,t,n,r,i,a){if(Rh=a,N=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ph.current=null===e||null===e.memoizedState?Yh:Zh,e=n(r,i),Th){a=0;do{if(Th=!1,Uh=0,25<=a)throw Error(p(301));a+=1,P=O=null,t.updateQueue=null,Ph.current=$h,e=n(r,i)}while(Th)}if(Ph.current=ai,t=null!==O&&null!==O.next,Rh=0,P=O=N=null,Sh=!1,t)throw Error(p(300));return e}function bi(){var e=0!==Uh;return Uh=0,e}function ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===P?N.memoizedState=P=e:P=P.next=e,P}function di(){if(null===O){var e=N.alternate;e=null!==e?e.memoizedState:null}else e=O.next;var t=null===P?N.memoizedState:P.next;if(null!==t)P=t,O=e;else{if(null===e)throw Error(p(310));e={memoizedState:(O=e).memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null},null===P?N.memoizedState=P=e:P=P.next=e}return P}function ei(e,t){return"function"==typeof t?t(e):t}function fi(e){var t=di(),n=t.queue;if(null===n)throw Error(p(311));n.lastRenderedReducer=e;var r=O,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var s=o=null,l=null,u=a;do{var c=u.lane;if((Rh&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,N.lanes|=c,hh|=c}u=u.next}while(null!==u&&u!==a);null===l?o=r:l.next=s,He(r,t.memoizedState)||(Ug=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,N.lanes|=a,hh|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gi(e){var t=di(),n=t.queue;if(null===n)throw Error(p(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);He(a,t.memoizedState)||(Ug=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function hi(){}function ii(e,t){var n=N,r=di(),i=t(),a=!He(r.memoizedState,i);if(a&&(r.memoizedState=i,Ug=!0),r=r.queue,ji(ki.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==P&&1&P.memoizedState.tag){if(n.flags|=2048,li(9,mi.bind(null,n,r,i,t),void 0,null),null===R)throw Error(p(349));0!=(30&Rh)||ni(n,t,i)}return i}function ni(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=N.updateQueue)?(t={lastEffect:null,stores:null},N.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function mi(e,t,n,r){t.value=n,t.getSnapshot=r,oi(t)&&pi(e)}function ki(e,t,n){return n((function(){oi(t)&&pi(e)}))}function oi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!He(e,n)}catch(e){return!0}}function pi(e){var t=Zg(e,1);null!==t&&mh(t,e,1,-1)}function qi(e){var t=ci();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:e},t.queue=e,e=e.dispatch=ri.bind(null,N,e),[t.memoizedState,e]}function li(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=N.updateQueue)?(t={lastEffect:null,stores:null},N.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function si(){return di().memoizedState}function ti(e,t,n,r){var i=ci();N.flags|=e,i.memoizedState=li(1|t,n,void 0,void 0===r?null:r)}function ui(e,t,n,r){var i=di();r=void 0===r?null:r;var a=void 0;if(null!==O){var o=O.memoizedState;if(a=o.destroy,null!==r&&Wh(r,o.deps))return void(i.memoizedState=li(t,n,a,r))}N.flags|=e,i.memoizedState=li(1|t,n,a,r)}function vi(e,t){return ti(8390656,8,e,t)}function ji(e,t){return ui(2048,8,e,t)}function wi(e,t){return ui(4,2,e,t)}function xi(e,t){return ui(4,4,e,t)}function yi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function zi(e,t,n){return n=null!=n?n.concat([e]):null,ui(4,4,yi.bind(null,t,e),n)}function Ai(){}function Bi(e,t){var n=di();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ci(e,t){var n=di();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Di(e,t,n){return 0==(21&Rh)?(e.baseState&&(e.baseState=!1,Ug=!0),e.memoizedState=n):(He(n,t)||(n=yc(),N.lanes|=n,hh|=n,e.baseState=!0),t)}function Ei(e,t){var n=C;C=0!==n&&4>n?n:4,e(!0);var r=Qh.transition;Qh.transition={};try{e(!1),t()}finally{C=n,Qh.transition=r}}function Fi(){return di().memoizedState}function Gi(e,t,n){var r=lh(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hi(e))Ii(t,n);else if(null!==(n=Yg(e,t,n,r))){mh(n,e,r,L()),Ji(n,t,r)}}function ri(e,t,n){var r=lh(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hi(e))Ii(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,He(s,o)){var l=t.interleaved;return null===l?(i.next=i,Xg(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Yg(e,t,i,r))&&(mh(n,e,r,i=L()),Ji(n,t,r))}}function Hi(e){var t=e.alternate;return e===N||null!==t&&t===N}function Ii(e,t){Th=Sh=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ji(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Cc(e,n)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(e,t){return ci().memoizedState=[e,void 0===t?null:t],e},useContext:Vg,useEffect:vi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ti(4194308,4,yi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return ti(4,2,e,t)},useMemo:function(e,t){var n=ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ci();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gi.bind(null,N,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ci().memoizedState=e},useState:qi,useDebugValue:Ai,useDeferredValue:function(e){return ci().memoizedState=e},useTransition:function(){var e=qi(!1),t=e[0];return e=Ei.bind(null,e[1]),ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=N,i=ci();if(I){if(void 0===n)throw Error(p(407));n=n()}else{if(n=t(),null===R)throw Error(p(349));0!=(30&Rh)||ni(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,vi(ki.bind(null,r,a,e),[e]),r.flags|=2048,li(9,mi.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ci(),t=R.identifierPrefix;if(I){var n=sg;t=":"+t+"R"+(n=(rg&~(1<<32-oc(rg)-1)).toString(32)+n),0<(n=Uh++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Vh++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(e){return Di(di(),O.memoizedState,e)},useTransition:function(){return[fi(ei)[0],di().memoizedState]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(e){var t=di();return null===O?t.memoizedState=e:Di(t,O.memoizedState,e)},useTransition:function(){return[gi(ei)[0],di().memoizedState]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(e,t){try{var n="",r=t;do{n+=Pa(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function Li(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Mi(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ni="function"==typeof WeakMap?WeakMap:Map;function Oi(e,t,n){(n=ch(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Pi||(Pi=!0,Qi=r),Mi(e,t)},n}function Ri(e,t,n){(n=ch(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Mi(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Mi(e,t),"function"!=typeof r&&(null===Si?Si=new Set([this]):Si.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function Ti(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ni;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ui.bind(null,e,t,n),t.then(e,e))}function Vi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Wi(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ch(-1,1)).tag=2,dh(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(e,t,n,r){t.child=null===e?Ch(t,null,n,r):Bh(t,e.child,n,r)}function Zi(e,t,n,r,i){n=n.render;var a=t.ref;return Tg(t,i),r=Xh(e,t,n,r,a,i),n=bi(),null===e||Ug?(I&&n&&vg(t),t.flags|=1,Yi(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$i(e,t,i))}function aj(e,t,n,r,i){if(null===e){var a=n.type;return"function"!=typeof a||bj(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=yh(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,cj(e,t,a,r,i))}if(a=e.child,0==(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:Ie)(o,r)&&e.ref===t.ref)return $i(e,t,i)}return t.flags|=1,(e=wh(a,r)).ref=t.ref,e.return=t,t.child=e}function cj(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(Ie(a,r)&&e.ref===t.ref){if(Ug=!1,t.pendingProps=r=a,0==(e.lanes&i))return t.lanes=e.lanes,$i(e,t,i);0!=(131072&e.flags)&&(Ug=!0)}}return dj(e,t,n,r,i)}function ej(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,G(fj,gj),gj|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,G(fj,gj),gj|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,G(fj,gj),gj|=r;return Yi(e,t,i,n),t.child}function hj(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function dj(e,t,n,r,i){var a=Zf(n)?Xf:H.current;return a=Yf(t,a),Tg(t,i),n=Xh(e,t,n,r,a,i),r=bi(),null===e||Ug?(I&&r&&vg(t),t.flags|=1,Yi(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$i(e,t,i))}function ij(e,t,n,r,i){if(Zf(n)){var a=!0;cg(t)}else a=!1;if(Tg(t,i),null===t.stateNode)jj(e,t),ph(t,n,r),rh(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;"object"==typeof u&&null!==u?u=Vg(u):u=Yf(t,u=Zf(n)?Xf:H.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&qh(t,o,r,u),$g=!1;var p=t.memoizedState;o.state=p,gh(t,r,o,i),l=t.memoizedState,s!==r||p!==l||Wf.current||$g?("function"==typeof c&&(kh(t,n,c,r),l=t.memoizedState),(s=$g||oh(t,n,s,r,p,l,u))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,bh(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Lg(t.type,s),o.props=u,d=t.pendingProps,p=o.context,"object"==typeof(l=n.contextType)&&null!==l?l=Vg(l):l=Yf(t,l=Zf(n)?Xf:H.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||p!==l)&&qh(t,o,r,l),$g=!1,p=t.memoizedState,o.state=p,gh(t,r,o,i);var h=t.memoizedState;s!==d||p!==h||Wf.current||$g?("function"==typeof f&&(kh(t,n,f,r),h=t.memoizedState),(u=$g||oh(t,n,u,r,p,h,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return kj(e,t,n,r,a,i)}function kj(e,t,n,r,i,a){hj(e,t);var o=0!=(128&t.flags);if(!r&&!o)return i&&dg(t,n,!1),$i(e,t,a);r=t.stateNode,Xi.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Bh(t,e.child,null,a),t.child=Bh(t,null,s,a)):Yi(e,t,s,a),t.memoizedState=r.state,i&&dg(t,n,!0),t.child}function lj(e){var t=e.stateNode;t.pendingContext?ag(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ag(e,t.context,!1),Ih(e,t.containerInfo)}function mj(e,t,n,r,i){return Ig(),Jg(i),t.flags|=256,Yi(e,t,n,r),t.child}var nj={dehydrated:null,treeContext:null,retryLane:0},Aj,Bj,Cj,Dj;function oj(e){return{baseLanes:e,cachePool:null,transitions:null}}function pj(e,t,n){var r,i=t.pendingProps,a=M.current,o=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),G(M,1&a),null===e)return Eg(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,o?(i=t.mode,o=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==o?(o.childLanes=0,o.pendingProps=s):o=qj(s,i,0,null),e=Ah(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=oj(n),t.memoizedState=nj,e):rj(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return sj(e,t,s,i,r,a,n);if(o){o=i.fallback,s=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=wh(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?o=wh(r,o):(o=Ah(o,s,n,null)).flags|=2,o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,s=null===(s=e.child.memoizedState)?oj(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=nj,i}return e=(o=e.child).sibling,i=wh(o,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function rj(e,t){return(t=qj({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function tj(e,t,n,r){return null!==r&&Jg(r),Bh(t,e.child,null,n),(e=rj(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function sj(e,t,n,r,i,a,o){if(n)return 256&t.flags?(t.flags&=-257,tj(e,t,o,r=Li(Error(p(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=qj({mode:"visible",children:r.children},i,0,null),(a=Ah(a,i,o,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Bh(t,e.child,null,o),t.child.memoizedState=oj(o),t.memoizedState=nj,a);if(0==(1&t.mode))return tj(e,t,o,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,tj(e,t,o,r=Li(a=Error(p(419)),r,void 0))}if(s=0!=(o&e.childLanes),Ug||s){if(null!==(r=R)){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|o))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Zg(e,i),mh(r,e,i,-1))}return uj(),tj(e,t,o,r=Li(Error(p(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=vj.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,yg=Lf(i.nextSibling),xg=t,I=!0,zg=null,null!==e&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=e.id,sg=e.overflow,qg=t),(t=rj(t,r.children)).flags|=4096,t)}function wj(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sg(e.return,t,n)}function xj(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function yj(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Yi(e,t,r.children,n),0!=(2&(r=M.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&wj(e,n,t);else if(19===e.tag)wj(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(G(M,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Mh(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xj(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Mh(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xj(t,!0,n,null,a);break;case"together":xj(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jj(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $i(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),hh|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(p(153));if(null!==t.child){for(n=wh(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=wh(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function zj(e,t,n){switch(t.tag){case 3:lj(t),Ig();break;case 5:Kh(t);break;case 1:Zf(t.type)&&cg(t);break;case 4:Ih(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;G(Mg,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(G(M,1&M.current),t.flags|=128,null):0!=(n&t.child.childLanes)?pj(e,t,n):(G(M,1&M.current),null!==(e=$i(e,t,n))?e.sibling:null);G(M,1&M.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return yj(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(M,M.current),r)break;return null;case 22:case 23:return t.lanes=0,ej(e,t,n)}return $i(e,t,n)}function Ej(e,t){if(!I)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function S(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fj(e,t,n){var r=t.pendingProps;switch(wg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(t),null;case 1:return Zf(t.type)&&$f(),S(t),null;case 3:return r=t.stateNode,Jh(),E(Wf),E(H),Oh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Gg(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==zg&&(Gj(zg),zg=null))),Bj(e,t),S(t),null;case 5:Lh(t);var i=Hh(Gh.current);if(n=t.type,null!==e&&null!=t.stateNode)Cj(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(p(166));return S(t),null}if(e=Hh(Eh.current),Gg(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Of]=t,r[Pf]=a,e=0!=(1&t.mode),n){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(i=0;i<lf.length;i++)D(lf[i],r);break;case"source":D("error",r);break;case"img":case"image":case"link":D("error",r),D("load",r);break;case"details":D("toggle",r);break;case"input":Za(r,a),D("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},D("invalid",r);break;case"textarea":hb(r,a),D("invalid",r)}for(var o in ub(n,a),i=null,a)if(a.hasOwnProperty(o)){var s=a[o];"children"===o?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Af(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Af(r.textContent,s,e),i=["children",""+s]):ea.hasOwnProperty(o)&&null!=s&&"onScroll"===o&&D("scroll",r)}switch(n){case"input":Va(r),db(r,a,!0);break;case"textarea":Va(r),jb(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Bf)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{o=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=kb(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),"select"===n&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Of]=t,e[Pf]=r,Aj(e,t,!1,!1),t.stateNode=e;e:{switch(o=vb(n,r),n){case"dialog":D("cancel",e),D("close",e),i=r;break;case"iframe":case"object":case"embed":D("load",e),i=r;break;case"video":case"audio":for(i=0;i<lf.length;i++)D(lf[i],e);i=r;break;case"source":D("error",e),i=r;break;case"img":case"image":case"link":D("error",e),D("load",e),i=r;break;case"details":D("toggle",e),i=r;break;case"input":Za(e,r),i=Ya(e,r),D("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=A({},r,{value:void 0}),D("invalid",e);break;case"textarea":hb(e,r),i=gb(e,r),D("invalid",e);break;default:i=r}for(a in ub(n,i),s=i)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?sb(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&nb(e,l):"children"===a?"string"==typeof l?("textarea"!==n||""!==l)&&ob(e,l):"number"==typeof l&&ob(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(ea.hasOwnProperty(a)?null!=l&&"onScroll"===a&&D("scroll",e):null!=l&&ta(e,a,l,o))}switch(n){case"input":Va(e),db(e,r,!1);break;case"textarea":Va(e),jb(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Sa(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?fb(e,!!r.multiple,a,!1):null!=r.defaultValue&&fb(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Bf)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return S(t),null;case 6:if(e&&null!=t.stateNode)Dj(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(p(166));if(n=Hh(Gh.current),Hh(Eh.current),Gg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Of]=t,(a=r.nodeValue!==n)&&null!==(e=xg))switch(e.tag){case 3:Af(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Af(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Of]=t,t.stateNode=r}return S(t),null;case 13:if(E(M),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(I&&null!==yg&&0!=(1&t.mode)&&0==(128&t.flags))Hg(),Ig(),t.flags|=98560,a=!1;else if(a=Gg(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(p(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(p(317));a[Of]=t}else Ig(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;S(t),a=!1}else null!==zg&&(Gj(zg),zg=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&M.current)?0===T&&(T=3):uj())),null!==t.updateQueue&&(t.flags|=4),S(t),null);case 4:return Jh(),Bj(e,t),null===e&&sf(t.stateNode.containerInfo),S(t),null;case 10:return Rg(t.type._context),S(t),null;case 17:return Zf(t.type)&&$f(),S(t),null;case 19:if(E(M),null===(a=t.memoizedState))return S(t),null;if(r=0!=(128&t.flags),null===(o=a.rendering))if(r)Ej(a,!1);else{if(0!==T||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=Mh(e))){for(t.flags|=128,Ej(a,!1),null!==(r=o.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(o=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return G(M,1&M.current|2),t.child}e=e.sibling}null!==a.tail&&B()>Hj&&(t.flags|=128,r=!0,Ej(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Mh(o))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ej(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!I)return S(t),null}else 2*B()-a.renderingStartTime>Hj&&1073741824!==n&&(t.flags|=128,r=!0,Ej(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(n=a.last)?n.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=B(),t.sibling=null,n=M.current,G(M,r?1&n|2:1&n),t):(S(t),null);case 22:case 23:return Ij(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&gj)&&(S(t),6&t.subtreeFlags&&(t.flags|=8192)):S(t),null;case 24:case 25:return null}throw Error(p(156,t.tag))}function Jj(e,t){switch(wg(t),t.tag){case 1:return Zf(t.type)&&$f(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Jh(),E(Wf),E(H),Oh(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Lh(t),null;case 13:if(E(M),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(p(340));Ig()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(t.type._context),null;case 22:case 23:return Ij(),null;case 24:default:return null}}Aj=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Bj=function(){},Cj=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Hh(Eh.current);var a,o=null;switch(n){case"input":i=Ya(e,i),r=Ya(e,r),o=[];break;case"select":i=A({},i,{value:void 0}),r=A({},r,{value:void 0}),o=[];break;case"textarea":i=gb(e,i),r=gb(e,r),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Bf)}for(u in ub(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ea.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(o=o||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(o=o||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ea.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&D("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},Dj=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kj=!1,U=!1,Lj="function"==typeof WeakSet?WeakSet:Set,V=null;function Mj(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){W(e,t,n)}else n.current=null}function Nj(e,t,n){try{n()}catch(n){W(e,t,n)}}var Oj=!1;function Pj(e,t){if(Cf=dd,Ne(e=Me())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=o+i),d!==a||0!==r&&3!==d.nodeType||(l=o+r),3===d.nodeType&&(o+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=o),f===a&&++c===r&&(l=o),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Df={focusedElem:e,selectionRange:n},dd=!1,V=t;null!==V;)if(e=(t=V).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,V=e;else for(;null!==V;){t=V;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:Lg(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var k=t.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(e){W(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,V=e;break}V=t.return}return m=Oj,Oj=!1,m}function Qj(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&Nj(t,n,a)}i=i.next}while(i!==r)}}function Rj(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Sj(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}"function"==typeof t?t(e):t.current=e}}function Tj(e){var t=e.alternate;null!==t&&(e.alternate=null,Tj(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Of],delete t[Pf],delete t[of],delete t[Qf],delete t[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Uj(e){return 5===e.tag||3===e.tag||4===e.tag}function Vj(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Uj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Wj(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Bf));else if(4!==r&&null!==(e=e.child))for(Wj(e,t,n),e=e.sibling;null!==e;)Wj(e,t,n),e=e.sibling}function Xj(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Xj(e,t,n),e=e.sibling;null!==e;)Xj(e,t,n),e=e.sibling}var X=null,Yj=!1;function Zj(e,t,n){for(n=n.child;null!==n;)ak(e,t,n),n=n.sibling}function ak(e,t,n){if(lc&&"function"==typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,n)}catch(e){}switch(n.tag){case 5:U||Mj(n,t);case 6:var r=X,i=Yj;X=null,Zj(e,t,n),Yj=i,null!==(X=r)&&(Yj?(e=X,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):X.removeChild(n.stateNode));break;case 18:null!==X&&(Yj?(e=X,n=n.stateNode,8===e.nodeType?Kf(e.parentNode,n):1===e.nodeType&&Kf(e,n),bd(e)):Kf(X,n.stateNode));break;case 4:r=X,i=Yj,X=n.stateNode.containerInfo,Yj=!0,Zj(e,t,n),X=r,Yj=i;break;case 0:case 11:case 14:case 15:if(!U&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!=(2&a)||0!=(4&a))&&Nj(n,t,o),i=i.next}while(i!==r)}Zj(e,t,n);break;case 1:if(!U&&(Mj(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){W(n,t,e)}Zj(e,t,n);break;case 21:Zj(e,t,n);break;case 22:1&n.mode?(U=(r=U)||null!==n.memoizedState,Zj(e,t,n),U=r):Zj(e,t,n);break;default:Zj(e,t,n)}}function bk(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Lj),t.forEach((function(t){var r=ck.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function dk(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,s=o;e:for(;null!==s;){switch(s.tag){case 5:X=s.stateNode,Yj=!1;break e;case 3:case 4:X=s.stateNode.containerInfo,Yj=!0;break e}s=s.return}if(null===X)throw Error(p(160));ak(a,o,i),X=null,Yj=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){W(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ek(t,e),t=t.sibling}function ek(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dk(t,e),fk(e),4&r){try{Qj(3,e,e.return),Rj(3,e)}catch(t){W(e,e.return,t)}try{Qj(5,e,e.return)}catch(t){W(e,e.return,t)}}break;case 1:dk(t,e),fk(e),512&r&&null!==n&&Mj(n,n.return);break;case 5:if(dk(t,e),fk(e),512&r&&null!==n&&Mj(n,n.return),32&e.flags){var i=e.stateNode;try{ob(i,"")}catch(t){W(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,o=null!==n?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&ab(i,a),vb(s,o);var u=vb(s,a);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];"style"===c?sb(i,d):"dangerouslySetInnerHTML"===c?nb(i,d):"children"===c?ob(i,d):ta(i,c,d,u)}switch(s){case"input":bb(i,a);break;case"textarea":ib(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?fb(i,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?fb(i,!!a.multiple,a.defaultValue,!0):fb(i,!!a.multiple,a.multiple?[]:"",!1))}i[Pf]=a}catch(t){W(e,e.return,t)}}break;case 6:if(dk(t,e),fk(e),4&r){if(null===e.stateNode)throw Error(p(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){W(e,e.return,t)}}break;case 3:if(dk(t,e),fk(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{bd(t.containerInfo)}catch(t){W(e,e.return,t)}break;case 4:dk(t,e),fk(e);break;case 13:dk(t,e),fk(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(gk=B())),4&r&&bk(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(U=(u=U)||c,dk(t,e),U=u):dk(t,e),fk(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(V=e,c=e.child;null!==c;){for(d=V=c;null!==V;){switch(h=(f=V).child,f.tag){case 0:case 11:case 14:case 15:Qj(4,f,f.return);break;case 1:Mj(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){W(r,n,e)}}break;case 5:Mj(f,f.return);break;case 22:if(null!==f.memoizedState){hk(d);continue}}null!==h?(h.return=f,V=h):hk(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{i=d.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,o=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=rb("display",o))}catch(t){W(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){W(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:dk(t,e),fk(e),4&r&&bk(e);break;case 21:break;default:dk(t,e),fk(e)}}function fk(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Uj(n)){var r=n;break e}n=n.return}throw Error(p(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(ob(i,""),r.flags&=-33),Xj(e,Vj(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;Wj(e,Vj(e),a);break;default:throw Error(p(161))}}catch(t){W(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ik(e,t,n){V=e,jk(e)}function jk(e,t,n){for(var r=0!=(1&e.mode);null!==V;){var i=V,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||Kj;if(!o){var s=i.alternate,l=null!==s&&null!==s.memoizedState||U;s=Kj;var u=U;if(Kj=o,(U=l)&&!u)for(V=i;null!==V;)l=(o=V).child,22===o.tag&&null!==o.memoizedState?kk(i):null!==l?(l.return=o,V=l):kk(i);for(;null!==a;)V=a,jk(a),a=a.sibling;V=i,Kj=s,U=u}lk(e)}else 0!=(8772&i.subtreeFlags)&&null!==a?(a.return=i,V=a):lk(e)}}function lk(e){for(;null!==V;){var t=V;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:U||Rj(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!U)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Lg(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&ih(t,a,r);break;case 3:var o=t.updateQueue;if(null!==o){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ih(t,o,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&bd(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p(163))}U||512&t.flags&&Sj(t)}catch(e){W(t,t.return,e)}}if(t===e){V=null;break}if(null!==(n=t.sibling)){n.return=t.return,V=n;break}V=t.return}}function hk(e){for(;null!==V;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(null!==n){n.return=t.return,V=n;break}V=t.return}}function kk(e){for(;null!==V;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rj(4,t)}catch(e){W(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){W(t,i,e)}}var a=t.return;try{Sj(t)}catch(e){W(t,a,e)}break;case 5:var o=t.return;try{Sj(t)}catch(e){W(t,o,e)}}}catch(e){W(t,t.return,e)}if(t===e){V=null;break}var s=t.sibling;if(null!==s){s.return=t.return,V=s;break}V=t.return}}var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K=0,R=null,Y=null,Z=0,gj=0,fj=Uf(0),T=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0,Wk;function L(){return 0!=(6&K)?B():-1!==Bk?Bk:Bk=B()}function lh(e){return 0==(1&e.mode)?1:0!=(2&K)&&0!==Z?Z&-Z:null!==Kg.transition?(0===Ck&&(Ck=yc()),Ck):0!==(e=C)?e:e=void 0===(e=window.event)?16:jd(e.type)}function mh(e,t,n,r){if(50<zk)throw zk=0,Ak=null,Error(p(185));Ac(e,n,r),0!=(2&K)&&e===R||(e===R&&(0==(2&K)&&(rk|=n),4===T&&Dk(e,Z)),Ek(e,r),1===n&&0===K&&0==(1&t.mode)&&(Hj=B()+500,fg&&jg()))}function Ek(e,t){var n=e.callbackNode;wc(e,t);var r=uc(e,e===R?Z:0);if(0===r)null!==n&&bc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&bc(n),1===t)0===e.tag?ig(Fk.bind(null,e)):hg(Fk.bind(null,e)),Jf((function(){0==(6&K)&&jg()})),n=null;else{switch(Dc(r)){case 1:n=fc;break;case 4:n=gc;break;case 16:n=hc;break;case 536870912:n=jc;break;default:n=hc}n=Gk(n,Hk.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Hk(e,t){if(Bk=-1,Ck=0,0!=(6&K))throw Error(p(327));var n=e.callbackNode;if(Ik()&&e.callbackNode!==n)return null;var r=uc(e,e===R?Z:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Jk(e,r);else{t=r;var i=K;K|=2;var a=Kk();for(R===e&&Z===t||(vk=null,Hj=B()+500,Lk(e,t));;)try{Mk();break}catch(t){Nk(e,t)}Qg(),nk.current=a,K=i,null!==Y?t=0:(R=null,Z=0,t=T)}if(0!==t){if(2===t&&(0!==(i=xc(e))&&(r=i,t=Ok(e,i))),1===t)throw n=qk,Lk(e,0),Dk(e,r),Ek(e,B()),n;if(6===t)Dk(e,r);else{if(i=e.current.alternate,0==(30&r)&&!Pk(i)&&(2===(t=Jk(e,r))&&(0!==(a=xc(e))&&(r=a,t=Ok(e,a))),1===t))throw n=qk,Lk(e,0),Dk(e,r),Ek(e,B()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(p(345));case 2:Qk(e,uk,vk);break;case 3:if(Dk(e,r),(130023424&r)===r&&10<(t=gk+500-B())){if(0!==uc(e,0))break;if(((i=e.suspendedLanes)&r)!==r){L(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ff(Qk.bind(null,e,uk,vk),t);break}Qk(e,uk,vk);break;case 4:if(Dk(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-oc(r);a=1<<o,(o=t[o])>i&&(i=o),r&=~a}if(r=i,10<(r=(120>(r=B()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mk(r/1960))-r)){e.timeoutHandle=Ff(Qk.bind(null,e,uk,vk),r);break}Qk(e,uk,vk);break;case 5:Qk(e,uk,vk);break;default:throw Error(p(329))}}}return Ek(e,B()),e.callbackNode===n?Hk.bind(null,e):null}function Ok(e,t){var n=tk;return e.current.memoizedState.isDehydrated&&(Lk(e,t).flags|=256),2!==(e=Jk(e,t))&&(t=uk,uk=n,null!==t&&Gj(t)),e}function Gj(e){null===uk?uk=e:uk.push.apply(uk,e)}function Pk(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!He(a(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Dk(e,t){for(t&=~sk,t&=~rk,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-oc(t),r=1<<n;e[n]=-1,t&=~r}}function Fk(e){if(0!=(6&K))throw Error(p(327));Ik();var t=uc(e,0);if(0==(1&t))return Ek(e,B()),null;var n=Jk(e,t);if(0!==e.tag&&2===n){var r=xc(e);0!==r&&(t=r,n=Ok(e,r))}if(1===n)throw n=qk,Lk(e,0),Dk(e,t),Ek(e,B()),n;if(6===n)throw Error(p(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qk(e,uk,vk),Ek(e,B()),null}function Rk(e,t){var n=K;K|=1;try{return e(t)}finally{0===(K=n)&&(Hj=B()+500,fg&&jg())}}function Sk(e){null!==xk&&0===xk.tag&&0==(6&K)&&Ik();var t=K;K|=1;var n=pk.transition,r=C;try{if(pk.transition=null,C=1,e)return e()}finally{C=r,pk.transition=n,0==(6&(K=t))&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Gf(n)),null!==Y)for(n=Y.return;null!==n;){var r=n;switch(wg(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&$f();break;case 3:Jh(),E(Wf),E(H),Oh();break;case 5:Lh(r);break;case 4:Jh();break;case 13:case 19:E(M);break;case 10:Rg(r.type._context);break;case 22:case 23:Ij()}n=n.return}if(R=e,Y=e=wh(e.current,null),Z=gj=t,T=0,qk=null,sk=rk=hh=0,uk=tk=null,null!==Wg){for(t=0;t<Wg.length;t++)if(null!==(r=(n=Wg[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Wg=null}return e}function Nk(e,t){for(;;){var n=Y;try{if(Qg(),Ph.current=ai,Sh){for(var r=N.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Sh=!1}if(Rh=0,P=O=N=null,Th=!1,Uh=0,ok.current=null,null===n||null===n.return){T=1,qk=t,Y=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Z,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Vi(o);if(null!==h){h.flags&=-257,Wi(h,o,s,a,t),1&h.mode&&Ti(a,u,t),l=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}if(0==(1&t)){Ti(a,u,t),uj();break e}l=Error(p(426))}else if(I&&1&s.mode){var v=Vi(o);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),Wi(v,o,s,a,t),Jg(Ki(l,s));break e}}a=l=Ki(l,s),4!==T&&(T=2),null===tk?tk=[a]:tk.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,fh(a,Oi(a,l,t));break e;case 1:s=l;var b=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Si||!Si.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,fh(a,Ri(a,s,t));break e}}a=a.return}while(null!==a)}Tk(n)}catch(e){t=e,Y===n&&null!==n&&(Y=n=n.return);continue}break}}function Kk(){var e=nk.current;return nk.current=ai,null===e?ai:e}function uj(){0!==T&&3!==T&&2!==T||(T=4),null===R||0==(268435455&hh)&&0==(268435455&rk)||Dk(R,Z)}function Jk(e,t){var n=K;K|=2;var r=Kk();for(R===e&&Z===t||(vk=null,Lk(e,t));;)try{Uk();break}catch(t){Nk(e,t)}if(Qg(),K=n,nk.current=r,null!==Y)throw Error(p(261));return R=null,Z=0,T}function Uk(){for(;null!==Y;)Vk(Y)}function Mk(){for(;null!==Y&&!cc();)Vk(Y)}function Vk(e){var t=Wk(e.alternate,e,gj);e.memoizedProps=e.pendingProps,null===t?Tk(e):Y=t,ok.current=null}function Tk(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Fj(n,t,gj)))return void(Y=n)}else{if(null!==(n=Jj(n,t)))return n.flags&=32767,void(Y=n);if(null===e)return T=6,void(Y=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Y=t);Y=t=e}while(null!==t);0===T&&(T=5)}function Qk(e,t,n){var r=C,i=pk.transition;try{pk.transition=null,C=1,Xk(e,t,n,r)}finally{pk.transition=i,C=r}return null}function Xk(e,t,n,r){do{Ik()}while(null!==xk);if(0!=(6&K))throw Error(p(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(p(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(Bc(e,a),e===R&&(Y=R=null,Z=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||wk||(wk=!0,Gk(hc,(function(){return Ik(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=pk.transition,pk.transition=null;var o=C;C=1;var s=K;K|=4,ok.current=null,Pj(e,n),ek(n,e),Oe(Df),dd=!!Cf,Df=Cf=null,e.current=n,ik(n),dc(),K=s,C=o,pk.transition=a}else e.current=n;if(wk&&(wk=!1,xk=e,yk=i),0===(a=e.pendingLanes)&&(Si=null),mc(n.stateNode),Ek(e,B()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Pi)throw Pi=!1,e=Qi,Qi=null,e;return 0!=(1&yk)&&0!==e.tag&&Ik(),0!=(1&(a=e.pendingLanes))?e===Ak?zk++:(zk=0,Ak=e):zk=0,jg(),null}function Ik(){if(null!==xk){var e=Dc(yk),t=pk.transition,n=C;try{if(pk.transition=null,C=16>e?16:e,null===xk)var r=!1;else{if(e=xk,xk=null,yk=0,0!=(6&K))throw Error(p(331));var i=K;for(K|=4,V=e.current;null!==V;){var a=V,o=a.child;if(0!=(16&V.flags)){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(V=u;null!==V;){var c=V;switch(c.tag){case 0:case 11:case 15:Qj(8,c,a)}var d=c.child;if(null!==d)d.return=c,V=d;else for(;null!==V;){var f=(c=V).sibling,h=c.return;if(Tj(c),c===u){V=null;break}if(null!==f){f.return=h,V=f;break}V=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}V=a}}if(0!=(2064&a.subtreeFlags)&&null!==o)o.return=a,V=o;else e:for(;null!==V;){if(0!=(2048&(a=V).flags))switch(a.tag){case 0:case 11:case 15:Qj(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,V=b;break e}V=a.return}}var y=e.current;for(V=y;null!==V;){var k=(o=V).child;if(0!=(2064&o.subtreeFlags)&&null!==k)k.return=o,V=k;else e:for(o=y;null!==V;){if(0!=(2048&(s=V).flags))try{switch(s.tag){case 0:case 11:case 15:Rj(9,s)}}catch(e){W(s,s.return,e)}if(s===o){V=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,V=w;break e}V=s.return}}if(K=i,jg(),lc&&"function"==typeof lc.onPostCommitFiberRoot)try{lc.onPostCommitFiberRoot(kc,e)}catch(e){}r=!0}return r}finally{C=n,pk.transition=t}}return!1}function Yk(e,t,n){e=dh(e,t=Oi(e,t=Ki(n,t),1),1),t=L(),null!==e&&(Ac(e,1,t),Ek(e,t))}function W(e,t,n){if(3===e.tag)Yk(e,e,n);else for(;null!==t;){if(3===t.tag){Yk(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Si||!Si.has(r))){t=dh(t,e=Ri(t,e=Ki(n,e),1),1),e=L(),null!==t&&(Ac(t,1,e),Ek(t,e));break}}t=t.return}}function Ui(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=L(),e.pingedLanes|=e.suspendedLanes&n,R===e&&(Z&n)===n&&(4===T||3===T&&(130023424&Z)===Z&&500>B()-gk?Lk(e,0):sk|=n),Ek(e,t)}function Zk(e,t){0===t&&(0==(1&e.mode)?t=1:(t=sc,0==(130023424&(sc<<=1))&&(sc=4194304)));var n=L();null!==(e=Zg(e,t))&&(Ac(e,t,n),Ek(e,n))}function vj(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Zk(e,n)}function ck(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(p(314))}null!==r&&r.delete(t),Zk(e,n)}function Gk(e,t){return ac(e,t)}function al(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,t,n,r){return new al(e,t,n,r)}function bj(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $k(e){if("function"==typeof e)return bj(e)?1:0;if(null!=e){if((e=e.$$typeof)===Da)return 11;if(e===Ga)return 14}return 2}function wh(e,t){var n=e.alternate;return null===n?((n=Bg(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function yh(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)bj(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case ya:return Ah(n.children,i,a,t);case za:o=8,i|=8;break;case Aa:return(e=Bg(12,n,t,2|i)).elementType=Aa,e.lanes=a,e;case Ea:return(e=Bg(13,n,t,i)).elementType=Ea,e.lanes=a,e;case Fa:return(e=Bg(19,n,t,i)).elementType=Fa,e.lanes=a,e;case Ia:return qj(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ba:o=10;break e;case Ca:o=9;break e;case Da:o=11;break e;case Ga:o=14;break e;case Ha:o=16,r=null;break e}throw Error(p(130,null==e?e:typeof e,""))}return(t=Bg(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Ah(e,t,n,r){return(e=Bg(7,e,r,t)).lanes=n,e}function qj(e,t,n,r){return(e=Bg(22,e,r,t)).elementType=Ia,e.lanes=n,e.stateNode={isHidden:!1},e}function xh(e,t,n){return(e=Bg(6,e,null,t)).lanes=n,e}function zh(e,t,n){return(t=Bg(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cl(e,t,n,r,i,a,o,s,l){return e=new bl(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Bg(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(a),e}function dl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:wa,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function el(e){if(!e)return Vf;e:{if(Vb(e=e._reactInternals)!==e||1!==e.tag)throw Error(p(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Zf(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(p(171))}if(1===e.tag){var n=e.type;if(Zf(n))return bg(e,n,t)}return t}function fl(e,t,n,r,i,a,o,s,l){return(e=cl(n,r,!0,e,i,a,o,s,l)).context=el(null),n=e.current,(a=ch(r=L(),i=lh(n))).callback=null!=t?t:null,dh(n,a,i),e.current.lanes=i,Ac(e,i,r),Ek(e,r),e}function gl(e,t,n,r){var i=t.current,a=L(),o=lh(i);return n=el(n),null===t.context?t.context=n:t.pendingContext=n,(t=ch(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=dh(i,t,o))&&(mh(e,i,o,a),eh(e,i,o)),o}function hl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function il(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function jl(e,t){il(e,t),(e=e.alternate)&&il(e,t)}function kl(){return null}Wk=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Wf.current)Ug=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Ug=!1,zj(e,t,n);Ug=0!=(131072&e.flags)}else Ug=!1,I&&0!=(1048576&t.flags)&&ug(t,ng,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jj(e,t),e=t.pendingProps;var i=Yf(t,H.current);Tg(t,n),i=Xh(null,t,r,e,i,n);var a=bi();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zf(r)?(a=!0,cg(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ah(t),i.updater=nh,t.stateNode=i,i._reactInternals=t,rh(t,r,e,n),t=kj(null,t,r,!0,a,n)):(t.tag=0,I&&a&&vg(t),Yi(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jj(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=$k(r),e=Lg(r,e),i){case 0:t=dj(null,t,r,e,n);break e;case 1:t=ij(null,t,r,e,n);break e;case 11:t=Zi(null,t,r,e,n);break e;case 14:t=aj(null,t,r,Lg(r.type,e),n);break e}throw Error(p(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,dj(e,t,r,i=t.elementType===r?i:Lg(r,i),n);case 1:return r=t.type,i=t.pendingProps,ij(e,t,r,i=t.elementType===r?i:Lg(r,i),n);case 3:e:{if(lj(t),null===e)throw Error(p(387));r=t.pendingProps,i=(a=t.memoizedState).element,bh(e,t),gh(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=mj(e,t,r,n,i=Ki(Error(p(423)),t));break e}if(r!==i){t=mj(e,t,r,n,i=Ki(Error(p(424)),t));break e}for(yg=Lf(t.stateNode.containerInfo.firstChild),xg=t,I=!0,zg=null,n=Ch(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ig(),r===i){t=$i(e,t,n);break e}Yi(e,t,r,n)}t=t.child}return t;case 5:return Kh(t),null===e&&Eg(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,Ef(r,i)?o=null:null!==a&&Ef(r,a)&&(t.flags|=32),hj(e,t),Yi(e,t,o,n),t.child;case 6:return null===e&&Eg(t),null;case 13:return pj(e,t,n);case 4:return Ih(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Bh(t,null,r,n):Yi(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Zi(e,t,r,i=t.elementType===r?i:Lg(r,i),n);case 7:return Yi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Yi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,G(Mg,r._currentValue),r._currentValue=o,null!==a)if(He(a.value,o)){if(a.children===i.children&&!Wf.current){t=$i(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){o=a.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=ch(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Sg(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===a.tag)o=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(o=a.return))throw Error(p(341));o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),Sg(o,n,t),o=a.sibling}else o=a.child;if(null!==o)o.return=a;else for(o=a;null!==o;){if(o===t){o=null;break}if(null!==(a=o.sibling)){a.return=o.return,o=a;break}o=o.return}a=o}Yi(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Tg(t,n),r=r(i=Vg(i)),t.flags|=1,Yi(e,t,r,n),t.child;case 14:return i=Lg(r=t.type,t.pendingProps),aj(e,t,r,i=Lg(r.type,i),n);case 15:return cj(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lg(r,i),jj(e,t),t.tag=1,Zf(r)?(e=!0,cg(t)):e=!1,Tg(t,n),ph(t,r,i),rh(t,r,i,n),kj(null,t,r,!0,e,n);case 19:return yj(e,t,n);case 22:return ej(e,t,n)}throw Error(p(156,t.tag))};var ll="function"==typeof reportError?reportError:function(e){console.error(e)};function ml(e){this._internalRoot=e}function nl(e){this._internalRoot=e}function ol(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function pl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ql(){}function rl(e,t,n,r,i){if(i){if("function"==typeof r){var a=r;r=function(){var e=hl(o);a.call(e)}}var o=fl(t,r,e,0,null,!1,!1,"",ql);return e._reactRootContainer=o,e[uf]=o.current,sf(8===e.nodeType?e.parentNode:e),Sk(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=hl(l);s.call(e)}}var l=cl(e,0,!1,null,null,!1,!1,"",ql);return e._reactRootContainer=l,e[uf]=l.current,sf(8===e.nodeType?e.parentNode:e),Sk((function(){gl(t,l,n,r)})),l}function sl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"==typeof i){var s=i;i=function(){var e=hl(o);s.call(e)}}gl(t,o,e,i)}else o=rl(n,t,e,i,r);return hl(o)}nl.prototype.render=ml.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(p(409));gl(e,t,null,null)},nl.prototype.unmount=ml.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Sk((function(){gl(null,e,null,null)})),t[uf]=null}},nl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Hc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qc.length&&0!==t&&t<Qc[n].priority;n++);Qc.splice(n,0,e),0===n&&Vc(e)}},Ec=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tc(t.pendingLanes);0!==n&&(Cc(t,1|n),Ek(t,B()),0==(6&K)&&(Hj=B()+500,jg()))}break;case 13:Sk((function(){var t=Zg(e,1);if(null!==t){var n=L();mh(t,e,1,n)}})),jl(e,1)}},Fc=function(e){if(13===e.tag){var t=Zg(e,134217728);if(null!==t)mh(t,e,134217728,L());jl(e,134217728)}},Gc=function(e){if(13===e.tag){var t=lh(e),n=Zg(e,t);if(null!==n)mh(n,e,t,L());jl(e,t)}},Hc=function(){return C},Ic=function(e,t){var n=C;try{return C=e,t()}finally{C=n}},yb=function(e,t,n){switch(t){case"input":if(bb(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Db(r);if(!i)throw Error(p(90));Wa(r),bb(r,i)}}}break;case"textarea":ib(e,n);break;case"select":null!=(t=n.value)&&fb(e,!!n.multiple,t,!1)}},Gb=Rk,Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Zb(e))?null:e.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||kl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch(e){}}var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(t))throw Error(p(200));return dl(e,t,null,n)},createRoot=function(e,t){if(!ol(e))throw Error(p(299));var n=!1,r="",i=ll;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=cl(e,1,!1,null,null,n,!1,r,i),e[uf]=t.current,sf(8===e.nodeType?e.parentNode:e),new ml(t)},findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(p(188));throw e=Object.keys(e).join(","),Error(p(268,e))}return e=null===(e=Zb(t))?null:e.stateNode},flushSync=function(e){return Sk(e)},hydrate=function(e,t,n){if(!pl(t))throw Error(p(200));return sl(null,e,t,!0,n)},hydrateRoot=function(e,t,n){if(!ol(e))throw Error(p(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",o=ll;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(o=n.onRecoverableError)),t=fl(t,null,e,1,null!=n?n:null,i,!1,a,o),e[uf]=t.current,sf(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new nl(t)},render=function(e,t,n){if(!pl(t))throw Error(p(200));return sl(null,e,t,!1,n)},unmountComponentAtNode=function(e){if(!pl(e))throw Error(p(40));return!!e._reactRootContainer&&(Sk((function(){sl(null,null,e,!1,(function(){e._reactRootContainer=null,e[uf]=null}))})),!0)},unstable_batchedUpdates=Rk,unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pl(n))throw Error(p(200));if(null==e||void 0===e._reactInternals)throw Error(p(38));return sl(e,t,n,!1,r)},version="18.2.0-next-9e3b772b8-20220608",reactDom_production_min={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,createPortal:createPortal,createRoot:createRoot,findDOMNode:findDOMNode,flushSync:flushSync,hydrate:hydrate,hydrateRoot:hydrateRoot,render:render,unmountComponentAtNode:unmountComponentAtNode,unstable_batchedUpdates:unstable_batchedUpdates,unstable_renderSubtreeIntoContainer:unstable_renderSubtreeIntoContainer,version:version},reactDom=createCommonjsModule((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=reactDom_production_min}));reactDom.render,reactDom.hydrate;var BuilderBlocks=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hydrated=!1,t.onClickEmptyBlocks=function(){var e;Builder.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.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.componentDidMount=function(){this.hydrated=!0},t.prototype.render=function(){var e=this,t=this.props.blocks,n=this.props.emailMode?"span":"div";return jsx(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.isIframe&&this.hydrated?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.isEditing&&{onMouseEnter:function(){return e.onHoverEmptyBlocks()}}),t&&Array.isArray(t)&&t.map((function(t,n){return t&&"@builder.io/sdk:Element"===t["@type"]?jsx(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),reactDom.render(jsx(BuilderStoreContext.Provider,{value:r},jsx(t,__assign({},n))),i)}},t}(react.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,a=__assign(__assign({},e.data),i&&{blocks:n||JSON.parse(r)});return delete a.blocksString,a}}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.isBrowser&&!builder.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.isServer){var a=JSON.stringify(Object.keys(t.variations||{}).map((function(e){return{id:e,testRatio:t.variations[e].testRatio}})));return react_6(react_8,null,n(i,(function(){return react_6("script",{id:"variants-script-".concat(t.id),dangerouslySetInnerHTML:{__html:variantsScript(a,t.id)}})})))}var o="builder.tests.".concat(t.id),s=builder.getCookie(o);if(!s&&Builder.isBrowser)for(var l=0,u=Math.random(),c=0;c<r.length;c++){var d=r[c];if(u<(l+=d.testRatio)){builder.setCookie(o,d.id),s=d.id;break}}return s||(s=t.id,builder.setCookie(o,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,isTrusted=Builder.isTrustedHostForEvent(event);if(isTrusted){var 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 Subscription,_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.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},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.isEditing||Builder.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.isPreviewing||(n.initialContent=[this.props.content]),n},enumerable:!1,configurable:!0}),Object.defineProperty(BuilderContent.prototype,"data",{get:function(){var e=(this.props.inline||!Builder.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.isEditing||Builder.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.isEditing&&addEventListener("message",this.onWindowMessage)},BuilderContent.prototype.subscribeToContent=function(){var e=this;"_inline"!==this.name&&this.subscriptions.add(this.builder.queueGetContent(this.name,this.options).subscribe((function(t){var n=t&&t[0];e.setState({data:n,loading:!1});var r=(e.builder.editingModel||e.builder.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.autoTrack&&!Builder.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.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.createElement(VariantsProvider,{initialContent:n},(function(i,a){return react.createElement(react.Fragment,null,i.map((function(o,s){var l=s===i.length-1?react.Fragment:"template";return react.createElement(react.Fragment,{key:String((null==o?void 0:o.id)+s)},"template"!==l&&(null==a?void 0:a()),react.createElement(l,__assign({key:String((null==o?void 0:o.id)+s)},"template"===l&&{"data-template-variant-id":null==o?void 0:o.id}),react.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==o?void 0:o.id,"builder-model":e.name}),e.props.children(null==o?void 0:o.data,!e.props.inline&&t,n))))})))}))},BuilderContent}(react.Component),getContentWithInfo=function(e){var t;if(e){var n=builder.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 pad(e,t){for(;e.length<t;)e="0"+e;return e}function fold(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 foldObject(e,t,n){return Object.keys(t).sort().reduce((function(e,r){return foldValue(e,t[r],r,n)}),e)}function foldValue(e,t,n,r){var i=fold(fold(fold(e,n),toString$1(t)),typeof t);if(null===t)return fold(i,"null");if(void 0===t)return fold(i,"undefined");if("object"==typeof t||"function"==typeof t){if(-1!==r.indexOf(t))return fold(i,"[Circular]"+n);r.push(t);var a=foldObject(i,t,r);if(!("valueOf"in t)||"function"!=typeof t.valueOf)return a;try{return fold(a,String(t.valueOf()))}catch(e){return fold(a,"[valueOf exception]"+(e.stack||e.message))}}return fold(i,t.toString())}function toString$1(e){return Object.prototype.toString.call(e)}function sum(e){return pad(foldValue(0,e,"",[]).toString(16),8)}var hashSum=sum,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},a=function(e){return Array.isArray(e)?e.slice():Object.assign({},e)},o=function(e,t,o){if("undefined"==typeof Proxy)return e;void 0===o&&(o={});var s,l,u=Symbol("ProxyTarget"),c=!1,d=!1,p=!1,f=o.equals||Object.is,h=new WeakMap,m=new WeakMap,g=new WeakMap,v=function(e,n,r,o){if(!p)if(c){if(c&&l&&void 0!==r&&void 0!==o&&"length"!==n){var u=l;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]=a(u[e]),u=u[e]})),u[n]=r}d=!0}else t(i(e,n),o,r)},b=function(e,t){var n=h?h.get(e):void 0;n&&n.delete(t)},y=function(e,t){if(p)return e;m.set(e,t);var n=g.get(e);return void 0===n&&(n=new Proxy(e,w),g.set(e,n)),n},k=function(e){return p||!0===o.ignoreSymbols&&"symbol"==typeof e},w={get:function(e,t,a){if(t===u||t===n)return e;if(t===r&&""===m.get(e))return function(e){return p=!0,h=null,m=null,g=null,e}(e);var s=Reflect.get(e,t,a);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===o.isShallow)return s;var l=function(e,t){var n=h?h.get(e):void 0;if(n)return n;n=new Map,h.set(e,n);var r=n.get(t);return r||(r=Reflect.getOwnPropertyDescriptor(e,t),n.set(t,r)),r}(e,t);if(l&&!l.configurable){if(l.set&&!l.get)return;if(!1===l.writable)return s}return y(s,i(m.get(e),t))},set:function(e,t,n,r){n&&void 0!==n[u]&&(n=n[u]);var i=k(t),a=i?null:Reflect.get(e,t,r),o=Reflect.set(e[u]||e,t,n);return i||f(a,n)||v(m.get(e),t,a,n),o},defineProperty:function(e,t,n){var r=Reflect.defineProperty(e,t,n);return k(t)||(b(e,t),v(m.get(e),t,void 0,n.value)),r},deleteProperty:function(e,t){if(!Reflect.has(e,t))return!0;var n=k(t),r=n?null:Reflect.get(e,t),i=Reflect.deleteProperty(e,t);return n||(b(e,t),v(m.get(e),t,r)),i},apply:function(e,t,n){var r=t instanceof Date;if(r&&(t=t[u]),!c){c=!0,r&&(l=t.valueOf()),(Array.isArray(t)||"[object Object]"===toString.call(t))&&(l=a(t[u])),s=(s=m.get(e)).slice(0,Math.max(s.lastIndexOf("."),0));var i=Reflect.apply(e,t,n);return c=!1,(d||r&&!f(l,t.valueOf()))&&(v(s,"",l,t[u]||t),l=null,d=!1),i}return Reflect.apply(e,t,n)}},S=y(e,"");return t=t.bind(S),S};o.target=function(e){return e[n]||e},o.unsubscribe=function(e){return e[r]||e},e.exports=o,t.default=o})),onChange=unwrapExports(onChange_1),nextTick=Builder.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;if(t=[].slice.call(arguments),n=this,null!==e)return;nextTick(r)};function r(){e.apply(n,t),t=null,n=null}}function throttle(e,t,n){var r,i,a;void 0===n&&(n={});var o=null,s=0,l=function(){s=!1===n.leading?0:Date.now(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,i=arguments,c<=0||c>t?(o&&(clearTimeout(o),o=null),s=u,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=setTimeout(l,c)),a}}var BuilderMetaContext=react.createContext({emailMode:!1,ampMode:!1,isServer:!1}),tryEval=function(e,t,n){void 0===t&&(t={});var r=e;if("string"==typeof r&&r.trim()){var i=!(r.includes(";")||r.includes(" return ")),a=function(){};try{Builder.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(i?"return (".concat(e,");"):e,";\n }")))}catch(e){Builder.isBrowser&&console.warn("Could not compile javascript",e)}try{if(Builder.isBrowser||shouldForceBrowserRuntimeInNode())return a(t||{});var o=safeDynamicRequire("isolated-vm"),s=getIsolateContext(),l=makeFn(e,i,["state"]),u=s.evalClosureSync(l,[new o.Reference(t||{})]);try{return JSON.parse(u)}catch(e){return u}}catch(t){n&&n.push(t),Builder.isBrowser?console.warn("Builder custom code error:",t.message,"in",e,t.stack):isDebug()&&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 instancesMap=new Map,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})))||[]),a=omit.apply(void 0,__spreadArray(__spreadArray([t],i,!1),["attributes"],!1)),o=t;return e.noWrap?react.createElement(e.class,__assign({attributes:a},o)):react.createElement(r,__assign({},a),react.createElement(e.class,__assign({},o)))}},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,a=arguments;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(i,a)}),t),n&&!r&&e.apply(i,a)}}var fontsLoaded=new Set,fetch$1;globalThis.fetch&&(fetch$1=globalThis.fetch),null!=fetch$1||(fetch$1=require("node-fetch"));var sizeMap={desktop:"large",tablet:"medium",mobile:"small",xsmall:"xsmall"},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,i=this;(i=e.call(this,t)||this).subscriptions=new Subscription,i.onStateChange=new BehaviorSubject(null),i.asServer=Builder.isServer,i.contentRef=null,i.styleRef=null,i.rootState=Builder.isServer?{}:onChange({},(function(){return i.updateState()})),i.lastJsCode="",i.lastHttpRequests={},i.httpSubscriptionPerKey={},i.firstLoad=!0,i.ref=null,i.messageListener=function(e){var t;if(Builder.isTrustedHostForEvent(e)){var n=e.data;switch(n.type){case"builder.configureSdk":var r=n.data;if(!r.contentId||r.contentId!==(null===(t=i.useContent)||void 0===t?void 0:t.id))return;i.sizes=getSizesForBreakpoints(r.breakpoints||{}),i.setState({state:Object.assign(i.rootState,{deviceSize:i.deviceSizeState,device:i.device}),updates:(i.state&&i.state.updates||0)+1,breakpoints:r.breakpoints});break;case"builder.updateSpacer":var a=n.data;i.rootState._spacer,i.updateState((function(e){e._spacer=a}));break;case"builder.resetState":var o=n.data,s=o.state;if(o.model===i.name){for(var l in i.rootState)"function"!=typeof i.rootState[l]&&delete i.rootState[l];Object.assign(i.rootState,s),i.setState(__assign(__assign({},i.state),{state:i.rootState,updates:(i.state&&i.state.updates||0)+1}))}break;case"builder.resetSymbolState":var u=n.data.state,c=(s=u.state,u.model,u.id);if(i.props.builderBlock&&i.props.builderBlock===c){for(var l in i.rootState)delete i.rootState[l];Object.assign(i.rootState,s),i.setState(__assign(__assign({},i.state),{state:i.rootState,updates:(i.state&&i.state.updates||0)+1}))}}}},i.resizeFn=function(){var e=i.deviceSizeState;e!==i.state.state.deviceSize&&i.setState(__assign(__assign({},i.state),{updates:(i.state&&i.state.updates||0)+1,state:Object.assign(i.rootState,__assign(__assign({},i.state.state),{deviceSize:e}))}))},i.resizeListener=Builder.isEditing?throttle(i.resizeFn,200):debounce(i.resizeFn,400),i.mounted=!1,i.updateState=function(e){var t=i.rootState;e&&e(t),i.mounted?i.setState({update:i.updateState,state:t,updates:(i.state&&i.state.updates||0)+1}):i.state=__assign(__assign({},i.state),{update:i.updateState,state:t,updates:(i.state&&i.state.updates||0)+1}),i.notifyStateChange()},i.onContentLoaded=function(e,t){if("page"===i.name&&Builder.isBrowser&&e){var n=e.title,r=e.pageTitle,a=e.description,o=e.pageDescription;if((n||r)&&(document.title=n||r),a||o){var s=document.querySelector('meta[name="description"]');s||((s=document.createElement("meta")).setAttribute("name","description"),document.head.appendChild(s)),s.setAttribute("content",a||o)}}if(Builder.isEditing&&i.notifyStateChange(),i.props.contentLoaded&&i.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 l=__assign(__assign({},i.state),{updates:(i.state&&i.state.updates||0)+1,state:Object.assign(i.rootState,__assign(__assign(__assign(__assign(__assign({},i.state.state),{location:i.locationState,device:i.device}),e.state),i.externalState),{deviceSize:i.deviceSizeState}))});i.mounted?i.setState(l):i.state=l}if(e&&e.jsCode&&!i.options.codegen){var u=!1;if(Builder.isEditing&&(i.lastJsCode===e.jsCode?u=!0:i.lastJsCode=e.jsCode),!u){var c=i.state.state;try{new Function("data","ref","state","update","element","Builder","builder","context",e.jsCode)(e,i,c,i.state.update,i.ref,Builder,builder,i.state.context)}catch(t){var d=toError(t);Builder.isBrowser?console.warn("Builder custom code error:",d.message,"in",e.jsCode,d.stack):isDebug()&&console.debug("Builder custom code error:",d.message,"in",e.jsCode,d.stack)}}}if(e&&e.httpRequests&&!i.props.noAsync&&!(u=!1)){var p=function(t){var n=e.httpRequests[t];if(n&&(!i.data[t]||Builder.isEditing)){var r="object"==typeof n&&"@builder.io/core:Request"===n["@type"];if(Builder.isBrowser){var a=r?i.evalExpression(n.request.url):i.evalExpression(n);if(Builder.isEditing&&i.lastHttpRequests[t]===a)return"continue";i.lastHttpRequests[t]=a,r?i.handleRequest(t,{url:a,method:n.request.method,body:n.request.body,headers:n.request.headers}):i.handleRequest(t,{url:a,method:"GET"});var o=i.httpSubscriptionPerKey[t];o&&o.unsubscribe();var s=i.httpSubscriptionPerKey[t]=i.onStateChange.subscribe((function(){var e=r?i.evalExpression(n.request.url):i.evalExpression(n);e!==a&&(r?i.handleRequest(t,{url:e,method:n.request.method,body:n.request.body,headers:n.request.headers}):i.handleRequest(t,{url:e,method:"GET"}),i.lastHttpRequests[t]=e)}));i.subscriptions.add(s)}else r?i.handleRequest(t,{url:i.evalExpression(n.request.url),method:n.request.method,body:n.request.body,headers:n.request.headers}):i.handleRequest(t,{url:i.evalExpression(n),method:"GET"})}};for(var f in e.httpRequests)p(f)}};var a=i.inlinedContent;a&&a.content&&(a=a.content),i.sizes=getSizesForBreakpoints((null===(n=null==a?void 0:a.meta)||void 0===n?void 0:n.breakpoints)||{});var o=null===(r=i.inlinedContent)||void 0===r?void 0:r.data;o&&Array.isArray(o.inputs)&&o.inputs.length>0&&(o.state||(o.state={}),o.inputs.forEach((function(e){e&&e.name&&void 0!==e.defaultValue&&void 0===o.state[e.name]&&(o.state[e.name]=e.defaultValue)}))),i.state={context:__assign(__assign({},t.context),{apiKey:i.props.apiKey||builder.apiKey}),state:Object.assign(i.rootState,__assign(__assign(__assign(__assign({},i.inlinedContent&&i.inlinedContent.data&&i.inlinedContent.data.state),{isBrowser:Builder.isBrowser,isServer:!Builder.isBrowser,_hydrate:t.hydrate,location:i.locationState,deviceSize:i.deviceSizeState,device:i.device}),i.getHtmlData()),t.data)),updates:0,key:0,update:i.updateState};var s=i.props.apiKey;if(s&&s!==i.builder.apiKey&&!instancesMap.has(s)){var l=new Builder(s,void 0,void 0,!0);instancesMap.set(s,l)}if(i.inlinedContent){var u=i.inlinedContent.content||i.inlinedContent;i.onContentLoaded(null==u?void 0:u.data,getContentWithInfo(u))}return i.registerCustomComponents(),i}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.apiKey&&instancesMap.get(this.props.apiKey)||this.props.builder||builder},enumerable:!1,configurable:!0}),t.prototype.getHtmlData=function(){var e=this.inlinedContent&&this.inlinedContent.id||this.props.entry,t=e&&Builder.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.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 a=null;if("string"==typeof e?a=document.querySelector(e):e instanceof Element&&(a=e),a){var o=a.classList.contains("builder-hydrated");if(!o||i){a.classList.add("builder-hydrated");var s=r&&a.innerHTML.includes("builder-block");if(!a.classList.contains("builder-component")){var l=a.querySelector(".builder-api-styles")||(a.previousElementSibling&&a.previousElementSibling.matches(".builder-api-styles")?a.previousElementSibling:null),u="";if(l)l.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.isEditing||(u+=e),e})),Builder.nextTick((function(){l.innerHTML=u}));var c=a.querySelector(".builder-component");c?a=c:s=!1}location.search.includes("builder.debug=true")&&console.debug("hydrate",s,a);var d=a;if(!o){var p=document.createElement("div");a.insertAdjacentElement("beforebegin",p),p.appendChild(a),d=p}if((Builder.isEditing||Builder.isBrowser&&location.search.includes("builder.preview="))&&(s=!1),s&&a){var f=reactDom.render(react.createElement(t,__assign({},n)),d,d.builderRootRef);return d.builderRootRef=f,f}var h=reactDom.render(react.createElement(t,__assign({},n)),d,d.builderRootRef);return d.builderRootRef=h,h}console.debug("Tried to hydrate multiple times")}}},t.prototype.registerCustomComponents=function(){if(this.props.customComponents)for(var e=0,t=this.props.customComponents;e<t.length;e++){var n=t[e];if(n){var r=n.component,i=__rest(n,["component"]);Builder.registerComponent(r,i)}}},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.isIframe&&(null===(e=window.parent)||void 0===e||e.postMessage({type:"builder.sdkInjected",data:{modelName:this.name,apiKey:this.props.apiKey||builder.apiKey}},"*")),Builder.isBrowser&&(window.addEventListener("resize",this.resizeListener),Builder.isEditing&&window.addEventListener("message",this.messageListener),(Builder.isEditing||Builder.isPreviewing)&&Builder.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.isServer||Builder.isBrowser&&Builder.isPreviewing&&!this.firstLoad)&&(builder.previewingModel===this.name||"BUILDER_STUDIO"===builder.previewingModel)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChange=function(){if(!Builder.isServer&&this&&this.state){var e=this.state.state;this.props.onStateChange&&this.props.onStateChange(e),Builder.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.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,a="";if(i&&n&&r&&(a+='\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 o in e.files){if(String(Number(o))===o){var s=e.files[o];s&&s!==i&&(a+='\n@font-face {\n font-family: "'.concat(n,"\";\n src: url('").concat(s,"') format('woff2');\n font-display: fallback;\n font-weight: ").concat(o,";\n}\n ").trim())}}return a},t.prototype.componentWillUnmount=function(){this.unsubscribe(),Builder.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 a=this.getCssFromFont(r,e);if(fontsLoaded.add(i),!a)continue;var o=document.createElement("style");o.className="builder-custom-font",o.setAttribute("data-builder-custom-font",i),o.innerHTML=a,document.head.appendChild(o)}}},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)})),this.props.customComponents&&this.props.customComponents!==e.customComponents&&this.registerCustomComponents(),Builder.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.isBrowser&&this.externalState&&size$1(this.externalState)&&hashSum(this.externalState),i=Builder.isEditing?this.name:this.props.entry;i&&!Builder.isEditing&&r&&r.length<300&&(i+=":"+r);var a=this.props.dataOnly?react.Fragment:"div",o=null===(e=this.useContent)||void 0===e?void 0:e.id;return react.createElement(a,{onClick:function(e){!Builder.isEditing||t.props.isChild||t.props.stopClickPropagationWhenEditing||e.stopPropagation()},className:"builder-component ".concat(o?"builder-component-".concat(o):""),"data-name":this.name,"data-source":"Rendered by Builder.io",key:this.state.key,ref:function(e){return t.ref=e}},react.createElement(BuilderMetaContext.Consumer,null,(function(e){return react.createElement(BuilderMetaContext.Provider,{value:"boolean"==typeof t.props.ampMode?__assign(__assign({},e),{ampMode:t.props.ampMode}):e},react.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.createElement(BuilderContent,{isStatic:t.props.isStatic||Builder.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.isBrowser&&Builder.nextTick((function(){t.checkStyles(e)}));var a=t.options.codegen;if(a&&!t.Component&&(null==e?void 0:e.blocksJs)){var o=Array.from(new Set(Builder.components.map((function(e){return e.name})))),s=Builder.components.slice().reverse(),l=o.map((function(e){return s.find((function(t){return t.class&&t.name===e}))})),u=o.map((function(e){return(e||"").replace(/[^\w]+/gi,"")})),c=l.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([jsx,css,Builder,builder,react,function(e){var t=react.useState(0)[1];return react.useState((function(){return onChange(e,(function(){t((function(e){return e+1}))}))}))[0]}],c,!1))}var d=(null==e?void 0:e.blocks)||[],p=d.find((function(e){var t;return null===(t=e.id)||void 0===t?void 0:t.startsWith("builder-pixel")}));return e&&!p&&d.length>0&&d.push(getBuilderPixel(builder.apiKey)),e?react.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}:{}),!a&&t.getCss(e)&&react.createElement("style",{ref:function(e){return t.styleRef=e},className:"builder-custom-styles",dangerouslySetInnerHTML:{__html:t.getCss(e)}}),react.createElement(BuilderStoreContext.Provider,{value:__assign(__assign({},t.state),{rootState:t.rootState,state:t.data,content:r,renderLink:t.props.renderLink})},a&&t.Component?react.createElement(t.Component,{data:t.data,context:t.state.context}):react.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:d}))):n?react.createElement("div",{"data-builder-component":t.name,className:"builder-loading"},t.props.children):react.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,a,o,s,l,u,c,d=this;return __generator(this,(function(p){return n=t.url,r=t.method,i=t.body,a=t.headers,o=JSON.stringify({url:n,method:r,body:i,headers:a}),Builder.isIframe&&fetchCache[o]?(this.updateState((function(t){t[e]=fetchCache[o]})),[2,fetchCache[o]]):(s=function(){return __awaiter(d,void 0,void 0,(function(){var t,s,l,u;return __generator(this,(function(c){switch(c.label){case 0:t=Date.now(),Builder.isBrowser||console.time("Fetch "+o),c.label=1;case 1:return c.trys.push([1,4,5,6]),[4,fetch$1(n,{method:r,headers:a,body:i})];case 2:return[4,c.sent().json()];case 3:return s=c.sent(),[3,6];case 4:return l=c.sent(),u=toError(l),this._errors&&this._errors.push(u),this._logs&&this._logs.push("Fetch to ".concat(o," errored in ").concat(Date.now()-t,"ms")),[2];case 5:return Builder.isBrowser||(console.timeEnd("Fetch "+o),this._logs&&this._logs.push("Fetched ".concat(o," in ").concat(Date.now()-t,"ms"))),[7];case 6:return s&&(Builder.isIframe&&(fetchCache[o]=s),this.updateState((function(t){t[e]=s}))),[2,s]}}))}))},(l=this._asyncRequests&&this._asyncRequests.find((function(e){return isRequestInfo(e)&&e.url===n})))?((u=l.promise).then((function(t){t&&d.updateState((function(n){n[e]=t}))})),[2,u]):(c=s(),Builder.nextTick((function(){d._asyncRequests&&d._asyncRequests.push(c)})),[2,c]))}))}))},t.prototype.unsubscribe=function(){this.subscriptions&&(this.subscriptions.unsubscribe(),this.subscriptions=new Subscription)},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.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.Component);function BuilderBlock(e){return e.type="react",Builder.Component(e)}function updateMetadata(e,t){var n=Builder.components.find((function(t){return"string"==typeof e?t.name===e:t.class===t}))||null,r=t(n);n&&r?Builder.registerComponent(r.class||n.class,r):n&&!r||!n&&r&&Builder.registerComponent(r.class,r)}function withBuilder(e,t){return BuilderBlock(t)(e),e}var isBuilderElement=function(e){return Boolean("object"==typeof e&&e&&"@builder.io/sdk:Element"===(null==e?void 0:e["@type"]))},withChildren=function(e){var t=react.forwardRef((function(t,n){var r,i,a=__assign({},t),o=t.children||t.builderBlock&&t.builderBlock.children&&t.builderBlock.children.map((function(e){return react.createElement(BuilderBlock$1,{key:e.id,block:e})})),s=null===(i=null===(r=t.builderBlock)||void 0===r?void 0:r.component)||void 0===i?void 0:i.options;return s&&Object.keys(s).forEach((function(e){var t=s[e];Array.isArray(t)&&t.every(isBuilderElement)?a[e]=t.map((function(e){return react.createElement(BuilderBlock$1,{key:e.id,block:e})})):isBuilderElement(t)&&(a[e]=react.createElement(BuilderBlock$1,{block:t}))})),react.createElement(e,__assign({},a,{ref:n}),o)}));return t.builderOptions={canHaveChildren:!0},t},noWrap=function(e){var t=react.forwardRef((function(t,n){var r=__assign(__assign({},t),t.attributes);return react.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.componentDidMount=function(){this.textRef&&!/{{([^}]+)}}/.test(this.props.text)&&(this.textRef.innerHTML=this.props.text)},t.prototype.evalExpression=function(e,t){return this.allowTextEdit?String(e):String(e).replace(/{{([^}]+)}}/g,(function(e,n){return tryEval(n,t)}))},Object.defineProperty(t.prototype,"allowTextEdit",{get:function(){return Builder.isBrowser&&Builder.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={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 jsx(BuilderStoreContext.Consumer,null,(function(n){var r;return(null===(r=n.content.meta)||void 0===r?void 0:r.rtlMode)&&(t.direction="rtl"),jsx(react.Fragment,null,jsx("span",__assign({ref:function(t){e.textRef=t},css:t,className:"builder-text"},{dangerouslySetInnerHTML:{__html:e.evalExpression(e.props.text||e.props.content||"",n.state)}})))}))},t}(react.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=react_3(BuilderStoreContext),r=!n.context.symbolId;return jsx("div",__assign({css:{pointerEvents:"auto"}},r&&{"builder-slot":t}),jsx(BuilderBlocks,{child:!0,parentElementId:n.context.symbolId,dataPath:"symbol.data.".concat(t),blocks:n.state[t]||[]}))}Builder.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.createElement(BuilderBlock$1,{block:e,key:e.id,index:t})}))},t}(react.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,r=this.getWidth(e),i=n*(t.length-1)*(r/100);return"calc(".concat(r,"% - ").concat(i,"px)")},t.prototype.render=function(){var e,t,n,r,i=this,a=this.columns,o=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)||{},l=getSizesForBreakpoints(s);return jsx(react.Fragment,null,jsx("div",{className:"builder-columns",css:__assign({display:"flex",height:"100%"},"never"!==this.props.stackColumnsAt&&(e={},e["@media (max-width: ".concat("tablet"!==this.props.stackColumnsAt?l.small.max:l.medium.max,"px)")]={flexDirection:this.props.reverseColumnsWhenStacked?"column-reverse":"column",alignItems:"stretch"},e))},a.map((function(e,t){var n,r,a=e.link?Link:"div";return jsx(react.Fragment,{key:t},jsx(a,__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:o,n),"never"!==i.props.stackColumnsAt&&(r={},r["@media (max-width: ".concat("tablet"!==i.props.stackColumnsAt?l.small.max:l.medium.max,"px)")]={width:"100%",marginLeft:0},r))}),jsx(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.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){function t(){n.forEach((function(e){e.delete("width")}))}var n=e.get("columns");Array.isArray(n)&&(!n.find((function(e){return e.get("width")}))||(n.find((function(e){return!e.get("width")}))||100!==n.reduce((function(e,t){return e+t.get("width")}),0))&&t())}},{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.shouldComponentUpdate=function(e){return e.content!==this.props.content},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.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.createElement("div",{ref:function(t){return e.elementRef=t},className:"builder-embed",dangerouslySetInnerHTML:{__html:this.content}})},t}(react.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"},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]}),globalReplaceNodes={}||null,isShopify$1=Builder.isBrowser&&"Shopify"in window;if(Builder.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.isBrowser){var i=null===(n=r.props.builderBlock)||void 0===n?void 0:n.id;if(r.replaceNodes=Boolean(Builder.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 a=globalReplaceNodes[i].shift()||null;r.originalRef=a,0===globalReplaceNodes[i].length&&delete globalReplaceNodes[i]}else if(r.replaceNodes){var o=document.querySelectorAll(".".concat(r.props.builderBlock.id," .builder-custom-code"));if(1===o.length){var s=o[0];r.originalRef=s,r.originalRef.remove()}}}return r}return __extends(t,e),t.prototype.shouldComponentUpdate=function(e){return e.code!==this.props.code},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.nextTick((function(){return e.findAndRunScripts()}))):this.findAndRunScripts()),Builder.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.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.createElement("div",__assign({ref:function(t){return e.elementRef=t},className:"builder-custom-code"},!this.replaceNodes&&!this.noReactRender&&{dangerouslySetInnerHTML:{__html:this.code}}))},t}(react.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})]}),IMAGE_FILE_TYPES=["jpeg","jpg","png","svg","webp","gif","jfif","pjpeg","pjp","apng","avif","tif","tiff","heif","bmp","eps","raw","cr2","nef","orf","sr2","psd","heic","dib","ai"],VIDEO_FILE_TYPES=["mp4","webm","mkv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mov","qt","mts","m2ts","ts","wmv","yuv","rm","rmvb","viv","asf","amv","m4p","mpeg","mpe","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","f4v","f4p","f4a","f4b"];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],a=t.match("x")?t:"".concat(t,"x");return removeProtocol("".concat(r[0],"_").concat(a).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,a,o,s,l,u,c;void 0===n&&(n={});var d="";if(e){var p=e.split(","),f=p.length;d=p.map((function(e,t){return f===t+1?e.replace(/\([\s\S]*?\)/g,"").trim():e})).join(", ")}else if(t&&t.responsiveStyles){var h=[],m=!1,g=/^\d+/,v=getSizesForBreakpoints(n);if(null===(a=null===(i=null===(r=t.responsiveStyles)||void 0===r?void 0:r.small)||void 0===i?void 0:i.width)||void 0===a?void 0:a.match(g)){m=!0;var b="(max-width: ".concat(v.small.max,"px)"),y="".concat(b," ").concat(t.responsiveStyles.small.width.replace("%","vw"));h.push(y)}if(null===(l=null===(s=null===(o=t.responsiveStyles)||void 0===o?void 0:o.medium)||void 0===s?void 0:s.width)||void 0===l?void 0:l.match(g)){m=!0;b="(max-width: ".concat(v.medium.max,"px)"),y="".concat(b," ").concat(t.responsiveStyles.medium.width.replace("%","vw"));h.push(y)}if(null===(c=null===(u=t.responsiveStyles)||void 0===u?void 0:u.large)||void 0===c?void 0:c.width){var k=t.responsiveStyles.large.width.replace("%","vw");h.push(k)}else m&&h.push("100vw");h.length&&(d=h.join(", "))}return d},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!this.props.highPriority&&((!Builder.isBrowser||!location.search.includes("builder.lazyLoadImages=false"))&&(!(!Builder.isBrowser||!location.href.includes("builder.lazyLoadImages=true"))||this.props.lazy))},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){Builder.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.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&&"string"==typeof e&&!this.props.noWebp&&(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,a=r.lazy,o=r.builderBlock,s=r.builderState,l=this.props.builderBlock&&this.props.builderBlock.children,u=this.props.srcset,c=getSizes(this.props.sizes,o,(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)||{}),d=this.image;u&&d&&d.includes("builder.io/api/v1/image")?u.includes(d.split("?")[0])||(console.debug("Removed given srcset"),u=this.getSrcSet()):d&&!u&&(u=this.getSrcSet());var p=(null==o?void 0:o.id.startsWith("builder-pixel-"))||this.props.highPriority,f=this.props.fitContent;return jsx(BuilderMetaContext.Consumer,null,(function(e){var t,r=e.ampMode,o=r?"amp-img":"img",s=(!a||n.state.load||r)&&jsx(o,__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,title:n.props.title,key:Builder.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:p?"eager":"lazy",fetchPriority:p?"high":"auto",className:"builder-image"+(n.props.className?" "+n.props.className:""),src:n.image},!r&&{onLoad:function(){return n.setState({imageLoaded:!0})}},{srcSet:u,sizes:!r&&c?c:void 0}));return jsx(react.Fragment,null,r?s:jsx("picture",{ref:function(e){return n.pictureRef=e}},u&&u.match(/builder\.io/)&&!n.props.noWebp&&jsx("source",{srcSet:u.replace(/\?/g,"?format=webp&"),type:"image/webp"}),s),!i||r||f&&l&&l.length?null:jsx("div",{className:"builder-image-sizer",css:{width:"100%",paddingTop:100*i+"%",pointerEvents:"none",fontSize:0}}," "),l&&l.length?f?l.map((function(e,t){return jsx(BuilderBlock$1,{key:e.id,block:e})})):jsx("div",{css:{display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:0,left:0,width:"100%",height:"100%"}},l.map((function(e,t){return jsx(BuilderBlock$1,{key:e.id,block:e})}))):null)}))},t}(react.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:IMAGE_FILE_TYPES,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"),a=!1;i.onload=function(){a=!0,e(i)},i.addEventListener("error",(function(e){console.warn("Image load failed",e.error),r(e.error)})),i.src=t,setTimeout((function(){a||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:"title",type:"string",helperText:"Text to display when hovering over the asset"},{name:"highPriority",type:"boolean",advanced:!0,helperText:"Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."},{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.lazyVideoObserver=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;if(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.isBrowser){var t=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(e.setState((function(e){return __assign(__assign({},e),{load:!0})})),e.lazyVideoObserver&&(e.lazyVideoObserver.disconnect(),e.lazyVideoObserver=null))}))}));this.containerRef&&(t.observe(this.containerRef),this.lazyVideoObserver=t)}},t.prototype.componentWillUnmount=function(){this.lazyVideoObserver&&(this.lazyVideoObserver.disconnect(),this.lazyVideoObserver=null)},t.prototype.render=function(){var e=this,t=this.props,n=t.aspectRatio,r=t.children;return jsx("div",{ref:function(t){return e.containerRef=t},css:{position:"relative"}},jsx("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,preload:this.props.preload||"metadata",className:"builder-video",css:__assign({width:"100%",height:"100%",objectFit:this.props.fit,objectPosition:this.props.position,borderRadius:1},n?{position:"absolute"}:null)},(!this.lazyLoad||this.state.load)&&jsx("source",{type:"video/mp4",src:this.props.video})),!n||this.props.fitContent&&r?null:jsx("div",{css:{width:"100%",paddingTop:100*n+"%",pointerEvents:"none",fontSize:0}}),r&&this.props.fitContent?jsx("div",{css:{display:"flex",flexDirection:"column",alignItems:"stretch"}},r):r?jsx("div",{css:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:0,left:0,width:"100%",height:"100%"}},r):null)},t}(react.Component),Video=Builder.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:VIDEO_FILE_TYPES,bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:IMAGE_FILE_TYPES,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:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{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.isBrowser&&"Shopify"in window,refs={};if(Builder.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.isEditingThisSymbol=!1,t}return __extends(t,e),Object.defineProperty(t.prototype,"placeholder",{get:function(){return jsx("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,r=this;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)),Builder.nextTick((function(){var e=r.props.symbol||{},t=e.model,n=e.entry;r.isEditingThisSymbol=Boolean(Builder.isEditing&&t===builder.editingModel&&n&&location.search.includes("overrides.".concat(n)))}))},Object.defineProperty(t.prototype,"useStatic",{get:function(){var e;return Boolean(Builder.isBrowser&&refs[null===(e=this.props.builderBlock)||void 0===e?void 0:e.id]&&!(Builder.isEditing||Builder.isPreviewing))},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t,n=this;if(this.useStatic)return jsx("div",{ref:function(e){return n.staticRef=e}});var r=this.props.symbol,i=!1;r||(i=!0);var a=this.props.dataOnly?NoWrap:this.props.builderBlock&&this.props.builderBlock.tagName||"div",o=r||{},s=o.model,l=o.entry,u=o.data,c=o.content,d=o.inline,p=o.ownerId,f=(null==r?void 0:r.dynamic)||this.props.dynamic;s&&(l||f)||(null===(e=null==c?void 0:c.data)||void 0===e?void 0:e.blocksJs)||d||(i=!0),this.isEditingThisSymbol&&(i=!1);var h=f?null===(t=this.props.builderBlock)||void 0===t?void 0:t.id:[s,l].join(":"),m=u&&size(u)&&hashSum(u);h&&m&&m.length<300&&(h+=":"+m);var g=this.props.attributes||{};return jsx(BuilderStoreContext.Consumer,{key:(s||"no model")+":"+(l||"no entry"+this.isEditingThisSymbol)},(function(e){var t,o,d,f,m,v,b,y,k,w,S,_="".concat(h,"_").concat((null===(t=null==e?void 0:e.state)||void 0===t?void 0:t.locale)||"Default");return jsx(a,__assign({"data-model":s},g,{className:(g.class||g.className||"")+" builder-symbol"+((null==r?void 0:r.inline)?" builder-inline-symbol":"")+((null==r?void 0:r.dynamic)||n.props.dynamic?" builder-dynamic-symbol":"")}),i?n.placeholder:jsx(BuilderComponent,__assign({},p&&{apiKey:p},(null===(o=e.state)||void 0===o?void 0:o.locale)&&{locale:e.state.locale},{isChild:!0,ref:function(e){return n.ref=e},context:__assign(__assign({},e.context),{symbolId:null===(d=n.props.builderBlock)||void 0===d?void 0:d.id}),model:s,entry:l,data:__assign(__assign(__assign({},u),!!n.props.inheritState&&omit$2(e.state,"children")),null===(k=null===(y=null===(b=null===(v=null===(m=null===(f=n.props.builderBlock)||void 0===f?void 0:f.component)||void 0===m?void 0:m.options)||void 0===v?void 0:v.symbol)||void 0===b?void 0:b.content)||void 0===y?void 0:y.data)||void 0===k?void 0:k.state),renderLink:e.renderLink,inlineContent:null==r?void 0:r.inline},c&&{content:c},{key:_,options:__assign(__assign({},!n.isEditingThisSymbol&&{key:_,noEditorUpdates:!0}),"content"===Builder.singletonInstance.apiEndpoint&&l&&{query:{id:l}}),codegen:!!(null===(w=null==c?void 0:c.data)||void 0===w?void 0:w.blocksJs),hydrate:null===(S=e.state)||void 0===S?void 0:S._hydrate,builderBlock:n.props.builderBlock,dataOnly:n.props.dataOnly}),n.props.children))}))},t}(react.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.createElement(e,__assign({role:"button",href:this.props.link,target:this.props.openLinkInNewTab?"_blank":void 0},this.props.attributes),this.props.text)},t}(react.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 jsx("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?jsx(react.Fragment,null,this.props.children,this.props.builderBlock&&this.props.builderBlock.children&&this.props.builderBlock.children.map((function(e,t){return jsx(BuilderBlock$1,{key:e.id,block:e})}))):null)},t}(react.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.createElement(BuilderStoreContext.Consumer,null,(function(t){return react.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.createElement(BuilderBlock$1,{block:e,key:e.id,index:t,child:!0})})),e.props.children)}))},t}(react.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,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 a=t.parseUrl(r);t.preloadQueue++;var o=builder.getUserAttributes();o.urlPath=a.pathname,o.queryString=a.search;var s=builder.get(t.model,{userAttributes:o,key:t.model+":"+a.pathname+a.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(a){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 jsx(BuilderStoreContext.Consumer,null,(function(n){e.privateState=n;var r=n.state&&n.state.location&&n.state.location.pathname+n.state.location.search;return jsx("div",{className:"builder-router","data-model":t},jsx("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 "),jsx(BuilderComponent,{key:r,data:e.props.data,content:e.routed?void 0:e.props.content,modelName:t,options:{key:Builder.isEditing?void 0:e.model+":"+r}},e.props.children||jsx("div",{css:{display:"flex"}},jsx("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.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.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 jsx("span",{style:{display:"none"},ref:r},jsx(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.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.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.isEditing&&this.props.previewState||this.state.state},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return jsx(BuilderStoreContext.Consumer,null,(function(t){return jsx(BuilderStoreContext.Provider,{value:__assign(__assign({},t),{state:__assign(__assign({},t.state),{formErrorMessage:e.state.formErrorMessage})})},jsx("form",__assign({},e.props.validate?{}:{noValidate:!0},{ref:function(t){return e.ref=t},action:!e.props.sendWithJs&&e.props.action?e.props.action:void 0,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,a=e.props.customHeaders||{},o=void 0,s=new FormData(i),l=Array.from(t.currentTarget.querySelectorAll("input,select,textarea")).filter((function(e){return!!e.name})).filter((function(e){return!!e.name&&("radio"!==e.type||e.checked)})).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.value}}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(l).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)o=s;else if(u===JSON_CONTENT_TYPE){var c={};Array.from(l).forEach((function(e){var t=e.value,n=e.key;set(c,n,t)})),o=JSON.stringify(c)}else{if(u!==ENCODED_CONTENT_TYPE)return void console.error("Unsupported content type: ",u);o=Array.from(l).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"))||(a["content-type"]=u));var d=new CustomEvent("presubmit",{detail:{body:o}});if(e.ref&&(e.ref.dispatchEvent(d),d.defaultPrevented))return;e.setState(__assign(__assign({},e.state),{state:"sending"}));var p="".concat("dev"===builder.env?"http://localhost:5000":"https://builder.io","/api/v1/form-submit?apiKey=").concat(builder.apiKey,"&to=").concat(btoa(e.props.sendSubmissionsToEmail||""),"&name=").concat(encodeURIComponent(e.props.name||""));fetch("email"===e.props.sendSubmissionsTo?p:e.props.action,{body:o,headers:a,method:e.props.method||"post"}).then((function(t){return __awaiter(e,void 0,void 0,(function(){var e,n,r,i,a;return __generator(this,(function(o){switch(o.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=o.sent(),[3,4];case 2:return[4,t.text()];case 3:e=o.sent(),o.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?(a=new CustomEvent("route",{detail:{url:this.props.successUrl}}),this.ref.dispatchEvent(a),a.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 jsx(BuilderBlock$1,{key:e.id,block:e})})),"error"===e.submissionState&&jsx(BuilderBlocks,{dataPath:"errorMessage",blocks:e.props.errorMessage}),"sending"===e.submissionState&&jsx(BuilderBlocks,{dataPath:"sendingMessage",blocks:e.props.sendingMessage}),"error"===e.submissionState&&e.state.responseData&&jsx("pre",{className:"builder-form-error-text",css:{padding:10,color:"red",textAlign:"center"}},JSON.stringify(e.state.responseData,null,2)),"success"===e.submissionState&&jsx(BuilderBlocks,{dataPath:"successMessage",blocks:e.props.successMessage})))}))},t}(react.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:"your@email.com",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:"jane@doe.com"}}},{"@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.createElement("input",__assign({key:Builder.isEditing&&this.props.defaultValue?this.props.defaultValue:"default-key",placeholder:this.props.placeholder,type:this.props.type,name:this.props.name},void 0===this.props.value?{defaultValue:this.props.defaultValue}:{value:this.props.value},{required:this.props.required},this.props.attributes))},t}(react.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.createElement("button",__assign({type:"submit"},this.props.attributes),this.props.text)},t}(react.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.createElement("label",__assign({htmlFor:this.props.for},this.props.attributes),this.props.text&&react.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.createElement(BuilderBlock$1,{key:e.id,block:e})})))},t}(react.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.createElement("select",__assign({value:this.props.value,key:Builder.isEditing&&this.props.defaultValue?this.props.defaultValue:"default-key",defaultValue:this.props.defaultValue,name:this.props.name,required:this.props.required},this.props.attributes),e&&e.map((function(e){return react.createElement("option",{value:e.value},e.name||e.value)})))},t}(react.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.createElement("textarea",__assign({placeholder:this.props.placeholder,name:this.props.name,value:this.props.value,defaultValue:this.props.defaultValue,required:this.props.required},this.props.attributes))},t}(react.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.getSrcSet=function(){var e=this.props.image;if(e&&"string"==typeof e&&e.match(/builder\.io/))return getSrcSet(e)},t.prototype.render=function(){var e=this.props.attributes||{},t=this.getSrcSet();return react.createElement("img",__assign({loading:"lazy"},this.props.attributes,{src:this.props.image||e.src,srcSet:t}))},t}(react.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:IMAGE_FILE_TYPES,required:!0}],noWrap:!0,static:!0}),RawText=function(e){var t=e.attributes||{};return react_6("span",{className:(null==t?void 0:t.class)||(null==t?void 0:t.className),dangerouslySetInnerHTML:{__html:e.text||""}})};Builder.registerComponent(RawText,{name:"Builder:RawText",hideFromInsertMenu:!0,inputs:[{name:"text",bubble:!0,type:"longText",required:!0}]});var filterWithCustomTargetingScript='function filterWithCustomTargeting(e,t,n,r){var i={query:t,startDate:n,endDate:r},o=e.date&&new Date(e.date)||new Date;return!(i.startDate&&new Date(i.startDate)>o)&&(!(i.endDate&&new Date(i.endDate)<o)&&(!i.query||!i.query.length||i.query.every((function(t){return objectMatchesQuery(e,t)}))))}function isString(e){return"string"==typeof e}function isNumber(e){return"number"==typeof e}function objectMatchesQuery(e,t){return function(){var n=t.property,r=t.operator,i=t.value;if(t&&"urlPath"===t.property&&t.value&&"string"==typeof t.value&&"/"!==t.value&&t.value.endsWith("/")&&(i=t.value.slice(0,-1)),!n||!r)return!0;if(Array.isArray(i))return"isNot"===r?i.every((function(t){return objectMatchesQuery(e,{property:n,operator:r,value:t})})):!!i.find((function(t){return objectMatchesQuery(e,{property:n,operator:r,value:t})}));var o=e[n];if(Array.isArray(o))return o.includes(i);switch(r){case"is":return o===i;case"isNot":return o!==i;case"contains":return(isString(o)||Array.isArray(o))&&o.includes(String(i));case"startsWith":return isString(o)&&o.startsWith(String(i));case"endsWith":return isString(o)&&o.endsWith(String(i));case"greaterThan":return isNumber(o)&&isNumber(i)&&o>i;case"lessThan":return isNumber(o)&&isNumber(i)&&o<i;case"greaterThanOrEqualTo":return isNumber(o)&&isNumber(i)&&o>=i;case"lessThanOrEqualTo":return isNumber(o)&&isNumber(i)&&o<=i}return!1}()}';function filterWithCustomTargeting(e,t,n,r){var i={query:t,startDate:n,endDate:r},a=e.date&&new Date(e.date)||new Date;return!(i.startDate&&new Date(i.startDate)>a)&&(!(i.endDate&&new Date(i.endDate)<a)&&(!i.query||!i.query.length||i.query.every((function(t){return objectMatchesQuery(e,t)}))))}function isString(e){return"string"==typeof e}function isNumber(e){return"number"==typeof e}function objectMatchesQuery(e,t){return function(){var n=t.property,r=t.operator,i=t.value;if(t&&"urlPath"===t.property&&t.value&&"string"==typeof t.value&&"/"!==t.value&&t.value.endsWith("/")&&(i=t.value.slice(0,-1)),!n||!r)return!0;if(Array.isArray(i))return"isNot"===r?i.every((function(t){return objectMatchesQuery(e,{property:n,operator:r,value:t})})):!!i.find((function(t){return objectMatchesQuery(e,{property:n,operator:r,value:t})}));var a=e[n];if(Array.isArray(a))return a.includes(i);switch(r){case"is":return a===i;case"isNot":return a!==i;case"contains":return(isString(a)||Array.isArray(a))&&a.includes(String(i));case"startsWith":return isString(a)&&a.startsWith(String(i));case"endsWith":return isString(a)&&a.endsWith(String(i));case"greaterThan":return isNumber(a)&&isNumber(i)&&a>i;case"lessThan":return isNumber(a)&&isNumber(i)&&a<i;case"greaterThanOrEqualTo":return isNumber(a)&&isNumber(i)&&a>=i;case"lessThanOrEqualTo":return isNumber(a)&&isNumber(i)&&a<=i}return!1}()}function PersonalizationContainer(e){var t,n,r,i,a,o,s,l,u,c,d,p,f,h,m,g,v,b,y,k,w,S=Boolean(Builder.isBrowser&&(null===(t=window.__hydrated)||void 0===t?void 0:t[null===(n=e.builderBlock)||void 0===n?void 0:n.id])),_=react_5(null),x=react_10(S),C=x[0],E=x[1],B=react_10(!1),T=B[0],P=B[1],j=react_10(0);j[0];var O=j[1],N=react_3(BuilderStoreContext);if(react_9((function(){var e;E(!0),P(!0);var t=builder.userAttributesChanged.subscribe((function(){O((function(e){return e+1}))})),n=[function(){return t.unsubscribe()}];if(!Builder.isEditing&&!Builder.isPreviewing){var r=I[0];null===(e=_.current)||void 0===e||e.dispatchEvent(new CustomEvent("builder.variantLoaded",{detail:{variant:r||"default",content:N.content},bubbles:!0}));var i=new IntersectionObserver((function(e){e.forEach((function(e){var t;e.isIntersecting&&(null===(t=_.current)||void 0===t||t.dispatchEvent(new CustomEvent("builder.variantDisplayed",{detail:{variant:r||"default",content:N.content},bubbles:!0})))}))}));i.observe(_.current),n.push((function(){return i.disconnect()}))}return function(){n.forEach((function(e){return e()}))}}),[]),Builder.isServer)return react.createElement(react.Fragment,null,react.createElement("div",__assign({},e.attributes,{style:__assign({opacity:1,transition:"opacity 0.2s ease-in-out"},null===(r=e.attributes)||void 0===r?void 0:r.style),className:"builder-personalization-container ".concat(e.attributes.className)}),null===(i=e.variants)||void 0===i?void 0:i.map((function(t,n){var r,i;return react.createElement("template",{key:n,"data-variant-id":(null===(r=e.builderBlock)||void 0===r?void 0:r.id)+n},react.createElement(BuilderBlocks,{blocks:t.blocks,parentElementId:null===(i=e.builderBlock)||void 0===i?void 0:i.id,dataPath:"component.options.variants.".concat(n,".blocks"),child:!0}))})),react.createElement("script",{id:"variants-script-".concat(null===(a=e.builderBlock)||void 0===a?void 0:a.id),dangerouslySetInnerHTML:{__html:getPersonalizationScript(e.variants,(null===(o=e.builderBlock)||void 0===o?void 0:o.id)||"none",null===(s=e.builderState.state)||void 0===s?void 0:s.locale)}}),react.createElement(BuilderBlocks,{blocks:null===(l=e.builderBlock)||void 0===l?void 0:l.children,parentElementId:null===(u=e.builderBlock)||void 0===u?void 0:u.id,dataPath:"this.children",child:!0})),react.createElement("script",{dangerouslySetInnerHTML:{__html:"\n window.__hydrated = window.__hydrated || {};\n window.__hydrated['".concat(null===(c=e.builderBlock)||void 0===c?void 0:c.id,"'] = true;\n ").replace(/\s+/g," ")}}));var I=(e.variants||[]).filter((function(t){var n;return filterWithCustomTargeting(__assign(__assign({},(null===(n=e.builderState.state)||void 0===n?void 0:n.locale)?{locale:e.builderState.state.locale}:{}),builder.getUserAttributes()),t.query,t.startDate,t.endDate)}));return react.createElement(react.Fragment,null,react.createElement("div",__assign({ref:_},e.attributes,{style:__assign({opacity:C?1:0,transition:"opacity 0.2s ease-in-out"},null===(d=e.attributes)||void 0===d?void 0:d.style),className:"builder-personalization-container ".concat(e.attributes.className).concat(C?"":" builder-personalization-container-loading")}),T&&Builder.isEditing&&"number"==typeof e.previewingIndex&&e.previewingIndex<((null===(p=e.variants)||void 0===p?void 0:p.length)||0)?react.createElement(BuilderBlocks,{blocks:null===(h=null===(f=e.variants)||void 0===f?void 0:f[e.previewingIndex])||void 0===h?void 0:h.blocks,parentElementId:null===(m=e.builderBlock)||void 0===m?void 0:m.id,dataPath:"component.options.variants.".concat(e.previewingIndex,".blocks"),child:!0}):T&&Builder.isEditing&&"number"!=typeof e.previewingIndex||!C||!I.length?react.createElement(BuilderBlocks,{blocks:null===(g=e.builderBlock)||void 0===g?void 0:g.children,parentElementId:null===(v=e.builderBlock)||void 0===v?void 0:v.id,dataPath:"this.children",child:!0}):react.createElement(BuilderBlocks,{blocks:null===(b=I[0])||void 0===b?void 0:b.blocks,parentElementId:null===(y=e.builderBlock)||void 0===y?void 0:y.id,dataPath:"component.options.variants.".concat(null===(k=e.variants)||void 0===k?void 0:k.indexOf(I[0]),".blocks"),child:!0})),react.createElement("script",{dangerouslySetInnerHTML:{__html:"\n window.__hydrated = window.__hydrated || {};\n window.__hydrated['".concat(null===(w=e.builderBlock)||void 0===w?void 0:w.id,"'] = true;\n ").replace(/\s+/g," ")}}))}function getPersonalizationScript(e,t,n){return"\n (function() {\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 function removeVariants() {\n variants.forEach(function (template, index) {\n document.querySelector('template[data-variant-id=\"' + \"".concat(t,"\" + index + '\"]').remove();\n });\n document.getElementById('variants-script-").concat(t,"').remove();\n }\n\n var attributes = JSON.parse(getCookie(\"").concat(Builder.attributesCookieName,'") || "{}");\n ').concat(n?'attributes.locale = "'.concat(n,'";'):"","\n var variants = ").concat(JSON.stringify(null==e?void 0:e.map((function(e){return{query:e.query,startDate:e.startDate,endDate:e.endDate}}))),";\n var winningVariantIndex = variants.findIndex(function(variant) {\n return filterWithCustomTargeting(\n attributes,\n variant.query,\n variant.startDate,\n variant.endDate\n );\n });\n var isDebug = location.href.includes('builder.debug=true');\n if (isDebug) {\n console.debug('PersonalizationContainer', {\n attributes: attributes,\n variants: variants,\n winningVariantIndex: winningVariantIndex,\n });\n }\n if (winningVariantIndex !== -1) {\n var winningVariant = document.querySelector('template[data-variant-id=\"' + \"").concat(t,"\" + winningVariantIndex + '\"]');\n if (winningVariant) {\n var parentNode = winningVariant.parentNode;\n var newParent = parentNode.cloneNode(false);\n newParent.appendChild(winningVariant.content.firstChild);\n parentNode.parentNode.replaceChild(newParent, parentNode);\n if (isDebug) {\n console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);\n }\n }\n } else if (variants.length > 0) {\n removeVariants();\n }\n ").concat(filterWithCustomTargetingScript,"\n })();\n ").replace(/\s+/g," ")}function useIsPreviewing(){var e=react_10(!1),t=e[0],n=e[1];return react_9((function(){(Builder.isEditing||Builder.isPreviewing)&&n(!0)}),[]),t}return Builder.registerComponent(PersonalizationContainer,{name:"PersonalizationContainer",noWrap:!0,friendlyName:"Dynamic Container",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",canHaveChildren:!0,inputs:[{name:"variants",defaultValue:[],behavior:"personalizationVariantList",type:"list",subFields:[{name:"name",type:"text",localized:!1},{name:"query",friendlyName:"Targeting rules",type:"BuilderQuery",defaultValue:[],localized:!1},{name:"startDate",type:"date",localized:!1},{name:"endDate",type:"date",localized:!1},{name:"blocks",type:"UiBlocks",hideFromUI:!0,defaultValue:[]}]}]}),Builder.isReact=!0,Builder.sdkInfo={name:"react",version:SDK_VERSION$1},exports.Builder=Builder,exports.BuilderAsyncRequestsContext=BuilderAsyncRequestsContext,exports.BuilderBlock=BuilderBlock,exports.BuilderBlockComponent=BuilderBlock$1,exports.BuilderBlocks=BuilderBlocks,exports.BuilderComponent=BuilderComponent,exports.BuilderContent=BuilderContent,exports.BuilderMetaContext=BuilderMetaContext,exports.BuilderPage=BuilderComponent,exports.BuilderStoreContext=BuilderStoreContext,exports.Button=Button,exports.Columns=Columns,exports.Content=BuilderComponent,exports.CustomCode=CustomCode,exports.Dropzone=Slot,exports.Embed=Embed,exports.Form=Form,exports.FormInput=FormInput,exports.FormSelect=FormSelect,exports.FormSubmitButton=FormSubmitButton,exports.Fragment=Fragment,exports.Image=Image,exports.Img=Img,exports.Label=Label,exports.Mutation=Mutation,exports.PersonalizationContainer=PersonalizationContainer,exports.RawText=RawText,exports.Router=Router,exports.Section=Section,exports.StateProvider=StateProvider,exports.Symbol=Symbol$1,exports.Text=Text,exports.TextArea=TextArea,exports.Video=Video,exports.builder=builder,exports.default=builder,exports.getSrcSet=getSrcSet,exports.noWrap=noWrap,exports.onChange=onChange,exports.stringToFunction=stringToFunction,exports.updateMetadata=updateMetadata,exports.useIsPreviewing=useIsPreviewing,exports.withBuilder=withBuilder,exports.withChildren=withChildren,Object.defineProperty(exports,"__esModule",{value:!0}),exports}({});
|
|
11
11
|
//# sourceMappingURL=builder-react.unpkg.js.map
|