1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2e8a8587-9371-440b-afd7-5bec56ff4cc9",e._sentryDebugIdIdentifier="sentry-dbid-2e8a8587-9371-440b-afd7-5bec56ff4cc9")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9861],{49145:(e,t,n)=>{n.d(t,{Cl:()=>i});var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}},49861:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{M$:()=>Builder,cL:()=>builder,tQ:()=>BehaviorSubject,yU:()=>Subscription});var serverOnlyRequire,tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(49145),hash_sum__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(69903),hash_sum__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(hash_sum__WEBPACK_IMPORTED_MODULE_0__);!function(){"u"<typeof window||"function"==typeof window.CustomEvent||(window.CustomEvent=e);function e(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="u">typeof window&&/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent),isClient="u">typeof window;function nextTick(e){if(!isClient||isSafari||"u"<typeof MutationObserver)return void setTimeout(e);var t=0,n=new MutationObserver(function(){return e()}),i=document.createTextNode("");n.observe(i,{characterData:!0}),i.data=String(t=++t)}var PROPERTY_NAME_DENY_LIST=Object.freeze(["__proto__","prototype","constructor"]),QueryString=function(){function e(){}return e.parseDeep=function(e){var t=this.parse(e);return this.deepen(t)},e.stringifyDeep=function(e){var t=this.flatten(e);return this.stringify(t)},e.parse=function(e){for(var t={},n=("?"===e[0]?e.substr(1):e).split("&"),i=0;i<n.length;i++){var r=n[i].split("=");try{t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]||"")}catch(e){}}return t},e.stringify=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(i)}return t},e.deepen=function(e){var t={};for(var n in e){for(var i=t,r=n.split("."),o=r.pop(),s=0,a=r;s<a.length;s++){var u=a[s];assertAllowedPropertyName(u),i=i[u]=i[u]||{}}i[o]=e[n]}return t},e.flatten=function(e,t,n){for(var i in void 0===n&&(n={}),e){var r=e[i],o=t?t+"."+i:i;r&&"object"==typeof r?this.flatten(r,o,n):n[o]=r}return n},e}();function assertAllowedPropertyName(e){if(PROPERTY_NAME_DENY_LIST.indexOf(e)>=0)throw 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=[],i=0;i<arguments.length;i++)n[i]=arguments[i];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 i=e.subscribe(function(e){t(e),i.unsubscribe()},function(e){n(e),i.unsubscribe()})})}
1,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 i=!1;try{var r=t.then;isFunction(r)?r.call(t,function(e){i||n._resolve(e),i=!0},function(e){i||n._reject(e),i=!0}):this._fulfill(t)}catch(e){i||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 i=this;switch(this._state){case State.Pending:return new e(function(e,r){i._addHandler(function(n){nextTick(function(){try{isFunction(t)?e(t(n)):e(n)}catch(e){r(e)}})},function(t){nextTick(function(){try{isFunction(n)?e(n(t)):r(t)}catch(e){r(e)}})})});
1case State.Fulfilled:return new e(function(e,n){nextTick(function(){try{isFunction(t)?e(t(i._value)):e(i._value)}catch(e){n(e)}})});case State.Rejected:return new e(function(e,t){nextTick(function(){try{isFunction(n)?e(n(i._value)):t(i._value)}catch(e){t(e)}})})}},e}(),Promise$1="u">typeof Promise?Promise:TinyPromise;try{serverOnlyRequire=eval("require")}catch(err){serverOnlyRequire=function(){return null}}var serverOnlyRequire$1=serverOnlyRequire;function promiseResolve(e){return new Promise$1(function(t){return t(e)})}function tinyFetch(e,t){return void 0===t&&(t={}),new Promise$1(function(n,i){var r=new XMLHttpRequest;if(r.open(t.method||"get",e,!0),t.headers)for(var o in t.headers)r.setRequestHeader(o,t.headers[o]);function s(){var e=[],t=[],n={},i=void 0;return r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(r,o,s){var a=o;return e.push(a=a.toLowerCase()),t.push([a,s]),i=n[a],n[a]=i?"".concat(i,",").concat(s):s,""}),{ok:(r.status/100|0)==2,status:r.status,statusText:r.statusText,url:r.responseURL,clone:s,text:function(){return promiseResolve(r.responseText)},json:function(){return promiseResolve(r.responseText).then(JSON.parse)},blob:function(){return promiseResolve(new Blob([r.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}}}}r.withCredentials="include"===t.credentials,r.onload=function(){n(s())},r.onerror=i,r.send(t.body)})}function getFetch(){var e=void 0;if(globalThis.fetch)null!=e||(e=globalThis.fetch);else if("u"<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 i=arguments[n];if(null!=i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}function throttle(e,t,n){void 0===n&&(n={});var i,r,o,s=null,a=0,u=function(){a=!1===n.leading?0:Date.now(),s=null,o=e.apply(i,r),s||(i=r=null)};return function(){var c=Date.now();a||!1!==n.leading||(a=c);var l=t-(c-a);return i=this,r=arguments,l<=0||l>t?(s&&(clearTimeout(s),s=null),a=c,o=e.apply(i,r),s||(i=r=null)):s||!1===n.trailing||(s=setTimeout(u,l)),o}}var camelCaseToKebabCase=function(e){return e?e.replace(/([A-Z])/g,function(e){return"-".concat(e[0].toLowerCase())}):""},Animator=function(){function e(){}return e.prototype.bindAnimations=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];switch(i.trigger){case"pageLoad":this.triggerAnimation(i);break;case"hover":this.bindHoverAnimation(i);break;case"scrollInView":this.bindScrollInViewAnimation(i)}}},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),i=getComputedStyle(t),r=[e.steps[0].styles,e.steps[e.steps.length-1].styles],o=0,s=r;o<s.length;o++)for(var a=s[o],u=0,c=n;u<c.length;u++){var l=c[u];l in a||(a[l]=i[l])}},e.prototype.getAllStylesUsed=function(e){for(var t=[],n=0,i=e.steps;n<i.length;n++){var r=i[n];for(var o in r.styles)-1===t.indexOf(o)&&t.push(o)}return t},e.prototype.triggerAnimation=function(e){var t=this,n=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));n.length?Array.from(n).forEach(function(n){t.augmentAnimation(e,n),n.style.transition="none",n.style.transitionDelay="0",assign(n.style,e.steps[0].styles),setTimeout(function(){n.style.transition="all ".concat(e.duration,"s ").concat(camelCaseToKebabCase(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s"),assign(n.style,e.steps[1].styles),setTimeout(function(){n.style.transition="",n.style.transitionDelay=""},1e3*(e.delay||0)+1e3*e.duration+100)})}):this.warnElementNotPresent(e.elementId||e.id||"")},e.prototype.bindHoverAnimation=function(e){var t=this,n=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));
1n.length?Array.from(n).forEach(function(n){t.augmentAnimation(e,n);var i=e.steps[0].styles,r=e.steps[1].styles;function o(){assign(n.style,i)}function s(){assign(n.style,r)}o(),n.addEventListener("mouseenter",s),n.addEventListener("mouseleave",o),setTimeout(function(){n.style.transition="all ".concat(e.duration,"s ").concat(camelCaseToKebabCase(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s")})}):this.warnElementNotPresent(e.elementId||e.id||"")},e.prototype.bindScrollInViewAnimation=function(e){var t=this,n=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));n.length?Array.from(n).forEach(function(n){t.augmentAnimation(e,n);var i=!1,r=!1;function o(){!i&&a(n)?(i=!0,r=!0,setTimeout(function(){assign(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",s),setTimeout(function(){r=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&i&&!r&&!a(n)&&(i=!1,assign(n.style,e.steps[0].styles))}var s=throttle(o,200,{leading:!1});function a(t){var n=t.getBoundingClientRect(),i=window.innerHeight,r=(e.thresholdPercent||0)/100*i;return n.bottom>r&&n.top<i-r}var u=e.steps[0].styles;(function(){assign(n.style,u)})(),setTimeout(function(){n.style.transition="all ".concat(e.duration,"s ").concat(camelCaseToKebabCase(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",s,{capture:!0,passive:!0}),o()}):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){var i=n[1];return i}}},e.prototype.set=function(e,t,n){var i=this.response,r=this.request,o=i.getHeader("Set-Cookie")||[],s=void 0!==this.secure?!!this.secure:"https"===r.protocol||r.connection.encrypted,a=new Cookie(e,t,n);if("string"==typeof o&&(o=[o]),!s&&n&&n.secure)throw Error("Cannot send secure cookie over unencrypted connection");return a.secure=s,n&&"secure"in n&&(a.secure=!!n.secure),pushCookie(o,a),i.setHeader.call(i,"Set-Cookie",o),this},e}(),Cookie=function(){function e(e,t,n){if(this.path="/",this.domain=void 0,this.httpOnly=!0,this.sameSite=!1,this.secure=!1,this.overwrite=!1,this.name="",this.value="",!fieldContentRegExp.test(e))throw TypeError("argument name is invalid");if(t&&!fieldContentRegExp.test(t))throw TypeError("argument value is invalid");t||(this.expires=new Date(0)),this.name=e,this.value=t||"",n.expires&&(this.expires=n.expires),n.secure&&(this.secure=n.secure)}return e.prototype.toString=function(){return"".concat(this.name,"=").concat(this.value)},e.prototype.toHeader=function(){var e=this.toString();return this.maxAge&&(this.expires=new Date(Date.now()+this.maxAge)),this.path&&(e+="; path=".concat(this.path)),this.expires&&(e+="; expires=".concat(this.expires.toUTCString())),this.domain&&(e+="; domain=".concat(this.domain)),e+="; SameSite=".concat(!0===this.sameSite?"strict":"None"),this.secure&&(e+="; secure"),this.httpOnly&&(e+="; httponly"),e},e}();function getPattern(e){return new RegExp("(?:^|;) *".concat(e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"=([^;]*)"))}function pushCookie(e,t){if(t.overwrite)for(var n=e.length-1;n>=0;n--)0===e[n].indexOf("".concat(t.name,"="))&&e.splice(n,1);e.push(t.toHeader())}function omit(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=Object.assign({},e),r=0,o=t;r<o.length;r++){var s=o[r];delete i[s]}return i}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,i=emptyUrl();return""===e||"/"===e[0]?(i.href=(n=new URL(e,"http://0.0.0.0/")).href,i.href=null==(t=i.href)?void 0:t.slice(14)):(i.href=(n=new URL(e)).href,i.port=""===n.port?null:n.port,i.hash=""===n.hash?null:n.hash,i.host=n.host,i.hostname=n.hostname,i.href=n.href,i.pathname=n.pathname,i.protocol=n.protocol,i.slashes="/"===e[n.protocol.length]),i.search=n.search,i.query=n.search.slice(1),i.path="".concat(n.pathname).concat(n.search),i.pathname=n.pathname,i}function toError(e){return e instanceof Error?e:Error(String(e))}var DEFAULT_API_VERSION="v3",SDK_VERSION="6.3.3";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-
1prod"];function getQueryParam(e,t){for(var n=(e.split("?")[1]||"").split("&"),i=0;i<n.length;i++){var r=n[i].split("=");if(decodeURIComponent(r[0])===t)return decodeURIComponent(r[1])}return null}var urlParser={parse:function(e){var t=document.createElement("a");t.href=e;for(var n={},i=["username","password","host","hostname","port","protocol","origin","pathname","search","hash"],r=0,o=i;r<o.length;r++){var s=o[r];n[s]=t[s]}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 i="";n&&(i="; expires="+n.toUTCString());var r=!isBrowser||"https:"===location.protocol;document.cookie=e+"="+(t||"")+i+"; path=/"+(r?"; secure; SameSite=None":"")}catch(e){console.warn("Could not set cookie",e)}}function getCookie(e){try{return decodeURIComponent(document.cookie.replace(RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}catch(e){console.warn("Could not get cookie",e)}}function size(e){return Object.keys(e).length}function find(e,t){for(var n=e,i=n.length>>>0,r=arguments[1],o=0;o<i;o++){var s=n[o];if(t.call(r,s,o,n))return s}}var sessionStorageKey="builderSessionId",localStorageKey="builderVisitorId",isBrowser="u">typeof window&&!isReactNative,isIframe=isBrowser&&window.top!==window.self;function BuilderComponent(e){return void 0===e&&(e={}),Builder.Component(e)}var Builder=function(){function e(t,n,i,r,o,s){void 0===t&&(t=null),void 0===r&&(r=!1),void 0===o&&(o=null);var a=this;if(this.request=n,this.response=i,this.eventsQueue=[],this.throttledClearEventsQueue=throttle(function(){a.processEventsQueue(),a.setCookie(sessionStorageKey,a.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.contentId$=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.totalCountByKey={},this.testCookiePrefix="builder.tests",this.cookieQueue=[],e.isBrowser&&!r&&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),s&&(this.apiVersion=s),o&&(this.authToken=o),isBrowser&&e.isEditing&&(this.bindMessageListeners(),parent.postMessage({type:"builder.animatorOptions",data:{options:{version:2}}},"*")),isIframe&&this.messageFrameLoaded(),this.canTrack$.subscribe(function(e){if(e){if("u">typeof sessionStorage)try{sessionStorage.getItem(sessionStorageKey)||sessionStorage.setItem(sessionStorageKey,a.sessionId)}catch(e){console.debug("Session storage error",e)}a.eventsQueue.length&&a.throttledClearEventsQueue(),a.cookieQueue.length&&(a.cookieQueue.forEach(function(e){a.setCookie(e[0],e[1])}),a.cookieQueue.length=0)}}),isBrowser){this.setTestsFromUrl(),this.getOverridesFromQueryString();var u=this.getCookie(e.attributesCookieName);if(u)try{var c=JSON.parse(u);this.setUserAttributes(c)}catch(e){console.debug("Error parsing user attributes cookie",e)}}}return e.register=function(t,n){"plugin"===t&&(n=this.serializeIncludingFunctions(n,!0));var i=this.registry[t];
1if(i||(i=this.registry[t]=[]),i.push(n),e.isBrowser){var r={type:"builder.register",data:{type:t,info:n}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}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(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 i=JSON.parse(JSON.stringify(t));t.action&&(i.action=t.action.toString()),null==(n=window.parent)||n.postMessage({type:"builder.registerAction",data:i},"*")}},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(!/^https?:\/\//i.test(t.origin))return!1;try{var n=parse(t.origin);return("http:"===n.protocol||"https:"===n.protocol)&&!!(n.hostname&&e.isTrustedHost(n.hostname))}catch(e){return!1}},e.runAction=function(e){if(!("string"==typeof e?find(this.actions,function(t){return t.name===e}):e))throw Error("Action not found: ".concat(e))},e.fields=function(e,t){var n;null==(n=window.parent)||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)return void console.warn("Builder.import used on the server - this should only be used in the browser");var n=window.System;return n?n.import("https://cdn.builder.io/systemjs/".concat(t)):void console.warn("System.js not available. Please include System.js when using Builder.import")},Object.defineProperty(e,"editingPage",{get:function(){return this._editingPage},set:function(e){this._editingPage=e,isBrowser&&isIframe&&(e?document.body.classList.add("builder-editing-page"):document.body.classList.remove("builder-editing-page"))},enumerable:!1,configurable:!0}),e.serializeIncludingFunctions=function(e,t){var n=function(e){var t=e.toString().trim(),n=/^[a-zA-Z0-9_]+\s*=>/i.test(t),i=!t.startsWith("function")&&!t.startsWith("async")&&!t.startsWith("(")&&!n;return"return (".concat(i?"function ":"").concat(t,").apply(this, arguments)")},i=JSON.parse(JSON.stringify(e,function(e,i){var r=t&&"onSave"===e;return"function"!=typeof i||r?i:n(i)}));return t&&(i.onSave=e.onSave),i},e.prepareComponentSpecToSend=function(e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},this.serializeIncludingFunctions(e)),{class:void 0})},e.registerBlock=function(e,t){this.registerComponent(e,t)},e.registerComponent=function(e,t){var n,i=(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({class:e},e.builderOptions),t);if(this.addComponent(i),t.models&&this.singletonInstance.editingModel?isBrowser&&t.models.includes(this.singletonInstance.editingModel):isBrowser){var r=this.prepareComponentSpecToSend(i);null==(n=window.parent)||n.postMessage({type:"builder.registerComponent",data:r},"*")}},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 i,r=(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},e),{class:n});r.name||(r.name=n.name),t.addComponent(r);var o=t.prepareComponentSpecToSend(r);return isBrowser&&(null==(i=window.parent)||i.postMessage({type:"builder.registerComponent",data:o},"*")),n}},Object.defineProperty(e,"Component",{get:function(){return this.component}
1,enumerable:!1,configurable:!0}),e.prototype.processEventsQueue=function(){if(this.eventsQueue.length){var t=this.eventsQueue;this.eventsQueue=[];for(var n=(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},e.overrideUserAttributes),this.trackingUserAttributes),i=0,r=t;i<r.length;i++){var o=r[i];o.data.metadata||(o.data.metadata={}),o.data.metadata.user||(o.data.metadata.user={}),Object.assign(o.data.metadata.user,n,o.data.metadata.user)}var s=this.host;getFetch()("".concat(s,"/api/v1/track"),{method:"POST",body:JSON.stringify({events:t}),headers:(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({"content-type":"application/json"},this.getSdkHeaders()),mode:"cors"}).catch(function(){})}},Object.defineProperty(e.prototype,"browserTrackingDisabled",{get:function(){return e.isBrowser&&!!(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 i=n?e:e.parentElement;do{if(!i)break;if(t(i))return i}while(i=i.parentElement);return null},e.prototype.findBuilderParent=function(e){return this.findParentElement(e,function(e){var t=e.getAttribute("builder-id")||e.id;return!!(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,i){if(void 0===n&&(n={}),!isIframe&&isBrowser&&!e.isPreviewing){var r=this.apiKey;if(!r)return void console.error('Builder integration error: Looks like the Builder SDK has not been initialized properly (your API key has not been set). Make sure you are calling `builder.init("\xabYOUR-API-KEY\xbb");` as early as possible in your application\'s code.');for(var o=JSON.parse(JSON.stringify({type:t,data:(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},omit(n,"meta")),{metadata:(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({sdkVersion:e.VERSION,url:location.href},n.meta),n.metadata),ownerId:r,userAttributes:this.getUserAttributes(),sessionId:this.sessionId,visitorId:this.visitorId})})),s=0,a=this.trackingHooks;s<a.length;s++){var u=(0,a[s])(o,i||{});u&&(o=u)}this.eventsQueue.push(o),this.canTrack&&this.throttledClearEventsQueue()}},e.prototype.getSessionId=function(){var t=this,n=null;try{e.isBrowser&&"u">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&&"u">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&&"u">typeof localStorage&&n&&localStorage.setItem(localStorageKey,n)}catch(e){console.debug("Session storage error",e)}}),n},e.prototype.trackImpression=function(t,n,i,r){isIframe||!isBrowser||e.isPreviewing||this.track("impression",{contentId:t,variationId:n!==t?n:void 0,metadata:i},r)},e.prototype.trackConversion=function(t,n,i,r,o){if(!isIframe&&isBrowser&&!e.isPreviewing){var s="object"==typeof n?(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},n):r&&"object"==typeof r?(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},r):void 0;void 0!==t&&(s||(s={}),s.amount=t);var a="string"==typeof n?n:void 0;a||n||!this.contentId||(a=this.contentId);var u=i;!u&&a&&(u=this.getTestCookie(a)),this.track("conversion",{amount:t,variationId:u&&a&&u!==a?u:void 0,meta:s,contentId:a},o)}},Object.defineProperty(e.prototype,"isDevelopmentEnv",{get:function(){return e.isIframe||e.isBrowser&&("localhost"===location.hostname||""!==location.port)||"production"!==this.env}
1,enumerable:!1,configurable:!0}),e.prototype.trackInteraction=function(t,n,i,r,o){if(void 0===i&&(i=!1),!isIframe&&isBrowser&&!e.isPreviewing){var s=r&&r.target,a=s&&this.findBuilderParent(s),u={};if(r){var c=r.clientX,l=r.clientY;if(s){var d=s.getBoundingClientRect(),h=c-d.left,p=l-d.top,f=y(h/d.width),v=y(p/d.height);u.targetOffset={x:f,y:v}}if(a){var d=a.getBoundingClientRect(),h=c-d.left,p=l-d.top,f=y(h/d.width),v=y(p/d.height);u.builderTargetOffset={x:f,y:v}}}var g=a&&(a.getAttribute("builder-id")||a.id);g&&a&&(u.builderElementIndex=[].slice.call(document.getElementsByClassName(g)).indexOf(a)),this.track("click",{contentId:t,metadata:u,variationId:n!==t?n:void 0,unique:!i,targetBuilderElement:g||void 0},o)}function y(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,"contentId",{get:function(){return this.contentId$.value},set:function(e){this.contentId$.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 i in n)n.hasOwnProperty(i)&&this.setTestCookie(i,n[i])}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)),i=n.builder;if(i){var r=i.userAttributes,o=i.overrides,s=i.env,a=(i.host,i.api),u=i.cachebust,c=i.noCache,l=i.preview,d=i.editing,h=i.frameEditing,p=i.options,f=i.params;if(r&&this.setUserAttributes(r),p&&(this.queryOptions=(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},p.locale&&{locale:p.locale}),p.includeRefs&&{includeRefs:p.includeRefs}),p.enrich&&{enrich:p.enrich})),o&&(this.overrides=o),validEnvList.indexOf(s||a)>-1&&(this.env=s||a),e.isEditing){var v=h||d||l;v&&"true"!==v&&(this.editingModel=v)}u&&(this.cachebust=!0),c&&(this.noCache=!0),l&&(this.preview=!0),n&&(this.overrideParams=f)}}catch(e){console.debug("Error parsing overrides from URL",e)}},e.prototype.messageFrameLoaded=function(){var e;null==(e=window.parent)||e.postMessage({type:"builder.loaded",data:{value:!0}},"*")},e.prototype.bindMessageListeners=function(){var t=this;addEventListener("message",function(n){var i,r,o,s;if(e.isTrustedHostForEvent(n)){var a=n.data;if(a)switch(a.type){case"builder.ping":null==(i=window.parent)||i.postMessage({type:"builder.pong",data:{}},"*");break;case"builder.register":if(n.source===window)break;var u=a.data;if(!u)break;var c=u.type,l=u.info,d=e.registry[c];d||(d=e.registry[c]=[]),d.push(l),e.registryChange.next(e.registry);break;case"builder.settingsChange":if(n.source===window)break;var h=a.data;if(!h)break;Object.assign(e.settings,h),e.settingsChange.next(e.settings);break;case"builder.registerEditor":if(n.source===window)break;var p=a.data;if(!p)break;var f=!!p.component;e.editors.every(function(t,n){return p.name!==t.name||(t.component&&!f||(e.editors[n]=t),!1)});break;case"builder.triggerAnimation":e.animator.triggerAnimation(a.data);break;case"builder.contentUpdate":var v=a.data.key||a.data.alias||a.data.entry||a.data.modelName,g=a.data.data,y=t.observersByKey[v];y&&!t.noEditorUpdates[v]&&y.next([g]);break;case"builder.getComponents":null==(r=window.parent)||r.postMessage({type:"builder.components",data:e.components.map(function(t){return e.prepareComponentSpecToSend(t)})},"*");break;case"builder.editingModel":t.editingModel=a.data.model;break;case"builder.registerComponent":var b=a.data;e.addComponent(b);break;case"builder.blockContentLoading":"string"==typeof a.data.model&&(t.blockContentLoading=a.data.model);break;case"builder.editingMode":a.data?(t.editingMode=!0,document.body.classList.add("builder-editing")):(t.editingMode=!1,document.body.classList.remove("builder-editing"));break;case"builder.editingPageMode":e.editingPage=a.data;break;case"builder.overrideUserAttributes":var m=a.data;assign(e.overrideUserAttributes,m),t.flushGetContentQueue(!0);break;case"builder.overrideTestGroup":var w=a.data,C=w.variationId,k=w.contentId;C&&k&&(t.setTestCookie(k,C),t.flushGetContentQueue(!0));break;case"builder.evaluate":var S=a.data.text,x=a.data.arguments||[],T=a.data.id,E=Function(S),O=void 0,I=null;try{O=E.apply(t,x)}catch(e){I=toError(e)}I?null==(o=window.parent)||o.postMessage({type:"builder.evaluateError",data:{id:T,error:I.message}},"*"):O&&"function"==typeof O.then?O.then(function(e){var t;null==(t=window.parent)||t.postMessage({type:"builder.evaluateResult",data:{id:T,result:e}},"*")}).catch(console.error):null==(s=window.parent)||s.postMessage({type:"builder.evaluateResult",data:{result:O,id:T}},"*")}}})}
1,Object.defineProperty(e.prototype,"defaultCanTrack",{get:function(){return!!(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,i,r,o){return void 0===t&&(t=this.defaultCanTrack),n&&(this.request=n),i&&(this.response=i),this.hasOverriddenCanTrack||(this.canTrack=t),this.apiKey=e,r&&(this.authToken=r),o&&(this.apiVersion=o),this},Object.defineProperty(e.prototype,"previewingModel",{get:function(){var e=this.getLocation().search;return QueryString.parse((e||"").substr(1))["builder.preview"]},enumerable:!1,configurable:!0}),e.prototype.getLocation=function(){var e,t={};return this.request?t=parse(null!=(e=this.request.url)?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()}},i=t.match(/Tablet|iPad/i),r=this.getLocation();return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({urlPath:r.pathname,host:r.host||r.hostname,device:i?"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){void 0===n&&(n={});var i,r=this,o=n.locale||(null==(i=n.userAttributes)?void 0:i.locale)||this.getUserAttributes().locale;"noTraverse"in n||(n.noTraverse=!1);var s=(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},n),o&&{locale:String(o),userAttributes:(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({locale:String(o)},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)):((r=new e(n.apiKey||this.apiKey,n.req,n.res,void 0,n.authToken||this.authToken,n.apiVersion||this.apiVersion)).apiEndpoint=this.apiEndpoint,r.setUserAttributes(this.getUserAttributes())),r.queueGetContent(t,s).map(function(t){var n=t&&t[0];if(e.isStatic)return n;var i=n&&n.data;return i?(void 0!==i.blocksString&&(i.blocks=JSON.parse(i.blocksString),delete i.blocksString),{data:i,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 i=this;void 0===n&&(n={});var r=n.key||n.alias||t,o=this.editingModel===t,s=this.observersByKey[r];"DEMO"!==this.apiKey||this.overrides[r]||n.initialContent||(n.initialContent=[]);var a=n.initialContent;if(s&&(!s.value||n.cache))return s.value&&nextTick(function(){s.next(s.value)}),s;if(o&&e.isBrowser&&parent.postMessage({type:"builder.updateContent",data:{options:n}},"*"),!a)if(this.getContentQueue||(this.getContentQueue=[]),this.getContentQueue.push((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},n),{model:t,key:r})),this.getContentQueue&&this.getContentQueue.length>=this.contentPerRequest){var u=this.getContentQueue.slice();this.getContentQueue=[],nextTick(function(){i.flushGetContentQueue(!1,u)})}else nextTick(function(){i.flushGetContentQueue()});var c=new BehaviorSubject(null);return this.observersByKey[r]=c,n.noEditorUpdates&&(this.noEditorUpdates[r]=!0),a&&nextTick(function(){c.next(a)}),c},e.prototype.requestUrl=function(e,t){return getFetch()(e,this.addSdkHeaders(t)).then(function(e){return e.json()})}
1,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(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},e),{headers:(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},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 i in void 0===n&&(n={}),e){var r=e[i],o=t?t+"."+i:i;!r||"object"!=typeof r||Array.isArray(r)||Object.keys(r).find(function(e){return e.startsWith("$")})?n[o]=r:this.flattenMongoQuery(r,o,n)}return n},e.prototype.flushGetContentQueue=function(t,n){var i,r,o,s=this;if(void 0===t&&(t=!1),!this.apiKey)throw Error("Fetching content failed, expected apiKey to be defined instead got: ".concat(this.apiKey));if(this.apiVersion){if(!["v1","v3"].includes(this.apiVersion))throw Error("Invalid apiVersion: expected 'v1' or 'v3', received '".concat(this.apiVersion,"'"))}else this.apiVersion=DEFAULT_API_VERSION;if(t||this.getContentQueue){var a=n||(t?this.priorContentQueue:this.getContentQueue)||[];this.getOverridesFromQueryString();var u=(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({omit:null!=(i=a[0].omit)?i:"meta.componentsUsed",apiKey:this.apiKey},a[0].options),this.queryOptions);a[0].locale&&(u.locale=a[0].locale),a[0].fields&&(u.fields=a[0].fields),a[0].format&&(u.format=a[0].format),"noTraverse"in a[0]&&(u.noTraverse=a[0].noTraverse),"includeUnpublished"in a[0]&&(u.includeUnpublished=a[0].includeUnpublished),a[0].sort&&(u.sort=a[0].sort);var c=("u">typeof location?QueryString.parseDeep(location.search.substr(1)):void 0)||{},l=a&&a[0].userAttributes?a[0].userAttributes:this.targetContent?this.getUserAttributes():{urlPath:this.getLocation().pathname},d=a.find(function(e){return!!e.includeUrl});if(d){var h=this.getLocation();h.origin&&(u.url="".concat(h.origin).concat(h.pathname).concat(h.search))}var p=null==n?void 0:n.find(function(e){return e.url});(null==p?void 0:p.url)&&(l.urlPath=p.url.split("?")[0]),u.userAttributes=JSON.stringify(l),t||n||(this.priorContentQueue=a,this.getContentQueue=null);var f=this.cachebust||isIframe||c.cachebust||c["builder.cachebust"];if((f||"production"!==this.env)&&(u.cachebust=!0),e.isEditing&&(u.isEditing=!0),(this.noCache||"production"!==this.env)&&(u.noCache=!0),size(this.overrides))for(var v in this.overrides)this.overrides.hasOwnProperty(v)&&(u["overrides.".concat(v)]=this.overrides[v]);for(var g=0,y=a;g<y.length;g++){var b=y[g],m=b.format;m&&(u.format=m),b.static&&(u.static=b.static),b.cachebust&&(u.cachebust=b.cachebust),isPositiveNumber(b.cacheSeconds)&&(u.cacheSeconds=b.cacheSeconds),isPositiveNumber(b.staleCacheSeconds)&&(u.staleCacheSeconds=b.staleCacheSeconds),"content"===this.apiEndpoint&&(u.includeRefs=!0),"query"===this.apiEndpoint&&("enrich"in b&&void 0!==b.enrich&&(u.enrich=b.enrich),b.enrichOptions&&this.flattenEnrichOptions(b.enrichOptions,"enrichOptions",u));for(var w=["prerender","extractCss","limit","offset","query","preview","model","entry","rev","static","includeRefs","fetchTotalCount"],C=0,k=w;C<k.length;C++){var v=k[C],S=b[v];void 0!==S&&("query"===this.apiEndpoint?(u.options=u.options||{},u.options[b.key]=u.options[b.key]||{},u.options[b.key][v]=JSON.stringify(S)):u[v]=JSON.stringify(S))}"content"===this.apiEndpoint&&("enrich"in b&&void 0!==b.enrich&&(u.enrich=b.enrich),b.enrichOptions&&this.flattenEnrichOptions(b.enrichOptions,"enrichOptions",u))}this.preview&&this.previewingModel===(null==(r=null==a?void 0:a[0])?void 0:r.model)&&(u.preview="true");var x=Object.keys(u).length>0,T=this.host,E=a.map(function(e){return encodeURIComponent(e.key)}).join(",");this.overrideParams&&assign(u,omit(QueryString.parse(this.overrideParams),"apiKey"));var O=u.format,I="solid"===O||"react"===O,A=I||"query"===this.apiEndpoint;if("content"===this.apiEndpoint&&a[0].query){delete u.query;var P={query:a[0].query},j=this.flattenMongoQuery(P);for(var v in j)u[v]=JSON.stringify(j[v])}var U=QueryString.stringifyDeep(u),_=(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({headers:{}},a[0].fetchOptions);this.authToken&&(_.headers=(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},_.headers),{Authorization:"Bearer ".concat(this.authToken)})),o=I?"".concat(T,"/api/v1/codegen/").concat(this.apiKey,"/").concat(E):"query"===this.apiEndpoint?"".concat(T,"/api/v3/query/").concat(this.apiKey,"/").concat(E):"".concat(T,"/api/v3/content/").concat(a[0].model),o+=u&&x?"?".concat(U):"";var B=this.makeFetchApiCall(o,_).then(function(e){return e.json()}).then(function(t){for(var n=0,i=a;n<i.length;n++){var r=i[n],o=r.key;if(r.model!==s.blockContentLoading||r.noEditorUpdates){var u=s.editingModel===r.model;u&&e.isEditing&&parent.postMessage({type:"builder.updateContent",data:{options:r}},"*");var c=s.observersByKey[o];if(!c)return;var l=A?t[o]:t.results;void 0!==t.totalCount&&(s.totalCountByKey[o]=t.totalCount);var d=l;if(l){var h=e.isServer?d:s.processResultsForTests(d);c.next(h)}else{if((s.getLocation().search||"").includes("builder.preview="+r.model)){var p={id:"preview",name:"Preview",data:{}};c.next([p])}c.next([])}}}},function(e){for(var t=0,n=a;t<n.length;t++){var i=n[t],r=s.observersByKey[i.key];if(!r)return;r.error(e)}});return B}},e.prototype.processResultsForTests=function(e){var t,n=this,i=e.map(function(e){if(!e.variations)return e;var t=n.getTestCookie(e.id),i=t===e.id?e:e.variations[t];if(i)return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},e),{data:i.data,variationId:t,testVariationId:t,testVariationName:i.name});if(n.canTrack&&e.variations&&size(e.variations)){var r=0,o=Math.random();for(var s in e.variations){var a=e.variations[s];if(o<(r+=a.testRatio)){n.setTestCookie(e.id,a.id);var u=a.name||(a.id===e.id?"Default variation":"");return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},e),{data:a.data,variationId:a.id,testVariationId:a.id,variationName:u,testVariationName:u})}}n.setTestCookie(e.id,e.id)}return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({},e),{variationId:e.id}),e.variations&&size(e.variations)&&{testVariationId:e.id,testVariationName:"Default variation"})});return isIframe&&(null==(t=window.parent)||t.postMessage({type:"builder.contentResults",data:{results:i}},"*")),i},e.prototype.getTestCookie=function(e){return this.getCookie("".concat(this.testCookiePrefix,".").concat(e))},e.prototype.setTestCookie=function(e,t){if(!this.canTrack)return void this.cookieQueue.push([e,t]);var n=new Date;return n.setDate(n.getDate()+30),this.setCookie("".concat(this.testCookiePrefix,".").concat(e),t,n)},e.prototype.getCookie=function(t){return this.cookies?this.cookies.get(t):e.isBrowser&&getCookie(t)},e.prototype.setCookie=function(t,n,i){return this.cookies&&!(e.isServer&&e.isStatic)?this.cookies.set(t,n,{expires:i,secure:"https:"===this.getLocation().protocol}
1):e.isBrowser&&setCookie(t,n,i)},e.prototype.flattenEnrichOptions=function(e,t,n){for(var i=0,r=Object.entries(e);i<r.length;i++){var o=r[i],s=o[0],a=o[1],u="".concat(t,".").concat(s);a&&"object"==typeof a&&!Array.isArray(a)?this.flattenEnrichOptions(a,u,n):n[u]=a}},e.prototype.getContent=function(e,t){if(void 0===t&&(t={}),!this.apiKey)throw 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 i=this;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,!1,n.authToken||this.authToken,n.apiVersion||this.apiVersion)).apiEndpoint=this.apiEndpoint,i.setUserAttributes(this.getUserAttributes())),"noTraverse"in n||(n.noTraverse=!0);var r=n.key||e.isBrowser||n.fetchTotalCount?"".concat(t,":").concat(hash_sum__WEBPACK_IMPORTED_MODULE_0___default()(omit(n,"initialContent","req","res"))):void 0;return i.getContent(t,(0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.Cl)({limit:30},n),{key:r})).promise().then(function(e){var t;return n.fetchTotalCount?{results:e,totalCount:void 0!==r&&null!=(t=i.totalCountByKey[r])?t:0}:e})},e.VERSION=SDK_VERSION,e.components=[],e.isStatic=!0,e.animator=new Animator,e.nextTick=nextTick,e.throttle=throttle,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,e.isReactNative=isReactNative,e.isServer=!isBrowser&&!isReactNative,e.previewingModel=e.isBrowser&&getQueryParam(location.href,"builder.preview"),e.settings={},e.settingsChange=new BehaviorSubject({}),e.isEditing=!!(isIframe&&(document.referrer&&e.isTrustedHostForEvent({origin:document.referrer})||-1!==location.search.indexOf("builder.frameEditing="))),e.isPreviewing=!!(isBrowser&&(-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);Builder.singletonInstance=builder},69903:e=>{function t(e,t){for(;e.length<t;)e="0"+e;return e}function n(e,t){var n,i;if(0===t.length)return e;for(n=0,i=t.length;n<i;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return e<0?-2*e:e}function i(e,t,n){return Object.keys(t).sort().reduce(i,e);function i(e,i){return r(e,t[i],i,n)}}function r(e,t,r,s){var a=n(n(n(e,r),o(t)),typeof t);if(null===t)return n(a,"null");if(void 0===t)return n(a,"undefined");if("object"==typeof t||"function"==typeof t){if(-1!==s.indexOf(t))return n(a,"[Circular]"+r);s.push(t);var u=i(a,t,s);if(!("valueOf"in t)||"function"!=typeof t.valueOf)return u;try{return n(u,String(t.valueOf()))}catch(e){return n(u,"[valueOf exception]"+(e.stack||e.message))}}return n(a,t.toString())}function o(e){return Object.prototype.toString.call(e)}e.exports=function(e){return t(r(0,e,"",[]).toString(16),8)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.