1(function(){ 2/*! LICENSE: qualified-ed7d00a9.js.LICENSE.txt */ 3var __webpack_modules__={9706(e,t,i){"use strict";i.d(t,{},{U:"production"})},9786(e,t,i){"use strict";var n=i(1392),r=i(7279);i(5811);var s=i(9623);function o(){return(0,n.BY)("globalEventProcessors",()=>[])}function a(e){o().push(e)}i.d(t,{jB:()=>function e(t,i,n,o=0){return new r.T2((r,a)=>{let l=t[o];if(null===i||"function"!=typeof l)r(i);else{let c=l({...i},n);(0,s.Qg)(c)?c.then(i=>e(t,i,n,o+1).then(r)).then(null,a):e(t,c,n,o+1).then(r).then(null,a)}})},lG:()=>o,lb:()=>a})},8880(e,t,i){"use strict";i.d(t,{KU:()=>s,o5:()=>o,wd:()=>r});var n=i(8160);function r(e,t){let i="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return(0,n.BF)().captureMessage(e,i,r)}function s(){return(0,n.BF)().getClient()}function o(){return(0,n.BF)().getScope()}},8160(e,t,i){"use strict";i.d(t,{BF:()=>f,rm:()=>g});var n=i(9623),r=i(7999),s=i(5306),o=i(5811),a=i(1392),l=i(9706),c=i(6127),u=i(263);let d=parseFloat(i(55).M);class h{constructor(e,t,i,n=d){let r,s;this._version=n,t?r=t:(r=new c.HG).setClient(e),i?s=i:(s=new c.HG).setClient(e),this._stack=[{scope:r}],e&&this.bindClient(e),this._isolationScope=s}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t,i=this.pushScope();try{t=e(i)}catch(e){throw this.popScope(),e}return(0,n.Qg)(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let i=this._lastEventId=t&&t.event_id?t.event_id:(0,r.eJ)(),n=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:n,...t,event_id:i}),i}captureMessage(e,t,i){let n=this._lastEventId=i&&i.event_id?i.event_id:(0,r.eJ)(),s=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...i,event_id:n}),n}captureEvent(e,t){let i=t&&t.event_id?t.event_id:(0,r.eJ)();return e.type||(this._lastEventId=i),this.getScope().captureEvent(e,{...t,event_id:i}),i}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:i,client:n}=this.getStackTop();if(!n)return;let{beforeBreadcrumb:r=null,maxBreadcrumbs:a=100}=n.getOptions&&n.getOptions()||{};if(a<=0)return;let l={timestamp:(0,s.lu)(),...e},c=r?(0,o.pq)(()=>r(l,t)):l;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),i.addBreadcrumb(c,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:i}=this.getStackTop();i&&e(t)}run(e){let t=m(this);try{e(this)}finally{m(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(e){return null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&(0,u.Vu)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:i}=this.getStackTop(),{release:n,environment:r=l.U}=i&&i.getOptions()||{},{userAgent:s}=a.OW.navigator||{},o=(0,u.fj)({release:n,environment:r,user:t.getUser(),...s&&{userAgent:s},...e}),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&(0,u.qO)(c,{status:"exited"}),this.endSession(),t.setSession(o),o}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),i=e.getSession();i&&t&&t.captureSession&&t.captureSession(i)}_callExtensionMethod(e,...t){let i=p().__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[e])return i.extensions[e].apply(this,t)}}function p(){return a.OW.__SENTRY__=a.OW.__SENTRY__||{extensions:{},hub:void 0},a.OW}function m(e){let t=p(),i=v(t);return y(t,e),i}function f(){let e=p();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=p()){var t;return(!((t=e)&&t.__SENTRY__&&t.__SENTRY__.hub)||v(e).isOlderThan(d))&&y(e,new h),v(e)}(e)}function g(){return f().getIsolationScope()}function v(e){return(0,a.BY)("hub",()=>new h,e)}function y(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},6127(e,t,i){"use strict";let n;i.d(t,{HG:()=>d,m6:()=>h});var r=i(9623),s=i(5306),o=i(7999),a=i(5811),l=i(9786),c=i(263),u=i(8850);class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=p()}static clone(e){return e?e.clone():new d}clone(){let e=new d;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,c.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e;if(t instanceof d){let e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else(0,r.Qd)(t)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=p(),this}addBreadcrumb(e,t){let i="number"==typeof t?t:100;if(i<=0)return this;let n={timestamp:(0,s.lu)(),...e},r=this._breadcrumbs;return r.push(n),this._breadcrumbs=r.length>i?r.slice(-i):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}
3getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:i,_tags:n,_extra:r,_user:s,_level:o,_fingerprint:a,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:d,_span:h}=this;return{breadcrumbs:e,attachments:t,contexts:i,tags:n,extra:r,user:s,level:o,fingerprint:a||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:d,span:h}}applyToEvent(e,t={},i=[]){(0,u.e2)(e,this.getScopeData());let n=[...i,...(0,l.lG)(),...this._eventProcessors];return(0,l.jB)(n,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let i=t&&t.event_id?t.event_id:(0,o.eJ)();if(!this._client)return a.vF.warn("No client configured on scope - will not capture exception!"),i;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:i},this),i}captureMessage(e,t,i){let n=i&&i.event_id?i.event_id:(0,o.eJ)();if(!this._client)return a.vF.warn("No client configured on scope - will not capture message!"),n;let r=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:r,...i,event_id:n},this),n}captureEvent(e,t){let i=t&&t.event_id?t.event_id:(0,o.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:i},this):a.vF.warn("No client configured on scope - will not capture event!"),i}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function h(){return n||(n=new d),n}function p(){return{traceId:(0,o.eJ)(),spanId:(0,o.eJ)().substring(16)}}},263(e,t,i){"use strict";var n=i(5306),r=i(7999),s=i(8878);function o(e){let t=(0,n.zf)(),i={sid:(0,r.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=i,(0,s.Ce)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}};return e&&a(i,e),i}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let i={};t?i={status:t}:"ok"===e.status&&(i={status:"exited"}),a(e,i)}i.d(t,{Vu:()=>l,fj:()=>o,qO:()=>a})},435(e,t,i){"use strict";i.d(t,{k:()=>c,l:()=>l});var n=i(8878),r=i(9706),s=i(8880),o=i(8685),a=i(644);function l(e,t,i){let s=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:a}=i&&i.getUser()||{},l=(0,n.Ce)({environment:s.environment||r.U,release:s.release,user_segment:a,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",l),l}function c(e){let t=(0,s.KU)();if(!t)return{};let i=l((0,a.et)(e).trace_id||"",t,(0,s.o5)()),n=(0,o.z)(e);if(!n)return i;let r=n&&n._frozenDynamicSamplingContext;if(r)return r;let{sampleRate:c,source:u}=n.metadata;null!=c&&(i.sample_rate=`${c}`);let d=(0,a.et)(n);return u&&"url"!==u&&(i.transaction=d.description),i.sampled=String((0,a.pK)(n)),t.emit&&t.emit("createDsc",i),i}},8850(e,t,i){"use strict";i.d(t,{Rg:()=>c,e2:()=>l});var n=i(8878),r=i(7999),s=i(435),o=i(8685),a=i(644);function l(e,t){var i,l,c,u,d,h;let p,{fingerprint:m,span:f,breadcrumbs:g,sdkProcessingMetadata:v}=t;(function(e,t){let{extra:i,tags:r,user:s,contexts:o,level:a,transactionName:l}=t,c=(0,n.Ce)(i);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let u=(0,n.Ce)(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let d=(0,n.Ce)(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});let h=(0,n.Ce)(o);h&&Object.keys(h).length&&(e.contexts={...h,...e.contexts}),a&&(e.level=a),l&&(e.transaction=l)})(e,t),f&&function(e,t){e.contexts={trace:(0,a.kX)(t),...e.contexts};let i=(0,o.z)(t);if(i){e.sdkProcessingMetadata={dynamicSamplingContext:(0,s.k)(t),...e.sdkProcessingMetadata};let n=(0,a.et)(i).description;n&&(e.tags={transaction:n,...e.tags})}}(e,f),i=e,l=m,i.fingerprint=i.fingerprint?(0,r.k9)(i.fingerprint):[],l&&(i.fingerprint=i.fingerprint.concat(l)),i.fingerprint&&!i.fingerprint.length&&delete i.fingerprint,c=e,u=g,p=[...c.breadcrumbs||[],...u],c.breadcrumbs=p.length?p:void 0,d=e,h=v,d.sdkProcessingMetadata={...d.sdkProcessingMetadata,...h}}function c(e,t){let{extra:i,tags:n,user:r,contexts:s,level:o,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:c,eventProcessors:d,attachments:h,propagationContext:p,transactionName:m,span:f}=t;u(e,"extra",i),u(e,"tags",n),u(e,"user",r),u(e,"contexts",s),u(e,"sdkProcessingMetadata",a),o&&(e.level=o),m&&(e.transactionName=m),f&&(e.span=f),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),h.length&&(e.attachments=[...e.attachments,...h]
3),e.propagationContext={...e.propagationContext,...p}}function u(e,t,i){if(i&&Object.keys(i).length)for(let n in e[t]={...e[t]},i)Object.prototype.hasOwnProperty.call(i,n)&&(e[t][n]=i[n])}},8685(e,t,i){"use strict";function n(e){return e.transaction}i.d(t,{z:()=>n})},644(e,t,i){"use strict";var n=i(8878);function r(e){let{spanId:t,traceId:i}=e.spanContext(),{data:r,op:o,parent_span_id:a,status:l,tags:c,origin:u}=s(e);return(0,n.Ce)({data:r,op:o,parent_span_id:a,span_id:t,status:l,tags:c,trace_id:i,origin:u})}function s(e){return"function"==typeof e.getSpanJSON?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function o(e){let{traceFlags:t}=e.spanContext();return!!(1&t)}i.d(t,{et:()=>s,kX:()=>r,pK:()=>o})},55(e,t,i){"use strict";i.d(t,{},{M:"7.119.1"})},9623(e,t,i){"use strict";let n=Object.prototype.toString;function r(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function s(e,t){return n.call(e)===`[object ${t}]`}function o(e){return s(e,"ErrorEvent")}function a(e){return s(e,"DOMError")}function l(e){return s(e,"DOMException")}function c(e){return s(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return s(e,"Object")}function p(e){return"u">typeof Event&&b(e,Event)}function m(e){return"u">typeof Element&&b(e,Element)}function f(e){return s(e,"RegExp")}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}
3function v(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e){return"number"==typeof e&&e!=e}function b(e,t){try{return e instanceof t}catch(e){return!1}}function _(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}i.d(t,{BD:()=>a,Kg:()=>c,L2:()=>_,NF:()=>u,Qd:()=>h,Qg:()=>g,T2:()=>o,W6:()=>l,bJ:()=>r,gd:()=>f,mE:()=>v,sO:()=>d,tH:()=>b,vq:()=>m,xH:()=>p,yr:()=>y})},5811(e,t,i){"use strict";let n,r;var s=i(1392);let o={};function a(e){if(!("console"in s.OW))return e();let t=s.OW.console,i={},n=Object.keys(o);n.forEach(e=>{let n=o[e];i[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=i[e]})}}let l=(n=!1,r={enable:()=>{n=!0},disable:()=>{n=!1},isEnabled:()=>n},["debug","info","warn","error","log","assert","trace"].forEach(e=>{r[e]=()=>void 0}),r);i.d(t,{pq:()=>a},{vF:l})},7999(e,t,i){"use strict";var n=i(8878),r=i(1392);function s(){let e=r.OW,t=e.crypto||e.msCrypto,i=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(i=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&i())>>e/4).toString(16))}function o(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function a(e){let{message:t,event_id:i}=e;if(t)return t;let n=o(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||i||"<unknown>":i||"<unknown>"}function l(e,t,i){let n=e.exception=e.exception||{},r=n.values=n.values||[],s=r[0]=r[0]||{};s.value||(s.value=t||""),s.type||(s.type=i||"Error")}function c(e,t){let i=o(e);if(!i)return;let n=i.mechanism;if(i.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n&&n.data,...t.data};i.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,n.my)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}i.d(t,{$X:()=>a,GR:()=>u,M6:()=>c,eJ:()=>s,gO:()=>l,k9:()=>d})},8878(e,t,i){"use strict";i.d(t,{my:()=>o,W4:()=>c,Ce:()=>p,HF:()=>h,sp:()=>a,u4:()=>l});var n=i(9623);let r=(0,i(1392).VZ)();i(5811);var s=i(1994);function o(e,t,i){try{Object.defineProperty(e,t,{value:i,writable:!0,configurable:!0})}catch(e){}}function a(e){return e.__sentry_original__}function l(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function c(e){if((0,n.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...d(e)};if(!(0,n.xH)(e))return e;{let t={type:e.type,target:u(e.target),currentTarget:u(e.currentTarget),...d(e)};return"u">typeof CustomEvent&&(0,n.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function u(e){try{return(0,n.vq)(e)?function(e,t={}){if(!e)return"<unknown>";try{let i,s=e,o=[],a=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;s&&a++<5&&(i=function(e,t){let i,s,o,a,l,c=[];if(!e||!e.tagName)return"";if(r.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;c.push(e.tagName.toLowerCase());let u=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(u&&u.length)u.forEach(e=>{c.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&c.push(`#${e.id}`),(i=e.className)&&(0,n.Kg)(i))for(s=i.split(/\s+/),l=0;l<s.length;l++)c.push(`.${s[l]}`);let d=["aria-label","type","name","title","alt"];for(l=0;l<d.length;l++)o=d[l],(a=e.getAttribute(o))&&c.push(`[${o}="${a}"]`);return c.join("")}(s,c),"html"!==i&&(!(a>1)||!(l+3*o.length+i.length>=u)));)o.push(i),l+=i.length,s=s.parentNode;return o.reverse().join(" > ")}catch(e){return"<unknown>"}}(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function d(e){if("object"!=typeof e||null===e)return{};{let t={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}}function h(e,t=40){let i=Object.keys(c(e));if(i.sort(),!i.length)return"[object has no keys]";if(i[0].length>=t)return(0,s.xv)(i[0],t);for(let e=i.length;e>0;e--){let n=i.slice(0,e).join(", ");if(!(n.length>t)){if(e===i.length)return n;return(0,s.xv)(n,t)}}return""}function p(e){return function e(t,i){if(function(e){if(!(0,n.Qd)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let n=i.get(t);if(void 0!==n)return n;let r={};for(let n of(i.set(t,r),Object.keys(t)))void 0!==t[n]&&(r[n]=e(t[n],i));return r}if(Array.isArray(t)){let n=i.get(t);if(void 0!==n)return n;let r=[];return i.set(t,r),t.forEach(t=>{r.push(e(t,i))}),r}return t}(e,new Map)}},1994(e,t,i){"use strict";var n=i(9623);function r(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t=[],i=!1){return t.some(t=>(function(e,t,i=!1){return!!(0,n.Kg)(e)&&((0,n.gd)(t)?t.test(e):!!(0,n.Kg)(t)&&(i?e===t:e.includes(t)))})(e,t,i))}i.d(t,{Xr:()=>s,xv:()=>r})},7279(e,t,i){"use strict";var n,r,s=i(9623);function o(e){return new l(t=>{t(e)})}function a(e){return new l((t,i)=>{i(e)})}(n=r||(r={}
3))[n.PENDING=0]="PENDING",n[n.RESOLVED=1]="RESOLVED",n[n.REJECTED=2]="REJECTED";class l{constructor(e){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new l((i,n)=>{this._handlers.push([!1,t=>{if(e)try{i(e(t))}catch(e){n(e)}else i(t)},e=>{if(t)try{i(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new l((t,i)=>{let n,r;return this.then(t=>{r=!1,n=t,e&&e()},t=>{r=!0,n=t,e&&e()}).then(()=>{r?i(n):t(n)})})}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===r.PENDING){if((0,s.Qg)(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)})}}}i.d(t,{T2:()=>l,XW:()=>o,xg:()=>a})},5306(e,t,i){"use strict";var n=i(1392);function r(){return Date.now()/1e3}let s=function(){let{performance:e}=n.OW;if(!e||!e.now)return r;let t=Date.now()-e.now(),i=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(i+e.now())/1e3}();(()=>{let{performance:e}=n.OW;if(!e||!e.now)return;let t=e.now(),i=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-i):36e5,s=e.timing&&e.timing.navigationStart,o="number"==typeof s?Math.abs(s+t-i):36e5;if((r<36e5||o<36e5)&&r<=o)return e.timeOrigin})(),i.d(t,{lu:()=>r},{zf:s})},1392(e,t,i){"use strict";function n(e){return e&&e.Math==Math?e:void 0}let r="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof i.g&&n(i.g)||function(){return this}()||{};function s(){return r}function o(e,t,i){let n=i||r,s=n.__SENTRY__=n.__SENTRY__||{};return s[e]||(s[e]=t())}i.d(t,{BY:()=>o,VZ:()=>s},{OW:r})},8635(e,t,i){"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}i.d(t,{_:()=>n})},375(e,t,i){"use strict";var n=0;function r(e){return"__private_"+n+++"_"+e}i.d(t,{_:()=>r})},228(e,t,i){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}i.d(t,{_:()=>n})},6100(e,t,i){"use strict";function n(e,t){if(null==e)return{};var i,n,r={},s=Object.getOwnPropertyNames(e);for(n=0;n<s.length;n++)i=s[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i]);return r}i.d(t,{_:()=>n})},8619(e,t,i){"use strict";function n(e,t){return t||(t=e.slice(0)),e.raw=t,e}i.d(t,{_:()=>n})},6555(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i}).join("")},t.i=function(e,i,n,r,s){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(o[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),i&&(u[2]&&(u[1]="@media ".concat(u[2]," {").concat(u[1],"}")),u[2]=i),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},1629(e){"use strict";e.exports=function(e){var t=e[1],i=e[3];if(!i)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(i))));return[t].concat(["/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n)," */")]).join("\n")}return[t].join("\n")}},2106(e,t){"use strict";var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(i.push(o.value),!t||i.length!==t);n=!0);}catch(e){r=!0,s=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw s}}return i}(e,t);
3throw TypeError("Invalid attempt to destructure non-iterable instance")};t.A=function(e){for(var t=void 0,n=d(e),r=[],s=[];t=n.shift();)if(o(t)||c(t)||r.length&&0===n.length&&!l(t)){s.push(t);break}else r.push(t);s=s.concat(n),a(r[0])&&r.shift();var h=i(u(r,s),2);return r=h[0],s=h[1],[r.join(" ")||null,s.join(" ")||null]};var n=["de","da","la","du","del","dei","vda.","dello","della","degli","delle","van","von","der","den","heer","ten","ter","vande","vanden","vander","voor","ver","aan","mc"],r=/,? +(i{1,3}|iv|vi{0,3}|s(enio)?r|j(unio)?r|phd|apr|rph|pe|md|ma|dmd|cme)$/i,s=/^(mrs?|m[ia]ster|miss|ms|d(octo)?r|prof|rev|fr|judge|honorable|hon|lord|lady)\.?$/i,o=function(e){return-1!=n.indexOf(e.toLowerCase())},a=function(e){return e&&e.match(s)},l=function(e){return e.match(/^\w\.?$/)},c=function(e){return e.match(/\w{1}'\w+/)},u=function(e,t){if(e.length>1&&!l(e[e.length-1])&&t.join(" ").match(/^(van der|(vda\. )?de la \w+$)/i))for(;t.unshift(e.pop()),!(e.length<=2););return[e,t]},d=function(e){return-1!=(e=e.trim().replace(/\s+/g," ").replace(r,"")).indexOf(",")?e.split(/\s*,\s*/,2).map(function(e){return e||null}).reverse():e.split(/\s+/)}},2032(e,t,i){e.exports=i(5274)(i(177),"DataView")},7497(e,t,i){var n=i(3124),r=i(5346),s=i(2045),o=i(3793),a=i(5529);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},3451(e,t,i){var n=i(6074),r=i(7260),s=i(5471),o=i(5187),a=i(331);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},3675(e,t,i){e.exports=i(5274)(i(177),"Map")},3286(e,t,i){var n=i(8276),r=i(1362),s=i(4045),o=i(2593),a=i(1049);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},5728(e,t,i){e.exports=i(5274)(i(177),"Promise")},7845(e,t,i){e.exports=i(5274)(i(177),"Set")},8095(e,t,i){var n=i(3286),r=i(3488),s=i(8079);function o(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t<i;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=s,e.exports=o},9053(e,t,i){var n=i(3451),r=i(1056),s=i(5158),o=i(8913),a=i(8445),l=i(1573);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=a,c.prototype.set=l,e.exports=c},8981(e,t,i){e.exports=i(177).Symbol},7576(e,t,i){e.exports=i(177).Uint8Array},1979(e,t,i){e.exports=i(5274)(i(177),"WeakMap")},1717(e){e.exports=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}},8733(e){e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}},4366(e){e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,s=[];++i<n;){var o=e[i];t(o,i,e)&&(s[r++]=o)}return s}},3529(e,t,i){var n=i(3303);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},6125(e){e.exports=function(e,t,i){for(var n=-1,r=null==e?0:e.length;++n<r;)if(i(t,e[n]))return!0;return!1}},4003(e,t,i){var n=i(1476),r=i(8320),s=i(2053),o=i(4548),a=i(4597),l=i(8835),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=s(e),u=!i&&r(e),d=!i&&!u&&o(e),h=!i&&!u&&!d&&l(e),p=i||u||d||h,m=p?n(e.length,String):[],f=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,f)))&&m.push(g);return m}},8488(e){e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}},3660(e){e.exports=function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}},2596(e){e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}},6103(e,t,i){var n=i(4156),r=i(156),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,i){var o=e[t];s.call(e,t)&&r(o,i)&&(void 0!==i||t in e)||n(e,t,i)}},9541(e,t,i){var n=i(156);e.exports=function(e,t){for(var i=e.length;i--;)if(n(e[i][0],t))return i;return-1}},2481(e,t,i){var n=i(3131),r=i(2706);e.exports=function(e,t){return e&&n(t,r(t),e)}},6618(e,t,i){var n=i(3131),r=i(7813);e.exports=function(e,t){return e&&n(t,r(t),e)}},4156(e,t,i){var n=i(6983);e.exports=function(e,t,i){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}}
3,2411(e,t,i){var n=i(9053),r=i(8733),s=i(6103),o=i(2481),a=i(6618),l=i(4830),c=i(2712),u=i(9811),d=i(6304),h=i(6910),p=i(2713),m=i(1353),f=i(5353),g=i(3435),v=i(5573),y=i(2053),b=i(4548),_=i(3086),w=i(7313),E=i(2588),S=i(2706),A=i(7813),x="[object Arguments]",C="[object Function]",T="[object Object]",k={};k[x]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[T]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[C]=k["[object WeakMap]"]=!1,e.exports=function e(t,i,I,F,O,M){var R,P=1&i,D=2&i,L=4&i;if(I&&(R=O?I(t,F,O,M):I(t)),void 0!==R)return R;if(!w(t))return t;var N=y(t);if(N){if(R=f(t),!P)return c(t,R)}else{var j=m(t),B=j==C||"[object GeneratorFunction]"==j;if(b(t))return l(t,P);if(j==T||j==x||B&&!O){if(R=D||B?{}:v(t),!P)return D?d(t,a(R,t)):u(t,o(R,t))}else{if(!k[j])return O?t:{};R=g(t,j,P)}}M||(M=new n);var U=M.get(t);if(U)return U;M.set(t,R),E(t)?t.forEach(function(n){R.add(e(n,i,I,n,t,M))}):_(t)&&t.forEach(function(n,r){R.set(r,e(n,i,I,r,t,M))});var z=L?D?p:h:D?A:S,q=N?void 0:z(t);return r(q||t,function(n,r){q&&(n=t[r=n]),s(R,r,e(n,i,I,r,t,M))}),R}},6124(e,t,i){var n=i(7313),r=Object.create;e.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()},4087(e,t,i){var n=i(8095),r=i(3529),s=i(6125),o=i(8488),a=i(3169),l=i(6599);e.exports=function(e,t,i,c){var u=-1,d=r,h=!0,p=e.length,m=[],f=t.length;if(!p)return m;i&&(t=o(t,a(i))),c?(d=s,h=!1):t.length>=200&&(d=l,h=!1,t=new n(t));e:for(;++u<p;){var g=e[u],v=null==i?g:i(g);if(g=c||0!==g?g:0,h&&v==v){for(var y=f;y--;)if(t[y]===v)continue e;m.push(g)}else d(t,v,c)||m.push(g)}return m}},9351(e){e.exports=function(e,t,i,n){for(var r=e.length,s=i+(n?1:-1);n?s--:++s<r;)if(t(e[s],s,e))return s;return-1}},5612(e,t,i){var n=i(3660),r=i(487);e.exports=function e(t,i,s,o,a){var l=-1,c=t.length;for(s||(s=r),a||(a=[]);++l<c;){var u=t[l];i>0&&s(u)?i>1?e(u,i-1,s,o,a):n(a,u):o||(a[a.length]=u)}return a}},2501(e,t,i){e.exports=i(2569)()},989(e,t,i){var n=i(2501),r=i(2706);e.exports=function(e,t){return e&&n(e,t,r)}},674(e,t,i){var n=i(5029),r=i(5601);e.exports=function(e,t){t=n(t,e);for(var i=0,s=t.length;null!=e&&i<s;)e=e[r(t[i++])];return i&&i==s?e:void 0}},4171(e,t,i){var n=i(3660),r=i(2053);e.exports=function(e,t,i){var s=t(e);return r(e)?s:n(s,i(e))}},100(e,t,i){var n=i(8981),r=i(3927),s=i(898),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):s(e)}},9345(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},3303(e,t,i){var n=i(9351),r=i(1219),s=i(5371);e.exports=function(e,t,i){return t==t?s(e,t,i):n(e,r,i)}},611(e,t,i){var n=i(989);e.exports=function(e,t,i,r){return n(e,function(e,n,s){t(r,i(e),n,s)}),r}},1242(e,t,i){var n=i(100),r=i(2046);e.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}},4530(e,t,i){var n=i(888),r=i(2046);e.exports=function e(t,i,s,o,a){return t===i||(null!=t&&null!=i&&(r(t)||r(i))?n(t,i,s,o,e,a):t!=t&&i!=i)}},888(e,t,i){var n=i(9053),r=i(419),s=i(1622),o=i(9661),a=i(1353),l=i(2053),c=i(4548),u=i(8835),d="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,f,g,v){var y=l(e),b=l(t),_=y?h:a(e),w=b?h:a(t);_=_==d?p:_,w=w==d?p:w;var E=_==p,S=w==p,A=_==w;
vendor: 5,073 bytes, line 3
3if(A&&c(e)){if(!c(t))return!1;y=!0,E=!1}if(A&&!E)return v||(v=new n),y||u(e)?r(e,t,i,f,g,v):s(e,t,_,i,f,g,v);if(!(1&i)){var x=E&&m.call(e,"__wrapped__"),C=S&&m.call(t,"__wrapped__");if(x||C){var T=x?e.value():e,k=C?t.value():t;return v||(v=new n),g(T,k,i,f,v)}}return!!A&&(v||(v=new n),o(e,t,i,f,g,v))}},3704(e,t,i){var n=i(1353),r=i(2046);e.exports=function(e){return r(e)&&"[object Map]"==n(e)}},8515(e,t,i){var n=i(9053),r=i(4530);e.exports=function(e,t,i,s){var o=i.length,a=o,l=!s;if(null==e)return!a;for(e=Object(e);o--;){var c=i[o];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var u=(c=i[o])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new n;if(s)var m=s(d,h,u,e,t,p);if(!(void 0===m?r(h,d,3,s,p):m))return!1}}return!0}},1219(e){e.exports=function(e){return e!=e}},1119(e,t,i){var n=i(2902),r=i(4164),s=i(7313),o=i(2949),a=/^\[object .+?Constructor\]$/,l=Object.prototype,c=Function.prototype.toString,u=l.hasOwnProperty,d=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||r(e))&&(n(e)?d:a).test(o(e))}},3743(e,t,i){var n=i(1353),r=i(2046);e.exports=function(e){return r(e)&&"[object Set]"==n(e)}},5105(e,t,i){var n=i(100),r=i(3258),s=i(2046),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&r(e.length)&&!!o[n(e)]}},5081(e,t,i){var n=i(3699),r=i(9158),s=i(1572),o=i(2053),a=i(2443);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?o(e)?r(e[0],e[1]):n(e):a(e)}},7719(e,t,i){var n=i(5363),r=i(1318),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return r(e);var t=[];for(var i in Object(e))s.call(e,i)&&"constructor"!=i&&t.push(i);return t}},4619(e,t,i){var n=i(7313),r=i(5363),s=i(1585),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=r(e),i=[];for(var a in e)"constructor"==a&&(t||!o.call(e,a))||i.push(a);return i}},3699(e,t,i){var n=i(8515),r=i(7692),s=i(6281);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(i){return i===e||n(i,e,t)}}},9158(e,t,i){var n=i(4530),r=i(4456),s=i(563),o=i(7782),a=i(9408),l=i(6281),c=i(5601);e.exports=function(e,t){return o(e)&&a(t)?l(c(e),t):function(i){var o=r(i,e);return void 0===o&&o===t?s(i,e):n(t,o,3)}}},4672(e,t,i){var n=i(674),r=i(5998),s=i(5029);e.exports=function(e,t,i){for(var o=-1,a=t.length,l={};++o<a;){var c=t[o],u=n(e,c);i(u,c)&&r(l,s(c,e),u)}return l}},4225(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},6123(e,t,i){var n=i(674);e.exports=function(e){return function(t){return n(t,e)}}},3754(e,t,i){var n=i(1572),r=i(4793),s=i(1933);e.exports=function(e,t){return s(r(e,t,n),e+"")}},5998(e,t,i){var n=i(6103),r=i(5029),s=i(4597),o=i(7313),a=i(5601);e.exports=function(e,t,i,l){if(!o(e))return e;t=r(t,e);for(var c=-1,u=t.length,d=u-1,h=e;null!=h&&++c<u;){var p=a(t[c]),m=i;if("__proto__"===p||"constructor"===p||"prototype"===p)break;if(c!=d){var f=h[p];void 0===(m=l?l(f,p,h):void 0)&&(m=o(f)?f:s(t[c+1])?[]:{})}n(h,p,m),h=h[p]}return e}},9366(e,t,i){var n=i(7418),r=i(6983),s=i(1572);e.exports=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:s},1476(e){e.exports=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}},6192(e,t,i){var n=i(8981),r=i(8488),s=i(2053),o=i(5758),a=1/0,l=n?n.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return r(t,e)+"";if(o(t))return c?c.call(t):"";var i=t+"";return"0"==i&&1/t==-a?"-0":i}},3396(e,t,i){var n=i(7668),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},3169(e){e.exports=function(e){return function(t){return e(t)}}},8281(e,t,i){var n=i(8095),r=i(3529),s=i(6125),o=i(6599),a=i(4766),l=i(1155);e.exports=function(e,t,i){var c=-1,u=r,d=e.length,h=!0,p=[],m=p;if(i)h=!1,u=s;else if(d>=200){var f=t?null:a(e);if(f)return l(f);h=!1,u=o,m=new n}else m=t?[]:p;e:for(;++c<d;){var g=e[c],v=t?t(g):g;if(g=i||0!==g?g:0,h&&v==v){for(var y=m.length;y--;)if(m[y]===v)continue e;t&&m.push(v),p.push(g)}else u(m,v,i)||(m!==p&&m.push(v),p.push(g))}return p}},6599(e){e.exports=function(e,t){return e.has(t)}},5029(e,t,i){var n=i(2053),r=i(7782),s=i(4582),o=i(1434);e.exports=function(e,t){return n(e)?e:r(e,t)?[e]:s(o(e))}},737(e,t,i){var n=i(7576);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},4830(e,t,i){e=i.nmd(e);
vendor: 2,388 bytes, line 3
3var n=i(177),r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,o=s&&s.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var i=e.length,n=a?a(i):new e.constructor(i);return e.copy(n),n}},1365(e,t,i){var n=i(737);e.exports=function(e,t){var i=t?n(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}},4349(e){var t=/\w*$/;e.exports=function(e){var i=new e.constructor(e.source,t.exec(e));return i.lastIndex=e.lastIndex,i}},4932(e,t,i){var n=i(8981),r=n?n.prototype:void 0,s=r?r.valueOf:void 0;e.exports=function(e){return s?Object(s.call(e)):{}}},7349(e,t,i){var n=i(737);e.exports=function(e,t){var i=t?n(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}},2712(e){e.exports=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}},3131(e,t,i){var n=i(6103),r=i(4156);e.exports=function(e,t,i,s){var o=!i;i||(i={});for(var a=-1,l=t.length;++a<l;){var c=t[a],u=s?s(i[c],e[c],c,i,e):void 0;void 0===u&&(u=e[c]),o?r(i,c,u):n(i,c,u)}return i}},9811(e,t,i){var n=i(3131),r=i(4692);e.exports=function(e,t){return n(e,r(e),t)}},6304(e,t,i){var n=i(3131),r=i(8235);e.exports=function(e,t){return n(e,r(e),t)}},1253(e,t,i){e.exports=i(177)["__core-js_shared__"]},2569(e){e.exports=function(e){return function(t,i,n){for(var r=-1,s=Object(t),o=n(t),a=o.length;a--;){var l=o[e?a:++r];if(!1===i(s[l],l,s))break}return t}}},394(e,t,i){var n=i(611);e.exports=function(e,t){return function(i,r){return n(i,e,t(r),{})}}},4766(e,t,i){var n=i(7845),r=i(6514),s=i(1155);e.exports=n&&1/s(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r},6983(e,t,i){var n=i(5274);e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},419(e,t,i){var n=i(8095),r=i(2596),s=i(6599);e.exports=function(e,t,i,o,a,l){var c=1&i,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var m=-1,f=!0,g=2&i?new n:void 0;for(l.set(e,t),l.set(t,e);++m<u;){var v=e[m],y=t[m];if(o)var b=c?o(y,v,m,t,e,l):o(v,y,m,e,t,l);if(void 0!==b){if(b)continue;f=!1;break}if(g){if(!r(t,function(e,t){if(!s(g,t)&&(v===e||a(v,e,i,o,l)))return g.push(t)})){f=!1;break}}else if(!(v===y||a(v,y,i,o,l))){f=!1;break}}return l.delete(e),l.delete(t),f}},1622(e,t,i){var n=i(8981),r=i(7576),s=i(156),o=i(419),a=i(2385),l=i(1155),c=n?n.prototype:void 0,u=c?c.valueOf
3:void 0;e.exports=function(e,t,i,n,c,d,h){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new r(e),new r(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var m=1&n;if(p||(p=l),e.size!=t.size&&!m)break;var f=h.get(e);if(f)return f==t;n|=2,h.set(e,t);var g=o(p(e),p(t),n,c,d,h);return h.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},9661(e,t,i){var n=i(6910),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,s,o,a){var l=1&i,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:r.call(t,h)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var f=!0;a.set(e,t),a.set(t,e);for(var g=l;++d<u;){var v=e[h=c[d]],y=t[h];if(s)var b=l?s(y,v,h,t,e,a):s(v,y,h,e,t,a);if(!(void 0===b?v===y||o(v,y,i,s,a):b)){f=!1;break}g||(g="constructor"==h)}if(f&&!g){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(f=!1)}return a.delete(e),a.delete(t),f}},8684(e,t,i){e.exports="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g},6910(e,t,i){var n=i(4171),r=i(4692),s=i(2706);e.exports=function(e){return n(e,s,r)}},2713(e,t,i){var n=i(4171),r=i(8235),s=i(7813);e.exports=function(e){return n(e,s,r)}},999(e,t,i){var n=i(7798);e.exports=function(e,t){var i=e.__data__;return n(t)?i["string"==typeof t?"string":"hash"]:i.map}},7692(e,t,i){var n=i(9408),r=i(2706);e.exports=function(e){for(var t=r(e),i=t.length;i--;){var s=t[i],o=e[s];t[i]=[s,o,n(o)]}return t}},5274(e,t,i){var n=i(1119),r=i(7644);e.exports=function(e,t){var i=r(e,t);return n(i)?i:void 0}},1291(e,t,i){e.exports=i(5923)(Object.getPrototypeOf,Object)},3927(e,t,i){var n=i(8981),r=Object.prototype,s=r.hasOwnProperty,o=r.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),i=e[a];try{e[a]=void 0;var n=!0}catch(e){}var r=o.call(e);return n&&(t?e[a]=i:delete e[a]),r}},4692(e,t,i){var n=i(4366),r=i(4805),s=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols;e.exports=o?function(e){return null==e?[]:n(o(e=Object(e)),function(t){return s.call(e,t)})}:r},8235(e,t,i){var n=i(3660),r=i(1291),s=i(4692),o=i(4805);e.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,s(e)),e=r(e);return t}:o},1353(e,t,i){var n=i(2032),r=i(3675),s=i(5728),o=i(7845),a=i(1979),l=i(100),c=i(2949),u="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",m="[object DataView]",f=c(n),g=c(r),v=c(s),y=c(o),b=c(a),_=l;(n&&_(new n(new ArrayBuffer(1)))!=m||r&&_(new r)!=u||s&&_(s.resolve())!=d||o&&_(new o)!=h||a&&_(new a)!=p)&&(_=function(e){var t=l(e),i="[object Object]"==t?e.constructor:void 0,n=i?c(i):"";if(n)switch(n){case f:return m;case g:return u;case v:return d;case y:return h;case b:return p}return t}),e.exports=_},7644(e){e.exports=function(e,t){return null==e?void 0:e[t]}},4634(e,t,i){var n=i(5029),r=i(8320),s=i(2053),o=i(4597),a=i(3258),l=i(5601);e.exports=function(e,t,i){t=n(t,e);for(var c=-1,u=t.length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&i(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&a(u)&&o(h,u)&&(s(e)||r(e))}},3124(e,t,i){var n=i(646);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},5346(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},2045(e,t,i){var n=i(646),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return r.call(t,e)?t[e]:void 0}},3793(e,t,i){var n=i(646),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)}},5529(e,t,i){var n=i(646);e.exports=function(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5353(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var i=e.length,n=new e.constructor(i);return i&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},3435(e,t,i){var n=i(737),r=i(1365),s=i(4349),o=i(4932),a=i(7349);e.exports=function(e,t,i){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return r(e,i);
3case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,i);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return s(e);case"[object Symbol]":return o(e)}}},5573(e,t,i){var n=i(6124),r=i(1291),s=i(5363);e.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:n(r(e))}},487(e,t,i){var n=i(8981),r=i(8320),s=i(2053),o=n?n.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||r(e)||!!(o&&e&&e[o])}},4597(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,i){var n=typeof e;return!!(i=null==i?0x1fffffffffffff:i)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<i}},7782(e,t,i){var n=i(2053),r=i(5758),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var i=typeof e;return!!("number"==i||"symbol"==i||"boolean"==i||null==e||r(e))||o.test(e)||!s.test(e)||null!=t&&e in Object(t)}},7798(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4164(e,t,i){var n,r=i(1253),s=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!s&&s in e}},5363(e){var t=Object.prototype;e.exports=function(e){var i=e&&e.constructor;return e===("function"==typeof i&&i.prototype||t)}},9408(e,t,i){var n=i(7313);e.exports=function(e){return e==e&&!n(e)}},6074(e){e.exports=function(){this.__data__=[],this.size=0}},7260(e,t,i){var n=i(9541),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0)&&(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}},5471(e,t,i){var n=i(9541);e.exports=function(e){var t=this.__data__,i=n(t,e);return i<0?void 0:t[i][1]}},5187(e,t,i){var n=i(9541);e.exports=function(e){return n(this.__data__,e)>-1}},331(e,t,i){var n=i(9541);e.exports=function(e,t){var i=this.__data__,r=n(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this}},8276(e,t,i){var n=i(7497),r=i(3451),s=i(3675);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||r),string:new n}}},1362(e,t,i){var n=i(999);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},4045(e,t,i){var n=i(999);e.exports=function(e){return n(this,e).get(e)}},2593(e,t,i){var n=i(999);e.exports=function(e){return n(this,e).has(e)}},1049(e,t,i){var n=i(999);e.exports=function(e,t){var i=n(this,e),r=i.size;return i.set(e,t),this.size+=+(i.size!=r),this}},2385(e){e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}},6281(e){e.exports=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}}},2412(e,t,i){var n=i(9572);e.exports=function(e){var t=n(e,function(e){return 500===i.size&&i.clear(),e}),i=t.cache;return t}},646(e,t,i){e.exports=i(5274)(Object,"create")},1318(e,t,i){e.exports=i(5923)(Object.keys,Object)},1585(e){e.exports=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}},9517(e,t,i){e=i.nmd(e);var n=i(8684),r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,o=s&&s.exports===r&&n.process,a=function(){try{var e=s&&s.require&&s.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},898(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5923(e){e.exports=function(e,t){return function(i){return e(t(i))}}},4793(e,t,i){var n=i(1717),r=Math.max;e.exports=function(e,t,i){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,o=-1,a=r(s.length-t,0),l=Array(a);++o<a;)l[o]=s[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=s[o];return c[t]=i(l),n(e,this,c)}}},177(e,t,i){var n=i(8684),r="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||r||Function("return this")()},3488(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8079(e){e.exports=function(e){return this.__data__.has(e)}},1155(e){e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}},1933(e,t,i){var n=i(9366);e.exports=i(5556)(n)},5556(e){var t=Date.now;e.exports=function(e){var i=0,n=0;return function(){var r=t(),s=16-(r-n);if(n=r,s>0){if(++i>=800)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}},1056(e,t,i){var n=i(3451);e.exports=function(){this.__data__=new n,this.size=0}},5158(e){e.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},8913(e){e.exports=function(e){return this.__data__.get(e)}},8445(e){e.exports=function(e){return this.__data__.has(e)}},1573(e,t,i){var n=i(3451),r=i(3675),s=i(3286);e.exports=function(e,t){var i=this.__data__;if(i instanceof n){var o=i.__data__;if(!r||o.length<199)return o.push([e,t]),this.size=++i.size,this;i=this.__data__=new s(o)}return i.set(e,t),this.size=i.size,this}},5371(e){e.exports=function(e,t,i){for(var n=i-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}},4582(e,t,i){var n=i(2412),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g;e.exports=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,i,n,r){t.push(n?r.replace(s,"$1"):i||e)}),t})},5601(e,t,i){var n=i(5758),r=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}},2949(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7668(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},2269(e,t,i){var n=i(4749);e.exports=function(e,t){var i;if("function"!=typeof t)throw TypeError("Expected a function");return e=n(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=void 0),i}}},9491(e,t,i){var n=i(2411);e.exports=function(e){return n(e,5)}},6933(e){e.exports=function(e){for(var t=-1,i=null==e?0:e.length,n=0,r=[];++t<i;){var s=e[t];s&&(r[n++]=s)}return r}},7418(e){e.exports=function(e){return function(){return e}}},7753(e,t,i){var n=i(8034).pS,r=i(8034).Kj,s=i(7313),o=i(6424),a=i(8682),l=Math.max,c=Math.min;e.exports=function(e,t,i){var u,d,h,p,m,f,g=0,v=!1,y=!1,b=!0;if("function"!=typeof e)throw TypeError("Expected a function");function _(t){var i=u,n=d;return u=d=void 0,g=t,p=e.apply(n,i)}function w(e){var i=e-f,n=e-g;return void 0===f||i>=t||i<0||y&&n>=h}function E(){var e,i,r,s=o();if(w(s))return S(s);m=n(E,(e=s-f,i=s-g,r=t-e,y?c(r,h-i):r))}function S(e){return(m=void 0,b&&u)?_(e):(u=d=void 0,p)}function A(){var e,i=o(),s=w(i);
3if(u=arguments,d=this,f=i,s){if(void 0===m)return g=e=f,m=n(E,t),v?_(e):p;if(y)return r(m),m=n(E,t),_(f)}return void 0===m&&(m=n(E,t)),p}return t=a(t)||0,s(i)&&(v=!!i.leading,h=(y="maxWait"in i)?l(a(i.maxWait)||0,t):h,b="trailing"in i?!!i.trailing:b),A.cancel=function(){void 0!==m&&r(m),g=0,u=f=d=m=void 0},A.flush=function(){return void 0===m?p:S(o())},A}},7353(e,t,i){var n=i(4087),r=i(5612),s=i(3754),o=i(233);e.exports=s(function(e,t){return o(e)?n(e,r(t,1,o,!0)):[]})},156(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},4700(e,t,i){var n=i(1434),r=/[\\^$.*+?()[\]{}|]/g,s=RegExp(r.source);e.exports=function(e){return(e=n(e))&&s.test(e)?e.replace(r,"\\$&"):e}},4456(e,t,i){var n=i(674);e.exports=function(e,t,i){var r=null==e?void 0:n(e,t);return void 0===r?i:r}},563(e,t,i){var n=i(9345),r=i(4634);e.exports=function(e,t){return null!=e&&r(e,t,n)}},1572(e){e.exports=function(e){return e}},1198(e,t,i){var n=i(7418),r=i(394),s=i(1572),o=Object.prototype.toString;e.exports=r(function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=o.call(t)),e[t]=i},n(s))},8320(e,t,i){var n=i(1242),r=i(2046),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return r(e)&&o.call(e,"callee")&&!a.call(e,"callee")}},2053(e){e.exports=Array.isArray},2626(e,t,i){var n=i(2902),r=i(3258);e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},233(e,t,i){var n=i(2626),r=i(2046);e.exports=function(e){return r(e)&&n(e)}},4548(e,t,i){e=i.nmd(e);
3var n=i(177),r=i(8507),s=t&&!t.nodeType&&t,o=s&&e&&!e.nodeType&&e,a=o&&o.exports===s?n.Buffer:void 0,l=a?a.isBuffer:void 0;e.exports=l||r},8688(e,t,i){var n=i(4530);e.exports=function(e,t){return n(e,t)}},2902(e,t,i){var n=i(100),r=i(7313);e.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3258(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},3086(e,t,i){var n=i(3704),r=i(3169),s=i(9517),o=s&&s.isMap;e.exports=o?r(o):n},1655(e){e.exports=function(e){return null==e}},7313(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2046(e){e.exports=function(e){return null!=e&&"object"==typeof e}},2588(e,t,i){var n=i(3743),r=i(3169),s=i(9517),o=s&&s.isSet;e.exports=o?r(o):n},5758(e,t,i){var n=i(100),r=i(2046);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},8835(e,t,i){var n=i(5105),r=i(3169),s=i(9517),o=s&&s.isTypedArray;e.exports=o?r(o):n},2706(e,t,i){var n=i(4003),r=i(7719),s=i(2626);e.exports=function(e){return s(e)?n(e):r(e)}},7813(e,t,i){var n=i(4003),r=i(4619),s=i(2626);e.exports=function(e){return s(e)?n(e,!0):r(e)}},504(e,t,i){var n=i(4156),r=i(989),s=i(5081);e.exports=function(e,t){var i={};return t=s(t,3),r(e,function(e,r,s){n(i,r,t(e,r,s))}),i}},9572(e,t,i){var n=i(3286);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],s=i.cache;if(s.has(r))return s.get(r);var o=e.apply(this,n);return i.cache=s.set(r,o)||s,o};return i.cache=new(r.Cache||n),i}r.Cache=n,e.exports=r},6724(e){e.exports=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},6514(e){e.exports=function(){}},6424(e,t,i){var n=i(177);e.exports=function(){return n.Date.now()}},5270(e,t,i){var n=i(5081),r=i(6724),s=i(2090);e.exports=function(e,t){return s(e,r(n(t)))}},2639(e,t,i){var n=i(2269);e.exports=function(e){return n(2,e)}},2090(e,t,i){var n=i(8488),r=i(5081),s=i(4672),o=i(2713);e.exports=function(e,t){if(null==e)return{};var i=n(o(e),function(e){return[e]});return t=r(t),s(e,i,function(e,i){return t(e,i[0])})}},2443(e,t,i){var n=i(4225),r=i(6123),s=i(7782),o=i(5601);e.exports=function(e){return s(e)?n(o(e)):r(e)}},4805(e){e.exports=function(){return[]}},8507(e){e.exports=function(){return!1}},1442(e,t,i){var n=i(7753),r=i(7313);e.exports=function(e,t,i){var s=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return r(i)&&(s="leading"in i?!!i.leading:s,o="trailing"in i?!!i.trailing:o),n(e,t,{leading:s,maxWait:t,trailing:o})}},5988(e,t,i){var n=i(8682),r=1/0;e.exports=function(e){return e?(e=n(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},4749(e,t,i){var n=i(5988);e.exports=function(e){var t=n(e),i=t%1;return t==t?i?t-i:t:0}},8682(e,t,i){var n=i(3396),r=i(7313),s=i(5758),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||c.test(e)?u(e.slice(2),i?2:8):a.test(e)?o:+e}},1434(e,t,i){var n=i(6192);e.exports=function(e){return null==e?"":n(e)}},4331(e,t,i){var n=i(8281);e.exports=function(e){return e&&e.length?n(e):[]}},5570(e){"use strict";var t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var r={};if("abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},r)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,r){for(var s,o,a=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in s=Object(arguments[l]))i.call(s,c)&&(a[c]=s[c]);if(t){o=t(s);for(var u=0;u<o.length;u++)n.call(s,o[u])&&(a[o[u]]=s[o[u]])}}return a}:Object.assign},5753(e,t,i){"use strict";var n=i(5570),r="function"==typeof Symbol&&Symbol.for,s=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=(r&&Symbol.for("react.fragment"),r&&Symbol.for("react.strict_mode"),r&&Symbol.for("react.profiler"),r&&Symbol.for("react.provider"),r&&Symbol.for("react.context"),r&&Symbol.for("react.forward_ref"),r&&Symbol.for("react.suspense"),r&&Symbol.for("react.memo"),r&&Symbol.for("react.lazy"),"function"==typeof Symbol&&Symbol.iterator);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);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 c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},u={};function d(e,t,i){this.props=e,this.context=t,this.refs=u,this.updater=i||c}function h(){}function p(e,t,i){this.props=e,this.context=t,this.refs=u,this.updater=i||c}d.prototype.isReactComponent={},d.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(l(85));this.updater.enqueueSetState(this,e,t,"setState")},d.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=d.prototype;var m=p.prototype=new h;m.constructor=p,n(m,d.prototype),m.isPureReactComponent=!0;Object.prototype.hasOwnProperty},5062(e,t,i){"use strict";i(5753)},7441(e){function t(){}t.prototype={on:function(e,t,i){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){var n=this;function r(){n.off(e,r),t.apply(i,arguments)}return r._=t,this.on(e,r,i)}
3,emit:function(e){for(var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),n=0,r=i.length;n<r;n++)i[n].fn.apply(i[n].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),n=i[e],r=[];if(n&&t)for(var s=0,o=n.length;s<o;s++)n[s].fn!==t&&n[s].fn._!==t&&r.push(n[s]);return r.length?i[e]=r:delete i[e],this}},e.exports=t,e.exports.TinyEmitter=t},2845(e,t,i){"use strict";let n;i.d(t,{A:()=>a});let r="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),s=new Uint8Array(16),o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let a=function(e,t,i){if(r&&!t&&!e)return r();let a=(e=e||{}).random??e.rng?.()??function(){if(!n){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(s)}();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((i=i||0)<0||i+16>t.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[i+e]=a[e];return t}return function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(a)}},7341(e,t,i){"use strict";var n=i(1629),r=i.n(n),s=i(6555),o=i.n(s)()(r());o.push([e.id,"#q-messenger-frame-skip-link{all:initial !important;border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;margin:-1px !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}#q-messenger-frame-skip-link:focus{all:initial !important;position:fixed !important;top:10px !important;left:10px !important;z-index:2147483647 !important;background:#fafafa !important;color:#122124 !important;padding:1rem !important;cursor:pointer !important;border-radius:4px !important;outline:2px solid -webkit-focus-ring-color !important;outline-offset:2px !important}#q-messenger-frame{position:fixed !important;z-index:2147483642 !important;display:block !important;visibility:visible !important;content-visibility:visible !important;opacity:1 !important;top:auto !important;left:auto !important;bottom:calc(0px + var(--qualified-offer-footer-height, 0px)) !important;right:0 !important;height:0 !important;width:0 !important;overflow:hidden !important;background-color:rgba(0,0,0,0) !important;border:0 !important;padding:0 !important}#q-messenger-frame.qlfd-maximized,#q-messenger-frame.maximized{max-height:calc(100dvh - 150px);min-height:480px;width:538px !important}#q-messenger-frame.qlfd-maximized.qlfd-is-mobile,#q-messenger-frame.maximized.qlfd-is-mobile{height:100% !important;width:100% !important;min-height:100% !important;max-height:100% !important}#q-messenger-frame.qlfd-full-height{height:100% !important;width:320px !important;min-height:100% !important;max-height:100% !important}#q-messenger-frame.qlfd-disable-pointer-events{pointer-events:none !important}#q-messenger-frame.qlfd-embedded{position:relative !important;height:100% !important;width:100% !important;min-height:100% !important;max-height:100% !important;z-index:0 !important;pointer-events:all !important}#q-messenger-frame.qlfd-full-screen{position:fixed !important;height:100dvh !important;width:100% !important;max-height:100dvh;z-index:2147483647 !important}#q-messenger-frame.qlfd-not-full-screen{transition:background-color 300ms,height 0s 300ms,width 0s 300ms !important}*:has(#q-messenger-frame.qlfd-full-screen.qlfd-embedded){z-index:unset !important}","",{version:3,sources:["webpack://./app/javascript/widget/widget.string.scss"],names:[],mappings:"AAEA,6BACE,sBAAA,CAGA,mBAAA,CACA,wCAAA,CACA,+BAAA,CACA,qBAAA,CACA,0BAAA,CACA,sBAAA,CACA,oBAAA,CACA,4BAAA,CACA,oBAAA,CACA,6BAAA,CAEA,mCACE,sBAAA,CACA,yBAAA,CACA,mBAAA,CACA,oBAAA,CAEA,6BAAA,CACA,6BAAA,CACA,wBAAA,CACA,uBAAA,CACA,yBAAA,CACA,4BAAA,CACA,qDAAA,CACA,6BAAA,CAIJ,mBACE,yBAAA,CAEA,6BAAA,CACA,wBAAA,CACA,6BAAA,CACA,qCAAA,CACA,oBAAA,CACA,mBAAA,CACA,oBAAA,CACA,uEAAA,CACA,kBAAA,CACA,mBAAA,CACA,kBAAA,CACA,0BAAA,CACA,yCAAA,CACA,mBAAA,CACA,oBAAA,CAEA,+DAME,+BAAA,CACA,gBAAA,CACA,sBAAA,CAGA,6FACE,sBAAA,CACA,qBAAA,CACA,0BAAA,CACA,0BAAA,CAIJ,oCACE,sBAAA,CACA,sBAAA,CACA,0BAAA,CACA,0BAAA,CAGF,+CACE,8BAAA,CAGF,iCACE,4BAAA,CACA,sBAAA,CACA,qBAAA,CACA,0BAAA,CACA,0BAAA,CACA,oBAAA,CACA,6BAAA,CAGF,oCACE,yBAAA,CACA,wBAAA,CACA,qBAAA,CACA,iBAAA,CACA,6BAAA,CAGF,wCACE,2EACE,CAMN,yDACE,wBAAA",sourcesContent:["// DOM visibility API\n\n#q-messenger-frame-skip-link {\n all: initial !important;\n\n // visually hidden CSS: https://kittygiraudel.com/2020/12/03/a11y-advent-hiding-content/\n border: 0 !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n clip-path: inset(50%) !important;\n height: 1px !important;\n overflow: hidden !important;\n margin: -1px !important;\n padding: 0 !important;\n position: absolute !important;\n width: 1px !important;\n white-space: nowrap !important;\n\n &:focus {\n all: initial !important;\n position: fixed !important;\n top: 10px !important;\n left: 10px !important;\n // TODO(eslint): Explain why this is needed. This comment was added as part of the enforce-comment eslint rule\n z-index: 2147483647 !important;\n background: #fafafa !important;\n color: #122124 !important;\n padding: 1rem !important;\n cursor: pointer !important;\n border-radius: 4px !important;\n outline: 2px solid -webkit-focus-ring-color !important;\n outline-offset: 2px !important;\n }\n}\n\n#q-messenger-frame {\n position: fixed !important;\n // 2^31-2, reserving max for peeper cursor\n z-index: 2147483642 !important;\n display: block !important;\n visibility: visible !important;\n content-visibility: visible !important;\n opacity: 1 !important;\n top: auto !important;\n left: auto !important;\n bottom: calc(0px + var(--qualified-offer-footer-height, 0px)) !important;\n right: 0 !important;\n height: 0 !important;\n width: 0 !important;\n overflow: hidden !important;\n background-color: transparent !important;\n border: 0 !important;\n padding: 0 !important;\n\n &.qlfd-maximized,\n // TODO: .maximized is deprecated, remove once backwards compatibility is no longer needed\n &.maximized {\n // If these values are changed, please update the values that are used in\n // app/javascript/components/styles/messenger.js\n // app/javascript/widget/iframe_manager.ts -> DEFAULT_IFRAME_SIZES_CLS_ENHANCEMENTS\n max-height: calc(100dvh - 150px);\n min-height: 480px;\n width: 538px !important;\n\n // Not using media queries so that live view displays properly\n &.qlfd-is-mobile {\n height: 100% !important;\n width: 100% !important;\n min-height: 100% !important;\n max-height: 100% !important;\n }\n }\n\n &.qlfd-full-height {\n height: 100% !important;\n width: 320px !important;\n min-height: 100% !important;\n max-height: 100% !important;\n }\n\n &.qlfd-disable-pointer-events {\n pointer-events: none !important;\n }\n\n &.qlfd-embedded {\n position: relative !important;\n height: 100% !important;\n width: 100% !important;\n min-height: 100% !important;\n max-height: 100% !important;\n z-index: 0 !important;\n pointer-events: all !important;\n }\n\n &.qlfd-full-screen {\n position: fixed !important;\n height: 100dvh !important;\n width: 100% !important;\n max-height: 100dvh;\n z-index: 2147483647 !important;\n }\n\n &.qlfd-not-full-screen {\n transition:\n background-color 300ms,\n height 0s 300ms,\n width 0s 300ms !important;\n }\n}\n\n*:has(#q-messenger-frame.qlfd-full-screen.qlfd-embedded) {\n z-index: unset !important;\n}\n"],sourceRoot:""}]);let a=o.toString();i.d(t,{},{A:a})},1768(e,t,i){"use strict";let n=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`\{\|\}~\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?)+$/,r=["aol.com","att.net","comcast.net","facebook.com","gmail.com","gmx.com","googlemail.com","hotmail.com","hotmail.co.uk","mac.com","me.com","mail.com","msn.com","live.com","sbcglobal.net","verizon.net","yahoo.com","yahoo.co.uk","email.com","fastmail.fm","games.com","gmx.net","hush.com","hushmail.com","icloud.com","iname.com","inbox.com","lavabit.com","love.com","outlook.com","pobox.com","protonmail.ch","protonmail.com","proton.me","pm.me","tutanota.de","tutanota.com","tutamail.com","tuta.io","keemail.me","rocketmail.com","safe-mail.net","wow.com","ygm.com","ymail.com","zoho.com","yandex.com","bellsouth.net","charter.net","cox.net","earthlink.net","juno.com","btinternet.com","virginmedia.com","blueyonder.co.uk","freeserve.co.uk","live.co.uk","ntlworld.com","o2.co.uk","orange.net","sky.com","talktalk.co.uk","tiscali.co.uk","virgin.net","wanadoo.co.uk","bt.com","sina.com","sina.cn","qq.com","naver.com","hanmail.net","daum.
3net","nate.com","yahoo.co.jp","yahoo.co.kr","yahoo.co.id","yahoo.co.in","yahoo.com.sg","yahoo.com.ph","163.com","yeah.net","126.com","21cn.com","aliyun.com","foxmail.com","hotmail.fr","live.fr","laposte.net","yahoo.fr","wanadoo.fr","orange.fr","gmx.fr","sfr.fr","neuf.fr","free.fr","gmx.de","hotmail.de","live.de","online.de","t-online.de","web.de","yahoo.de","libero.it","virgilio.it","hotmail.it","aol.it","tiscali.it","alice.it","live.it","yahoo.it","email.it","tin.it","poste.it","teletu.it","mail.ru","rambler.ru","yandex.ru","ya.ru","list.ru","hotmail.be","live.be","skynet.be","voo.be","tvcablenet.be","telenet.be","hotmail.com.ar","live.com.ar","yahoo.com.ar","fibertel.com.ar","speedy.com.ar","arnet.com.ar","yahoo.com.mx","live.com.mx","hotmail.es","hotmail.com.mx","prodigy.net.mx","yahoo.ca","hotmail.ca","bell.net","shaw.ca","sympatico.ca","rogers.com","yahoo.com.br","hotmail.com.br","outlook.com.br","uol.com.br","bol.com.br","terra.com.br","ig.com.br","itelefonica.com.br","r7.com","zipmail.com.br","globo.com","globomail.com","oi.com.br","mailinator.com","gmai.com","gmeil.com","none.com"];i.d(t,{},{DT:(e,t=!1)=>{if(!n.test(e))return[!1,"invalid"];if(t){let t=e.split("@")[1];if(r.includes(t.toLowerCase()))return[!1,"personal"]}return[!0]}})},5391(e,t,i){"use strict";var n=i(2106);let r=/[\u2E80-\u2FFF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\u0E00-\u0E7F\u1000-\u109F\u1780-\u17FF\u0E80-\u0EFF\u0F00-\u0FFF]/;function s(e){let t=(0,n.A)(e);if(!t.includes(null))return!0;let i=t[0];if(null!==i&&(i.trim().split(/(\s+)/).length>1||-1!==e.search(/,? +(i{1,3}|iv|vi{0,3}|s(enio)?r|j(unio)?r|phd|apr|rph|pe|md|ma|dmd|cme)$/i)))return!0;let s=e.trim().split(/\s+/),o=s[0];return!!(s.length>=2&&o&&/['\u2018\u2019\u02BC]/.test(o)||s.length>=2&&s.every(e=>e.length>=2)||e.trim().length>=2&&r.test(e))}i.d(t,{F:()=>s})},3490(e,t,i){"use strict";function n(e){throw Error("asserted unreachable but this was reached. value was: "+e)}i.d(t,{d:()=>n})},6373(e,t,i){"use strict";i.d(t,{Rr:()=>ev,wR:()=>eg});var n,r=i(8619),s=i(5482);function o(e,t){if(!e)throw Error(t)}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function c(e,t){for(var i,n=/\r\n|[\n\r]/g,r=1,s=t+1;(i=n.exec(e.body))&&i.index<t;)r+=1,s=t+1-(i.index+i[0].length);return{line:r,column:s}}function u(e,t){var i=e.locationOffset.column-1,n=h(i)+e.body,r=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?i:0,l=t.column+a,c="".concat(e.name,":").concat(o,":").concat(l,"\n"),u=n.split(/\r\n|[\n\r]/g),p=u[r];if(p.length>120){for(var m=Math.floor(l/80),f=l%80,g=[],v=0;v<p.length;v+=80)g.push(p.slice(v,v+80));return c+d([["".concat(o),g[0]]].concat(g.slice(1,m+1).map(function(e){return["",e]}),[[" ",h(f-1)+"^"],["",g[m+1]]]))}return c+d([["".concat(o-1),u[r-1]],["".concat(o),p],["",h(l-1)+"^"],["".concat(o+1),u[r+1]]])}function d(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),i=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,n=e[0],r=e[1];return h(i-(t=n).length)+t+(r?" | "+r:" |")}).join("\n")}function h(e){return Array(e+1).join(" ")}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function f(e,t){return t&&("object"===p(t)||"function"==typeof t)?t:g(e)}function g(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){var i;if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return y(e,arguments,w(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_(n,e)})(e)}function y(e,t,i){return(y=b()?Reflect.construct:function(e,t,i){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return i&&_(r,i.prototype),r}).apply(null,arguments)}function b(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}
3function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&_(r,e);var t,i,n=(t=b(),function(){var e,i=w(r);return e=t?Reflect.construct(i,arguments,w(this).constructor):i.apply(this,arguments),f(this,e)});function r(e,t,i,s,o,l,u){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");(w=n.call(this,e)).name="GraphQLError",w.originalError=null!=l?l:void 0,w.nodes=S(Array.isArray(t)?t:t?[t]:void 0);for(var d=[],h=0,p=null!=(E=w.nodes)?E:[];h<p.length;h++){var v,y,b,_,w,E,A=p[h].loc;null!=A&&d.push(A)}d=S(d),w.source=null!=i?i:null==(y=d)?void 0:y[0].source,w.positions=null!=s?s:null==(b=d)?void 0:b.map(function(e){return e.start}),w.locations=s&&i?s.map(function(e){return c(i,e)}):null==(_=d)?void 0:_.map(function(e){return c(e.source,e.start)}),w.path=null!=o?o:void 0;var x=null==l?void 0:l.extensions;return null==u&&"object"==a(v=x)&&null!==v?w.extensions=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?m(Object(i),!0).forEach(function(t){var n,r,s;n=e,r=t,s=i[t],r in n?Object.defineProperty(n,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[r]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({},x):w.extensions=null!=u?u:{},(Object.defineProperties(g(w),{message:{enumerable:!0},locations:{enumerable:null!=w.locations},path:{enumerable:null!=w.path},extensions:{enumerable:null!=w.extensions&&Object.keys(w.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=l&&l.stack)?(Object.defineProperty(g(w),"stack",{value:l.stack,writable:!0,configurable:!0}),f(w)):(Error.captureStackTrace?Error.captureStackTrace(g(w),r):Object.defineProperty(g(w),"stack",{value:Error().stack,writable:!0,configurable:!0}),w)}return i=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var i=0,n=e.nodes;i<n.length;i++){var r,s=n[i];s.loc&&(t+="\n\n"+u((r=s.loc).source,c(r.source,r.start)))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var l=a[o];t+="\n\n"+u(e.source,l)}return t}(this)}},{key:"toJSON",value:function(){var e,t,i,n,r,s;return e=this,e||o(0,"Received null or undefined error."),i=null!=(t=e.message)?t:"An unknown error occurred.",n=e.locations,r=e.path,(s=e.extensions)&&Object.keys(s).length>0?{message:i,locations:n,path:r,extensions:s}:{message:i,locations:n,path:r}}},{key:l,get:function(){return"Object"}}],function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(r.prototype,i),r}(v(Error));function S(e){return void 0===e||0===e.length?void 0:e}function A(e,t,i){return new E("Syntax Error: ".concat(i),void 0,e,[t])}var x=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),C="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function T(e){var t=e.prototype.toJSON;"function"==typeof t||function(){throw Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,C&&(e.prototype[C]=t)}var k=function(){function e(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();T(k);var I=function(){function e(e,t,i,n,r,s,o){this.kind=e,this.start=t,this.end=i,this.line=n,this.column=r,this.value=o,this.prev=s,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();T(I);var F=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}
3",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var M=function(){var e;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||o(0,"Body must be a string. Received: ".concat(function e(t,i){switch(O(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":if(null===t)return"null";return function(t,i){if(-1!==i.indexOf(t))return"[Circular]";var n,r,s,o,a,l=[].concat(i,[t]),c="function"==typeof(r=(n=t)[String(C)])?r:"function"==typeof n.inspect?n.inspect:void 0;if(void 0!==c){var u=c.call(t);if(u!==t)return"string"==typeof u?u:e(u,l)}else if(Array.isArray(t)){var d=t,h=l;if(0===d.length)return"[]";if(h.length>2)return"[Array]";for(var p=Math.min(10,d.length),m=d.length-p,f=[],g=0;g<p;++g)f.push(e(d[g],h));return 1===m?f.push("... 1 more item"):m>1&&f.push("... ".concat(m," more items")),"["+f.join(", ")+"]"}return s=t,o=l,0===(a=Object.keys(s)).length?"{}":o.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var i=e.constructor.name;if("string"==typeof i&&""!==i)return i}return t}(s)+"]":"{ "+a.map(function(t){var i=e(s[t],o);return t+": "+i}).join(", ")+" }"}(t,i);default:return String(t)}}(e,[]),".")),this.body=e,this.name=t,this.locationOffset=i,this.locationOffset.line>0||o(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(0,"column in locationOffset is 1-indexed and must be positive.")}return e=[{key:l,get:function(){return"Source"}}],function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),R=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function P(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&" "!==e[t])return!1;return!0}var D=function(){function e(e){var t=new I(F.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e,t=this.token;if(t.kind!==F.EOF)do t=null!=(e=t.next)?e:t.next=function(e,t){for(var i=e.source,n=i.body,r=n.length,s=t.end;s<r;){var o,a=n.charCodeAt(s),l=e.line,c=1+s-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===n.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 33:return new I(F.BANG,s,s+1,l,c,t);case 35:return function(e,t,i,n,r){var s,o=e.body,a=t;do s=o.charCodeAt(++a);while(!isNaN(s)&&(s>31||9===s))return new I(F.COMMENT,t,a,i,n,r,o.slice(t+1,a))}(i,s,l,c,t);case 36:return new I(F.DOLLAR,s,s+1,l,c,t);case 38:return new I(F.AMP,s,s+1,l,c,t);case 40:return new I(F.PAREN_L,s,s+1,l,c,t);case 41:return new I(F.PAREN_R,s,s+1,l,c,t);case 46:if(46===n.charCodeAt(s+1)&&46===n.charCodeAt(s+2))return new I(F.SPREAD,s,s+3,l,c,t);break;case 58:return new I(F.COLON,s,s+1,l,c,t);case 61:return new I(F.EQUALS,s,s+1,l,c,t);case 64:return new I(F.AT,s,s+1,l,c,t);case 91:return new I(F.BRACKET_L,s,s+1,l,c,t);case 93:return new I(F.BRACKET_R,s,s+1,l,c,t);case 123:return new I(F.BRACE_L,s,s+1,l,c,t);case 124:return new I(F.PIPE,s,s+1,l,c,t);case 125:return new I(F.BRACE_R,s,s+1,l,c,t);case 34:if(34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2))return function(e,t,i,n,r,s){for(var o=e.body,a=t+3,l=a,c=0,u="";
vendor: 18,718 bytes, line 3
3a<o.length&&!isNaN(c=o.charCodeAt(a));){if(34===c&&34===o.charCodeAt(a+1)&&34===o.charCodeAt(a+2))return u+=o.slice(l,a),new I(F.BLOCK_STRING,t,a+3,i,n,r,function(e){var t=e.split(/\r\n|[\n\r]/g),i=function(e){for(var t,i=!0,n=!0,r=0,s=null,o=0;o<e.length;++o)switch(e.charCodeAt(o)){case 13:10===e.charCodeAt(o+1)&&++o;case 10:i=!1,n=!0,r=0;break;case 9:case 32:++r;break;default:n&&!i&&(null===s||r<s)&&(s=r),n=!1}return null!=(t=s)?t:0}(e);if(0!==i)for(var n=1;n<t.length;n++)t[n]=t[n].slice(i);for(var r=0;r<t.length&&P(t[r]);)++r;for(var s=t.length;s>r&&P(t[s-1]);)--s;return t.slice(r,s).join("\n")}(u));if(c<32&&9!==c&&10!==c&&13!==c)throw A(e,a,"Invalid character within String: ".concat(L(c),"."));10===c?(++a,++s.line,s.lineStart=a):13===c?(10===o.charCodeAt(a+1)?a+=2:++a,++s.line,s.lineStart=a):92===c&&34===o.charCodeAt(a+1)&&34===o.charCodeAt(a+2)&&34===o.charCodeAt(a+3)?(u+=o.slice(l,a)+'"""',a+=4,l=a):++a}throw A(e,a,"Unterminated string.")}(i,s,l,c,t,e);return function(e,t,i,n,r){for(var s=e.body,o=t+1,a=o,l=0,c="";o<s.length&&!isNaN(l=s.charCodeAt(o))&&10!==l&&13!==l;){if(34===l)return c+=s.slice(a,o),new I(F.STRING,t,o+1,i,n,r,c);if(l<32&&9!==l)throw A(e,o,"Invalid character within String: ".concat(L(l),"."));if(++o,92===l){switch(c+=s.slice(a,o-1),l=s.charCodeAt(o)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+=" ";break;case 117:var u,d,h,p,m=(u=s.charCodeAt(o+1),d=s.charCodeAt(o+2),h=s.charCodeAt(o+3),p=s.charCodeAt(o+4),j(u)<<12|j(d)<<8|j(h)<<4|j(p));if(m<0){var f=s.slice(o+1,o+5);throw A(e,o,"Invalid character escape sequence: \\u".concat(f,"."))}c+=String.fromCharCode(m),o+=4;break;default:throw A(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(l),"."))}a=++o}}throw A(e,o,"Unterminated string.")}(i,s,l,c,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,i,n,r,s){var o,a=e.body,l=i,c=t,u=!1;if(45===l&&(l=a.charCodeAt(++c)),48===l){if((l=a.charCodeAt(++c))>=48&&l<=57)throw A(e,c,"Invalid number, unexpected digit after 0: ".concat(L(l),"."))}else c=N(e,c,l),l=a.charCodeAt(c);if(46===l&&(u=!0,l=a.charCodeAt(++c),c=N(e,c,l),l=a.charCodeAt(c)),(69===l||101===l)&&(u=!0,(43===(l=a.charCodeAt(++c))||45===l)&&(l=a.charCodeAt(++c)),c=N(e,c,l),l=a.charCodeAt(c)),46===l||95===(o=l)||o>=65&&o<=90||o>=97&&o<=122)throw A(e,c,"Invalid number, expected digit but got: ".concat(L(l),"."));return new I(u?F.FLOAT:F.INT,t,c,n,r,s,a.slice(t,c))}(i,s,a,l,c,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:for(var u=i,d=s,h=l,p=c,m=t,f=u.body,g=f.length,v=d+1,y=0;v!==g&&!isNaN(y=f.charCodeAt(v))&&(95===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122);)++v;return new I(F.NAME,d,v,h,p,m,f.slice(d,v))}throw A(i,s,(o=a)<32&&9!==o&&10!==o&&13!==o?"Cannot contain the invalid character ".concat(L(o),"."):39===o?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(L(o),"."))}var b=e.line,_=1+s-e.lineStart;return new I(F.EOF,r,r,b,_,t)}(this,t);while(t.kind===F.COMMENT)return t},e}();function L(e){return isNaN(e)?F.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function N(e,t,i){var n=e.body,r=t,s=i;if(s>=48&&s<=57){do s=n.charCodeAt(++r);while(s>=48&&s<=57)return r}throw A(e,r,"Invalid number, expected digit but got: ".concat(L(s),"."))}function j(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var B=function(){function e(e,t){var i=e instanceof M?e:new M(e);this._lexer=new D(i),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(F.NAME);return{kind:x.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:x.DOCUMENT,definitions:this.many(F.SOF,this.parseDefinition,F.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(F.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else if(this.peek(F.BRACE_L))return this.parseOperationDefinition();else if(this.peekDescription())return this.parseTypeSystemDefinition();throw this.unexpected()},t.parseOperationDefinition=function(){var e,t=this._lexer.token;if(this.peek(F.BRACE_L))return{kind:x.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var i=this.parseOperationType();return this.peek(F.NAME)&&(e=this.parseName()),{kind:x.OPERATION_DEFINITION,operation:i,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseOperationType=function(){var e=this.expectToken(F.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(F.PAREN_L,this.parseVariableDefinition,F.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:x.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(F.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(F.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(F.DOLLAR),{kind:x.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:x.SELECTION_SET,selections:this.many(F.BRACE_L,this.parseSelection,F.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(F.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,i=this._lexer.token,n=this.parseName();return this.expectOptionalToken(F.COLON)?(e=n,t=this.parseName()):t=n,{kind:x.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(F.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(i)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(F.PAREN_L,t,F.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(F.COLON),{kind:x.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:x.ARGUMENT,name:this.parseName(),value:(this.expectToken(F.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(F.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(F.NAME)?{kind:x.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:x.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return(this.expectKeyword("fragment"),(null==(e=this._options)?void 0:e.experimentalFragmentVariables)===!0)?{kind:x.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:x.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case F.BRACKET_L:return this.parseList(e);case F.BRACE_L:return this.parseObject(e);case F.INT:return this._lexer.advance(),{kind:x.INT,value:t.value,loc:this.loc(t)};case F.FLOAT:return this._lexer.advance(),{kind:x.FLOAT,value:t.value,loc:this.loc(t)};case F.STRING:case F.BLOCK_STRING:return this.parseStringLiteral();case F.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:x.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:x.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:x.NULL,loc:this.loc(t)};default:return{kind:x.ENUM,value:t.value,loc:this.loc(t)}}case F.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:x.STRING,value:e.value,block:e.kind===F.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,i=this._lexer.token;return{kind:x.LIST,values:this.any(F.BRACKET_L,function(){return t.parseValueLiteral(e)},F.BRACKET_R),loc:this.loc(i)}},t.parseObject=function(e){var t=this,i=this._lexer.token;return{kind:x.OBJECT,fields:this.any(F.BRACE_L,function(){return t.parseObjectField(e)},F.BRACE_R),loc:this.loc(i)}},t.parseObjectField=function(e){var t=this._lexer.token,i=this.parseName();return this.expectToken(F.COLON),{kind:x.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(F.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(F.AT),{kind:x.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return(this.expectOptionalToken(F.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(F.BRACKET_R),e={kind:x.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(F.BANG))?{kind:x.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:x.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===F.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(F.STRING)||this.peek(F.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var i=this.parseDirectives(!0),n=this.many(F.BRACE_L,this.parseOperationTypeDefinition,F.BRACE_R);return{kind:x.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(F.COLON);var i=this.parseNamedType();return{kind:x.OPERATION_TYPE_DEFINITION,operation:t,type:i,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var i=this.parseName(),n=this.parseDirectives(!0);return{kind:x.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:x.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:s,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if((null==(e=this._options)?void 0:e.allowLegacySDLImplementsInterfaces)===!0){var t=[];this.expectOptionalToken(F.AMP);do t.push(this.parseNamedType());while(this.expectOptionalToken(F.AMP)||this.peek(F.NAME))return t}return this.delimitedMany(F.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return(null==(e=this._options)?void 0:e.allowLegacySDLEmptyFields)===!0&&this.peek(F.BRACE_L)&&this._lexer.lookahead().kind===F.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(F.BRACE_L,this.parseFieldDefinition,F.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),n=this.parseArgumentDefs();this.expectToken(F.COLON);var r=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:x.FIELD_DEFINITION,description:t,name:i,arguments:n,type:r,directives:s,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(F.PAREN_L,this.parseInputValueDef,F.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,i=this.parseDescription(),n=this.parseName();this.expectToken(F.COLON);var r=this.parseTypeReference();this.expectOptionalToken(F.EQUALS)&&(e=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:x.INPUT_VALUE_DEFINITION,description:i,name:n,type:r,defaultValue:e,directives:s,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:x.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:s,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var i=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:x.UNION_TYPE_DEFINITION,description:t,name:i,directives:n,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(F.EQUALS)?this.delimitedMany(F.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var i=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:x.ENUM_TYPE_DEFINITION,description:t,name:i,directives:n,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(F.BRACE_L,this.parseEnumValueDefinition,F.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),n=this.parseDirectives(!0);return{kind:x.ENUM_VALUE_DEFINITION,description:t,name:i,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var i=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:x.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:n,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(F.BRACE_L,this.parseInputValueDef,F.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===F.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),i=this.optionalMany(F.BRACE_L,this.parseOperationTypeDefinition,F.BRACE_R);if(0===t.length&&0===i.length)throw this.unexpected();return{kind:x.SCHEMA_EXTENSION,directives:t,operationTypes:i,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),i=this.parseDirectives(!0);if(0===i.length)throw this.unexpected();return{kind:x.SCALAR_TYPE_EXTENSION,name:t,directives:i,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return{kind:x.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return{kind:x.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),i=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===i.length&&0===n.length)throw this.unexpected();return{kind:x.UNION_TYPE_EXTENSION,name:t,directives:i,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),i=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return{kind:x.ENUM_TYPE_EXTENSION,name:t,directives:i,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),i=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return{kind:x.INPUT_OBJ
3ECT_TYPE_EXTENSION,name:t,directives:i,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(F.AT);var i=this.parseName(),n=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:x.DIRECTIVE_DEFINITION,description:t,name:i,arguments:n,repeatable:r,locations:s,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(F.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==R[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if((null==(t=this._options)?void 0:t.noLocation)!==!0)return new k(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw A(this._lexer.source,t.start,"Expected ".concat(z(e),", found ").concat(U(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind===F.NAME&&t.value===e)this._lexer.advance();else throw A(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(U(t),"."))},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===F.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return A(this._lexer.source,t.start,"Unexpected ".concat(U(t),"."))},t.any=function(e,t,i){this.expectToken(e);for(var n=[];!this.expectOptionalToken(i);)n.push(t.call(this));return n},t.optionalMany=function(e,t,i){if(this.expectOptionalToken(e)){var n=[];do n.push(t.call(this));while(!this.expectOptionalToken(i))return n}return[]},t.many=function(e,t,i){this.expectToken(e);var n=[];do n.push(t.call(this));while(!this.expectOptionalToken(i))return n},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var i=[];do i.push(t.call(this));while(this.expectOptionalToken(e))return i},e}();function U(e){var t=e.value;return z(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function z(e){return e===F.BANG||e===F.DOLLAR||e===F.AMP||e===F.PAREN_L||e===F.PAREN_R||e===F.SPREAD||e===F.COLON||e===F.EQUALS||e===F.AT||e===F.BRACKET_L||e===F.BRACKET_R||e===F.BRACE_L||e===F.PIPE||e===F.BRACE_R?'"'.concat(e,'"'):e}var q=new Map,H=new Map,V=!0,W=!1;function Q(e){return e.replace(/[\s,]+/g," ").trim()}function J(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,i){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[i+1]}),function(e){var t=Q(e);if(!q.has(t)){var i,n,r,o,a,l=new B(e,{experimentalFragmentVariables:W,allowLegacyFragmentVariables:W}).parseDocument();if(!l||"Document"!==l.kind)throw Error("Not a valid GraphQL document.");q.set(t,((o=new Set((i=new Set,n=[],l.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,r=e.name.value,s=Q((t=e.loc).source.body.substring(t.start,t.end)),o=H.get(r);o&&!o.has(s)?V&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||H.set(r,o=new Set),o.add(s),i.has(s)||(i.add(s),n.push(e))}else n.push(e)}),r=(0,s.Cl)((0,s.Cl)({},l),{definitions:n})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var i=e[t];i&&"object"==typeof i&&o.add(i)})}),(a=r.loc)&&(delete a.startToken,delete a.endToken),r))}return q.get(t)}(n)}var K=J;(n=J||(J={})).gql=K,n.resetCaches=function(){q.clear(),H.clear()},n.disableFragmentWarnings=function(){V=!1},n.enableExperimentalFragmentVariables=function(){W=!0},n.disableExperimentalFragmentVariables=function(){W=!1},J.default=J;let G=J;function Y(){let e=(0,r._)(["\n query CurrentAccount {\n account {\n id\n name\n firstName\n lastName\n email\n phoneNumber\n jobTitle\n avatarUrl\n timeZone\n preferredConversationLocales\n emailSignature\n useGmailSignature\n mailingConnection {\n id\n type\n }\n meetingConferenceDetails\n calendarInviteBody\n calendarMinimumNotice\n calendarBuffer\n calendarAvailability {\n day\n start\n end\n __typename\n }\n mobileNotificationSchedule {\n day\n start\n end\n __typename\n }\n enableReturnVisitorAlerts\n enableVoiceAlerts\n enableBlurBackgroun
3d\n defaultNotificationSound\n dismissedDesktopAnnouncement\n waitingForRepNotificationSound\n waitingForRepVoiceAlert\n role\n permissionsAdmin\n permissionsCsm\n permissionsChat\n permissionsMeeting\n permissionsViewAllVisitors\n permissionsEditAllTeamSettings\n permissionsEditTeammates\n permissionsEditGroups\n permissionsEditTeamCalendar\n permissionsEditBusinessHours\n permissionsEditSso\n permissionsEditMessenger\n permissionsEditVsiitorFields\n permissionsEditSegments\n permissionsEditLiveStreams\n permissionsEditRouting\n permissionsEditMacros\n permissionsEditSalesforce\n permissionsEditPardot\n permissionsEditPiperEmail\n permissionsPublishPiperEmail\n permissionsViewPiperEmailResponses\n permissionsEditMarketo\n permissionsEditHubspot\n permissionsEditEloqua\n permissionsEditOutreach\n permissionsEditClearbit\n permissionsEditSixsense\n permissionsEditDemandbase\n permissionsEditSlack\n permissionsEditMicrosoft\n permissionsEditZoominfo\n permissionsEditSalesloft\n permissionsEditLinkedin\n permissionsEditGoogle\n permissionsViewAllStatistics\n permissionsEditAnalytics\n permissionsExportReports\n permissionsBotView\n permissionsBotEdit\n permissionsBotPublish\n permissionsEditMeetingTypes\n permissionsEditMeetingRouting\n permissionsEditAutoPounce\n permissionsShareDashboards\n permissionsViewRevenueAndPipelineDashboard\n available\n videoAvailable\n autoPounceAvailable\n snoozeEndsAt\n hasMobile\n mobileRequestForChatSound\n mobileMessageReceivedSound\n __typename\n salesforceConnection {\n id\n __typename\n updatedAt\n username\n }\n calendarConnection {\n ...CalendarConnection\n }\n slackConnection {\n id\n __typename\n }\n microsoftConnection {\n id\n __typename\n invalid\n }\n externalMeetingConnection {\n id\n __typename\n updatedAt\n email\n type\n invalid\n invalidAt\n scopes\n }\n macros {\n ...Macro\n }\n announcements {\n ...Announcement\n }\n team {\n id\n allowlistedDomains\n denylistedVisitorStreamDomains\n company\n appexchangeCompanyName\n autoUpdateSalesforceExternalRecords\n token\n phoneNumber\n countryCode\n features\n featureAlternatives {\n flag\n alternative\n }\n preferencesSendGaEvents\n preferencesSendFbEvents\n preferencesShowIdleVisitorsDefault\n preferencesShowSalesforceMatchSettings\n preferencesSfdcOauthPromptSelectAccount\n preferencesDisableScimRoleSync\n preferencesDisableDesktopAppAnnouncement\n defaultSyncActionType\n samlEnabled\n samlVerified\n scimEnabled\n identityProvider\n maximumExportRows\n createdAt\n signalsToken\n privacyPolicyMaxLength\n companyEmail\n companyAddress\n address\n city\n state\n postalCode\n country\n mailboxesNeedAttention\n __typename\n activeLinkedinAdAccounts {\n ...LinkedInAdAccount\n }\n activeGoogleAdAccounts {\n ...GoogleAdAccount\n }\n salesforceConnection {\n id\n __typename\n updatedAt\n username\n invalid\n sandbox\n host\n instanceUrl\n isSyncing\n lastSyncTime\n lastSyncError\n matchSettings {\n __typename\n type\n contactExternalFieldId\n leadExternalFieldId\n }\n }\n pardotConnection {\n id\n __typename\n email\n dynamicContentConfigured\n activityTrackingConfigured\n invalid\n demo\n businessUnitId\n username\n }\n zoomInfoConnection {\n id\n __typename\n email\n invalid\n enterpriseEnabled\n websightsEnabled\n rateLimitedEnterprise\n rateLimitedWebsights\n }\n marketoConnection {\n id\n __typename\n munchkinId\n invalid\n }\n clearbitConnection {\n id\n __typename\n secretKeyMasked\n revealEnabled\n enrichmentEnabled\n confidenceThreshold\n }\n sixsenseConnection {\n id\n __typename\n secretKeyMasked\n confidenceThreshold\n productLines\n }\n slackConnection {\n id\n __typename\n invalid\n authorizedUserEmailScopes\n version\n }\n piperSlackConnection {\n id\n __typename\n invalid\n authorizedUserEmailScopes\n }\n microsoftConnection {\n id\n __typename\n invalid\n email\n }\n demandbaseConnection {\n id\n __typename\n secretKeyMasked\n version\n }\n demandbaseSharedRevealEnabled\n demandbaseSharedEnrichmentEnabled\n demandbaseSharedConfidenceThreshold\n demandbaseCustomizedMsa\n demandbaseEnrichmentMsaAcceptedAt\n demandbaseEnrichmentMsaAcceptedBy\n hubspotConnection {\n id\n __typename\n visitorAssociationConfigured\n hasAllScopes\n invalid\n identifier\n formsLastSyncedAt\n }\n linkedinConnection {\n ...LinkedInConnection\n }\n facebookConnection {\n ...FacebookConnection\n }\n eloquaConnection {\n id\n __typename\n visitorAssociationConfigured\n invalid\n }\n outreachGalaxyConnection {\n id\n __typename\n invalid\n }\n salesloftConnection {\n id\n __typename\n invalid\n }\n gongConnection {\n id\n __typename\n invalid\n }\n googleConnection {\n ...GoogleConnection\n }\n users {\n ...TeamUser\n }\n inactiveUsers {\n ...TeamUser\n }\n groups {\n id\n __typename\n name\n members {\n id\n __typename\n }\n }\n segments {\n ...SegmentMeta\n }\n calendarEventTypes {\n id\n name\n duration\n sendReminder\n eventTitle\n eventBody\n enableMeetingLink\n enableCalendarEventTypeInChat\n enableNoShowReporting\n removeCancelOrReschedule\n __typename\n }\n macros {\n ...Macro\n }\n fields {\n __typename\n id\n name\n apiName\n type\n hidden\n listVisible\n }\n variables {\n ...Variable\n }\n dashboards {\n __typename\n id\n type\n settings {\n ...DashboardSettings\n }\n }\n listGroupings {\n ...ListGrouping\n }\n businessHours {\n __typename\n days\n startHour\n endHour\n timeZone\n }\n calendarEventExclusionDates {\n ...CalendarEventExclusionDate\n }\n autoPounceSettings {\n missedConnections {\n responseTimeLimitSeconds\n }\n }\n copilotEnabledMessageTransformationTypes\n aiInteractionReports {\n nodes {\n userId\n messageId\n }\n }\n customWaitForIdentifiersTime\n }\n activeMeeting {\n id\n status\n token\n startedAt\n visitorId\n userId\n __typename\n }\n }\n }\n fragment TeamUser on User {\n __typename\n id\n email\n name\n avatarUrl\n available\n snoozeEndsAt\n role\n customAdminPermissions\n permissionsAdm
3in\n permissionsViewAllVisitors\n permissionsEditAllTeamSettings\n permissionsEditTeammates\n permissionsEditGroups\n permissionsEditTeamCalendar\n permissionsEditBusinessHours\n permissionsEditSso\n permissionsEditMessenger\n permissionsEditVsiitorFields\n permissionsEditSegments\n permissionsEditLiveStreams\n permissionsEditRouting\n permissionsEditMacros\n permissionsEditSalesforce\n permissionsEditPardot\n permissionsEditPiperEmail\n permissionsPublishPiperEmail\n permissionsViewPiperEmailResponses\n permissionsEditMarketo\n permissionsEditHubspot\n permissionsEditEloqua\n permissionsEditOutreach\n permissionsEditClearbit\n permissionsEditSixsense\n permissionsEditDemandbase\n permissionsEditSlack\n permissionsEditMicrosoft\n permissionsEditZoominfo\n permissionsEditSalesloft\n permissionsEditLinkedin\n permissionsEditGoogle\n permissionsViewAllStatistics\n permissionsEditAnalytics\n permissionsExportReports\n permissionsBotView\n permissionsBotEdit\n permissionsBotPublish\n permissionsEditMeetingTypes\n permissionsEditMeetingRouting\n permissionsEditAutoPounce\n permissionsShareDashboards\n permissionsViewRevenueAndPipelineDashboard\n status\n lastOnlineAt\n authenticationState\n lastInviteSentAt\n lastSamlBindingLinkSentAt\n calendarReminderSentAt\n mailingConnectionReminderSentAt\n actionRequiredReasons\n meetingQueuesActionRequiredReasons\n groups {\n name\n }\n salesforceConnection {\n __typename\n id\n updatedAt\n username\n }\n calendarInviteBody\n meetingConferenceDetails\n calendarConnection {\n ...CalendarConnection\n }\n mailingConnection {\n ...CalendarConnection\n }\n slackConnection {\n id\n __typename\n }\n microsoftConnection {\n id\n __typename\n invalid\n }\n externalMeetingConnection {\n id\n type\n __typename\n }\n userProfile {\n id\n __typename\n name\n type\n }\n }\n fragment CalendarConnection on CalendarConnection {\n id\n __typename\n createdAt\n updatedAt\n email\n type\n invalid\n invalidAt\n scopes\n }\n\n fragment Macro on Macro {\n __typename\n id\n shared\n name\n steps {\n __typename\n opcode\n operands {\n __typename\n text\n }\n }\n }\n\n fragment SegmentMeta on Segment {\n __typename\n id\n name\n }\n\n fragment Announcement on Announcement {\n __typename\n id\n ctaText\n ctaUrl\n message\n type\n startsAt\n endsAt\n }\n\n fragment Variable on Variable {\n __typename\n key\n category\n type\n group\n source\n label\n require\n }\n\n fragment DashboardSettings on DashboardSettings {\n __typename\n startDate\n endDate\n currencyField\n conversationDateThreshold\n opportunityTypes\n status\n stages\n attributedOpportunityTiles {\n title\n color\n attributionModel\n columns {\n expression\n width\n }\n orderBy\n orderReversed\n matchTypes\n leadSourceFieldValues\n }\n }\n\n fragment ListGrouping on ListGrouping {\n __typename\n id\n name\n color\n position\n bots {\n __typename\n id\n loadingDraftScript\n }\n segments {\n __typename\n id\n }\n listGroupingSetting {\n __typename\n id\n listGroupingId\n settingsSendPushNotification\n settingsDisableConsoleNotification\n settingsEnableVoiceNotifications\n sound\n }\n autoPounce\n }\n\n fragment LinkedInConnection on LinkedInConnection {\n id\n __typename\n firstName\n lastName\n displayName\n accountId\n invalid\n }\n\n fragment LinkedInAdAccount on LinkedInAdAccount {\n id\n __typename\n externalId\n name\n }\n\n fragment GoogleConnection on GoogleConnection {\n id\n __typename\n email\n loginCustomerId\n invalid\n }\n\n fragment GoogleAdAccount on GoogleAdAccount {\n id\n __typename\n externalId\n name\n }\n\n fragment FacebookConnection on FacebookConnection {\n id\n __typename\n name\n email\n }\n\n fragment CalendarEventExclusionDate on CalendarEventExclusionDate {\n __typename\n id\n startDate\n endDate\n }\n"]);return Y=function(){return e},e}function $(){let e=(0,r._)(["\n query CurrentMeetingUserAccount {\n account {\n id\n name\n firstName\n lastName\n email\n phoneNumber\n jobTitle\n avatarUrl\n timeZone\n preferredConversationLocales\n emailSignature\n useGmailSignature\n mailingConnection {\n id\n type\n }\n meetingConferenceDetails\n calendarInviteBody\n calendarMinimumNotice\n calendarBuffer\n calendarAvailability {\n day\n start\n end\n __typename\n }\n mobileNotificationSchedule {\n day\n start\n end\n __typename\n }\n enableReturnVisitorAlerts\n enableVoiceAlerts\n enableBlurBackgroun
3d\n defaultNotificationSound\n dismissedDesktopAnnouncement\n waitingForRepNotificationSound\n waitingForRepVoiceAlert\n role\n permissionsAdmin\n permissionsCsm\n permissionsChat\n permissionsMeeting\n permissionsViewAllVisitors\n permissionsEditAllTeamSettings\n permissionsEditTeammates\n permissionsEditGroups\n permissionsEditTeamCalendar\n permissionsEditBusinessHours\n permissionsEditSso\n permissionsEditMessenger\n permissionsEditVsiitorFields\n permissionsEditSegments\n permissionsEditLiveStreams\n permissionsEditRouting\n permissionsEditMacros\n permissionsEditSalesforce\n permissionsEditPardot\n permissionsEditPiperEmail\n permissionsPublishPiperEmail\n permissionsViewPiperEmailResponses\n permissionsEditMarketo\n permissionsEditHubspot\n permissionsEditEloqua\n permissionsEditOutreach\n permissionsEditClearbit\n permissionsEditSixsense\n permissionsEditDemandbase\n permissionsEditSlack\n permissionsEditMicrosoft\n permissionsEditZoominfo\n permissionsEditSalesloft\n permissionsEditLinkedin\n permissionsEditGoogle\n permissionsViewAllStatistics\n permissionsEditAnalytics\n permissionsExportReports\n permissionsBotView\n permissionsBotEdit\n permissionsBotPublish\n permissionsEditMeetingTypes\n permissionsEditMeetingRouting\n permissionsEditAutoPounce\n permissionsShareDashboards\n permissionsViewRevenueAndPipelineDashboard\n available\n videoAvailable\n autoPounceAvailable\n snoozeEndsAt\n hasMobile\n mobileRequestForChatSound\n mobileMessageReceivedSound\n __typename\n salesforceConnection {\n id\n __typename\n updatedAt\n username\n }\n calendarConnection {\n ...CalendarConnection\n }\n slackConnection {\n id\n __typename\n }\n microsoftConnection {\n id\n __typename\n invalid\n }\n externalMeetingConnection {\n id\n __typename\n updatedAt\n email\n type\n invalid\n invalidAt\n scopes\n }\n announcements {\n ...Announcement\n }\n team {\n id\n countryCode\n features\n featureAlternatives {\n flag\n alternative\n }\n samlEnabled\n samlVerified\n scimEnabled\n identityProvider\n users {\n id\n name\n email\n avatarUrl\n calendarConnection {\n id\n invalid\n }\n __typename\n }\n __typename\n }\n }\n }\n fragment CalendarConnection on CalendarConnection {\n id\n __typename\n createdAt\n updatedAt\n email\n type\n invalid\n invalidAt\n scopes\n }\n\n fragment Announcement on Announcement {\n __typename\n id\n ctaText\n ctaUrl\n message\n type\n startsAt\n endsAt\n }\n"]);return $=function(){return e},e}function X(){let e=(0,r._)(["\n fragment CalendarConnection on CalendarConnection {\n id\n __typename\n createdAt\n updatedAt\n email\n type\n invalid\n invalidAt\n scopes\n }\n "]);return X=function(){return e},e}function Z(){let e=(0,r._)(["\n fragment Meeting on Meeting {\n id\n __typename\n token\n status\n twilioStatus\n startedAt\n endedAt\n duration\n\n ... on OutboundVoiceMeeting {\n visitorNumber\n userNumber\n visitor {\n id\n listName\n }\n }\n\n ... on InboundVoiceMeeting {\n visitorNumber\n userNumber\n enqueuedAt\n visitor {\n id\n listName\n }\n }\n\n ... on OutboundVideoMeeting {\n userAccessToken\n userTracksStatuses {\n audio\n video\n }\n visitorTracksStatuses {\n audio\n video\n }\n user {\n id\n name\n }\n visitor {\n id\n listName\n }\n }\n\n ... on InboundVideoMeeting {\n userAccessToken\n userTracksStatuses {\n audio\n video\n }\n visitorTracksStatuses {\n audio\n video\n }\n user {\n id\n name\n }\n visitor {\n id\n listName\n }\n }\n }\n "]);return Z=function(){return e},e}
3function ee(){let e=(0,r._)(["\n fragment ExternalList on ExternalList {\n id\n type\n name\n enabled\n }\n "]);return ee=function(){return e},e}function et(){let e=(0,r._)(["\n fragment TeamUser on User {\n __typename\n id\n email\n name\n avatarUrl\n available\n snoozeEndsAt\n role\n customAdminPermissions\n permissionsAdmin\n permissionsViewAllVisitors\n permissionsEditAllTeamSettings\n permissionsEditTeammates\n permissionsEditGroups\n permissionsEditTeamCalendar\n permissionsEditBusinessHours\n permissionsEditSso\n permissionsEditMessenger\n permissionsEditVsiitorFields\n permissionsEditSegments\n permissionsEditLiveStreams\n permissionsEditRouting\n permissionsEditMacros\n permissionsEditSalesforce\n permissionsEditPardot\n permissionsEditPiperEmail\n permissionsPublishPiperEmail\n permissionsViewPiperEmailResponses\n permissionsEditMarketo\n permissionsEditHubspot\n permissionsEditEloqua\n permissionsEditOutreach\n permissionsEditClearbit\n permissionsEditSixsense\n permissionsEditDemandbase\n permissionsEditSlack\n permissionsEditMicrosoft\n permissionsEditZoominfo\n permissionsEditSalesloft\n permissionsEditLinkedin\n permissionsEditGoogle\n permissionsViewAllStatistics\n permissionsEditAnalytics\n permissionsExportReports\n permissionsBotView\n permissionsBotEdit\n permissionsBotPublish\n permissionsEditMeetingTypes\n permissionsEditMeetingRouting\n permissionsEditAutoPounce\n permissionsShareDashboards\n permissionsViewRevenueAndPipelineDashboard\n status\n lastOnlineAt\n authenticationState\n lastInviteSentAt\n lastSamlBindingLinkSentAt\n calendarReminderSentAt\n mailingConnectionReminderSentAt\n actionRequiredReasons\n meetingQueuesActionRequiredReasons\n groups {\n name\n }\n salesforceConnection {\n __typename\n id\n updatedAt\n username\n }\n calendarInviteBody\n meetingConferenceDetails\n calendarConnection {\n ...CalendarConnection\n }\n mailingConnection {\n ...CalendarConnection\n }\n slackConnection {\n id\n __typename\n }\n microsoftConnection {\n id\n __typename\n invalid\n }\n externalMeetingConnection {\n id\n type\n __typename\n }\n userProfile {\n id\n __typename\n name\n type\n }\n }\n fragment CalendarConnection on CalendarConnection {\n id\n __typename\n createdAt\n updatedAt\n email\n type\n invalid\n invalidAt\n scopes\n }\n "]);return et=function(){return e},e}function ei(){let e=(0,r._)(["\n fragment Macro on Macro {\n __typename\n id\n shared\n name\n steps {\n __typename\n opcode\n operands {\n __typename\n text\n }\n }\n }\n "]);return ei=function(){return e},e}function en(){let e=(0,r._)(["\n fragment SegmentMeta on Segment {\n __typename\n id\n name\n }\n "]);return en=function(){return e},e}function er(){let e=(0,r._)(["\n fragment Announcement on Announcement {\n __typename\n id\n ctaText\n ctaUrl\n message\n type\n startsAt\n endsAt\n }\n "]);return er=function(){return e},e}function es(){let e=(0,r._)(["\n fragment Variable on Variable {\n __typename\n key\n category\n type\n group\n source\n label\n require\n }\n "]);return es=function(){return e},e}function eo(){let e=(0,r._)(["\n fragment DashboardSettings on DashboardSettings {\n __typename\n startDate\n endDate\n currencyField\n conversationDateThreshold\n opportunityTypes\n status\n stages\n attributedOpportunityTiles {\n title\n color\n attributionModel\n columns {\n expression\n width\n }\n orderBy\n orderReversed\n matchTypes\n leadSourceFieldValues\n }\n }\n "]);return eo=function(){return e},e}function ea(){let e=(0,r._)(["\n fragment ActiveMeeting on Meeting {\n ...Meeting\n visitorId\n userId\n }\n fragment Meeting on Meeting {\n id\n __typename\n token\n status\n twilioStatus\n startedAt\n endedAt\n duration\n\n ... on OutboundVoiceMeeting {\n visitorNumber\n userNumber\n visitor {\n id\n listName\n }\n }\n\n ... on InboundVoiceMeeting {\n visitorNumber\n userNumber\n enqueuedAt\n visitor {\n id\n listName\n }\n }\n\n ... on OutboundVideoMeeting {\n userAccessToken\n userTracksStatuses {\n audio\n video\n }\n visitorTracksStatuses {\n audio\n video\n }\n user {\n id\n name\n }\n visitor {\n id\n listName\n }\n }\n\n ... on InboundVideoMeeting {\n userAccessToken\n userTracksStatuses {\n audio\n video\n }\n visitorTracksStatuses {\n audio\n video\n }\n user {\n id\n name\n }\n visitor {\n id\n listName\n }\n }\n }\n "]);return ea=function(){return e},e}function el(){let e=(0,r._)(["\n fragment ListGrouping on ListGrouping {\n __typename\n id\n name\n color\n position\n bots {\n __typename\n id\n loadingDraftScript\n }\n segments {\n __typename\n id\n }\n listGroupingSetting {\n __typename\n id\n listGroupingId\n settingsSendPushNotification\n settingsDisableConsoleNotification\n settingsEnableVoiceNotifications\n sound\n }\n autoPounce\n }\n "]);return el=function(){return e},e}function ec(){let e=(0,r._)(["\n fragment CalendarEventExclusionDate on CalendarEventExclusionDate {\n __typename\n id\n startDate\n endDate\n }\n "]);return ec=function(){return e},e}function eu(){let e=(0,r._)(["\n fragment LinkedInConnection on LinkedInConnection {\n id\n __typename\n firstName\n lastName\n displayName\n accountId\n invalid\n }\n "]);return eu=function(){return e},e}function ed(){let e=(0,r._)(["\n fragment LinkedInAdAccount on LinkedInAdAccount {\n id\n __typename\n externalId\n name\n }\n "]);return ed=function(){return e},e}function eh(){let e=(0,r._)(["\n fragment GoogleConnection on GoogleConnection {\n id\n __typename\n email\n loginCustomerId\n invalid\n }\n "]);return eh=function(){return e},e}function ep(){let e=(0,r._)(["\n fragment GoogleAdAccount on GoogleAdAccount {\n id\n __typename\n externalId\n name\n }\n "]);return ep=function(){return e},e}function em(){let e=(0,r._)(["\n fragment FacebookConnection on FacebookConnection {\n id\n __typename\n name\n email\n }\n "]);return em=function(){return e},e}function ef(){let e=(0,r._)(["\n fragment CachedSummaryCartile on SignalsSummaryCartile {\n currentTrend\n signalScore\n signalScoreState\n researchScore\n interpolatedSignals {\n time\n temperature\n signalScore\n activityWeight\
3n highIntentAction\n sessionId\n visitorId\n }\n archivedHighIntentSessions {\n id\n endedAt\n visitNumber\n activeElapsedTime\n location {\n city\n region\n }\n visitor {\n signalVisitorName\n }\n highIntentActions\n }\n bomboraTopics {\n name\n score\n }\n }\n "]);return ef=function(){return e},e}G(Y()),G($()),G(X()),G(Z()),G(ee()),G(et()),G(ei()),G(en()),G(er()),G(es()),G(eo()),G(ea()),G(el()),G(ec()),G(eu()),G(ed()),G(eh()),G(ep()),G(em()),G(ef());let eg=[{value:"Europe/Andorra",label:"+01:00 - Europe - Andorra"},{value:"Asia/Dubai",label:"+04:00 - Asia - Dubai"},{value:"Asia/Kabul",label:"+04:30 - Kabul"},{value:"America/Puerto_Rico",label:"-04:00 - Puerto Rico"},{value:"Europe/Tirane",label:"+01:00 - Europe - Tirane"},{value:"Asia/Yerevan",label:"+04:00 - Yerevan"},{value:"Africa/Lagos",label:"+01:00 - Africa - Lagos"},{value:"Antarctica/Casey",label:"+08:00 - Antarctica - Casey"},{value:"Antarctica/Davis",label:"+07:00 - Antarctica - Davis"},{value:"Antarctica/Mawson",label:"+05:00 - Antarctica - Mawson"},{value:"Antarctica/Palmer",label:"-03:00 - Antarctica - Palmer"},{value:"Antarctica/Rothera",label:"-03:00 - Antarctica - Rothera"},{value:"Antarctica/Troll",label:"+00:00 - Antarctica - Troll"},{value:"Antarctica/Vostok",label:"+05:00 - Antarctica - Vostok"},{value:"Pacific/Auckland",label:"+12:00 - Auckland"},{value:"Pacific/Port_Moresby",label:"+10:00 - Port Moresby"},{value:"Asia/Riyadh",label:"+03:00 - Riyadh"},{value:"America/Argentina/Buenos_Aires",label:"-03:00 - Buenos Aires"},{value:"America/Argentina/Cordoba",label:"-03:00 - America - Cordoba, Argentina"},{value:"America/Argentina/Salta",label:"-03:00 - America - Salta, Argentina"},{value:"America/Argentina/Jujuy",label:"-03:00 - America - Jujuy, Argentina"},{value:"America/Argentina/Tucuman",label:"-03:00 - America - Tucuman, Argentina"},{value:"America/Argentina/Catamarca",label:"-03:00 - America - Catamarca, Argentina"},{value:"America/Argentina/La_Rioja",label:"-03:00 - America - La Rioja, Argentina"},{value:"America/Argentina/San_Juan",label:"-03:00 - America - San Juan, Argentina"},{value:"America/Argentina/Mendoza",label:"-03:00 - America - Mendoza, Argentina"},{value:"America/Argentina/San_Luis",label:"-03:00 - America - San Luis, Argentina"},{value:"America/Argentina/Rio_Gallegos",label:"-03:00 - America - Rio Gallegos, Argentina"},{value:"America/Argentina/Ushuaia",label:"-03:00 - America - Ushuaia, Argentina"},{value:"Pacific/Pago_Pago",label:"-11:00 - Pacific - Pago Pago"},{value:"Europe/Vienna",label:"+01:00 - Vienna"},{value:"Australia/Lord_Howe",label:"+10:30 - Australia - Lord Howe"},{value:"Antarctica/Macquarie",label:"+10:00 - Antarctica - Macquarie"},{value:"Australia/Hobart",label:"+10:00 - Hobart"},{value:"Australia/Melbourne",label:"+10:00 - Melbourne"},{value:"Australia/Sydney",label:"+10:00 - Sydney"},{value:"Australia/Broken_Hill",label:"+09:30 - Australia - Broken Hill"},{value:"Australia/Brisbane",label:"+10:00 - Brisbane"},{value:"Australia/Lindeman",label:"+10:00 - Australia - Lindeman"},{value:"Australia/Adelaide",label:"+09:30 - Adelaide"},{value:"Australia/Darwin",label:"+09:30 - Darwin"},{value:"Australia/Perth",label:"+08:00 - Perth"},{value:"Australia/Eucla",label:"+08:45 - Australia - Eucla"},{value:"Europe/Helsinki",label:"+02:00 - Helsinki"},{value:"Asia/Baku",label:"+04:00 - Baku"},{value:"Europe/Belgrade",label:"+01:00 - Belgrade"},{value:"America/Barbados",label:"-04:00 - America - Barbados"},{value:"Asia/Dhaka",label:"+06:00 - Dhaka"},{value:"Europe/Brussels",label:"+01:00 - Brussels"},{value:"Africa/Abidjan",label:"+00:00 - Africa - Abidjan"},{value:"Europe/Sofia",label:"+02:00 - Sofia"},{value:"Asia/Qatar",label:"+03:00 - Asia - Qatar"},{value:"Africa/Maputo",label:"+02:00 - Harare"},{value:"Atlantic/Bermuda",label:"-04:00 - Atlantic - Bermuda"},{value:"Asia/Kuching",label:"+08:00 - Asia - Kuching"},{value:"America/La_Paz",label:"-04:00 - La Paz"},{value:"America/Noronha",label:"-02:00 - America - Noronha"},{value:"America/Belem",label:"-03:00 - America - Belem"},{value:"America/Fortaleza",label:"-03:00 - America - Fortaleza"},{value:"America/Recife",label:"-03:00 - America - Recife"},{value:"America/Araguaina",label:"-03:00 - America - Araguaina"},{value:"America/Maceio",label:"-03:00 - America - Maceio"},{value:"America/Bahia",label:"-03:00 - America - Bahia"},{value:"America/Sao_Paulo",label:"-03:00 - Brasilia"},{value:"America/Campo_Grande",label:"-04:00 - America - Campo Grande"},{value:"America/Cuiaba",label:"-04:00 - America - Cuiaba"},{value:"America/Santarem",label:"-03:00 - America - Santarem"},{value:"America/Porto_Velho",label:"-04:00 - America - Porto Velho"},{value:"America/Boa_Vista",label:"-04:00 - America - Boa Vista"},{value:"America/Manaus",label:"-04:00 - America - Manaus"},{value:"America/Eirunepe",label:"-05:00 - America - Eirunepe"},{value:"America/Rio_Branco",label:"-05:00 - America - Rio Branco"},{value:"America/Toronto",label:"-05:00 - America - Toronto"},{value:"Asia/Thimphu",label:"+06:00 - Asia - Thimphu"},{value:"Europe/Minsk",label:"+03:00 - Minsk"},{value:"America/Belize",label:"-06:00 - America - Belize"},{value:"America/St_Johns",label:"-03:30 - Newfoundland"},{value:"America/Halifax",label:"-04:00 - Atlantic Time (Canada)"},{value:"America/Glace_Bay",label:"-04:00 - America - Glace Bay"},{value:"America/Moncton",label:"-04:00 - America - Moncton"},{value:"America/Goose_Bay",label:"-04:00 - America - Goose Bay"},{value:"America/Iqaluit",label:"-05:00 - America - Iqaluit"},{value:"America/Winnipeg",label:"-06:00 - America - Winnipeg"},{value:"America/Resolute",label:"-06:00 - America - Resolute"},{value:"America/Rankin_Inlet",label:"-06:00 - America - Rankin Inlet"},{value:"America/Regina",label:"-06:00 - Saskatchewan"},{value:"America/Swift_Current",label:"-06:00 - America - Swift Current"},{value:"America/Edmonton",label:"-07:00 - America - Edmonton"},{value:"America/Cambridge_Bay",label:"-07:00 - America - Cambridge Bay"},{value:"America/Inuvik",label:"-07:00 - America - Inuvik"},{value:"America/Dawson_Creek",label:"-07:00 - America - Dawson Creek"},{value:"America/Fort_Nelson",label:"-07:00 - America - Fort Nelson"},{value:"America/Whitehorse",label:"-07:00 - America - Whitehorse"},{value:"America/Dawson",label:"-07:00 - America - Dawson"},{value:"America/Vancouver",label:"-08:00 - America - Vancouver"},{value:"America/Panama",label:"-05:00 - America - Panama"},{value:"America/Phoenix",label:"-07:00 - Arizona"},{value:"Asia/Yangon",label:"+06:30 - Rangoon"},{value:"Europe/Zurich",label:"+01:00 - Zurich"},{value:"Pacific/Rarotonga",label:"-10:00 - Pacific - Rarotonga"},{value:"America/Santiago",label:"-04:00 - Santiago"},{value:"America/Punta_Arenas",label:"-03:00 - America - Punta Arenas"},{value:"Pacific/Easter",label:"-06:00 - Pacific - Easter"},{value:"Asia/Shanghai",label:"+08:00 - Asia - Shanghai"},{value:"Asia/Urumqi",label:"+06:00 - Urumqi"},{value:"America/Bogota",label:"-05:00 - Bogota"},{value:"America/Costa_Rica",label:"-06:00 - America - Costa Rica"},{value:"America/Havana",label:"-05:00 - America - Havana"},{value:"Atlantic/Cape_Verde",label:"-01:00 - Cape Verde Is."},{value:"Asia/Bangkok",label:"+07:00 - Bangkok"},{value:"Asia/Nicosia",label:"+02:00 - Asia - Nicosia"},{value:"Asia/Famagusta",label:"+02:00 - Asia - Famagusta"},{value:"Europe/Prague",label:"+01:00 - Prague"},{value:"Europe/Berlin",label:"+01:00 - Berlin"},{value:"Africa/Nairobi",label:"+03:00 - Nairobi"},{value:"America/Santo_Domingo",label:"-04:00 - America - Santo Domingo"},{value:"Africa/Algiers",label:"+01:00 - West Central Africa"},{value:"America/Guayaquil",label:"-05:00 - America - Guayaquil"},{value:"Pacific/Galapagos",label:"-06:00 - Pacific - Galapagos"},{value:"Europe/Tallinn",label:"+02:00 - Tallinn"},{value:"Africa/Cairo",label:"+02:00 - Cairo"},{value:"Africa/El_Aaiun",label:"+01:00 - Africa - El Aaiun"},{value:"Europe/Madrid",label:"+01:00 - Madrid"},{value:"Africa/Ceuta",label:"+01:00 - Africa - Ceuta"},{value:"Atlantic/Canary",label:"+00:00 - Atlantic - Canary"},{value:"Pacific/Fiji",label:"+12:00 - Fiji"},{value:"Atlantic/Stanley",label:"-03:00 - Atlantic - Stanley"},{value:"Pacific/Kosrae",label:"+11:00 - Pacific - Kosrae"},{value:"Pacific/Guadalcanal",label:"+11:00 - Solomon Is."},{value:"Atlantic/Faroe",label:"+00:00 - Atlantic - Faroe"},{value:"Europe/Paris",label:"+01:00 - Paris"},{value:"Europe/London",label:"+00:00 - London"},{value:"Asia/Tbilisi",label:"+04:00 - Tbilisi"},{value:"America/Cayenne",label:"-03:00 - America - Cayenne"},{value:"Europe/Gibraltar",label:"+01:00 - Europe - Gibraltar"},{value:"America/Nuuk",label:"-02:00 - Greenland"},{value:"America/Danmarkshavn",label:"+00:00 - America - Danmarkshavn"},{value:"America/Scoresbysund",label:"-02:00 - America - Scoresbysund"},{value:"America/Thule",label:"-04:00 - America - Thule"},{value:"Europe/Athens",label:"+02:00 - Athens"},{value:"Atlantic/South_Georgia",label:"-02:00 - Mid-Atlantic"},{value:"America/Guatemala",label:"-06:00 - Central America"},{value:"Pacific/Guam",label:"+10:00 - Guam"},{value:"Africa/Bissau",label:"+00:00 - Africa - Bissau"},{value:"America/Guyana",label:"-04:00 - Georgetown"},{value:"Asia/Hong_Kong",label:"+08:00 - Hong Kong"},{value:"America/Tegucigalpa",label:"-06:00 - America - Tegucigalpa"},{value:"America/Port-au-Prince",label:"-05:00 - America - Port-au-Prince"},{value:"Europe/Budapest",label:"+01:00 - Budapest"},{value:"Asia/Jakarta",label:"+07:00 - Jakarta"},{value:"Asia/Pontianak",label:"+07:00 - Asia - Pontianak"},{value:"Asia/Makassar",label:"+08:00 - Asia - Makassar"},{value:"Asia/Jayapura",label:"+09:00 - Asia - Jayapura"},{value:"Europe/Dublin",label:"+01:00 - Dublin"},{value:"Asia/Jerusalem",label:"+02:00 - Jerusalem"},{value:"Asia/Kolkata",label:"+05:30 - Kolkata"},{value:"Indian/Chagos",label:"+06:00 - Indian - Chagos"},{value:"Asia/Baghdad",label:"+03:00 - Baghdad"},{value:"Asia/Tehran",label:"+03:30 - Tehran"},{value:"Europe/Rome",label:"+01:00 - Rome"},{value:"America/Jamaica",label:"-05:00 - America - Jamaica"},{value:"Asia/Amman",label:"+03:00 - Asia - Amman"},{value:"Asia/Tokyo",label:"+09:00 - Tokyo"}
3,{value:"Asia/Bishkek",label:"+06:00 - Asia - Bishkek"},{value:"Pacific/Tarawa",label:"+12:00 - Marshall Is."},{value:"Pacific/Kanton",label:"+13:00 - Pacific - Kanton"},{value:"Pacific/Kiritimati",label:"+14:00 - Pacific - Kiritimati"},{value:"Asia/Pyongyang",label:"+09:00 - Asia - Pyongyang"},{value:"Asia/Seoul",label:"+09:00 - Seoul"},{value:"Asia/Almaty",label:"+05:00 - Almaty"},{value:"Asia/Qyzylorda",label:"+05:00 - Asia - Qyzylorda"},{value:"Asia/Qostanay",label:"+05:00 - Asia - Qostanay"},{value:"Asia/Aqtobe",label:"+05:00 - Asia - Aqtobe"},{value:"Asia/Aqtau",label:"+05:00 - Asia - Aqtau"},{value:"Asia/Atyrau",label:"+05:00 - Asia - Atyrau"},{value:"Asia/Oral",label:"+05:00 - Asia - Oral"},{value:"Asia/Beirut",label:"+02:00 - Asia - Beirut"},{value:"Asia/Colombo",label:"+05:30 - Sri Jayawardenepura"},{value:"Africa/Monrovia",label:"+00:00 - Monrovia"},{value:"Africa/Johannesburg",label:"+02:00 - Pretoria"},{value:"Europe/Vilnius",label:"+02:00 - Vilnius"},{value:"Europe/Riga",label:"+02:00 - Riga"},{value:"Africa/Tripoli",label:"+02:00 - Africa - Tripoli"},{value:"Africa/Casablanca",label:"+01:00 - Casablanca"},{value:"Europe/Chisinau",label:"+02:00 - Europe - Chisinau"},{value:"Pacific/Kwajalein",label:"+12:00 - Pacific - Kwajalein"},{value:"Asia/Ulaanbaatar",label:"+08:00 - Ulaanbaatar"},{value:"Asia/Hovd",label:"+07:00 - Asia - Hovd"},{value:"Asia/Macau",label:"+08:00 - Asia - Macau"},{value:"America/Martinique",label:"-04:00 - America - Martinique"},{value:"Europe/Malta",label:"+01:00 - Europe - Malta"},{value:"Indian/Mauritius",label:"+04:00 - Indian - Mauritius"},{value:"Indian/Maldives",label:"+05:00 - Indian - Maldives"},{value:"America/Mexico_City",label:"-06:00 - America - Mexico City"},{value:"America/Cancun",label:"-05:00 - America - Cancun"},{value:"America/Merida",label:"-06:00 - America - Merida"},{value:"America/Monterrey",label:"-06:00 - Monterrey"},{value:"America/Matamoros",label:"-06:00 - America - Matamoros"},{value:"America/Chihuahua",label:"-06:00 - Chihuahua"},{value:"America/Ciudad_Juarez",label:"-07:00 - America - Ciudad Juarez"},{value:"America/Ojinaga",label:"-06:00 - America - Ojinaga"},{value:"America/Mazatlan",label:"-07:00 - Mazatlan"},{value:"America/Bahia_Banderas",label:"-06:00 - America - Bahia Banderas"},{value:"America/Hermosillo",label:"-07:00 - America - Hermosillo"},{value:"America/Tijuana",label:"-08:00 - Tijuana"},{value:"Asia/Singapore",label:"+08:00 - Singapore"},{value:"Africa/Windhoek",label:"+02:00 - Africa - Windhoek"},{value:"Pacific/Noumea",label:"+11:00 - New Caledonia"},{value:"Pacific/Norfolk",label:"+11:00 - Pacific - Norfolk"},{value:"America/Managua",label:"-06:00 - America - Managua"},{value:"Asia/Kathmandu",label:"+05:45 - Kathmandu"},{value:"Pacific/Nauru",label:"+12:00 - Pacific - Nauru"},{value:"Pacific/Niue",label:"-11:00 - Pacific - Niue"},{value:"Pacific/Chatham",label:"+12:45 - Chatham Is."},{value:"America/Lima",label:"-05:00 - Lima"},{value:"Pacific/Tahiti",label:"-10:00 - Pacific - Tahiti"},{value:"Pacific/Marquesas",label:"-09:30 - Pacific - Marquesas"},{value:"Pacific/Gambier",label:"-09:00 - Pacific - Gambier"},{value:"Pacific/Bougainville",label:"+11:00 - Pacific - Bougainville"},{value:"Asia/Manila",label:"+08:00 - Asia - Manila"},{value:"Asia/Karachi",label:"+05:00 - Karachi"},{value:"Europe/Warsaw",label:"+01:00 - Warsaw"},{value:"America/Miquelon",label:"-03:00 - America - Miquelon"},{value:"Pacific/Pitcairn",label:"-08:00 - Pacific - Pitcairn"},{value:"Asia/Gaza",label:"+02:00 - Asia - Gaza"},{value:"Asia/Hebron",label:"+02:00 - Asia - Hebron"},{value:"Europe/Lisbon",label:"+00:00 - Lisbon"},{value:"Atlantic/Madeira",label:"+00:00 - Atlantic - Madeira"},{value:"Atlantic/Azores",label:"-01:00 - Azores"},{value:"Pacific/Palau",label:"+09:00 - Pacific - Palau"},{value:"America/Asuncion",label:"-04:00 - America - Asuncion"},{value:"Europe/Bucharest",label:"+02:00 - Bucharest"},{value:"Europe/Kaliningrad",label:"+02:00 - Kaliningrad"},{value:"Europe/Moscow",label:"+03:00 - Moscow"},{value:"Europe/Simferopol",label:"+03:00 - Europe - Simferopol"},{value:"Europe/Kirov",label:"+03:00 - Europe - Kirov"},{value:"Europe/Volgograd",label:"+03:00 - Volgograd"},{value:"Europe/Astrakhan",label:"+04:00 - Europe - Astrakhan"},{value:"Europe/Saratov",label:"+04:00 - Europe - Saratov"},{value:"Europe/Ulyanovsk",label:"+04:00 - Europe - Ulyanovsk"},{value:"Europe/Samara",label:"+04:00 - Samara"},{value:"Asia/Yekaterinburg",label:"+05:00 - Ekaterinburg"},{value:"Asia/Omsk",label:"+06:00 - Asia - Omsk"},{value:"Asia/Novosibirsk",label:"+07:00 - Novosibirsk"},{value:"Asia/Barnaul",label:"+07:00 - Asia - Barnaul"},{value:"Asia/Tomsk",label:"+07:00 - Asia - Tomsk"},{value:"Asia/Novokuznetsk",label:"+07:00 - Asia - Novokuznetsk"},{value:"Asia/Krasnoyarsk",label:"+07:00 - Krasnoyarsk"},{value:"Asia/Irkutsk",label:"+08:00 - Irkutsk"},{value:"Asia/Chita",label:"+09:00 - Asia - Chita"},{value:"Asia/Yakutsk",label:"+09:00 - Yakutsk"},{value:"Asia/Khandyga",label:"+09:00 - Asia - Khandyga"},{value:"Asia/Vladivostok",label:"+10:00 - Vladivostok"},{value:"Asia/Ust-Nera",label:"+10:00 - Asia - Ust-Nera"},{value:"Asia/Magadan",label:"+11:00 - Magadan"},{value:"Asia/Sakhalin",label:"+11:00 - Asia - Sakhalin"},{value:"Asia/Srednekolymsk",label:"+11:00 - Srednekolymsk"},{value:"Asia/Kamchatka",label:"+12:00 - Kamchatka"},{value:"Asia/Anadyr",label:"+12:00 - Asia - Anadyr"},{value:"Africa/Khartoum",label:"+02:00 - Africa - Khartoum"},{value:"America/Paramaribo",label:"-03:00 - America - Paramaribo"},{value:"Africa/Juba",label:"+02:00 - Africa - Juba"},{value:"Africa/Sao_Tome",label:"+00:00 - Africa - Sao Tome"},{value:"America/El_Salvador",label:"-06:00 - America - El Salvador"},{value:"Asia/Damascus",label:"+03:00 - Asia - Damascus"},{value:"America/Grand_Turk",label:"-05:00 - America - Grand Turk"},{value:"Africa/Ndjamena",label:"+01:00 - Africa - Ndjamena"},{value:"Asia/Dushanbe",label:"+05:00 - Asia - Dushanbe"}
3,{value:"Pacific/Fakaofo",label:"+13:00 - Tokelau Is."},{value:"Asia/Dili",label:"+09:00 - Asia - Dili"},{value:"Asia/Ashgabat",label:"+05:00 - Asia - Ashgabat"},{value:"Africa/Tunis",label:"+01:00 - Africa - Tunis"},{value:"Pacific/Tongatapu",label:"+13:00 - Nuku'alofa"},{value:"Europe/Istanbul",label:"+03:00 - Istanbul"},{value:"Asia/Taipei",label:"+08:00 - Taipei"},{value:"Europe/Kyiv",label:"+02:00 - Kyiv"},{value:"America/New_York",label:"-05:00 - Eastern Time (US & Canada)"},{value:"America/Detroit",label:"-05:00 - America - Detroit"},{value:"America/Kentucky/Louisville",label:"-05:00 - America - Louisville, Kentucky"},{value:"America/Kentucky/Monticello",label:"-05:00 - America - Monticello, Kentucky"},{value:"America/Indiana/Indianapolis",label:"-05:00 - Indiana (East)"},{value:"America/Indiana/Vincennes",label:"-05:00 - America - Vincennes, Indiana"},{value:"America/Indiana/Winamac",label:"-05:00 - America - Winamac, Indiana"},{value:"America/Indiana/Marengo",label:"-05:00 - America - Marengo, Indiana"},{value:"America/Indiana/Petersburg",label:"-05:00 - America - Petersburg, Indiana"},{value:"America/Indiana/Vevay",label:"-05:00 - America - Vevay, Indiana"},{value:"America/Chicago",label:"-06:00 - Central Time (US & Canada)"},{value:"America/Indiana/Tell_City",label:"-06:00 - America - Tell City, Indiana"},{value:"America/Indiana/Knox",label:"-06:00 - America - Knox, Indiana"},{value:"America/Menominee",label:"-06:00 - America - Menominee"},{value:"America/North_Dakota/Center",label:"-06:00 - America - Center, North Dakota"},{value:"America/North_Dakota/New_Salem",label:"-06:00 - America - New Salem, North Dakota"},{value:"America/North_Dakota/Beulah",label:"-06:00 - America - Beulah, North Dakota"},{value:"America/Denver",label:"-07:00 - Mountain Time (US & Canada)"},{value:"America/Boise",label:"-07:00 - America - Boise"},{value:"America/Los_Angeles",label:"-08:00 - Pacific Time (US & Canada)"},{value:"America/Anchorage",label:"-09:00 - America - Anchorage"},{value:"America/Juneau",label:"-09:00 - Alaska"},{value:"America/Sitka",label:"-09:00 - America - Sitka"},{value:"America/Metlakatla",label:"-09:00 - America - Metlakatla"},{value:"America/Yakutat",label:"-09:00 - America - Yakutat"},{value:"America/Nome",label:"-09:00 - America - Nome"},{value:"America/Adak",label:"-10:00 - America - Adak"},{value:"Pacific/Honolulu",label:"-10:00 - Hawaii"},{value:"America/Montevideo",label:"-03:00 - Montevideo"},{value:"Asia/Samarkand",label:"+05:00 - Asia - Samarkand"},{value:"Asia/Tashkent",label:"+05:00 - Tashkent"},{value:"America/Caracas",label:"-04:00 - Caracas"},{value:"Asia/Ho_Chi_Minh",label:"+07:00 - Asia - Ho Chi Minh"},{value:"Pacific/Efate",label:"+11:00 - Pacific - Efate"},{value:"Pacific/Apia",label:"+13:00 - Samoa"}],ev={hubspot:["hs_context"],marketo:[],pardot:[]}},765(e,t,i){"use strict";i.d(t,{default:()=>r_});var n,r,s=i(1787),o=i(8189),a=i(7057),l=i(3991),c=i(8635),u=i(375),d=i(228);i(7353);var h=i(2902),p=i.n(h),m=i(2693),f=i(9394),g=i(1416);let v=Symbol("auto-discovered-smart-form-submission"),y=["initialize","open","initPardotForm","initPardotFormThankYou","parsePardotForm","parsePardotFormForLandingPage","saveFormData","saveSmartFormData","sendSmartFormData","pardotFormSubmitted","showExperience","endExperience","registerForm","showForm","showFormExperience","showExperienceForForm","refreshVisitorState","getIdentity","handleEvents","handleMessengerEvents","handleWidgetEvents","identify","page","setCookieConsent","teardown","emitFormFill","submitEmbeddedForm","logDebugEvent","setChatIsVisible","startCall","startChat"],b=["open","showExperience"],_="p.email input, div.email input",w=["docking","sentinel"];var E=(0,u._)("_initDeclarativeApi"),S=(0,u._)("_initSmartForms"),A=(0,u._)("_readMonotonicTimestamp"),x=(0,u._)("_getPreservedProperties");class C extends g.A{init(){var e=this;window.QualifiedObject||(window.QualifiedObject="qualified");let t=window.QualifiedObject,i=window[t];if(p()(i)&&Array.isArray(i.q)&&i.q.length>0){let e=i.q,t=e.findIndex(e=>e&&"initialize"===e[0]);
3-1!==t&&(this.execute(...e[t]),e.splice(t,1)),this.queue=e,delete i.q}let n=(0,c._)(this,x)[x](i);window[t]=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];e.execute(...i)},Object.defineProperties(window[t],n),this.initialized=!0}cleanup(){if(this.initialized){let e=(0,c._)(this,x)[x](window[window.QualifiedObject]);window[window.QualifiedObject]=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];window[window.QualifiedObject].q.push(t)},window[window.QualifiedObject].q=[],Object.defineProperties(window[window.QualifiedObject],e),this.initialized=!1}super.cleanup()}markReady(){this.ready=!0,this.queue.length>0&&(this.queue.forEach(e=>this.execute(...e)),this.queue=[])}isCommandDenied(e){let t=(0,f.mk)(e);return!(!t||this.isCommandCapabilityAllowed(e))&&(console.warn("Qualified: '"+e+"' was ignored â the '"+t+"' capability was not allowed at setup()."),!0)}isCommandCapabilityAllowed(e){let t=(0,f.mk)(e);return!t||(0,f.RC)(t)}beginAutoDiscoveredSmartFormSubmission(e){return e}completeAutoDiscoveredSmartFormSubmission(e){}execute(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];if(e&&this.handlers[e]){if(this.isCommandDenied(e))return;this.ready||"initialize"===e?this.handlers[e].apply(void 0,i):this.queue.push([e,...i])}else console.warn("Qualified: Invalid API call '"+e+"'.")}constructor(e,t){super(e),Object.defineProperty(this,A,{value:T}),Object.defineProperty(this,x,{value:k}),Object.defineProperty(this,E,{writable:!0,value:void 0}),Object.defineProperty(this,S,{writable:!0,value:void 0}),this.initialized=!1,this.ready=!1,(0,c._)(this,E)[E]=()=>{[].slice.call(document.querySelectorAll("[data-qualified-action]")).forEach(e=>{let t=e.dataset.qualifiedAction;if(!(0,m.S1)(b,t))return;let i=Object.keys(e.dataset).sort().reduce((t,i)=>{if(/^qualifiedArg/.test(i)){var n;t[Number(null==(n=/^qualifiedArg-([0-9])+/.exec(i))?void 0:n[1])||0]=e.dataset[i]}return t},[]),n=()=>this.execute(t,...i);e.addEventListener("click",n),this.callOnDispose(()=>e.removeEventListener("click",n))})},(0,c._)(this,S)[S]=()=>{[].slice.call(document.querySelectorAll("[data-qualified-smart-form]")).forEach(e=>{let{onsubmit:t}=e,i="true"===e.dataset.qualifiedSmartForm?"default":e.dataset.qualifiedSmartForm,n=e.dataset.qualifiedSmartFormTrigger;e.onsubmit=r=>{let s=(0,c._)(this,A)[A](),a=!t||t.call(e,r);try{let t="submit"===n||"redirect"!==n&&(!1===a||r.defaultPrevented),l=(0,o.f8)(),c=t&&!l?this.beginAutoDiscoveredSmartFormSubmission((0,d._)({marker:v,form:e,submitEvent:r},void 0!==s?{nativeSubmitAtMs:s}:{})):void 0,u=[].slice.call(r.target.querySelectorAll("[data-qualified-field]")).reduce((e,t)=>{let{dataset:{qualifiedField:i},value:n,checked:r,type:s}=t;switch(s){case"checkbox":e[i]=r;break;case"radio":r&&(e[i]=n);break;case"password":break;default:n.trim()&&(e[i]=n)}return e},{});c&&this.completeAutoDiscoveredSmartFormSubmission(c),t||l?c?this.execute("sendSmartFormData",u,i,c):this.execute("sendSmartFormData",u,i):this.execute("saveSmartFormData",u,i)}catch(e){throw e}return a},this.callOnDispose(()=>e.onsubmit=t)})},this.handlers=t,this.queue=[],(0,c._)(this,E)[E](),(0,c._)(this,S)[S]()}}function T(){try{let e=performance.now();return Number.isFinite(e)&&e>=0?e:void 0}catch(e){return}}function k(e){if(!e)return{};let t={};for(let i of w)if(i in e){let n=Object.getOwnPropertyDescriptor(e,i);n&&(t[i]=n)}return t}let I=C;var F=i(4613);let O=RegExp("https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)");var M=i(2283),R=i(8274);let P="QualifiedForm-formControl",D="QualifiedForm-formLabel",L="QualifiedForm-formLabel--optional",N="QualifiedForm-formControl--textInput",j="QualifiedForm-formControl--textarea",B="QualifiedForm-formControl--select",U="QualifiedForm-formField--checkbox";class z{classNamesToString(e){return e.filter(Boolean).join(" ")}printError(e){console.log("[Qualified] QualifiedFormField: "+e)}toHtml(){let e="";switch(this.field.type){case"boolean":e=this.renderCheckboxControl();break;case"company":case"name":case"string":e=this.renderTextControl();break;case"decimal":e=this.renderNumberControl();break;case"picklist":e=this.renderPicklistControl();break;case"phone":e=this.renderPhoneControl();break;case"text":e=this.renderTextareaControl();break;default:this.printError("Unsupported control type: "+this.field.type)}let t=this.classNamesToString(["QualifiedForm-formField","boolean"===this.field.type?U:null]),i=this.renderLabel(),n='\n <div class="QualifiedForm-formControlContainer">\n '+e+"\n </div>\n ",r=this.renderErrorMessages();return('\n <div class="'+t+'" data-qualified-form-field-name="'+(0,R.Z)(this.field.name)+'">\n '+("boolean"===this.field.type?[n,i,r].join(""):[i,n,r].join(""))+"\n </div>\n ").trim()}getFormControlId(){return"qualified-form-field-"+this.instanceId+"-id-"+this.field.fieldId}getFormControlName(){let e=(0,R.Z)(this.field.name);return this.fieldNamespace?this.fieldNamespace+"["+e+"]":e}renderLabel(){let e=this.field.optional?" <span class="+L+">(optional)</span>":"";return"\n <label\n class="+D+'\n for="'+this.getFormControlId()+'"\n >'+(0,R.Z)(this.field.label)+e+"</label>\n "}renderErrorMessages(){return'\n <div class="QualifiedForm-formErrorsContainer" role="alert">\n <div class="QualifiedForm-formError QualifiedForm-formError--empty" hidden>\n Please complete this field.\n </div>\n <div class="QualifiedForm-formError QualifiedForm-formError--invalid" hidden>\n Please provide a valid value.\n </div>\n </div>\n '}renderInput(e){return'\n <input\n class="'+this.classNamesToString([P,N])+'"\n id="'+this.getFormControlId()+'"\n name="'+this.getFormControlName()+'"\n placeholder="'+(0,R.Z)(this.field.placeholder)+'"\n '+(this.field.optional?"":"required")+'\n type="'+e+'"\n value=""\n />\n '}renderCheckboxControl(){let e=this.getFormControlName();return'\n <input\n name="'+e+'"\n type="hidden"\n value="false"\n />\n <input\n class="'+P+'"\n id="'+this.getFormControlId()+'"\n name="'+e+'"\n type="checkbox"\n value="true"\n />\n '}renderNumberControl(){return this.renderInput("number")}renderPhoneControl(){return this.renderInput("tel")}renderPicklistControl(){return'\n <select\n class="'+this.classNamesToString([P,B])+'"\n id="'+this.getFormControlId()+'"\n name="'+this.getFormControlName()+'"\n '+(this.field.optional?"":"required")+"\n >\n "+(this.field.placeholder?'<option value="">'+(0,R.Z)(this.field.placeholder)+"</option>":"")+"\n "+(this.field.fieldValues||[]).map(e=>'<option value="'+(0,R.Z)(e.value)+'">'+(0,R.Z)(e.label)+"</option>").join("")+"\n </select>\n "}renderTextControl(){return this.renderInput("text")}renderTextareaControl(){return'\n <textarea\n class="'+this.classNamesToString([P,j])+'"\n id="'+this.getFormControlId()+'"\n name="'+this.getFormControlName()+'"\n placeholder="'+(0,R.Z)(this.field.placeholder)+'"\n '+(this.field.optional?"":"required")+"\n ></textarea>\n "}constructor(e,t={}){this.instanceId=z.instanceId++,this.field=e,t.fieldNamespace&&(this.fieldNamespace=t.fieldNamespace)}}z.instanceId=0;var q=i(8034).pS,H=((n=H||{})[n.EmailBusinessRequired="non_business"]="EmailBusinessRequired",n[n.EmailInvalid="invalid"]="EmailInvalid",n),V=((r={}).EmailPending="emailPending",r.EmailReady="emailReady",r.FollowUpQuestionsPending="followUpQuestionsPending",r.FollowUpQuestionsReady="followUpQuestionsReady",r.Success="success",r);class W extends HTMLElement{connectedCallback(){this.appendChild(this.template.content.cloneNode(!0)),this.setFormState("emailReady"),this.validateAttributes(),this.renderElements();let e=this.getElement("emailInput"),t=this.getElement("form");null==e||e.addEventListener("input",this.handleEmailInputInput),null==t||t.addEventListener("submit",this.handleFormSubmit),this.qual
3ifiedFormApi=this.createQualifiedFormApi()}attributeChangedCallback(e,t,i){this.validateAttributes([e]),this.renderElements()}printError(e){console.error("[Qualified] Embedded form: "+e)}renderElements(){this.renderEmailInput(),this.renderSubmitButton(),this.renderSuccessMessage()}createQualifiedFormApi(){return null==this.formExperienceApiName?(this.printError("`formExperienceApiName` property is required"),null):new M.Dj({channel:this.channel,config:{validateBusinessEmail:"true"===this.validateBusinessEmail},formApiName:this.formExperienceApiName,iframeManager:this.iframeManager,source:"embedded"})}setOrRemoveAttribute(e,t){null!=t?this.setAttribute(e,t):this.removeAttribute(e)}get emailInputLabelText(){return this.getAttribute(W.EMAIL_INPUT_LABEL_TEXT_ATTRIBUTE)}set emailInputLabelText(e){this.setOrRemoveAttribute(W.EMAIL_INPUT_LABEL_TEXT_ATTRIBUTE,e)}get emailInputPlaceholderText(){return this.getAttribute(W.EMAIL_INPUT_PLACEHOLDER_TEXT_ATTRIBUTE)}set emailInputPlaceholderText(e){this.setOrRemoveAttribute(W.EMAIL_INPUT_PLACEHOLDER_TEXT_ATTRIBUTE,e)}get emailSubmitButtonInnerHtml(){return this.getAttribute(W.EMAIL_SUBMIT_BUTTON_INNER_HTML_ATTRIBUTE)}set emailSubmitButtonInnerHtml(e){this.setOrRemoveAttribute(W.EMAIL_SUBMIT_BUTTON_INNER_HTML_ATTRIBUTE,e)}get formControlCheckboxClassName(){return this.getAttribute(W.FORM_CONTROL_CHECKBOX_CLASS_NAME_ATTRIBUTE)}set formControlCheckboxClassName(e){this.setOrRemoveAttribute(W.FORM_CONTROL_CHECKBOX_CLASS_NAME_ATTRIBUTE,e)}get formControlTextareaClassName(){return this.getAttribute(W.FORM_CONTROL_TEXTAREA_CLASS_NAME_ATTRIBUTE)}set formControlTextareaClassName(e){this.setOrRemoveAttribute(W.FORM_CONTROL_TEXTAREA_CLASS_NAME_ATTRIBUTE,e)}get formControlTextInputClassName(){return this.getAttribute(W.FORM_CONTROL_TEXT_INPUT_CLASS_NAME_ATTRIBUTE)}set formControlTextInputClassName(e){this.setOrRemoveAttribute(W.FORM_CONTROL_TEXT_INPUT_CLASS_NAME_ATTRIBUTE,e)}get formControlFormLabelClassName(){return this.getAttribute(W.FORM_CONTROL_FORM_LABEL_CLASS_NAME_ATTRIBUTE)}set formControlFormLabelClassName(e){this.setOrRemoveAttribute(W.FORM_CONTROL_FORM_LABEL_CLASS_NAME_ATTRIBUTE,e)}get formControlFormLabelOptionalClassName(){return this.getAttribute(W.FORM_CONTROL_FORM_LABEL_OPTIONAL_CLASS_NAME_ATTRIBUTE)}set formControlFormLabelOptionalClassName(e){this.setOrRemoveAttribute(W.FORM_CONTROL_FORM_LABEL_OPTIONAL_CLASS_NAME_ATTRIBUTE,e)}get formControlSelectClassName(){return this.getAttribute(W.FORM_CONTROL_SELECT_CLASS_NAME_ATTRIBUTE)}set formControlSelectClassName(e){this.setOrRemoveAttribute(W.FORM_CONTROL_SELECT_CLASS_NAME_ATTRIBUTE,e)}get formExperienceApiName(){return this.getAttribute(W.FORM_EXPERIENCE_API_NAME_ATTRIBUTE)}set formExperienceApiName(e){this.setOrRemoveAttribute(W.FORM_EXPERIENCE_API_NAME_ATTRIBUTE,e)}get submitButtonClassName(){return this.getAttribute(W.SUBMIT_BUTTON_CLASS_NAME_ATTRIBUTE)}set submitButtonClassName(e){this.setOrRemoveAttribute(W.SUBMIT_BUTTON_CLASS_NAME_ATTRIBUTE,e)}get successMessageInnerHtml(){return this.getAttribute(W.SUCCESS_MESSAGE_INNER_HTML_ATTRIBUTE)}set successMessageInnerHtml(e){this.setOrRemoveAttribute(W.SUCCESS_MESSAGE_INNER_HTML_ATTRIBUTE,e)}get successRedirectUrl(){let e=this.getAttribute(W.SUCCESS_REDIRECT_URL_ATTRIBUTE);return null!=e&&O.test(e)?e:null}set successRedirectUrl(e){(null==e||O.test(e))&&this.setOrRemoveAttribute(W.SUCCESS_REDIRECT_URL_ATTRIBUTE,e)}get validateBusinessEmail(){return this.getAttribute(W.VALIDATE_BUSINESS_EMAIL_ATTRIBUTE)}set validateBusinessEmail(e){this.setOrRemoveAttribute(W.VALIDATE_BUSINESS_EMAIL_ATTRIBUTE,e)}get version(){return this.getAttribute(W.VERSION_ATTRIBUTE)}set version(e){this.setOrRemoveAttribute(W.VERSION_ATTRIBUTE,e)}validateAttributes(e){void 0===e&&(e=W.observedAttributes),e.includes(W.FORM_EXPERIENCE_API_NAME_ATTRIBUTE)&&(null==this.formExperienceApiName||""===this.formExperienceApiName)&&this.printError("The `"+W.FORM_EXPERIENCE_API_NAME_ATTRIBUTE+"` attribute is required"),e.includes(W.VALIDATE_BUSINESS_EMAIL_ATTRIBUTE)&&null!=this.validateBusinessEmail&&"true"!==this.validateBusinessEmail&&this.printError("Invalid `"+W.VALIDATE_BUSINESS_EMAIL_ATTRIBUTE+"` attribute value: "+this.validateBusinessEmail),e.includes(W.VERSION_ATTRIBUTE)&&(null==this.version||""===this.version?this.printError("The `q-version` attribute is required"):"0"
3!==this.version&&this.printError("Invalid `"+W.VERSION_ATTRIBUTE+"` attribute value: "+this.version))}getElement(e){let t;if("emailInput"===e?t=".QualifiedForm-emailFieldContainer ."+P:"emailInputLabel"===e?t=".QualifiedForm-emailFieldContainer .QualifiedForm-formLabel":"followUpQuestionsContainer"===e?t=".QualifiedForm-followUpQuestionsContainer":"form"===e?t=".QualifiedForm-form":"formErrorEmailBusinessRequired"===e?t=".QualifiedForm-formError--emailBusinessRequired":"formErrorEmailInvalid"===e?t=".QualifiedForm-formError--emailInvalid":"submitButton"===e?t="."+W.SUBMIT_BUTTON_CLASS_NAME:"successContainer"===e?t=".QualifiedForm-successContainer":"successMessage"===e&&(t=".QualifiedForm-successMessage"),null!=t)return this.querySelector(t);throw Error("Unknown element name: "+e)}getFormState(){let e=this.getAttribute(W.FORM_STATE_ATTRIBUTE);if(!Object.values(V).includes(e))throw Error("Unknown form state: "+e);return e}setFormState(e){let t=this.getElement("emailInput"),i=this.getElement("form"),n=this.getElement("followUpQuestionsContainer"),r=this.getElement("submitButton"),s=this.getElement("successContainer");this.setAttribute(W.FORM_STATE_ATTRIBUTE,e),t&&(t.disabled="emailPending"===e||"success"===e),n&&("followUpQuestionsReady"===e?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden","true")),i&&("success"===e?i.setAttribute("aria-hidden","true"):i.removeAttribute("aria-hidden")),r&&(r.disabled="emailPending"===e||"success"===e,("emailReady"===e||"followUpQuestionsPending"===e||"followUpQuestionsReady"===e)&&(r.innerHTML="Submit")),s&&(s.hidden="success"!==e)}renderEmailInput(){var e;let t=this.getElement("emailInput"),i=this.getElement("emailInputLabel");if(!t||!i)return;let n=this.formControlFormLabelClassName;null!=n&&(i.className=[D,...n.split(/\s+/)].join(" "));let r=this.formControlTextInputClassName,s="true"===this.validateBusinessEmail?"Business email":"Email",o=null!=(e=this.emailInputPlaceholderText)?e:s;null!=r&&(t.className=[P,N,...r.split(/\s+/)].join(" ")),t.setAttribute("placeholder",o)}renderSubmitButton(){let e=this.getElement("submitButton");if(!e)return;if(["emailPending","followUpQuestionsPending"].includes(this.getFormState())){let{color:t}=getComputedStyle((0,F.Vw)(e)||e);e.innerHTML=(0,R.I)(t,11);return}let t=this.submitButtonClassName;if(null!=t){let i=t.split(" ");e.className=[W.SUBMIT_BUTTON_CLASS_NAME,...i].join(" ")}let i=this.emailSubmitButtonInnerHtml;null!=i&&(e.innerHTML=i)}renderSuccessMessage(){let e=this.getElement("successMessage");if(!e)return;let t=this.successMessageInnerHtml;null!=t&&(e.innerHTML=t)}getFormData(){let e=new FormData(this.getElement("form")),t=Array.from(new Set(e.keys())).reduce((t,i)=>{if(i.startsWith("followUpQuestions[")){var n;let r=null!=(n=e.getAll(i).at(-1))?n:"";return t.concat([[i,r]])}return t},[]),i={email:e.get("email")};return t.length>0&&(i.followUpQuestions=t),i}applyFollowUpQuestionFormFieldClasses(e,t,i){var n;let r=null!=(n=null==i?void 0:i.split(/\s+/))?n:[];e.querySelectorAll("."+t).forEach(e=>{e.classList.add(...r)})}renderFollowUpQuestions(e){let{inputFields:t}=e,i=t.map(e=>new z(e,{fieldNamespace:"followUpQuestions"}).toHtml()).join(""),n=this.getElement("followUpQuestionsContainer");n&&(n.innerHTML=i,this.applyFollowUpQuestionFormFieldClasses(n,N,this.formControlTextInputClassName),this.applyFollowUpQuestionFormFieldClasses(n,j,this.formControlTextareaClassName),this.applyFollowUpQuestionFormFieldClasses(n,U,this.formControlCheckboxClassName),this.applyFollowUpQuestionFormFieldClasses(n,D,this.formControlFormLabelClassName),this.applyFollowUpQuestionFormFieldClasses(n,L,this.formControlFormLabelOptionalClassName),this.applyFollowUpQuestionFormFieldClasses(n,B,this.formControlSelectClassName))}showErrorMessage(e){let t,i;e===H.EmailBusinessRequired?(t=this.getElement("formErrorEmailBusinessRequired"),i=this.getElement("emailInput")):e===H.EmailInvalid&&(t=this.getElement("formErrorEmailInvalid"),i=this.getElement("emailInput")),t&&i?(t.removeAttribute("hidden"),i.setAttribute("aria-invalid","true")):this.printError("Unknown error key: "+e)}hideErrorMessages(){var e;
3for(let t of null!=(e=this.querySelectorAll("."+W.FORM_ERROR_CLASS_NAME))?e:[])t.setAttribute("hidden","true");this.querySelectorAll("[aria-invalid]").forEach(e=>{e.removeAttribute("aria-invalid")})}doSuccessStep(e){this.successRedirectUrl||this.setFormState("success"),this.triggerEvent("qualifiedFormSuccess",{formData:e}),this.successRedirectUrl&&(window.location.href=this.successRedirectUrl)}triggerEvent(e,t){let i=new CustomEvent(e,{bubbles:!0,detail:(0,d._)({formExperienceApiName:this.formExperienceApiName},t)});this.dispatchEvent(i)}constructor(...e){super(...e),this.instanceId=W.instanceId++,this.handleEmailInputInput=()=>{if("emailReady"===this.getFormState())return;let e=this.getElement("followUpQuestionsContainer");e&&(this.setFormState("emailReady"),q(()=>{e.innerHTML=""},500))},this.handleFormSubmit=async e=>{e.preventDefault();let t=this.getFormState();if("emailReady"===t)this.handleFormEmailSubmit(e);else if("followUpQuestionsReady"===t)this.handleFormFollowUpQuestionsSubmit(e);else throw Error("Invalid form state: "+t)},this.handleFormEmailSubmit=async e=>{let t=this.getFormData();if(null==t.email||null==this.qualifiedFormApi)return;this.triggerEvent("qualifiedFormEmailSubmit",{formData:t}),this.setFormState("emailPending"),this.hideErrorMessages();let i=this.qualifiedFormApi.submitEmail(t.email);if(i.success){let e=await i.result;e.form?(this.renderFollowUpQuestions(e.form),this.setFormState("followUpQuestionsReady")):this.doSuccessStep(t)}else this.showErrorMessage(i.error),this.setFormState("emailReady")},this.handleFormFollowUpQuestionsSubmit=async e=>{let t=this.getFormData(),i=t.followUpQuestions.map(e=>{let[,t]=e;return t});if(0===i.length||null==this.qualifiedFormApi)return;this.triggerEvent("qualifiedFormFollowUpQuestionsSubmit",{formData:t}),this.setFormState("followUpQuestionsPending"),this.hideErrorMessages();let n=this.qualifiedFormApi.submitFollowUpQuestions(i);n.success?this.doSuccessStep(t):n.errors&&(Object.entries(n.errors).forEach(e=>{let[t,i]=e,n=this.querySelector('[data-qualified-form-field-name="'+t+'"]'),r=null==n?void 0:n.querySelector("input, select"),s=null==n?void 0:n.querySelector(".QualifiedForm-formError--"+i.type);null==r||r.setAttribute("aria-invalid","true"),null==s||s.removeAttribute("hidden")}),this.setFormState("followUpQuestionsReady"))}}}W.instanceId=0,W.EMAIL_INPUT_LABEL_TEXT_ATTRIBUTE="q-email-input-label-text",W.EMAIL_INPUT_PLACEHOLDER_TEXT_ATTRIBUTE="q-email-input-placeholder-text",W.EMAIL_SUBMIT_BUTTON_INNER_HTML_ATTRIBUTE="q-email-submit-button-inner-html",W.FORM_CONTROL_CHECKBOX_CLASS_NAME_ATTRIBUTE="q-checkbox-class-name",W.FORM_CONTROL_FORM_LABEL_CLASS_NAME_ATTRIBUTE="q-form-label-class-name",W.FORM_CONTROL_FORM_LABEL_OPTIONAL_CLASS_NAME_ATTRIBUTE="q-form-label-optional-class-name",W.FORM_CONTROL_TEXTAREA_CLASS_NAME_ATTRIBUTE="q-textarea-class-name",W.FORM_CONTROL_TEXT_INPUT_CLASS_NAME_ATTRIBUTE="q-text-input-class-name",W.FORM_CONTROL_SELECT_CLASS_NAME_ATTRIBUTE="q-select-class-name",W.FORM_EXPERIENCE_API_NAME_ATTRIBUTE="q-form-experience-api-name",W.FORM_STATE_ATTRIBUTE="data-form-state",W.SUBMIT_BUTTON_CLASS_NAME_ATTRIBUTE="q-submit-button-class-name",W.SUCCESS_MESSAGE_INNER_HTML_ATTRIBUTE="q-success-message-inner-html",W.SUCCESS_REDIRECT_URL_ATTRIBUTE="q-success-redirect-url",W.VALIDATE_BUSINESS_EMAIL_ATTRIBUTE="q-validate-business-email",W.VERSION_ATTRIBUTE="q-version",W.FORM_ERROR_CLASS_NAME="QualifiedForm-formError",W.SUBMIT_BUTTON_CLASS_NAME="QualifiedForm-submitButton",W.observedAttributes=[W.FORM_CONTROL_CHECKBOX_CLASS_NAME_ATTRIBUTE,W.FORM_CONTROL_FORM_LABEL_CLASS_NAME_ATTRIBUTE,W.FORM_CONTROL_FORM_LABEL_OPTIONAL_CLASS_NAME_ATTRIBUTE,W.FORM_CONTROL_TEXTAREA_CLASS_NAME_ATTRIBUTE,W.FORM_CONTROL_TEXT_INPUT_CLASS_NAME_ATTRIBUTE,W.FORM_CONTROL_SELECT_CLASS_NAME_ATTRIBUTE,W.EMAIL_INPUT_LABEL_TEXT_ATTRIBUTE,W.EMAIL_INPUT_PLACEHOLDER_TEXT_ATTRIBUTE,W.EMAIL_SUBMIT_BUTTON_INNER_HTML_ATTRIBUTE,W.FORM_EXPERIENCE_API_NAME_ATTRIBUTE,W.SUBMIT_BUTTON_CLASS_NAME_ATTRIBUTE,W.SUCCESS_MESSAGE_INNER_HTML_ATTRIBUTE,W.SUCCESS_REDIRECT_URL_ATTRIBUTE,W.VALIDATE_BUSINESS_EMAIL_ATTRIBUTE,W.VERSION_ATTRIBUTE,W.FORM_STATE_ATTRIBUTE];let Q="qualified-form";async function J(e){var t,i,n,r,s,o,a,l,c,u,d,h,p;await window.customElements.whenDefined(Q);let m=document.createElement(Q);return m.emailInputLabelText=null!=(t=e.emailInputLabelText)?t:null,m.emailInputPlaceholderText=null!=(i=e.emailInputPlaceholderText)?i:null,m.emailSubmitButtonInnerHtml=null!=(n=e.emailSubmitButtonInnerHtml)?n:null,m.formControlFormLabelClassName=null!=(r=e.formControlFormLabelClassName)?r:null,m.formControlFormLabelOptionalClassName=null!=(s=e.formControlFormLabelOptionalClassName)?s:null,m.formControlCheckboxClassName=null!=(o=e.formControlCheckboxClassName)?o:null,m.formControlTextInputClassName=null!=(a=e.formControlTextInputClassName)?a:null,m.formControlTextareaClassName=null!=(l=e.formControlTextareaClassName)?l:null,m.formControlSelectClassName=null!=(c=e.formControlSelectClassName)?c:null,m.formExperienceApiName=e.formExperienceApiName,m.submitButtonClassName=null!=(u=e.submitButtonClassName)?u:null,m.successMessageInnerHtml=null!=(d=e.successMessageInnerHtml)?d:null,m.successRedirectUrl=null!=(h=e.successRedirectUrl)?h:null,m.validateBusinessEmail=null!=(p=e.validateBusinessEmail)?p:null,m.version=e.version,e.onEmailSubmit&&m.addEventListener("qualifiedFormEmailSubmit",e.onEmailSubmit),e.onSuccess&&m.addEventListener("qualifiedFormSuccess",e.onSuccess),m}let K={string:e=>e,number:e=>{let t=Number(e);return Number.isNaN(t)?void 0:t},boolean:e=>"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0,enum:(e,t)=>
3{var i;let{allowed:n,aliases:r}=t,s=null!=(i=null==r?void 0:r[e])?i:e;if(null==n?void 0:n.includes(s))return s}};var G=i(9192);i(5062);let Y=i.p+"7271f3433ed82fc7f56adcd9e30275f4.svg",$=i.p+"41842993ec71d6628e4949e9a22b146b.svg";var X=i(8034).zh;let Z="debug_store",ee="submitted_store",et="debugLink",ei="16px",en=e=>"calc(50% - "+e+"/2 + "+ei+")",er={padding:ei,position:"fixed",maxWidth:"400px",bottom:"0",fontSize:"16px",backgroundColor:"#6558FF",borderRadius:"8px 8px 0px 0px",left:en("400px"),zIndex:0x7fffffff},es={paddingLeft:ei,paddingRight:ei,color:"#FFFFFF",fontFamily:"sans-serif",lineHeight:"1.5"},eo={height:"12px",paddingLeft:ei,alignSelf:"center",width:"30px"},ea={height:"25px",filter:"invert(1)",width:"21px"},el=(e,t,i)=>{if(e.style.maxWidth="490px",e.style.left=en("490px"),t.innerText="Form submission detected",!document.getElementById(et)){let e,i=(Object.assign((e=document.createElement("div")).style,es),e.style.textDecoration="underline",e.style.fontWeight="600",e.innerText="View debug report",e.id=et,e);i.addEventListener("click",()=>{var e,t;let i,n,r;alert(((i=[]).push("Results from your form submission\n"),n=null!=(e=ec.getApiMessage("saveFormData"))?e:'[Error] "saveFormData" was not called.',i.push(n),r=null!=(t=ec.getApiMessage("showFormExperience"))?t:'[Error] "showFormExperience" was not called.',i.push(r),i.push(""),n.includes("[Error]")||r.includes("[Error]")?i.push("There are problems with this form setup. Please address the issues above and try again."):i.push("Congratulations! This form is successfully set up. If the Experience is still not appearing, please ask your Qualified admin to make sure that the Experience is enabled and properly configured."),i).join("\n"))}),t.insertAdjacentElement("afterend",i)}};class ec{}ec.initializeDebugMode=()=>{(0,G.C6)(Z,{startTime:Date.now(),apiCalls:{}})},ec.exitDebugMode=()=>{(0,G.C6)(Z,void 0)},ec.isInDebugMode=()=>{let e=(0,G.yw)(Z);return e&&Date.now()-e.startTime<18e5},ec.setApiMessage=(e,t,i)=>{let n=(0,G.yw)(Z);n&&(n.apiCalls[e]="["+t+"] "+i,(0,G.C6)(Z,n))},ec.getApiMessage=e=>{let t=(0,G.yw)(Z);return t?t.apiCalls[e]:null};var eu=i(97),ed=i(2845),eh=i(8034).pS,ep=i(8034).Kj,em=(0,u._)("_telemetry"),ef=(0,u._)("_flushed"),eg=(0,u._)("_slowTimeout"),ev=(0,u._)("_initSpan"),ey=(0,u._)("_traceId"),eb=(0,u._)("_rootSpanId"),e_=(0,u._)("_flush");function ew(e){ep((0,c._)(this,eg)[eg]),(0,c._)(this,ef)[ef]=!0,(0,c._)(this,ev)[ev].end(),(0,c._)(this,em)[em].flush({rootAttributes:{loadTimeoutExpired:e},traceId:(0,c._)(this,ey)[ey],rootSpanId:(0,c._)(this,eb)[eb]})}let eE=new class{get telemetry(){return(0,c._)(this,em)[em]}get initSpan(){return(0,c._)(this,ev)[ev]}get traceId(){return(0,c._)(this,ey)[ey]}get rootSpanId(){return(0,c._)(this,eb)[eb]}startSlowTimeout(){(0,c._)(this,eg)[eg]=eh(()=>{(0,c._)(this,e_)[e_](!0)},3e4)}endBootstrap(){(0,c._)(this,ef)[ef]||(0,c._)(this,e_)[e_](!1)}constructor(e){Object.defineProperty(this,e_,{value:ew}),Object.defineProperty(this,em,{writable:!0,value:void 0}),Object.defineProperty(this,ef,{writable:!0,value:void 0}),Object.defineProperty(this,eg,{writable:!0,value:void 0}),Object.defineProperty(this,ev,{writable:!0,value:void 0}),Object.defineProperty(this,ey,{writable:!0,value:void 0}),Object.defineProperty(this,eb,{writable:!0,value:void 0}),(0,c._)(this,em)[em]=e,(0,c._)(this,ef)[ef]=!1,(0,c._)(this,ev)[ev]=(0,c._)(this,em)[em].startSpan("Init WidgetBootstrap",{},null),(0,c._)(this,ey)[ey]=(0,ed.A)().replace(/-/g,""),(0,c._)(this,eb)[eb]=(0,ed.A)().replace(/-/g,"").slice(0,16)}}(s.Y9);var eS=i(5482),eA=i(7753),ex=i.n(eA),eC=i(1442),eT=i.n(eC);let ek={cs:{language:"Czech",translated_language:"ÄeÅ¡tina",snippet:{page:{skip_to_chat:"PÅeskoÄit na chat"}}},da:{language:"Danish",translated_language:"Dansk",snippet:{page:{skip_to_chat:"Spring til chat"}}},de:{language:"German",translated_language:"Deutsch",snippet:{page:{skip_to_chat:"Weiter zum Chat"}}},en:{language:"English",translated_language:"English",snippet:{page:{skip_to_chat:"Skip to chat"}}},en_AU:{language:"English (Australian)",translated_language:"English (Australian)",snippet:{page:{skip_to_chat:"Skip to chat"}}},en_GB:{language:"English (United Kingdom)",translated_language:"English (United Kingdom)",snippet:{page:{skip_to_chat:"Skip to chat"}}},es:{language:"Spanish",translated_language:"Español",snippet:{page:{skip_to_chat:"Saltar al chat"}}
3},es_LA:{language:"Spanish (Latin America)",translated_language:"Español",snippet:{page:{skip_to_chat:"Pasar al chat"}}},fi:{language:"Finnish",translated_language:"Suomi",snippet:{page:{skip_to_chat:"Siirry chattiin"}}},fr:{language:"French (European)",translated_language:"Français",snippet:{page:{skip_to_chat:"Sauter à la discussion"}}},fr_CA:{language:"French (Canadian)",translated_language:"Français (Canadien)",snippet:{page:{skip_to_chat:"Passer au clavardage"}}},id:{language:"Indonesian",translated_language:"Bahasa Indonesia",snippet:{page:{skip_to_chat:"Lanjut ke chat"}}},it:{language:"Italian",translated_language:"Italiano",snippet:{page:{skip_to_chat:"Passa alla chat"}}},ja:{language:"Japanese",translated_language:"æ¥æ¬èª",snippet:{page:{skip_to_chat:"ãã£ããã¸ã¹ããã"}}},ko:{language:"Korean",translated_language:"íêµì´",snippet:{page:{skip_to_chat:"ì±í
ì¼ë¡ ê±´ëë°ê¸°"}}},nb:{language:"Norwegian",translated_language:"Norsk bokmÃ¥l",snippet:{page:{skip_to_chat:"Hopp til chat"}}},nl:{language:"Dutch",translated_language:"Nederlands",snippet:{page:{skip_to_chat:"Direct naar de chat"}}},pl:{language:"Polish",translated_language:"Polski",snippet:{page:{skip_to_chat:"Przejdź do czatu"}}},pt_BR:{language:"Portuguese (Brazil)",translated_language:"português",snippet:{page:{skip_to_chat:"Ir para o chat"}}},ru:{language:"Russian",translated_language:"ÑÑÑÑкий ÑзÑк",snippet:{page:{skip_to_chat:"ÐеÑейÑи к ÑаÑÑ"}}},sv:{language:"Swedish",translated_language:"Svenska",snippet:{page:{skip_to_chat:"Hoppa till chatten"}}},th:{language:"Thai",translated_language:"à¹à¸à¸¢",snippet:{page:{skip_to_chat:"à¸à¹à¸²à¸¡à¹à¸à¸à¸µà¹à¸à¸²à¸£à¹à¸à¸"}}},tr:{language:"Turkish",translated_language:"Türkçe",snippet:{page:{skip_to_chat:"Sohbete geç"}}},vi:{language:"Vietnamese",translated_language:"Tiếng Viá»t",snippet:{page:{skip_to_chat:"Chuyá»n Äến trò chuyá»n"}}},zh_CN:{language:"Chinese (Simplified)",translated_language:"æ±è¯",snippet:{page:{skip_to_chat:"跳转å°è天 "}}},zh_TW:{language:"Chinese (Traditional)",translated_language:"æ¼¢èª",snippet:{page:{skip_to_chat:"è·³è³è天室"}}}};var eI=i(1078),eF=i(525),eO=i(1314),eM=i(8715);let eR=Symbol("__isProxy");class eP{get(){return this.original}applyLoading(e){this.revert(),(0,F.lc)(this.original,e),this.unfreeze=this.freezeDomNode(this.original,{content:!0,style:!0}),this.state="loading"}removeLoading(){"loading"!==this.state||this.config&&this.personalize(this.config)}personalize(e){this.revert(),this.config=e,(0,F.Db)(this.original,e),this.unfreeze=this.freezeDomNode(this.original,this.getFreezeOptions(e)),this.state="personalized"}revert(){if("original"===this.state)return void this.snapshot();let e=null==this.unfreeze?void 0:this.unfreeze.call(this);this.original.innerHTML=this.innerHTML,"string"==typeof this.cssText&&this.original instanceof HTMLElement&&(this.original.style.cssText=this.cssText),e&&this.applyFreezeChanges(e),this.snapshot(),this.unfreeze=void 0,this.state="original"}addObserver(e){e.observe(this.original)}removeObserver(e){e.unobserve(this.original)}snapshot(){this.innerHTML=this.original.innerHTML,this.original instanceof HTMLElement&&(this.cssText=this.original.style.cssText)}freezeDomNode(e,t){let{content:i,style:n}=t,r=[];return i&&r.push(this.freezeDomProperty(e,"textContent",Node.prototype),this.freezeDomProperty(e,"appendChild",Node.prototype),this.freezeDomProperty(e,"removeChild",Node.prototype),this.freezeDomProperty(e,"replaceChild",Node.prototype)),e instanceof Element&&i&&r.push(this.freezeDomProperty(e,"innerHTML",Element.prototype),this.freezeDomProperty(e,"outerHTML",Element.prototype),this.freezeDomProperty(e,"append",Element.prototype),this.freezeDomProperty(e,"replaceChildren",Element.prototype)),e instanceof HTMLElement&&i&&r.push(this.freezeDomProperty(e,"innerText",HTMLElement.prototype)),e instanceof HTMLElement&&n&&(this.enhancedProxyFreezing&&r.push(this.freezeDomProperty(e.style,"setProperty",CSSStyleDeclaration.prototype),this.freezeDomProperty(e.style,"removeProperty",CSSStyleDeclaration.prototype)),r.push(this.freezeDomProperty(e,"style",HTMLElement.prototype))),e.childNodes.forEac
3h(e=>r.push(this.freezeDomNode(e,{content:i,style:n}))),()=>r.map(e=>e()).flat()}freezeDomProperty(e,t,i){let n=e[t],r={object:e,property:t,set:null,calls:[],innerSet:new Map};return Object.defineProperty(e,t,{get:()=>n&&("object"==typeof n||"function"==typeof n)?new Proxy(n,(0,d._)({},this.enhancedProxyFreezing&&{get:(e,t)=>{if(t===eR)return!0;let i=e[t];return"function"!=typeof i||Reflect.get(i,eR)?i:i.bind(e)}},{apply:(e,i,n)=>{(0,eM.dI)("Attempted to call "+t+", but it's not callable."),r.calls.push(n)},set:(e,i,n)=>((0,eM.dI)("Attempted to modify "+i+" of "+t+", but it's read-only."),r.innerSet.set(i,n),!0)})):n,set:e=>{(0,eM.dI)("Attempted to modify "+t+", but it's read-only."),r.set=e,r.innerSet.clear()},configurable:!0}),()=>{var s;let o=null!=(s=Object.getOwnPropertyDescriptor(i,t))?s:{value:n,configurable:!0,writable:!0};return Object.defineProperty(e,t,o),null!==r.set||r.calls.length>0||r.innerSet.size>0?[r]:[]}}getFreezeOptions(e){return{content:"string"==typeof e.textContent,style:"string"==typeof e.backgroundColor||"string"==typeof e.textColor||"string"==typeof e.borderColor}}applyFreezeChanges(e){for(let t of e){for(let[e,i]of(null!==t.set&&(t.object[t.property]=t.set),t.innerSet.entries()))t.object[t.property][e]=i;for(let e of t.calls)t.object[t.property](...e)}}constructor(e,t,i){this.original=e,this.state="original",this.config={},this.type="NodeFreezingStrategy",this.uuid=(0,ed.A)(),this.selector=t,this.enhancedProxyFreezing=null!=i&&i,this.snapshot()}}class eD{get(e){var t;let i=Array.from(this.elementToStrategiesMap.values()).find(t=>t.selector===e);return i&&null!=(t=i.get())?t:null}getSelector(e){var t,i;return null!=(t=null==(i=this.elementToStrategiesMap.get(e))?void 0:i.selector)?t:null}add(e,t){if(e){let t=this.elementToStrategiesMap.get(e);if(null==t?void 0:t.get().isConnected)return e}if(!e)return null;let i=this.retrieveStrategy(e,t);for(let e of this.observers)i.addObserver(e);return this.elementToStrategiesMap.set(e,i),i.get()}applyLoading(e,t){if(!e)return;let i=this.elementToStrategiesMap.get(e);if(i)return i.applyLoading(t),i.uuid}removeLoadingByUuid(e){let t=Array.from(this.elementToStrategiesMap.values()).find(t=>t.uuid===e);t&&t.removeLoading()}personalize(e,t){if(!e)return;let i=this.elementToStrategiesMap.get(e);i&&i.personalize(t)}revert(e){let t=this.elementToStrategiesMap.get(e);t&&t.revert()}reset(){this.elementToStrategiesMap.forEach(e=>e.revert())}remove(e){if(!e)return;let t=this.elementToStrategiesMap.get(e);if(t)for(let e of(t.revert(),this.observers))t.removeObserver(e);this.elementToStrategiesMap.delete(e)}removeAll(){this.elementToStrategiesMap.forEach(e=>{for(let t of(e.revert(),this.observers))e.removeObserver(t)}),this.elementToStrategiesMap.clear()}addObserver(e){this.observers.push(e),this.elementToStrategiesMap.forEach(t=>{t.addObserver(e)})}removeObserver(e){this.observers.splice(this.observers.indexOf(e),1),this.elementToStrategiesMap.forEach(t=>{t.removeObserver(e)})}retrieveStrategy(e,t){return new eP(e,t,this.enhancedProxyFreezing)}constructor(e=!1){this.observers=[],this.elementToStrategiesMap=new Map,this.enhancedProxyFreezing=e}}var eL=i(3175),eN=i(2540),ej=i(9776);let eB=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function eU(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)"__proto__"!==n&&(e[n]=i[n])}return e}var ez=function e(t,i){function n(e,n,r){if("u">typeof document){"number"==typeof(r=eU({},i,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var o in r)r[o]&&(s+="; "+o,!0!==r[o]&&(s+="="+r[o].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+s}}return Object.create({set:n,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},r=0;r<i.length;r++){var s=i[r].split("="),o=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(a in n||(n[a]=t.read(o,a)),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){n(e,"",eU({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,eU({},this.attributes,t))},withConverter:function(t){return e(eU({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
3URIComponent)}},{path:"/"}),eq=i(8034).LK,eH=i(8034).wm;let eV=/^_{1,2}sfid_/i,eW=()=>{let e=ez.get(),t=Object.keys(e).find(e=>eV.test(e));return t?(e=>{let t;if(!e)return;try{t=JSON.parse(e)}catch(t){return e}let i=null==t?void 0:t.anonymousId;return"string"==typeof i&&i.length>0?i:void 0})(e[t]):void 0},eQ=class{async getDeviceId(){return new Promise(e=>{if(eW())e(eW());else if(window.SalesforceInteractions){let t=Date.now(),i=eq(()=>{eW()?(eH(i),e(eW())):Date.now()-t>1e3&&(eH(i),e(void 0))},200)}else e(void 0)})}},eJ=class{getToken(){let e=ez.get("ELOQUA"),t=null==e?void 0:e.split("GUID=")[1];return t&&(t=t.split("&")[0]),t}};var eK=i(6373),eG=i(8034).LK,eY=i(8034).wm;let e$=class{async getToken(e){return void 0===e&&(e=1e3),new Promise(t=>{if(ez.get("__hstc"))t(ez.get("__hstc"));else if(window._hsq){let i=Date.now(),n=eG(()=>{ez.get("__hstc")?(eY(n),t(ez.get("__hstc"))):Date.now()-i>e&&(eY(n),t(void 0))},200)}else t(void 0)})}},eX=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function eZ(e){return"string"==typeof e&&36===e.length&&eX.test(e)}function e0(e){return"qualification"===e||"booker"===e||"messenger"===e}function e1(e){return e0(e)||"fallback"===e||"no_content"===e||"error"===e||"unknown"===e}function e2(e){return"legacy"===e||"multimodal"===e||"inline"===e}function e3(e){return void 0===e||"slots"===e||"no_availability"===e}function e4(e){return"string"==typeof e&&e.trim().length>0}let e5=["fallback","no_content","visible_error","provider_error","timeout","abandoned","superseded","unknown","redirect_initiated"];function e8(e){return"string"==typeof e&&e5.includes(e)}function e6(e){return!(!e||"object"!=typeof e||Array.isArray(e))&&!!eZ(e.journeyId)&&"string"==typeof e.triggerKey&&(void 0===e.supersessionKey||"string"==typeof e.supersessionKey)&&("same_page"===e.navigationMode||"redirect"===e.navigationMode)&&"string"==typeof e.entryPath&&"string"==typeof e.startAnchor&&("button"===e.journeyKind?void 0===e.provider&&void 0===e.startCohort&&["smart_cta","manual","api","pre_init","inline_auto_start","tooling"].includes(e.entryPath)&&["native_click","api_call","initialization"].includes(e.startAnchor):"smart_form"===e.journeyKind&&!!["custom","hubspot_v3","hubspot_v4","marketo","pardot"].includes(e.provider)&&!!["official_native_submit","api","pre_init","provider_success_only","replay_without_root"].includes(e.startCohort)&&["custom","hubspot_v3","hubspot_v4","marketo","pardot","api","pre_init","provider_only","replay_without_root","tooling"].includes(e.entryPath)&&["validated_native_submit","api_call","initialization","provider_success","replay"].includes(e.startAnchor))}function e9(e){if(!e||"object"!=typeof e||!e6(e.start)||"button"===e.start.journeyKind&&["providerPendingMs","providerDurationMs","providerToRequestMs"].some(t=>t in e))return!1;let{outcome:t,resultType:i,uiSurface:n,correlationQuality:r,timingWithheldReason:s}=e;if("success"!==t&&!e8(t)||"exact"!==r&&"ambiguous"!==r||void 0!==i&&!e1(i)||void 0!==n&&!e2(n)||!e3(e.bookerResultDetail)||void 0!==s&&!["backgrounded","ambiguous","missing_clock","invalid_clock","redirect"].includes(s))return!1;let o=[e.durationMs,e.preRequestMs,e.requestToResponseMs,e.responseToReadyMs,..."smart_form"===e.start.journeyKind?[e.providerPendingMs,e.providerDurationMs,e.providerToRequestMs]:[]];return!(o.some(e=>void 0!==e&&("number"!=typeof e||!Number.isFinite(e)||e<0))||void 0!==s&&o.some(e=>void 0!==e))&&("ambiguous"!==r||void 0!==s)&&("success"!==t||e0(i)&&e2(n)&&(void 0!==e.durationMs||void 0!==s))}var e7=i(8034).Qj,te=i(8034).zh,tt=i(8034).LA,ti=i(8034).kZ;function tn(e,t){if(void 0===e||void 0===t)return;let i=Math.round(t-e);return Number.isFinite(i)&&i>=0?i:void 0}class tr{start(e,t){try{var i;let n=eZ(e.journeyId)?e.journeyId:void 0;if(n&&this.activeById.has(n))return n;let r=e.supersessionKey?[...this.activeById.values()].filter(t=>t.start.supersessionKey===e.supersessionKey):[],s=n||this.createId();if(!eZ(s)||this.activeById.has(s))return"";let o=this.readNow(),a=null!=(i=this.validatedTimestampOverride(null==t?void 0:t.startedAtMs,o))?i:o;if(r.length>0&&void 0===a)return"";let l=(0,d._)({},e,{journeyId:s});if(!e6(l))return"";let c=this.isHidden(),u=(0,d._)({start:l,startedAtMs:a,checkpoints:{},diagnosticKeys:new Set,correlationQuality:"exact"},c?{timingWithheldReason:"backgrounded"}:void 0===a?{timingWithheldReason:"missing_clock"}:{});for(let e of r)this.finishLifecycle(e,"superseded");this.activeById.set(s,u),this.ensureListeners();try{this.transport.emitStart(l)}catch(e){}return s}catch(t){return eZ(null==e?void 0:e.journeyId)?e.journeyId:""}}hasActiveJourney(e){return[...this.activeById.values()].some(t=>t.start.journeyKind===e)}
3checkpoint(e,t,i){try{var n,r;let s=this.activeById.get(e);if(!s||void 0!==s.checkpoints[t])return;let o=this.readNow(),a="provider_completed"===t&&null!=(n=s.checkpoints.provider_pending)?n:s.startedAtMs,l=null!=(r=this.validatedTimestampOverride(null==i?void 0:i.observedAtMs,o,a))?r:o;if(void 0===l){s.timingWithheldReason||(s.timingWithheldReason="missing_clock");return}s.checkpoints[t]=l}catch(e){}}observeResponseCandidates(e){let t=e.find(e=>{var t;return"ignore"!==e.kind&&e.journeyId&&(null==(t=this.activeById.get(e.journeyId))?void 0:t.start.journeyKind)===e.journeyKind});if(t)this.observeResponse(t);else{let t=e.filter(e=>"ignore"!==e.kind&&this.hasActiveJourney(e.journeyKind));1===t.length&&this.observeResponse(t[0])}}observeResponse(e){try{if("ignore"===e.kind||"button"!==e.journeyKind&&"smart_form"!==e.journeyKind||"terminal"!==e.kind&&"result"!==e.kind||"terminal"===e.kind&&!e8(e.outcome)||"result"===e.kind&&(!e0(e.resultType)||void 0!==e.resultId&&!e4(e.resultId)||void 0!==e.correlationQuality&&"ambiguous"!==e.correlationQuality))return;let t=e.journeyId?this.activeById.get(e.journeyId):void 0;if(t&&t.start.journeyKind!==e.journeyKind)return;if(!t)return void this.emitDiagnostic((0,d._)({journeyKind:e.journeyKind,observationType:"terminal"===e.kind?"terminal":"response",attributionFailureReason:e.journeyId?eZ(e.journeyId)?"unknown_journey_id":"malformed_journey_id":"missing_journey_id",receivedJourneyId:e.journeyId},"terminal"===e.kind?{outcome:e.outcome}:{resultType:e.resultType}));if("terminal"===e.kind)return void this.finish(t,e.outcome,void 0,void 0,!1,"observed");if(t.expectedResultType&&(t.expectedResultType!==e.resultType||void 0!==t.expectedResultId&&void 0!==e.resultId&&t.expectedResultId!==e.resultId))return void this.emitDiagnostic({journeyKind:e.journeyKind,observationType:"response",attributionFailureReason:"result_identity_mismatch",receivedJourneyId:e.journeyId,resultType:e.resultType});e.correlationQuality&&(t.correlationQuality=e.correlationQuality,t.timingWithheldReason||(t.timingWithheldReason=e.correlationQuality)),t.expectedResultType||(t.expectedResultType=e.resultType,this.recordCheckpoint(t,"result_received")),null!=t.expectedResultId||(t.expectedResultId=e.resultId)}catch(e){}}markReady(e){try{if(void 0!==e.journeyKind&&"button"!==e.journeyKind&&"smart_form"!==e.journeyKind||!e0(e.resultType)||!e2(e.uiSurface)||!e4(e.resultId)||!e3(e.bookerResultDetail))return;let t=e.journeyId?this.activeById.get(e.journeyId):void 0,i=t&&(!t.expectedResultType||t.expectedResultType===e.resultType&&(void 0===t.expectedResultId||t.expectedResultId===e.resultId));if(!t||!i){let i=(0,d._)({},t?{journeyKind:t.start.journeyKind}:e.journeyKind?{journeyKind:e.journeyKind}:{},{observationType:"renderer_ready",attributionFailureReason:e.journeyId?eZ(e.journeyId)?t?"result_identity_mismatch":"unknown_journey_id":"malformed_journey_id":"missing_journey_id",receivedJourneyId:e.journeyId,resultType:e.resultType,uiSurface:e.uiSurface,bookerResultDetail:e.bookerResultDetail});i.journeyKind?this.emitDiagnostic(i):this.emitDiagnostic(i,[...this.activeById.values()]);return}this.finish(t,"success",e.resultType,{uiSurface:e.uiSurface,bookerResultDetail:e.bookerResultDetail},!1,"superseded_by_exact")}catch(e){}}terminate(e,t,i){try{if(!e8(t)||void 0!==i&&!e1(i))return;let n=this.activeById.get(e);n&&this.finishLifecycle(n,t,i)}catch(e){}}dispose(e){try{let t=[...this.activeById.values()];if(null==e?void 0:e.finishActiveAs)for(let i of t)this.finishLifecycle(i,e.finishActiveAs,void 0,!0);else this.activeById.clear(),this.pendingDiagnosticsByJourneyId.clear(),this.removeListeners()}catch(e){this.activeById.clear(),this.pendingDiagnosticsByJourneyId.clear(),this.removeListeners()}}recordCheckpoint(e,t){if(void 0!==e.checkpoints[t])return;let i=this.readNow();void 0===i?e.timingWithheldReason||(e.timingWithheldReason="missing_clock"):e.checkpoints[t]=i}emitDiagnostic(e,t){var i;let n=null!=t?t:[...this.activeById.values()].filter(t=>t.start.journeyKind===e.journeyKind);if(0===n.length)return;let r=e.observationType+":"+e.attributionFailureReason;if(n.every(e=>e.diagnosticKeys.has(r)))return;for(let e of n)e.diagnosticKeys.add(r);let s=this.readNow(),o=this.selectDiagnosticCandidate(n,s),a=0===n.length?"none":1===n.length?"single_active":o?"nearest_preceding":"none",l=o&&!o.timingWithheldReason?tn(o.startedAtMs,s):void 0,c=(0,d._)({observationType:e.observationType,attributionMethod:a,attributionFailureReason:e.attributionFailureReason,candidateCount:n.length},eZ(e.receivedJourneyId)?{receivedJourneyId:e.receivedJourneyId}:{},e.resultType?{resultType:e.resultType}:{},e.outcome?{outcome:e.outcome}:{},e.uiSurface?{uiSurface:e.uiSurface}:{}
3,e.bookerResultDetail?{bookerResultDetail:e.bookerResultDetail}:{},void 0!==l?{durationMs:l}:{}),u=null!=(i=null==o?void 0:o.start.journeyKind)?i:e.journeyKind;if("smart_form"===u){let e=null==o?void 0:o.start,t=(null==e?void 0:e.journeyKind)==="smart_form"?e:void 0,i=(0,d._)({},c,{journeyKind:"smart_form",diagnosticStatus:"observed"},t?{candidateStart:t,provider:t.provider,startCohort:t.startCohort}:{});return t?void this.rememberPendingDiagnostic(t.journeyId,i):void this.emitDiagnosticRecord(i)}if("button"===u){let e=(null==o?void 0:o.start.journeyKind)==="button"?o.start:void 0,t=(0,d._)({},c,{journeyKind:"button"},e?{candidateStart:e}:{});this.emitDiagnosticRecord(t);return}this.emitDiagnosticRecord(c)}emitDiagnosticRecord(e,t){try{this.transport.emitDiagnostic(e,t)}catch(e){}}selectDiagnosticCandidate(e,t){var i;let n=null==(i=e[0])?void 0:i.start.journeyKind;return e.some(e=>e.start.journeyKind!==n)?void 0:1===e.length?e[0]:void 0!==t?e.filter(e=>void 0!==e.startedAtMs&&e.startedAtMs<=t).sort((e,t)=>{var i,n;return(null!=(i=t.startedAtMs)?i:0)-(null!=(n=e.startedAtMs)?n:0)})[0]:void 0}rememberPendingDiagnostic(e,t){var i;let n=null!=(i=this.pendingDiagnosticsByJourneyId.get(e))?i:[];n.push(t),n.length>32&&n.shift(),this.pendingDiagnosticsByJourneyId.set(e,n)}finishLifecycle(e,t,i,n){void 0===n&&(n=!1),this.finish(e,t,i,void 0,n,"observed")}finish(e,t,i,n,r,s){var o;void 0===r&&(r=!1),void 0===s&&(s="observed");let{journeyId:a}=e.start;if(!this.activeById.has(a))return;let l=this.readNow(),c="redirect_initiated"===t?{timingWithheldReason:"redirect"}:this.timings(e,l,void 0!==n),u=null!=(o=e.expectedResultType)?o:i,h=(0,d._)({},void 0!==c.durationMs?{durationMs:c.durationMs}:{},void 0!==c.preRequestMs?{preRequestMs:c.preRequestMs}:{},void 0!==c.requestToResponseMs?{requestToResponseMs:c.requestToResponseMs}:{},void 0!==c.responseToReadyMs?{responseToReadyMs:c.responseToReadyMs}:{}),p=(0,d._)({outcome:t,correlationQuality:e.correlationQuality},u?{resultType:u}:{},(null==n?void 0:n.uiSurface)?{uiSurface:n.uiSurface}:{},(null==n?void 0:n.bookerResultDetail)?{bookerResultDetail:n.bookerResultDetail}:{},c.timingWithheldReason?{timingWithheldReason:c.timingWithheldReason}:{}),m="smart_form"===e.start.journeyKind?(0,d._)({},p,h,{start:e.start},void 0!==c.providerPendingMs?{providerPendingMs:c.providerPendingMs}:{},void 0!==c.providerDurationMs?{providerDurationMs:c.providerDurationMs}:{},void 0!==c.providerToRequestMs?{providerToRequestMs:c.providerToRequestMs}:{}):(0,d._)({},p,h,{start:e.start});if(e9(m)){this.activeById.delete(a),this.flushPendingDiagnostics(a,s,r),0===this.activeById.size&&this.removeListeners();try{this.transport.emitTerminal(m,r?{fireAndForget:!0}:void 0)}catch(e){}}}timings(e,t,i){if(e.timingWithheldReason)return{timingWithheldReason:e.timingWithheldReason};if(void 0===t)return{timingWithheldReason:"missing_clock"};let{startedAtMs:n}=e,r=e.checkpoints.request_dispatched,s=e.checkpoints.result_received,o=[n,e.checkpoints.provider_pending,e.checkpoints.provider_completed,r,e.checkpoints.acknowledgement_received,s,e.checkpoints.rendering,t].filter(e=>void 0!==e);if(o.some((e,t)=>{let i=o[t-1];return void 0!==i&&e<i}))return{timingWithheldReason:"invalid_clock"};let a=tn(n,t);return void 0===a?{timingWithheldReason:"invalid_clock"}:(0,d._)({durationMs:a},void 0!==tn(n,r)?{preRequestMs:tn(n,r)}:{},void 0!==tn(r,s)?{requestToResponseMs:tn(r,s)}:{},i&&void 0!==tn(s,t)?{responseToReadyMs:tn(s,t)}:{},"smart_form"===e.start.journeyKind?(0,d._)({},void 0!==tn(n,e.checkpoints.provider_pending)?{providerPendingMs:tn(n,e.checkpoints.provider_pending)}:{},void 0!==tn(e.checkpoints.provider_pending,e.checkpoints.provider_completed)?{providerDurationMs:tn(e.checkpoints.provider_pending,e.checkpoints.provider_completed)}:{},void 0!==tn(e.checkpoints.provider_completed,r)?{providerToRequestMs:tn(e.checkpoints.provider_completed,r)}:{}):{})}flushPendingDiagnostics(e,t,i){let n=this.pendingDiagnosticsByJourneyId.get(e);if(n)for(let r of(this.pendingDiagnosticsByJourneyId.delete(e),n))this.emitDiagnosticRecord((0,d._)({},r,{diagnosticStatus:t}),i?{fireAndForget:!0}:void 0)}readNow(){try{let e=this.now();return Number.isFinite(e)?e:void 0}catch(e){return}}validatedTimestampOverride(e,t,i){if(void 0!==e&&void 0!==t&&Number.isFinite(e)&&!(e<0)&&!(e>t)&&(void 0===i||!(e<i)))return e}isHidden(){try{return"u">typeof document&&"hidden"===document.visibilityState}catch(e){return!1}}ensureListeners(){!this.listening&&"u">typeof document&&"u">typeof window&&(e7("visibilitychange",this.handleVisibilityChange),te("pagehide",this.handlePageHide),this.listening=!0)}removeListeners(){this.listening&&"u">typeof document&&"u">typeof window&&(tt("visibilitychange",this.handleVisibilityChange),ti("pagehide",this.handlePageHide),this.listening=!1)}constructor({transport:e,now:t=()=>performance.now(),createId:i=()=>crypto.randomUUID()}){this.activeById=new Map,this.pendingDiagnosticsByJourneyId=new Map,this.listening=!1,this.handleVisibilityChange=()=>{try{if(!this.isHidden())return;for(let e of this.activeById.values())e.timingWithheldReason||(e.timingWithheldReason="backgrounded")}catch(e){}},this.handlePageHide=e=>{try{if(e.persisted)return;for(let e of[...this.activeById.values()])this.finishLifecycle(e,"abandoned",void 0,!0)}catch(e){}},this.transport=e,this.now=t,this.createId=i}}let ts=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function to(e){return(0,d._)({schema_version:1,journey_id:e.journeyId,journey_kind:e.journeyKind,entry_path:e.entryPath,start_anchor:e.startAnchor,navigation_mode:e.navigationMode},"smart_form"===e.journeyKind?{provider:e.provider,start_cohort:e.startCohort}:{})}var ta=i(8034).LK,tl=i(8034).wm;let tc=class{async getToken(){return new Promise(e=>{if(ez.get("_mkto_trk"))e(ez.get("_mkto_trk"));else if(window.Munchkin){let t=Date.now(),i=ta(()=>{ez.get("_mkto_trk")?(tl(i),e(ez.get("_mkto_trk"))):Date.now()-t>1e3&&(tl(i),e(void 0))},200)}else e(void 0)})}};var tu=i(905),td=i(2098),th=i(8376);class tp{static startButtonClickSpan(){s.Y_.startSpan(td.X.BUTTON_CLICK),s.Y_.startSpan(td.X.WAIT_FOR_LIGHTBOX_LOADING_SPINNER,{parentSpan:td.X.BUTTON_CLICK})}static startSubmitFormSpan(e){s.Y_.startSpan(th.D.SUBMIT_FORM,{attributes:e})}static finishFormOrButtonSpan(e){let t=this.extractAttributesIfFormsOrButtonsResponse(e);t&&(s.Y_.cancelSpan(td.X.WAIT_FOR_LIGHTBOX_LOADING_SPINNER),s.Y_.finishSpans([th.D.SUB
3MIT_FORM,td.X.BUTTON_CLICK],{attributes:t}))}static finishWaitForLightboxLoadingSpinnerSpan(){s.Y_.finishSpan(td.X.WAIT_FOR_LIGHTBOX_LOADING_SPINNER)}static nonEmptyUniqueValues(e){return Array.from(new Set(e)).filter(e=>void 0!==e).filter(e=>null!==e).filter(e=>""!==e)}static setExperienceResultType(e,t){e["app.experience_result_type"]=t}static updateExperienceResultType(e){let{attributes:t,widgetInitAfterButtonOrForm:i,fallbackToDefaultForButtonOrForm:n,messages:r=[]}=e;if(i)this.setExperienceResultType(t,"widget");else if(n)this.setExperienceResultType(t,"fallback_to_default");else{let e=this.nonEmptyUniqueValues(r.map(e=>e.type));if(e.length>0&&(t["message.types"]=e,!t["app.experience_result_type"])){let i=e.includes("lightbox_gather"),n=e.includes("calendar_event_offer");i?this.setExperienceResultType(t,"qualification_questions"):n?this.setExperienceResultType(t,"meeting_booker"):this.setExperienceResultType(t,"unknown")}}}static extractAttributesIfFormsOrButtonsResponse(e){var t,i,n,r,s,o;let a;try{let o=((null==(i=e.payload)||null==(t=i.messages)?void 0:t.length)||0)>0,l=((null==(r=e.payload)||null==(n=r.conversations)?void 0:n.length)||0)>0,c="initElementConversation"===e.event&&o,u="elementMessage"===e.event,d=l&&e.payload.conversations[e.payload.conversations.length-1],h="initState"===e.event&&["smart_cta","form"].includes(null==d?void 0:d.triggeredByBotType),p="closeLightbox"===e.event&&(null==(s=e.payload)?void 0:s.fallbackToDefault)===!0;if((c||u||h||p)&&(a={},this.updateExperienceResultType({attributes:a,widgetInitAfterButtonOrForm:h,fallbackToDefaultForButtonOrForm:p}),o)){let{messages:t=[]}=e.payload||{};this.updateExperienceResultType({attributes:a,messages:t});let i=this.nonEmptyUniqueValues(t.map(e=>e.eventType));i.length>0&&(a["message.event_types"]=i);let n=this.nonEmptyUniqueValues(t.map(e=>e.conversationId));n.length>0&&(a["conversation.ids"]=n)}}catch(e){null==(o=(0,tu.Nj)())||o.captureException(e)}return a}}var tm=i(8034).pS;let tf=class{async getIdentities(){let e,t,i={};s.Y9.startActiveSpanAsync("Pardot Get Prospect Email",{},this.telemetryCtx,async t=>{e=this.getProspectEmail();try{i.prospectEmail=await e}catch(e){}finally{t.end()}}),s.Y9.startActiveSpanAsync("Pardot Get Visitor Id",{},this.telemetryCtx,async e=>{t=this.getVisitorId();try{i.visitorId=await t}catch(e){}finally{e.end()}});let n=Promise.allSettled([e,t]);return await Promise.any([e,n,(0,eN.cb)(750)]),i.prospectEmail||await Promise.any([e,t,n,(0,eN.cb)(1250)]),e.cancel(),t.cancel(),i}getVisitorId(){let e,{accountId:t}=this.config,i=()=>{},n=new Promise((n,r)=>{i=r;let s=()=>ez.get("visitor_id"+t);s()?n(s()):window.parseInt(window.piAId||"",10)-1e3===parseInt(t,10)?e=window.setInterval(()=>{let e=s();e&&n(e)},50):r()}).finally(()=>{window.clearInterval(e)});return n.cancel=i,n}getProspectEmail(){let{trackerDomain:e,accountId:t,dynamicContentId:i}=this.config;if(!(0,f.RC)("pardot")||!i){let e=Promise.reject();return e.cancel=()=>{},e}let n=document.createElement("script"),r=document.write,s=()=>{},o=new Promise((o,a)=>{s=a,document.write=function(e){let t=/\*QUALIFIED\*(.*)\*QUALIFIED\*/.exec(e);if(t){let e=t[1].trim();""!==e?o(e):a()}else r(e)},n.src="https://"+e+"/dcjs/"+t+"/"+i+"/dc.js",n.onload=()=>tm(s,250),n.onerror=()=>s(),document.body.appendChild(n)}).finally(()=>{document.write=r});return o.cancel=s,o}
3constructor(e){this.config=e,this.telemetryCtx=(0,s.jM)()}},tg={memoizeShadowRoots:!0,shadowHostSelectorFilter:"*"};class tv{get shadowRoots(){if(this.options.memoizeShadowRoots){var e;return null!=(e=this._shadowRoots)?e:this._shadowRoots=this.getShadowRoots()}return this.getShadowRoots()}querySelector(e){let t=document.querySelector(e);if(t)return t;for(let i of this.shadowRoots)if(t=i.querySelector(e))return t;return null}querySelectorAll(e){let t=[document.querySelectorAll(e)];for(let i of this.shadowRoots)t.push(i.querySelectorAll(e));let i=[];for(let e of t)i.push(...e);return i}getShadowRoots(e,t){return void 0===e&&(e=document),void 0===t&&(t=new Set),e.querySelectorAll(this.options.shadowHostSelectorFilter).forEach(e=>{e.shadowRoot&&(t.add(e.shadowRoot),this.getShadowRoots(e.shadowRoot,t))}),t}constructor(e={}){this._shadowRoots=null,this.options=(0,d._)({},tg,e)}}var ty=i(9165),tb=i(8034).pS;let t_=class{get hasEndedInitSpan(){return this.initSpan&&0!==this.initSpan.endTime}get hasExperimentSelectors(){return this.experimentSelectors&&this.experimentSelectors.length>0}get experimentSelectors(){return this.config.experimentSelectors}constructor(e,t=new eD){this.config=e,this.personalizationManager=t,this.donePersonalizing=!1,this.intermediateStateType="icon",this.selectorMetadata=new Map,this.shadowDomHelper=new tv,this.lookupSelectorMetadata=e=>this.selectorMetadata.get(e),this.onPersonalizeWebsite=e=>{this.trace("Apply Personalizations",()=>{for(let t of e){let e=this.personalizationManager.get(t.selector);e&&(this.personalizationManager.personalize(e,{textContent:t.dom_update.text_content,backgroundColor:t.dom_update.background_color,borderColor:t.dom_update.border_color,textColor:t.dom_update.text_color}),this.selectorMetadata.get(t.selector).experimentArmId=t.experiment_arm_id,this.emitPersonalizationActivity(t.selector,t.experiment_arm_id))}this.donePersonalizing=!0}),this.endInitSpan()},this.initCurrentExperimentSelectors=()=>{this.experimentSelectors.forEach(e=>{let{url:t,selector:i}=e;if(!(0,ty.dM)(this.normalizedCurrentURL,(0,ty.dc)(t),t.endsWith("*")))return;if(this.personalizationManager.get(i))return void this.selectorMetadata.set(i,{emittedInView:!1});let n=this.shadowDomHelper.querySelector(i),r=this.personalizationManager.add(n,i);r&&(this.selectorMetadata.set(i,{emittedInView:!1}),this.personalizationManager.applyLoading(r,this.intermediateStateType))}),this.initIntersectionObserver()},this.initIntersectionObserver=()=>{if(!this.config.activityEmitter)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting&&e.target instanceof HTMLElement){let t=this.personalizationManager.getSelector(e.target);t&&this.emitInView(t)}})},{root:null,threshold:1});this.personalizationManager.addObserver(e)},this.trace=(e,t)=>{let i=this.hasEndedInitSpan?this.initSpan:null;s.Y9.startActiveSpan(e,{},i,e=>{t(),e.end()})},this.endInitSpan=()=>{this.initSpan&&!this.hasEndedInitSpan&&this.initSpan.end()},this.resetElements=()=>{this.donePersonalizing||(this.trace("Revert Experiment Selectors",()=>this.personalizationManager.reset()),this.endInitSpan())},this.emitPersonalizationActivity=(e,t)=>{this.config.activityEmitter&&(t?this.config.activityEmitter.emitPersonalizationApplied({experimentArmId:t,selector:e}):this.config.activityEmitter.emitPersonalizationFallback({selector:e}))},this.emitInView=e=>{if(!this.config.activityEmitter)return;let t=this.selectorMetadata.get(e);if(!t)return;let{experimentArmId:i,emittedInView:n}=t;n||(this.config.activityEmitter.emitPersonalizationInView({selector:e,experimentArmId:i}),t.emittedInView=!0)};const{currentUrl:i}=e;if(this.initSpan=s.Y9.startSpan("Evaluating Personalization",{},null)||null,this.normalizedCurrentURL=(0,ty.dc)(i),!this.hasExperimentSelectors){this.donePersonalizing=!0;return}this.trace("Initialize Experiment Selectors",this.initCurrentExperimentSelectors),tb(this.resetElements,3e3)}};class tw{get textContent(){return(0,eM.Z$)(this.selector)}get href(){return(0,eM.ko)(this.selector)}get isLegacyTrigger(){return this.legacy}get scopePrecedence(){if(this.legacy)return 100;if(void 0===this.textContent&&void 0===this.href&&!this.global)return 10;
3if(void 0===this.textContent&&void 0===this.href&&this.global)return 20;if(void 0!==this.href&&!this.global)return 30;if(void 0!==this.textContent&&!this.global)return 40;if(void 0!==this.href&&this.global)return 50;else if(void 0!==this.textContent&&this.global)return 60;else return 99}constructor(e){this.url=e.url,this.selector=e.selector,this.api=e.api,this.global=e.global,this.legacy=e.legacy}}let tE=class{get normalizedCurrentURL(){return(0,ty.dc)(window.location.href)}get triggerSelectors(){return this.currentTriggerQuerySelectors}get hasCurrentTriggerSelectors(){return Object.keys(this.triggerSelectors).length>0}matchingSelector(e){let t=Object.keys(this.currentTriggerQuerySelectors).find(t=>(0,eM.Nz)(e,t));return this.debugLog("Matched trigger "+t),t}get currentTriggers(){return(0,eM.cR)(this.websiteConfigs.filter(e=>{let{url:t,global:i}=e;return this.hasURLMatch(t,i)}))}hasURLMatch(e,t){return(0,ty.dM)(this.normalizedCurrentURL,(0,ty.dc)(e),t)}get oldTriggers(){return Object.entries(this.smartCtaTriggers).reduce((e,t)=>{let[i,n]=t;return"WEBSITE_CONFIGS"!==i&&e.push(function(e){let{selector:t,api:i}=e;return new tw({url:"",selector:t,api:i,global:!1,legacy:!0})}({selector:i,api:n})),e},[])}get currentTriggerQuerySelectors(){let e=this.currentTriggers.reduce((e,t)=>{let{selector:i,api:n}=t;return e[i]?this.debugLog("Skipping duplicate trigger "+i+" for "+n):e[i]=n,e},{});return this.oldTriggers.forEach(t=>{let{selector:i,api:n}=t;e[i]?this.debugLog("Skipping duplicate trigger "+i+" for "+n):e[i]=n}),e}get smartCtaTriggers(){return this.config.smartCtaTriggers}get websiteConfigs(){return this.smartCtaTriggers.WEBSITE_CONFIGS&&"string"!=typeof this.smartCtaTriggers.WEBSITE_CONFIGS?this.smartCtaTriggers.WEBSITE_CONFIGS.map(e=>new tw((0,d._)({},e,{legacy:!1}))):[]}constructor(e){this.isDebug=!1,this.debugLog=e=>{this.isDebug&&console.log("[Qualified] "+e)},document.location.search&&(this.isDebug=(0,eM.Bb)(),this.debugLog("[DEBUG MODE]")),this.config=e}},tS=["scroll","mousemove","click","touchstart","keypress"],tA=Symbol("FALLBACK_EVENT"),tx="QUALIFIED_FALLBACK_EVENT",tC=["text","field_entry","lightbox_gather","calendar_event_offer"];var tT=(0,u._)("_onVisibilityChange");class tk extends g.A{async init(){var e,t;
3if(this.telemetryCtx=(0,s.jM)(),this.widget.logTiming("Time to init tracker","widget_time_to_init_tracker_ms"),tS.forEach(e=>{this.callOnDispose((0,eI.q2)(window,e,this.eventHandler,{capture:!0}))}),this.callOnDispose((0,eI.q2)(window,"visibilitychange",(0,c._)(this,tT)[tT],{capture:!0})),this.callOnDispose((0,eI.q2)(window,"pagehide",this.onPageHide,{capture:!0})),this.callOnDispose(()=>{var e;return null==(e=this.widget.personalizationObserver)?void 0:e.stop()}),this.callOnDispose(()=>this.handleButtonTriggers.cancel()),(null==(e=this.config.pardotConfig)?void 0:e.accountId)&&await s.Y9.startActiveSpanAsync("Init pardot",{},this.telemetryCtx,async e=>{if(!this.config.pardotConfig)return;let t=await new tf(this.config.pardotConfig).getIdentities();this.setInitializationParams({pardot:{prospect_email:t.prospectEmail,visitor_id:t.visitorId}}),e.end()}),this.isDisposed||(this.config.hasMarketo&&(0,f.RC)("marketingIdentity")&&await s.Y9.startActiveSpanAsync("Init marketo",{},this.telemetryCtx,async e=>{let t=await new tc().getToken();void 0!==t&&this.setInitializationParams({marketo:{token:t}}),e.end()}),this.isDisposed)||(this.config.hasHubSpot&&(0,f.RC)("marketingIdentity")&&await s.Y9.startActiveSpanAsync("Init hubspot",{},this.telemetryCtx,async e=>{let t=await new e$().getToken(this.widget.config.hubspotTokenRetrievalTimeout);void 0!==t&&this.setInitializationParams({hubspot:{token:t}}),e.end()}),this.isDisposed)||(this.config.hasData360&&(0,f.RC)("marketingIdentity")&&await s.Y9.startActiveSpanAsync("Init data360",{},this.telemetryCtx,async e=>{let t=await new eQ().getDeviceId();void 0!==t&&this.setInitializationParams({data360:{deviceId:t}}),e.end()}),this.isDisposed)||(this.config.hasEloqua&&(0,f.RC)("marketingIdentity")&&await s.Y9.startActiveSpanAsync("Init eloqua",{},this.telemetryCtx,async e=>{let t=new eJ().getToken();void 0!==t&&this.setInitializationParams({eloqua:{token:t}}),e.end()}),this.isDisposed))return;if(this.visitor.smartFormData){let e=(0,f.RC)("formCapture");e&&this.config.hasSmartForms&&(this.experienceAdapter.showLightboxLoading(),this.featureFlags.bookerJourneySLI&&(0,eu.Xk)("form:smart_form",this.visitor.smartFormData.botApiName)),e&&this.setInitializationParams({smart_form:{field_values:this.visitor.smartFormData.fieldValues,bot_api_name:this.visitor.smartFormData.botApiName}}),this.visitor.clearSmartFormData()}if(!this.widget.isMeetingLink){let e=!!(this.visitor.lastValidRebroadcastTime&&this.visitor.lastValidRebroadcastTime>this.widget.dateProvider.new().getTime());e&&this.widget.debugLog("[Qualified] Page loaded within the valid rebroadcast period, and thus is going to rebroadcast the last element conversation."),(0,s.Zy)(this.telemetryCtx,()=>{this.createPageView({singlePageApp:!1,reconnecting:!1,rebroadcast:e,qualifiedRedirected:this.visitor.qualifiedRedirected})}),this.visitor.setQualifiedRedirect(void 0),this.visitor.setLastValidRebroadcastTime(void 0)}let i=new URLSearchParams(window.location.search);if(i.has("q_offer_info")){let e,n;try{({id:e,expiration:n}=JSON.parse((0,eL.Ey)(null!=(t=i.get("q_offer_info"))?t:"")))}catch(e){this.widget.debugLog("Error parsing offer info: "+e)}e&&n&&n>this.dateProvider.now()&&this.pageViewActivityEmitter.emitOfferLanded({offerVersionId:e});let r=new URL(window.location.href);r.searchParams.delete("q_offer_info"),window.history.replaceState(window.history.state,"",r.toString())}this.updatePageVisible(),this.channel.emit("initTrackerCreatePageView"),this.initializationParams={},this.initialize()}startBehaviorTracker(){var e;this.timerStartedAt=Date.now();let t=(null==(e=this.config.featureFlags)?void 0:e.leads)?5:10,i=(0,eN.Si)(500,()=>{this.timerStartedAt&&(this.timerTimeOnSite=Date.now()-this.timerStartedAt),(this.experienceAdapter.apMessagesCount>=2||this.experienceAdapter.autoRespondPounceCount>=2||this.experienceAdapter.userResponded||this.experienceAdapter.visitorResponded)&&o(),this.timerTimeOnSite>1e3*t&&(this.metActiveThreshold(),o())}),n=(0,eI.q2)(window,"focus",()=>{this.timerStartedAt=Date.now()}),r=(0,eI.q2)(window,"blur",()=>{this.timerStartedAt=null}),s=(0,eI.q2)(window,"visibilitychange",()=>{"visible"===document.visibilityState?this.timerStartedAt=Date.now():this.timerStartedAt=null}),o=()=>{s(),n(),r(),i()}}closestSelector(e,t){return Object.keys(t).find(t=>{let i=t+", "+t+" *",n=e.matches(i);return n&&this.widget.debugLog("trigger "+i+" matched"),n})}handleTriggers(e,t,i){let n,r;this.widget.debugLog("Handling "+i+" triggers: "+JSON.stringify(t));let s=this.featureFlags.smartCtaNestedTriggersSupport?Element:HTMLElement;
3r="SMART_CTA"===i?e=>{var t;return e instanceof s&&!!(n=null==(t=this.smartWebsiteConfig)?void 0:t.matchingSelector(e))}:e=>e instanceof s&&!!(n=this.closestSelector(e,t));let o=(0,eI.wt)(e,{filterFn:r,hasShadowDomSupport:this.featureFlags.smartCtaShadowDomSupport,nestedTriggersSupport:this.featureFlags.smartCtaNestedTriggersSupport});if(!n||!o)return;let a=n,l=t[a];if(e.preventDefault(),e.stopPropagation(),!this.waitingForFallbackEvent){if(this.initialized&&this.widget.loaded)this.hijackClick(i,l,{event:e,target:o,selector:a});else{this.clientExperienceJourneys&&!this.pendingPreInitButtonJourneyId&&(this.pendingPreInitButtonJourneyId=this.startButtonJourney(i,a));let t=this.pendingPreInitButtonJourneyId;this.afterInit(async()=>{await this.widget.initialized,t&&this.pendingPreInitButtonJourneyId!==t||this.hijackClick(i,l,(0,d._)({event:e,target:o,selector:a},t?{journeyId:t,journeyStarted:!0}:{}))})}this.afterInit(async()=>{await this.widget.initialized,this.recordClickActivity(e)})}}startButtonJourney(e,t){try{var i;let n=null==(i=this.clientExperienceJourneys)?void 0:i.start({journeyKind:"button",entryPath:"SMART_CTA"===e?"smart_cta":"manual",startAnchor:"native_click",triggerKey:"button:"+t,supersessionKey:"button",navigationMode:"same_page"});if(n)return this.scheduleClientExperienceJourneyTimeout(n),n}catch(e){}return this.clientExperienceJourneys?"untracked:"+(0,ed.A)():(0,ed.A)()}scheduleClientExperienceJourneyTimeout(e){if(!this.clientExperienceJourneys||this.clientExperienceJourneyTimeouts.has(e))return;let t=(0,eN.Pl)(5e3,()=>{this.clientExperienceJourneyTimeouts.delete(e);try{var t;null==(t=this.clientExperienceJourneys)||t.terminate(e,"timeout")}catch(e){}});this.clientExperienceJourneyTimeouts.set(e,t)}initialize(){this.initialized=!0,this.afterInitQueue.forEach(e=>e()),this.afterInitQueue=[]}setInitializationParams(e){if(this.initialized)throw Error("Tracker already initialized!");Object.assign(this.initializationParams,e)}constructor(e){var t,i,n,r,o,a;super(e),Object.defineProperty(this,tT,{writable:!0,value:void 0}),this.initialized=!1,this.timerStartedAt=null,this.experienceLoadingStartTimeMap=new Map,this.lastButtonTriggerEvent=null,this.isBotRedirecting=!1,this.waitingForFallbackEvent=!1,this.pendingPreInitJourneyIds=new Set,this.clientExperienceJourneyTimeouts=new Map,this.customFormTriggerIds=new WeakMap,this.nextCustomFormTriggerId=1,this.eventHandler=e=>{("mousemove"!==e.type||document.hasFocus())&&this.registerActivity(),"click"!==e.type||e.target&&(tA in e&&e[tA]===tx&&(this.waitingForFallbackEvent=!1),this.handleButtonTriggers(e))},this.handleButtonTriggers=ex()(e=>{this.widget.isMeetingLink||tA in e&&e[tA]===tx||e.target instanceof Element&&(0,eM.U3)(e.target)||(this.handleSmartCtaTriggers(e),this.handleManualBotTriggers(e))},100,{leading:!0,trailing:!1}),this.recordClickActivity=e=>{if(e.target instanceof Element&&this.pageViewActivityEmitter&&this.smartWebsiteConfig){let i=this.smartWebsiteConfig.matchingSelector(e.target);if(i){var t;let e=null==(t=this.personalizationsConfig)?void 0:t.lookupSelectorMetadata(i);this.pageViewActivityEmitter.emitPersonalizationClick({selector:i,experimentArmId:null==e?void 0:e.experimentArmId})}}},this.updatePageVisible=()=>{this.navigating||(this.pageVisible=(0,eI.n)())},this.registerActivity=ex()(()=>{if(!this.isDisposed&&(this.widget.registerClientActivity(),this.expiredFromInactivity&&document.hasFocus())){var e;this.expiredFromInactivity=!1,null==(e=this.channel.connect())||e.then(()=>{this.widget.isMeetingLink?this.recordMeetingLinkLoad():this.createPageView(),this.initialize(),this.initializationParams={}})}},200),this.hijackClick=ex()(async(e,t,i)=>{let n,{target:r,selector:s,event:o,journeyId:a,journeyStarted:l}=i,c=a&&l?a:this.startButtonJourney(e,s);this.pendingPreInitButtonJourneyId=void 0,this.lastButtonTriggerEvent={event:o,target:r,selector:s,journeyId:c},await new Promise(e=>this.afterInit(()=>e())),await this.widget.initialized;let u=performance.now();if(this.experienceLoadingStartTimeMap.set(c,u),"MANUAL"===e)this.config.hasMeetingBookerExperienceBuilder?this.experienceAdapter.showLightboxLoading():this.experienceAdapter.showMessengerLoa
3ding();else if("SMART_CTA"===e)try{tp.startButtonClickSpan(),this.featureFlags.bookerJourneySLI&&(0,eu.Xk)("cta:"+s,t);let e=this.featureFlags.smartCtaNestedTriggersSupport?r.closest(eM.XY):r;this.personalizationManager.add(e,s),(n=this.personalizationManager.applyLoading(e,"spinner"))&&this.experienceAdapter.showInlineLoading(n)}catch(e){this.widget.debugLog("Failed to add inline spinner "+e.message),this.widget.serverLog({message:e.message,type:"both",extra:{event:"meeting_progress_loading_bar_error"}})}this.widget.debugLog("Showing experience for trigger ["+c+"]: "+s);try{var d;null==(d=this.clientExperienceJourneys)||d.checkpoint(c,"request_dispatched")}catch(e){}this.showExperience(t,void 0,c);let h=(0,eN.Pl)(5e3,()=>{var e;this.experienceLoadingStartTimeMap.has(c)&&(n&&this.personalizationManager.removeLoadingByUuid(n),(null==(e=this.lastButtonTriggerEvent)?void 0:e.journeyId)===c&&(this.widget.debugLog("Experience timed out ["+c+"]: "+s),this.experienceAdapter.closeLightbox(),this.dispatchFallbackEvent({event:o,target:r,selector:s})))});this.callOnDispose(h)},1200,{leading:!0,trailing:!1}),this.handleManualBotTriggers=e=>{this.handleTriggers(e,this.config.manualBotTriggers,"MANUAL")},this.handleSmartCtaTriggers=e=>{var t;(null==(t=this.smartWebsiteConfig)?void 0:t.hasCurrentTriggerSelectors)&&this.handleTriggers(e,this.smartWebsiteConfig.triggerSelectors,"SMART_CTA")},this.afterInit=e=>{this.initialized?e():this.afterInitQueue.push(e)},this.handlePardotFormSubmitted=async e=>{void 0===e&&(e="default"),await s.Y9.startActiveSpanAsync("Pardot form submitted",{},this.telemetryCtx,async t=>{let i=this.config.pardotConfig?await new tf(this.config.pardotConfig).getIdentities():{};this.isDisposed||(this.channel.send({event:"pardotFormSubmitted",payload:{bot_api_name:e,pardot_prospect_email:i.prospectEmail,pardot_visitor_id:i.visitorId}}),t.end())})},this.handleSmartFormSubmitted=(e,t,i)=>{this.checkpointClientExperienceJourney(i,"request_dispatched"),this.channel.send({event:"smartFormSubmitted",payload:(0,d._)({field_values:e,bot_api_name:void 0===t?"default":t},i?{journey_id:i}:{})})},this.showExperience=(e,t,i,n)=>{let r=void 0===e?"default":e,s=n?this.startClientExperienceJourney(n,r,i):i;if(n&&s)try{var o;null==(o=this.clientExperienceJourneys)||o.checkpoint(s,"request_dispatched")}catch(e){}this.channel.perform("show_experience",{api_name:r,initial_client_state:t,transaction:s||i})},this.startClientExperienceJourney=(e,t,i)=>{let n="pre_init"===e||"tooling"===e&&!this.initialized;try{var r;let s=(null==(r=this.clientExperienceJourneys)?void 0:r.start((0,d._)({},i?{journeyId:i}:{},{journeyKind:"button",entryPath:e,startAnchor:n||"inline_auto_start"===e?"initialization":"api_call",triggerKey:"button:"+e+":"+t,supersessionKey:"button",navigationMode:"same_page"})))||"";return s&&this.scheduleClientExperienceJourneyTimeout(s),s&&n&&this.pendingPreInitJourneyIds.add(s),s}catch(e){return""}},this.markClientExperienceReady=e=>{try{var t;null==(t=this.clientExperienceJourneys)||t.markReady(e)}catch(e){}},this.showFormExperience=(e,t,i)=>{var n,r,s,o;if(!this.config.hasSmartForms)return;let a=e||(null==(n=this.widget.visitor.smartFormData)?void 0:n.botApiName),l=(null==(r=this.widget.visitor.formData)?void 0:r.fieldValues)||(null==(s=this.widget.visitor.smartFormData)?void 0:s.fieldValues),c=(0,ed.A)();try{this.widget.iframeManager.registerLoadingRequest(c)}catch(e){}let u=i||this.startFormJourney({journeyKind:"smart_form",entryPath:"api",provider:"custom",startCohort:"api",startAnchor:"api_call",triggerKey:"form:api:"+a,supersessionKey:"smart_form:api",navigationMode:"same_page"});if(u)try{null==(o=this.clientExperienceJourneys)||o.checkpoint(u,"request_dispatched")}catch(e){}this.channel.perform("show_form_experience",(0,d._)({bot_api_name:a,field_values:l,form_data:this.widget.visitor.formData,form_destinations:t,form_transaction_id:c},u?{journey_id:u}:{})),this.widget.visitor.clearSmartFormData(),this.widget.visitor.clearFormData()},this.showExperienceForForm=(e,t,i,n,r)=>{var s,o,a;if(!this.config.hasSmartForms)return void this.widget.debugState.logEvent("tracker:showExperienceForForm","error",{},"smart_forms flag is not enabled");if(t.formActionUrl&&!this.config.formBotTriggers.pardot.includes(null==(s=t.formActionUrl)?void 0:s.replace(/^https?:\/\//,"")))return void this.widget.debugState.logEvent("tracker:showExperienceForForm","error",{},"Form action URL is not in the list of Pardot form action URLs");if(i)this.widget.visitor.setFormExperienceDataWithExpiry({formType:e,formData:t}),window.postMessage({source:"qualified",token:this.config.token,message:"done",verb:"showExperienceForForm"},window.location.origin);
3else{tp.startSubmitFormSpan({"form.type":e,"form.with_redirect":!1}),this.featureFlags.bookerJourneySLI&&(0,eu.Xk)("form:"+e),this.experienceAdapter.showLightboxLoading();let i=(0,ed.A)();try{this.widget.iframeManager.registerLoadingRequest(i)}catch(e){}let s="hubspot"===e?r:e,l=null===n?void 0:n||s&&this.startFormJourney({journeyKind:"smart_form",entryPath:"api",provider:s,startCohort:"api",startAnchor:"api_call",triggerKey:"form:"+s,supersessionKey:"smart_form:api",navigationMode:"same_page"});if(l)try{null==(a=this.clientExperienceJourneys)||a.checkpoint(l,"request_dispatched")}catch(e){}this.channel.perform("show_experience_for_form",(0,d._)({form_type:e,form_data:{raw:t.raw||t,form_id:t.formId,form_email:t.formEmail,form_action_url:null==(o=t.formActionUrl)?void 0:o.replace(/^https?:\/\//,"")},form_transaction_id:i},l?{journey_id:l}:{}))}this.widget.debugState.logEvent("tracker:showExperienceForForm","success",{})},this.startFormJourney=(e,t)=>{try{var i,n;let r=void 0!==t?null==(i=this.clientExperienceJourneys)?void 0:i.start(e,{startedAtMs:t}):null==(n=this.clientExperienceJourneys)?void 0:n.start(e);return r&&this.scheduleClientExperienceJourneyTimeout(r),r}catch(e){return}},this.startCustomFormSubmitJourney=(e,t,i)=>{void 0===i&&(i="request");let n=this.customFormTriggerIds.get(e);return void 0===n&&(n=this.nextCustomFormTriggerId++,this.customFormTriggerIds.set(e,n)),this.startFormJourney((0,d._)({journeyKind:"smart_form",entryPath:"custom",provider:"custom",startCohort:"official_native_submit",startAnchor:"validated_native_submit",triggerKey:"form:custom:"+n},"request"===i?{supersessionKey:"smart_form:custom:"+n}:{},{navigationMode:"same_page"}),t)},this.startPreInitCustomFormJourney=e=>{let t=this.startFormJourney({journeyKind:"smart_form",entryPath:"pre_init",provider:"custom",startCohort:"pre_init",startAnchor:"initialization",triggerKey:"form:pre_init:"+e,supersessionKey:"smart_form:api",navigationMode:"same_page"});return t&&this.pendingPreInitJourneyIds.add(t),t},this.checkpointClientExperienceJourney=(e,t,i)=>{if(e)try{var n,r;void 0!==i?null==(n=this.clientExperienceJourneys)||n.checkpoint(e,t,{observedAtMs:i}):null==(r=this.clientExperienceJourneys)||r.checkpoint(e,t)}catch(e){}},this.metActiveThreshold=()=>{let e=document.querySelector('meta[name="description"]'),t=null;e instanceof HTMLMetaElement&&(t=e.content),this.channel.perform("met_active_threshold",{title:this.resolveTitle(),description:t,source:this.experienceAdapter.apMessagesCount>0?"auto_pounce":"auto_respond"})},this.resolveTitle=()=>{let{originalDocumentTitle:e}=this.experienceAdapter,t=document.title,i=null!=e?e:t;if(i.startsWith("Message from")){var n;this.widget.serverLog({message:"Resolved title is flash title for met_active_threshold",extra:{original_document_title:null!=(n=this.experienceAdapter.originalDocumentTitle)?n:"original_document_title was null or undefined",document_title:document.title,url:window.document.location.href}})}return i.startsWith("Message from")?null:i},this.getIdentity=()=>{this.channel.send({event:"getIdentity",payload:{}})},this.setFieldValues=e=>{this.channel.send({event:"setFieldValues",payload:{field_values:e}})},this.recordMeetingLinkLoad=e=>{let t=Object.assign({},this.initializationParams,{wu:this.widget.widgetId,url:document.location.href,wv:this.config.version,referrer:document.referrer,mlt:e||this.widget.meetingLinkToken});return this.channel.perform("record_meeting_link_load",t)},this.recordPrivacyDisclosure=(e,t)=>{let i,n=(i=(e=>{switch(e){case"zh-CN":return"zh_CN";case"zh-TW":return"zh_TW";case"es-419":return"es_LA";case"pt-BR":return"pt_BR";case"en-GB":return"en_GB";case"en-AU":return"en_AU";default:return e.split("-")[0]}})(navigator.language))in ek?i:"en";return this.channel.perform("record_privacy_disclosure",{target:e,conversation_id:t,meeting_link_locale:n})},this.recordPrivacyDisclosureConsent=e=>{if(e.type&&tC.includes(e.type))return this.channel.perform("record_privacy_disclosure_consent",{message_id:e.id})},this.createPageView=e=>{let{singlePageApp:t,reconnecting:i,rebroadcast:n,qualifiedRedirected:r}=void 0===e?{singlePageApp:!1,reconnecting:!1,rebroadcast:!1,qualifiedRedirected:!1}
3:e,o=(0,s.jM)();if(t&&document.location.href===this.lastPageViewUrl||t&&!this.initialized)return;this.lastPageViewUrl=document.location.href;let a=Object.assign({},this.initializationParams,{wu:this.widget.widgetId,url:document.location.href,single_page_app:t,wv:this.config.version,referrer:document.referrer,reconnecting:i,rebroadcast:n,has_custom_form_data:this.visitor.hasFormData,redirect_count:this.getRedirectCount()}),l=new URLSearchParams(document.location.search);for(let e of(l.get("q_profiler_id")&&(a.q_profiler_id=l.get("q_profiler_id")),this.widget.debugLog("Show clientside lightbox loading","info",{rebroadcast:String(n),qualifiedRedirected:String(r)}),n&&!r&&this.experienceAdapter.showLightboxLoading(),this.checkpointClientExperienceJourney(a.journey_id,"request_dispatched"),this.pendingPreInitJourneyIds))try{var c;null==(c=this.clientExperienceJourneys)||c.checkpoint(e,"request_dispatched")}catch(e){}return this.pendingPreInitJourneyIds.clear(),Reflect.deleteProperty(this.initializationParams,"journey_id"),(0,s.Zy)(o,()=>this.channel.perform("record_page_view",a))},this.logExperienceLoadingTime=e=>{try{var t;null==(t=this.clientExperienceJourneys)||t.checkpoint(e,"acknowledgement_received")}catch(e){}let i=this.experienceLoadingStartTimeMap.get(e);if(void 0===i)return;let n=performance.now()-i;this.widget.logTiming("Button experience loading time","buttons_time_to_socket_ms",n),this.experienceLoadingStartTimeMap.delete(e)},this.dispatchFallbackEvent=e=>{var t,i;let{event:n,target:r,selector:s}=e;if(n&&!this.isBotRedirecting){if(eB&&r instanceof HTMLAnchorElement&&r.href&&"string"==typeof r.target&&"_blank"===r.target.toLowerCase())window.location.href=r.href,this.waitingForFallbackEvent=!1;else{this.waitingForFallbackEvent=!0;let e=(0,eI.EY)(n,{[tA]:tx});(null==r?void 0:r.isConnected)?r.dispatchEvent(e):s&&(null==(i=this.personalizationManager.get(s))||i.dispatchEvent(e))}n===(null==(t=this.lastButtonTriggerEvent)?void 0:t.event)&&(this.lastButtonTriggerEvent=null)}},(0,c._)(this,tT)[tT]=eT()(()=>{this.isDisposed||(this.updatePageVisible(),this.sendHeartbeat())},1e3),this.onPageHide=()=>{this.navigating=!0},this.onPing=()=>{var e;let t=null!=(e=this.config.heartbeatPingDivisor)?e:2;this.pingCounter++%t==0&&this.sendHeartbeat()},this.sendHeartbeat=()=>{this.heartbeatManager.blocked||this.channel.send({event:"heartbeat",payload:{client_activity_at:this.widget.lastClientActivityAt,page_visible:this.pageVisible}})},this.onSessionEnded=()=>{this.channel.disconnect(),this.channel.connect()},this.onIdleTooLong=()=>{this.expiredFromInactivity=!0,this.initialized=!1,this.channel.disconnect()},this.onBotRedirect=()=>{this.visitor.setQualifiedRedirect(!0),this.isBotRedirecting=!0},this.onEndLoadingState=e=>{var t,i;let n=this.lastButtonTriggerEvent,r=!(null==e?void 0:e.journeyId)||!n||e.journeyId===n.journeyId,s=r;if(s)try{s=this.widget.iframeManager.releaseLoadingRequest(null==e?void 0:e.formTransactionId)}catch(e){}if(s&&(null==(t=this.experienceAdapter)||t.closeLightbox()),null==e?void 0:e.journeyId)try{null==(i=this.clientExperienceJourneys)||i.terminate(e.journeyId,"fallback","fallback")}catch(e){}n&&r&&this.dispatchFallbackEvent(n)},this.getRedirectCount=()=>{var e;let t=null==performance.getEntriesByType||null==(e=performance.getEntriesByType.call(performance,"navigation"))?void 0:e[0];return null==t?void 0:t.redirectCount},this.lastPageViewUrl="",this.pingCounter=0,this.navigating=!1,this.pageVisible=!0,this.expiredFromInactivity=!1,this.initializationParams={},this.telemetryCtx=void 0,this.afterInitQueue=[],this.timerStartedAt=null,this.timerTimeOnSite=0,this.clientExperienceJourneys=this.featureFlags.clientExperienceJourneyTelemetry?new tr({createId:ed.A,transport:function(e){let{log:t}=e;return{emitStart(e){e6(e)&&t({type:"log",message:"client_experience_journey_started",extra:to(e)})},emitTerminal(e,i){if(e9(e)){let n,r;t((0,d._)({type:"log",message:"client_experience_journey_terminal",extra:(n="smart_form"===e.start.journeyKind?e:void 0,r=void 0===e.timingWithheldReason,(0,d._)({},to(e.start),{outcome:e.outcome,correlation_quality:e.correlationQuality},e.resultType?{result_type:e.resultType}:{},e.uiSurface?{ui_surface:e.uiSurface}:{},e.bookerResultDetail?{booker_result_detail:e.bookerResultDetail}:{},r&&void 0!==e.durationMs?{duration_ms:e.durationMs}:{},r&&void 0!==e.preRequestMs?{pre_request_ms:e.preRequestMs}:{},r&&void 0!==e.requestToResponseMs?{request_to_response_ms:e.requestToResponseMs}:{},r&&void 0!==e.responseToReadyMs?{response_to_ready_ms:e.responseToReadyMs}:{},r&&(null==n?void 0:n.providerPendingMs)!==void 0?{provider_pending_ms:n.providerPendingMs}:{},r&&(null==n?void 0:n.providerDurationMs)!==void 0?{provider_duration_ms:n.providerDurationMs}:{},r&&(null==n?void 0:n.providerToRequestMs)!==void 0?{provider_to_request_ms:n.providerToRequestMs}:{},e.timingWithheldReason?{timing_withheld_reason:e.timingWithheldReason}:{}))},(null==i?void 0:i.fireAndForget)?{fireAndForget:!0,flushImmediately:!0}:{}))}},emitDiagnostic(e,i){var n,r,s,o;let a,l,c,u;t((0,d._)({type:"log",message:"client_experience_journey_diagnostic",extra:(a=e.candidateStart,c=null!=(n=null==(l="smart_form"===e.journeyKind?e:void 0)?void 0:l.provider)?n:null==l||null==(s=l.candidateStart)?void 0:s.provider,u=null!=(r=null==l?void 0:l.startCohort)?r:null==l||null==(o=l.candidateStart)?void 0:o.startCohort,(0,d._)({schema_version:1},e.journeyKind?{journey_kind:e.journeyKind}:{},{observation_type:e.observationType,has_journey_id:!1,attribution_method:e.attributionMethod,attribution_failure_reason:e.attributionFailureReason},l?{diagnostic_status:l.diagnosticStatus}:{},{candidate_count:e.candidateCount,metric_eligible:!1},a?{candidate_journey_id:a.journeyId}:{},e.receivedJourneyId&&ts.test(e.receivedJourneyId)?{received_journey_id:e.receivedJourneyId}:{},a?{entry_path:a.entryPath,start_anchor:a.startAnchor,navigation_mode:a.navigationMode}:{},e.resultType?{result_type:e.resultType}:{},e.outcome?{outcome:e.outcome}:{},e.uiSurface?{ui_surface:e.uiSurface}:{},e.bookerResultDetail?{booker_result_detail:e.bookerResultDetail}:{},void 0!==e.durationMs?{duration_ms:e.durationMs}:{},c?{provider:c}:{},u?{start_cohort:u}:{}))},(null==i?void 0:i.fireAndForget)?{fireAndForget:!0,flushImmediately:!0}:{}))}}}({log:e=>this.widget.serverLog(e)})}):void 0,this.callOnDispose(()=>{var e;
3this.clientExperienceJourneyTimeouts.forEach(e=>e()),this.clientExperienceJourneyTimeouts.clear(),null==(e=this.clientExperienceJourneys)||e.dispose({finishActiveAs:"superseded"})}),this.config.smartCtaTriggers&&(this.smartWebsiteConfig=new tE({smartCtaTriggers:this.config.smartCtaTriggers})),this.personalizationManager=(null==(i=this.widget.personalizationObserver)?void 0:i.manager)||new eD(null!=(t=null==(n=this.config.featureFlags)?void 0:n.smartCtaEnhancedFreezing)&&t),this.config.experimentSelectors&&this.config.experimentSelectors.length>0&&(null==(a=this.widget.personalizationObserver)||a.stop(!0),this.personalizationsConfig=new t_({experimentSelectors:this.config.experimentSelectors,currentUrl:window.location.href,activityEmitter:this.pageViewActivityEmitter},this.personalizationManager)),this.channel.on("ping",this.onPing),this.channel.on("sessionEnded",this.onSessionEnded),this.channel.on("idleTooLong",this.onIdleTooLong),this.channel.on("redirect",this.onBotRedirect),this.channel.on("endLoadingState",this.onEndLoadingState),this.channel.on("reconnected",()=>{this.initialized&&this.createPageView({singlePageApp:!1,reconnecting:!0,rebroadcast:!1})}),this.channel.on("personalizeWebsite",e=>{var t;return null==(t=this.personalizationsConfig)?void 0:t.onPersonalizeWebsite(e)}),this.channel.on("showExperienceEnd",this.logExperienceLoadingTime),this.channel.on("endInlineLoading",e=>{this.personalizationManager.removeLoadingByUuid(e)}),this.channel.on("widgetEvent",e=>this.widget.emitWidgetEvent(e)),this.channel.on("syncScriptState",e=>{try{this.widget.iframeManager.handleSyncScriptState(e)}catch(e){}}),((null==(r=this.config.featureFlags)?void 0:r.demo)||(null==(o=this.config.featureFlags)?void 0:o.demoKillSessionShortcut))&&this.callOnDispose((0,eI.q2)(document,"keydown",async e=>{if("k"===e.key&&(e.metaKey||e.ctrlKey)&&e.shiftKey){e.preventDefault(),await this.channel.perform("kill_session",{}),this.channel.disconnect();let t=document.createElement("div");t.style.cssText="position:fixed;bottom:10px;right:10px;width:10px;height:10px;background:#f44;border-radius:50%;z-index:2147483648",document.body.appendChild(t)}}))}}(0,eS.Cg)([eO.W,(0,eS.Sn)("design:type","u"<typeof HeartbeatManager?Object:HeartbeatManager)],tk.prototype,"heartbeatManager",void 0),(0,eS.Cg)([eF.H],tk.prototype,"eventHandler",void 0),(0,eS.Cg)([ej.Hi,(0,eS.Sn)("design:type",Function),(0,eS.Sn)("design:paramtypes",["u"<typeof Event?Object:Event,"u"<typeof TriggerQuerySelectors?Object:TriggerQuerySelectors,"u"<typeof BotType?Object:BotType]),(0,eS.Sn)("design:returntype",void 0)],tk.prototype,"handleTriggers",null),(0,eS.Cg)([eF.H],tk.prototype,"onPageHide",void 0),(0,eS.Cg)([eF.H],tk.prototype,"onPing",void 0),(0,eS.Cg)([eF.H],tk.prototype,"onSessionEnded",void 0),(0,eS.Cg)([eF.H],tk.prototype,"onIdleTooLong",void 0),(0,eS.Cg)([eF.H],tk.prototype,"onBotRedirect",void 0),(0,eS.Cg)([eF.H],tk.prototype,"onEndLoadingState",void 0);var tI=i(8034).zh,tF=i(8034).pS,tO=i(8034).Kj;let tM={showExperience:{dict:!1,params:[{name:"botApiName",type:"string"}]},pardotFormSubmitted:{dict:!1,params:[{name:"botApiName",type:"string"}]},startCall:{dict:!0,params:[{name:"state",type:"enum",allowed:["open","maximized","minimized"],aliases:{1:"maximized",true:"maximized",0:"open",false:"open"}}]},startChat:{dict:!0,params:[{name:"initialMessage",type:"string"},{name:"position",type:"enum",allowed:["pinned","floating"]}]}};class tR extends I{markReady(){super.markReady(),this.executeUrlApiCalls(),tI("message",e=>{let{data:t,origin:i,source:n}=e;if((null==t?void 0:t.source)==="qualified"&&(null==t?void 0:t.token)===this.widget.config.token&&(null==t?void 0:t.pardotJourney)&&this.widget.isAllowedOrigin(i)&&n&&this.featureFlags.clientExperienceJourneyTelemetry)return void this.handlePardotJourneyBridge(n,t.pardotJourney);if((null==t?void 0:t.source)==="qualified"&&(null==t?void 0:t.token)===this.widget.config.token&&Array.isArray(t.args)&&this.widget.isAllowedOrigin(i)&&"initialize"!==t.args[0]){let e=t.args;n&&this.associatePardotJourneyWithRequest(n,e),this.execute(...e),null==n||n.postMessage({source:"qualified",token:this.widget.config.token,message:"done",verb:e[0]},{targetOrigin:i})}})}beginAutoDiscoveredSmartFormSubmission(e){try{this.captureCustomFormJourneyState(e.submitEvent,{nativeSubmitAtMs:e.nativeSubmitAtMs});let t=this.claimCustomFormJourney(e.form,e.submitEvent);return t.created&&(this.checkpointCustomFormProvider(t.state,"provider_pending",t.state.providerPendingAtMs),void 0!==t.state.providerCompletedAtMs&&this.checkpointCustomFormProvider(t.state,"provider_completed",t.state.providerCompletedAtMs)),t.state.journeyId&&(t.state.requestReserved=!0),(0,d._)({},e,{journeyId:t.state.journeyId,recordsProviderTiming:!t.state.providerCompletedRecorded})}catch(t){return e}}completeAutoDiscoveredSmartFormSubmission(e){if(!e.recordsProviderTiming)return;let t=this.customFormSubmitJourneys.get(e.submitEvent);t&&this.checkpointCustomFormProvider(t,"provider_completed")}claimCustomFormJourney(e,t,i){void 0===i&&(i="request");let n=this.captureCustomFormJourneyState(t);if(n.startAttempted)return{state:n,created:!1};n.startAttempted=!0;try{this.isCommandCapabilityAllowed("sendSmartFormData")&&(n.journeyId="observation"===i?this.tracker.startCustomFormSubmitJourney(e,n.nativeSubmitAtMs,i):this.tracker.startCustomFormSubmitJourney(e,n.nativeSubmitAtMs))}catch(e){}return{state:n,created:!0}}captureCustomFormJourneyState(e,t){void 0===t&&(t={});let i=this.customFormSubmitJourneys.get(e);
3return i||(i={startAttempted:!1,providerPendingRecorded:!1,providerCompletedRecorded:!1,requestReserved:!1,requestConsumed:!1},this.customFormSubmitJourneys.set(e,i)),i.nativeSubmitAtMs=this.earlierTimestamp(i.nativeSubmitAtMs,t.nativeSubmitAtMs),i.providerPendingAtMs=this.earlierTimestamp(i.providerPendingAtMs,t.providerPendingAtMs),i.providerCompletedAtMs=this.earlierTimestamp(i.providerCompletedAtMs,t.providerCompletedAtMs),i}earlierTimestamp(e,t){return void 0===t?e:void 0===e?t:Math.min(e,t)}consumePendingCustomFormJourney(){let e=this.activeAltSubmitJourney;if((null==e?void 0:e.journeyId)&&!e.requestReserved&&!e.requestConsumed)return e.requestReserved=!0,e.requestConsumed=!0,e.journeyId}markCustomFormRequestConsumed(e){let t=this.customFormSubmitJourneys.get(e);(null==t?void 0:t.journeyId)&&(t.requestReserved=!0,t.requestConsumed=!0)}checkpointCustomFormProvider(e,t,i){if(e.journeyId){if("provider_pending"===t){if(e.providerPendingRecorded)return;e.providerPendingRecorded=!0}else{if(e.providerCompletedRecorded)return;e.providerCompletedRecorded=!0}try{void 0!==i?this.tracker.checkpointClientExperienceJourney(e.journeyId,t,i):this.tracker.checkpointClientExperienceJourney(e.journeyId,t)}catch(e){}}}readMonotonicTimestamp(){try{let e=performance.now();return Number.isFinite(e)&&e>=0?e:void 0}catch(e){return}}handlePardotJourneyBridge(e,t){try{var i,n,r;if(!this.featureFlags.clientExperienceJourneyTelemetry||this.isCommandDenied("initPardotForm"))return;if("native_submit"===t.phase){let t=null!=(n=this.pardotJourneys.get(e))?n:{pending:[]};t.dispatchClaim=void 0;let i=this.nextPardotJourneySequence++,r=this.tracker.startFormJourney({journeyKind:"smart_form",entryPath:"pardot",provider:"pardot",startCohort:"official_native_submit",startAnchor:"validated_native_submit",triggerKey:"form:pardot:"+i,supersessionKey:"smart_form:pardot:"+i,navigationMode:"same_page"});if(r){this.tracker.checkpointClientExperienceJourney(r,"provider_pending");let n={journeyId:r,sequence:i,expiry:tF(()=>this.removePardotPendingHandle(e,n),5e3)};t.pending.push(n),this.pardotJourneys.set(e,t),this.enforcePardotCorrelationLimit()}return}if("provider_completed"!==t.phase)return;let s=null!=(i=this.pardotJourneys.get(e))?i:{pending:[]};if(0===s.pending.length&&"string"==typeof s.dispatchClaim)return;let o=this.retiredPardotSources.has(e),a=1!==s.pending.length||o?void 0:s.pending[0],l=s.pending.length>1||o&&s.pending.length>0;this.retiredPardotSources.add(e);let c=[...s.pending];if(c.forEach(t=>this.removePardotPendingHandle(e,t)),s.completedExpiry&&tO(s.completedExpiry),s.completedExpiry=tF(()=>{let t=this.pardotJourneys.get(e);t&&(t.completedExpiry=void 0,t.dispatchClaim=void 0,this.deleteEmptyPardotState(e,t))},5e3),this.pardotJourneys.set(e,s),this.enforcePardotCorrelationLimit(),l){c.forEach(e=>{var i;let{journeyId:n}=e;null==(i=this.tracker.clientExperienceJourneys)||i.terminate(n,t.willRedirect?"redirect_initiated":"superseded")}),s.dispatchClaim=t.willRedirect?void 0:null;return}let u=(null==a?void 0:a.journeyId)||(o?void 0:this.tracker.startFormJourney({journeyKind:"smart_form",entryPath:"provider_only",provider:"pardot",startCohort:"provider_success_only",startAnchor:"provider_success",triggerKey:"form:pardot:provider:"+this.nextPardotJourneySequence++,supersessionKey:"smart_form:pardot:provider",navigationMode:"same_page"}));if(!u){s.dispatchClaim=t.willRedirect?void 0:null;return}this.tracker.checkpointClientExperienceJourney(u,"provider_completed"),t.willRedirect?(null==(r=this.tracker.clientExperienceJourneys)||r.terminate(u,"redirect_initiated"),s.dispatchClaim=void 0):s.dispatchClaim=u}catch(e){}}associatePardotJourneyWithRequest(e,t){let[i,n,r,s]=t;if("showExperienceForForm"!==i||"pardot"!==n||!0===s||"object"!=typeof r||null===r)return;let o=this.pardotJourneys.get(e);((null==o?void 0:o.dispatchClaim)!==void 0||this.retiredPardotSources.has(e))&&this.pardotJourneyReservations.set(r,e)}consumePardotJourney(e){let t=this.pardotJourneys.get(e);if(!t||void 0===t.dispatchClaim)return this.retiredPardotSources.has(e)?null:void 0;let i=t.dispatchClaim;return t.dispatchClaim=void 0,this.deleteEmptyPardotState(e,t),i}removePardotPendingHandle(e,t){this.retiredPardotSources.add(e),tO(t.expiry);let i=this.pardotJourneys.get(e);if(!i)return;
3let n=i.pending.indexOf(t);n>=0&&i.pending.splice(n,1),this.deleteEmptyPardotState(e,i)}deleteEmptyPardotState(e,t){0===t.pending.length&&void 0===t.dispatchClaim&&void 0===t.completedExpiry&&this.pardotJourneys.delete(e)}enforcePardotCorrelationLimit(){let e=[...this.pardotJourneys.entries()].flatMap(e=>{let[t,i]=e;return i.pending.map(e=>({source:t,handle:e}))}).sort((e,t)=>e.handle.sequence-t.handle.sequence);for(;e.length>100;){var t;let i=e.shift();if(!i)return;this.removePardotPendingHandle(i.source,i.handle),null==(t=this.tracker.clientExperienceJourneys)||t.terminate(i.handle.journeyId,"superseded")}for(;this.pardotJourneys.size>100;){let e=this.pardotJourneys.keys().next().value;if(!e)return;let t=this.pardotJourneys.get(e);this.retiredPardotSources.add(e),null==t||t.pending.forEach(e=>{var t;let{journeyId:i,expiry:n}=e;tO(n),null==(t=this.tracker.clientExperienceJourneys)||t.terminate(i,"superseded")}),(null==t?void 0:t.completedExpiry)&&tO(t.completedExpiry),this.pardotJourneys.delete(e)}}cleanup(){for(let e of(super.cleanup(),this.pardotJourneys.values()))e.pending.forEach(e=>{let{expiry:t}=e;return tO(t)}),e.completedExpiry&&tO(e.completedExpiry);this.pardotJourneys.clear(),this.retiredPardotSources=new WeakSet,this.pardotJourneyReservations=new WeakMap,this.nextPardotJourneySequence=1,this.activeAltSubmitJourney=void 0,this.customFormSubmitJourneys=new WeakMap,this.pendingCustomFormSubmitChecks.forEach(e=>tO(e)),this.pendingCustomFormSubmitChecks.clear()}executeUrlApiCalls(){let e=new URLSearchParams(document.location.search);for(let[t,i]of Object.entries(tM)){let n="q_"+t;if(e.has(n)){let r=function(e,t){if(!e)return t.dict?{}:[];let i=function(e,t){let i=[];for(let n=0;n<e.length&&n<t.length;n++){let r=e[n],s=t[n];if(!r)continue;let o=K[s.type](r,s);void 0!==o&&i.push({name:s.name,value:o})}return i}(e.split(","),t.params);if(t.dict){let e={};for(let{name:t,value:n}of i)e[t]=n;return e}return i.map(e=>{let{value:t}=e;return t})}(e.get(n),i);"showExperience"===t&&Array.isArray(r)?this.execute("showExperience",r[0],!1,!0,"tooling"):Array.isArray(r)?this.execute(t,...r):this.execute(t,r)}}}constructor(e){super(e,{initialize:(e,t)=>{(0,s.Zy)({traceId:eE.traceId,parentSpan:eE.initSpan,telemetry:eE.telemetry},()=>{this.widget.init(e,t)}),this.getIdentityQueue=[]},teardown:()=>{this.widget.onTeardown()},open:()=>{this.widget.initialized.then(()=>this.widget.open())},initPardotForm:e=>{tI("submit",t=>{if(t.target instanceof HTMLFormElement&&t.target.id&&("pardot-form"===t.target.id||t.target.matches('form[action="'+e+'"]'))){let i=t.target.querySelector(_),n=null==i?void 0:i.value;if(n){let i=t.target,r=Object.fromEntries(new FormData(i));this.execute("parsePardotFormForLandingPage",i.outerHTML,r,n,e),this.execute("emitFormFill","pardot")}}}),this.widget.debugState.logEvent("api:initPardotForm","success",{isLandingPage:!0,formActionUrl:e})},initPardotFormThankYou:e=>{this.widget.debugState.logEvent("api:initPardotFormThankYou","success",{isLandingPage:!0,formActionUrl:e})},pardotFormSubmitted:e=>{void 0===e&&(e="default"),this.tracker.initialized?this.widget.initialized.then(()=>this.tracker.handlePardotFormSubmitted(e)):this.tracker.setInitializationParams({bot_api_name:e}),this.widget.debugState.logEvent("api:saveFormData","success",{botApiName:e})},parsePardotForm:(e,t,i)=>{if(!e||!t)return void this.widget.debugState.logEvent("api:parsePardotForm","error",{form:e,formData:t,email:i},"Failed to parse Pardot form. Form: "+e+", formData: "+t);let n=document.createElement("div");n.innerHTML=e;let r=n.querySelector("form"),s=this.widget.excludeLongFieldValue(t,"pardot",r);s&&s.email===i?(this.visitor.setFormData(s),this.widget.debugState.logEvent("api:parsePardotForm","success",{email:i})):this.widget.debugState.logEvent("api:parsePardotForm","error",{incomingEmail:s.email,correctEmail:i},"Failed to parse and get the correct field values from the Pardot form. Got "+s.email+", while the correct email is "+i)},parsePardotFormForLandingPage:(e,t,i,n)=>{if(!e||!t)return void this.widget.debugState.logEvent("api:parsePardotFormForLandingPage","error",{form:e,formData:t,email:i,formActionUrl:n},"Failed to parse Pardot form. Form: "+e+", formData: "+t);let r=document.createElement("div");r.innerHTML=e;let s=r.querySelector("form"),o=this.widget.excludeLongFieldValue(t,"pardot",s);o&&o.email===i?(this.visitor.setFormExperienceDataWithExpiry({formType:"pardot",formData:(0,d._)({},o,{formActionUrl:n,formEmail:i})},5e3),this.widget.debugState.logEvent("api:parsePardotFormForLandingPage","success",{email:i})):(this.widget.debugState.logEvent("api:parsePardotFormForLandingPage","error",{incomingEmail:o.email,correctEmail:i},"Failed to parse and get the correct field values from the Pardot form on landing page. Got "+o.email+", while the correct email is "+i),this.visitor.setFormExperienceDataWithExpiry({formType:"pardot",formData:{formActionUrl:n,formEmail:i}},5e3))},saveFormData:e=>{this.visitor.setFormData(e),e.email?this.widget.debugState.logEvent("api:saveFormData","success",{fieldValues:e}):this.widget.debugState.logEvent("api:saveFormData","error",{},'"saveFormData" was called but no email was provided.')},saveSmartFormData:(e,t)=>{void 0===t&&(t="default"),this.visitor.setSmartFormData(e,t),this.widget.debugState.logEvent("api:saveSmartFormData","success",{fieldValues:e,botApiName:t})},sendSmartFormData:(e,t,i)=>{let n=void 0===t?"default":t,r=(null==i?void 0:i.marker)===v?i.journeyId:void 0;(null==i?void 0:i.marker)===v&&this.markCustomFormRequestConsumed(i.submitEvent),this.widget.initialized.then(()=>{r?this.tracker.handleSmartFormSubmitted(e,n,r):this.tracker.handleSmartFormSubmitted(e,n)}),this.widget.debugState.logEvent("api:sendSmartFormData","success",{fieldValues:e,botApiName:n})},showExperience:(e,t,i,n)=>{void 0===t&&(t=!1),void 0===i&&(i=!0),void 0===n&&(n="api");let r=t?"collapsed":"expanded";if(i&&(this.tracker.config.hasMeetingBookerExperienceBuilder?this.experienceAdapter.showLightboxLoading():t||this.widget.initialized.then(()=>
3{this.experienceAdapter.showMessengerLoading()})),this.tracker.initialized)this.widget.initialized.then(()=>this.tracker.showExperience(e,r,void 0,n));else{let t=this.tracker.startClientExperienceJourney("tooling"===n?"tooling":"pre_init",e);this.tracker.setInitializationParams((0,d._)({bot_api_name:e,bot_initial_client_state:r},t?{journey_id:t}:{}))}this.widget.debugState.logEvent("api:showExperience","success",{botApiName:e,startCollapsed:t,hasMeetingBookerExperienceBuilder:this.tracker.config.hasMeetingBookerExperienceBuilder})},registerForm:(e,t,i)=>{void 0===t&&(t={}),void 0===i&&(i=null),this.widget.initialized.then(()=>{tI("submit",n=>{let r=null;if("string"==typeof e?r=document.querySelector(e):e instanceof HTMLFormElement&&(r=e),!r||n.target!==r)return;let s=this.readMonotonicTimestamp(),o=this.readMonotonicTimestamp();this.captureCustomFormJourneyState(n,{nativeSubmitAtMs:s,providerPendingAtMs:o});let a=i?this.claimCustomFormJourney(r,n):void 0;(null==a?void 0:a.created)&&this.checkpointCustomFormProvider(a.state,"provider_pending",a.state.providerPendingAtMs);let l=new FormData(n.target),c=Object.entries(t).reduce((e,t)=>{let[i,n]=t;return e[i]=l.get(n),e},{});this.visitor.setFormData(c);let u=this.readMonotonicTimestamp();if(this.captureCustomFormJourneyState(n,{providerCompletedAtMs:u}),i){(null==a?void 0:a.created)&&this.checkpointCustomFormProvider(a.state,"provider_completed",a.state.providerCompletedAtMs),n.preventDefault(),n.stopPropagation();let e=this.activeAltSubmitJourney;try{this.activeAltSubmitJourney=null==a?void 0:a.state,i(c)}catch(e){console.error("Qualified: Error running altSubmitCallback",e)}finally{this.activeAltSubmitJourney===(null==a?void 0:a.state)&&(this.activeAltSubmitJourney=e)}}else{let e=tF(()=>
3{if(this.pendingCustomFormSubmitChecks.delete(e),!n.defaultPrevented)return;let t=this.claimCustomFormJourney(r,n,"observation");t.created&&(this.checkpointCustomFormProvider(t.state,"provider_pending",t.state.providerPendingAtMs),this.checkpointCustomFormProvider(t.state,"provider_completed",t.state.providerCompletedAtMs))},0);this.pendingCustomFormSubmitChecks.add(e)}},{capture:!0})}),this.widget.debugState.logEvent("api:registerForm","success",{fieldMappingCount:Object.keys(t).length,hasAltSubmitCallback:null!==i})},showForm:async(e,t)=>{var i;if(!this.tracker.config.hasWebsiteEmbeddedForms)return void this.widget.debugState.logEvent("api:showForm","error",{botApiName:e,clientConfig:t},"`showForm` was called but `website_embedded_forms` feature flag is not enabled");let n=document.querySelectorAll(t.target);n.length>1&&this.widget.debugState.logEvent("api:showForm","error",{botApiName:e,clientConfig:t},"Found "+n.length+" target elements for selector, but expected 1: `"+t.target+"`");let r=n[0];if(!r)return void this.widget.debugState.logEvent("api:showForm","error",{botApiName:e,clientConfig:t},"Target element not found: `"+t.target+"`");let s=null!=(i=(0,m._p)(()=>this.iframeManager))?i:null,o=new M.Dj({channel:this.channel,formApiName:e,iframeManager:s,source:"embedded"}),a=await o.getFormConfig();if(a.success){let i=a.qualifiedFormConfig,n=await J((0,d._)({formExperienceApiName:e},t,{successRedirectUrl:void 0,validateBusinessEmail:i.validateBusinessEmail?"true":void 0}));r.append(n)}else this.widget.debugState.logEvent("api:showForm","error",{botApiName:e,clientConfig:t},"Failed to get form config for form experience `"+e+"`. Error: "+a.error)},showFormExperience:(e,t)=>{var i,n,r;void 0===t&&(t={formDestinations:null});let s=(null==(i=this.visitor.formData)?void 0:i.fieldValues)||(null==(n=this.visitor.smartFormData)?void 0:n.fieldValues);if(!s)return void this.widget.debugState.logEvent("api:showFormExperience","error",{botApiName:e,formDestinations:t.formDestinations},'"showFormExperience" was called but no form data was found. Not triggering the form experience.');let o=this.consumePendingCustomFormJourney();if(this.experienceAdapter.showLightboxLoading(),this.featureFlags.bookerJourneySLI&&(0,eu.Xk)("form:"+e,e),ec.isInDebugMode()){let i;i=Array.isArray(t.formDestinations)&&t.formDestinations.length>0?" with the following form destination(s): "+t.formDestinations.join(", "):" with no form destinations provided",ec.setApiMessage("showFormExperience","Success",'"showFormExperience" was called successfully for '+e+i+".")}if(this.tracker.initialized)this.widget.initialized.then(()=>{o?this.tracker.showFormExperience(e,t.formDestinations,o):this.tracker.showFormExperience(e,t.formDestinations)});else{let i=o||this.tracker.startPreInitCustomFormJourney(e),n=(0,d._)({bot_api_name:e,form_destinations:t.formDestinations},i?{journey_id:i}:{});s&&(n.smart_form={field_values:s}),this.tracker.setInitializationParams(n)}let a=(null==(r=t.formDestinations)?void 0:r.join(","))||"none";this.widget.debugState.logEvent("api:showFormExperience","success",{botApiName:e,formDestinations:t.formDestinations},'"showFormExperience" was called successfully for '+e+" with form destinations ["+a+"]")},showExperienceForForm:(e,t,i)=>{var n,r,s,o,a;void 0===i&&(i=!1);let l="pardot"===e?this.pardotJourneyReservations.get(t):void 0;if(this.pardotJourneyReservations.delete(t),!this.widget.config.hasSmartForms)return void this.widget.debugState.logEvent("api:showExperienceForForm","error",{formType:e,formData:t,showOnRedirect:i},'"showExperienceForForm" was called but "smart_forms" flag is not enabled');let c=null==(n=t.formActionUrl)?void 0:n.replace(/^https?:\/\//,""),u=(c?[c,c.replace("/iframe/","/"),c.startsWith("/")?""+window.location.host+c:void 0,c.startsWith("/")?""+window.location.host+c.replace("/iframe/","/"):void 0].filter(e=>!!e):[]).find(e=>this.widget.config.formBotTriggers.pardot.includes(e));if(c&&!u)return void this.widget.debugState.logEvent("api:showExperienceForForm","error",{formType:e,formData:t,showOnRedirect:i},'"showExperienceForForm" was called but "formData.formActionUrl" is not in the list of configured triggers');u&&u!==c&&(t=(0,d._)({},t,{formActionUrl:u})),"pardot"===e&&((t=(0,d._)({},t,null==(r=this.visitor.formData)?void 0:r.fieldValues)).formEmail=t.formEmail||(null==(o=this.visitor.formData)||null==(s=o.fieldValues)?void 0:s.email));let h=!i&&l?this.consumePardotJourney(l):void 0;i?(tI("beforeunload",()=>{"pardot"===e&&this.visitor.clearFormData(),this.visitor.setFormExperienceDataWithExpiry({formType:e,formData:t})}),window.postMessage({source:"qualified",token:this.widget.config.token,message:"done",verb:"showExperienceForForm"},window.location.origin)):this.tracker.initialized?(this.experienceAdapter.showLightboxLoading(),this.widget.initialized.then(()=>{void 0!==h?this.tracker.showExperienceForForm(e,t,!1,h):this.tracker.showExperienceForForm(e,t)})):(this.experienceAdapter.showLightboxLoading(),this.featureFlags.bookerJourneySLI&&(0,eu.Xk)("form:"+e),this.tracker.setInitializationParams((0,d._)({},"pardot"===e&&h?{journey_id:h}:{},{smart_form:{form_type:e,field_values:{email:t.formEmail},form_data:{form_email:t.formEmail,form_action_url:null==(a=t.formActionUrl)?void 0:a.replace(/^https?:\/\//,""),raw:t,form_id:t.formId}}}))),this.widget.debugState.logEvent("api:showExperienceForForm","success",{formType:e,formData:t,showOnRedirect:i})},refreshVisitorState:()=>{this.visitor.refreshPersistedState()},getIdentity:e=>{this.getIdentityQueue.push(e),this.channel.initStateReceived?this.tracker.getIdentity():this.channel.once("initState",this.tracker.getIdentity),this.subscribedToGetIdentity||(this.subscribedToGetIdentity=!0,this.channel.emitter.on("received",(e,t)=>
3{if("getIdentity"===e)try{this.getIdentityQueue.forEach(e=>{e(t)}),this.getIdentityQueue=[]}catch(e){console.error("Qualified: Error in the given getIdentity callback.",e)}}))},handleEvents:e=>{this.channel.emitter.on("received",(t,i)=>{if("conversationEvent"===t)try{e(i.name,i.data),this.widget.serverLog({message:"handleEvents event: "+i.name,type:"log",extra:{api_method:"handleEvents",api_event:i.name}})}catch(e){console.error("Qualified: Error in event handler",e)}if("pageViewActivityEvent"===t)try{e(i.name,i.data),this.widget.serverLog({message:"handleEvents event: "+i.name,type:"log",extra:{api_method:"handleEvents",api_event:i.name}})}catch(e){console.error("Qualified: Error in event handler",e)}})},handleMessengerEvents:e=>{this.experienceAdapter.addMessengerEventsListener(e)},handleWidgetEvents:e=>{this.widget.addWidgetEventsListener(e)},identify:e=>{this.tracker.initialized?this.tracker.setFieldValues(e):this.tracker.setInitializationParams({field_values:e}),this.widget.debugState.logEvent("api:identify","success",{fieldValues:e})},page:()=>{this.tracker.createPageView({singlePageApp:!0,reconnecting:!1,rebroadcast:!1})},endExperience:()=>{this.widget.endExperience()},setCookieConsent:e=>{!0===e||!1===e?(this.widget.setCookieConsent(e),!0===e&&this.channel.send({event:"cookieConsentGiven",payload:{}})):console.error("Qualified: setCookieConsent must be called with a boolean value.")},emitFormFill:e=>{this.widget.initialized.then(()=>this.tracker.pageViewActivityEmitter.emitFormFill({formType:e}))},submitEmbeddedForm:e=>{let{email:t,formExperienceApiName:i}=e;this.tracker.config.hasWebsiteEmbeddedForms?(this.channel.send({event:"submitEmbeddedForm",payload:{bot_api_name:i,email:t}}),this.widget.debugState.logEvent("api:submitEmbeddedForm","success",{formExperienceApiName:i})):this.widget.debugState.logEvent("api:submitEmbeddedForm","error",{formExperienceApiName:i},"`submitEmbeddedForm` was called but `website_embedded_forms` feature flag is not enabled")},logDebugEvent:(e,t,i,n)=>{this.widget.debugState.logEvent(e,t,i,n)},setChatIsVisible:e=>{this.experienceAdapter.setChatIsVisible(e)},startCall:async e=>{if(this.featureFlags.piperXAgentVoice)try{let t=await this.widget.multimodalReady;null==t||t.startCall(e)}catch(e){}},startChat:async e=>{try{let t=await this.widget.multimodalReady;null==t||t.startChat(e)}catch(e){}}}),this.getIdentityQueue=[],this.pardotJourneys=new Map,this.retiredPardotSources=new WeakSet,this.pardotJourneyReservations=new WeakMap,this.nextPardotJourneySequence=1,this.customFormSubmitJourneys=new WeakMap,this.pendingCustomFormSubmitChecks=new Set}}let tP=["initPardotForm","initPardotFormThankYou"],tD=["emitFormFill","logDebugEvent","parsePardotForm","parsePardotFormForLandingPage","saveFormData","showFormExperience","showExperienceForForm","refreshVisitorState"],tL=[...tP,"registerForm"],tN=["initialize","getIdentity","handleEvents","handleMessengerEvents","handleWidgetEvents"];var tj=(0,u._)("_forwardCall");class tB extends tR{determineTargetOrigin(){throw Error("Subclass did not implement.")}markReady(){this.determineTargetOrigin(),super.markReady()}hasQueuedEarlyIframeLocalApiCalls(){return this.queue.some(e=>{let[t]=e;return tP.includes(t)})}markIframeLocalApiReady(){if(this.iframeLocalApiReady)return;this.determineTargetOrigin(),this.iframeLocalApiReady=!0;let{queue:e}=this;this.queue=[],e.forEach(e=>{let[t]=e;tP.includes(t)||tD.includes(t)?this.execute(...e):this.queue.push(e)})}execute(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];if(this.iframeLocalApiReady&&(tP.includes(e)||tD.includes(e))){if(this.isCommandDenied(e))return;this.handlers[e].apply(void 0,i);return}super.execute(e,...i)}forwardPardotJourney(e){var t;(null==(t=this.widget.config.featureFlags)?void 0:t.clientExperienceJourneyTelemetry)&&this.targetOrigin&&window.parent.postMessage({source:"qualified",token:this.widget.config.token,pardotJourney:e},this.targetOrigin)}constructor(e){super(e),Object.defineProperty(this,tj,{writable:!0,value:void 0}),this.iframeLocalApiReady=!1,(0,c._)(this,tj)[tj]=(e,t)=>{if(tN.includes(e))return void console.warn("Qualified: Unsupported API call in iframe '"+e+"'");if(!this.targetOrigin)return void console.warn("Qualified: Could not determine parent origin");let i={source:"qualified",token:this.widget.config.token,args:[e].concat(t)};window.parent.postMessage(i,this.targetOrigin)};const t=this.handlers,i=y.reduce((e,i)=>{if("initialize"===i)e[i]=(e,i)=>{t.initialize(e,i)};else if(tL.includes(i)){var n=this;e[i]=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];let o=n[i];o?o.apply(n,r):t[i].apply(void 0,r)}}else{var r=this;e[i]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,c._)(r,tj)[tj](i,t)}}return e},{});this.handlers=i}}var tU=i(8034).zh;class tz extends tB{determineTargetOrigin(){if(!0===this.widget.config.appexchange){let e=(0,o.Bq)();this.targetOrigin=e&&this.widget.isAllowedOrigin(e)?e:null;return}this.targetOrigin="*"}initPardotForm(e){tU("submit",t=>{if(t.target instanceof HTMLFormElement&&t.target.id&&("pardot-form"===t.target.id||t.target.matches('form[action="'+e+'"]'))){this.forwardPardotJourney({phase:"native_submit"});let e=t.target.querySelector(_),i=null==e?void 0:e.value;i&&(this.execute("saveFormData",{email:i}),this.execute("emitFormFill","pardot"));let n=t.target,r=Object.fromEntries(new FormData(n));this.execute("parsePardotForm",n.outerHTML,r,i),this.execute("refreshVisitorState")}}),this.execute("logDebugEvent","api:initPardotForm","success",{isLandingPage:!1,formActionUrl:e})}initPardotFormThankYou(e){window.setTimeout(()=>{let t=!0,i=document.querySelector("template.qualified-thank-you");function n(){t&&i&&(t=!1,document.body.appendChild(i.content.cloneNode(!0)))}let r=!!i&&i.content.textContent&&/(?:top|parent)\.location(?:\.href)? *=/.test(i.content.textContent);this.forwardPardotJourney({phase:"provider_completed",willRedirect:!!r}),this.execute("showExperienceForForm","pardot",{formActionUrl:e},r),i&&(r?(window.setTimeout(n,3e3),tU("message",e=>{let{data:t}=e;(null==t?void 0:t.source)==="qualified"&&(null==t?void 0:t.message)==="done"&&(null==t?void 0:t.verb)==="showExperienceForForm"&&n()})):n())},500),this.execute("logDebugEvent","api:initPardotFormThankYou","success",{isLandingPage:!1,formActionUrl:e})}registerForm(e,t,i){void 0===t&&(t={}),void 0===i&&(i=null),tU("submit",n=>{let r=null;if("string"==typeof e?r=document.querySelector(e):e instanceof HTMLFormElement&&(r=e),n.target!==r)return;let s=new FormData(n.target),o=Object.entries(t).reduce((e,t)=>
3{let[i,n]=t;return e[i]=s.get(n),e},{});if(this.handlers.saveFormData(o),i){n.preventDefault(),n.stopPropagation();try{i(o)}catch(e){console.error("Qualified: Error running altSubmitCallback",e)}}},{capture:!0})}}var tq=i(8034).kZ,tH=i(8034).wm,tV=i(8034).LK;let tW="application/x-postmate-v1+json",tQ=0,tJ=0,tK={handshake:1,"handshake-reply":1,call:1,emit:1,reply:1,request:1,disconnect:1},tG=(e,t)=>("string"!=typeof t||e.origin===t)&&!!e.data&&("object"!=typeof e.data||"postmate"in e.data)&&e.data.type===tW&&!!tK[e.data.postmate];class tY{get(e){return new tX.Promise(t=>{let i=++tQ,n=e=>{e.data.uid===i&&"reply"===e.data.postmate&&e.data.childId===this.childId&&(this.parent.removeEventListener("message",n,!1),t(e.data.value))};this.parent.addEventListener("message",n,!1),this.child.postMessage({postmate:"request",type:tW,property:e,uid:i},this.childOrigin)})}call(e,t){this.child.postMessage({postmate:"call",type:tW,property:e,data:t},this.childOrigin)}on(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)}destroy(){tq("message",this.listener,!1),this.existingFrame?this.child.postMessage({postmate:"disconnect",type:tW},this.childOrigin):this.frame.parentNode.removeChild(this.frame)}constructor(e){this.parent=e.parent,this.frame=e.frame,this.child=e.child,this.childOrigin=e.childOrigin,this.childId=e.childId,this.existingFrame=e.existingFrame,this.events={},this.listener=e=>{if(!tG(e,this.childOrigin))return!1;let{data:t,name:i}=((e||{}).data||{}).value||{};"emit"===e.data.postmate&&e.data.childId===this.childId&&i in this.events&&this.events[i].forEach(e=>{e.call(this,t)})},this.parent.addEventListener("message",this.listener,!1)}}class t${emit(e,t){this.parent.postMessage({postmate:"emit",type:tW,childId:this.childId,value:{name:e,data:t}},this.parentOrigin)}constructor(e){this.listener=e=>{var t;let i;if(!tG(e,this.parentOrigin))return;let{property:n,uid:r,data:s}=e.data;if("disconnect"===e.data.postmate){this.child.removeEventListener("message",this.listener),"_disconnect"in this.model&&"function"==typeof this.model._disconnect&&this.model._disconnect();return}if("call"===e.data.postmate){n in this.model&&"function"==typeof this.model[n]&&this.model[n](s);return}(i="function"==typeof(t=this.model)[n]?t[n]():t[n],tX.Promise.resolve(i)).then(t=>e.source.postMessage({property:n,postmate:"reply",type:tW,childId:this.childId,uid:r,value:t},e.origin))},this.model=e.model,this.parent=e.parent,this.parentOrigin=e.parentOrigin,this.child=e.child,this.childId=e.childId,this.child.addEventListener("message",this.listener)}}class tX{sendHandshake(e){let t,i,n,r,s=((i=document.createElement("a")).href=e,n=i.protocol.length>4?i.protocol:window.location.protocol,r=i.host.length?"80"===i.port||"443"===i.port?i.hostname:i.host:window.location.host,i.origin||n+"//"+r),o=0;return new tX.Promise((i,n)=>{let r=e=>!!tG(e,s)&&e.data.childId===this.childId&&("handshake-reply"===e.data.postmate?(tH(t),this.parent.removeEventListener("message",r,!1),this.childOrigin=e.origin,i(new tY(this))):n("Failed handshake"));this.parent.addEventListener("message",r,!1);let a=()=>{if(++o>10)return tH(t),n("Handshake Timeout Reached");this.child.postMessage({postmate:"handshake",type:tW,model:this.model,childId:this.childId},s)},l=()=>{a(),t=tV(a,500)};this.existingFrame?l():(this.frame.attachEvent?this.frame.attachEvent("onload",l):this.frame.addEventListener("load",l),this.frame.src=e)})}constructor({container:e=document.body,model:t,url:i,name:n,classListArray:r=[],frame:s}){if(s?(this.frame=s,this.existingFrame=!0):(this.frame=document.createElement("iframe"),this.frame.name=n||"",r.length>0&&this.frame.classList.add.apply(this.frame.classList,r),e.appendChild(this.frame)),this.existingFrame&&!this.frame.contentWindow&&!this.frame.contentDocument)return tX.Promise.reject("iframe does not have contentWindow or contentDocument");return this.parent=window,this.child=this.frame.contentWindow||this.frame.contentDocument.parentWindow,this.model=t||{},this.childId=++tJ,this.sendHandshake(i||s.src)}}tX.debug=!1,tX.Promise=(()=>{try{return window?window.Promise:Promise}catch(e){return null}})(),tX.Model=class{sendHandshakeReply(){return new tX.Promise((e,t)=>
3{let i=n=>{if(n.data.postmate){if("handshake"===n.data.postmate){this.child.removeEventListener("message",i,!1),n.source.postMessage({postmate:"handshake-reply",type:tW,childId:n.data.childId},n.origin),this.childId=n.data.childId,this.parentOrigin=n.origin;let t=n.data.model;return t&&Object.keys(t).forEach(e=>{this.model[e]=t[e]}),e(new t$(this))}return t("Handshake Reply Failed")}};this.child.addEventListener("message",i,!1)})}constructor(e){return this.child=window,this.model=e,this.parent=this.child.parent,this.sendHandshakeReply()}};var tZ=i(8034).Qj,t0=i(8034).LA;class t1 extends(0,eF.j)(Object){init(){this.handshake=new tX.Model(this.postMessageHandlers).then(e=>{if(!this.isDisposed)return this.addListener(),e}).catch(()=>{})}cleanup(){this.removeListener(),super.cleanup==null||super.cleanup.call(this)}addListener(){this.addedListener||(tZ("mousemove",this.mouseMoveListener),this.addedListener=!0)}removeListener(){this.addedListener&&(t0("mousemove",this.mouseMoveListener),this.addedListener=!1)}constructor(){super(),this.mouseMoveListener=e=>{this.isDisposed||this.handshake.then(t=>{this.isDisposed||null==t||t.emit("iframeMouseMove",{clientX:e.clientX,clientY:e.clientY})})},this.postMessageHandlers={_disconnect:()=>{this.removeListener(),this.init()}},this.addedListener=!1,this.init()}}var t2=/iPhone/i,t3=/iPod/i,t4=/iPad/i,t5=/\biOS-universal(?:.+)Mac\b/i,t8=/\bAndroid(?:.+)Mobile\b/i,t6=/Android/i,t9=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,t7=/Silk/i,ie=/Windows Phone/i,it=/\bWindows(?:.+)ARM\b/i,ii=/
3BlackBerry/i,ir=/BB10/i,is=/Opera Mini/i,io=/\b(CriOS|Chrome)(?:.+)Mobile/i,ia=/Mobile(?:.+)Firefox\b/i,il=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"u"<typeof MSStream};function ic(e){var t,i={userAgent:"",platform:"",maxTouchPoints:0};!e&&"u">typeof navigator?i={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:"string"==typeof e?i.userAgent=e:e&&e.userAgent&&(i={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=i.userAgent,r=n.split("[FBAN");void 0!==r[1]&&(n=r[0]),void 0!==(r=n.split("Twitter"))[1]&&(n=r[0]);var s=(t=n,function(e){return e.test(t)}),o={apple:{phone:s(t2)&&!s(ie),ipod:s(t3),tablet:!s(t2)&&(s(t4)||il(i))&&!s(ie),universal:s(t5),device:(s(t2)||s(t3)||s(t4)||s(t5)||il(i))&&!s(ie)},amazon:{phone:s(t9),tablet:!s(t9)&&s(t7),device:s(t9)||s(t7)},android:{phone:!s(ie)&&s(t9)||!s(ie)&&s(t8),tablet:!s(ie)&&!s(t9)&&!s(t8)&&(s(t7)||s(t6)),device:!s(ie)&&(s(t9)||s(t7)||s(t8)||s(t6))||s(/\bokhttp\b/i)},windows:{phone:s(ie),tablet:s(it),device:s(ie)||s(it)},other:{blackberry:s(ii),blackberry10:s(ir),opera:s(is),firefox:s(ia),chrome:s(io),device:s(ii)||s(ir)||s(is)||s(ia)||s(io)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var iu=i(7166);class id{constructor(e){this.t=(e,t)=>{void 0===t&&(t={});let i=e.split("."),{translations:n}=this;for(;i.length&&null!=(n=n[i.shift()]););return null!=n?(Object.keys(t).forEach(e=>{let i=RegExp("\\{\\{"+e+"\\}\\}","g");n=n.replace(i,t[e])}),n):""},this.locale=e}}class ih extends id{get translations(){return ek[this.locale]}}var ip=i(2521),im=i(5172),ig=i(1370),iv=i(7341),iy=i(8034).pS;tX.Promise=Promise;let ib="q-messenger-frame-skip-link",i_="q-messenger-frame",iw=["messagesDismissed","messengerClosed","messengerOpened"],iE={desktop:{width:"320px",height:"450px"},mobile:{width:"354px",height:"225px"}},iS={desktop:{width:"538px",height:"calc(100vh - 150px)"},mobile:{width:"100vw",height:"100dvh"}};var iA=(0,u._)("_messengerHidden"),ix=(0,u._)("_multimodalOwnsSession"),iC=(0,u._)("_legacyLightboxActive"),iT=(0,u._)("_outstandingLoadingRequestIds"),ik=(0,u._)("_knownLoadingRequestIds"),iI=(0,u._)("_syncVisibility"),iF=(0,u._)("_applyMessengerHidden"),iO=(0,u._)("_applyMessengerShown"),iM=(0,u._)("_resizeIframe"),iR=(0,u._)("_setChildFrameSize"),iP=(0,u._)("__setChildFrameSize"),iD=(0,u._)("__debouncedSetChildFrameSize"),iL=(0,u._)("_addIframeListeners"),iN=(0,u._)("_addEventListener");class ij extends g.A{get widgetHandshake(){if(!this._widgetHandshake)throw Error("Widget handshake not initialized for iframe manager");return this._widgetHandshake}set widgetHandshake(e){this._widgetHandshake=e}get embeddedHost(){var e;return this.config.allowEmbeddedWidgetMode?null!=(e=this._embeddedHost)?e:this._embeddedHost=document.querySelector("[data-qualified-embedded-widget-host]"):null}init(){return this.widgetHandshake.then(e=>{e.call("initCookieState",this.visitor.messengerState),e.call("updateParentFocussed",document.hasFocus()),e.call("setHostname",this.locationProvider.hostname),e.call("setIsEmbedded",null!==this.embeddedHost),e.on("displaySkipLink",e=>{let{locale:t}=e;if(this.config.hasMessengerSkipLink&&null==document.getElementById(ib)&&null!=document.getElementById(i_)){let e=document.createElement("button");e.textContent=new ih(t).t("snippet.page.skip_to_chat")||"Skip to chat",e.id=ib,e.setAttribute("type","button"),e.onclick=function(){let e=document.getElementById(i_);null==e||e.focus()},document.body.prepend(e)}}),this.channel.on("disconnected",()=>e.call("disconnected")),this.channel.on("initQualifiedFormElementConversation",()=>this.releaseLoadingRequest()),this.channel.on("received",(t,i)=>{"initElementConversation"===t&&this.releaseLoadingRequest(),(0,im.FI)(t,this.featureFlags)||("closeLightbox"!==t||this.releaseLoadingRequest(null==i?void 0:i.formTransactionId))&&e.call(t,i)}),this.channel.on("requestAssetPerformanceEntries",t=>e.call("requestAssetPerformanceEntries",t)),e.on("assetPerformanceEntries",e=>this.channel.emit("assetPerformanceEntries",e)),e.on("widgetLongTaskEntries",e=>{this.channel.emit("widgetLongTasks",e)}),e.on("startLightboxLoadingSpinner",()=>{this.channel.emit("startLightboxLoadingSpinner")}),e.on("reinitForMissingMessage",()=>{var e;null==this||null==(e=this.widget)||e.serverLog({message:"Calling reinit_for_missing_message",type:"log",extra:{event:"reinit_for_missing_message"}})}
3),Object.keys(this.iframeEvents).forEach(t=>e.on(t,this.iframeEvents[t])),e.on("mirrorEvent",t=>this.onMirrorEvent(e.frame,t)),e.on("readyToRender",()=>{this.embeddedHost&&((e.frame.classList.contains("maximized")||e.frame.classList.contains("qlfd-maximized"))&&this.embeddedHost.setAttribute("data-qualified-widget-ready","true"),this._embeddedReadyToRender=!0)});let{hasCLSImprovements:t}=this.widget.config;this.isMobileJs.phone||this.isMobileJs.tablet?t&&((0,c._)(this,iN)[iN](window,"touchmove",this.handleTouchMove),(0,c._)(this,iN)[iN](document,"touchend",this.handleTouchEnd)):((0,c._)(this,iN)[iN](window,"mousemove",this.handleCursor,{capture:!0}),(0,c._)(this,iL)[iL]()),(0,c._)(this,iN)[iN](window,"focus",this.handleWindowFocussed),(0,c._)(this,iN)[iN](window,"blur",this.handleWindowBlurred),this.sendScrollPercent=eT()(()=>{let e=document.documentElement,t=document.body,i="scrollTop",n="scrollHeight",r=(e[i]||t[i])/((e[n]||t[n])-e.clientHeight)*100;Number.isNaN(r)&&(r=100),this.widgetHandshake.then(e=>e.call("parentScrolledToPercent",r))},this.scrollThrottleInterval),(0,c._)(this,iN)[iN](window,"scroll",this.sendScrollPercent),this.sendScrollPercent(),this.onResize=ex()(()=>{this.widgetHandshake.then(e=>{(0,c._)(this,iR)[iR](e)})},this.resizeThrottleInterval),(0,c._)(this,iN)[iN](window,"resize",this.onResize)})}cleanup(){var e,t;null==(e=this.stylesheet.parentNode)||e.removeChild(this.stylesheet),this.widgetHandshake.then(e=>e.destroy()),null==(t=this.cursorPositionHandshakes)||t.forEach(e=>null==e.then?void 0:e.then.call(e,e=>null==e?void 0:e.destroy())),super.cleanup()}requestKeyframe(){this.widgetHandshake.then(e=>e.call("requestKeyframe"))}sendMessage(e){this.widgetHandshake.then(t=>t.call("sendMessage",e))}defaultWidgetSizes(e){let{hasCLSImprovements:t}=this.widget.config;if(!t&&e)return e;let i=t?iS:iE;return this.isMobileJs.phone?i.mobile:i.desktop}constructor(e){var t,i,n;super(e),t=this,Object.defineProperty(this,iA,{writable:!0,value:void 0}),Object.defineProperty(this,ix,{writable:!0,value:void 0}),Object.defineProperty(this,iC,{writable:!0,value:void 0}),Object.defineProperty(this,iT,{writable:!0,value:void 0}),Object.defineProperty(this,ik,{writable:!0,value:void 0}),Object.defineProperty(this,iI,{writable:!0,value:void 0}),Object.defineProperty(this,iF,{writable:!0,value:void 0}),Object.defineProperty(this,iO,{writable:!0,value:void 0}),Object.defineProperty(this,iM,{writable:!0,value:void 0}),Object.defineProperty(this,iR,{writable:!0,value:void 0}),Object.defineProperty(this,iP,{writable:!0,value:void 0}),Object.defineProperty(this,iD,{writable:!0,value:void 0}),Object.defineProperty(this,iL,{writable:!0,value:void 0}),Object.defineProperty(this,iN,{writable:!0,value:void 0}),this.childFrameCurrentHeight=0,this.childFrameCurrentWidth=0,this.backgroundCoverDiv=null,this.backgroundCoverTimeoutDisposer=null,this.originalDocumentTitle=null,this.flashDocumentTitle=null,this.apMessagesCount=0,this.autoRespondPounceCount=0,this.visitorResponded=!1,this.userResponded=!1,this.messengerEventsListeners=[],this._embeddedHost=null,this._embeddedReadyToRender=!1,this.cursorPositionHandshakes=[],this.mobileDragging=!1,(0,c._)(this,iA)[iA]=!1,(0,c._)(this,ix)[ix]=!1,(0,c._)(this,iC)[iC]=!1,(0,c._)(this,iT)[iT]=new Set,(0,c._)(this,ik)[ik]=new Set,this.scrollThrottleInterval=250,this.resizeThrottleInterval=250,this.iframeEvents={cookieStateChanged:e=>{let{attr:t,value:i}=e;return this.visitor[t]=i},resize:e=>{let{width:t,height:i}=e;this.childFrameCurrentWidth=t,this.childFrameCurrentHeight=i,this.widgetHandshake.then(e=>{(0,c._)(this,iR)[iR](e)})},endInlineLoading:e=>{this.channel.emit("endInlineLoading",e)},maximize:()=>{this.widgetHandshake.then(e=>{e.frame.classList.add("maximized","qlfd-maximized"),this.embeddedHost&&this.embeddedHost.setAttribute("data-qualified-widget-ready","true")})},minimize:()=>{this.widgetHandshake.then(e=>{e.frame.classList.remove("maximized","qlfd-maximized"),this.embeddedHost&&this.embeddedHost.removeAttribute("data-qualified-widget-ready")})},messageRead:e=>{this.channel.send({event:"messageRead",payload:{message_id:e}})},clientEvent:e=>{!(0,c._)(this,ix)[ix]&&iw.includes(e)&&this.messengerEventsListeners.forEac
3h(t=>{try{t(e)}catch(e){console.error("Qualified: Error in client event handler",e)}})},typing:e=>{let{message:t,uuid:i}=e;this.channel.send({event:"typing",payload:{message:t,uuid:i}})},setTitle:e=>{this.originalDocumentTitle=document.title,this.flashDocumentTitle=e,document.title=e},resetTitle:()=>{var e;document.title===this.flashDocumentTitle&&(document.title=null!=(e=this.originalDocumentTitle)?e:""),this.originalDocumentTitle=null,this.flashDocumentTitle=null},playAudio:e=>(0,iu.T)(""+this.config.host+e),togglePointerEvents:e=>{let{hasCLSImprovements:t}=this.widget.config;this.widgetHandshake.then(i=>{i.frame.classList.contains("qlfd-full-screen")&&t||e?i.frame.classList.remove("qlfd-disable-pointer-events"):i.frame.classList.add("qlfd-disable-pointer-events")})},click:e=>{let{x:t,y:i}=e;this.widgetHandshake.then(e=>{var n;e.frame.classList.add("qlfd-disable-pointer-events"),null==(n=document.elementFromPoint(e.frame.offsetLeft+t,e.frame.offsetTop+i))||n.click(),e.frame.classList.remove("qlfd-disable-pointer-events")})},channelSend:e=>{let{event:t,payload:i={}}=e;this.channel.send({event:t,payload:i})},sendMessageOverChannel:e=>{this.channel.perform("send_message",e)},reportError:e=>{let{message:t,type:i="both",extra:n={}}=e;fetch(this.widget.resourceUrl("visitor_events"),{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({event:t,type:i,extra:n})})},setFullScreen:e=>{var t,i;(0,c._)(this,iC)[iC]=e,(0,c._)(this,iI)[iI](),this.widgetHandshake.then(t=>{e?t.frame.classList.add("qlfd-full-screen"):(t.frame.classList.remove("qlfd-full-screen"),t.frame.classList.add("qlfd-not-full-screen"),iy(()=>{t.frame.classList.remove("qlfd-not-full-screen")},300)),(0,c._)(this,iR)[iR](t),!e&&this.embeddedHost&&this._embeddedReadyToRender&&t.call("open")}),e?null==(t=this.offerScript)||t.pause():null==(i=this.offerScript)||i.resume()},setAutoPounceMessagesCount:e=>{this.apMessagesCount=e,1===this.apMessagesCount&&this.tracker.startBehaviorTracker()},setAutoRespondPounceCount:e=>{this.autoRespondPounceCount=e,1===this.autoRespondPounceCount&&this.tracker.startBehaviorTracker()},setUserResponded:e=>{this.userResponded=e},setVisitorResponded:e=>{this.visitorResponded=e},logMessage:e=>{var t;let{message:i,extra:n={}}=e;null==this||null==(t=this.widget)||t.serverLog({message:i,type:"log",extra:n})},serverLog:e=>{var t;let{message:i,type:n="log",extra:r={},fireAndForget:s=!1}=e;null==this||null==(t=this.widget)||t.serverLog({message:i,type:n,extra:r,fireAndForget:s})},clientExperienceReady:e=>{try{this.widget.tracker.markClientExperienceReady(e)}catch(e){}},emitContentActivity:e=>{this.contentActivityEmitter.emitActivity(e)}},this.openMessenger=()=>{this.widgetHandshake.then(e=>e.call("open"))},this.hideMessenger=()=>{(0,c._)(this,ix)[ix]=!0,(0,c._)(this,iI)[iI]()},this.showMessenger=()=>{(0,c._)(this,ix)[ix]=!1,(0,c._)(this,iI)[iI]()},(0,c._)(this,iI)[iI]=()=>{(0,c._)(this,ix)[ix]&&!(0,c._)(this,iC)[iC]?(0,c._)(this,iF)[iF]():(0,c._)(this,iO)[iO]()},(0,c._)(this,iF)[iF]=()=>{(0,c._)(this,iA)[iA]||((0,c._)(this,iA)[iA]=!0,ig.q.restoreScroll("widget"),this.widgetHandshake.then(e=>{e.frame.style.setProperty("display","none","important")}))},(0,c._)(this,iO)[iO]=()=>{(0,c._)(this,iA)[iA]&&((0,c._)(this,iA)[iA]=!1,this.widgetHandshake.then(e=>{e.frame.style.removeProperty("display")}))},this.showMessengerLoading=()=>{this.widgetHandshake.then(e=>e.call("showLoading"))},this.showLightboxLoading=()=>{(0,im.$D)(this.featureFlags)||((0,c._)(this,iC)[iC]=!0,(0,c._)(this,iI)[iI](),this.widgetHandshake.then(e=>e.call("showLightboxLoading")))},this.registerLoadingRequest=e=>{(0,c._)(this,iT)[iT].add(e),(0,c._)(this,ik)[ik].add(e)},this.wouldWithholdTeardown=e=>!!e&&!!(0,c._)(this,ik)[ik].has(e)&&(0,c._)(this,iT)[iT].size-!!(0,c._)(this,iT)[iT].has(e)>0,this.releaseLoadingRequest=e=>e?!(0,c._)(this,ik)[ik].has(e)||((0,c._)(this,iT)[iT].delete(e),0===(0,c._)(this,iT)[iT].size):((0,c._)(this,iT)[iT].clear(),!0),this.showInlineLoading=e=>{(0,c._)(this,iC)[iC]=!0,(0,c._)(this,iI)[iI](),this.widgetHandshake.then(t=>t.call("showInlineLoading",e))},this.closeLightbox=()=>{(0,c._)(this,iC)[iC]=!1,(0,c._)(this,iI)[iI](),this.widgetHandshake.then(e=>e.call("closeLightbox"))},this.onMirrorEvent=(e,t)=>
3{null==this.pageMirror.onMessageFromWidget||this.pageMirror.onMessageFromWidget.call(this.pageMirror,e,t)},this.startShipper=()=>{this.widgetHandshake.then(e=>e.call("startShipper"))},this.stopShipper=()=>{this.widgetHandshake.then(e=>e.call("stopShipper"))},this.handleCursor=e=>{let{clientX:t,clientY:i}=e;this.widgetHandshake.then(e=>{let n={x:t-e.frame.offsetLeft,y:i-e.frame.offsetTop};n.x>=0&&n.y>=0&&e.call("mousemove",n)})},this.handleTouch=e=>{let{clientX:t,clientY:i}=e;this.widgetHandshake.then(e=>{let n={x:t-e.frame.offsetLeft,y:i-e.frame.offsetTop};n.x>=0&&n.y>=0&&e.call("touch",n)})},this.handleTouchEnd=e=>{let t=e.changedTouches[0];if(!this.mobileDragging){let{clientX:i,clientY:n}=t,r=window.innerWidth-i,s=window.innerHeight-n;r<this.childFrameCurrentWidth&&s<this.childFrameCurrentHeight&&(e.preventDefault(),this.handleTouch({clientX:i,clientY:n}))}this.mobileDragging=!1},this.handleTouchMove=e=>{this.mobileDragging=!0},this.handleIframeCursor=(e,t)=>{this.handleCursor({clientX:t.getBoundingClientRect().left+e.clientX,clientY:t.getBoundingClientRect().top+e.clientY})},this.handleWindowFocussed=()=>{this.widgetHandshake.then(e=>e.call("updateParentFocussed",!0))},this.handleWindowBlurred=()=>{this.widgetHandshake.then(e=>e.call("updateParentFocussed",!1))},this.handleSyncScriptState=e=>{this.widgetHandshake.then(t=>t.call("syncScriptState",e))},this.addMessengerEventsListener=e=>{this.messengerEventsListeners.push(e)},this.setChatIsVisible=e=>{this.widgetHandshake.then(t=>t.call("setChatIsVisible",e))},(0,c._)(this,iM)[iM]=(e,t,i)=>{if(e.frame.classList.contains("qlfd-full-screen"))return;let n=this.defaultWidgetSizes({width:""+t+"px",height:""+i+"px"});e.frame.setAttribute("style","\n height: "+n.height+" !important;\n width: "+n.width+" !important;\n color-scheme: auto;\n ")},(0,c._)(this,iR)[iR]=e=>{var t;return(null==(t=this.featureFlags)?void 0:t.widgetDebounceIframeResizes)?(0,c._)(this,iD)[iD](e):(0,c._)(this,iP)[iP](e)},(0,c._)(this,iP)[iP]=e=>{if((0,c._)(this,iA)[iA])return;let t=this.childFrameCurrentHeight,i=this.childFrameCurrentWidth,n=e.frame.classList.contains("maximized")||e.frame.classList.contains("qlfd-maximized"),r=e.frame.classList.contains("qlfd-is-mobile"),s=e.frame.classList.contains("qlfd-full-screen"),o=document.documentElement.clientHeight,a=document.documentElement.clientWidth,l=o<t,u=a<i,d=e.frame.clientHeight,h=t;l?h=window.innerHeight:n&&d>t&&(h=d),o<600&&!this.isMobileJs.phone?e.frame.classList.add("qlfd-full-height"):e.frame.classList.remove("qlfd-full-height"),e.call("contentTooTall",l),e.call("contentTooWide",u),e.call("messengerTooTall",o<=d),e.frame.style.visibility="",e.frame.style.contentVisibility="",this.config.hasWidgetFullScreenWithScrollDisabler&&(r&&n||s)?ig.q.disableScroll("widget",{overlayElement:e.frame}):ig.q.restoreScroll("widget"),r&&n||s||this.embeddedHost?e.frame.removeAttribute("style"):(0,c._)(this,iM)[iM](e,u?a:i,h)},(0,c._)(this,iD)[iD]=ex()(e=>(0,c._)(this,iP)[iP](e),this.resizeThrottleInterval,{leading:!0}),(0,c._)(this,iL)[iL]=()=>{this.cursorPositionHandshakes=[];let e=e=>{if(e.id!==i_&&"none"!==e.style.display)try{(0,c._)(this,iN)[iN](e.contentWindow,"mousemove",t=>this.handleIframeCursor(t,e))}catch(t){this.cursorPositionHandshakes.push(new tX({frame:e}).then(t=>(t.on("iframeMouseMove",t=>this.handleIframeCursor(t,e)),t)).catch(()=>{}))}};document.querySelectorAll("iframe").forEach(e),this.iframeObserver=new MutationObserver(t=>{t.forEach(t=>{t.addedNodes.forEach(t=>{"tagName"in t&&"IFRAME"===t.tagName?e(t):t instanceof HTMLElement&&t.querySelectorAll("iframe").forEach(e)})})}),this.iframeObserver.observe(document.body,{childList:!0,subtree:!0}),this.callOnDispose(()=>{var e;null==(e=this.iframeObserver)||e.disconnect()})},(0,c._)(this,iN)[iN]=function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];t.callOnDispose((0,eI.q2)(...i))},this.stylesheet=document.createElement("style"),this.stylesheet.textContent=iv.A,document.head.appendChild(this.stylesheet),this.messengerEventsListeners=[],this.isMobileJs=ic();const r=this.defaultWidgetSizes(),s=(null==(i=this.config.featureFlags)?void 0:i.piperXAgent)||(null==(n=this.config.featureFlags)?void 0:n.demo),o={};this.widget.traceState.isTracing&&(o.q_trace=this.widget.traceState.traceValue);const{hasCLSImprovements:a}=this.widget.config,l=[];this.isMobileJs.phone?(l.push("qlfd-is-mobile"),a&&l.push("qlfd-disable-pointer-events")):this.embeddedHost?l.push("qlfd-embedded"):l.push("qlfd-not-mobile"),this.widgetHandshake=new tX({container:{appendChild:e=>{var t;e.id=i_,e.dataset.mirrored="true",(this.featureFlags.video||this.featureFlags.voice)&&e.setAttribute("allow","camera;microphone"),e.setAttribute("title","Qualified Messenger"),e.setAttribute("style","\n height: "+r.height+" !important;\n width: "+r.width+" !important;\n visibility: hidden !important;\n content-visibility: hidden !important;\n "),(null!=(t=this.embeddedHost)?t:s?(0,ip.D)():document.body).appendChild(e)}},classListArray:l,url:this.visitor.resourceUrl("messenger",o)})}}(0,eS.Cg)([eO.W,(0,eS.Sn)("design:type","u"<typeof LocationProvider?Object:LocationProvider)],ij.prototype,"locationProvider",void 0);var iB=i(9350),iU=i(9491),iz=i.n(iU),iq=i(2328),iH=i(1655),iV=i.n(iH),iW=i(5270),iQ=i.n(iW),iJ=i(7441);let iK={logger:self.console,WebSocket:self.WebSocket},iG={log(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];this.enabled&&(t.push(Date.now()),iK.logger.log("[ActionCable]",...t))}};var iY=i(8034).Kj,i$=i(8034).pS;let iX=()=>new Date().getTime(),iZ=e=>(iX()-e)/1e3;class i0{start(){this.isRunning()||(this.startedAt=iX(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),iG.log("ConnectionMonitor started. stale threshold = "+this.constructor.staleThreshold+" s"))}stop(){this.isRunning()&&(this.stoppedAt=iX(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),iG.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=iX()}recordConnectWaiting(){this.connectWaitingStartedAt=iX(),iG.log("ConnectionMonitor recorded waiting for connect")}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.connectWaitingStartedAt,delete this.disconnectedAt,iG.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=iX(),iG.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){iY(this.pollTimeout)}poll(){this.pollTimeout=i$(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){let{staleThreshold:e,reconnectionBackoffRate:t}=this.constructor;return 1e3*e*Math.pow(1+t,Math.min(this.reconnectAttempts,10))*(1+(0===this.reconnectAttempts?1:t)*Math.random())}reconnectIfStale(){this.connectionIsStale()&&(iG.log("ConnectionMonitor detected stale c
3onnection. reconnectAttempts = "+this.reconnectAttempts+", time stale = "+iZ(this.refreshedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?iG.log("ConnectionMonitor skipping reopening recent disconnect. time disconnected = "+iZ(this.disconnectedAt)+" s"):this.waitingForConnect()?iG.log("ConnectionMonitor skipping reopening recent connect waiting. time waiting = "+iZ(this.connectWaitingStartedAt)+" s"):this.connection.canFallback()?(iG.log("ConnectionMonitor falling back to another transport"),this.connection.fallback()):(iG.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return iZ(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&iZ(this.disconnectedAt)<this.constructor.staleThreshold}waitingForConnect(){return this.connectWaitingStartedAt&&iZ(this.connectWaitingStartedAt)<this.constructor.staleThreshold}visibilityDidChange(){"visible"===document.visibilityState&&i$(()=>{(!this.connectionIsStale()||this.waitingForConnect())&&this.connection.isOpen()||(iG.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),this.connection.reopen())},200)}constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}}i0.staleThreshold=6,i0.reconnectionBackoffRate=.15;let i1={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};var i2=i(8034).pS;let{message_types:i3,protocols:i4}=i1,i5=[401,404],i8=[i3.confirmation,i3.rejection,i3.ping,i3.disconnect];class i6{send(e){let{command:t,identifier:i,data:n}=JSON.parse(e);switch(t){case"subscribe":return this.openStream(i);case"unsubscribe":return this.closeStream(i);default:return this.enqueueCommand({command:t,identifier:i,data:n})}}close(){3!==this.readyState&&(this.readyState=3,this.sources.forEach(e=>e.close()),this.sources.clear(),this.pending=[],this.onclose&&this.onclose({}))}handshake(){0===this.readyState&&(this.readyState=1,this.onopen&&this.onopen({}),this.deliver({type:i3.welcome}))}openStream(e){if(this.sources.has(e))return;let t=new EventSource(this.streamUrl(e));this.sources.set(e,t),i8.forEach(e=>{t.addEventListener(e,e=>this.emit(e.data))}),t.addEventListener(i3.welcome,e=>{let t=i9(e.data),i=t&&t.message&&t.message.connection_token;i?(this.token=i,this.flush()):this.token||1!==this.readyState||this.close()}),t.addEventListener("message",t=>{let i=i9(t.data);i&&this.deliver({identifier:e,message:i})}),t.addEventListener("error",()=>{1===this.readyState&&this.close()})}streamUrl(e){let t=new URL(this.url.replace(/^ws/,"http"));return t.pathname=t.pathname.replace(/\/cable$/,"/events"),t.searchParams.set("identifier",e),t.toString()}closeStream(e){let t=this.sources.get(e);t&&(t.close(),this.sources.delete(e))}enqueueCommand(e){this.pending.push(e),this.flush()}async flush(){if(this.token&&!this.flushing&&1===this.readyState){this.flushing=!0;try{for(;this.pending.length;)await this.postCommand(this.pending.shift())}finally{this.flushing=!1}}}async postCommand(e){let t,i=JSON.stringify(e);try{t=await fetch(this.options.upstreamUrl,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8","X-Cable-Connection-Token":this.token},credentials:"omit",keepalive:new Blob([i]).size<=65536,body:i})}catch(e){return this.dropTransport()}if(i5.includes(t.status))return this.dropTransport();let n=t.ok?await t.json().catch(()=>null):null;n?(n.connection_token&&(this.token=n.connection_token),(n.transmissions||[]).forEach(e=>this.deliver(e)),n.disconnect&&this.deliver({type:i3.disconnect,reconnect:!1})):iG.log("Cable command failed: "+t.status+" "+t.statusText)}dropTransport(){1===this.readyState&&this.close()}
3deliver(e){this.emit(JSON.stringify(e))}emit(e){this.onmessage&&this.onmessage({data:e})}constructor(e,t,i={}){this.url=e,this.options=i,this.protocol=i4[0],this.readyState=0,this.sources=new Map,this.token=null,this.pending=[],this.onopen=null,this.onmessage=null,this.onclose=null,this.onerror=null,i2(()=>this.handshake(),0)}}function i9(e){if("string"!=typeof e||0===e.length)return null;try{return JSON.parse(e)}catch(e){return null}}i6.CONNECTING=0,i6.OPEN=1,i6.CLOSING=2,i6.CLOSED=3;var i7=i(8034).pS;let{message_types:ne,protocols:nt}=i1,ni=nt.slice(0,nt.length-1),nn=[].indexOf;class nr{send(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)}open(){if(this.isActive())return iG.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1;{iG.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+nt),this.webSocket&&this.uninstallEventHandlers();let e=this.consumer.transport||this.defaultTransport();return this.webSocket=new e(this.consumer.url,nt,this.consumer.fallback),this.installEventHandlers(),this.monitor.start(),this.monitor.recordConnectWaiting(),this._connectedBefore=!0,!0}}close(e){let{allowReconnect:t}=void 0===e?{allowReconnect:!0}:e;if(t||this.monitor.stop(),this.isActive())return this.webSocket.close()}reopen(){if(iG.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(e){iG.log("Failed to reopen WebSocket",e)}finally{iG.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),i7(this.open,this.constructor.reopenDelay)}}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}hasConnectedBefore(){return!!this._connectedBefore}canFallback(){return!!this.consumer.fallback&&!this.consumer.transport&&!this.opened}defaultTransport(){return"function"!=typeof iK.WebSocket&&this.consumer.fallback?(iG.log("WebSocket is unavailable, opening the SSE + HTTP transport instead"),this.consumer.transport=i6,i6):iK.WebSocket}fallback(){return iG.log("Falling back to the SSE + HTTP transport"),this.consumer.transport=i6,this.reopen()}isProtocolSupported(){return nn.call(ni,this.getProtocol())>=0}isState(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return nn.call(t,this.getState())>=0}getState(){if(this.webSocket){let e=this.webSocket.constructor||iK.WebSocket;for(let t in e)if(e[t]===this.webSocket.readyState)return t.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){let t=this.events[e].bind(this);this.webSocket["on"+e]=t}}uninstallEventHandlers(){for(let e in this.events)this.webSocket["on"+e]=function(){}}constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new i0(this),this.disconnected=!0}}nr.reopenDelay=500,nr.prototype.events={message(e){if(!this.isProtocolSupported())return;let{identifier:t,message:i,reason:n,reconnect:r,type:s}=JSON.parse(e.data);switch(s){case ne.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case ne.disconnect:iG.log("Disconnecting. Reason: "+n);try{this.subscriptions.notifyAll("disconnecting",{allowReconnect:r,reason:n})}catch(e){}return this.close({allowReconnect:r});case ne.ping:try{this.subscriptions.notifyAll("ping")}catch(e){}return this.monitor.recordPing();case ne.confirmation:return this.subscriptions.notify(t,"connected");case ne.rejection:return this.subscriptions.reject(t);default:return this.monitor.recordPing(),i.__event=e,this.subscriptions.notify(t,"received",i)}},open(){if(iG.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,this.opened=!0,!this.isProtocolSupported())return iG.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(e){if(iG.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){iG.log("WebSocket onerror event")}};let ns=function(e,t){if(null!=t)for(let i in t){let n=t[i];e[i]=n}return e};class no{perform(e,t){return void 0===t&&(t={}),t.action=e,this.send(t)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}constructor(e,t={},i){this.consumer=e,this.identifier=JSON.stringify(t),ns(this,i)}}class na{create(e,t){let i=new no(this.consumer,"object"==typeof e?e:{channel:e},t);return this.add(i)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.sendCommand(e,"subscribe"),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(e=>(this.forget(e),this.notify(e,"rejected"),e))}forget(e){return this.subscriptions=this.subscriptions.filter(t=>t!==e),e}findAll(e){return this.subscriptions.filter(t=>t.identifier===e)}reload(){return this.subscriptions.map(e=>this.sendCommand(e,"subscribe"))}notifyAll(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return this.subscriptions.map(t=>this.notify(t,e,...i))}notify(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];return("string"==typeof e?this.findAll(e):[e]).map(e=>"function"==typeof e[t]?e[t](...n):void 0)}sendCommand(e,t){let{identifier:i}=e;return this.consumer.send({command:t,identifier:i})}constructor(e){this.consumer=e,this.subscriptions=[]}}class nl{get url(){return function(e,t){let i;try{let t=new URL(e);
3i=Array.from(t.searchParams.entries()).length>0}catch(e){i=!1}let n="ic="+!t;return e+(i?"&"+n:"?"+n)}(function(e){if("function"==typeof e&&(e=e()),!e||/^wss?:/i.test(e))return e;{let t=document.createElement("a");return t.href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}}(this._url),this.connection.hasConnectedBefore())}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}constructor(e,t){this._url=e,this.fallback=t&&t.fallback||null,this.transport=null,this.subscriptions=new na(this),this.connection=new nr(this)}}function nc(e){return null===e||"object"!=typeof e||Array.isArray(e)?void 0:e}function nu(e,t){let i=null==e?void 0:e[t];return"string"==typeof i?i:void 0}function nd(e,t){return nu(t,"journeyId")||nu(e,"journeyId")}function nh(e){let t=nc(null==e?void 0:e.script);return nu(e,"triggeredByBotType")||nu(t,"botType")||nu(t,"bot_type")}function np(e){return nh(nc(e.conversation))}function nm(e,t,i){let n;if("initElementConversation"===t&&"multimodal"===i){var r;n=null!=(r=e.filter(e=>"lightbox_gather"===e.type).at(-1))?r:e.find(e=>"calendar_event_offer"===e.type)}else n="initElementConversation"===t?e.filter(e=>e.scriptId&&"string"==typeof e.type&&["lightbox_gather","calendar_event_offer","calendar_event_confirmation","text"].includes(e.type)).at(-1):e.at(-1);return(null==n?void 0:n.type)==="calendar_event_offer"?{carrier:n,resultType:"booker"}:(null==n?void 0:n.type)==="lightbox_gather"?{carrier:n,resultType:"qualification"}:void 0}function nf(e){return Array.isArray(null==e?void 0:e.conversations)?e.conversations.map(nc).filter(e=>!!e):[]}function ng(e){let t=nc(e),i=nu(t,"event"),n=nc(null==t?void 0:t.payload);return{event:i,payload:n,messages:i?["initElementConversation","elementMessage"].includes(i)&&n?Array.isArray(n.messages)?n.messages.map(nc).filter(e=>!!e):"string"==typeof n.type?[n]:[]:[]:[]}}var nv=i(2995),ny=i(2140);class nb extends g.A{cleanup(){this.disconnect(),super.cleanup()}get emitter(){return this._emitter}get cable(){return this._cable}resetWhenConnected(){var e;null==(e=this.whenConnected)||e.cancel(),this.whenConnected=(0,iq.Oo)(this._emitter,"connected","disconnecting"),this.whenConnected.catch(e=>{if("delay_connect"!==e&&"unauthorized"!==e)throw e})}connect(){var e,t,i;i0.staleThreshold=null!=(e=this.config.staleThresholdSeconds)?e:6;let n=this.widget.connectionParams,r=this.config.wsHost+"?"+new URLSearchParams(iQ()(n,iV())).toString();return this._cable=(t=r,i={fallback:{upstreamUrl:this.widget.resourceUrl("cable/command",{uuid:this.widget.visitor.uuid,wu:this.widget.widgetId})}},void 0===t&&(t=function(){let e=document.head.querySelector("meta[name='action-cable-url']");if(e)return e.getAttribute("content")}()||i1.default_mount_path),new nl(t,i)),this.subscription=this._cable.subscriptions.create({channel:"Visitors::WidgetChannel"},{connected:this.onConnected,disconnecting:this.onDisconnecting,ping:this.onPing,received:this.onReceived}),this.liveViewSubscription=this._cable.subscriptions.create({channel:"CoBrowse::VisitorChannel"},{received:this.onReceivedLiveView}),this.whenConnected}disconnect(){var e;null==(e=this.whenConnected)||e.cancel(),this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.liveViewSubscription&&(this.liveViewSubscription.unsubscribe(),this.liveViewSubscription=null),this._cable&&(this._cable.disconnect(),this._cable=null),this.onDisconnected(),this.widget.resetWidgetId()}startEmitter(){this.messages.forEach(e=>this.handleMessage(e)),this.emittingMessages=!0}async send(e){var t;let i=(0,s.jM)();await this.whenConnected,i&&(e||(e={}),e.traceparent=(0,s.Wm)(i)),null==(t=this.subscription)||t.send(e)}async perform(e,t){var i;let n=(0,s.jM)();n&&(t||(t={}),t.traceparent=(0,s.Wm)(n)),await this.whenConnected,null==(i=this.subscription)||i.perform(e,t)}sendLiveView(e){var t;null==(t=this.liveViewSubscription)||t.send(e)}on(e,t,i){return this._emitter.on(e,t,i)}once(e,t,i){return this._emitter.once(e,t,i)}off(e,t){return this._emitter.off(e,t)}emit(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return this._emitter.emit(e,...i)}pingPong(e,t,i,n){return this._emitter.emit(e,i),this.once(t,n)}onDisconnected(){this.resetWhenConnected(),this._emitter.emit("disconnected")}handleMessage(e){["refresh","sessionEnded","idleTooLong"].indexOf(e.event)>
3-1?this._emitter.emit(e.event):[].concat(e).forEach(e=>{var t,i,n;let r="closeLightbox"===e.event&&this.suppressNextJourneyCloseForChatTransition,s=r&&(null==(t=e.payload)?void 0:t.fallbackToDefault)!==!0,o="closeLightbox"===e.event&&this.wouldWithholdTeardown(e.payload);if("startChatConversationLoadingState"===e.event?this.suppressNextJourneyCloseForChatTransition=!0:("initState"===e.event||r&&!o)&&(this.suppressNextJourneyCloseForChatTransition=!1),"closeLightbox"!==e.event||!o){tp.finishFormOrButtonSpan(e),(0,eu.HT)(e);try{let t=this.tracker.clientExperienceJourneys,i=null==t?void 0:t.hasActiveJourney("button"),n=null==t?void 0:t.hasActiveJourney("smart_form");if(!s&&t&&(i||n)){let r="initElementConversation"===e.event&&(this.widget.experienceAdapter instanceof ny.Q||(0,im.$D)(this.featureFlags))?"multimodal":"legacy";t.observeResponseCandidates([...i?[function(e,t){void 0===t&&(t="legacy");let{event:i,payload:n,messages:r}=ng(e);if(!i)return{kind:"ignore"};let s=nm(r,i,t);if(s){let e=np(s.carrier);if(e&&"smart_cta"!==e&&"manual"!==e)return{kind:"ignore"};let t=nd(n,s.carrier),i=nu(s.carrier,"id");return(0,d._)({kind:"result",journeyKind:"button",resultType:s.resultType},t?{journeyId:t}:{},i?{resultId:i}:{})}if("initState"===i){let e=nf(n).find(e=>"chat"===e.type&&null==e.endedAt),t=nu(e,"id"),i=nu(e,"journeyId");if(["smart_cta","manual"].includes(nh(e)||""))return(0,d._)({kind:"result",journeyKind:"button",resultType:"messenger"},i?{journeyId:i}:{},t?{resultId:t}:{})}let o=nu(n,"journeyId");return"open"===i?(0,d._)({kind:"result",journeyKind:"button",resultType:"messenger"},o?{journeyId:o}:{},nu(n,"conversationId")?{resultId:nu(n,"conversationId")}:{}):"closeLightbox"===i?(null==n?void 0:n.journeyTransition)==="messenger"&&!0!==n.fallbackToDefault?{kind:"ignore"}:(0,d._)({kind:"terminal",journeyKind:"button",outcome:(null==n?void 0:n.fallbackToDefault)===!0?"fallback":"unknown"},o?{journeyId:o}:{}):"redirect"===i?(0,d._)({kind:"terminal",journeyKind:"button",outcome:"redirect_initiated"},o?{journeyId:o}:{}):{kind:"ignore"}}(e,r)]:[],...n?[function(e,t){void 0===t&&(t="legacy");let{event:i,payload:n,messages:r}=ng(e);if(!i)return{kind:"ignore"};let s=nm(r,i,t);if(s){let e=np(s.carrier),t=nd(n,s.carrier);if(!t&&"form"!==e)return{kind:"ignore"};let i=nu(s.carrier,"id");return(0,d._)({kind:"result",journeyKind:"smart_form",resultType:s.resultType},t?{journeyId:t}:{},i?{resultId:i}:{})}if("initState"===i){let e=nf(n).find(e=>"chat"===e.type&&null==e.endedAt),t=nh(e);if("form"!==t&&!(nu(e,"journeyId")&&("smart_cta"===t||"manual"===t)))return{kind:"ignore"};let i=nu(e,"journeyId"),r=nu(e,"id");return(0,d._)({kind:"result",journeyKind:"smart_form",resultType:"messenger"},i?{journeyId:i}:{},r?{resultId:r}:{})}let o=nu(n,"journeyId");return"open"===i&&o?(0,d._)({kind:"result",journeyKind:"smart_form",resultType:"messenger",journeyId:o},nu(n,"conversationId")?{resultId:nu(n,"conversationId")}:{}):"closeLightbox"===i&&o?(null==n?void 0:n.journeyTransition)==="messenger"&&!0!==n.fallbackToDefault?{kind:"ignore"}:{kind:"terminal",journeyKind:"smart_form",outcome:(null==n?void 0:n.fallbackToDefault)===!0?"fallback":"unknown",journeyId:o}:"endLoadingState"===i&&o?{kind:"terminal",journeyKind:"smart_form",outcome:"no_content",journeyId:o}:"redirect"===i&&o?{kind:"terminal",journeyKind:"smart_form",outcome:"redirect_initiated",journeyId:o}:{kind:"ignore"}}(e,r)]:[]])}}catch(e){}}if("redirect"===e.event&&e.payload.url)e.payload.isQualifiedForm&&(null==(i=this.offerScript)?void 0:i.hasActiveForm)?this._emitter.emit("qualifiedFormRedirect",e.payload):(this._emitter.emit(e.event),window.location.href=e.payload.url);else if("endLoadingState"===e.event)this._emitter.emit(e.event,e.payload);else if("personalizeWebsite"===e.event)this._emitter.emit(e.event,e.payload);else if("initOffers"===e.event){let{payload:t}=e;t.length>0&&this.widget.initializeOffers().then(()=>{this._emitter.emit(e.event,t)})}else"getQualifiedFormConfig"===e.event||"showExperienceEnd"===e.event||"initMeetingLinkConversation"===e.event?this._emitter.emit(e.event,e.payload):"widgetEvent"===e.event?this._emitter.emit(e.event,e.payload.event_name):nv.Yb.includes(e.event)||"syncScriptState"===e.event||e.event.endsWith(":ack")||e.event.endsWith(":response")?this._emitter.emit(e.event,e.payload):("initState"===e.event?(null==e.payload.useNewMessengerStyling&&(null==(n=(0,tu.Nj)({project:"multimodal"}))||n.captureException(Error("initState received with null useNewMessengerStyling"))),this.initStateReceived=!0,this._emitter.emit("initState")):"elementMessage"===e.event?this._emitter.emit("elementMessage",e.payload):"callEnded"===e.event&&this._emitter.emit("callEnded",e.payload),this.widget.multimodal?this._emitter.emit("multimodal",e):this._emitter.emit("received",e.event,e.payload))})}wouldWithholdTeardown(e){try{return this.widget.iframeManager.wouldWithholdTeardown(e.formTransactionId)}catch(e){return!1}}constructor(e){super(e),this.onConnected=()=>
3{if(this.hasConnectedBefore){var e;null==(e=this.subscription)||e.send({event:"reconnected"}),this._emitter.emit("reconnected")}this.hasConnectedBefore=!0,this._emitter.emit("connected")},this.onDisconnecting=e=>{e&&e.reason&&("invalid_version"===e.reason&&this._emitter.emit("refresh"),this._emitter.emit("disconnecting",e.reason)),this.onDisconnected()},this.onPing=()=>{this._emitter.emit("ping")},this.onReceived=e=>{this.emittingMessages?this.handleMessage(e):this.messages.push(e)},this.onReceivedLiveView=e=>{this.widget.initializePageMirror().then(()=>{this._emitter.emit("receivedLiveView",e)})},this._emitter=new iJ.TinyEmitter,this._cable=null,this.emittingMessages=!1,this.messages=[],this.hasConnectedBefore=!1,this.initStateReceived=!1,this.suppressNextJourneyCloseForChatTransition=!1,this.subscription=null,this.liveViewSubscription=null,this.resetWhenConnected()}}class n_{bindEventsBridge(e){this.eventsBridge.bindRootStore(e),this.bridgeBound=!0}setMultimodalOwnsSession(e){e||(this.bridgeBound=!1),this.multimodalOwns=e}get target(){return this.multimodalOwns&&this.bridgeBound?this.eventsBridge:this.primary}dispose(){this.primary.dispose(),this.eventsBridge.dispose()}notifyClientExperienceReady(e){try{this.eventsBridge.notifyClientExperienceReady(e)}catch(e){}}addMessengerEventsListener(e){this.primary.addMessengerEventsListener(e),this.eventsBridge.addMessengerEventsListener(e)}showLightboxLoading(){this.primary.showLightboxLoading()}showInlineLoading(e){this.primary.showInlineLoading(e)}closeLightbox(){this.primary.closeLightbox()}showMessengerLoading(){this.target.showMessengerLoading()}openMessenger(){this.target.openMessenger()}setChatIsVisible(e){this.target.setChatIsVisible(e)}get apMessagesCount(){return this.target.apMessagesCount}get autoRespondPounceCount(){return this.target.autoRespondPounceCount}get visitorResponded(){return this.target.visitorResponded}get userResponded(){return this.target.userResponded}get originalDocumentTitle(){return this.target.originalDocumentTitle}constructor(e,t){this.multimodalOwns=!1,this.bridgeBound=!1,this.primary=e,this.eventsBridge=t}}var nw=i(3518),nE=i(8034).pS,nS=i(8034).Kj;let nA=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);class nx extends(0,eF.j)(Object){register(e,t){this.registrations[e]={Class:t,singleton:!1}}register1(e,t){this.registrations[e]={Class:t,singleton:!0}}set(e,t){this.singletons[e]=t}unset(e){delete this.singletons[e]}async load(e,t){if(void 0===t&&(t=!1),this.moduleMap.has(e))return this.moduleMap.get(e);let i=await this.loadModule(e);t?this.register1(e,i):this.register(e,i);let n=this.resolve(e);return this.moduleMap.set(e,n),n}resolve(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];if(nA(this.singletons,e))return this.singletons[e];let{Class:r,singleton:s}=this.getRegistration(e),o=new r({container:this,name:e,singleton:s},...i);return s&&(this.singletons[e]=o),o}classFor(e){return this.getRegistration(e).Class}cleanup(){let e=(0,nw.z)(Object.values(this.singletons),e=>{nA(e,"dispose")&&e.dispose()});if(this.reset(),e.length>0)throw Error("Dispose errors: "+e.join(", "))}reset(){this.singletons={},this.registrations={},this.moduleMap=new Map}getRegistration(e){if(nA(this.registrations,e))return this.registrations[e];throw Error("Unknown dependency: "+e)}loadOffersScript(){return i.e(8243).then(i.bind(i,7057))}loadLiveView(){return i.e(3587).then(i.bind(i,9350))}loadAnalytics(){return i.e(8762).then(i.bind(i,3991))}loadMultimodalV2(){return i.e(2029).then(i.bind(i,3187))}loadDummyModule(){return i.e(6342).then(i.bind(i,7169))}async raceWithTimeout(e,t){let i,n=new Promise((e,n)=>{i=nE(()=>{n(Error("Failed to import dynamic module within "+t+"ms"))},t)});try{return await Promise.race([e,n])}finally{i&&nS(i)}}async loadModule(e){let t,i,n,r,s,o;switch(e){case"offers":{let e=await this.raceWithTimeout(this.loadOffersScript(),nx.DYNAMIC_IMPORT_TIMEOUT_MS);({OfferMainScript:i}=e),t=i;break}case"liveView":({default:n}=await this.raceWithTimeout(this.loadLiveView(),nx.DYNAMIC_IMPORT_TIMEOUT_MS)),t=n;break;case"analytics":({default:r}=await this.raceWithTimeout(this.loadAnalytics(),nx.DYNAMIC_IMPORT_TIMEOUT_MS)),t=r;break;case"multimodal_v2":({Multimodal:s}=await this.raceWithTimeout(this.loadMultimodalV2(),nx.DYNAMIC_IMPORT_TIMEOUT_MS)),t=s;break;case"dummyModule":({default:o}=await this.raceWithTimeout(this.loadDummyModule(),nx.DYNAMIC_IMPORT_TIMEOUT_MS)),t=o;break;default:throw Error("Cannot load unknown module: "+e)}return t}constructor(){super(),this.registrations={},this.singletons={},this.moduleMap=new Map,this.reset()}}nx.DYNAMIC_IMPORT_TIMEOUT_MS=15e3;class nC extends g.A{emitActivity(e){this.tracker.afterInit(()=>{"viewed"===e.type&&this.viewedContent.has(e.trackingUuid)||("viewed"===e.type&&this.viewedContent.add(e.trackingUuid),this.channel.perform("record_content_activity",(0,d._)({},this.underscorePayload(e))),this.widget.serverLog({message:"Content activity emitted with type: "+e.type,fireAndForget:!0}))})}constructor(...e){super(...e),this.viewedContent=new Set,this.underscorePayload=e=>Object.fromEntries(Object.entries(e).map(e=>{let[t,i]=e;return[t.replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase(),i]}))}}let nT=class{new(){return new Date}now(){return Date.now()}};
3class nk{get persistedState(){let e=(0,G.LQ)(this.KEY);return e&&e.state&&Number.isInteger(e.expiresAt)&&e.expiresAt>Date.now()?e.state:(this.clearPersistedState(),null)}setPersistedState(e){(0,G.Fn)(this.KEY,{expiresAt:Date.now()+this.TTL,state:e})}updateStateAtKey(e,t){var i;this.setPersistedState((0,d._)({},null!=(i=this.persistedState)?i:{},{[e]:t}))}clearPersistedState(){(0,G.n9)(this.KEY)}constructor(){this.TTL=31536e7}}let nI={missing:"[â Not Detected]",success:"[â
Success]",error:"[â Error]"};class nF{get textOutput(){let e=[this.name];return this.steps.forEach(t=>{let i=this.eventsMap[t];i?e.push(nI[i.status]+" "+(i.message||nU(t,i.status))):e.push(nI.missing+" "+nU(t,"missing"))}),e.join("\n")}constructor(e){this.eventsMap=e}}class nO extends nF{constructor(...e){super(...e),this.name="Custom Form Experience",this.steps=["debug:formSubmitCapture","api:saveFormData","api:showFormExperience"]}}class nM extends nF{constructor(...e){super(...e),this.name="HubSpot Form Experience",this.steps=["widget:hasMeetingBookerExperienceBuilder","widget:hubspot:hbsptFound","debug:formSubmitCapture","widget:hubspot:onFormSubmit","visitor:setFormExperienceDataWithExpiry","widget:hubspot:onFormSubmitted","tracker:showExperienceForForm","widget:formExperienceDataFound"]}}class nR extends nF{constructor(...e){super(...e),this.name="HubSpot V4 Form Experience",this.steps=["widget:hasMeetingBookerExperienceBuilder","widget:hubspotV4:HubSpotFormsV4Found","widget:hubspotV4:initComplete","debug:formSubmitCapture","widget:hubspotV4:onSubmissionSuccess","visitor:setFormExperienceDataWithExpiry","tracker:showExperienceForForm","widget:formExperienceDataFound"]}}class nP extends nF{constructor(...e){super(...e),this.name="Marketo Form Experience",this.steps=["widget:hasMeetingBookerExperienceBuilder","widget:marketo:MktoForms2Found","widget:marketo:configuredFormFound","debug:formSubmitCapture","widget:marketo:onSubmit","visitor:setFormExperienceDataWithExpiry","widget:marketo:onSuccess","tracker:showExperienceForForm","widget:formExperienceDataFound"]}}class nD extends nF{constructor(...e){super(...e),this.name="Pardot Form Experience",this.steps=["api:initPardotForm","api:initPardotFormThankYou","api:saveFormData","api:parsePardotForm","api:parsePardotFormForLandingPage","visitor:setFormExperienceDataWithExpiry","api:showExperienceForForm"]}}var nL=i(8034).zh;let nN="[Qualified Debug]";class nj extends nk{set channel(e){this._channel=e}get channel(){if(this._channel)return this._channel;throw Error("Channel not set from upstream")}logEvent(e,t,i,n){if(this.isDebugging)try{console.log(nN,null!=n?n:nU(e,t),i);let r={timestamp:Date.now(),key:e,status:t,data:i,message:n};this.events.push(r),this.updateStateAtKey("events",this.events),this.eventsMap[e]=r}catch(e){console.error(nN,"Error logging event",e)}}initElements(){let e=document.createElement("dialog");e.id="qualified-debug-dialog",e.innerHTML="\n <div>Debug Output</div>\n <button id=archive-session>Archive Session</button>\n <pre></pre>\n <button id=close-debug>Close</button>\n <style>#qualified-debug-dialog::backdrop { background-color: #000a; }</style>\n ",Object.assign(e.style,{textAlign:"left"}),e.addEventListener("click",t=>{t.target.matches("#close-debug")&&e.close()}),e.addEventListener("click",t=>{t.target.matches("#archive-session")&&(this.channel.send({event:"archiveSession"}),e.close())}),document.body.appendChild(e);let t=document.createElement("button");t.textContent="Debug Output",Object.assign(t.style,{position:"fixed",bottom:"0",left:"0",zIndex:"2147483648",padding:"10px"}),t.addEventListener("click",()=>{e.querySelector("pre").textContent=this.flowOutput(),e.showModal()}),document.body.appendChild(t)}flowOutput(e){let t=this.flows.find(t=>t.name===e);return t?t.textOutput:this.flows.map(e=>e.textOutput).join("\n\n======\n\n")}constructor(){var e,t,i;if(super(),this.KEY="__q_local_form_debug",this.TTL=18e5,this.flows=[],this.events=[],this.eventsMap={},this.isDebugging=new URLSearchParams(document.location.search).has("q_debug")||!!(null==(t=this.persistedState)?void 0:t.isDebugging),this.updateStateAtKey("isDebugging",this.isDebugging),!this.isDebugging)return;this.flows=[new nO(this.eventsMap),new nP(this.eventsMap),new nM(this.eventsMap),new nR(this.eventsMap),new nD(this.eventsMap)],this.events=null!=(e=null==(i=this.persistedState)?void 0:i.events)?e:[],this.events.forEac
3h(e=>{this.eventsMap[e.key]=e}),nL("submit",()=>{this.logEvent("debug:formSubmitCapture","success")},{capture:!0}),(0,eI.I_)().then(()=>this.initElements())}}let nB={debug:{formSubmitCapture:{missing:'Form "submit" event was not detected',success:'Form "submit" event was detected'}},api:{identify:{missing:'"identify" was not called',success:'"identify" was called successfully'},initPardotForm:{missing:'"initPardotForm" was not called',success:'"initPardotForm" was called successfully'},initPardotFormThankYou:{missing:'"initPardotFormThankYou" was not called',success:'"initPardotFormThankYou" was called successfully'},pardotFormSubmitted:{missing:'"pardotFormSubmitted" was not called',success:'"pardotFormSubmitted" was called successfully'},parsePardotForm:{missing:'"parsePardotForm" was not called',success:'"parsePardotForm" was called successfully'},parsePardotFormForLandingPage:{missing:'"parsePardotFormForLandingPage" was not called',success:'"parsePardotFormForLandingPage" was called successfully'},registerForm:{missing:'"registerForm" was not called',success:'"registerForm" was called successfully'},saveFormData:{missing:'"saveFormData" was not called',success:'"saveFormData" was called successfully'},saveSmartFormData:{missing:'"saveSmartFormData" was not called',success:'"saveSmartFormData" was called successfully'},sendSmartFormData:{missing:'"sendSmartFormData" was not called',success:'"sendSmartFormData" was called successfully'},showExperience:{missing:'"showExperience" was not called',success:'"showExperience" was called successfully'},showExperienceForForm:{missing:'"showExperienceForForm" was not called',success:'"showExperienceForForm" was called successfully'},showForm:{missing:'"showForm" was not called',success:'"showForm" was called successfully'},showFormExperience:{missing:'"showFormExperience" was not called',success:'"showFormExperience" was called successfully'},submitEmbeddedForm:{missing:'"submitEmbeddedForm" was not called',success:'"submitEmbeddedForm" was called successfully'}},tracker:{showExperienceForForm:{missing:'"showExperienceForForm" was not called',success:'"showExperienceForForm" was called successfully'}},visitor:{setFormExperienceDataWithExpiry:{missing:'"setFormExperienceDataWithExpiry" was not called',success:'"setFormExperienceDataWithExpiry" was called successfully'}},widget:{initFormExperience:{missing:'"initFormExperience" was not called',success:'"initFormExperience" was called successfully'},hasMeetingBookerExperienceBuilder:{error:'"meeting_booker_experience_builder" flag is not enabled',success:'"meeting_booker_experience_builder" flag is enabled'},hasSmartForms:{error:'"smart_forms" flag is not enabled',success:'"smart_forms" flag is enabled'},formExperienceDataFound:{missing:"No form experience data was found from previous page.",success:"Form experience data was found from previous page. Triggering form experience.",error:"Error while finding form experience data from previous page."},hubspot:{hbsptFound:{error:'"window.hbspt" is undefined. This is only necessary when attempting to configure a HubSpot Smart Form. Otherwise, you can safely ignore this log.',success:'"window.hbspt" is defined. Initializing HubSpot Smart Form now.'},initHubspotFormsComplete:{missing:'HubSpot forms setup using "window.hbspt" did not complete.',success:'HubSpot forms setup using "window.hbspt" has completed.'},onFormSubmit:{missing:'"onFormSubmit" event was not detected',success:'"onFormSubmit" event was detected'},onFormSubmitted:{missing:'"onFormSubmitted" event was not detected',success:'"onFormSubmitted" event was detected'},window:{error:"Unable to access content window"}},hubspotV4:{HubSpotFormsV4Found:{error:'"window.HubSpotFormsV4" is undefined. This is only necessary when attempting to configure a HubSpot V4 Smart Form. Otherwise, you can safely ignore this log.',success:'"window.HubSpotFormsV4" is defined. Initializing HubSpot V4 Smart Form now.'},initComplete:{error:"HubSpot V4 forms setup did not complete.",success:"HubSpot V4 forms setup has completed."},onSubmissionSuccess:{error:"Error processing HubSpot V4 form submission.",success:'"hs-form-event:on-submission:success" event was processed successfully.'},pollTimeout:{error:'"window.HubSpotFormsV4" was not found after 30s of polling. The HubSpot V4 script may not be loading on this page.'},window:{error:"Unable to access content window for HubSpot V4"}},marketo:{MktoForms2Found:{error:'"window.MktoForms2" is undefined. This is only necessary when attempting to configure a Marketo Smart Form. Otherwise, you can safely ignore this log.',success:'"window.MktoForms2" is defined. Initializing Marketo Smart Forms n
3ow.'},configuredFormFound:{missing:"No configured Marketo form was found.",success:"Found Marketo form in configurations."},configuredFormSetup:{missing:"No Marketo form was set up.",success:"Marketo form has been set up."},initMarketoFormsComplete:{missing:'Marketo forms setup using "window.MktoForms" did not complete.',success:'Marketo forms setup using "window.MktoForms" has completed.'},onSubmit:{missing:'"mktoForm.onSubmit" was not called',success:'"mktoForm.onSubmit" was called successfully'},onSuccess:{missing:'"mktoForm.onSuccess" was not called',success:'"mktoForm.onSuccess" was called successfully'},showExperienceForForm:{missing:"Redirecting after Marketo form submission. Showing form experience after redirect.",success:"No redirection from Marketo form. Showing form experience."},redirectEvent:{missing:"Marketo form did not redirect.",success:"Marketo form is redirecting."}},qualifiedForms:{initQualifiedForms:{success:"Embedded Qualified Form custom element was registered",error:"Embedded Qualified Form custom element was not registered"}},multimodal:{gate:{success:"Checked multimodal gate conditions"},hostReady:{success:"Multimodal host created and shadow root attached"},shadowRegistered:{success:"Registered shadow root with stylesLoader"},globalStyleInjected:{success:"Injected global styles element into shadow root"},loadStart:{success:"Starting dynamic import for multimodal module"},loadDone:{success:"Dynamic import resolved for multimodal module"},loadError:{error:"Dynamic import failed for multimodal module"},initCalled:{success:"Called multimodal.init()"}}}};function nU(e,t){var i;return null!=(i=e.split(":").reduce((e,t)=>e[t],nB)[t])?i:"Undefined message for "+e+":"+t}class nz extends nk{setIsTracing(e,t){this.isTracing=e,this.traceValue=t,this.updateStateAtKey("isTracing",e),this.updateStateAtKey("traceValue",t)}constructor(...e){var t,i,n,r;super(...e),this.KEY="__q_local_trace",this.TTL=18e5,this.isTracing=null!=(t=null==(i=this.persistedState)?void 0:i.isTracing)&&t,this.traceValue=(null==(n=this.persistedState)?void 0:n.isTracing)?null==(r=this.persistedState)?void 0:r.traceValue:null}}let nq=class{get hostname(){return window.location.hostname}};var nH=i(4127);class nV extends g.A{createEmitter(e){return t=>{this.emitPageViewActivity({type:e,payload:t})}}emitPageViewActivity(e){let{type:t,payload:i}=e;this.hasPageViewActivityTracking&&this.tracker.afterInit(()=>{this.channel.perform("record_page_view_activity",(0,d._)({activity_type:t},this.underscorePayload(i))),this.widget.serverLog({message:"Page view activity emitted with type: "+t,fireAndForget:!0})})}constructor(e){var t;super(e),this.emitPersonalizationInView=this.createEmitter("in_view"),this.emitPersonalizationApplied=this.createEmitter("experiment_arm_applied"),this.emitPersonalizationFallback=this.createEmitter("experiment_arm_fallback"),this.emitPersonalizationClick=this.createEmitter("click"),this.emitOfferDismiss=this.createEmitter("offer_dismiss"),this.emitOfferClick=this.createEmitter("offer_click"),this.emitOfferLanded=this.createEmitter("offer_landed"),this.emitOfferShown=this.createEmitter("offer_shown"),this.emitPrivacyDisclosureShown=this.createEmitter("offer_privacy_disclosure_shown"),this.emitPrivacyDisclosureConsented=this.createEmitter("offer_privacy_disclosure_consented"),this.emitFormFill=this.createEmitter("form_fill"),this.underscorePayload=e=>Object.fromEntries(Object.entries(e).map(e=>{let[t,i]=e;return[t.replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase(),i]})),this.hasPageViewActivityTracking=null!=(t=this.config.hasPageViewActivityTracking)&&t}}var nW=i(8034).pS,nQ=i(8034).pP,nJ=i(8034).Kj,nK=i(8034).gj;
3class nG{start(){this.debugLog("starting"),this.observer.observe(document,{childList:!0,subtree:!0}),this.revertTimeoutHandle=nW(this.revert.bind(this),3e3)}stop(e){void 0===e&&(e=!1),this.debugLog("stopping"),this.observer.disconnect(),"number"==typeof this.requestAnimationFrameHandle&&nQ(this.requestAnimationFrameHandle),e&&nJ(this.revertTimeoutHandle)}revert(){this.debugLog("reverting"),"number"==typeof this.requestAnimationFrameHandle&&nQ(this.requestAnimationFrameHandle),this.manager.reset()}observeSelectors(e){for(let{target:t}of e){let{shouldProcess:e,selector:i}=this.shouldProcessElement(t);if(!e)continue;let n=this.manager.add(t,i);0===this.processElementsQueue.length&&(this.requestAnimationFrameHandle=nK(this.processElements.bind(this))),this.processElementsQueue.push(n),this.processedElements.add(n)}}shouldProcessElement(e){var t;if(!(e instanceof HTMLElement)||!e.matches(eM.XY)||this.processedElements.has(e))return{shouldProcess:!1};let i=null==(t=this.selectors.find(t=>{let{selector:i}=t;return e.matches(i)}))?void 0:t.selector;return i?(this.debugLog("found selector "+i),{shouldProcess:!0,selector:i}):{shouldProcess:!1}}processElements(){for(let e of this.processElementsQueue)this.manager.applyLoading(e,"icon");this.processElementsQueue=[]}debugLog(e,t){(0,eM.dI)("[personalization-observer] "+e,t)}constructor(e){this.selectors=e,this.processedElements=new Set,this.processElementsQueue=[],this.manager=new eD,this.observer=new MutationObserver(this.observeSelectors.bind(this))}}var nY=i(7288),n$=i(6731),nX=i(8034).Kj,nZ=i(8034).pS;class n0{emit(e){n$.qd.emitIncrement("widget_initialized",{status:e})}clearTimer(){null!==this.timeoutId&&(nX(this.timeoutId),this.timeoutId=null)}constructor(e=3e4){this.budgetMs=e,this.state="idle",this.timeoutId=null,this.start=()=>{this.clearTimer(),this.state="armed",this.timeoutId=nZ(()=>{this.timeoutId=null,"armed"===this.state&&(this.state="timedOut",this.emit("timeout"))},this.budgetMs)},this.resolveSuccess=()=>{"armed"===this.state?(this.clearTimer(),this.state="idle",this.emit("success")):"timedOut"===this.state&&(this.state="idle",this.emit("late"))},this.dispose=()=>{this.clearTimer(),this.state="idle"}}}class n1{dispose(){}notifyClientExperienceReady(e){}showLightboxLoading(){this.iframeManager.showLightboxLoading()}showMessengerLoading(){this.iframeManager.showMessengerLoading()}showInlineLoading(e){this.iframeManager.showInlineLoading(e)}closeLightbox(){this.iframeManager.closeLightbox()}openMessenger(){this.iframeManager.openMessenger()}setChatIsVisible(e){this.iframeManager.setChatIsVisible(e)}addMessengerEventsListener(e){this.iframeManager.addMessengerEventsListener(e)}get apMessagesCount(){return this.iframeManager.apMessagesCount}get autoRespondPounceCount(){return this.iframeManager.autoRespondPounceCount}get visitorResponded(){return this.iframeManager.visitorResponded}get userResponded(){return this.iframeManager.userResponded}get originalDocumentTitle(){return this.iframeManager.originalDocumentTitle}constructor(e){this.iframeManager=e}}let n2=["activeSessionId","promptAutoDismissed","scriptId","stateByScriptId"];var n3=i(8688),n4=i.n(n3);let n5={promptDismissed:!1},n8=class{get cookieDomain(){var e,t,i,n,r;if((null==(e=this.widget)?void 0:e.config.noCookieDomainTest)||/^[^a-z]+|localhost/.test(document.domain))return document.domain;let s=[],o=document.domain.split(".");if(null==(t=this.widget)||!t.config.exactMatchCookieDomains){for(let e=0;e<=o.length-2;e++)s.push(o.slice(o.length-2-e).join("."));for(let e of s)if(ez.set("__q_domainTest","1",{domain:e,sameSite:"lax",secure:null!=(r=this.widget)&&null!=(n=r.config.featureFlags)&&!!n.websiteUseSecureCookies||void 0}),"1"===ez.get("__q_domainTest"))return ez.remove("__q_domainTest",{domain:e}),e;null==(i=this.widget)||i.debugLog("[Qualified CookieVisitorState] invalid domain: "+document.domain)}}get isInitialized(){return!!this.get("uuid")}get attributes(){let e=ez.get(this.cookieName);return e?JSON.parse((0,eL.Ey)(e)):{}}get(e){return e in n5?e in this.attributes?this.attributes[e]:n5[e]:this.attributes[e]||null}has(e){return e in this.attributes}update(e){var t,i,n,r,s;if(!(null==(t=this.widget)?void 0:t.config.cookieExpiration))throw Error("Qualified: invali
3d cookie expiration");let o=this.attributes,a=Object.assign(o,e,(null==(i=this.widget)?void 0:i.config.exactMatchCookieDomains)?{}:{cookieDomain:o.cookieDomain||this.cookieDomain});delete a.sessionActiveAt,ez.set(this.cookieName,(0,eL.nk)(JSON.stringify(a)),{expires:this.widget.config.cookieExpiration,domain:a.cookieDomain,sameSite:"lax",secure:null!=(r=this.widget)&&null!=(n=r.config.featureFlags)&&!!n.websiteUseSecureCookies||void 0}),e.formExperienceData&&!n4()(this.attributes.formExperienceData,e.formExperienceData)&&(null==(s=this.widget)||s.debugLog("[Qualified] Failed to save formExperienceData to cookie: "+JSON.stringify(e.formExperienceData)))}delete(e){var t,i,n;if(!(null==(t=this.widget)?void 0:t.config.cookieExpiration))throw Error("Qualified: invalid cookie expiration");if(e in this.attributes){let t=(0,d._)({},this.attributes);delete t[e],ez.set(this.cookieName,(0,eL.nk)(JSON.stringify(t)),{expires:this.widget.config.cookieExpiration,domain:t.cookieDomain,sameSite:"lax",secure:null!=(n=this.widget)&&null!=(i=n.config.featureFlags)&&!!i.websiteUseSecureCookies||void 0})}}destroy(){let e=(0,m._p)(()=>this.attributes.cookieDomain)||this.cookieDomain;ez.remove(this.cookieName,{domain:e})}constructor(e,t){this.isPersisted=!0,this.widget=e,this.cookieName=t}},n6=class{get isInitialized(){return!!this.attributes.uuid}get(e){return this.attributes[e]}has(e){return e in this.attributes}update(e){this.attributes=(0,d._)({},this.attributes,e)}destroy(){this.attributes={}}constructor(){this.isPersisted=!1,this.attributes={}}};var n9=i(6100);function n7(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var re=i(3490),rt=i(8034).pS,ri=i(8034).Kj;let rn={promptDismissed:!1},rr=["__q_state_domainTest","__q_domainTest"];class rs{get isPersisted(){return"inMemory"!==this.storageType}set isPersisted(e){e!==this.isPersisted&&(e||(this.deleteAttributes(this.storageType),this.clearSyncCheck(),this.syncStatus="unknown",this.successfulSyncChecks=0,this.failedSyncChecks=0),this.storageType=e?"cookie":"inMemory",this.syncAttributes())}get isInitialized(){return!!this._attributes.uuid}get attributes(){return this._attributes}get(e){return e in rn?e in this._attributes?this._attributes[e]:rn[e]:this._attributes[e]||null}has(e){return e in this._attributes}update(e){this.setAttributes("inMemory",this.getUpdatedAttributes(e)),this.syncAttributes()}delete(e){if(e in this._attributes){var t;let i=this._attributes,{[e]:n}=i,r=(0,n9._)(i,[(t=function(e,t){if("object"!==n7(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==n7(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string"),"symbol"===n7(t)?t:String(t))]);this.setAttributes("inMemory",r),this.syncAttributes()}}dispose(){this.clearSyncCheck()}destroy(){this.deleteAttributes("inMemory"),this.syncAttributes(),this.dispose()}copyFrom(e){this.update(e.attributes)}getInitialPersistedStorageType(){return rs.ALLOW_LOCAL_STORAGE_FALLBACK&&this.isLocalStorageAvailable()&&localStorage.getItem(this.name)?"localStorage":"cookie"}getUpdatedAttributes(e){var t;let i=(0,d._)({},this._attributes,e);return"cookie"!==this.storageType||(null==(t=this.supervisor)?void 0:t.config.exactMatchCookieDomains)||(i.cookieDomain=this._attributes.cookieDomain||this.getCookieDomain()),"sessionActiveAt"in i&&delete i.sessionActiveAt,i}getAttributes(e){try{switch(e){case"inMemory":return this._attributes;case"cookie":{let e=ez.get(this.name);return e?JSON.parse((0,eL.Ey)(e)):{}}case"localStorage":{let e=localStorage.getItem(this.name);return e?JSON.parse((0,eL.Ey)(e)):{}}default:(0,re.d)(e)}}catch(e){return this.recordError(e),{}}}setAttributes(e,t){if(0===Object.keys(t).length)return void this.deleteAttributes(e);try{switch(e){case"inMemory":this._attributes=JSON.parse(JSON.stringify(t));break;case"cookie":var i,n;ez.set(this.name,(0,eL.nk)(JSON.stringify(t)),{expires:this.supervisor.config.cookieExpiration,domain:"string"==typeof t.cookieDomain?t.cookieDomain:void 0,sameSite:"lax",secure:null!=(n=this.supervisor)&&null!=(i=n.config.featureFlags)&&!!i.websiteUseSecureCookies||void 0});break;case"localStorage":localStorage.setItem(this.name,(0,eL.nk)(JSON.stringify(t)));break;default:(0,re.d)(e)}}catch(e){this.recordError(e)}}deleteAttributes(e){try{switch(e){case"inMemory":this._attributes={};break;case"cookie":ez.remove(this.name,{domain:this.getCookieDomain()});break;case"localStorage":localStorage.removeItem(this.name);break;default:(0,re.d)(e)}}catch(e){this.recordError(e)}}syncAttributes(){var e;if(this.isPersisted){if("cookie"===this.storageType&&!(null==(e=this.supervisor)?void 0:e.config.cookieExpiration)){this.recordError("Qualified: invali
3d cookie expiration"),this.failedSyncChecks=3,this.handleSyncFailure();return}if("localStorage"===this.storageType&&!this.isLocalStorageAvailable()){this.recordError("Qualified: local storage not available"),this.failedSyncChecks=3,this.handleSyncFailure();return}this.setAttributes(this.storageType,this.getAttributes("inMemory")),this.enqueueSyncCheck()}}enqueueSyncCheck(){"unknown"===this.syncStatus&&(this.clearSyncCheck(),this.syncCheckHandle=rt(()=>this.checkSynced(),1e3))}clearSyncCheck(){null!==this.syncCheckHandle&&(ri(this.syncCheckHandle),this.syncCheckHandle=null)}checkSynced(){(this.syncCheckHandle=null,n4()(this.getAttributes("inMemory"),this.getAttributes(this.storageType)))?this.handleSyncSuccess():this.handleSyncFailure()}handleSyncSuccess(){this.failedSyncChecks=0,++this.successfulSyncChecks>=10&&this.reportSyncSuccess()}reportSyncSuccess(){this.syncStatus="success",this.log("Sync successful")}handleSyncFailure(){if(this.successfulSyncChecks=0,this.setAttributes("inMemory",(0,d._)({},this._attributes,{cookieDomain:void 0})),++this.failedSyncChecks<3)return void this.syncAttributes();if(rs.ALLOW_LOCAL_STORAGE_FALLBACK&&"cookie"===this.storageType&&this.isLocalStorageAvailable()){this.log("Failed to use cookies to persist visitor state, using local storage instead"),this.failedSyncChecks=0,this.storageType="localStorage",this.deleteAttributes("cookie"),this.syncAttributes();return}this.reportSyncFailure()}reportSyncFailure(){this.syncStatus="failed",this.log("Failed to use "+this.storageType+" to persist visitor state")}getCookieDomain(){try{var e,t,i,n;if((null==(e=this.supervisor)?void 0:e.config.noCookieDomainTest)||/^[^a-z]+|localhost/.test(document.domain))return document.domain;let r=[],s=document.domain.split(".");if(null==(t=this.supervisor)?void 0:t.config.exactMatchCookieDomains)return;for(let e=0;e<=s.length-2;e++)r.push(s.slice(s.length-2-e).join("."));for(let e of r)for(let t of rr)if(ez.set(t,"1",{domain:e,sameSite:"lax",secure:null!=(n=this.supervisor)&&null!=(i=n.config.featureFlags)&&!!i.websiteUseSecureCookies||void 0}),"1"===ez.get(t))return ez.remove(t,{domain:e}),e;(0,eM.Bb)()&&console.log("[Qualified VisitorState] invalid domain: "+document.domain);return}catch(e){this.recordError(e);return}}isLocalStorageAvailable(){var e;return null!=(e=(0,m._p)(()=>!!localStorage.getItem(this.name)||!0))&&e}recordError(e){var t;"string"==typeof e&&(e=Error(e)),null==(t=(0,tu.Nj)())||t.captureException(e)}log(e){var t;this.storageType,this.isLocalStorageAvailable();let i={domain:(0,m._p)(()=>document.domain),href:(0,m._p)(()=>document.location.href),persistence_storage_type:this.storageType,is_local_storage_available:String(this.isLocalStorageAvailable())},n="[Qualified VisitorState] "+e;null==(t=this.supervisor)||t.serverLog({message:n,extra:i}),(0,eM.Bb)()&&console.log(n,i)}constructor(e,t,i){this.supervisor=e,this.name=t,this._attributes={},this.storageType="inMemory",this.syncCheckHandle=null,this.successfulSyncChecks=0,this.failedSyncChecks=0,this.syncStatus="unknown",i&&(this.storageType=this.getInitialPersistedStorageType(),this.setAttributes("inMemory",this.getAttributes(this.storageType)),this.syncAttributes())}}rs.ALLOW_LOCAL_STORAGE_FALLBACK=!1;let ro=["messengerExpanded","promptDismissed","conversationId","forceHideConversationId"],ra="__q_state_",rl="__q_state";class rc extends g.A{static getUuid(e,t){if(void 0===t&&(t=!1),t){let t=new rs(null,rl,!0);try{let i=t.get("uuid");if(i)return i;let n=new rs(null,ra+e,!0);try{return n.get("uuid")}finally{n.dispose()}}finally{t.dispose()}}return new n8(null,rl).get("uuid")||new n8(null,ra+e).get("uuid")}async reportCookieError(e){let t={domain:document.domain,href:document.location.href};fetch(this.widget.resourceUrl("visitor_events"),{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({type:"both",event:e,extra:t})})}get uuid(){let e=this.state.get("uuid");if(e)return e;throw this.reportCookieError("Invalid visitor state, unable to read uuid."),Error("Qualified: invalid visitor state")}get botApiName(){return this.state.get("botApiName")}get formData(){return this.state.get("formData")}get hasFormData(){return void 0!==this.formData}get smartFormData(){return this.state.get("smartFormData")}get messengerState(){return ro.reduce((e,t)=>
3this.isAttributeEnabled(t)?(0,d._)({},e,{[t]:this.state.get(t)}):e,{})}set messengerExpanded(e){this.state.update({messengerExpanded:e})}set promptDismissed(e){this.state.update({promptDismissed:null==e||e})}set conversationId(e){this.state.update({conversationId:e})}set forceHideConversationId(e){this.state.update({forceHideConversationId:e})}set isDocked(e){this.state.update({d:+!!e})}get hasPendingMultimodalRedirectDismissal(){let e=this.state.get("mrd");return"number"==typeof e&&(!(e<this.widget.dateProvider.new().getTime())||(this.clearMultimodalRedirectDismissal(),!1))}setMultimodalRedirectDismissalWithExpiry(e){void 0===e&&(e=3e4),this.state.update({mrd:this.widget.dateProvider.new().getTime()+e})}clearMultimodalRedirectDismissal(){this.state.update({mrd:void 0})}setFormData(e){ec.isInDebugMode()&&(e.email?ec.setApiMessage("saveFormData","Success","âsaveFormDataâ was called successfully."):ec.setApiMessage("saveFormData","Error","âsaveFormDataâ was called but no email value was provided.")),this.state.update({formData:{fieldValues:e}})}setSmartFormData(e,t){var i,n;ec.isInDebugMode()&&(e.email?ec.setApiMessage("saveSmartFormData","Success","âsaveSmartFormDataâ was called successfully for "+t+" with the following field values: "+JSON.stringify(e)+"."):ec.setApiMessage("saveSmartFormData","Error","âsaveSmartFormDataâ was called but no email value was provided.")),null==(n=this.widget.multimodal)||null==(i=n.rootStore)||i.uiStore.primeRedirectDismissedUIState(),this.state.update({smartFormData:{fieldValues:e,botApiName:t}})}clearFormData(){this.state.update({formData:void 0})}clearSmartFormData(){this.state.update({smartFormData:void 0})}get lastValidRebroadcastTime(){return this.state.get("lastValidRebroadcastTime")}setLastValidRebroadcastTime(e){this.state.update({lastValidRebroadcastTime:e})}get qualifiedRedirected(){return this.state.get("qualifiedRedirected")}setQualifiedRedirect(e){this.state.update({qualifiedRedirected:e});let t=this.config.hasWebsiteCloseChatOnMobileRedirect;if(!e||!t)return;let i=this.state.get("conversationId");i&&ic().any&&this.state.update({forceHideConversationId:i})}get formExperienceData(){let e=this.state.get("formExperienceData");return e?e.expiry&&this.widget.dateProvider.new().getTime()>e.expiry?(this.clearFormExperienceData(),null):e:null}setFormExperienceData(e){this.state.update({formExperienceData:e})}setFormExperienceDataWithExpiry(e,t){var i,n;void 0===t&&(t=6e4),null==(n=this.widget.multimodal)||null==(i=n.rootStore)||i.uiStore.primeRedirectDismissedUIState(),this.setFormExperienceData((0,d._)({},e,{expiry:this.widget.dateProvider.new().getTime()+t})),this.widget.debugState.logEvent("visitor:setFormExperienceDataWithExpiry","success",{})}clearFormExperienceData(){this.state.update({formExperienceData:void 0})}updatePersistence(e){if(this.state instanceof rs){this.state.isPersisted=e;return}if(this.state.isPersisted===e)return;let t=this.state;!t.isPersisted&&e?this.state=new n8(this.widget,ra+this.config.token):this.state=new n6,this.state.update(t.attributes),t.destroy()}reset(){this.state.destroy()}refreshPersistedState(){var e;if(!this.state.isPersisted)return;let t=(null==(e=this.config.featureFlags)?void 0:e.websiteVisitorStateV2)?this.createState():this.createOldState();this.state.update(t.attributes),t instanceof rs&&t.dispose()}resourceUrl(e,t){return this.widget.resourceUrl(e,(0,d._)({uuid:this.uuid},t))}clearDeprecatedAttrs(){try{n2.forEach(e=>{this.state.isPersisted&&this.state.has(e)&&this.state.delete(e)})}catch(e){try{this.widget.serverLog({message:"Failed to clear deprecated attrs: "+e,type:"sentry"})}catch(e){console.warn("Failed to call serverLog in clearDeprecatedAttrs:",e)}}}createOldState(){let e;if(this.widget.isMeetingLink||this.config.requiresCookieConsent&&!this.config.hasCookieConsent)e=new n6;else if(!(e=new n8(this.widget,ra+this.config.token)).isInitialized){let t=new n8(this.widget,rl);t.isInitialized&&(e.update(t.attributes),t.destroy())}return e.isInitialized||e.update({uuid:(0,ed.A)()}),e}createState(){let e=ra+this.config.token,t=!this.widget.isMeetingLink&&!(this.config.requiresCookieConsent&&!this.config.hasCookieConsent),i=new rs(this.widget,e,t);if(!i.isInitialized&&t){let e=new rs(this.widget,rl,!0);e.isInitialized&&(i.copyFrom(e),e.destroy())}return i.isInitialized||i.update({uuid:(0,ed.A)()}),i}isAttributeEnabled(e){return"forceHideConversationId"!==e||!!ic().any&&(!!this.config.hasWebsiteCloseChatOnMobileRedirect||this.state.has("forceHideConversationId"))}constructor(e){var t;super(e),this.state=(null==(t=this.config.featureFlags)?void 0:t.websiteVisitorStateV2)?this.createState():this.createOldState(),this.clearDeprecatedAttrs()}}function ru(e){return null!=e}var rd=i(8034).kZ,rh=i(8034).zh,rp=i(8034).wm,rm=i(8034).pS,rf=i(8034).LK,rg=i(8034).Kj;
3let rv=new Set(["localhost","127.0.0.1","::1","[::1]"]),ry=["apiReady","sessionCreated","widgetInitialized"];class rb extends(0,eO._)((0,eF.j)(Object)){static createContainer(){let e=new nx;return e.register1("widget",this),e.register1("channel",nb),e.register1("tracker",tk),e.register1("apiHandler",tR),e.register1("dateProvider",nT),e.register1("locationProvider",nq),e.register1("pageViewActivityEmitter",nV),e.register1("contentActivityEmitter",nC),e.set("heartbeatManager",{blocked:!1}),e.register("visitor",rc),e}static start(e){e&&(this.environmentConfig=e);let t=this.createContainer();return null==window.__test_container_is_created||window.__test_container_is_created.call(window,t),t.resolve("widget",this.environmentConfig),null==window.__test_widget_is_created||window.__test_widget_is_created.call(window,t),window[window.QualifiedObject]}get visitor(){if(this._visitor)return this._visitor;throw Error("Visitor not initialized on Widget")}get channel(){if(this._channel)return this._channel;throw Error("Channel not initialized on Widget")}get tracker(){if(this._tracker)return this._tracker;throw Error("Tracker not initialized on Widget")}get iframeManager(){if(this._iframeManager)return this._iframeManager;throw Error("IframeManager not initialized on Widget")}createExperienceAdapter(){return new n_(new n1(this._iframeManager),new ny.Q(void 0,e=>this.tracker.markClientExperienceReady(e)))}bootstrapsWhenIframed(){return!1}get offerScript(){return this._offerScript}get multimodal(){return this._multimodal}get pageViewActivityEmitter(){if(this._pageViewActivityEmitter)return this._pageViewActivityEmitter;throw Error("PageViewActivityEmitter not initialized on Widget")}get contentActivityEmitter(){var e;return null!=(e=this._contentActivityEmitter)?e:this._contentActivityEmitter=this.container.resolve("contentActivityEmitter")}resourceUrl(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return nY.aF.resourceUrl(...t)}async isBlacklisted(){var e,t;if(null==(e=this.config.blacklistPaths)?void 0:e.find(e=>document.location.pathname.match("^"+e+"$"))){let e=this.container.classFor("visitor").getUuid(this.config.token,null==(t=this.config.featureFlags)?void 0:t.websiteVisitorStateV2);return!e||!!await fetch(this.resourceUrl("state/blacklisted",{uuid:e})).then(e=>e.json())&&(this.container.resolve("visitor").reset(),!0)}}isAllowedOrigin(e){var t;let i=!1;return(null==(t=this.config.domains)?void 0:t.length)===0?i=!0:(0,o._F)(this.config.domains||[],e)&&(i=!0),i?this.debugLog("url "+e+" passed isDomainMatch check using "+this.config.domains):this.debugLog("url "+e+" didn't pass isDomainMatch check using "+this.config.domains),i}async init(e,t){var i,n,r,o,a;let l;void 0===t&&(t={}),null==(a=window.qualified)||null==(o=a.docking)||null==(r=o.setAbortStage)||r.call(o,"socket_connection");let c=(0,s.jM)();if(this.isDebug=new URLSearchParams(document.location.search).has("q_debug"),this.widgetInitializedAt=performance.now(),nY.aF.setConfig(this.config),nY.aF.setWidgetId(this.widgetId||""),1!==this.readyState&&e!==this.config.token){s.qd.multimodal.messengerLoad.skip(),this.onTeardown()("initialize",e,t);return}if(this.loaded||!e)return this.abortInit();this.config.token=e;let u=(0,s.$P)();if(s.qd.multimodal.messengerLoad.arm(),this.widget.logTiming("Time to init widget","widget_time_to_init_ms",this.widgetInitializedAt,{consumer:u}),this.widget.logTiming("Time to start downloading script","script_time_to_start_ms",null!=(i=(0,s.sJ)())?i:NaN,{consumer:u}),this.config.host&&!function(e){try{return rv.has(new URL(e).hostname)}catch(t){return e.includes("localhost")}}(this.config.host)&&tu.sQ.setProxyUrl(this.resourceUrl("sentry/proxy")),this.syncInit(t),await s.Y9.startActiveSpanAsync("Await DOMReady",{},c,async e=>{await(0,eI.I_)(),e.end()}),this.isIframed||this.widget.logTiming("Time to DOMReady","widget_time_to_domready_ms"),this.isDisposed)return;this.lastClientActivityAt||this.registerClientActivity();let h=!0===t.appexchange||this.appExchangeEnabled;if(!t.isComplete||h){let e=await fetch(this.resourceUrl("configuration",h?{appexchange:!0}:void 0)),i=await e.json();if(this.isDisposed)return;t=(0,d._)({noCookieDomainTest:!0},t,i)}if(this.config=(0,d._)({},this.config,t),this.config.requiresCookieConsent=void 0!==this.config.hasCookieConsent,nY.aF.setConfig(this.config),this.isIframed&&!this.bootstrapsWhenIframed()){this.messengerUptime.dispose(),s.qd.multimodal.messengerLoa
3d.skip();let{hasQueuedEarlyIframeLocalApiCalls:e,markIframeLocalApiReady:t}=this.apiHandler;"function"==typeof e&&"function"==typeof t&&e.call(this.apiHandler)?t.call(this.apiHandler):this.apiHandler.markReady();let i=new URLSearchParams(document.location.search);if(i.has("q_trace")){let e=i.get("q_trace");this.traceState.setIsTracing(!0,e)}!ec.isInDebugMode()&&this.isDebug&&ec.initializeDebugMode(),this.readyState=3;try{this.cursorPositionProvider=this.container.resolve("cursorPositionProvider")}catch(e){}return}if(!this.config.requiresCookieConsent&&await this.isBlacklisted())return this.abortInit();if(this.isDisposed)return;this.timezone=function(){try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3)return e}catch(e){}}(),this.resetWidgetId(),nY.aF.setWidgetId(this.widgetId||""),this._visitor=this.container.resolve("visitor"),nY.aF.setVisitorId(this.visitor.uuid),(0,tu.XM)({visitorUuid:this.visitor.uuid,widgetUuid:null!=(n=this.widgetId)?n:void 0});let p=new URLSearchParams(document.location.search);if(p.has("q_trace")){let e=p.get("q_trace");this.traceState.setIsTracing(!0,e)}if(!ec.isInDebugMode()&&this.isDebug&&ec.initializeDebugMode(),this.channel.on("refresh",this.onRefresh),this.channel.on("widgetLongTasks",e=>{this.recordWidgetLongTaskSpans("Widget Long Task",JSON.parse(e))}),this.channel.on("startLightboxLoadingSpinner",()=>{tp.finishWaitForLightboxLoadingSpinnerSpan()}),this.widget.logTiming("Time to visitor ready","widget_time_to_visitor_ready_ms"),await s.Y9.startActiveSpanAsync("Connect Cable",{},c,async e=>{l=await this.connectChannel(!1),e.end()}),!this.isDisposed&&(2===l&&await s.Y9.startActiveSpanAsync("Delay Init",{},c,async e=>{await this.delayInit(),e.end()}),!this.isDisposed)){if(1!==l&&await s.Y9.startActiveSpanAsync("Connect Cable",{},c,async e=>{l=await this.connectChannel(!1),e.end()}),!this.isDisposed){if(1!==l)return this.abortInit();this.isDisposed||(this.widget.logTiming("Time to cable connected","widget_time_to_cable_connected_ms"),this.initSpan=s.Y9.startSpan("Init Widget",{},eE.initSpan),await(0,s.fR)(c,this.initSpan,async()=>{var e,t,i;let n=(0,s.jM)();this._pageViewActivityEmitter=this.container.resolve("pageViewActivityEmitter"),this._tracker=this.container.resolve("tracker");try{this._iframeManager=this.container.resolve("iframeManager")}catch(e){}this.experienceAdapter=this.createExperienceAdapter(),this.apiHandler.markReady(),this.emitWidgetEvent("apiReady");let r=this.visitor.formExperienceData;if(this.tracker.config.hasSmartForms&&r){let e={formType:r.formType,formId:r.formData.formId,formActionUrl:r.formData.formActionUrl},n=this.tracker.config.formBotTriggers[r.formType];r.formData.formActionUrl&&n&&!n.includes(r.formData.formActionUrl.replace(/^https?:\/\//,""))?this.debugState.logEvent("widget:formExperienceDataFound","error",e,'Form experience data was found from previous page but "formData.formActionUrl" is not in the list of configured triggers'):(this.debugState.logEvent("widget:formExperienceDataFound","success",e),this.tracker.setInitializationParams({smart_form:{form_type:r.formType,field_values:{email:r.formData.formEmail},form_data:{raw:(0,d._)({},r.formData),form_id:r.formData.formId,form_action_url:null==(t=r.formData.formActionUrl)?void 0:t.replace(/^https?:\/\//,""),form_email:r.formData.formEmail}}}),tp.startSubmitFormSpan({"form.type":r.formType,"form.with_redirect":!0}),(null==(i=this.config.featureFlags)?void 0:i.bookerJourneySLI)&&(0,eu.Xk)("form:"+r.formType),this.experienceAdapter.showLightboxLoading(),this.visitor.clearFormExperienceData())}s.Y9.startActiveSpanAsync("Init tracker",{},n,async e=>{await this.tracker.init(),e.end()});try{this.debugState.logEvent("widget:initFormExperience","success"),this.initFormExperience()}catch(e){this.debugState.logEvent("widget:initFormExperience","error",{error:e})}(0,f.RC)("formCapture")&&this.tracker.config.hasWebsiteEmbeddedForms&&this.initQualifiedForms(),this.exposeDebugging();let o=s.Y9.startSpan("Init Iframe",{},this.initSpan);this.widget.logTiming("Time to pre-multimodal init","widget_time_to_pre_multimodal_ms");let a=performance.now(),l=(e,t,i)=>Promise.resolve(e).finally(()=>this.widget.logTiming(t,i,performance.now()-a)),c=[...this._iframeManager?[l(this._iframeManager.init(),"Iframe init time","widget_iframe_init_ms")]:[],l(this.initializeAnalytics(),"Analytics init time","widget_analytics_init_ms"),l(this.initializeMultimodalV2(),"Multimodal v2 init time","widget_multimodal_init_ms")];await Promise.all(c),o.end(),this.logTiming("Time to load chunked assets","widget_chunked_assets_load_ms",performance.now()-a),this.isDisposed||(this.channel.startEmitter(),this.widget.logTiming("Time to channel emitter started","widget_time_to_emitter_started_ms"),await this.recordPerformanceEntries(o),this.readyState=3,this.emitWidgetEvent("widgetInitialized"),(null==(e=this.config.featureFlags)?void 0:e.widgetUseShadowDynamicImport)&&await this.initializeDummyModule(),this.trackVisitedContentActivity())}))}}}syncInit(e){var t;this.loaded=!0,this.readyState=2;let i=(0,ty.dc)(window.location.href),n=null==(t=e.experimentSelectors)?void 0:t.filter(e=>{let{url:t}=e;return(0,ty.dM)(i,(0,ty.dc)(t),t.endsWith("*"))});n&&n.length>0&&(this.personalizationObserver=new nG(n),this.personalizationObserver.start()),this._channel=this.container.resolve("channel"),this.debugState.channel=this._channel,this.initTelemetry()}debugLog(e,t,i){void 0===t&&(t="info"),void 0===i&&(i={});try{if(this.isDebug){let n=Object.keys(i).length>0?"["+Object.entries(i).map(e=>{let[t,i]=e;return t+"="+i}).join(" ")+"] ":"";switch(t){case"info":console.log(""+n+e);break;case"error":console.error(""+n+e);break;case"warn":console.warn(""+n+e)}}}catch(e){console.error(e)}}serverLog(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];(0,eu.pZ)(t[0]),nY.aF.serverLog(...t)}async delayInit(){this.messengerUptime.dispose();let e=new Promise(e=>{let t=()=>{rd("scroll",t),rd("mousemove",t),e(!0)};rh("scroll",t),rh("mousemove",t)});await(0,eN.cb)(1e4),await e,this.awaitedDelay=!0}async connectChannel(e){try{await this.channel.connect()}catch(s){var t,i,n,r;switch(s){case"clear_cookies":return this.visitor.reset(),this.onRefresh(),0;
3case"invalid_uuid":return e||this.visitor.reset(),0;case"delay_connect":return null==(i=window.qualified)||null==(t=i.docking)||t.cancelAbort(),2;case"unauthorized":return null==(r=window.qualified)||null==(n=r.docking)||n.cancelAbort(),0;default:throw s}}return 1}async initializeAnalytics(){try{if(this.isDisposed)return;this.analytics=await this.loadAnalytics(),this.analytics.init()}catch(i){var e;let t=Error("Failed to initialize analytics with error: "+(i instanceof Error?i.message:String(i)));null==(e=(0,tu.Nj)())||e.captureException(t)}}async initializeOffers(){try{if(this._offerScript)return;this._offerScript=await this.loadOfferScript()}catch(i){var e;let t=Error("Failed to initialize offers with error: "+(i instanceof Error?i.message:String(i)));null==(e=(0,tu.Nj)())||e.captureException(t)}}async initializePageMirror(){try{if(this.pageMirror)return;let e=await this.loadPageMirrorFactory();this.pageMirror=e.create()}catch(i){var e;let t=Error("Failed to initialize page mirror with error: "+(i instanceof Error?i.message:String(i)));null==(e=(0,tu.Nj)())||e.captureException(t)}}async initializeMultimodalV2(){var e,t,i,n,r,s,o;null==(i=window.qualified)||null==(t=i.docking)||null==(e=t.setAbortStage)||e.call(t,"init_multimodal");try{if(this.isDisposed)return void this.multimodalReady.resolve(null);if(nH.W.preload(this.config),this._multimodal=await this.loadMultimodalV2(),this.isDisposed){this._multimodal.tryDispose(),this.multimodalReady.resolve(null);return}this._multimodal.init(),this.multimodalReady.resolve(this._multimodal),this.bindMultimodalEventsBridge()}catch(e){if(null==(r=(0,tu.Nj)({project:"multimodal"}))||r.captureException(e),(null==(s=this.config.featureFlags)?void 0:s.piperXAgent)&&this.serverLog({message:"multimodal_client_error",extra:{method:"inc"}}),(0,im.$D)(null!=(n=this.config.featureFlags)?n:{})){let t=e instanceof Error?e.message:String(e);null==(o=(0,tu.Nj)({project:"multimodal"}))||o.captureException(Error("inline_meeting_booker: multimodal_v2 failed to load; no booking UI rendered ("+t+")"))}this.multimodalReady.reject(e)}}async initializeDummyModule(){try{(await this.loadDummyModule()).init()}catch(i){var e;let t=Error("Failed to initialize dummy module with error: "+(i instanceof Error?i.message:String(i)));null==(e=(0,tu.Nj)())||e.captureException(t)}}async loadAnalytics(){return this.container.resolve("analytics")}async loadOfferScript(){return this.container.resolve("offerScript")}async loadPageMirrorFactory(){return this.container.resolve("pageMirrorFactory")}async loadMultimodalV2(){return this.container.resolve("multimodal_v2")}async loadDummyModule(){return this.container.load("dummyModule")}get isMeetingLink(){return window.location.origin===this.config.meetingLinkHost}get meetingLinkToken(){if(!this.isMeetingLink)return;let e=window.location.pathname.replace(/^\/+|\/+$/g,"").split("-");return e[e.length-1]}get connectionParams(){var e;let t={wv:this.config.version||"",token:this.config.token||"",vu:this.visitor.uuid,wu:this.widgetId,ca:this.lastClientActivityAt,tz:this.timezone,bis:function(){try{Intl}catch(e){return 0}try{Intl.DateTimeFormat()}catch(e){return 1}try{Intl.DateTimeFormat().resolvedOptions()}catch(e){return 2}try{Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return 3}let e=Intl.DateTimeFormat().resolvedOptions().timeZone;return e&&e.length>3?5:4}(),referrer:document.referrer,pv:+!!(0,eI.n)(),fv:this.config.frontendVersion||"",bv:(0,m._p)(()=>"8366c583dfbdfe6932b8088234f05afe0c5f4e54")||"",iml:this.isMeetingLink,bl:(null==(e=navigator)?void 0:e.language)||null},i=new URLSearchParams(document.location.search),n=i.get("q_ip");return n&&(t.demo_ip=n),i.get("q_debug_gpt")&&(t.debug_gpt=!0),this.traceState.isTracing&&(t.q_trace=this.traceState.traceValue),this.awaitedDelay&&(t.ad=1),this.appExchangeEnabled&&(t.hosted=!0,this.config.appexchangeId&&(t.appxid=this.config.appexchangeId)),t}get appExchangeEnabled(){return!0===this.config.appexchange}exposeDebugging(){Object.assign(window[window.QualifiedObject]||{},{widget:this,visitor:this.visitor,tracker:this.tracker,container:this.container})}abortInit(){this.messengerUptime.dispose(),this.readyState=4}cleanup(){var e,t,i,n,r,s,o,a,l,c,u,d,h,p,m,f,g,v,y,b;this.messengerUptime.dispose(),null==(t=this.experienceAdapter)||null==(e=t.dispose)||e.call(t),null==(n=this._iframeManager)||null==(i=n.tryDispose)||i.call(n),null==(s=this._multimodal)||null==(r=s.tryDispose)||r.call(s),null==(a=this._tracker)||null==(o=a.tryDispose)||o.call(a),this.pageMirror&&"tryDispose"in this.pageMirror&&this.pageMirror.tryDispose(),null==this.apiHandler.tryDispose||this.apiHandler.tryDispose.call(this.apiHandler),null==(c=this._channel)||null==(l=c.tryDispose)||l.call(c),null==(d=this.analytics)||null==(u=d.tryDispose)||u.call(d),null==(p=this._visitor)||null==(h=p.tryDispose)||h.call(p),null==(f=this._offerScript)||null==(m
3=f.tryDispose)||m.call(f),null==(v=this._pageViewActivityEmitter)||null==(g=v.tryDispose)||g.call(v),null==(b=this.cursorPositionProvider)||null==(y=b.tryDispose)||y.call(b),this.hubspotFormSubmitListenerDisposers.forEach(e=>e()),this.hubspotFormSubmitListenerDisposers=[],this.clearProviderCorrelationState(),this.hubspotV4PollIds.forEach(e=>rp(e)),this.hubspotV4PollIds=[],null==this.marketoFormBeforeUnloadDisposer||this.marketoFormBeforeUnloadDisposer.call(this),null==this.marketoFormPageHideDisposer||this.marketoFormPageHideDisposer.call(this),this.container.tryDispose(),this.loaded=!1}recordInitTelemetry(){var e;null==(e=this.initSpan)||e.end(),eE.endBootstrap()}initTelemetry(){let e;this._channel&&(this.messengerUptime.start(),this.channel.once("initTrackerCreatePageView",()=>e=s.Y9.startSpan("Select Bot",{},this.initSpan)),this.channel.once("initState",()=>{this.messengerUptime.resolveSuccess(),e&&e.end(),this.recordInitTelemetry()}))}initFormExperience(){var e,t,i;if(!(0,f.RC)("formCapture"))return;if(!this.tracker.config.hasSmartForms)return void this.debugState.logEvent("widget:hasSmartForms","error");if(this.debugState.logEvent("widget:hasSmartForms","success"),ec.isInDebugMode())try{let e,n,r,s,o;i=t=this.config.host||"",(e=document.createElement("img")).src=""+i+$,Object.assign(e.style,ea),n=document.createElement("div"),Object.assign(n.style,er),r=document.createElement("img"),Object.assign(r.style,eo),r.src=""+t+Y,r.addEventListener("click",()=>{n.remove(),(0,G.C6)(ee,!1),ec.exitDebugMode()}),s=document.createElement("div"),Object.assign(s.style,es),s.innerText="Submit a form to test your experience",(o=document.createElement("div")).style.display="flex",o.append(e),o.append(s),o.append(r),n.append(o),X("submit",()=>{el(n,s,r),(0,G.C6)(ee,!0)}),(0,G.yw)(ee)&&el(n,s,r),document.body.appendChild(n)}catch(e){console.warn("Error showing debug banner!")}if(void 0!==window.MktoForms2)this.debugState.logEvent("widget:marketo:MktoForms2Found","success"),this.initMarketoForms();else if(Object.hasOwn(window,"MktoForms2"))window.__qualifiedMarketoTarget=this;else{let e;this.debugState.logEvent("widget:marketo:MktoForms2Found","error"),window.__qualifiedMarketoTarget=this,Object.defineProperty(window,"MktoForms2",{get:()=>e,set(t){e=t;let i=window.__qualifiedMarketoTarget;rm(()=>{try{null==i||i.initMarketoForms()}catch(e){null==i||i.debugState.logEvent("widget:marketo:initMarketoFormsComplete","error",{error:e})}},0)}})}let n=[window];if(null==(e=this.config.featureFlags)?void 0:e.hubspotIframeFormInitialization){let e=Array.from(document.querySelectorAll("iframe")).map(e=>(0,m._p)(()=>e.contentWindow)).filter(ru);n.push(...e)}n.forEach(e=>{try{if(void 0!==e.hbspt)this.debugState.logEvent("widget:hubspot:hbsptFound","success"),this.initHubspotForms(e);else if(Object.hasOwn(e,"hbspt"))e.__qualifiedHubspotTarget=this;else{let t;this.debugState.logEvent("widget:hubspot:hbsptFound","error"),e.__qualifiedHubspotTarget=this,Object.defineProperty(e,"hbspt",{get:()=>t,set(i){t=i;let n=e.__qualifiedHubspotTarget;rm(()=>{try{null==n||n.initHubspotForms(e)}catch(e){null==n||n.debugState.logEvent("widget:hubspot:initHubspotFormsComplete","error",{error:e})}},0)}})}}catch(e){this.debugState.logEvent("widget:hubspot:window","error",{error:e})}}),n.forEach(e=>{try{if(void 0!==e.HubSpotFormsV4)this.initHubspotFormsV4(e);else{let t=0,i=rf(()=>{if(t+=200,void 0!==e.HubSpotFormsV4){rp(i);try{this.initHubspotFormsV4(e)}catch(e){this.debugState.logEvent("widget:hubspotV4:initComplete","error",{error:e})}}else t>=3e4&&(rp(i),this.debugState.logEvent("widget:hubspotV4:pollTimeout","error"))},200);this.hubspotV4PollIds.push(i)}}catch(e){this.debugState.logEvent("widget:hubspotV4:window","error",{error:e})}})}initQualifiedForms(){try{let e=null;try{e=this.iframeManager}catch(e){}!function(e){let{channel:t,iframeManager:i}=e;if(!("customElements"in window))throw Error("This browser does not support custom elements");window.customElements.define(Q,function(e){let{channel:t,iframeManager:i}=e;return class extends W{get template(){let e=document.createElement("template"),t="qualified-form-"+this.instanceId+"-email-input";return e.innerHTML='\n <style>\n /* Functional/layout styles */\n\n qualified-form {\n display: block;\n container-type: inline-size; /* Let website use container queries */\n }\n\n qualified-form[hidden],\n .QualifiedForm-formError[hidden] {\n display: none;\n }\n\n .QualifiedForm-successContainer[hidden] {\n display: none !important; /* Override `display: flex` in starter CSS */\n }\n\n /* Cosmetic styles; could move to snippet for discoverability */\n\n .QualifiedForm-followUpQuestionsContainer .QualifiedForm-formField {\n margin-block-start: 16px;\n }\n\n .QualifiedForm-formControlContainer {\n margin-block-start: 8px;\n }\n\n .QualifiedForm-formField--checkbox .QualifiedForm-formControlContainer {\n display: inline-block;\n margin-block-start: 0;\n }\n\n\n .QualifiedForm-formControl--textarea {\n resize: vertical;\n }\n\n .QualifiedForm-formErrorsContainer {\n margin-block-start: 8px;\n }\n\n .QualifiedForm-formError {\n color: #E4251B;\n }\n\n .QualifiedForm-formError::before {\n content: "â ï¸ ";\n }\n\n .QualifiedForm-followUpQuestionsContainer {\n height: auto;\n }\n\n .QualifiedForm-followUpQuestionsContainer[aria-hidden] {\n height: 0;\n overflow: hidden;\n }\n\n .QualifiedForm-submitButtonContainer {\n margin-block-start: 16px;\n }\n\n qualified-form[data-form-state="emailPending"] .QualifiedForm-submitButton,\n qualified-form[data-form-state="followUpQuestionsPending"] .QualifiedForm-submitButton {\n cursor: wait;\n }\n\n @media (prefers-reduced-motion: no-preference) {\n @supports (interpolate-size: allow-keywords) {\n .QualifiedForm-followUpQuestionsContainer {\n interpolate-size: allow-keywords;\n transition: height 0.5s ease;\n }\n }\n }\n .QualifiedForm-visuallyHidden {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n }\n </style>\n \n <section class="QualifiedForm-root">\n <form aria-label="Qualified Form" class="QualifiedForm-form">\n <div class="QualifiedForm-emailFieldContainer QualifiedForm-formField">\n <label class="QualifiedForm-formLabel" for="'+t+'">Email</label>\n <div class="QualifiedForm-formControlContainer">\n <input\n class="'+P+" "+N+'"\n id="'+t+'"\n name="email"\n required\n type="email"\n />\n </div>\n <div class="QualifiedForm-formErrorsContainer" role="alert">\n <div class="QualifiedForm-formError QualifiedForm-formError--emailInvalid" hidden>\n Please enter a valid email address.\n </div>\n <div class="QualifiedForm-formError QualifiedForm-formError--emailBusinessRequired" hidden>\n Please enter a business email address.\n </div>\n </div>\n </div>\n <div aria-hidden="true" class="QualifiedForm-followUpQuestionsContainer"></div>\n <div class="QualifiedForm-submitButtonContainer">\n <button class="'+W.SUBMIT_BUTTON_CLASS_NAME+'" type="submit" aria-label="submit">\n Submit\n </button>\n </div>\n </form>\n \n <div role="status">\n <div class="QualifiedForm-successContainer" hidden>\n <div class="QualifiedForm-successMessage">Thank you for your submission!</div>\n </div>\n </div>\n </section>\n ',e}constructor(...e){super(...e),this.channel=t,this.iframeManager=i,this.qual
3ifiedFormApi=null}}}({channel:t,iframeManager:i}))}({channel:this.channel,iframeManager:e}),this.debugState.logEvent("widget:qualifiedForms:initQualifiedForms","success")}catch(e){this.debugState.logEvent("widget:qualifiedForms:initQualifiedForms","error",{error:e})}}initMarketoForms(){void 0===window.MktoForms2?this.debugState.logEvent("widget:marketo:MktoForms2Found","error",{},'"window.MktoForms" was previously defined, but is no longer present. This website may have executed javascript which is interfering with the Marketo Smart Form initialization process.'):(window.MktoForms2.whenReady(e=>{let t;if(this.isDisposed||!this.tracker.config.formBotTriggers.marketo.includes(String(e.getId())))return;this.debugState.logEvent("widget:marketo:configuredFormFound","success",{formId:e.getId()});let i=[],n=new Set,r=(e,t)=>JSON.stringify([e,t]),s=(e,t)=>{n.size<100&&n.add(r(e,t))},o=!1,a=e=>{s(e.formId,e.formEmail),rg(e.expiry);let t=i.indexOf(e);t>=0&&i.splice(t,1)};this.providerCorrelationCleanups.add(()=>{o=!0,i.forEach(e=>{let{expiry:t}=e;return rg(t)}),i.length=0,t=void 0,n.clear()}),e.onSubmit(e=>{if(this.isDisposed||o)return;let n=this.nextFormSubmissionId++,r=this.tracker.startFormJourney({journeyKind:"smart_form",entryPath:"marketo",provider:"marketo",startCohort:"official_native_submit",startAnchor:"validated_native_submit",triggerKey:"form:marketo:"+n,supersessionKey:"smart_form:marketo:"+n,navigationMode:"same_page"});this.tracker.checkpointClientExperienceJourney(r,"provider_pending"),this.initMarketoFormsRedirectListeners();let s=e.getValues(),l=s.formid,c=s.Email,u=this.excludeLongFieldValue(e.getValues(),"marketo"),d={journeyId:r,formId:l,formEmail:c,formData:u,expiry:rm(()=>a(d),5e3)};if(i.push(d),i.length>100){let e=i[0];if(a(e),e.journeyId){var h;null==(h=this.tracker.clientExperienceJourneys)||h.terminate(e.journeyId,"superseded")}}t=u,this.debugState.logEvent("widget:marketo:onSubmit","success",{formId:l,formEmail:c})}),e.onSuccess((e,l)=>{var c;if(this.isDisposed||o)return;let u=i.filter(t=>t.formId===e.formid&&t.formEmail===e.Email),h=n.size>=100||n.has(r(e.formid,e.Email));s(e.formid,e.Email);let p=1!==u.length||h?void 0:u[0],m=u.length>1||h&&u.length>0?u.map(e=>{let{journeyId:t}=e;return t}).filter(e=>!!e):[];for(let e of u)a(e);this.marketoFormSucceededAt=Date.now(),this.tracker.checkpointClientExperienceJourney(null==p?void 0:p.journeyId,"provider_completed");let f=e.formid,g=e.Email,v=null!=(c=null==p?void 0:p.formData)?c:t;v&&(this.visitor.setFormExperienceDataWithExpiry({formType:"marketo",formData:(0,d._)({},v,{formId:f,formEmail:g})}),this.tracker.pageViewActivityEmitter.emitFormFill({formType:"marketo"})),this.debugState.logEvent("widget:marketo:onSuccess","success",{formId:f}),(null==p?void 0:p.journeyId)&&this.marketoPendingRedirectJourneys.add(p.journeyId),m.forEach(e=>{this.marketoPendingRedirectJourneys.add(e)}),rm(()=>{var t;this.isDisposed||o||((null==p?void 0:p.journeyId)&&this.marketoPendingRedirectJourneys.delete(p.journeyId),m.forEach(e=>{this.marketoPendingRedirectJourneys.delete(e)}),this.marketoFormRedirecting||(m.forEach(e=>{var t;null==(t=this.tracker.clientExperienceJourneys)||t.terminate(e,"superseded")}),this.debugState.logEvent("widget:marketo:showExperienceForForm","success",{formId:f}),this.tracker.showExperienceForForm("marketo",{raw:(0,d._)({},e),formId:f,formEmail:g},!1,null!=(t=null==p?void 0:p.journeyId)?t:null),this.visitor.clearFormExperienceData(),this.visitor.setLastValidRebroadcastTime(this.dateProvider.new().getTime()+this.marketoLastValidRebroadcastThreshold)))},this.marketoRedirectThreshold)}),this.debugState.logEvent("widget:marketo:configuredFormSetup","success",{formId:e.getId()})}),this.debugState.logEvent("widget:marketo:initMarketoFormsComplete","success"))}initMarketoFormsRedirectListeners(){this.marketoFormBeforeUnloadDisposer||this.marketoFormPageHideDisposer||(this.marketoFormBeforeUnloadDisposer=(0,eI.q2)(window,"beforeunload",e=>{for(let e of this.marketoPendingRedirectJourneys){var t;null==(t=this.tracker.clientExperienceJourneys)||t.terminate(e,"redirect_initiated")}this.marketoPendingRedirectJourneys.clear(),this.logMarketoRedirectEvent("Preparing to navigate","desktop",500),this.marketoFormRedirecting=!0},{capture:!0}),this.marketoFormPageHideDisposer=(0,eI.q2)(window,"pagehide",e=>{for(let e of this.marketoPendingRedirectJourneys){var t;null==(t=this.tracker.clientExperienceJourneys)||t.terminate(e,"redirect_initiated")}this.marketoPendingRedirectJourneys.clear(),this.logMarketoRedirectEvent("Navigated","mobile",1e3),this.marketoFormRedirecting=!0},{capture:!0}))}logMarketoRedirectEvent(e,t,i){if(this.marketoFormSucceededAt){let n=Date.now()-this.marketoFormSucceededAt;this.debugState.logEvent("widget:marketo:redirectEvent","success",{redirectEventLabel:e,eventOccurredAt:n},e+" away from page "+n+"ms after Marketo form submission"),n>i&&this.debugState.logEvent("widget:marketo:redirectEvent","error",{eventOccurredAt:n,thresholdForLogging:i,deviceForLogging:t},n+"ms exceeds the default threshold of "+i+"ms we allow for form submission on "+t+". This may prevent the form experience from firing on "+t)}else this.debugState.logEvent("widget:marketo:redirectEvent","error",{},"Attempting to redirect before Marketo form successfully submitted")}initHubspotForms(e){if(void 0===e&&(e=window),void 0===e.hbspt)return void this.debugState.logEvent("widget:hubspot:hbsptFound","error",{},"window.hbspt was previously defined, but is no longer present. This website may have executed javascript which is interfer
3ing with the HubSpot Smart Form initialization process.");let t=new Map,i=new Map,n=new Set,r=!1,s=(e,i)=>{n.add(e),rg(i.expiry);let r=t.get(e);if(!r)return;let s=r.indexOf(i);s>=0&&r.splice(s,1),0===r.length&&t.delete(e)};this.providerCorrelationCleanups.add(()=>{r=!0,t.forEach(e=>{e.forEach(e=>{let{expiry:t}=e;return rg(t)})}),t.clear(),i.clear(),n.clear()});let o=(0,eI.q2)(e,"message",e=>{var o,a,l,c,u,h,p,m,f,g;if(!r&&e.origin===window.location.origin&&(null==(o=e.data)?void 0:o.type)==="hsFormCallback"&&this.tracker.config.formBotTriggers.hubspot.includes(e.data.id)){if("onFormSubmit"===e.data.eventName){let n=String(e.data.id),r=this.nextFormSubmissionId++,o=this.tracker.startFormJourney({journeyKind:"smart_form",entryPath:"hubspot_v3",provider:"hubspot_v3",startCohort:"official_native_submit",startAnchor:"validated_native_submit",triggerKey:"form:hubspot_v3:"+r,supersessionKey:"smart_form:hubspot_v3:"+r,navigationMode:"same_page"});this.tracker.checkpointClientExperienceJourney(o,"provider_pending");let p=e.data.data.filter(e=>"email"===e.name),m=e.data.data.reduce((e,t)=>(e[t.name]=t.value,e),{}),f=this.excludeLongFieldValue(m,"hubspot"),g=null!=(a=null==(c=p[0])?void 0:c.value)?a:null,v=null!=(l=t.get(n))?l:[],y={journeyId:o,expiry:rm(()=>s(n,y),5e3)};if(v.push(y),t.set(n,v),[...t.values()].reduce((e,t)=>e+t.length,0)>100){let e=t.keys().next().value,i=e?null==(u=t.get(e))?void 0:u[0]:void 0;e&&i&&(s(e,i),i.journeyId&&(null==(h=this.tracker.clientExperienceJourneys)||h.terminate(i.journeyId,"superseded")))}i.set(n,{formEmail:g,values:m}),g&&(this.visitor.setFormExperienceDataWithExpiry({formType:"hubspot",formData:(0,d._)({},f,{formId:n,formEmail:g})}),this.debugState.logEvent("widget:hubspot:onFormSubmit","success",{formId:e.data.id,formEmail:g}),this.tracker.pageViewActivityEmitter.emitFormFill({formType:"hubspot"}))}if("onFormSubmitted"===e.data.eventName){let r=e.data.data.redirectUrl,o=String(e.data.id),a=null!=(p=t.get(o))?p:[],l=n.has(o);n.add(o);let c=1!==a.length||l?void 0:a[0],u=a.length>1||l&&a.length>0;for(let e of[...a])s(o,e),u&&e.journeyId&&(null==(f=this.tracker.clientExperienceJourneys)||f.terminate(e.journeyId,r?"redirect_initiated":"superseded"));let{formEmail:h,values:v}=null!=(m=i.get(o))?m:{formEmail:null,values:{}},y=null==c?void 0:c.journeyId;this.tracker.checkpointClientExperienceJourney(y,"provider_completed"),!r&&h?(this.tracker.showExperienceForForm("hubspot",{raw:(0,d._)({},v),formId:o,formEmail:h},!1,null!=y?y:null),this.visitor.clearFormExperienceData()):r&&y&&(null==(g=this.tracker.clientExperienceJourneys)||g.terminate(y,"redirect_initiated")),this.debugState.logEvent("widget:hubspot:onFormSubmitted","success",{formId:o,formEmail:h})}}});this.hubspotFormSubmitListenerDisposers.push(o),this.debugState.logEvent("widget:hubspot:initHubspotFormsComplete","success")}initHubspotFormsV4(e){if(void 0===e&&(e=window),void 0===e.HubSpotFormsV4)return void this.debugState.logEvent("widget:hubspotV4:HubSpotFormsV4Found","error",{},"window.HubSpotFormsV4 was previously defined, but is no longer present.");this.debugState.logEvent("widget:hubspotV4:HubSpotFormsV4Found","success");let t=new Map,i=new Set,n=!1,r=e=>{let i=t.get(e);i&&rg(i.expiry),t.delete(e)};this.providerCorrelationCleanups.add(()=>{n=!0,t.forEach(e=>{let{expiry:t}=e;return rg(t)}),t.clear(),i.clear()});let s=async s=>{var o,a;if(n)return;let{formId:l,instanceId:c}=s.detail,u=l+"-"+c;if(t.has(u)||!this.tracker.config.formBotTriggers.hubspot.includes(l))return;let h={expiresAt:Date.now()+5e3,expiry:rm(()=>r(u),5e3)};if(t.set(u,h),t.size>100){let e=t.keys().next().value;if(e){let i=t.get(e);r(e),(null==i?void 0:i.journeyId)&&(null==(o=this.tracker.clientExperienceJourneys)||o.terminate(i.journeyId,"superseded"))}}let p=this.nextFormSubmissionId++,m=i.size<100&&!i.has(u);i.size<100&&i.add(u);let f=m?this.tracker.startFormJourney({journeyKind:"smart_form",entryPath:"hubspot_v4",provider:"hubspot_v4",startCohort:"provider_success_only",startAnchor:"provider_success",triggerKey:"form:hubspot_v4:"+p,supersessionKey:"smart_form:hubspot_v4:"+p,navigationMode:"same_page"}):void 0;h.journeyId=f,this.tracker.checkpointClientExperienceJourney(f,"provider_completed");try{let i=e.HubSpotFormsV4.getFormFromEvent(s),r=await i.getFormFieldValues();if(n)return;let o=t.get(u)===h&&Date.now()<h.expiresAt?f:void 0,c=i.getRedirectUrl();c&&o&&(null==(a=this.tracker.clientExperienceJourneys)||a.terminate(o,"redirect_initiated"));let p={},m=null;for(let e of r){let t=e.name.replace(/^\d+-\d+\//,""),i=Array.isArray(e.value)?e.value.join(", "):e.value;p[t]=i,"email"===t&&(m=i)}let g=this.excludeLongFieldValue(p,"hubspot");m&&(c?(this.visitor.setFormExperienceDataWithExpiry({formType:"hubspot",formData:(0,d._)({},g,{formId:l,formEmail:m})}),this.debugState.logEvent("widget:hubspotV4:onSubmissionSuccess","success",{formId:l,formEmail:m,hasRedirect:!0})):(this.tracker.showExperienceForForm("hubspot",{raw:(0,d._)({},p),formId:l,formEmail:m},!1,null!=o?o:null),this.visitor.clearFormExperienceData(),this.debugState.logEvent("widget:hubspotV4:onSubmissionSuccess","success",{formId:l,formEmail:m,hasRedirect:!1})),this.tracker.pageViewActivityEmitter.emitFormFill({formType:"hubspot"}))}catch(e){this.debugState.logEvent("widget:hubspotV4:onSubmissionSuccess","error",{error:e})}finally{if(!n&&t.get(u)===h){rg(h.expiry);let e=Math.max(0,h.expiresAt-Date.now());h.expiry=rm(()=>r(u),e)}}},o=(0,eI.q2)(e,"hs-form-event:on-submission:success",s);this.hubspotFormSubmitListenerDisposers.push(o),this.debugState.logEvent("widget:hubspotV4:initComplete","success")}clearProviderCorrelationState(){this.providerCorrelationCleanups.forEach(e
3=>e()),this.providerCorrelationCleanups.clear(),this.marketoPendingRedirectJourneys.clear()}excludeLongFieldValue(e,t,i){try{let a={},l=[],c=0;switch(t){case"hubspot":case"marketo":Object.entries(e).forEach(e=>{let[i,n]=e;!eK.Rr[t].includes(i)&&"string"==typeof n&&(a[i]=n,c+=n.length,n.length>100&&l.push(i))});break;case"pardot":for(let u=0;i&&u<i.elements.length;u++){let d=i.elements[u],h=d.closest("p")||d.closest("div");if(h&&h.className.includes("form-field")){let i=h.className.split(" ")[2];if(i&&!eK.Rr[t].includes(i)){var n,r,s,o;if("SELECT"===d.nodeName){if(e[d.id]){let t;for(let i=0;i<d.options.length;i++)if(d.options[i].value===e[d.id]){t=d.options[i].textContent;break}a[i]=t||""}}else if("checkbox"===d.type){if(e[d.id]){let e=h.querySelector('label[for="'+d.id+'"]'),t=null!=(n=null==e||null==(r=e.textContent)?void 0:r.trim())?n:"";a[i]?a[i]=a[i]+"; "+t:a[i]=t}}else if("radio"===d.type){let e=h.querySelector('label[for="'+d.id+'"]');a[i]=null!=(s=null==e||null==(o=e.textContent)?void 0:o.trim())?s:""}else a[i]=e[d.id];let t=a[i]?a[i].length:0;c+=t,t>100&&l.push(i)}}}break;default:this.debugLog("[Qualified] FormType is not one of the MAP forms.")}return c>2048&&l.forEach(e=>{delete a[e]}),a}catch(i){return this.debugLog("[Qualified] Failed to exclude inputs with long value. Error: "+i),eK.Rr[t].forEach(t=>{delete e[t]}),e}}recordPerformanceEntries(e){return new Promise(t=>{let i=performance.getEntries().filter(e=>"script"===e.initiatorType&&(0,s.LF)(e.name));this.recordEntriesAsSpans("Download Snippet",i,null),this.channel.pingPong("requestAssetPerformanceEntries","assetPerformanceEntries",{cdnHost:this.config.cdnHost},i=>{this.recordEntriesAsSpans("Download Messenger Asset",JSON.parse(i),e),t()})})}recordEntriesAsSpans(e,t,i){0!==t.length&&t.forEach(t=>{let n={cached:0===t.transferSize,url:t.name};s.Y9.recordTimedSpan(e,n,i,t.startTime,t.responseEnd)})}recordWidgetLongTaskSpans(e,t){0!==t.length&&t.forEach(t=>{this.channel.perform("record_long_task_spans",{spans:[{name:e,attributes:{name:t.name},duration:t.duration}]})})}open(){this.experienceAdapter.openMessenger()}hideLegacyMessenger(){var e;null==(e=this._iframeManager)||e.hideMessenger()}showLegacyMessenger(){var e;null==(e=this._iframeManager)||e.showMessenger()}setMultimodalOwnsSession(e){this.experienceAdapter instanceof n_&&this.experienceAdapter.setMultimodalOwnsSession(e)}bindMultimodalEventsBridge(){var e;let t=null==(e=this._multimodal)?void 0:e.rootStore;t&&this.experienceAdapter instanceof n_&&this.experienceAdapter.bindEventsBridge(t)}endExperience(){this.channel.send({event:"endExperience"})}setCookieConsent(e){this.config.hasCookieConsent=e,this.visitor.updatePersistence(e)}startShipper(){this.iframeManager.startShipper()}stopShipper(){this.iframeManager.stopShipper()}requestKeyframe(){this.iframeManager.requestKeyframe()}registerClientActivity(){window._q_lastClientActivityAt=this.dateProvider.new().toISOString()}resetWidgetId(){this.widgetId=(0,ed.A)()}getSentryClient(){return(0,tu.Nj)()}get initialized(){return this.isIframed?Promise.resolve():this.iframeManager.widgetHandshake}get cable(){return this.channel.cable}get lastClientActivityAt(){return window._q_lastClientActivityAt}get loaded(){return window._q_widgetInitialized}set loaded(e){window._q_widgetInitialized=e}get widgetInitializedAt(){return window._q_widgetInitializedAt||0}set widgetInitializedAt(e){window._q_widgetInitializedAt=e}set widgetIdForInitOffers(e){window._q_widgetIdForInitOffers=e}get widgetIdForInitOffers(){return window._q_widgetIdForInitOffers}trackVisitedContentActivity(){let e=new URLSearchParams(window.location.search).get("q_ct");e&&this.contentActivityEmitter.emitActivity({type:"visited",trackingUuid:e})}constructor(e,t){if(super(e),this.readyState=1,this.config={},this.isIframed=!1,this.isDebug=!1,this.initSpan=null,this.awaitedDelay=!1,this.isDisposed=!1,this.multimodalReady=(0,iq.eu)(),this.widget=this,this.hubspotFormSubmitListenerDisposers=[],this.hubspotV4PollIds=[],this.marketoRedirectThreshold=ic().any?1e3:500,this.marketoLastValidRebroadcastThreshold=5e3,this.marketoFormSucceededAt=null,this.marketoFormRedirecting=!1,this.marketoPendingRedirectJourneys=new Set,this.nextFormSubmissionId=1,this.providerCorrelationCleanups=new Set,this.traceState=new nz,this.debugState=new nj,this.messengerUptime=new n0,this.widgetEventsListeners=[],this.logTiming=(e,t,i,n)=>{try{let r,s=e=>!Number.isNaN(e)&&e>0;if(void 0===i){if(!s(this.widget.widgetInitializedAt))return;r=performance.now()-this.widget.widgetInitializedAt}else{if(!s(i))return;r=i}if(!s(r))return;this.widget.debugLog(e,"info",{durationMs:r}),this.widget.serverLog({message:t,type:"log",extra:(0,d._)({method:"dist",operand:r},n?{tags:n}:{})})}catch(e){console.warn("Qualified: An unexpected issue occurred in logTiming",e)}},this.addWidgetEventsListener=e=>{try{this.widgetEventsListeners.push(e)}catch(e){console.error("Qualified: Error in Widget#addWidgetEventsListener",e)}},this.emitWidgetEvent=e=>{this.config.clientApiHandleWidgetEventsEnabled&&ry.includes(e)&&this.widgetEventsListeners.forEac
3h(t=>{try{t(e)}catch(e){console.error("Qualified: Error when calling eventListener in Widget#emitWidgetEvent",e)}})},this.onTeardown=()=>(this.dispose(),this.constructor.start()),this.onRefresh=()=>{(this.dispose(),"npm"===(0,s.$P)())?this.debugLog("[Qualified] Force refresh skipped: bundled (npm) consumer owns the widget bundle; no hosted script to reload."):rm(()=>{let e=document.querySelector('script[src*="qualified.js"]');if(e){e.parentNode.removeChild(e);let t=document.createElement("script");t.src=e.src+"&"+new Date().getTime(),document.head.appendChild(t)}else this.debugLog("[Qualified] Force refresh: no hosted qualified.js script tag found; skipping reload.")},Math.floor(3e3*Math.random()))},this.loaded)return void console.warn("Qualified widget already initialized. Aborting.");this.config=iz()(t),this.isIframed=(0,o.f8)(),this.callOnDispose(eu.wu),this.apiHandler.init()}}(0,eS.Cg)([ej.Hi,(0,eS.Sn)("design:type",Function),(0,eS.Sn)("design:paramtypes",["u"<typeof EnvironmentConfig?Object:EnvironmentConfig]),(0,eS.Sn)("design:returntype",void 0)],rb,"start",null),(0,eS.Cg)([eO.W,(0,eS.Sn)("design:type","u"<typeof BaseApiHandler?Object:BaseApiHandler)],rb.prototype,"apiHandler",void 0),(0,eS.Cg)([eO.W,(0,eS.Sn)("design:type",void 0===nT?Object:nT)],rb.prototype,"dateProvider",void 0),(0,eS.Cg)([ej.Hi,(0,eS.Sn)("design:type",Function),(0,eS.Sn)("design:paramtypes",[String,"u"<typeof TeamConfig?Object:TeamConfig]),(0,eS.Sn)("design:returntype",Promise)],rb.prototype,"init",null),(0,eS.Cg)([(0,ej.Hi)(),(0,eS.Sn)("design:type",Function),(0,eS.Sn)("design:paramtypes",[]),(0,eS.Sn)("design:returntype",void 0)],rb.prototype,"trackVisitedContentActivity",null),tu.sQ.init(),s.qd.multimodal.messengerLoad.arm(),eE.startSlowTimeout();let r_=class extends rb{static createContainer(){let e=super.createContainer();return i.p=""+this.environmentConfig.cdnHost+"/packs/",e.register1("iframeManager",ij),e.register1("cursorPositionProvider",t1),e.register1("analytics",l.default),e.register1("offerScript",a.OfferMainScript),e.register1("pageMirrorFactory",iB.default),(0,o.f8)()&&e.register1("apiHandler",tz),e}async loadMultimodalV2(){return this.container.load("multimodal_v2")}}},7057(e,t,i){"use strict";i.r(t),i.d(t,{OfferMainScript:()=>iw});var n=i(5482),r=i(9776),s=i(1416),o=i(3175),a=i(2540);class l{handle(e){e.isButton()&&(this.context.activityEmitter.emitOfferShown({offerVersionId:e.versionId}),e.registerListeners({onDismissClick:()=>this.handleOfferDismiss(e),onCtaClick:t=>this.handleOfferClick(e,t)}))}async handleOfferDismiss(e){await this.context.manager.remove(e),this.context.activityEmitter.emitOfferDismiss({offerVersionId:e.versionId})}async handleOfferClick(e,t){if(!t)return;let i=t.currentTarget;if(i.hasAttribute("data-is-acked"))return void await this.context.manager.remove(e);t.preventDefault(),t.stopImmediatePropagation(),i.setAttribute("data-is-acked","true");let n=i.style.pointerEvents;i.style.pointerEvents="none",this.context.activityEmitter.emitOfferClick({offerVersionId:e.versionId}),await(0,a.cb)(100),i.style.pointerEvents=n;let r=new URL(i.href),s=this.context.dateProvider.now()+6e4,l=(0,o.nk)(JSON.stringify({id:e.versionId,expiration:s}));r.searchParams.delete("q_offer_info"),this.offerFeatureFlags.disableQOfferInfo||r.searchParams.append("q_offer_info",l),i.setAttribute("href",r.toString()),i.click()}constructor(e,t){this.context=e,this.offerFeatureFlags=t,e.manager.subscribe("afterAdd",e=>this.handle(e))}}let c="FADE_IN",u={HeadlineBodyButton:"HEADLINE_BODY_BUTTON",HeadlineBodyForm:"HEADLINE_BODY_FORM",HeadlineButton:"HEADLINE_BUTTON",HeadlineForm:"HEADLINE_FORM",HeadlineLink:"HEADLINE_LINK"},d="BUTTON",h="FORM",p="LEFT",m="NONE",f="RIGHT",g="EMBED",v="FOOTER",y="HEADER",b="POPUP",_="SIDEBAR";var w=i(8715),E=i(2283);let S="Privacy disclosure text: ",A="data-qualified-offer-host-location",x="--qualified-offer-header-height",C="data-qualified-offer-header-ignore",T="data-qualified-offer-header-include",k="--qualified-offer-footer-height",I={desktop:{[b]:450,[_]:326},mobile:{[b]:343,[_]:326}},F={desktop:{[b]:"64px",[_]:"32px"},mobile:{[b]:"32px",[_]:"32px"}},O={mobile:{[b]:"400px",[_]:"300px"},desktop:{[b]:"400px",[_]:"300px"}},M={mobile:{[b]:"400px",[_]:"300px"},desktop:{[b]:"500px",[_]:"400px"}};var R=i(228);function P(){return function(e){return function(t){return t.type===e}}}function D(e){let t=document.createElement("div");if(t.innerHTML=e.trim(),1!==t.children.length)throw Error("Expected a single element");return t.firstChild}function L(e,t){return"_qualified-offer-"+e+"-"+t}function N(e){return L("host",e)}
3function j(e){return L("dismiss-button",e)}function B(e){return L("form",e)}function U(e){return L("cta-button",e)}function z(e){return L("privacy-disclosure-tooltip",e)}function q(e){return L("privacy-disclosure-tooltip-target",e)}function H(e){return L("headline",e)}let{HeadlineButton:V,HeadlineLink:W,HeadlineBodyButton:Q,HeadlineForm:J,HeadlineBodyForm:K}=u,G=P()(V),Y=P()(J),$=P()(W),X=P()(Q),Z=P()(K),ee=(e,t,i,n,r,s)=>et(e)&&et(t)&&et(i)&&et(n)&&et(r)&&et(s)?{cropPxX:e,cropPxY:t,cropPxWidth:i,cropPxHeight:n,originalPxWidth:r,originalPxHeight:s}:void 0,et=e=>"number"==typeof e&&e>=0;function ei(e,t){let i=e||"";if(i&&t){let e=["trim.left="+t.cropPxX,"trim.top="+t.cropPxY,"trim.width="+t.cropPxWidth,"trim.height="+t.cropPxHeight].join(",");i=i.replace("/uploads/","/cdn-cgi/image/"+e+"/uploads/")}return i}class en{get style(){return this._style||(this._style="<style>",this.components.forEach(e=>this._style+=e.style),this._style+="</style>"),this._style}toString(){return""+this.style+this.html}constructor(e,t){this.html=e,this.components=t,this._style=null}}class er{get root(){return this._root||(this._root=document.createElement("div")),this._root}get shadowRoot(){return this._shadowRoot||(this._shadowRoot=this.root.attachShadow({mode:"open"})),this._shadowRoot}setState(e){this.state=e,this.render()}html(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];let r=new Set,s=e.reduce((e,t,n)=>{let s="";for(let e of[i[n]].flat()){let t=e;if(e instanceof er||e instanceof en){let i=e instanceof er?e.content:e;i.components.forEach(e=>r.add(e)),t=i.html}s=""+s+(null!=t?t:"")}return""+e+t+(null!=s?s:"")},"");return r.add(this),new en(s,r)}render(){return this.shadowRoot.innerHTML=this.content.toString(),this.root}classes(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.filter(Boolean).join(" ")}get isMobile(){return"mobile"===this.device}createClassesProxy(){return new Proxy({},{get:(e,t)=>{var i;return null!=(i=e[t])?i:e[t]=t+"-"+this.displayName+"-"+Math.random().toString(36).slice(2)}})}constructor(e,t){this.props=e,this.state=t,this.device=window.innerWidth<=540?"mobile":"desktop",this._root=null,this._shadowRoot=null,this.cx=this.createClassesProxy()}}var es=i(8034).gj;class eo extends er{static withState(e){var t=this;return function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];let s=new t(...n);return e&&s.setState(e),s}}get id(){return this.props.id}registerListeners(e){this.listeners=e,this.handleListeners()}dismiss(){var e,t;null==(t=this.listeners)||null==(e=t.onDismissClick)||e.call(t)}render(e){let{animate:t=!1}=void 0===e?{}:e;return t?this.renderWithHeightTransition():(super.render(),this.computeElements(),this.handleListeners(),this.root)}setState(e,t){let{animate:i=!1}=void 0===t?{}:t;this.state=e,this.render({animate:i})}copyListeners(e){e.listeners&&this.registerListeners(e.listeners)}get backgroundImageCropSettings(){return ee(this.props.backgroundImageConfig.cropPxX,this.props.backgroundImageConfig.cropPxY,this.props.backgroundImageConfig.cropPxWidth,this.props.backgroundImageConfig.cropPxHeight,this.props.backgroundImageConfig.originalPxWidth,this.props.backgroundImageConfig.originalPxHeight)}get backgroundImageUrl(){return this.props.backgroundImageUrl&&this.backgroundImageCropSettings&&"IMAGE"===this.props.backgroundType?ei(this.props.backgroundImageUrl,this.backgroundImageCropSettings):null}computeElements(){this.elements={host:this.host,dismissButton:this.shadowRoot.querySelector("#"+j(this.id)),form:this.shadowRoot.querySelector("#"+B(this.id)),ctaButton:this.shadowRoot.querySelector("#"+U(this.id)),privacyDisclosureTooltipTarget:this.props.privacyDisclosureId?this.shadowRoot.querySelector("#"+q(this.id)):null}}handleListeners(){if(!this.listeners||!this.elements)return;let{onDismissClick:e,onCtaClick:t,onFormSubmit:i,onPrivacyDisclosureShown:n}=this.listeners,{dismissButton:r,form:s,ctaButton:o,privacyDisclosureTooltipTarget:a}=this.elements;r&&e&&this.bindListener(r,"click",e),o&&t&&this.ctaType!==h&&this.bindListener(o,"click",t,!1),s&&i&&this.ctaType===h&&this.bindListener(s,"submit",i),a&&n&&this.ctaType===h&&this.bindListener(a,"focus",n)}bindListener(e,t,i,n){void 0===n&&(n=!0),e.addEventListener(t,e=>
3{n&&(e.preventDefault(),e.stopImmediatePropagation()),i(e)})}renderWithHeightTransition(){var e,t;let i=null==(e=this.shadowRoot)?void 0:e.querySelector(".container"),n=null==i?void 0:i.scrollHeight;if(super.render(),this.computeElements(),this.handleListeners(),!(i=null==(t=this.shadowRoot)?void 0:t.querySelector(".container"))||!n)return this.root;let r=i.scrollHeight,s=i.style.height,o=i.style.transition;return i.style.height=""+n+"px",i.style.transition="height 0.3s ease-out",i.addEventListener("transitionend",()=>{i&&(i.style.height=s,i.style.transition=o)},{once:!0}),es(()=>{r&&n&&i&&(i.style.height=""+r+"px")}),this.root}constructor(e,t,i,n,r,s){super(e,t),this.host=i,this.hasOffersFontEnhancements=n,this.hasDismissButtonAccessibilityEnabled=r,this.hasOffersFormBannerMobileImprovements=s}}class ea extends eo{disableForm(){var e,t;let i=null==(e=this.elements)?void 0:e.form,n=null==(t=this.elements)?void 0:t.ctaButton;if(i){let e=null==i?void 0:i.querySelectorAll("input, button");null==e||e.forEach(e=>e.disabled=!0)}n&&n instanceof HTMLButtonElement&&(n.disabled=!0)}enableForm(){var e,t;let i=null==(e=this.elements)?void 0:e.form,n=null==(t=this.elements)?void 0:t.ctaButton;if(i){let e=null==i?void 0:i.querySelectorAll("input, button");null==e||e.forEach(e=>e.disabled=!1)}n&&n instanceof HTMLButtonElement&&(n.disabled=!1)}getEmailInputValue(){var e,t;return"emailCapture"!==this.state.current?null:null!=(e=null==(t=this.getFormValues("email"))?void 0:t[0])?e:null}getEmailFormInput(){var e,t;return null==(t=this.elements)||null==(e=t.form)?void 0:e.querySelector("input[name=email]")}getPrivacyDisclosureTooltip(){var e,t;return null==(t=this.elements)||null==(e=t.form)?void 0:e.querySelector("div[id="+z(this.props.id)+"]")}static privacyDisclosureAriaLabel(e){try{let t,{strippedValue:i,doc:n}={strippedValue:(t=new DOMParser().parseFromString(e,"text/html")).body.textContent||"",doc:t},r=Array.from(n.querySelectorAll("a")).map(e=>e.href),s="";return r.length>0&&(s=" Included links: ",r.forEach((e,t)=>{s+="Link "+(t+1)+" "+e+". "})),S+i+s}catch(t){return S+" "+e}}getFormValues(){for(var e,t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];let r=null==(e=this.elements)?void 0:e.form;if(!r)return null;let s=[];for(let e of i){let t=r.querySelector('[name="'+e+'"]');if(!t)return null;"checkbox"===t.type?s.push(t.checked.toString()):s.push(t.value)}return s}render(){var e;let t=super.render(),i=null==(e=this.elements)?void 0:e.form;if(!i)return t;let n=i.querySelector("input[name=email]");return n&&(n.addEventListener("invalid",()=>{n.validity.valueMissing&&n.setCustomValidity("You must enter a valid email")}),n.addEventListener("input",()=>{n.setCustomValidity(""),n.validity.valueMissing?n.setCustomValidity("You must enter a valid email"):n.setCustomValidity("")})),t}constructor(e,t,i,n,r){super(e,{current:"emailCapture"},t,i,n,r),this.ctaType=h}}var el=i(8034).pS;let ec=[y,v],eu=[b,_],ed=[y,v];class eh{get hasActiveOffer(){return null!==this.activeOffer}handle(e){e.isForm()&&(this.context.activityEmitter.emitOfferShown({offerVersionId:e.versionId}),this.registerListeners(e))}registerListeners(e){let t=()=>{var t;return this.handlePrivacyDisclosureShown(e,e.versionId,(null==e||null==(t=e.serializedOffer)?void 0:t.privacyDisclosureId)||void 0)};eu.includes(e.location)&&t(),e.registerListeners({onDismissClick:()=>this.handleOfferDismiss(e),onFormSubmit:()=>this.handleOfferSubmit(e),onPrivacyDisclosureShown:()=>ed.includes(e.location)?t():()=>{}})}async handleOfferDismiss(e){var t;this.activeOffer&&this.activeOffer.is(e)&&this.activeOffer.isCompleted||this.context.activityEmitter.emitOfferDismiss({offerVersionId:e.versionId}),(null==(t=this.activeOffer)?void 0:t.is(e))&&(this.resumeAllFormOffers(),this.activeOffer=null),await this.context.manager.remove(e)}async handleOfferSubmit(e){var t,i;(null==(t=this.activeOffer)?void 0:t.state.current)==="end"?await this.handleOfferDismiss(e):this.activeOffer&&!this.activeOffer.is(e)?this.debugLog("Cannot submit form while another form is in progress"):(this.activeOffer||(this.activeOffer=new ep(e,this.context),this.pauseAllFormOffers()),await this.activeOffer.handleSubmission(),this.handlePrivacyDisclosureConsented(e.versionId,(null==e||null==(i=e.serializedOffer)?void 0:i.privacyDisclosureId)||void 0))}handlePrivacyDisclosureShown(e,t,i){if(t&&i){if(this.offerVersionIdToShownPrivacyDisclosureId[t])return;this.offerVersionIdToShownPrivacyDisclosureId[t]=i,this.context.activityEmitter.emitPrivacyDisclosureShown({offerVersionId:t,privacyDisclosureId:i})}if((null==e?void 0:e.getEmailFormInput())&&(null==e?void 0:e.getPrivacyDisclosureTooltip())){let t=e.getEmailFormInput(),i=e.getPrivacyDisclosureTooltip();t.tabIndex=0,i.tabIndex=-1,t.addEventListener("keydown",e=>{"Tab"!==e.key||e.shiftKey||(i.style.display="flex",i.focus(),i.style.display="")})}}handlePrivacyDisclosureConsented(e,t){e&&t&&this.context.activityEmitter.emitPrivacyDisclosureConsented({offerVersionId:e,privacyDisclosureId:t})}pauseAllFormOffers(){if(this.activeOffer)for(let e of(this.context.manager.pause(),this.context.manager.offers))e.isForm()&&!this.activeOffer.is(e)&&e.disableForm()}resumeAllFormOffers(){for(let e of this.context.manager.offers)e.isForm()&&e.enableForm();this.context.manager.resume()}debugLog(e,t){(0,w.dI)("[form-manager] "+e,t)}constructor(e){this.context=e,this.activeOffer=null,this.offerVersionIdToShownPrivacyDisclosureId={},this.context.manager.subscribe("afterAdd",e=>this.handle(e))}}class ep{get state(){return this.offer.state}get isCompleted(){return this._isCompleted}is(e){return this.offer===e}async handleSubmission(){if(this.state.loading||"end"===this.state.current)return void this.debugLog("Cannot submit form in state "+this.state);switch(this.state.current){case"emailCapture":await this.handleEmailSubmission();break;case"followupQuestions":await this.handleFollowupQuestionsSubmission()}}async handleEmailSubmission(){let e=this.offer.getEmailInputValue();if(!e)return void this.offer.setState({current:"emailCapture",error:"Please enter a valid email"});
3let t=this.qualifiedFormApi.submitEmail(e);if(!t.success){let i;switch(t.error){case"empty":case"invalid":i="Please enter a valid email.";break;case"non_business":i="Please provide a business email."}this.offer.setState({current:"emailCapture",email:e,error:i});return}this.context.activityEmitter.emitOfferClick({offerVersionId:this.offer.versionId}),this.offer.setState({current:"emailCapture",email:e,loading:!0});let{form:i,action:n}=await t.result;if(this.followupQuestionsForm=i,!this.offer.isOnScreen()){i||this.markAsCompleted();return}if(!i){this.markAsCompleted(),this.handleEndAction(await n);return}await this.transitionToFollowupQuestions()}async handleFollowupQuestionsSubmission(){if(!this.followupQuestionsForm)return;let e=this.offer.getFormValues(...this.followupQuestionsForm.inputFields.map(e=>e.name));if(!e)return;let t=this.qualifiedFormApi.submitFollowUpQuestions(e);if(t.success){this.markAsCompleted(),this.offer.setState({current:"followupQuestions",email:this.offer.state.email,loading:!0},{animate:!0});let e=await t.action;if(!this.offer.isOnScreen())return;this.handleEndAction(e);return}this.offer.setState({current:"followupQuestions",email:this.offer.state.email,errors:t.errors},{animate:!0})}markAsCompleted(){this._isCompleted||(this._isCompleted=!0,this.context.activityEmitter.emitFormFill({formType:"offer",offerVersionId:this.offer.versionId}))}handleEndAction(e){"widget"===e.type?this.offer.dismiss():"redirect"===e.type&&e.url?window.location.href=e.url:this.transitionToEnd({dismiss:ec.includes(this.offer.location)})}transitionToEnd(e){let{dismiss:t=!1}=void 0===e?{}:e;t&&el(()=>this.offer.dismiss(),1e3);let i={current:"end",email:this.offer.state.email},n=[b,_].includes(this.offer.location);this.offer.setState(i,{animate:n})}async transitionToFollowupQuestions(){if(this.followupQuestionsForm){var e;this.offer.setState({current:"followupQuestions",form:this.followupQuestionsForm,email:this.offer.state.email},{animate:!ec.includes(this.offer.location)}),ec.includes(this.offer.location)&&await this.offer.update((e=this.offer.serializedOffer).currentVersion.ctaType!==h||e.currentVersion.location!==y&&e.currentVersion.location!==v?e:(0,R._)({},e,{currentVersion:(0,R._)({},e.currentVersion,{location:b,content:(0,R._)({},e.currentVersion.content,{variation:(0,R._)({},e.currentVersion.content.variation,{__typename:"ContentVariationHeadlineBodyForm",type:u.HeadlineBodyForm,bodyStyle:e.currentVersion.content.variation.headlineStyle}),animation:{type:c}})})}),{animate:!0,copyListeners:!0,copyState:!0})}}debugLog(e,t){(0,w.dI)("[offer-main-script] "+e,t)}constructor(e,t){this.offer=e,this.context=t,this.followupQuestionsForm=null,this._isCompleted=!1,this.qualifiedFormApi=new E.Dj({source:"offers",config:e.qualifiedFormConfig,channel:this.context.channel,iframeManager:this.context.iframeManager,offerId:this.offer.serializedOffer.id})}}var em=i(2693);class ef{get iframeManager(){var e;return null!=(e=(0,em._p)(()=>this.getIframeManager()))?e:null}constructor(e,t,i,n,r){this.activityEmitter=e,this.dateProvider=t,this.channel=i,this.manager=n,this.getIframeManager=r}}var eg=i(8034).pS;class ev{static setup(e){this.renderer=e}static create(e){if(null===this.renderer)throw Error("Renderer is not set");return new ey(e)}get serializedOffer(){return this._serializedOffer}get offerId(){return this.serializedOffer.id}get versionId(){return this.serializedOffer.currentVersion.id}get position(){return this.serializedOffer.position}get location(){return this.serializedOffer.currentVersion.location}get ctaType(){return this.serializedOffer.currentVersion.ctaType}get variationType(){return this.serializedOffer.currentVersion.content.variation.type}get qualifiedFormConfig(){var e;return null!=(e=this.serializedOffer.currentVersion.qualifiedFormConfig)?e:{validateBusinessEmail:!1,emailField:{type:"email",label:"Email",placeholder:"Business email"},assetUrl:"",additionalFields:[]}}get renderer(){if(null===ev.renderer)throw Error("Renderer is not set");return ev.renderer}async render(e){if(void 0===e&&(e={}),!this.isOnScreen()&&!this.isRendering){if(this.isRemoving)throw Error("Attempting to render an offer while it is being removed");this.isRendering=!0,this._staticOffer=await this.renderer.render(this.serializedOffer,e),this.isRendering=!1}}async remove(e){if(void 0===e&&(e={}),this.isOnScreen()&&!this.isRemoving){if(this.isRendering)throw Error("Attempting to remove an offer while it is being rendered");this.isRemoving=!0,await this.renderer.remove(this.serializedOffer,e),this._staticOffer=null,this.isRemoving=!1}}async animate(){this.isOnScreen()&&(await this.remove({animate:!0}),await new Promise(e=>eg(e,250))),await this.render({animate:!0})}async update(e,t){if(void 0===t&&(t={}),e.id!==this.serializedOffer.id)throw Error("Cannot update with a different offer");if(!this.isOnScreen()){this._serializedOffer=e,await this.render(t);return}let i=this.staticOffer,n=t.copyState&&this.ctaType===e.currentVersion.ctaType?this.staticOffer.state:void 0;this.location!==e.currentVersion.location?(await this.remove(t),this._serializedOffer=e,await this.render((0,R._)({},t,{state:n}))):(this._serializedOffer=e,this._staticOffer=this.renderer.update(this._serializedOffer,n)),t.copyListeners&&this.staticOffer.copyListeners(i)}isOnScreen(){return null!==this._staticOffer}isForm(){return this.isOnScreen()&&this.ctaType===h}isButton(){return this.isOnScreen()&&this.ctaType!==h}constructor(e){this._staticOffer=null,this.isRendering=!1,this.renderingPromise=null,this.isRemoving=!1,this.removingPromise=null,this._serializedOffer=e}}ev.renderer=null;class ey extends ev{get staticOffer(){if(null===this._staticOffer)throw Error("Offer is not on screen");return this._staticOffer}get staticOfferId(){return this.staticOffer.id}get state(){return this.staticOffer.state}dismiss(){this.staticOffer.dismiss()}enableForm(){this.staticOffer.enableForm()}disableForm(){this.staticOffer.disableForm()}getEmailInputValue(){return this.staticOffer.getEmailInputValue()}getEmailFormInput(){return this.staticOffer.getEmailFormInput()}getPrivacyDisclosureTooltip(){return this.staticOffer.getPrivacyDisclosureTooltip()}getFormValues(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.staticOffer.getFormValues(...t)}constructor(...e){var t;super(...e),t=this,this.registerListeners=function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return t.staticOffer.registerListeners(...i)},this.setState=function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return t.staticOffer.setState(...i)}}}class eb{get offers(){return new Set(this.renderedOffers.values())}get isPaused(){return this._isPaused}subscribe(e,t){return this.subscribers[e].add(t),()=>{this.subscribers[e].delete(t)}}
3pause(){this.subscribers.beforePause.forEach(e=>e()),this._isPaused=!0,this.subscribers.afterPause.forEach(e=>e())}resume(){this.subscribers.beforeResume.forEach(e=>e()),this._isPaused=!1,this.subscribers.afterResume.forEach(e=>e())}async add(e,t){if(void 0===t&&(t=!1),this.isPaused&&!t)return;let i=this.renderedOffers.get(e.currentVersion.location);if(i&&i.position<=e.position)return;let n=ev.create(e);this.renderedOffers.set(e.currentVersion.location,n),i&&await this.remove(i),this.renderedOffers.get(e.currentVersion.location)===n&&(this.subscribers.beforeAdd.forEach(t=>t(e)),await n.render({animate:!0}),this.subscribers.afterAdd.forEach(e=>e(n)))}async remove(e){this.subscribers.beforeRemove.forEach(t=>t(e)),this.renderedOffers.get(e.location)===e&&this.renderedOffers.delete(e.location),await e.remove({animate:!0}),this.subscribers.afterRemove.forEach(t=>t(e))}async clear(e){let{except:t}=e;this.subscribers.beforeClear.forEach(e=>e());let i=[...this.renderedOffers.values()].filter(e=>!t.some(t=>t.id===e.serializedOffer.id));await Promise.all(i.map(e=>this.remove(e))),this.subscribers.afterClear.forEach(e=>e())}constructor(){this._isPaused=!1,this.renderedOffers=new Map,this.subscribers={beforeAdd:new Set,afterAdd:new Set,beforeRemove:new Set,afterRemove:new Set,beforeClear:new Set,afterClear:new Set,beforePause:new Set,afterPause:new Set,beforeResume:new Set,afterResume:new Set}}}var e_=i(1078);function ew(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let n=!1;return{cancel:()=>n=!0,run:async()=>{for(let e of t){if(n)return;let t=e();t instanceof Promise&&await t}}}}var eE=i(3490);class eS{static get(e){var t;return null!=(t=this.instances[e])?t:this.instances[e]=new eS(e)}static requestOwnership(e,t){let i=this.ownerships.get(e);return i&&i!==t?((0,w.dI)("[CSSVarsManager] "+t+" requested ownership of "+e+" but it is already owned by "+i),!1):(this.ownerships.set(e,t),!0)}static removeOwnership(e,t){let i=this.ownerships.get(e);return i&&i!==t?((0,w.dI)("[CSSVarsManager] "+t+" requested to remove ownership of "+e+" but it is owned by "+i),!1):(this.ownerships.delete(e),!0)}set(e,t){eS.requestOwnership(e,this.scope)&&this.map.get(e)!==t&&(this.root.style.setProperty(e,t),this.map.set(e,t))}remove(e){!eS.removeOwnership(e,this.scope)||this.map.has(e)&&(this.root.style.removeProperty(e),this.map.delete(e))}get(e){return this.map.get(e)}dispose(){for(let e of this.map.keys())this.remove(e);this.map.clear(),delete eS.instances[this.scope]}constructor(e){this.scope=e,this.root=document.documentElement,this.map=new Map}}eS.instances={},eS.ownerships=new Map;var eA=i(8034).pS;function ex(e,t){let i=!1,n=null;return function(){for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];n=s,i||(eA(()=>{e.apply(this,n),i=!1,n=null},t),i=!0)}}class eC{init(e){this.isDisposed=!1,this.target=e,this.lastWidth=e.offsetWidth,this.lastHeight=e.offsetHeight,this.observer.observe(e,{box:"border-box"})}dispose(){this.isDisposed=!0,this.observer.disconnect(),this.target=null,this.lastHeight=null,this.lastWidth=null}_callback(e){this.isDisposed||this.callback(e)}constructor(e,t="both",i=0){this.callback=e,this.watch=t,this.lastWidth=null,this.lastHeight=null,this.target=null,this.isDisposed=!0,this._onResize=e=>{if(!this.target)return;let t=this.target.offsetWidth!==this.lastWidth;if("width"===this.watch&&!t)return;let i=this.target.offsetHeight!==this.lastHeight;"height"===this.watch&&!i||(t||i)&&(this.lastWidth=this.target.offsetWidth,this.lastHeight=this.target.offsetHeight,this._callback(this.target))},this.onResize=i>0?ex(this._onResize,i):this._onResize,this.observer=new ResizeObserver(this.onResize)}}class eT{static setup(){this.isInitialized||("registerProperty"in window.CSS&&window.CSS.registerProperty({name:k,syntax:"<length>",inherits:!0,initialValue:"0px"}),this.isInitialized=!0)}createHost(e){return D('\n <div id="'+N(e)+'" style="position:fixed;left:0;bottom:0;width:100%;height:fit-content;z-index:2147483641"></div>\n ')}insertHost(e){document.body.appendChild(e)}afterInsertAnimation(e){this.updateFooterHeight(e),this.hostResizeObserver.init(e)}beforeRemoveAnimation(){this.hostResizeObserver.dispose()}removeHost(e){e.remove(),this.cssVars.dispose()}constructor(){this.cssVars=eS.get("footer"),this.updateFooterHeight=e=>{this.cssVars.set(k,""+e.offsetHeight+"px")},this.hostResizeObserver=new eC(this.updateFooterHeight,"height",250)}}eT.isInitialized=!1;class ek{init(){this.isDisposed=!1}dispose(){for(let[e]of(this.isDisposed=!0,this.observedElements))this.unobserveElement(e)}observe(e){if(!this.isDisposed)for(let t of e)this.observeElement(t)}unobserve(e){if(!this.isDisposed)for(let t of e)this.unobserveElement(t)}revertTransitions(e){for(let t of e){let e=this.observedElements.get(t);e&&(t.style.transition=e.originalTransition)}}reapplyTransitions(e){for(let t of e)if(this.observedElements.has(t)){let e=this.observedElements.get(t);e&&(t.style.transition=e.newTransition)}}pause(){this.isDisposed||(this.isPaused=!0)}resume(){this.isDisposed||(this.isPaused=!1)}observeElement(e){if(this.observedElements.has(e))return;let t=this.addTransitionsToElement(e),i=this.createTransitionCallback(e);e.addEventListener("transitionstart",i),this.observedElements.set(e,(0,R._)({callback:i},t))}unobserveElement(e){let t=this.observedElements.get(e);if(t){let{callback:i,originalTransition:n}=t;e.removeEventListener("transitionstart",i),e.style.transition=n}this.observedElements.delete(e)}createTransitionCallback(e){return t=>{!this.isPaused&&!this.isDisposed&&t.target===e&&this.observedProperties.has(t.propertyName)&&this._callback([e])}}addTransitionsToElement(e){let t=e.style.transition,{transitionProperty:i,transition:n}=getComputedStyle(e),r=i.split(",").map(e=>e.trim()).filter(e=>e&&"none"!==e),s=[];for(let e of this.observedProperties)r.includes(e)||s.push(e+" "+this.TRANSITION_DURATION+" allow-discrete");if(s.length>0){let t=[n,...s].filter(e=>e&&"none"!==e);e.style.transition=t.join(", ")}return{originalTransition:t,newTransition:e.style.transition}}constructor(e,t){this.callback=t,this.TRANSITION_DURATION="1ms",this.isDisposed=!0,this.isPaused=!1,this.observedElements=new Map,this._callback=e=>{this.isDisposed||this.isPaused||this.callback(e)},this.observedProperties=new Set(e)}}var eI=i(8034).gj;class eF{static setConfig(e){this.config=e}static get useCssTransitionObserver(){var e;return(null==(e=this.config)?void 0:e.useCssTransitionObserver)&&CSS.supports("transition-behavior","allow-discrete")}init(){this.isDisposed=!1,this.mutationObserver=new MutationObserver(this.mutationCallback),eF.useCssTransitionObserver&&(this.cssTransitionObserver=new ek(this.observedProperties,this.cssTransitionCallback),this.cssTransitionObserver.init())}dispose(){var e,t;null==(e=this.mutationObserver)||e.disconnect(),null==(t=this.cssTransitionObserver)||t.dispose(),this.observedElements.clear(),this.isDisposed=!0}observe(e){var t;if(!this.isDisposed)for(let i of(null==(t=this.cssTransitionObserver)||t.observe(e),e))this.observedElements.has(i)||(this.observeElement(i),this.observedElements.add(i))}unobserve(e){var t,i;if(!this.isDisposed){for(let i of(null==(t=this.mutationObserver)||t.disconnect(),e))this.observedElements.delete(i);for(let e of this.observedElements)this.observeElement(e);null==(i=this.cssTransitionObserver)||i.unobserve(e)}}pause(){var e;if(!this.isDisposed&&!this.isPaused){if(this.isPaused=!0,this.mutationObserver){let e=this.mutationObserver.takeRecords();this.mutationCallback(e,this.mutationObserver),this.mutationObserver.disconnect(),this.mutationObserver=null}null==(e=this.cssTransitionObserver)||e.pause()}}resume(){var e;if(!this.isDisposed&&this.isPaused){if(this.isPaused=!1,!this.mutationObserver)for(let e of(this.mutationObserver=new MutationObserver(this.mutationCallback),this.observedElements))this.observeElement(e);null==(e=this.cssTransitionObserver)||e.resume()}}observeElement(e){var t;null==(t=this.mutationObserver)||t.observe(e,{attributes:!0,attributeFilter:["style","class",C,T]})}constructor(e,t){this.observedProperties=e,this.callback=t,this.isDisposed=!0,this.isPaused=!1,this.observedElements=new Set,this.mutationObserver=null,this.cssTransitionObserver=null,this.mutationCallback=e=>{if(this.isDisposed)return;let t=new Set;for(let i of e)i.target instanceof HTMLElement&&this.observedElements.has(i.target)&&t.add(i.target);if(t.size>0){if(this.cssTransitionObserver){var i;this.pause(),null==(i=this.cssTransitionObserver)||i.revertTransitions(t),this.resume(),eI(()=>{var e;this.pause(),null==(e=this.cssTransitionObserver)||e.reapplyTransitions(t),this.resume()})}this.callback(t)}},this.cssTransitionCallback=e=>{this.isDisposed||this.callback(e)}}}eF.config=null;class eO{static wrap(e,t){return e?e.replace(this.CSS_PLACEHOLDER,t):t}static getRuleWrapper(e){if(!e.parentRule)return;let t=e,i=this.CSS_PLACEHOLDER;for(;t.parentRule;)t.parentRule instanceof CSSGroupingRule&&(i=t.parentRule.cssText.split("{")[0]+" { "+i+" }"),t=t.parentRule;return i}}eO.CSS_PLACEHOLDER="{{QUALIFIED_CSS_PLACEHOLDER}}";var eM=i(8034).gj,eR=i(8034).pP;class eP{add(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];this.pendingItems.push(...t)}addAndSchedule(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];this.pendingItems.push(...t),this.scheduleExecution()}scheduleExecution(){null===this.scheduledExecution&&(this.scheduledExecution=this.scheduleNextE
3xecution())}clearAndCancel(){this.pendingItems.length=0,this.cancelScheduledExecution()}executeImmediately(){this.cancelScheduledExecution(),this.executeBatch()}scheduleNextExecution(){return eM(()=>this.executeBatch())}cancelScheduledExecution(){null!==this.scheduledExecution&&(this.scheduledExecution&&eR(this.scheduledExecution),this.scheduledExecution=null)}executeBatch(){this.processBatch([...this.pendingItems]),this.pendingItems.length=0,this.scheduledExecution=null}constructor(e){this.processBatch=e,this.pendingItems=[],this.scheduledExecution=null}}let eD="qualified-offer-style-element-";class eL{static isStyleElementWrapper(e){return e.id.startsWith(eD)}addRule(e){this._rules.push(e)}clearRules(){this._rules=[]}writeRules(){let e="";for(let t of this._rules)e+=t;this.styleElement.textContent=e}init(e){let{disabled:t=!1,rules:i=[]}=void 0===e?{}:e;for(let e of i)this.addRule(e);i.length>0&&this.writeRules(),t||this.enable()}dispose(){this.styleElement.textContent="",this._rules=[],this.styleElement.remove()}enable(){this.styleElement.isConnected||(document.head.appendChild(this.styleElement),queueMicrotask(()=>{this.styleElement.isConnected||document.body.appendChild(this.styleElement)}))}disable(){this.styleElement.remove()}constructor(){this.id=""+eD+eL.id++,this._rules=[],this.styleElement=document.createElement("style"),this.styleElement.id=this.id}}eL.id=0;let eN=[["position","fixed"],["position","sticky"],["top","*"]],ej=["position:fixed","position:sticky","top:*"];class eB{get rules(){return this.observedSelectorValue.rules}constructor(e){this.observedSelectorValue=e}}class eU{get rules(){return this._rulesInfo}hasRule(e){return this._rules.has(e)}addRule(e){this._rules.has(e)||(this._rules.add(e),this._rulesInfo.add({rule:e,selector:e.selectorText,priority:e.style.getPropertyPriority(this.property),value:e.style.getPropertyValue(this.property),wrapper:eO.getRuleWrapper(e)}))}clear(){this._rules.clear(),this._rulesInfo.clear()}constructor(e){this.property=e,this.readonly=new eB(this),this._rulesInfo=new Set,this._rules=new Set}}class ez{get(e){return this.selectors.get(e)}constructor(e){this.selectors=e}}class eq{get(e){return this._map.get(e).readonly}getChangedProperties(e){let{clear:t=!1}=void 0===e?{}:e,i=new Set(this._changedProperties);return t&&this.clearChangedProperties(),i}addRule(e,t){let i=this._map.get(e);i.hasRule(t)||(i.addRule(t),this.setChangedProperties(e))}clear(){for(let e of this._map.values())e.clear();this.setChangedProperties(...this._map.keys())}setChangedProperties(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];for(let e of t)this._changedProperties.add(e)}clearChangedProperties(){this._changedProperties.clear()}constructor(){for(const[e,t]of(this.readonly=new ez(this),this._map=new Map,this._changedProperties=new Set,this._map=new Map,eN)){const i=e+":"+t;this._map.set(i,new eU(e))}}}var eH=i(8034).pS;let eV="qualified-offer-crossorigin-node";class eW{static setConfig(e){this.config=e}static getInstance(){var e;return null!=(e=this.instance)?e:this.instance=new eW}get current(){return this.observedSelectors.readonly}async load(){var e,t,i;if(this.initialized||(this.observe(eW.noop),!(null==(t=eW.config)?void 0:t.handleCrossOriginStylesheets)||!this.crossOriginStylesheetsHolder))return;let n=[];for(let t of null!=(e=null==(i=this.crossOriginStylesheetsHolder.shadowRoot)?void 0:i.querySelectorAll("link"))?e:[])n.push(new Promise((e,i)=>{try{t.sheet?e(void 0):(t.addEventListener("load",e),t.addEventListener("error",i),t.addEventListener("abort",i),t.addEventListener("timeout",i))}catch(e){i(Error("Failed to load cross-origin stylesheet"))}}));await Promise.race([Promise.allSettled(n).then(()=>this.selectorUpdateQueue.executeImmediately()),new Promise(e=>eH(e,5e3))])}observe(e,t){return void 0===t&&(t=ej),e!==eW.noop&&this.unobserve(eW.noop),this.initialize(),this.observers.set(e,t),this.selectorUpdateQueue.executeImmediately(),()=>this.unobserve(e)}unobserve(e){this.observers.delete(e)}dispose(){var e,t;null==(e=this.styleNodesObserver)||e.disconnect(),this.styleNodesObserver=null,this.selectorUpdateQueue.clearAndCancel(),null==(t=this.crossOriginStylesheetsHolder)||t.remove(),this.observers.clear(),this.observedSelectors.clear(),this.initialized=!1}initialize(){if(!this.initialized)for(let e of(this.initialized=!0,this.insertCrossOriginStylesheetHolder(),this.styleNodesObserver=new MutationObserver(this.handleStyleMutations),this.styleNodesObserver.observe(document.head,{childList:!0}),this.styleNodesObserver.observe(document.body,{childList:!0}),this.styleNodesObserver.observe(this.crossOriginStylesheetsHolder.shadowRoot,{childList:!0}),document.styleSheets))this.handle(e)}insertCrossOriginStylesheetHolder(){this.crossOriginStylesheetsHolder=document.createElement("div"),this.crossOriginStylesheetsHolder.style.display="none",this.crossOriginStylesheetsHolder.attachShadow({mode:"open"}),document.body.appendChild(this.crossOriginStylesheetsHolder)}shouldHandle(e){return!new URL(e instanceof HTMLLinkElement?e.href:e).searchParams.has("family")}handle(e){if(e instanceof HTMLStyleElement&&eL.isStyleElementWrapper(e))return;let t=e instanceof CSSStyleSheet?e:e.sheet;if(!t)return;let i=null;if(t.href&&!t.href.startsWith(window.location.origin)&&t.ownerNode instanceof HTMLLinkElement&&(null===t.ownerNode.crossOrigin||"use-credentials"===t.ownerNode.crossOrigin))return void this.handleCrossOriginStylesheet(t);try{i=t.cssRules}catch(i){var n,r;this.debugLog("Failed to get css rules",{href:null!=(n=t.href)?n:"no href"}),e instanceof HTMLElement&&e.hasAttribute(eV)?(this.debugLog("Failed to get css rules with cross origin node",{href:null!=(r=t.href)?r:"no href"}),e.remove()):this.handleCrossOriginStylesheet(t);return}this.iterateRules(i),e instanceof HTMLElement&&e.hasAttribute(eV)&&e.remove()}handleCrossOriginStylesheet(e){var t,i,n,r,s;let o;if((null==(t=eW.config)?void 0:t.handleCrossOriginStylesheets)&&e.href&&this.shouldHandle(e.href)){if(e.ownerNode instanceof HTMLLinkElement?o=e.ownerNode.cloneNode():((o=document.createElement("link")).href=null!=(s=e.href)?s:"",o.rel="stylesheet"),null==(i=eW.config)?void 0:i.cacheBustCrossOriginStylesheets){let e=new URL(o.href);e.searchParams.set("_q_cache_bust","1"),o.href=e.toString()}o.crossOrigin="anonymous",o.setAttribute("async",""),o.setAttribute(eV,""),null==(r=this.crossOriginStylesheetsHolder)||null==(n=r.shadowRoot)||n.appendChild(o)}}iterateRules(e){for(let t of null!=e?e:[]){if(t instanceof CSSGroupingRule&&this.iterateRules(t.cssRules),t instanceof CSSImportRule){t.styleSheet&&this.handle(t.styleSheet);continue}if(t instanceof CSSStyleRule)for(let e=0;e<eN.length;e++){let[i,n]=eN[e],r=t.style.getPropertyValue(i);r&&("*"===n?this.observedSelectors.addRule(""+i+":*",t):r===n&&this.observedSelectors.addRule(i+":"+n,t))}}}requestUpdate(e){this.selectorUpdateQueue.add(e),0!==this.observers.size&&this.selectorUpdateQueue.scheduleExecution()}notify(e){for(let[t,i]of this.observers)i.some(t=>e.has(t))&&t(this.current)}debugLog(e,t){(0,w.dI)("[StyleSelectorObserver] "+e,t)}constructor(){this.initialized=!1,this.observedSelectors=new eq,this.styleNodesObserver=null,this.crossOriginStylesheetsHolder=null,this.observers=new Map,this.handleStyleMutations=e=>{let t=new Set;for(let i of e)if("childList"===i.type)for(let e of i.addedNodes)(e instanceof HTMLStyleElement||e instanceof HTMLLinkElement&&"stylesheet"===e.rel)&&t.add(e);for(let e of t)e instanceof HTMLStyleElement&&this.requestUpdate(e),e instanceof HTMLLinkElement&&this.shouldHandle(e)&&e.addEventListener("load",()=>this.requestUpdate(e))},this.processNodes=e=>{for(let t of e)this.handle(t);if(0===this.observers.size)return;let t=this.observedSelectors.getChangedProperties({clear:!0});0!==t.size&&this.notify(t)}
3,this.selectorUpdateQueue=new eP(this.processNodes)}}eW.config=null,eW.instance=null,eW.noop=()=>{};class eQ{init(){this.styleSelectorObserver.observe(this.onSelectorChange,[""+this.options.property+":*"]),this.onSelectorChange(this.styleSelectorObserver.current)}dispose(){this.styleSelectorObserver.unobserve(this.onSelectorChange)}writeStyles(e){let t=0;for(let{selector:i,value:n,priority:r,wrapper:s}of e.rules){let e=":is("+i+")["+this.options.dataAttribute+"]",o=""===r?"":"!important",a="0"===n?"0px":n,l="";l="auto"===a?this.getAutoRuleCssText(e,o):this.isVar(a)?this.getVarRuleCssText(e,a,o):this.getRuleCssText(e,a,o);let c=s?eO.wrap(s,l):l;this.options.styleElement.addRule(c),t++}t>0&&this.options.styleElement.writeRules()}getAutoRuleCssText(e,t){return e+" { "+this.options.property+": auto "+t+"; }"}getRuleCssText(e,t,i){return e+" { "+this.options.property+": calc("+t+" + "+this.options.offsetCssValue+") "+i+"; }"}isVar(e){return e.trim().match(/^var\(--.*\)$/)}getVarRuleCssText(e,t,i){let n=t.replace(/^(var\([^,)]+,\s*)0(\s*\))$/,"$10px$2"),r=n.replace(/^var\(([^,)]+).*\)$/,"$1"),s="calc("+n+" * 1px)";return[this.getRuleCssText(e,n,i),"@container style("+r+": 0) { "+this.getRuleCssText(e,s,i)+"}",this.getRuleCssText(e+':is([style*="'+r+'"])',n,i),this.getRuleCssText(e+':is([style*="'+r+':0"])',s,i)].join("")}constructor(e){this.options=e,this.styleSelectorObserver=eW.getInstance(),this.onSelectorChange=e=>{let t=e.get(""+this.options.property+":*");t&&this.writeStyles(t)}}}let eJ="--qualified-offer-header-inline-style-offset";class eK{init(){this.isDisposed=!1,this.elements.clear()}dispose(){for(let[e,t]of this.elements)this.restoreElement(e,t);this.elements.clear(),this.isDisposed=!0}add(e){if(this.isDisposed||this.elements.has(e))return;let t=e.style.getPropertyValue(this.options.property);if(!t)return;let i=e.style.getPropertyPriority(this.options.property);this.elements.set(e,{priority:i,value:t}),this.shiftElement(e,{priority:i,value:t})}update(e){if(this.isDisposed)return;if(!this.elements.has(e))return void this.add(e);let t=e.style.getPropertyValue(this.options.property);if(!t)return void this.elements.delete(e);if(t.includes(eJ))return;let i=e.style.getPropertyPriority(this.options.property);this.elements.set(e,{priority:i,value:t}),this.shiftElement(e,{priority:i,value:t})}remove(e){if(this.isDisposed||!this.elements.has(e))return;let{priority:t,value:i}=this.elements.get(e);this.elements.delete(e),e.style.getPropertyValue(this.options.property).includes(eJ)&&this.restoreElement(e,{priority:t,value:i})}restoreElement(e,t){let{value:i,priority:n}=t;e.style.setProperty(this.options.property,i,n)}shiftElement(e,t){let{value:i,priority:n}=t;e.style.setProperty(this.options.property,"calc("+i+" + var("+eJ+", "+this.options.offsetCssValue+"))",n)}constructor(e){this.options=e,this.isDisposed=!0,this.elements=new Map}}var eG=i(8034).Qj,eY=i(8034).LA;class e${init(){this.isDisposed=!1,this.selectorObserver.observe(this.onSelectorChange),this.observe()}dispose(){this.disconnect(),this.selectorObserver.unobserve(this.onSelectorChange),this.isDisposed=!0}observe(){eG("animationstart",this.eventHandler),this.styleElement.init({rules:this.getAllRules()})}disconnect(){eY("animationstart",this.eventHandler),this.styleElement.dispose(),this.newElementsQueue.clearAndCancel()}getAllRules(){let e=[this.selectorObserver.current.includedSelector,...this.selectorObserver.current.rules],t=":is("+this.selectorObserver.current.ignoredSelector+")",i=["@keyframes "+this.animationName+" {}"];for(let n of e)i.push(this.getRule(n,t));return i}getRule(e,t){let i=this.getSelector(e,t),n=this.getWrapper(e),r=this.getCssText(i);return eO.wrap(n,r)}getSelector(e,t){return":is("+("string"==typeof e?e:e.selector)+"):not("+t+")"}getWrapper(e){return"string"==typeof e?void 0:e.wrapper}getCssText(e){return e+" { animation: "+this.animationName+" 1ms; }"}constructor(e,t){this.selectorObserver=e,this.callback=t,this.animationName="qualified-offer-element-observer-animation-"+e$.id++,this.isDisposed=!0,this.styleElement=new eL,this.onSelectorChange=()=>{this.newElementsQueue.executeImmediately(),this.disconnect(),this.observe()},this.eventHandler=e=>{e.animationName===this.animationName&&e.target instanceof HTMLElement&&this.newElementsQueue.addAndSchedule(e.target)},this.processBatch=e=>{this.isDisposed||0===e.length||this.callback([...new Set(e)])},this.newElementsQueue=new eP(this.processBatch)}}e$.id=0;var eX=i(8034).zh,eZ=i(8034).kZ;class e0{init(){this.isDisposed=!1,eX("resize",this.onResize)}dispose(){eZ("resize",this.onResize),this.isDisposed=!0}_callback(){this.isDisposed||this.callback()}constructor(e,t="both",i=0){this.callback=e,this.watch=t,this.lastWidth=window.innerWidth,this.lastHeight=window.innerHeight,this.isDisposed=!0,this._onResize=()=>{let e=window.innerWidth!==this.lastWidth;if("width"===this.watch&&!e)return;let t=window.innerHeight!==this.lastHeight;"height"===this.watch&&!t||(e||t)&&(this.lastWidth=window.innerWidth,this.lastHeight=window.innerHeight,this._callback())},this.onResize=i>0?ex(this._onResize,i):this._onResize}}class e1{init(e){let{initialElements:t}=void 0===e?{}:e;this.isDisposed=!1,this.newElementsObserver.init(),this.elementStyleChangeObserver.init(),this.windowResizeObserver.init(),this.observedElements.clear(),t&&(this.addElements(t),this.onUpdateElements())}dispose(){this.newElementsObserver.dispose(),this.elementStyleChangeObserver.dispose(),this.windowResizeObserver.dispose(),this.observedElements.clear(),this.isDisposed=!0}pauseChangeObserver(){this.elementStyleChangeObserver.pause()}resumeChangeObserver(){this.elementStyleChangeObserver.resume()}addElements(e){for(let t of e)this.observedElements.add(t);this.elementStyleChangeObserver.observe(e)}removeElements(e){for(let t of e)this.observedElements.delete(t);this.elementStyleChangeObserver.unobserve(e)}_callback(e){this.isDisposed||this.callback(e)}constructor(e,t){this.selectorObserver=e,this.callback=t,this.isDisposed=!0,this.observedElements=new Set,this.onNewElements=e=>{if(this.isDisposed)return;let t=[];for(let i of e)!this.observedElements.has(i)&&i.matches(this.selectorObserver.current.value)&&t.push(i);0!==t.length&&(this.addElements(t),this._callback({added:t,removed:[],changed:[]}))},this.onUpdateElements=e=>{if(void 0===e&&(e=this.observedElements),this.isDisposed)return;let t=[],i=[],n=this.selectorObserver.current;for(let r of e)this.observedElements.has(r)&&(r.matches(n.value)?i.push(r):t.push(r));(0!==t.length||0!==i.length)&&(this.removeElements(t),this._callback({added:[],removed:t,changed:i}))},this.newElementsObserver=new e$(e,this.onNewElements),this.elementStyleChangeObserver=new eF(["position"],this.onUpdateElements),this.windowResizeObserver=new e0(this.onUpdateElements,"width",250)}}class e2{get value(){return this._value}computeValue(){return":is("+[this.includedSelector,...this.rules.map(e=>e.selector)].join(",")+"):not(:is("+this.ignoredSelector+"))"}constructor(e,t,i){this.rules=e,this.includedSelector=t,this.ignoredSelector=i,this._value=this.computeValue()}}class e3{get current(){var e;return null!=(e=this._current)?e:this._current=this.compute(this.styleSelectorObserver.current)}init(){this.isDisposed=!1,this.styleSelectorObserver.observe(this.onSelectorChange,this.properties)}dispose(){this.styleSelectorObserver.unobserve(this.onSelectorChange),this.isDisposed=!0,this.observers.clear()}observe(e){return this.observers.add(e),()=>this.unobserve(e)}unobserve(e){this.observers.delete(e)}constructor(e,t){this.compute=e,this.properties=t,this.styleSelectorObserver=eW.getInstance(),this.isDisposed=!0,this._current=null,this.observers=new Set,this.onSelectorChange=()=>{if(this.isDisposed)return;let{didChange:e,newObservable:t}=this.computeNewObservable();if(e)for(let e of(this._current=t,this.observers))e(t)},this.computeNewObservable=()=>{var e;let t=this.compute(this.styleSelectorObserver.current);return(null==(e=this._current)?void 0:e.value)===t.value?{didChange:!1,newObservable:t}:{didChange:!0,newObservable:t}}}}class e4{get elements(){return this.shiftedElements}init(){this.isDisposed=!1,this.shiftedElements=new Set}dispose(){if(this.isDisposed=!0,this.shiftedElements){for(let e of this.shiftedElements)e.removeAttribute(this.options.dataAttribute);this.shiftedElements.clear(),this.shiftedElements=null}}add(e){this.shiftedElements&&!this.isDisposed&&(this.shiftedElements.add(e),e.setAttribute(this.options.dataAttribute,"true"))}has(e){var t,i;return null!=(t=null==(i=this.shiftedElements)?void 0:i.has(e))&&t}remove(e){this.shiftedElements&&!this.isDisposed&&(this.shiftedElements.delete(e),e.removeAttribute(this.options.dataAttribute))}constructor(e){this.options=e,this.shiftedElements=null,this.isDisposed=!0}}let e5={header:["htmlOffset","externalStylesOffset"]};class e8{static get(e){var t;return null!=(t=this.instances[e])?t:this.instances[e]=new e8(e,e5[e])}get(e){return this.styleElements[e]}dispose(){for(let e of this.ids)this.styleElements[e].dispose();delete e8.instances[this.key]}constructor(e,t){for(const i of(this.key=e,this.ids=t,this.styleElements={},t))this.styleElements[i]=new eL}}e8.instances={};let e6="qualified-offer-header-shifted-element";class e9{static get ignoredSelectors(){return this._ignoredSelectors}static get includedSelectors(){return this._includedSelectors}static async setup(e){this.isInitialized||("registerProperty"in window.CSS&&window.CSS.registerProperty({name:x,syntax:"<length>",inherits:!0,initialValue:"0px"}),e&&(eW.setConfig(e),eF.setConfig(e)),(null==e?void 0:e.excludedSelectors)&&(this._ignoredSelectors+=",:is("+e.excludedSelectors+")"),(null==e?void 0:e.includedSelectors)&&(this._includedSelectors+=",:is("+e.includedSelectors+")"),await eW.getInstance().load(),this.isInitialized=!0)}createHost(e){return D('\n <div id="'+N(e)+'" style="position:fixed;left:0;top:0;width:100%;height:fit-content;z-index:2147483641"></div>\n ')}insertHost(e){this.initialize(),this.shiftedElementsManager.init(),this.insertHostInWebsite(e),this.initHtmlOffsetStyles(),this.inlineStyleManager.init(),this.externalStyleManager.init(),this.prepareInitialShiftedElements(),this.styles.get("externalStylesOffset").init()}afterInsertAnimation(e){null==this.restoreInitialShiftedElements||this.restoreInitialShiftedElements.call(this),this.updateHeaderHeight(e),this.selectorObserver.init(),this.matchingElementsObserver.init({initialElements:this.shiftedElementsManager.elements}),this.hostResizeObserver.init(e)}beforeRemoveAnimation(){this.selectorObserver.dispose(),this.matchingElementsObserver.dispose(),this.hostResizeObserver.dispose(),this.prepareExitShiftedElements()}removeHost(e){e.remove(),this.shiftedElementsManager.dispose(),this.externalStyleManager.dispose(),this.inlineStyleManager.dispose(),this.styles.dispose(),this.cssVars.dispose(),null==this.restoreExitShiftedElements||this.restoreExitShiftedElements.call(this)}initialize(){this.isInitialized||(this.selectorObserver=this.createSelectorObserver(),this.matchingElementsObserver=new e1(this.selectorObserver,this.handleMatchingElements),this.hostResizeObserver=new eC(this.updateHeaderHeight,"height",250),this.externalStyleManager=new eQ({property:"top",styleElement:this.styles.get("externalStylesOffset"),offsetCssValue:"var("+x+", 0px)",dataAttribute:e6}),this.inlineStyleManager=new eK({property:"top",offsetCssValue:"var("+x+", 0px)"}),this.shiftedElementsManager=new e4({dataAttribute:e6}),this.isInitialized=!0)}insertHostInWebsite(e){document.body.insertBefore(e,document.body.firstElementChild)}initHtmlOffsetStyles(){let{marginTop:e,minHeight:t}=window.getComputedStyle(document.documentElement);this.styles.get("htmlOffset").init({rules:["html {\n "+("100%"===t?"":"height: calc(100dvh - "+e+" - var("+x+")) !important;")+"\n margin-top: calc("+e+" + var("+x+")) !important;\n top: 0 !important;\n position: relative !important;\n overflow-y: visible !important;\n }"]})}prepareInitialShiftedElements(){let{restoreTransitions:e}=this.handleMatchingElements({added:document.querySelectorAll(this.selectorObserver.current.value),removed:[],changed:[]},{shouldRestoreTransitions:!1});this.restoreInitialShiftedElements=()=>{e(),this.restoreInitialShiftedElements=null}}prepareExitShiftedElements(){var e;if(!(null==(e=this.shiftedElementsManager.elements)?void 0:e.size))return;let t=new Map;for(let e of this.shiftedElementsManager.elements){let{transition:i}=window.getComputedStyle(e);t.set(e,{transition:i})}let i=this.disableTransitions([t]);this.restoreExitShiftedElements=()=>{i(),this.restoreExitShiftedElements=null}}processMatchingElements(e){let t=new Map,i=new Map,n=new Map;for(let i of e.added){if(this.shiftedElementsManager.has(i))continue;let{position:e,transition:n}=window.getComputedStyle(i);this.shouldShiftElement(i,e)&&t.set(i,{position:e,transition:n})}for(let r of e.changed){let{position:e,transition:s}=window.getComputedStyle(r);if(!this.shouldShiftElement(r,e)){n.set(r,{position:e,transition:s});continue}if(!this.shiftedElementsManager.has(r)){t.set(r,{position:e,transition:s});continue}i.set(r,{position:e,transition:s})}for(let t of e.removed){if(!this.shiftedElementsManager.has(t))continue;let{position:e,transition:i}=window.getComputedStyle(t);n.set(t,{position:e,transition:i})}return{added:t,changed:i,removed:n}}addElement(e){this.shiftedElementsManager.add(e),this.inlineStyleManager.add(e)}updateElement(e){this.inlineStyleManager.update(e)}removeElement(e){this.inlineStyleManager.remove(e),this.shiftedElementsManager.remove(e)}shouldShiftElement(e,t){return!e.hasAttribute(C)&&(!!e.hasAttribute(T)||"fixed"===t||"sticky"===t)}createSelectorObserver(){return new e3(e=>new e2([...e.get("position:fixed").rules,...e.get("position:sticky").rules],e9.includedSelectors,e9.ignoredSelectors),["position:fixed","position:sticky"])}disableTransitions(e){let t=new Map;for(let i of e)for(let[e,{transition:n}]of i)"none"!==n&&""!==n&&t.set(e,{value:e.style.getPropertyValue("transition"),priority:e.style.getPropertyPriority("transition")});for(let e of t.keys())e.style.setProperty("transition","none","important");return()=>{for(let[e,{value:i,priority:n}]of t.entries())i?e.style.setProperty("transition",i,n):e.style.removeProperty("transition")}}constructor(){this.styles=e8.get("header"),this.cssVars=eS.get("header"),this.isInitialized=!1,this.restoreInitialShiftedElements=null,this.restoreExitShiftedElements=null,this.updateHeaderHeight=e=>{this.cssVars.set(x,""+e.offsetHeight+"px")},this.handleMatchingElements=(e,t)=>{let{shouldRestoreTransitions:i=!0}=void 0===t?{}:t;this.matchingElementsObserver.pauseChangeObserver();let{added:n,changed:r,removed:s}=this.processMatchingElements(e),o=this.disableTransitions([n,r,s]);try{for(let[e]of n)this.addElement(e);for(let[e]of r)this.updateElement(e);for(let[e]of s)this.removeElement(e)}finally{i&&o()}return this.matchingElementsObserver.resumeChangeObserver(),{restoreTransitions:o}}}}e9.isInitialized=!1,e9._ignoredSelectors=["["+A+"]","dialog",'[role="dialog"]',"#q-messenger-frame","#qualified-multimodal-host","#q-docked-skeleton","["+C+"]"].join(","),e9._includedSelectors=['*[style*="position:fixed"]','*[style*="position: fixed"]','*[style*="position:sticky"]','*[style*="position: sticky"]',"["+T+"]"].join(",");var e7=i(8034).pS;class te{get animations(){return this.options.animations}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}constructor(e){this.options=e,this[Symbol.toStringTag]="AnimationResult";const t=[],i=Promise.all(e.animations.map(e=>e.finished));
3if(t.push(i),e.timeout){const i=new Promise(t=>e7(()=>t(null),e.timeout));t.push(i)}this.promise=Promise.race(t).then(t=>null===t?((0,w.dI)("Animation timed out",{timeout:String(e.timeout)}),[]):t),this.promise.finally(()=>null==e.cleanup?void 0:e.cleanup.call(e))}}class tt{animate(){switch(this.config.type){case"simple":return new te(this.createSimpleAnimation(this.config,!1));case"complex":return new te(this.createComplexAnimation(this.config,!1))}}reverse(){switch(this.config.type){case"simple":return new te(this.createSimpleAnimation(this.config,!0));case"complex":return new te(this.createComplexAnimation(this.config,!0))}}createSimpleAnimation(e,t){let i=t?[...e.keyframes].reverse():e.keyframes,n=[{element:this.host,keyframes:i}];if(e.additionalElements)for(let{element:r,keyframes:s}of e.additionalElements){let e=s?t?[...s].reverse():s:i;n.push({element:r,keyframes:e})}return{animations:n.map(t=>{let{element:i,keyframes:n}=t;return i.animate(n,e.options)}),timeout:this.getTimeout(e.options),cleanup:e.cleanup}}createComplexAnimation(e,t){let{options:i,perform:n}=e,{animations:r,cleanup:s}=n(this.host,{options:i,reverse:t});return{animations:r,cleanup:s,timeout:this.getTimeout(i)}}getTimeout(e){var t;let i=Number(null!=(t=e.duration)?t:0);return Math.min(1.5*i,i+1e3)}constructor(e,t){this.host=e,this.config=t}}class ti{get(e,t){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return this.fadeIn(e);switch(t.type){case"SLIDE_UP":return this.slideUp(e);case"SLIDE_RIGHT":return this.slideRight(e);case"PUSH_DOWN":return this.pushDown(e);case c:return this.fadeIn(e);default:throw Error("Unknown animation: "+t.type)}}}class tn extends ti{slideUp(e){let{offsetHeight:t}=e,i=e.style.getPropertyValue("bottom");return e.style.setProperty("bottom","calc(-"+t+"px + var("+k+", 0px))"),new tt(document.documentElement,{type:"simple",keyframes:[{[k]:"0px"},{[k]:""+t+"px"}],options:this.options,cleanup:()=>e.style.setProperty("bottom",i)})}pushDown(e){return new tt(e,{type:"simple",keyframes:[{transform:"translateY(-100%)"},{transform:"translateY(0)"}],options:this.options})}fadeIn(e){return new tt(e,{type:"simple",keyframes:[{opacity:0},{opacity:1}],options:this.options})}slideRight(e){return new tt(e,{type:"simple",keyframes:[{transform:"translateX(-100%)"},{transform:"translateX(0)"}],options:this.options})}constructor(...e){super(...e),this.options={duration:300,easing:"ease-out"}}}class tr extends ti{slideUp(e){return new tt(e,{type:"simple",keyframes:[{transform:"translateY(100%)"},{transform:"translateY(0)"}],options:this.options})}fadeIn(e){return new tt(e,{type:"simple",keyframes:[{opacity:0},{opacity:1}],options:this.options})}slideRight(e){return new tt(e,{type:"simple",keyframes:[{transform:"translateX(-100%)"},{transform:"translateX(0)"}],options:this.options})}pushDown(e){let{offsetHeight:t}=e,i=e.style.getPropertyValue("top");return e.style.setProperty("top","calc(-"+t+"px + var("+x+", 0px))"),new tt(document.documentElement,{type:"simple",keyframes:[{[x]:"0px"},{[x]:""+t+"px"}],options:this.options,cleanup:()=>e.style.setProperty("top",i)})}constructor(...e){super(...e),this.options={duration:300,easing:"ease-out"}}}class ts extends ti{slideUp(e){return new tt(e,{type:"simple",keyframes:[{opacity:0},{opacity:1}],options:this.options,additionalElements:[{element:e.firstElementChild,keyframes:[{transform:"translateY(50%)"},{transform:"translateY(0)"}]}]})}pushDown(e){return new tt(e,{type:"simple",keyframes:[{opacity:0},{opacity:1}],options:this.options,additionalElements:[{element:e.firstElementChild,keyframes:[{transform:"translateY(-50%)"},{transform:"translateY(0)"}]}]})}fadeIn(e){return new tt(e,{type:"simple",keyframes:[{opacity:0},{opacity:1}],options:this.options})}slideRight(e){return new tt(e,{type:"simple",keyframes:[{opacity:0},{opacity:1}],options:this.options,additionalElements:[{element:e.firstElementChild,keyframes:[{transform:"translateX(-50%)"},{transform:"translateX(0)"}]}]})}constructor(...e){super(...e),this.options={duration:300,easing:"ease-out"}}}class to extends ti{slideUp(e){return new tt(e,{type:"simple",keyframes:[{transform:"translateY(100%)"},{transform:"translateY(0)"}],options:this.options})}pushDown(e){return new tt(e,{type:"simple",keyframes:[{transform:"translateY(-100%)"},{transform:"translateY(0)"}],options:this.options})}fadeIn(e){return new tt(e,{type:"simple",keyframes:[{opacity:0}
3,{opacity:1}],options:this.options})}slideRight(e){return new tt(e,{type:"simple",keyframes:[{transform:"translateX(-100%)"},{transform:"translateX(0)"}],options:this.options})}constructor(...e){super(...e),this.options={duration:300,easing:"ease-out"}}}class ta{getAnimator(e,t,i){let n=this.ANIMATION_MANAGERS[t];if(!n)throw Error("Unknown location: "+t);return n.get(e,i)}constructor(){this.ANIMATION_MANAGERS={[v]:new tn,[y]:new tr,[b]:new ts,[_]:new to,[g]:null}}}var tl=i(8619);function tc(e){let{name:t}=e.prototype.constructor;return({[t]:class extends e{constructor(...e){super(...e),this.host.innerHTML="",this.host.appendChild(this.render())}}})[t]}function tu(){let e=(0,tl._)(['\n <a id="','" class="cta modal" href="','" target="','">\n ',"\n </a>\n "]);return tu=function(){return e},e}function td(){let e=(0,tl._)(['\n <button id="','" class="cta modal" type="submit" form="','">\n ',"\n </button>\n "]);return td=function(){return e},e}function th(){let e=(0,tl._)(['\n <a id="','" class="cta banner-button" href="','" target="','">\n ',"\n </a>\n "]);return th=function(){return e},e}function tp(){let e=(0,tl._)(['\n <a id="','" class="banner-link" href="','" target="','">\n ',"\n </a>\n "]);return tp=function(){return e},e}function tm(){let e=(0,tl._)(['\n <button id="','" class="cta banner-button submit" type="submit">\n ',"\n </button>\n "]);return tm=function(){return e},e}class tf extends er{get style(){var e,t,i,n;let{borderColor:r,borderRadius:s,backgroundColor:o,color:a,fontFamily:l}=this.props;return"\n .cta {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n gap: 10px;\n line-height: 150%;\n text-decoration: none;\n "+(l?"font-family: '"+l+"';":"")+"\n margin: 0;\n font-size: 14px;\n box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.06);\n color: "+(null!=a?a:"#FFF")+";\n text-align: center;\n border: 1px solid "+(null!=r?r:"transparent")+";\n border-radius: "+(null!=s?s:"0px")+";\n }\n\n .cta.modal {\n height: 40px;\n padding: 4px 16px;\n align-self: stretch;\n background: "+(null!=o?o:"#000")+";\n "+(this.shouldSetDefaultFontWeight?"font-weight: 600;":"font-weight: unset;")+"\n flex-shrink: 0;\n\n &:is(:focus-visible) {\n outline: 2px solid "+(null!=(e=null!=(t=this.props.focusRingColor)?t:a)?e:"#FFF")+";\n outline-offset: 2px;\n filter: brightness(0.9);\n }\n\n &:is(:active:not(:disabled)) {\n scale: 0.97;\n }\n }\n\n .cta.banner-button {\n height: 32px;\n padding: 0px 24px;\n background: "+(null!=o?o:"#4E55FD")+";\n "+(this.shouldSetDefaultFontWeight?"font-weight: 500;":"font-weight: unset;")+"\n\n /* Set width to max-content to prevent line break in button text */\n max-width: max-content;\n min-width: max-content;\n width: max-content;\n\n &:is(:focus-visible) {\n outline: 2px solid "+(null!=(i=null!=(n=this.props.focusRingColor)?n:a)?i:"#FFF")+";\n outline-offset: 2px;\n filter: brightness(0.9);\n }\n\n &:is(:active:not(:disabled)) {\n scale: 0.97;\n }\n }\n\n .cta.banner-button.submit {\n height: 32px;\n }\n\n .banner-link {\n text-decoration: underline;\n color: "+(null!=a?a:"#FFF")+";\n font-size: 16px;\n "+(this.shouldSetDefaultFontWeight?"font-weight: 600;":"font-weight: unset;")+"\n flex: none;\n }\n "}get content(){switch(this.props.type){case"modal-button":return this.modalButton;case"modal-submit":return this.modalSubmit;case"banner-button":return this.bannerButton;case"banner-link":return this.bannerLink;case"banner-submit":return this.bannerSubmit}}get buttonId(){return U(this.props.id)}get modalButton(){return this.html(tu(),this.buttonId,this.props.href,this.target,this.props.text)}get modalSubmit(){return this.html(td(),this.buttonId,this.props.formId,this.props.text)}get bannerButton(){return this.html(th(),this.buttonId,this.props.href,this.target,this.props.text)}get bannerLink(){return this.html(tp(),this.buttonId,this.props.href,this.target,this.props.text)}get bannerSubmit(){return this.html(tm(),this.buttonId,this.props.text)}get target(){return"NEW_PAGE"===this.props.deliveryType?"_blank":"_self"}constructor(e,t){var i;super(e,null),this.hasOffersFontEnhancements=t,this.displayName="Button",this.shouldSetDefaultFontWeight=!0,(null==(i=this.props.text)?void 0:i.includes("<p>"))&&this.hasOffersFontEnhancements&&(this.shouldSetDefaultFontWeight=!1)}}function tg(){let e=(0,tl._)(['\n <button aria-label="Close" id="','" class="dism
3iss-button">\n <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 12 13" fill="none">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M3.41421 2.5L2 3.91421L4.82843 6.74264L2 9.57107L3.41422 10.9853L6.24264 8.15686L9.07107 10.9853L10.4853 9.57107L7.65685 6.74264L10.4853 3.91421L9.07107 2.5L6.24264 5.32843L3.41421 2.5Z"\n fill="','"\n />\n </svg>\n </button>\n ']);return tg=function(){return e},e}class tv extends er{get style(){let{focusRingColor:e,color:t,borderRadius:i,isModal:n,hasDismissButtonAccessibilityEnabled:r}=this.props;if(r){var s;return"\n .dismiss-button {\n position: absolute;\n top: 8px;\n right: 6px;\n background: none;\n border: 1px solid transparent;\n border-radius: "+(null!=i?i:"0px")+";\n cursor: pointer;\n margin: 0;\n padding: 10px;\n\n @media (max-width: 540px) {\n top: 12px;\n right: 6px;\n }\n\n &:is(:focus-visible) {\n outline: 2px solid "+(null!=(s=null!=e?e:t)?s:"#FFF")+";\n }\n }\n\n .dismiss-button > svg {\n display: block;\n margin: 0;\n width: "+(n?"16px":"12px")+";\n height: "+(n?"16px":"12px")+";\n padding: 0;\n }\n "}return"\n .dismiss-button {\n position: absolute;\n top: 18px;\n right: "+(n?"16px":"12px")+";\n width: "+(n?"16px":"12px")+";\n height: "+(n?"16px":"12px")+";\n background: none;\n border: none;\n cursor: pointer;\n margin: 0;\n padding: 0;\n\n @media (max-width: 540px) {\n top: 22px;\n right: 16px;\n }\n\n &:is(:focus, :focus-visible) {\n outline: 2px solid "+(null!=t?t:"white")+";\n outline-offset: 2px;\n }\n }\n\n .dismiss-button > svg {\n display: block;\n margin: 0;\n padding: 0;\n }\n "}get content(){let{id:e,color:t}=this.props;return this.html(tg(),j(e),null!=t?t:"white")}constructor(e){super(e,null),this.displayName="DismissButton"}}function ty(){let e=(0,tl._)(['\n <img\n src="','"\n class="','"\n alt="','"\n onerror="this.style.display=\'none\';"\n />\n ']);return ty=function(){return e},e}function tb(){let e=(0,tl._)([""]);return tb=function(){return e},e}class t_ extends er{get style(){return this.imageUrl?"\n ."+this.FOREGROUND_IMAGE_CLASS_NAME+" {\n position: relative;\n\n height: 52px;\n max-height: 52px;\n min-height: 52px;\n\n /* z-index ensures image displays over banner */\n z-index: 1;\n\n "+(this.isPlacementLeft&&this.isPositionFixed?"position: absolute;":"")+"\n "+(this.isPlacementLeft&&this.isPositionFixed?"left: "+this.FOREGROUND_IMAGE_LEFT_PADDING+";":"")+"\n "+(this.isPlacementLeft&&this.isPositionHugContent?"position: relative;":"")+"\n\n "+(this.isPlacementRight&&this.isPositionFixed?"position: absolute;":"")+"\n "+(this.isPlacementRight&&this.isPositionFixed?"right: "+this.FOREGROUND_IMAGE_RIGHT_PADDING+";":"")+"\n "+(this.isPlacementRight&&this.isPositionHugContent?"position: relative;":"")+"\n }\n ":""}get prependedContent(){return!this.hasImage||this.isPlacementRight?null:this.content}get appendedContent(){return!this.hasImage||this.isPlacementLeft?null:this.content}get content(){return this.imageUrl?this.html(ty(),this.imageUrl,this.FOREGROUND_IMAGE_CLASS_NAME,this.altText):this.html(tb())}get hasImage(){return!!(this.props.foregroundImageUrl&&this.props.foregroundImageConfig&&!this.isPlacementNone&&!this.isPlacementTop&&!this.isMobile)}get isPlacementNone(){return this.props.foregroundImageConfig.placement.type===m}get isPlacementTop(){return"TOP"===this.props.foregroundImageConfig.placement.type}get isPlacementLeft(){return!!this.hasImage&&this.props.foregroundImageConfig.placement.type===p}get isPlacementRight(){return!!this.hasImage&&this.props.foregroundImageConfig.placement.type===f}get isPositionFixed(){return"FIXED"===this.props.foregroundImageConfig.position.type}get isPositionHugContent(){return"HUG_CONTENT"===this.props.foregroundImageConfig.position.type}get cropSettings(){return ee(this.props.foregroundImageConfig.cropPxX,this.props.foregroundImageConfig.cropPxY,this.props.foregroundImageConfig.cropPxWidth,this.props.foregroundImageConfig.cropPxHeight,this.props.foregroundImageConfig.originalPxWidth,this.props.foregroundImageConfig.originalPxHeight)}get imageUrl(){return this.props.foregroundImageUrl&&this.cropSettings?ei(this.props.foregroundImageUrl,this.cropSettings):null}get altText(){return"Promotional banner image in page "+(this.props.location===y?"header":"footer")+" and placed "+(this.isPlacementLeft?"to the left of":"to the right of")+" promotional content"}constructor(e){super(e,null),this.displayName="ForegroundImageBanner",this.FOREGROUND_IMAGE_CLASS_NAME="foreground-image",this.FOREGROUND_IMAGE_LEFT_PADDING="12px",this.FOREGROUND_IMAGE_RIGHT_PADDING="35px"}}function tw(){let e=(0,tl._)(['\n <div class="headline banner">\n ',"\n </div>\n "]);return tw=function(){return e},e}function tE(){let e=(0,tl._)(['\n <div class="headline banner link">\n ',"\n ","\n </div>\n "]);return tE=function(){return e},e}function tS(){let e=(0,tl._)(["\n <div ",' class="headline modal" role="heading" aria-level="2">\n ',"\n </div>\n "]);return tS=function(){return e},e}function tA(){let e=(0,tl._)(["\n <div ",' class="headline modal sidebar" role="heading" aria-level="2">\n ',"\n </div>\n "]);return tA=function(){return e},e}class tx extends er{get style(){let{color:e,fontFamily:t}=this.props;return"\n .headline {\n font-weight: unset;\n "+(t?"font-family: '"+t+"';":"")+"\n margin: 0;\n padding: 0;
3\n overflow-wrap: anywhere;\n }\n\n .headline.modal {\n color: "+(null!=e?e:"#1B1B1B")+";\n font-size: 32px;\n "+(this.shouldSetDefaultFontWeight?"font-weight: 600;":"font-weight: unset;")+"\n line-height: 1.2;\n text-align: left;\n flex-shrink: 0;\n }\n\n .headline.modal.sidebar {\n font-size: 24px;\n }\n\n .headline.banner {\n color: "+(null!=e?e:"#FFF")+";\n font-size: 16px;\n "+(this.shouldSetDefaultFontWeight?"font-weight: 200;":"font-weight: unset;")+"\n line-height: 150%;\n max-width: 100%;\n max-height: 180px;\n overflow: hidden;\n }\n "}get content(){switch(this.props.type){case"banner":return this.banner;case"banner-link":return this.bannerLink;case"modal":return this.modal;case"sidebar-modal":return this.sidebarModal}}get banner(){return this.html(tw(),this.props.text)}get bannerLink(){return this.html(tE(),this.props.text,this.props.link)}get modal(){let e=this.props.offerId?'id="'+H(this.props.offerId)+'"':"";return this.html(tS(),e,this.props.text)}get sidebarModal(){let e=this.props.offerId?'id="'+H(this.props.offerId)+'"':"";return this.html(tA(),e,this.props.text)}constructor(e,t){var i;super(e,null),this.hasOffersFontEnhancements=t,this.displayName="Headline",this.shouldSetDefaultFontWeight=!0,(null==(i=this.props.text)?void 0:i.includes("<p>"))&&this.hasOffersFontEnhancements&&(this.shouldSetDefaultFontWeight=!1)}}function tC(){let e=(0,tl._)(['\n <div class="container ','">\n <div class="headline-cta">\n ',"\n ","\n ","\n ","\n </div>\n ","\n </div>\n "]);return tC=function(){return e},e}class tT extends eo{get style(){var e;let{variation:t}=this.props,i="";return this.isMobile&&(i="\n .container {\n padding: 15px 32px;\n\n .headline-cta {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n justify-content: space-between;\n text-align: left;\n width: auto;\n\n .banner {\n margin-right: 4px;\n max-width: 100%;\n }\n\n .headline {\n padding: 0;\n }\n }\n }\n "),"\n .container {\n display: flex;\n position: relative;\n justify-content: center;\n gap: 32px;\n align-items: center;\n background: "+(null!=(e=t.headlineStyle.backgroundColor)?e:"#000")+";\n box-shadow: 0px -1px 28px 0px rgba(0, 0, 0, 0.00);\n margin: 0;\n padding: 0 36px;\n height: auto;\n max-height: 200px;\n\n .headline-cta {\n display: flex;\n gap: 32px;\n align-items: center;\n justify-content: center;\n text-align: left;\n width: 100%;\n\n .headline {\n padding: 14px 0;\n }\n }\n\n p {\n margin: 0;\n }\n }\n\n .background-image-wrapper {\n "+(this.backgroundImageUrl?"\n background-image: url("+this.backgroundImageUrl+");\n background-position: center;\n background-size: cover;\n ":"")+"\n }\n\n "+i+"\n "}get content(){return this.html(tC(),this.backgroundImageUrl?"background-image-wrapper":"",this.foregroundImage.prependedContent,this.headline,this.cta,this.foregroundImage.appendedContent,this.dismissButton)}get cta(){let{buttonStyle:e,buttonText:t,buttonUrl:i,assetDeliveryType:n,headlineStyle:r}=this.props.variation;return new tf((0,R._)({},e,{id:this.id,text:t,href:i,deliveryType:n,type:"banner-button",focusRingColor:r.color}),this.hasOffersFontEnhancements)}get headline(){let{headlineStyle:e,headlineText:t}=this.props.variation;return new tx((0,R._)({},e,{text:t,type:"banner"}),this.hasOffersFontEnhancements)}get dismissButton(){var e,t;if(!this.props.allowDismiss)return null;let{headlineStyle:i,buttonStyle:n}=this.props.variation;
3return new tv({id:this.id,color:this.props.variation.headlineStyle.color,focusRingColor:null!=(e=null==i?void 0:i.color)?e:null,borderRadius:null!=(t=null==n?void 0:n.borderRadius)?t:"0px",hasDismissButtonAccessibilityEnabled:this.hasDismissButtonAccessibilityEnabled})}get location(){return this.props.location}constructor(e,t,i,n){super(e,null,t,i,n),this.displayName="ButtonBanner",this.type=u.HeadlineButton,this.ctaType=d,this.foregroundImage=new t_({location:this.location,foregroundImageConfig:this.props.foregroundImageConfig,foregroundImageUrl:this.props.foregroundImageUrl})}}function tk(){let e=(0,tl._)(['\n <div class="body">\n ',"\n </div>\n "]);return tk=function(){return e},e}tT=(0,n.Cg)([tc,(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",["u"<typeof ButtonBannerProps?Object:ButtonBannerProps,"u"<typeof HTMLElement?Object:HTMLElement,Boolean,Boolean])],tT);class tI extends er{get style(){let{color:e,fontFamily:t,allowScroll:i}=this.props;return"\n .body {\n color: "+(null!=e?e:"#1B1B1B")+";\n font-size: 14px;\n line-height: 22px;\n "+(t?"font-family: '"+t+"';":"")+"\n margin: 0;\n padding: 0;\n text-align: left;\n max-height: 60vh;\n "+(i?"overflow-y: auto;":"")+"\n overflow-wrap: anywhere;\n }\n "}get content(){return this.html(tk(),this.props.text)}constructor(e){super(e,null),this.displayName="Body"}}function tF(){let e=(0,tl._)(['\n <div class="','">\n <img\n src="','"\n class="','"\n onerror="this.style.display=\'none\';"\n alt="','"\n />\n </div>\n ']);return tF=function(){return e},e}function tO(){let e=(0,tl._)(['\n <div class="','">\n <div class="','">\n ',"\n </div>\n </div>\n "]);return tO=function(){return e},e}class tM extends er{get style(){return this.imageUrl?"\n ."+this.FOREGROUND_IMAGE_CLASS_NAME_WRAPPER+" {\n height: auto;\n overflow: hidden;\n display: flex;\n align-self: stretch;\n }\n ."+this.FOREGROUND_IMAGE_CLASS_NAME+" {\n max-width: "+this.maxWidth+";\n max-height: "+this.maxHeight+";\n min-width: 100%;\n min-height: 100%;\n object-fit: cover;\n }\n ":"\n ."+this.FOREGROUND_IMAGE_CLASS_NAME_WRAPPER+" {\n display: flex;\n align-self: stretch;\n }\n ."+this.FOREGROUND_IMAGE_MISSING_CLASS_NAME+" {\n width: "+(this.isMobile?this.FOREGROUND_IMAGE_MISSING_MOBILE_SIZE:this.FOREGROUND_IMAGE_MISSING_DEFAULT_SIZE)+";\n height: "+(this.isMobile?this.FOREGROUND_IMAGE_MISSING_MOBILE_SIZE:this.FOREGROUND_IMAGE_MISSING_DEFAULT_SIZE)+";\n min-width: 100%;\n min-height: 100%;\n background-color: #E6E9EC;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "}get isPlacementHorizontal(){return this.isPlacementLeft||this.isPlacementRight}get isPlacementVertical(){return this.isPlacementTop}get prependedContent(){return!this.hasImage||this.isPlacementRight?null:this.content}get appendedContent(){return!this.hasImage||this.isPlacementLeft||this.isPlacementTop?null:this.content}get content(){return this.imageUrl?this.html(tF(),this.FOREGROUND_IMAGE_CLASS_NAME_WRAPPER,this.imageUrl,this.FOREGROUND_IMAGE_CLASS_NAME,this.defaultAltText):this.html(tO(),this.FOREGROUND_IMAGE_CLASS_NAME_WRAPPER,this.FOREGROUND_IMAGE_MISSING_CLASS_NAME,tR)}get hasImage(){return!!(this.props.foregroundImageConfig&&!this.isPlacementNone)}get isPlacementNone(){return this.props.foregroundImageConfig.placement.type===m}get isPlacementTop(){return!!this.hasImage&&(this.isMobile||"TOP"===this.props.foregroundImageConfig.placement.type)}get isPlacementLeft(){return!!this.hasImage&&!this.isMobile&&this.props.foregroundImageConfig.placement.type===p}get isPlacementRight(){return!!this.hasImage&&!this.isMobile&&this.props.foregroundImageConfig.placement.type===f}get maxHeight(){return O[this.device][this.props.location]}get maxWidth(){return M[this.device][this.props.location]}get cropSettings(){return ee(this.props.foregroundImageConfig.cropPxX,this.props.foregroundImageConfig.cropPxY,this.props.foregroundImageConfig.cropPxWidth,this.props.foregroundImageConfig.cropPxHeight,this.props.foregroundImageConfig.originalPxWidth,this.props.foregroundImageConfig.originalPxHeight)}get imageUrl(){return this.props.foregroundImageUrl&&this.cropSettings?ei(this.props.foregroundImageUrl,this.cropSettings):null}get defaultAltText(){return this.props.location,"Promotional popup image placed "+(this.isPlacementLeft?"to the left of":this.isPlacementRight?"to the right of":"above")+" promotional content"}constructor(e){super(e,null),this.displayName="ForegroundImageModal",this.FOREGROUND_IMAGE_CLASS_NAME_WRAPPER="foreground-image-wrapper",this.FOREGROUND_IMAGE_CLASS_NAME="foreground-image",this.FOREGROUND_IMAGE_MISSING_CLASS_NAME="foreground-image-missing",this.FOREGROUND_IMAGE_MISSING_DEFAULT_SIZE="400px",this.FOREGROUND_IMAGE_MISSING_MOBILE_SIZE="200px"}}let tR='\n <svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g opacity="0.3">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M36.666 24.0003C36.666 22.1594 38.1584 20.667 39.9993 20.667C41.8403 20.667 43.3327 22.1594 43.3327 24.0003C43.3327 25.8413 41.8403 27.3337 39.9993 27.3337C38.1584 27.3337 36.666 25.8413 36.666 24.0003ZM39.9993 16.667C35.9493 16.667 32.666 19.9502 32.666 24.0003C32.666 28.0504 35.9493 31.3337 39.9993 31.3337C44.0494 31.3337 47.3327 28.0504 47.3327 24.0003C47.3327 19.9502 44.0494 16.667 39.9993 16.667ZM18.972 42.5262C20.8453 40.6528 22.111 39.3931 23.1807 38.577C24.2042 37.7961 24.81 37.6119 25.3359 37.6119C25.8619 37.6119 26.4676 37.7961 27.4912 38.577C28.5609 39.3931 29.8266 40.6528 31.6999 42.5262L35.9217 46.748L45.2551 56.0813C46.0361 56.8624 47.3024 56.8624 48.0835 56.0813C48.8645 55.3003 48.8645 54.0339 48.0835 53.2529L40.1663 45.3357C41.4137 44.1001 42.3555 43.2066 43.1807 42.577C44.2042 41.7961 44.81 41.6119 45.3359 41.6119C45.8619 41.6119 46.4676 41.7961 47.4912 42.577C48.5609 43.3931 49.8266 44.6528 51.6999 46.5262L53.2551 48.0813C54.0361 48.8624 55.3024 48.8624 56.0835 48.0813C56.8645 47.3003 56.8645 46.0339 56.0835 45.2529L54.5283 43.6977L54.4298 43.5992L54.4298 43.5992C52.6805 41.8498 51.2262 40.3954 49.9175 39.3969C48.5382 38.3445 47.0881 37.6119 45.3359 37.6119C43.5837 37.6119 42.1337 38.3445 40.7544 39.3969C39.7288 40.1794 38.6138 41.2419 37.3375 42.5069L34.5283 39.6977L34.4298 39.5992L34.4298 39.5992C32.6805 37.8498 31.2262 36.3954 29.9175 35.3969C28.5382 34.3445 27.0881 33.6119 25.3359 33.6119C23.5837 33.6119 22.1337 34.3445 20.7544 35.3969C19.4457 36.3954 17.9914 37.8498 16.2421 39.5992L16.1435 39.6977L11.9217 43.9196L7.92172 47.9196C7.14068 48.7006 7.14068 49.9669 7.92172 50.748C8.70277 51.529 9.9691 51.529 10.7502 50.748L14.7502 46.748L18.972 42.5262Z" fill="black"/>\n <rect x="8" y="8" width="48" height="48" rx="10" stroke="black" stroke-width="4"/>\n </g>\n </svg>\n';function tP(){let e=(0,tl._)(['\n <div\n class="container"\n role="dialog"\n aria-modal="true"\n >\n <div class="image-container">\n ',"\n ",'\n <div class="content-container">\n ',"\n ","\n ","\n </div>\n ","\n ","\n </div>\n ","\n </div>\n "]);return tP=function(){return e},e}class tD extends eo{get style(){var e;let{variation:t}=this.props;return"\n .container {\n display: flex;\n position: relative;\n justify-content: center;\n align-items: center;\n border-radius: 8px;\n background: "+(null!=(e=t.headlineStyle.backgroundColor)?e:"#FFF")+";\n margin: 0;\n overflow: hidden;\n box-shadow: 0px 2px 8px 1px #00000033;\n p {\n margin: 0;\n }\n max-width: 90vw;\n max-height: 90dvh;\n }\n\n .content-container {\n display: flex;\n width: "+I[this.device][this.location]+"px;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: "+F[this.device][this.location]+";\n gap: 24px;\n box-sizing: border-box;\n align-self: center;\n }\n\n .image-container {\n width: 100%;\n height: 100%;\n max-height: 90dvh;\n max-width: 90vw;\n display: flex;\n flex-direction: "+(this.foregroundImage.isPlacementHorizontal?"row":"column")+";\n align-items: stretch;\n }\n\n .background-image-wrapper {\n "+(this.backgroundImageUrl?"\n background-image: url("+this.backgroundImageUrl+");\n background-size: cover;\n background-position: center;\n display: flex;\n align-items: center;\n ":"")+"\n }\n "}get content(){return this.html(tP(),this.foregroundImage.prependedContent,this.backgroundImageUrl?'<div class="background-image-wrapper">':"",this.headline,this.body,this.cta,this.backgroundImageUrl?"</div>":"",this.foregroundImage.appendedContent,this.dismissButton)}get headline(){let{headlineStyle:e,headlineText:t}=this.props.variation,i=this.props.location===_?"sidebar-modal":"modal";return new tx((0,R._)({},e,{text:t,type:i,offerId:this.id}),this.hasOffersFontEnhancements)}get body(){let{bodyStyle:e,bodyText:t}=this.props.variation;return new tI((0,R._)({},e,{text:t}))}get cta(){let{buttonStyle:e,buttonText:t,buttonUrl:i,assetDeliveryType:n,headlineStyle:r}=this.props.variation;return new tf((0,R._)({},e,{type:"modal-button",id:this.id,text:t,href:i,deliveryType:n,focusRingColor:r.color}),this.hasOffersFontEnhancements)}get dismissButton(){var e,t,i;if(!this.props.allowDismiss)return null;let{buttonStyle:n,headlineStyle:r}=this.props.variation;return new tv({id:this.id,isModal:!0,color:null!=(e=this.props.variation.headlineStyle.color)?e:"#1B1B1B",focusRingColor:null!=(t=null==r?void 0:r.color)?t:null,borderRadius:null!=(i=null==n?void 0:n.borderRadius)?i:"0px",hasDismissButtonAccessibilityEnabled:this.hasDismissButtonAccessibilityEnabled})}get location(){return this.props.location}constructor(e,t,i,n){super(e,null,t,i,n),this.displayName="ButtonModal",this.type=u.HeadlineBodyButton,this.ctaType=d,this.foregroundImage=new tM({location:this.location,foregroundImageConfig:this.props.foregroundImageConfig,foregroundImageUrl:this.props.foregroundImageUrl})}}tD=(0,n.Cg)([tc,(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",["u"<typeof ButtonModalProps?Object:ButtonModalProps,"u"<typeof HTMLElement?Object:HTMLElement,Boolean,Boolean])],tD);var tL=i(8274),tN=i(4613);function tj(){let e=(0,tl._)(['\n <div class="','">\n ',"\n ","\n </div>\n "]);return tj=function(){return e},e}function tB(){let e=(0,tl._)(["\n <div\n ","\n ",'\n role="tooltip"\n class="','"\n ',"\n >\n ","\n </div>\n "]);return tB=function(){return e},e}class tU extends er{get wrapper(){var e=this;return function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return e.html(tj(),e.cx.container,e.html(t,...n),e.content)}}get style(){var e,t,i,n;return"\n ."+this.cx.container+" {\n display: flex;\n position: relative;\n "+(this.props.hasOffersFormBannerMobileImprovements&&"flex-grow: 1;")+"\n }\n\n ."+this.cx.tooltip+" {\n position: absolute;\n display: none;\n padding: 10px;\n align-items: center;\n color: #FFF;\n font-family: "+(null!=(e=this.props.fontFamily)?e:"inherit")+";\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 4px;\n background: #212D34;\n white-space: nowrap;\n /* Ensure tooltip is above caret */\n z-index: 2;\n }\n\n /* Ensure links have same font color and style as other tooltip text */\n ."+this.cx.tooltip+" a {\n color: #FFF;\n font-family: "+(null!=(t=this.props.fontFamily)?t:"inherit")+";\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n text-decoration: underline;\n }\n\n ."+this.cx.tooltip+":focus-within,\n ."+this.cx.tooltip+":focus,\n ."+this.cx.tooltip+":hover {\n display: flex;\n }\n\n "+this.focusCSS+"\n "+this.hoverCSS+"\n "+this.alwaysCSS+"\n\n ."+this.cx.tooltip+"[top] {\n left: 50%;\n transform: translateX(-50%) translateY(-100%);\n top: calc(-5px - "+(null!=(i=this.props.offsetY)?i:0)+"px);\n }\n\n ."+this.cx.tooltip+"[bottom] {\n left: 50%;\n transform: translateX(-50%) translateY(100%);\n bottom: calc(-5px - "+(null!=(n=this.props.offsetY)?n:0)+"px);\n }\n\n ."+this.cx.tooltip+'::after {\n content: "";\n position: absolute;\n background: #212D34;\n width: 12px;\n height: 12px;\n border-radius: 3px;\n transform: translateY(-65%) translateX(-50%) rotate(45deg);\n /* Ensure tooltip is above caret */\n z-index: 1;\n }\n\n .'+this.cx.tooltip+"[top]::after {\n left: 50%;\n top: 100%;\n transform: translateY(-65%) translateX(-50%) rotate(45deg);\n }\n\n ."+this.cx.tooltip+"[bottom]::after {\n left: 50%;\n bottom: 100%;\n transform: translateY(65%) translateX(-50%) rotate(45deg);\n }\n "}get content(){return this.html(tB(),this.props.tooltipId&&'id="'+this.props.tooltipId+'"',this.props.ariaLabel&&'aria-label="'+(0,tL.Z)(this.props.ariaLabel)+'"',this.cx.tooltip,this.props.placement,this.props.text)}get focusCSS(){return"focus"===this.props.target.event?"\n "+this.props.target.selector+":is(:focus, :focus-visible) + ."+this.cx.tooltip+" {\n display: flex;\n }\n ":""}get hoverCSS(){return"hover"===this.props.target.event?"\n "+this.props.target.selector+":hover + ."+this.cx.tooltip+" {\n display: flex;\n }\n ":""}get alwaysCSS(){return"always"===this.props.target.event?"\n ."+this.cx.tooltip+" {\n display: flex;\n }\n ":""}constructor(e){super(e,null),this.displayName="Tooltip"}}let tz='\n <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="current">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.84314 2.71392C7.3572 3.32453 6.812 4.26225 6.02978 5.61336L3.33029 10.2761C2.54526 11.6321 2.00143 12.5754 1.71283 13.3034C1.4267 14.0252 1.47621 14.3295 1.59112 14.5288C1.70603 14.7281 1.94461 14.9235 2.71262 15.0375C3.48725 15.1525 4.57613 15.1545 6.14293 15.1545H11.54
319C13.1087 15.1545 14.1976 15.1525 14.9722 15.0375C15.7402 14.9235 15.9788 14.7281 16.0937 14.5288C16.2086 14.3295 16.2581 14.0252 15.972 13.3034C15.6834 12.5754 15.1396 11.6321 14.3545 10.2761L11.6551 5.61336C10.8728 4.26225 10.3276 3.32453 9.84169 2.71392C9.36009 2.10878 9.07228 2 8.84241 2C8.61255 2 8.32473 2.10878 7.84314 2.71392ZM6.66945 1.77987C7.24567 1.05582 7.91918 0.5 8.84241 0.5C9.76565 0.5 10.4392 1.05582 11.0154 1.77987C11.579 2.48806 12.1787 3.52405 12.9204 4.80524L12.9205 4.80529L12.9205 4.80532L12.9532 4.86181L15.6527 9.52456L15.6854 9.58114C16.43 10.8671 17.0319 11.9067 17.3664 12.7506C17.7083 13.6131 17.8554 14.4763 17.3932 15.2781C16.931 16.0798 16.1102 16.385 15.1925 16.5212C14.2945 16.6545 13.0932 16.6545 11.6073 16.6545H11.5419H6.14293H6.07758C4.59161 16.6545 3.39034 16.6545 2.49235 16.5212C1.57461 16.385 0.753878 16.0798 0.291635 15.2781C-0.170608 14.4763 -0.0235085 13.6131 0.318404 12.7506C0.65296 11.9067 1.25486 10.8671 1.99941 9.58112L2.03215 9.52456L4.73164 4.86181L4.76434 4.80532C5.50607 3.52409 6.10584 2.48807 6.66945 1.77987ZM8.84239 5.5172C9.2566 5.5172 9.59239 5.85299 9.59239 6.2672V9.77167C9.59239 10.1859 9.2566 10.5217 8.84239 10.5217C8.42817 10.5217 8.09239 10.1859 8.09239 9.77167V6.2672C8.09239 5.85299 8.42817 5.5172 8.84239 5.5172ZM8.8424 13.2761C9.32627 13.2761 9.71852 12.8839 9.71852 12.4C9.71852 11.9162 9.32627 11.5239 8.8424 11.5239C8.35854 11.5239 7.96628 11.9162 7.96628 12.4C7.96628 12.8839 8.35854 13.2761 8.8424 13.2761Z" fill="#current"/>\n </svg>\n';function tq(){let e=(0,tl._)(['\n <div class="container ','">\n <div class="headline-cta">\n ',"\n ",'\n <form id="','" class="form">\n ',"\n ","\n </form>\n ","\n </div>\n ","\n </div>\n "]);return tq=function(){return e},e}function tH(){let e=(0,tl._)(["",""]);return tH=function(){return e},e}function tV(){let e=(0,tl._)(['\n <div class="','">\n <input\n class="','"\n type="email"\n name="email"\n placeholder="','"\n value="','"\n aria-invalid="true"\n />\n <div class="','">\n ',"\n </div>\n </div>\n "]);return tV=function(){return e},e}function tW(){let e=(0,tl._)(['\n <input\n class="','"\n name="email"\n type="email"\n placeholder="','"\n required\n ',"\n ","\n />\n "]);return tW=function(){return e},e}function tQ(){let e=(0,tl._)(["",""]);return tQ=function(){return e},e}class tJ extends ea{get style(){var e,t,i,n;let{headlineStyle:r,buttonStyle:s}=this.props.variation,o=Math.min(parseInt(null!=(e=s.borderRadius)?e:"0",10),4),a="";return this.isMobile&&(a=this.hasOffersFormBannerMobileImprovements?"\n .container {\n padding: 16px 32px;\n\n .headline-cta {\n display: flex;\n flex-direction: column;\n gap: 12px;\n justify-content: space-between;\n text-align: left;\n\n .banner {\n margin-right: 4px;\n max-width: 100%;\n }\n\n .form {\n flex-wrap: wrap;\n width: 100%;\n }\n\n ."+this.cx.input+" {\n flex-grow: 1;\n width: auto;\n }\n\n .cta.banner-button.submit{\n padding-top: 4.5px;\n padding-bottom: 4.5px;\n line-height: 1.5;\n flex-grow: 1;\n min-width: 0;\n height: unset;\n max-width: unset;\n }\n\n .cta.banner-button.submit div:first-child {\n min-width: 0;\n word-wrap: break-word;\n }\n\n .headline {\n padding: 0;\n }\n\n #"+z(this.props.id)+" {\n word-break: break-word;\n overflow-wrap: break-word;\n }\n }\n }\n ":"\n .container {\n padding: 16px 32px;\n\n .headline-cta {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n justify-content: space-between;\n text-align: left;\n width: auto;\n\n .banner {\n margin-right: 4px;\n max-width: 100%;\n }\n\n .headline {\n padding: 0;\n }\n }\n }\n "),"\n .container {\n display: flex;\n position: relative;\n justify-content: center;\n gap: 32px;\n align-items: center;\n background: "+(null!=(t=r.backgroundColor)?t:"#000")+";\n box-shadow: 0px -1px 28px 0px rgba(0, 0, 0, 0.00);\n margin: 0;\n padding: 0 36px;\n max-height: 200px;\n\n p {\n margin: 0;\n }\n\n .headline-cta {\n display: flex;\n gap: 32px;\n align-items: center;\n justify-content: center;\n text-align: left;\n width: 100%;\n\n .headline {\n padding: 14px 0;\n }\n }\n }\n\n .background-image-wrapper {\n "+(this.backgroundImageUrl?"\n background-image: url("+this.backgroundImageUrl+");\n background-position: center;\n background-size: cover;\n ":"")+"\n }\n\n .form {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n ."+this.cx.input+" {\n font-family: "+(null!=(i=r.fontFamily)?i:"inherit")+";\n font-size: 14px;\n height: 32px;\n width: 230px;\n box-sizing: border-box;\n border: 1px solid rgba(200, 206, 208, 0.93);\n border-radius: "+o+'px;\n padding: 8px 16px;\n color: #1B1B1B;\n outline: none;\n background-color: white;\n &:is(:focus, :focus-visible):not(&[readonly]):not(&[aria-invalid="true"]) {\n border-color: '+(s.backgroundColor||r.color)+";\n outline: 2px solid "+(s.backgroundColor||r.color)+";\n outline-offset: 2px;\n }\n &::placeholder {\n color: #6E7879;\n }\n }\n\n ."+this.cx.input+'[aria-invalid="true"] {\n border-color: #E4251B;\n outline: 2px solid #E4251B;\n padding-right: 32px;\n }\n\n .'+this.cx.inputErrorContainer+" {\n position: relative;\n }\n\n ."+this.cx.inputErrorIcon+" {\n position: absolute;\n right: 8px;\n top: 50%;\n transform: translateY(-50%);\n\n & svg {\n fill: #E4251B;\n }\n }\n\n #"+z(this.props.id)+" {\n font-family: "+(null!=(n=r.fontFamily)?n:"inherit")+";\n justify-content: center;\n min-width: 100%;\n text-align: left;\n white-space: normal;\n }\n\n "+a+"\n "}get content(){return this.html(tq(),this.backgroundImageUrl?"background-image-wrapper":"",this.foregroundImage.prependedContent,this.headline,B(this.id),this.input,this.button,this.foregroundImage.appendedContent,this.dismissButton)}get headline(){let{headlineStyle:e,headlineText:t}=this.props.variation;return new tx((0,R._)({},e,{text:t,type:"banner"}),this.hasOffersFontEnhancements)}get buttonText(){var e,t,i;if(this.state.loading||"followupQuestions"===this.state.current)return(0,tN.Cw)(null!=(e=this.props.variation.buttonStyle.color)?e:"#FFF",11);switch(this.state.current){case"emailCapture":return null!=(t=this.props.variation.buttonText)?t:"Submit";case"end":return'\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M20.6757 5.26285C21.0828 5.63604 21.1103 6.26861 20.7372 6.67573L9.73715 18.6757C9.55285 18.8768 9.29441 18.9938 9.02172 18.9998C8.74903 19.0057 8.48576 18.9 8.29289 18.7071L3.29289 13.7071C2.90237 13.3166 2.90237 12.6834 3.29289 12.2929C3.68342 11.9024 4.31658 11.9024 4.70711 12.2929L8.96859 16.5544L19.2628 5.32428C19.636 4.91716 20.2686 4.88966 20.6757 5.26285Z"\n fill="'+(null!=(i=this.props.variation.buttonStyle.color)?i:"#FFF")+'"\n />\n </svg>\n'}}get button(){let{buttonStyle:e,headlineStyle:t}=this.props.variation;return new tf((0,R._)({},e,{id:this.id,text:this.buttonText,type:"banner-submit",focusRingColor:t.color}),this.hasOffersFontEnhancements)}get dismissButton(){var e,t;if(!this.props.allowDismiss)return null;let{headlineStyle:i,buttonStyle:n}=this.props.variation;
3return new tv({id:this.id,color:this.props.variation.headlineStyle.color,focusRingColor:null!=(e=null==i?void 0:i.color)?e:null,borderRadius:null!=(t=null==n?void 0:n.borderRadius)?t:"0px",hasDismissButtonAccessibilityEnabled:this.hasDismissButtonAccessibilityEnabled})}get location(){return this.props.location}get input(){var e,t;if("emailCapture"===this.state.current&&this.state.error)return this.html(tV(),this.cx.inputErrorContainer,this.cx.input,(0,tL.Z)((null==(t=this.props.variation.emailField)?void 0:t.placeholder)||"[email protected]"),this.state.email,this.cx.inputErrorIcon,this.errorTooltip(tH(),tz));let i=this.html(tW(),this.cx.input,(0,tL.Z)((null==(e=this.props.variation.emailField)?void 0:e.placeholder)||"[email protected]"),this.state.email&&"value="+this.state.email,this.privacyDisclosureTooltip&&' id="'+q(this.props.id)+'"\n aria-describedby="'+z(this.props.id)+'"\n data-1p-ignore="true"\n data-lpignore="true"\n ');return this.privacyDisclosureTooltip?this.privacyDisclosureTooltip(tQ(),i):i}get errorTooltip(){return new tU({text:"emailCapture"===this.state.current&&this.state.error||"",placement:this.location===y?"bottom":"top",target:{event:"always"},fontFamily:this.props.variation.headlineStyle.fontFamily,offsetY:9}).wrapper}get privacyDisclosureTooltip(){return this.props.privacyDisclosureText&&"emailCapture"===this.state.current?new tU({text:this.props.privacyDisclosureText,placement:this.props.location===v?"top":"bottom",target:{selector:"."+this.cx.input,event:"focus"},tooltipId:z(this.props.id),ariaLabel:""+tJ.privacyDisclosureAriaLabel(this.props.privacyDisclosureText),hasOffersFormBannerMobileImprovements:this.hasOffersFontEnhancements&&this.isMobile}).wrapper:null}constructor(...e){super(...e),this.displayName="FormBanner",this.type=u.HeadlineForm,this.foregroundImage=new t_({location:this.location,foregroundImageConfig:this.props.foregroundImageConfig,foregroundImageUrl:this.props.foregroundImageUrl})}}tJ=(0,n.Cg)([tc],tJ);class tK{static get thin(){var e;return null!=(e=this._thin)?e:this._thin=""+tK.getScrollBarWidth("thin")+"px"}static get auto(){var e;return null!=(e=this._auto)?e:this._auto=""+tK.getScrollBarWidth("auto")+"px"}static getScrollBarWidth(e){let t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.setProperty("scrollbar-width",e),document.body.appendChild(t);let i=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),i}}function tG(){let e=(0,tl._)(['\n <form id="','" class="','">\n <div class="','">\n ',"\n </div>\n </form>\n "]);return tG=function(){return e},e}function tY(){let e=(0,tl._)(['\n <div class="','">\n <div class="','">\n ',"\n ",'\n </div>\n <div class="','">\n ','\n <div class="','"></div>\n </div>\n </div>\n ']);return tY=function(){return e},e}function t$(){let e=(0,tl._)(['\n <label class="','" for="','">\n ',"\n ","\n </label>\n "]);return t$=function(){return e},e}function tX(){let e=(0,tl._)(['\n <input\n id="','"\n class="','"\n type="text"\n name="','"\n placeholder="','"\n />\n ']);return tX=function(){return e},e}function tZ(){let e=(0,tl._)(['\n <input\n id="','"\n class="','"\n type="number"\n name="','"\n placeholder="','"\n />\n ']);return tZ=function(){return e},e}function t0(){let e=(0,tl._)(['\n <input\n id="','"\n class="','"\n type="checkbox"\n name="','"\n />\n ']);return t0=function(){return e},e}function t1(){let e=(0,tl._)(['\n <input\n id="','"\n class="','"\n type="tel"\n name="','"\n placeholder="','"\n />\n ']);return t1=function(){return e},e}function t2(){let e=(0,tl._)(['\n <textarea\n id="','"\n class="','"\n name="','"\n placeholder="','"\n ></textarea>\n ']);return t2=function(){return e},e}function t3(){let e=(0,tl._)(['\n <option value="','">\n ',"\n </option>\n "]);return t3=function(){return e},e}function t4(){let e=(0,tl._)(['\n <div class="','">\n <select\n id="','"\n class="','"\n name="','"\n >\n ',"\n ","\n </select>\n ","\n </div>\n "]);return t4=function(){return e},e}function t5(){let e=(0,tl._)(['\n <input\n id="','"\n class="','"\n type="email"\n name="','"\n placeholder="','"\n value="','"\n disabled\n />\n ']);return t5=function(){return e},e}tK._thin=null,tK._auto=null;class t8 extends er{get style(){return"\n ."+this.cx.form+", ."+this.cx.formContainer+" {\n display: flex;\n gap: 24px;\n flex-direction: column;\n width: 100%;\n }\n\n ."+this.cx.formContainer+" {\n gap: 16px;\n }\n\n ."+this.cx.inputContainer+" {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n align-self: stretch;\n }\n\n ."+this.cx.inputContainerRow+" {\n display: contents;\n }\n\n ."+this.cx.inputContainerRow+":has(."+this.cx.input+'[type="checkbox"]) {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n gap: 8px;\n width: 100%;\n justify-content: flex-end;\n }\n\n .'+this.cx.inputLabel+" {\n color: #1B1B1B;\n font-family: inherit;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: 22px;\n }\n\n ."+this.cx.inputLabelOptional+" {\n color: #6E7879;\n font-weight: 400;\n }\n\n ."+this.cx.input+" {\n font-family: inherit;\n font-size: 14px;\n line-height: 22px;\n height: 40px;\n min-height: 40px;\n width: 100%;\n box-sizing: border-box;\n border: 1px solid #C8CED0ED;\n border-radius: 4px;\n padding: 8px 16px;\n color: #1B1B1B;\n font-weight: 400;\n background-color: white;\n }\n\n ."+this.cx.input+'[type="checkbox"] {\n height: 20px;
3\n width: 20px;\n }\n\n textarea.'+this.cx.input+" {\n resize: vertical;\n padding-top: 9px;\n overflow: hidden;\n }\n\n ."+this.cx.selectContainer+" {\n position: relative;\n width: 100%;\n height: 100%;\n cursor: pointer;\n }\n\n select."+this.cx.input+" {\n -webkit-appearance: none;\n appearance: none;\n }\n\n select."+this.cx.input+" + svg {\n position: absolute;\n right: 8px;\n top: calc(50% - 8px);\n fill: rgb(138, 147, 148);\n height: 16px;\n width: 16px;\n pointer-events: none;\n }\n\n ."+this.cx.input+'[aria-invalid="true"] {\n border-color: #E4251B;\n outline: 2px solid #E4251B;\n outline-offset: 2px;\n }\n\n .'+this.cx.errorMessageContainer+" {\n display: none;\n padding: 0px 4px;\n align-items: center;\n gap: 4px;\n align-self: stretch;\n border-radius: 4px;\n background: #FCEDEC;\n\n & svg {\n width: 16px;\n height: 16px;\n fill: #E4251B;\n }\n }\n\n ."+this.cx.inputContainer+":has(."+this.cx.input+'[aria-invalid="true"]) .'+this.cx.errorMessageContainer+" {\n display: flex;\n }\n\n ."+this.cx.errorMessage+" {\n color: #E4251B;\n font-family: inherit;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n }\n\n "+this.cssOverride("form")+"\n "+this.cssOverride("formContainer")+"\n "+this.cssOverride("inputContainer")+"\n "+this.cssOverride("inputLabel")+"\n "+this.cssOverride("input")+"\n "}get content(){return this.html(tG(),B(this.props.id),this.cx.form,this.cx.formContainer,this.fields)}get fields(){return this.props.inputFields.map(e=>{let t=this.getField(e);return this.html(tY(),this.cx.inputContainer,this.cx.inputContainerRow,this.getHTMLFieldLabel(t),this.getHTMLField(t),this.cx.errorMessageContainer,tz,this.cx.errorMessage)})}getHTMLFieldLabel(e){let t="";return"boolean"===e.type&&e.mustCheck?t=' <span class="'+this.cx.inputLabelOptional+'">(required)</span>':e.optional&&(t=' <span class="'+this.cx.inputLabelOptional+'">(optional)</span>'),this.html(t$(),this.cx.inputLabel,this.getFieldId(e),(0,tL.Z)(e.label),t)}setErrors(e,t){for(let i of this.getAllInputs(e)){let e=t[i.name],n=i.closest("."+this.cx.inputContainer),r=null==n?void 0:n.querySelector("."+this.cx.errorMessage);e?(i.setAttribute("aria-invalid","true"),null==n||n.classList.add(this.cx.hasError),r&&(r.textContent=this.getErrorMessage(e))):(i.removeAttribute("aria-invalid"),null==n||n.classList.remove(this.cx.hasError),r&&(r.textContent=""))}}getHTMLField(e){switch(e.type){case"string":case"company":case"name":return this.getTextField(e);case"decimal":return this.getNumberField(e);case"boolean":return this.getCheckboxField(e);case"phone":return this.getPhoneField(e);case"text":return this.getTextareaField(e);case"picklist":return this.getPicklistField(e);case"email":return this.getEmailField(e)}}getField(e){if("email"===e.type)return e;let t=this.inputFieldsOverridesMap.get(e.fieldId);if(!t)return e;let i=(0,R._)({},e);return t.placeholder&&(i.placeholder=t.placeholder),t.label&&(i.label=t.label),i}getTextField(e){return this.html(tX(),this.getFieldId(e),this.cx.input,(0,tL.Z)(e.name),(0,tL.Z)(e.placeholder))}getNumberField(e){return this.html(tZ(),this.getFieldId(e),this.cx.input,(0,tL.Z)(e.name),(0,tL.Z)(e.placeholder))}getCheckboxField(e){return this.html(t0(),this.getFieldId(e),this.cx.input,(0,tL.Z)(e.name))}getPhoneField(e){return this.html(t1(),this.getFieldId(e),this.cx.input,(0,tL.Z)(e.name),(0,tL.Z)(e.placeholder))}getTextareaField(e){return this.html(t2(),this.getFieldId(e),this.cx.input,(0,tL.Z)(e.name),(0,tL.Z)(e.placeholder))}getPicklistField(e){var t;return this.html(t4(),this.cx.selectContainer,this.getFieldId(e),this.cx.input,(0,tL.Z)(e.name),e.placeholder?'<option value="" disabled selected>'+(0,tL.Z)(e.placeholder)+"</option>":"",null==(t=e.fieldValues)?void 0:t.map(e=>this.html(t3(),(0,tL.Z)(e.value),(0,tL.Z)(e.label))),'\n <svg height="20" width="20" viewBox="0 0 20 20">\n <path d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"></path>\n </svg>\n')}getEmailField(e){var t;return this.html(t5(),this.getFieldId(e),this.cx.input,(0,tL.Z)(e.name),(0,tL.Z)(e.placeholder),(0,tL.Z)(null!=(t=e.value)?t:""))}getAllInputs(e){return e.querySelectorAll("input, select, textarea")}getErrorMessage(e){if(e.message)return e.message;switch(e.type){case"empty":case"must_check":return"This field is required";case"not_full_name":return"Please enter your full name";
3default:return"This field is invalid"}}getFieldId(e){return"email"===e.type?"qualified-form-"+this.instanceId+"-field-email":"qualified-form-"+this.instanceId+"-field-"+e.fieldId}cssOverride(e){var t;return(null==(t=this.props.css)?void 0:t[e])?"."+this.cx[e]+" { "+this.props.css[e]+" }":""}constructor(e){var t;super((0,R._)({},e),null),this.displayName="MultiFieldForm",this.instanceId=t8.staticId++,this.inputFieldsOverridesMap=new Map(null==(t=e.inputFieldsOverrides)?void 0:t.map(e=>[e.referenceId,e]))}}function t6(){let e=(0,tl._)(['\n <div\n class="container"\n role="dialog"\n aria-modal="true"\n >\n <div class="image-container">\n ',"\n ",'\n <div class="content-container">\n ','\n <div class="scrollable-section">\n ',"\n ","\n </div>\n ","\n ","\n </div>\n ","\n ","\n </div>\n ","\n </div>\n "]);return t6=function(){return e},e}function t9(){let e=(0,tl._)(['\n <form id="','" class="form">\n ',"\n </form>\n "]);return t9=function(){return e},e}function t7(){let e=(0,tl._)(['\n <div class="','">\n <input\n class="','"\n type="email"\n name="email"\n placeholder="','"\n ','\n aria-invalid="true"\n />\n <div class="','">\n ','\n <div class="','">\n ',"\n </div>\n </div>\n </div>\n "]);return t7=function(){return e},e}function ie(){let e=(0,tl._)(['\n <input\n class="','"\n type="email"\n name="email"\n placeholder="','"\n ',"\n required\n />\n "]);return ie=function(){return e},e}t8.staticId=0;class it extends ea{get style(){var e,t,i,n;let{variation:r}=this.props;return"\n .container {\n display: flex;\n position: relative;\n justify-content: center;\n align-items: center;\n border-radius: 8px;\n background: "+(null!=(e=r.headlineStyle.backgroundColor)?e:"#FFF")+";\n margin: 0;\n overflow: hidden;\n box-shadow: 0px 2px 8px 1px #00000033;\n p {\n margin: 0;\n }\n max-width: 90vw;\n max-height: 90dvh;\n }\n\n .content-container {\n display: flex;\n width: "+I[this.device][this.location]+"px;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: "+F[this.device][this.location]+";\n gap: 24px;\n box-sizing: border-box;\n align-self: center;\n height: 100%;\n max-height: 90dvh;\n }\n\n .image-container {\n width: 100%;\n height: 100%;\n max-height: 90dvh;\n max-width: 90vw;\n display: flex;\n flex-direction: "+(this.foregroundImage.isPlacementHorizontal?"row":"column")+";\n align-items: stretch;\n }\n\n .scrollable-section {\n display: flex;\n flex-direction: column;\n gap: 24px;\n flex: 1;\n box-sizing: content-box;\n scrollbar-width: thin;\n scrollbar-gutter: stable;\n overflow-y: auto;\n margin: -4px -8px -4px -4px;\n padding: 4px 8px 4px 4px;\n width: calc(100% + "+tK.thin+");\n }\n\n .background-image-wrapper {\n "+(this.backgroundImageUrl?"\n background-image: url("+this.backgroundImageUrl+");\n background-size: cover;\n background-position: center;\n display: flex;\n align-items: center;\n ":"")+"\n }\n\n .end-icon {\n position: relative;\n }\n\n .end-icon-check {\n position: absolute;\n left: 14px;\n top: 14px;\n }\n\n .form {\n display: flex;\n gap: 8px;\n flex-direction: column;\n width: 100%;\n }\n\n ."+this.cx.input+" {\n font-family: "+(null!=(t=r.headlineStyle.fontFamily)?t:"inherit")+';\n font-size: 14px;\n height: 40px;\n width: 100%;\n box-sizing: border-box;\n border: 1px solid #C8CED0ED;\n border-radius: 4px;\n padding: 8px 16px;\n color: #1B1B1B;\n font-weight: 400;\n background-color: white;\n\n &:is(:focus, :focus-visible):not(&[readonly]):not(&[aria-invalid="true"]) {\n border-color: '+(r.buttonStyle.backgroundColor||r.bodyStyle.color)+";\n outline: 2px solid "+(r.buttonStyle.backgroundColor||r.bodyStyle.color)+";\n outline-offset: 2px;\n }\n }\n\n ."+this.cx.input+'[aria-invalid="true"] {\n border-color: #E4251B;\n outline: 2px solid #E4251B;\n }\n\n .'+this.cx.inputErrorContainer+" {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 4px;\n align-self: stretch;\n }\n\n ."+this.cx.errorMessageContainer+" {\n display: flex;\n padding: 0px 4px;\n align-items: center;\n gap: 4px;\n align-self: stretch;\n border-radius: 4px;\n background: #FCEDEC;\n\n & svg {\n width: 16px;\n height: 16px;\n fill: #E4251B;\n }\n }\n\n ."+this.cx.errorMessage+" {\n color: #E4251B;\n font-family: "+(null!=(i=r.headlineStyle.fontFamily)?i:"inherit")+";\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n }\n\n .privacy-disclosure-text {\n color: "+this.privacyDisclosureTextColor+";\n font-family: "+(null!=(n=r.headlineStyle.fontFamily)?n:"inherit")+";\n font-size: 12px;\n line-height: 18px;\n text-align: left;\n }\n\n .privacy-disclosure-text a {\n /* Prevent links from using the browser's default blue color */\n color: inherit;\n /* Ensure links are underlined to clearly indicate they are click-able */\n text-decoration: underline;\n }\n "}get content(){return this.html(t6(),this.foregroundImage.prependedContent,this.backgroundImageUrl?'<div class="background-image-wrapper">':"",this.headline,this.body,this.form,this.submitButton,this.privacyDisclosureText,this.backgroundImageUrl?"</div>":"",this.foregroundImage.appendedContent,this.dismissButton)}get headlineText(){var e,t;switch(this.state.current){case"emailCapture":return this.props.variation.headlineText;case"followupQuestions":return(null==(e=this.props.variation.followUpStepOverrides)?void 0:e.title)||"We need some more info.";case"end":return(null==(t=this.props.variation.thankYouStepOverrides)?void 0:t.t
3itle)||"Thank you!"}}get headlineStyle(){var e,t,i,n;switch(this.state.current){case"followupQuestions":return null!=(e=null==(t=this.props.variation.followUpStepOverrides)?void 0:t.titleStyle)?e:this.props.variation.headlineStyle;case"end":return null!=(i=null==(n=this.props.variation.thankYouStepOverrides)?void 0:n.titleStyle)?i:this.props.variation.headlineStyle;default:return this.props.variation.headlineStyle}}get headline(){let e=this.location===_?"sidebar-modal":"modal";return new tx((0,R._)({},this.headlineStyle,{text:this.headlineText,type:e,offerId:this.id}),this.hasOffersFontEnhancements)}get bodyText(){var e,t;switch(this.state.current){case"emailCapture":return this.props.variation.bodyText;case"followupQuestions":return(null==(e=this.props.variation.followUpStepOverrides)?void 0:e.description)||"Please provide the following information";case"end":return(null==(t=this.props.variation.thankYouStepOverrides)?void 0:t.description)||"We appreciate you taking the time to complete this form."}}get bodyStyle(){var e,t,i,n;switch(this.state.current){case"followupQuestions":return null!=(e=null==(t=this.props.variation.followUpStepOverrides)?void 0:t.descriptionStyle)?e:this.props.variation.bodyStyle;case"end":return null!=(i=null==(n=this.props.variation.thankYouStepOverrides)?void 0:n.descriptionStyle)?i:this.props.variation.bodyStyle;default:return this.props.variation.bodyStyle}}get body(){return new tI((0,R._)({},this.bodyStyle,{text:this.bodyText,allowScroll:!1}))}get form(){return"followupQuestions"===this.state.current?this.multiFieldForm:this.html(t9(),B(this.id),this.emailInput)}get buttonText(){var e,t,i;if(this.state.loading)return(0,tN.Cw)(null!=(e=this.props.variation.buttonStyle.color)?e:"#FFF",11);switch(this.state.current){case"emailCapture":return this.props.variation.buttonText;case"followupQuestions":return(null==(t=this.props.variation.followUpStepOverrides)?void 0:t.buttonText)||"Submit";case"end":return(null==(i=this.props.variation.thankYouStepOverrides)?void 0:i.buttonText)||"Close"}}get buttonStyle(){var e,t,i,n;switch(this.state.current){case"followupQuestions":return null!=(e=null==(t=this.props.variation.followUpStepOverrides)?void 0:t.buttonStyle)?e:this.props.variation.buttonStyle;case"end":return null!=(i=null==(n=this.props.variation.thankYouStepOverrides)?void 0:n.buttonStyle)?i:this.props.variation.buttonStyle;default:return this.props.variation.buttonStyle}}get submitButton(){return new tf((0,R._)({},this.buttonStyle,{id:this.id,type:"modal-submit",text:this.buttonText,focusRingColor:this.headlineStyle.color,formId:B(this.id)}),this.hasOffersFontEnhancements)}get dismissButton(){var e,t,i;if(!this.props.allowDismiss)return null;let{headlineStyle:n,buttonStyle:r}=this.props.variation;return new tv({id:this.id,isModal:!0,color:null!=(e=this.props.variation.headlineStyle.color)?e:"#1B1B1B",focusRingColor:null!=(t=null==n?void 0:n.color)?t:null,borderRadius:null!=(i=null==r?void 0:r.borderRadius)?i:"0px",hasDismissButtonAccessibilityEnabled:this.hasDismissButtonAccessibilityEnabled})}get location(){return this.props.location}get emailInput(){var e,t,i,n;return"end"===this.state.current?null:"emailCapture"===this.state.current&&this.state.error?this.html(t7(),this.cx.inputErrorContainer,this.cx.input,(0,tL.Z)(null!=(i=null==(n=this.props.variation.emailField)?void 0:n.placeholder)?i:"[email protected]"),this.state.email&&"value="+this.state.email,this.cx.errorMessageContainer,tz,this.cx.errorMessage,this.state.error):this.html(ie(),this.cx.input,(0,tL.Z)(null!=(e=null==(t=this.props.variation.emailField)?void 0:t.placeholder)?e:"[email protected]"),this.state.email&&"value="+this.state.email)}get privacyDisclosureText(){return this.props.privacyDisclosureText&&"emailCapture"===this.state.current?'\n <div\n class="privacy-disclosure-text"\n aria-label="'+it.privacyDisclosureAriaLabel(this.props.privacyDisclosureText)+'"\n >\n '+this.props.privacyDisclosureText+"\n </div>\n ":null}setState(e,t){var i,n,r,s;let{animate:o=!1}=void 0===t?{}:t;if("end"===e.current&&(this.multiFieldForm=null),"followupQuestions"!==e.current)return super.setState(e,{animate:o});if(e.form&&(this.state=e,this.multiFieldForm=this.createMultiFieldForm(e.form),super.setState(e,{animate:o})),e.errors){let t=null==(n=this.root.shadowRoot)?void 0:n.querySelector("form");t&&this.multiFieldForm&&this.multiFieldForm.setErrors(t,null!=(r=e.errors)?r:{})}e.loading&&(null==(i=this.elements)?void 0:i.ctaButton)&&(this.elements.ctaButton.innerHTML=(0,tN.Cw)(null!=(s=this.props.variation.buttonStyle.color)?s:"#FFF",11))}createMultiFieldForm(e){var t,i;return new t8({id:this.id,inputFields:e.inputFields,inputFieldsOverrides:null!=(t=null==(i=this.props.variation.followUpStepOverrides)?void 0:i.additionalFields)?t:[],css:{inputLabel:"\n "+(this.props.variation.bodyStyle.fontFamily?"font-family: "+this.props.variation.bodyStyle.fontFamily+";":"")+"\n "+(this.props.variation.bodyStyle.color?"color: "+this.props.variation.bodyStyle.color+";":"")+"\n ",input:'\n &:is(:focus, :focus-visible):not(&[readonly]):not(&[aria-invalid="true"]) {\n border-color: '+(this.props.variation.buttonStyle.backgroundColor||this.props.variation.headlineStyle.color)+";\n outline: 2px solid "+(this.props.variation.buttonStyle.backgroundColor||this.props.variation.headlineStyle.color)+";\n outline-offset: 2px;\n }\n "}})}get privacyDisclosureTextColor(){var e;return"#"+((null==(e=this.props.variation.headlineStyle.color)?void 0:e.replace(/^#/,""))||"000000")+Math.round(191.25).toString(16).toUpperCase()}constructor(...e){super(...e),this.displayName="FormModal",this.type=u.HeadlineBodyForm,this.foregroundImage=new tM({location:this.location,foregroundImageConfig:this.props.foregroundImageConfig,foregroundImageUrl:this.props.foregroundImageUrl}),this.multiFieldForm=null}}
3function ii(){let e=(0,tl._)(['\n <span class="container ','">\n ',"\n ","\n ","\n ","\n </span>\n "]);return ii=function(){return e},e}it=(0,n.Cg)([tc],it);class ir extends eo{get style(){var e,t;let{variation:i}=this.props,n="";return this.isMobile&&(n="\n .container {\n padding: 20px 32px;\n\n .headline.banner.link {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n justify-content: space-between;\n max-width: 100%;\n text-align: left;\n padding: 0;\n\n p {\n margin-right: 4px;\n max-width: 100%;\n }\n\n a {\n margin-right: auto;\n }\n }\n }\n\n "),"\n .container {\n display: flex;\n position: relative;\n justify-content: center;\n gap: 32px;\n align-items: center;\n background: "+(null!=(e=i.headlineStyle.backgroundColor)?e:"#000")+";\n box-shadow: 0px -1px 28px 0px rgba(0, 0, 0, 0.00);\n margin: 0;\n padding: 0 36px;\n height: auto;\n max-height: 200px;\n\n p {\n margin: 0;\n }\n }\n\n .background-image-wrapper {\n "+(this.backgroundImageUrl?"\n background-image: url("+this.backgroundImageUrl+");\n background-position: center;\n background-size: cover;\n ":"")+"\n }\n\n .banner {\n text-align: left;\n }\n\n .banner-link{\n "+(this.hasDismissButtonAccessibilityEnabled&&"\n &:is(:focus, :focus-visible) {\n outline: 2px solid "+(null!=(t=i.headlineStyle.color)?t:"black")+";\n outline-offset: 2px;\n }\n ")+"\n }\n\n .headline.banner.link {\n display: flex;\n gap: 12px;\n align-items: center;\n justify-content: center;\n padding: "+(this.hasDismissButtonAccessibilityEnabled?"14px 4px":"14px 0")+";\n }\n "+n}get content(){return this.html(ii(),this.backgroundImageUrl?"background-image-wrapper":"",this.foregroundImage.prependedContent,this.headline,this.dismissButton,this.foregroundImage.appendedContent)}get cta(){let{buttonStyle:e,buttonText:t,buttonUrl:i,assetDeliveryType:n,headlineStyle:r}=this.props.variation;return new tf((0,R._)({},e,{id:this.id,text:t,href:i,deliveryType:n,type:"banner-link",color:r.color}),this.hasOffersFontEnhancements)}get headline(){let{headlineStyle:e,headlineText:t}=this.props.variation;return new tx((0,R._)({},e,{text:t,type:"banner-link",link:this.cta}),this.hasOffersFontEnhancements)}get dismissButton(){var e,t;if(!this.props.allowDismiss)return null;let{headlineStyle:i,buttonStyle:n}=this.props.variation;
3return new tv({id:this.id,color:this.props.variation.headlineStyle.color,focusRingColor:null!=(e=null==i?void 0:i.color)?e:null,borderRadius:null!=(t=null==n?void 0:n.borderRadius)?t:"0px",hasDismissButtonAccessibilityEnabled:this.hasDismissButtonAccessibilityEnabled})}get location(){return this.props.location}constructor(e,t,i,n){super(e,null,t,i,n),this.displayName="LinkBanner",this.type=u.HeadlineLink,this.ctaType="LINK",this.foregroundImage=new t_({location:this.location,foregroundImageConfig:this.props.foregroundImageConfig,foregroundImageUrl:this.props.foregroundImageUrl})}}ir=(0,n.Cg)([tc,(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",["u"<typeof LinkBannerProps?Object:LinkBannerProps,"u"<typeof HTMLElement?Object:HTMLElement,Boolean,Boolean])],ir);class is{insertContent(e,t,i){let{content:n,location:r,foregroundImageConfig:s,foregroundImageUrl:o,backgroundImageConfig:a,backgroundImageUrl:l,backgroundType:c}=t.currentVersion,u=e=>({id:t.id,variation:e,foregroundImageConfig:s,foregroundImageUrl:o,backgroundImageConfig:a,backgroundImageUrl:l,backgroundType:c,allowDismiss:n.dismissOptions.allowDismiss,location:r,privacyDisclosureText:t.privacyDisclosureText,formConfig:t.currentVersion.qualifiedFormConfig,privacyDisclosureId:t.privacyDisclosureId}),{variation:d}=n;if(G(d))return tT.withState(i)(u(d),e,this.hasOffersFontEnhancements,this.hasDismissButtonAccessibilityEnabled);if($(d))return ir.withState(i)(u(d),e,this.hasOffersFontEnhancements,this.hasDismissButtonAccessibilityEnabled);if(Y(d))return tJ.withState(i)(u(d),e,this.hasOffersFontEnhancements,this.hasDismissButtonAccessibilityEnabled,this.hasOffersFormBannerMobileImprovements);if(X(d))return tD.withState(i)(u(d),e,this.hasOffersFontEnhancements,this.hasDismissButtonAccessibilityEnabled);if(Z(d))return it.withState(i)(u(d),e,this.hasOffersFontEnhancements,this.hasDismissButtonAccessibilityEnabled);else throw Error("Unknown variation type: "+JSON.stringify(d))}constructor(e=!1,t=!1,i=!1){this.hasOffersFontEnhancements=e,this.hasDismissButtonAccessibilityEnabled=t,this.hasOffersFormBannerMobileImprovements=i}}var io=i(1370);let ia="data-qualified-offer-body-overflow-style",il="data-qualified-offer-body-height-style";class ic{createHost(e){return D('\n <dialog\n id="'+N(e)+'"\n aria-labelledby="'+H(e)+'"\n style="\n display:flex;\n justify-content:center;\n align-items:center;\n position:fixed;\n left:0;\n bottom:0;\n width:100%;\n height:100dvh;\n z-index:2147483643;\n background: rgba(0, 0, 0, 0.70);\n max-width: 100%;\n max-height: 100vh;\n border: none;\n padding: 0;\n "\n >\n </dialog>\n ')}insertHost(e){this.flags.hasOffersPopupWithScrollDisabler?this.insertHostNext(e):(document.body.appendChild(e),document.body.setAttribute(ia,document.body.style.overflow),document.body.setAttribute(il,document.body.style.height),document.body.style.overflow="hidden",document.body.style.height="100dvh",e instanceof HTMLDialogElement&&e.showModal())}removeHost(e){var t,i;if(this.flags.hasOffersPopupWithScrollDisabler)return void this.removeHostNext(e);e.remove();let n=null!=(t=document.body.getAttribute(ia))?t:"";document.body.style.overflow=n;let r=null!=(i=document.body.getAttribute(il))?i:"";document.body.style.height=r,document.body.removeAttribute(ia),document.body.removeAttribute(il)}insertHostNext(e){document.body.appendChild(e),io.q.disableScroll("offers",{overlayElement:e}),e instanceof HTMLDialogElement&&e.showModal()}removeHostNext(e){e.remove(),io.q.restoreScroll("offers")}constructor(e={}){this.flags=e}}class iu{createHost(e){return D('\n <div\n id="'+N(e)+'"\n aria-labelledby="'+H(e)+'"\n style="\n position:fixed;\n left:15px;\n bottom:calc(15px + var('+k+', 0px));\n width:fit-content;\n height:fit-content;\n z-index:2147483641;\n "\n ></div>\n ')}insertHost(e){document.body.appendChild(e)}removeHost(e){e.remove()}}
3class id{createHost(e,t){let{locationOverride:i=e.currentVersion.location}=void 0===t?{}:t,n=this.getHandler(i).createHost(e.id);return this.addLocationAttribute(n,i)}insertHost(e){return this.getHandler(e).insertHost(e)}afterInsertAnimation(e){var t,i;return null==(t=(i=this.getHandler(e)).afterInsertAnimation)?void 0:t.call(i,e)}beforeRemoveAnimation(e){var t,i;return null==(t=(i=this.getHandler(e)).beforeRemoveAnimation)?void 0:t.call(i,e)}removeHost(e){return this.getHandler(e).removeHost(e)}addLocationAttribute(e,t){return e.setAttribute(A,t),e}getLocation(e){if("string"==typeof e)return e;if(!(e instanceof HTMLElement))return e.currentVersion.location;let t=e.getAttribute(A);if(!t)throw Error("Host does not have a location");return t}getHandler(e){let t=this.getLocation(e),i=this.LOCATIONS_HANDLERS.get(t);if(!i)throw Error("Unknown location: "+t);return i}constructor(e={}){this.flags=e,this.LOCATIONS_HANDLERS=new Map([[v,new eT],[y,new e9],[b,new ic(this.flags)],[_,new iu]])}}class ih{async render(e,t){let{animate:i=!1,state:n}=void 0===t?{}:t,r=this.locationManager.createHost(e),s=this.contentManager.insertContent(r,e,n);if(this.locationManager.insertHost(r),i)try{await this.animationManager.getAnimator(r,e.currentVersion.location,e.currentVersion.content.animation).animate()}catch(t){this.debugLog("Error animating offer: "+t,{offerId:e.id,location:e.currentVersion.location,animation:e.currentVersion.content.animation.type})}return this.locationManager.afterInsertAnimation(r),s}update(e,t){let i=document.getElementById(N(e.id));if(i)return this.contentManager.insertContent(i,e,t)}async remove(e,t){let{animate:i=!1}=void 0===t?{}:t,n=document.getElementById(N(e.id));if(n){if(this.locationManager.beforeRemoveAnimation(n),i)try{await this.animationManager.getAnimator(n,e.currentVersion.location,e.currentVersion.content.animation).reverse()}catch(t){this.debugLog("Error animating offer: "+t,{offerId:e.id,location:e.currentVersion.location,animation:e.currentVersion.content.animation.type})}this.locationManager.removeHost(n)}}debugLog(e,t){void 0===t&&(t={}),(0,w.dI)("[Renderer] "+e,t)}constructor(e={}){this.offerFeatureFlags=e,this.locationManager=new id(e),this.contentManager=new is(e.hasOffersFontEnhancements,e.hasDismissButtonAccessibilityEnabled,e.hasOffersFormBannerMobileImprovements),this.animationManager=new ta}}class ip{static async waitUntilLocationReady(e){if(!this.isInitialized)throw Error("RenderingInitializer not initialized");this.locationInitializationMap[e]||(await this.initializeLocation(e),this.locationInitializationMap[e]=!0)}static init(e){let{offerFeatureFlags:t,offersHeaderConfig:i}=e;this.isInitialized||(this.offerFeatureFlags=t,this.offersHeaderConfig=i,ev.setup(new ih(t)),this.isInitialized=!0)}static async initializeLocation(e){switch(e){case y:await e9.setup(this.offersHeaderConfig);break;case v:eT.setup();break;case b:case _:case g:break;default:(0,eE.d)(e)}}}ip.isInitialized=!1,ip.locationInitializationMap={[y]:!1,[v]:!1,[b]:!1,[_]:!1,[g]:!1};var im=i(8034).pS,ig=i(8034).LA,iv=i(8034).kZ,iy=i(8034).Qj,ib=i(8034).zh;class i_{async trigger(e){await Promise.all(e.map(e=>this.triggerOffer(e)))}clear(){for(let e of this.taskHandles.values())e.cancel();this.taskHandles.clear()}async triggerOffer(e){let{trigger:t}=e.currentVersion.target;switch(t.type){case"AFTER_PAGE_LOAD":await this.handleAfterPageLoad(e,t);break;case"ON_EXIT_INTENT":await this.handleOnExitIntent(e);break;default:this.debugLog("Unknown trigger type",{offer:JSON.stringify(e)})}}async handleAfterPageLoad(e,t){let i=ew(()=>this.waitUntilLocationReady(e),()=>this.afterLoadPromise,()=>new Promise(e=>im(e,1e3*t.delay)),()=>this.context.manager.add(e));this.taskHandles.add(i),await i.run(),this.taskHandles.delete(i)}async handleOnExitIntent(e){let t=ew(()=>this.waitUntilLocationReady(e),()=>new Promise(e=>im(e,1e4)),()=>this.waitForExitIntent(),()=>this.context.manager.add(e));this.taskHandles.add(t),await t.run(),this.taskHandles.delete(t)}async waitUntilLocationReady(e){await ip.waitUntilLocationReady(e.currentVersion.location)}
3async waitForExitIntent(){this.mobile?await this.waitForMobileExitIntent():await this.waitForDesktopExitIntent()}async waitForDesktopExitIntent(){return new Promise(e=>{let t=i=>{i.clientY<0&&(e(),document.documentElement.removeEventListener("mouseleave",t))};document.documentElement.addEventListener("mouseleave",t)})}async waitForMobileExitIntent(){return new Promise(e=>{let t=()=>{"visible"!==document.visibilityState&&(e(),s())},i=0,n=0,r=()=>{i=window.scrollY,im(()=>{n=window.scrollY},100),n-i>160&&(e(),s())},s=()=>{ig("visibilitychange",t),iv("scroll",r)};iy("visibilitychange",t),ib("scroll",r)})}get mobile(){var e;let t;return t=!1,e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t}debugLog(e,t){(0,w.dI)("[offer-main-script] "+e,t)}constructor(e){this.context=e,this.taskHandles=new Set,this.afterLoadPromise=(0,e_.I_)(),this.context.manager.subscribe("beforeClear",()=>this.clear())}}class iw extends s.A{get hasActiveForm(){return this.formManager.hasActiveOffer}pause(){this.context.manager.pause()}resume(){this.context.manager.resume()}get offerFeatureFlags(){return this._offerFeatureFlags||(this._offerFeatureFlags={hasOffersFontEnhancements:this.config.hasOffersFontEnhancements,disableQOfferInfo:this.config.disableQOfferInfo,hasOffersPopupWithScrollDisabler:this.config.hasOffersPopupWithScrollDisabler,hasWidgetFullScreenWithScrollDisabler:this.config.hasWidgetFullScreenWithScrollDisabler,hasDismissButtonAccessibilityEnabled:this.config.hasDismissButtonAccessibilityEnabled,hasOffersFormBannerMobileImprovements:this.config.hasOffersFormBannerMobileImprovements}),this._offerFeatureFlags}async init(e){let t=this.processOffers(e);if(this.context.manager.isPaused){this.pendingOffers=t;return}let i=this.offers.filter(e=>t.some(t=>t.id===e.id));await this.clearOffers({except:i}),this.offers=t,await this.triggerManager.trigger(this.offers.filter(e=>!i.some(t=>t.id===e.id)))}initPendingOffers(){this.pendingOffers&&(this.init(this.pendingOffers),this.pendingOffers=null)}async clearOffers(e){let{except:t}=e;await this.context.manager.clear({except:t}),this.offers=[...t]}processOffers(e){let t=[...e].sort((e,t)=>
3e.position-t.position),i=new Set;return t.filter(e=>!i.has(e.currentVersion.location)&&(i.add(e.currentVersion.location),!0))}constructor(e){super(e),this.offers=[],this.pendingOffers=null,this._offerFeatureFlags=null;const t=(0,r.tx)(eb,this.widget,{context:"Offers::OfferManager"});this.context=new ef(this.pageViewActivityEmitter,this.dateProvider,this.channel,new t,()=>this.iframeManager);const i=(0,r.tx)(i_,this.widget,{context:"Offers::TriggerManager"}),n=(0,r.tx)(l,this.widget,{context:"Offers::ButtonManager"}),s=(0,r.tx)(eh,this.widget,{context:"Offers::FormManager"});this.triggerManager=new i(this.context),this.buttonManager=new n(this.context,this.offerFeatureFlags),this.formManager=new s(this.context),this.context.manager.subscribe("afterResume",()=>this.initPendingOffers()),ip.init({offerFeatureFlags:this.offerFeatureFlags,offersHeaderConfig:this.config.offersHeaderConfig}),this.channel.on("initOffers",e=>{this.offerScript.init(e).then(()=>{this.widget.widgetIdForInitOffers!==this.widget.widgetId&&(this.widget.logTiming("Offers load time","offers_time_to_init_ms"),this.widget.widgetIdForInitOffers=this.widget.widgetId)}).catch(()=>{})})}}(0,n.Cg)([(0,r.Hi)({context:"Offers::OfferMainScript#init"}),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",["u"<typeof Immutable?Object:Immutable]),(0,n.Sn)("design:returntype",Promise)],iw.prototype,"init",null),(0,n.Cg)([(0,r.Hi)({context:"Offers::OfferMainScript#initPendingOffers"}),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[]),(0,n.Sn)("design:returntype",void 0)],iw.prototype,"initPendingOffers",null),(0,n.Cg)([(0,r.Hi)({context:"Offers::OfferMainScript#clearOffers"}),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[Object]),(0,n.Sn)("design:returntype",Promise)],iw.prototype,"clearOffers",null)},3518(e,t,i){"use strict";function n(e,t){let i=[];for(let n=0;n<e.length;n++)try{t(e[n],n,e)}catch(e){i.push(e)}return i}i.d(t,{z:()=>n})},7166(e,t,i){"use strict";var n=i(8880);i(2639),i(2540);let r=new Map;window.speechSynthesis,window.speechSynthesis,i.d(t,{},{T:(e,t)=>{if(window.Audio){let s=i=>{if(i instanceof DOMException)(0,n.wd)("playAudio: autoplay blocked",{level:"warning",tags:{"team.id":null==t?void 0:t.teamId,error_name:i.name},extra:{"user.id":null==t?void 0:t.userId,sound:e}});else throw i};try{var i;let t=r.get(e);t||(t=new Audio(e),r.set(e,t)),t.currentTime=0,null==(i=t.play())||i.catch(s)}catch(e){s(e)}}}})},5036(e,t,i){"use strict";class n extends Set{add(e){if(!this.has(e)&&this.maxSize>0&&this.size>=this.maxSize){let e=this.values().next().value;void 0!==e&&this.delete(e)}return super.add(e)}constructor(e){super(),this.maxSize=e}}i.d(t,{Q:()=>n})},5114(e,t,i){"use strict";i.d(t,{},{z:e=>function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];if(i.length>=2&&("string"==typeof i[1]||"symbol"==typeof i[1])){let[t,n]=i,r=i[2];return r||(r={}),e(void 0,t,n,r)||r}let[r]=i;return(t,i,n)=>(n||(n={}),e(r,t,i,n)||n)}})},1078(e,t,i){"use strict";var n,r,s=i(8034).Qj,o=i(8034).zh,a=i(8034).kZ;(null==(n=document)?void 0:n.documentElement)||null==(r=document)||r.body;let l="isConnected"in Node.prototype?(e,t)=>(void 0===t&&(t=document),e.isConnected&&e.ownerDocument===t):(e,t)=>(void 0===t&&(t=document),e.ownerDocument===t&&!(t.compareDocumentPosition(e)&t.DOCUMENT_POSITION_DISCONNECTED));function c(){return(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?Promise.resolve():new Promise(e=>{s("DOMContentLoaded",()=>e())})}let u=!1,d=!1;function h(e,t,i,n){let r,{capture:s=!1,passive:l=!1}=void 0===n?{}:n;return r=!function(){if(!u){let e={get passive(){return d=!0,!0}};try{o("testPassive",null,e),a("testPassive",null,e)}catch(e){}u=!0}return d}()?s:{capture:s,passive:l},e.addEventListener(t,i,r),()=>{e.removeEventListener(t,i,r)}}function p(){var e;return(null==(e=document)?void 0:e.visibilityState)==="visible"}function m(e,t){var i;let{filterFn:n=()=>!0,filterOncePerShadowDom:r=!0,hasShadowDomSupport:s=!1,nestedTriggersSupport:o=!1}=void 0===t?{}:t,a="composedPath"in e?e.composedPath():[];if(!s||0===a.length||!(a[0].getRootNode()instanceof ShadowRoot)){let{target:t}=e;if(o)for(;t&&!(t instanceof Element);)t=t.parentNode;return n(t)?t:null}if(!r)return null!=(i=a.find(n))?i:null;let l=!0;for(let e of a){if(l&&n(e))return e;l=e instanceof ShadowRoot}return null}function f(e,t){return void 0===t&&(t={}),Object.assign(new e.constructor(e.type,e),t)}i.d(t,{EY:()=>f,I_:()=>c,n:()=>p,q2:()=>h,wt:()=>m},{FS:l})},8274(e,t,i){"use strict";var n=i(4613);i.d(t,{},{I:(e,t)=>"\n "+(0,n.Cw)(e,t)+'\n <span aria-live="polite" class="QualifiedForm-visuallyHidden">\n Loadingâ¦\n </span>\n ',Z:e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")})},8189(e,t,i){"use strict";var n=i(4700),r=i.n(n);function s(){try{return window.self!==window.top}catch(e){return!0}}function o(){let e;try{var t;(null==(t=window.location.ancestorOrigins)?void 0:t.length)>0&&(e=window.location.ancestorOrigins[0]),e||(e=new URL(document.referrer).origin)}catch(e){}return e}function a(e,t,i){let n,s;if(void 0===i&&(i=!1),!t)return!1;try{let e=new URL(t);s=(s=(n=(n=e.host.toLowerCase()).startsWith("www.")&&i?n.slice(4):n)+e.pathname.toLocaleLowerCase()).endsWith("/")?s.slice(0,-1):s}catch(e){return!1}if(0===e.length)return!0;let o={};
3e.forEach(e=>{let t=e.split("."),i=[];t.forEach(e=>{"*"===e?i.push("(.*?)"):i.push(r()(e))}),o[e]=RegExp("^"+i.join("\\.")+"$")});let a=e=>e.replace(/^https?:\/\//,"").toLowerCase();for(let[e,t]of Object.entries(o)){let r=a(e).includes("/");if(i&&r){if(t.test(s))return!0}else if(t.test(n))return!0}return!1}i.d(t,{Bq:()=>o,_F:()=>a,f8:()=>s})},9192(e,t,i){"use strict";function n(e,t){try{return localStorage.setItem(e,JSON.stringify(t)),!0}catch(e){return!1}}function r(e){try{return JSON.parse(localStorage.getItem(e))}catch(e){return null}}i.d(t,{C6:()=>n,yw:()=>r},{Fn:n,LQ:r,n9:function(e){try{return localStorage.removeItem(e),!0}catch(e){return!1}}})},525(e,t,i){"use strict";var n=i(8635),r=i(375),s=i(3518);function o(e){var t;return t=(0,r._)("_disposerQueue"),class extends e{cleanup(){}dispose(){if(!this.isDisposed){this.isDisposed=!0;let e=(0,s.z)((0,n._)(this,t)[t],e=>e());if((0,n._)(this,t)[t]=[],null==this.cleanup||this.cleanup.call(this),super.dispose==null||super.dispose.call(this),e.length>0)throw Error("Dispose errors: "+e.join(", "))}}tryDispose(){try{this.dispose()}catch(e){}}callOnDispose(e){(0,n._)(this,t)[t].push(e)}constructor(...e){super(...e),Object.defineProperty(this,t,{writable:!0,value:void 0}),this.isDisposed=!1,(0,n._)(this,t)[t]=[]}}}function a(e,t,i){if(!i)return void Object.defineProperty(e,t,{configurable:!0,get(){var e=this;let i=Object.getOwnPropertyDescriptor(this,t),n=null==i?void 0:i.value;if("function"!=typeof n)return n;let r=function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];if(!e.isDisposed)return n.apply(e,i)};return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}});if(i.value){let e=i.value;i.value=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];if(!this.isDisposed)return e.apply(this,i)}}else if(i.initializer){let{initializer:e}=i;i.initializer=function(){var t=this;let i=e.call(this);return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!t.isDisposed)return i.apply(t,n)}}}else throw Error("Bad descriptor.");return i}i.d(t,{H:()=>a,j:()=>o})},1314(e,t,i){"use strict";function n(e){return class extends e{constructor(...e){super(...e);const{container:t,name:i,singleton:n}=e[0];this.container=t,n&&t.set(i,this)}}}let r=(0,i(5114).z)((e,t,i,n)=>{let r=null!=e?e:i;return n.get=function(){return this.container.resolve(r)},n});i.d(t,{_:()=>n},{W:r})},4613(e,t,i){"use strict";function n(e,t){var i,n,r,s;let o;e&&("string"==typeof t.textContent&&(i=e,n=t.textContent,o=!1,!function e(t){var i;t.nodeType===Node.TEXT_NODE&&(null==(i=t.textContent)?void 0:i.trim())&&!o?(t.textContent=n,o=!0):t.nodeType===Node.TEXT_NODE?t.textContent="":t.childNodes.forEach(e)}(i),o||(i.textContent=n)),r=e,s=t,!function e(t){t instanceof HTMLElement&&("string"==typeof s.backgroundColor&&t.style.setProperty("background-color",s.backgroundColor,"important"),"string"==typeof s.textColor&&t.style.setProperty("color",s.textColor,"important"),t.childNodes.forEach(e))}(r),"string"==typeof s.borderColor&&r instanceof HTMLElement&&r.style.setProperty("border-color",s.borderColor,"important"))}let r="q-intermediate-loading-template",s=(e,t)=>{let i=Math.floor(t*Math.PI*2),n=Math.floor(.75*i),r=3*i;return'\n <svg\n width="'+2*t+'"\n height="'+2*t+'"\n viewBox="0 0 '+2*t+" "+2*t+'"\n xmlns="http://www.w3.org/2000/svg"\n >\n <circle\n cx="'+t+'"\n cy="'+t+'"\n r="'+(t-2)+'"\n fill="none"\n stroke-width="2px"\n stroke="rgba(0, 0, 0, 0.12)"\n ></circle>\n <circle\n cx="'+t+'"\n cy="'+t+'"\n r="'+(t-2)+'"\n fill="none"\n stroke="'+e+'"\n stroke-width="2px"\n >\n <animateTransform\n attributeName="transform"\n attributeType="XML"\n type="rotate"\n from="0 '+t+" "+t+'"\n to="360 '+t+" "+t+'"\n dur="2s"\n repeatCount="indefinite"\n />\n <animate\n attributeName="stroke-dasharray"\n dur="1.5s"\n values="0 '+r+"; "+n+" "+r+"; "+n+" "+r+"; "+n+" "+r+'"\n keyTimes="0; 0.475; 0.95;
3 1"\n repeatCount="indefinite"\n />\n <animate\n attributeName="stroke-dashoffset"\n dur="1.5s"\n values="0; -'+Math.floor(.25*i)+"; -"+i+"; -"+i+'"\n keyTimes="0; 0.475; 0.95; 1"\n repeatCount="indefinite"\n />\n </circle>\n </svg>\n '};function o(e,t){switch(t){case"hidden":e instanceof HTMLElement&&(e.style.visibility="hidden");break;case"ellipsis":e.textContent="...";break;case"spinner":!function(e){if(e instanceof HTMLElement){let{position:t}=getComputedStyle(e),{offsetHeight:i,offsetWidth:n}=e,{color:o,fontSize:l}=getComputedStyle(a(e)||e),c=Math.floor(Number(l.replace("px",""))/2),u=n/2-c,d=i/2-c,h=!1;e.childNodes.forEach(e=>{e instanceof HTMLElement?e.style.opacity="0":h=!0}),h&&(e.style.color="rgba(0, 0, 0, 0)"),"static"===t&&(e.style.position="relative");let p=document.createElement("template");p.setAttribute("id",r),p.innerHTML=s(o,c);let m=document.createElement("div");m.id=r,m.style.position="absolute",m.style.lineHeight="0",m.style.top=""+d+"px",m.style.left=""+u+"px",e.appendChild(m),m.attachShadow({mode:"open"}).appendChild(p.content)}}(e);break;case"icon":!function(e){var t,i;let{color:n,fontSize:s,width:o,height:a}=getComputedStyle(e);e instanceof HTMLElement&&(e.style.minWidth=o,e.style.minHeight=a),e.innerHTML="";let l=document.createElement("template");l.setAttribute("id",r),void 0===(t=n)&&(t="white"),void 0===(i=s)&&(i="14px"),l.innerHTML='\n<svg id="intermediate-loading-svg" width="'+i+'" height="'+i+'" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg">\n <defs>\n <linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="a">\n <stop stop-color="'+t+'" stop-opacity="0" offset="0%"/>\n <stop stop-color="'+t+'" stop-opacity=".631" offset="63.146%"/>\n <stop stop-color="'+t+'" offset="100%"/>\n </linearGradient>\n </defs>\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(1 1)">\n <path d="M36 18c0-9.94-8.06-18-18-18" id="Oval-2" stroke="url(#a)" stroke-width="2">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="0.9s"\n repeatCount="indefinite" />\n </path>\n <circle fill="'+t+'" cx="36" cy="18" r="1">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="0.9s"\n repeatCount="indefinite" />\n </circle>\n </g>\n </g>\n</svg>';let c=document.createElement("div");e.appendChild(c),c.attachShadow({mode:"open"}).appendChild(l.content)}(e)}}function a(e){let t=0,i=null;return!function e(n){if(n.nodeType===Node.TEXT_NODE){var r,s;let e=null!=(r=null==(s=n.textContent)?void 0:s.trim().length)?r:0;e>t&&(t=e,i=n.parentNode)}else for(let t of n.childNodes)e(t)}(e),i}i.d(t,{Db:()=>n,Vw:()=>a,lc:()=>o},{Cw:s})},2328(e,t,i){"use strict";function n(e){let t,i,n;void 0===e&&(e=()=>{});let r=!1,s=!1,o=new Promise(e=>n=e),a=new Promise((s,o)=>{e(t=e=>{r=!0,n(),s(e)},i=e=>{r=!0,n(),o(e)})});return a.catch(()=>{}),{resolve:t,reject:i,cancel:e=>{void 0===e&&(e={isCanceled:!0}),r||(s=!0,i(e))},get isSettled(){return r},get isCanceled(){return s},then:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return a.then(...t)},catch:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return a.catch(...t)},finally:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return a.finally(...t)},__settled:o,[Symbol.toStringTag]:"BetterPromise"}}function r(e,t,i){let r;return n((n,s)=>{let o=e=>{r(),n(e)},a=e=>{r(),s(e)};t&&e.once(t,o),i&&e.once(i,a),r=()=>{t&&e.off(t,o),i&&e.off(i,a)}})}i.d(t,{Oo:()=>r,eu:()=>n})},159(e,t,i){"use strict";var n=i(228);let r="__q_proxy_original",s="__q_proxy_saved";function o(e){return Object.prototype.hasOwnProperty.call(e,r)}function a(e,t,i){let a;try{a=function(e){if(o(e))return e;let t=new Map,i=new Proxy(e,{get(e,i){if(!t.has(i))return Reflect.get(e,i);let n=t.get(i);if(!n){let t;return(t=Reflect.getPrototypeOf(e))?Reflect.get(t,i,e):void 0}return n.get?n.get.call(e):n.value},set:()=>!1,has(e,i){if(!t.has(i))return Reflect.has(e,i);if(t.get(i))return!0;let n=Reflect.getPrototypeOf(e);return!!n&&Reflect.has(n,i)},getOwnPropertyDescriptor(e,i){if(!t.has(i))return Reflect.getOwnPropertyDescriptor(e,i);let r=t.get(i);return r&&(0,n._)({},r,{configurable:!0})}});return Object.defineProperty(e,s,{value:t,enumerable:!1,writable:!1,
3configurable:!0}),Object.defineProperty(e,r,{value:i,enumerable:!1,writable:!1,configurable:!0}),e}(e)}catch(t){return e}let l=Reflect.getOwnPropertyDescriptor(e,t);try{Object.defineProperty(e,t,(0,n._)({},i,{configurable:!0}))}catch(e){return a}let c=a[s];return c.has(t)||c.set(t,l),a}function l(e){return o(e)?e[r]:e}i.d(t,{lE:()=>a,zW:()=>l})},2521(e,t,i){"use strict";var n=i(4990);class r extends HTMLElement{connectedCallback(){this.style.cssText="display:contents"}}let s=(0,n.h)("q-root",r);function o(){let e=s();return e.parentNode!==document.documentElement&&document.documentElement.appendChild(e),e}i.d(t,{D:()=>o})},4990(e,t,i){"use strict";let n="data-q-host";function r(e,t){let i=null;return function(){if(i)return i;if(!customElements.get(e))try{customElements.define(e,t)}catch(e){}let r=document.querySelector(e+"["+n+"]");return r instanceof HTMLElement?i=r:((i=document.createElement(e)).setAttribute(n,""),i)}}i.d(t,{h:()=>r})},8715(e,t,i){"use strict";var n,r;i.d(t,{XY:()=>s,dI:()=>p,ko:()=>c,Z$:()=>l,Bb:()=>h,Nz:()=>d,U3:()=>m,cR:()=>u}),(r=n||(n={}))[r.All=0]="All",r[r.Two=1]="Two",r[r.One=2]="One";let s="a, button, .btn, [role=button], input[type=button], input[type=submit]",o=/\[href="([^"]+)"\]/,a=/a:contains\("([^"]+)"\)/,l=e=>{var t;return null==(t=e.match(a))?void 0:t[1]},c=e=>{var t;return null==(t=e.match(o))?void 0:t[1]},u=e=>e.sort((e,t)=>e.scopePrecedence<t.scopePrecedence?-1:+(e.scopePrecedence!==t.scopePrecedence)),d=(e,t)=>{var i,n,r;let s=l(t);return s?(null==(r=e.textContent)||null==(n=r.trim())||null==(i=n.toLowerCase())?void 0:i.replaceAll(/\xA0/g," "))===s.toLowerCase():e.matches(t+", "+t+" *")},h=()=>new URLSearchParams(document.location.search).has("q_debug"),p=(e,t)=>{void 0===t&&(t={});try{if(h()){let i=Object.keys(t).length>0?"["+Object.entries(t).map(e=>{let[t,i]=e;return t+"="+i}).join(" ")+"] ":"";console.log(""+i+e)}}catch(e){console.error(e)}};function m(e){return e.matches(":is(qualified-form, [data-qualified-offer-host-location], #qualified-multimodal-host) *")}},3175(e,t,i){"use strict";function n(e){return btoa(unescape(encodeURIComponent(e)))}function r(e){return decodeURIComponent(escape(atob(e)))}i(8688),i.d(t,{Ey:()=>r,nk:()=>n})},2540(e,t,i){"use strict";var n=i(8034).pS,r=i(8034).wm,s=i(8034).Kj;let o=()=>{};function a(e){return new Promise(t=>n(t,e))}function l(e,t){if(!t)return o;{let i=()=>{i.intervalID&&(r(i.intervalID),i.intervalID=null)};return i.intervalID=window.setInterval(t,e),i}}function c(e,t){if(!t)return o;{let i=()=>{i.timeoutID&&(s(i.timeoutID),i.timeoutID=null)};return i.timeoutID=window.setTimeout(t,e),i}}i.d(t,{Pl:()=>c,Si:()=>l,cb:()=>a})},9165(e,t,i){"use strict";i(6933),i(4331);let n=e=>{let t="string"==typeof e?new URL(e):e;return t.host=t.host.replace(/^(https?:\/\/)?(www\.)?/i,"").toLowerCase(),t.pathname=t.pathname.replace(/\/$/,""),t};i.d(t,{},{Lb:e=>{if(!e||""===e.trim())return"";try{let t=new URL(e);return t.search="",t.hash="",t.hostname=t.hostname.toLowerCase(),("http:"===t.protocol&&"80"===t.port||"https:"===t.protocol&&"443"===t.port)&&(t.port=""),t.toString()}catch(t){return e}},dM:(e,t,i)=>{void 0===i&&(i=!1);let r=n(e),s=n(t),o=r.host===s.host,a=r.pathname===s.pathname;return o&&(i||a)},dc:n})},2693(e,t,i){"use strict";function n(e,t){return e.includes(t)}function r(e){try{return e()}catch(e){return}}i.d(t,{EE:()=>function e(t){return Array.isArray(t)?t.map(e):t&&"object"==typeof t?Object.fromEntries(Object.entries(t).map(t=>{let[i,n]=t;return[i.replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase(),e(n)]})):t},S1:()=>n,_p:()=>r})},3991(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>p});var n=i(228),r=i(1416);let s=class{trackEvent(e){null==window.fbq||window.fbq.call(window,"trackCustom",e)}};class o{trackEvent(e,t){var i;null==(i=this.tracker)||i._trackEvent(e,t)}constructor(e){e?this.tracker=window._gat._getTracker(e):this.tracker=window.pageTracker}}class a{trackEvent(e,t){let i={event_category:e};this.propertyId&&(i.send_to=this.propertyId),null==window.gtag||window.gtag.call(window,"event",t,i)}constructor(e){this.propertyId=e}}class l{trackEvent(e,t){this.initialized.then(()=>{var i;null==(i=this.tracker)||i.send("event",e,t)})}constructor(e){this.initialized=new Promise(t=>{window.ga(()=>{var i,n;e?(null==window.ga||window.ga.call(window,"create",e,"auto","_qualifiedTracker"),this.tracker=null==(i=window.ga)?void 0:i.getByName("_qualifiedTracker")):this.tracker=null==(n=window.ga)?void 0:n.getAll()[0],t()})})}}let c=class{trackEvent(e){var t;null==(t=this.tracker)||t.trackEvent("Qualified Chat",e)}constructor(e){try{window._gat?this.tracker=new o(e):window.ga?this.tracker=new l(e):window.gtag&&(this.tracker=new a(e))}catch(e){console.warn("Qualified: Error initializing Google Analytics",e)}}},u=class{trackEvent(e){var t;null==(t=window.dataLayer)||t.push({action:e,category:"Qualified Chat",event:"ga_event"})}trackSalesforceEvent(e){"u"<typeof window||window.dataLayer&&window.dataLayer.push(e)}};var d=i(9394);class h extends r.A{init(){if(!(0,d.RC)("analytics"))return;let e=[];
3if(this.config.analytics.googleAnalytics.trackEvents&&e.push(new c(this.config.analytics.googleAnalytics.propertyId)),this.config.analytics.googleTagManager.trackEvents){var t,i;let n=new u;(null==(i=this.config)||null==(t=i.featureFlags)?void 0:t.piperWebTrackingEvents)?this.gtmTrackers.push(n):e.push(n)}this.config.analytics.facebook.trackEvents&&e.push(new s),(e.length||this.gtmTrackers.length)&&this.channel.on("received",(t,i)=>{if("conversationEvent"===t&&"Message Captured"!==i.name)try{e.forEach(e=>e.trackEvent(i.name))}catch(e){console.warn("Qualified: Error sending tracking event",e)}if("piperWebTrackingEvent"===t)try{let e=(0,n._)({},i.data,{event:i.name});this.gtmTrackers.forEach(t=>t.trackSalesforceEvent(e))}catch(e){console.warn("Qualified: Error sending GTM Salesforce event",e)}})}constructor(...e){super(...e),this.gtmTrackers=[]}}let p=h},8400(e,t,i){"use strict";var n=i(228),r=i(8034).zh,s=i(8034).Qj,o=i(8034).kZ,a=i(8034).LA;let l="booker_intent",c="qlfd:booker_intent_resolved:";class u{get isArmed(){return null!==this.intent}arm(e){let{intentId:t,pathwayOrigin:i,conversationType:n,botApiName:o,scriptId:a,fromHistory:l=!1}=e;this.safely(()=>{var e;if((null==(e=this.intent)?void 0:e.intentId)===t||l&&this.alreadyResolved(t))return;this.teardown();let c=!this.documentVisible();this.intent={intentId:t,pathwayOrigin:i,conversationType:n,botApiName:o,scriptId:a,startedAtMs:this.nowMs(),measureTiming:!l&&"u">typeof performance,fromHistory:l,outcomeEmitted:!1,shownEmitted:!1,qualificationReceivedEmitted:!1,wasEverHidden:c,hiddenAtMs:c?this.nowMs():void 0},"u">typeof window&&r("pagehide",this.handlePagehide),"u">typeof document&&s("visibilitychange",this.handleVisibilityChange)})}markQualificationReceived(){this.safely(()=>{let{intent:e}=this;if(!e||e.qualificationReceivedEmitted)return;e.qualificationReceivedEmitted=!0;let t=this.timing(e);void 0!==t.timing&&this.emit(e,(0,n._)({meeting_stage:"intent_to_qualification_received"},t))})}markNoOffer(){this.safely(()=>{let{intent:e}=this;if(!e||e.outcomeEmitted)return;e.outcomeEmitted=!0;let t=this.timing(e);this.teardown(),this.intent=null,this.emit(e,(0,n._)({meeting_stage:l,outcome:"no_offer"},t))})}markOffered(e,t){let{calendarEventTypeId:i}=void 0===t?{}:t;this.safely(()=>{let{intent:t}=this;t&&!t.outcomeEmitted&&(t.outcomeEmitted=!0,t.offerMessageId=e,t.calendarEventTypeId=i,this.emit(t,(0,n._)({meeting_stage:l,outcome:"offered",offer_message_id:e},this.timing(t))))})}markShown(e){this.safely(()=>{let{intent:t}=this;if(!t||!t.outcomeEmitted||t.shownEmitted||t.offerMessageId!==e)return;t.shownEmitted=!0;let i=this.timing(t);this.teardown(),this.intent=null,void 0!==i.timing&&this.emit(t,(0,n._)({meeting_stage:"intent_to_booker_shown",offer_message_id:e},i))})}dispose(){this.safely(()=>{this.teardown(),this.intent=null})}timing(e,t){let{atUnload:i=!1}=void 0===t?{}:t;if(!e.measureTiming||e.wasEverHidden)return{};if(void 0!==e.hiddenAtMs){let t=this.nowMs()-e.hiddenAtMs;if(!i||t>200)return{}}else if(!i&&!this.documentVisible())return{};let n=Math.round(this.nowMs()-e.startedAtMs);return Number.isFinite(n)&&n>=0?{timing:n}:{}}emit(e,t,i){void 0===i&&(i=!1),t.outcome&&this.markResolved(e.intentId),this.log((0,n._)({type:"log",message:"booker_intent",extra:(0,n._)({},this.surface?{surface:this.surface}:{},{pathway_origin:e.pathwayOrigin,conversation_type:e.conversationType},e.botApiName?{bot_api_name:e.botApiName}:{},e.scriptId?{script_id:e.scriptId}:{},e.calendarEventTypeId?{calendar_event_type_id:e.calendarEventTypeId}:{},t)},i?{fireAndForget:!0}:{}))}markResolved(e){try{window.sessionStorage.setItem(""+c+e,"1")}catch(e){}}alreadyResolved(e){try{return null!==window.sessionStorage.getItem(""+c+e)}catch(e){return!1}}nowMs(){return"u">typeof performance?performance.now():0}documentVisible(){return"u"<typeof document||"visible"===document.visibilityState}teardown(){"u">typeof window&&o("pagehide",this.handlePagehide),"u">typeof document&&a("visibilitychange",this.handleVisibilityChange)}safely(e){try{e()}catch(e){}}constructor({surface:e,log:t}){this.intent=null,this.handlePagehide=e=>{this.safely(()=>
3{if(e.persisted)return;let{intent:t}=this;if(!t||t.outcomeEmitted||t.fromHistory)return;t.outcomeEmitted=!0;let i=this.timing(t,{atUnload:!0});this.teardown(),this.intent=null,this.emit(t,(0,n._)({meeting_stage:l,outcome:"abandoned_pre_offer"},i),!0)})},this.handleVisibilityChange=()=>{this.safely(()=>{let{intent:e}=this;e&&(this.documentVisible()?(void 0!==e.hiddenAtMs&&(e.wasEverHidden=!0),e.hiddenAtMs=void 0):e.hiddenAtMs=this.nowMs())})},this.surface=e,this.log=t}}i.d(t,{$k:()=>u})},9122(e,t,i){"use strict";var n=i(228),r=i(8034).pS,s=i(8034).zh,o=i(8034).Qj,a=i(8034).Kj,l=i(8034).kZ,c=i(8034).LA;let u="failed",d="abandoned",h={CHAT:"chat",FORM:"form",AI_AGENT:"ai_agent",MEETING_LINK:"meeting_link",LIVE_BOOKING:"live_booking"},p={chat:h.CHAT,element:h.FORM,meeting_link:h.MEETING_LINK,meeting_link_routed:h.MEETING_LINK};function m(e,t){var i;let n=null!=(i=p[(null!=e?e:"").toLowerCase()])?i:h.CHAT;return n===h.CHAT&&"auto_respond"===(null!=t?t:"").toLowerCase()?h.AI_AGENT:n}let f=new Set;function g(e){let{log:t,surface:i,outcome:r,pathwayOrigin:s,conversationType:o,offerMessageId:a,timing:l}=e;f.has(a)||(f.add(a),t((0,n._)({type:"log",message:"booker_outcome",extra:(0,n._)({meeting_stage:"booker_shown",outcome:r,surface:i,pathway_origin:s,conversation_type:o,offer_message_id:a},void 0===l?{}:{timing:l})},r===d?{fireAndForget:!0}:{})))}function v(e){try{g((0,n._)({},e,{outcome:u}))}catch(e){}}class y{arm(e,t,i){this.safely(()=>{this.teardown(),this.offerMessageId=e,this.pathwayOrigin=t,this.conversationType=i,this.armedAtMs="u">typeof performance?performance.now():void 0,this.resolved=!1,this.armedWhileHidden=!this.documentVisible(),this.hiddenAtMs=void 0,this.returnedFromHidden=!1,this.timeoutId=r(this.handleTimeout,this.timeoutMs),"u">typeof window&&s("pagehide",this.handlePagehide),"u">typeof document&&o("visibilitychange",this.handleVisibilityChange)})}markShown(e){this.safely(()=>{e&&e!==this.offerMessageId||this.resolve("shown")})}dispose(){this.safely(()=>{this.teardown(),this.offerMessageId=null})}documentVisible(){return"u"<typeof document||"visible"===document.visibilityState}nowMs(){return"u">typeof performance?performance.now():0}safely(e){try{e()}catch(e){}}resolve(e){!this.resolved&&this.offerMessageId&&(this.resolved=!0,this.teardown(),this.emit(e))}emit(e){this.offerMessageId&&g((0,n._)({log:this.log,surface:this.surface,outcome:e,pathwayOrigin:this.pathwayOrigin,conversationType:this.conversationType,offerMessageId:this.offerMessageId},this.timing(e)))}timing(e){if("u"<typeof performance||this.armedWhileHidden)return{};if(e===d){var t;return this.returnedFromHidden?{}:this.elapsedTo(null!=(t=this.hiddenAtMs)?t:this.nowMs())}return void 0===this.hiddenAtMs&&this.documentVisible()?this.elapsedTo(this.nowMs()):{}}elapsedTo(e){if(void 0===this.armedAtMs)return{};let t=Math.round(e-this.armedAtMs);return Number.isFinite(t)&&t>=0?{timing:t}:{}}teardown(){void 0!==this.timeoutId&&(a(this.timeoutId),this.timeoutId=void 0),"u">typeof window&&l("pagehide",this.handlePagehide),"u">typeof document&&c("visibilitychange",this.handleVisibilityChange)}constructor({surface:e,log:t,timeoutMs:i=9e4}){this.offerMessageId=null,this.pathwayOrigin=h.CHAT,this.conversationType="chat",this.resolved=!1,this.armedWhileHidden=!1,this.returnedFromHidden=!1,this.handleTimeout=()=>{this.safely(()=>{("u"<typeof document||"visible"===document.visibilityState)&&this.resolve(u)})},this.handleVisibilityChange=()=>{this.safely(()=>{this.documentVisible()?void 0!==this.hiddenAtMs&&(this.returnedFromHidden=!0):null!=this.hiddenAtMs||(this.hiddenAtMs=this.nowMs())})},this.handlePagehide=e=>{this.safely(()=>{e.persisted||this.resolve(d)})},this.surface=e,this.log=t,this.timeoutMs=i}}i.d(t,{Zn:()=>y,jt:()=>m,sJ:()=>v},{Ls:{LEGACY:"legacy",MULTIMODAL:"multimodal",STANDALONE:"standalone"},tw:h})},9394(e,t,i){"use strict";function n(e){return!0}let r=Object.freeze({navigate_content:"agentNavigation",point_cursor:"agentNavigation"});function s(e){return r[e]}let o=Object.freeze({initPardotForm:"pardot",initPardotFormThankYou:"pardot",parsePardotForm:"pardot",parsePardotFormForLandingPage:"pardot",pardotFormSubmitted:"pardot",registerForm:"formCapture",showForm:"formCapture",showFormE
3xperience:"formCapture",showExperienceForForm:"formCapture",saveFormData:"formCapture",saveSmartFormData:"formCapture",sendSmartFormData:"formCapture",emitFormFill:"formCapture",submitEmbeddedForm:"formCapture"});function a(e){return o[e]}i.d(t,{MW:()=>s,RC:()=>n,mk:()=>a})},9776(e,t,i){"use strict";var n=i(5114),r=i(905);let s=(0,n.z)((e,t,i,n)=>{let s=n.value;return n.value=function(){let n;for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];let c=(n=this.widget,s=>{try{var o;if(!s)return;if(null==(o=(0,r.Nj)())||o.captureException(s),null==e?void 0:e.sendToServer){let r=(null==e?void 0:e.context)||t.constructor.name+"#"+i,o=function(e){if(!e)return{message:"Unknown error"};if("string"==typeof e)return{message:e};if(e instanceof Error)return{message:e.message,stack:e.stack};if(e&&"object"==typeof e)try{return{message:JSON.stringify(e)}}catch(e){}return{message:String(e)}}(s),a={context:r};"string"==typeof o.stack&&(a.stack=o.stack),n.serverLog({message:o.message,type:"both",extra:a})}}catch(e){console.warn("Qualified: An unexpected issue occurred in captureWidgetExceptions",e)}if((null==e?void 0:e.rethrow)!==!1)throw s});try{let e=s.apply(this,a);if(e&&"function"==typeof e.catch)return e.catch(c);return e}catch(e){c(e)}},n});function o(e,t,i){return void 0===i&&(i={}),class extends e{constructor(...n){super(...n),this.widget=t;try{Object.getOwnPropertyNames(e.prototype).forEach(e=>{if("constructor"!==e&&"function"==typeof this[e]){let t=this[e];this[e]=s(i)(this,e,{value:t}).value}})}catch(e){console.warn("Qualified: An unexpected issue occurred in withCaptureExceptions",e)}}}}i.d(t,{tx:()=>o},{Hi:s})},97(e,t,i){"use strict";var n=i(8400),r=i(9122),s=i(7288);let o=new n.$k({log:e=>s.aF.serverLog(e)}),a=["initElementConversation","initQualifiedFormElementConversation","elementMessage"];function l(e,t){o.arm({intentId:e,pathwayOrigin:r.tw.FORM,conversationType:"element",botApiName:t})}function c(e){o.isArmed&&h(()=>{var t,i,n,r;let s,l,c=function(e){if(!a.includes(null==e?void 0:e.event))return[];let t=null==e?void 0:e.payload;return t?Array.isArray(t.messages)?t.messages:t.type?[t]:[]:[]}(e),u=c.find(e=>(null==e?void 0:e.type)==="calendar_event_offer");if(u){if(u.id){o.markOffered(u.id,{calendarEventTypeId:null==(t=u.calendarEventTypeId)?void 0:t.toString()})}else d();return}c.some(e=>(null==e?void 0:e.type)==="lightbox_gather")?o.markQualificationReceived():(l=(s=Array.isArray(null==(i=e)||null==(r=i.payload)?void 0:r.conversations)?i.payload.conversations:[])[s.length-1],("initState"===i.event&&["smart_cta","form"].includes(null!=(n=null==l?void 0:l.triggeredByBotType)?n:"")||"closeLightbox"===i.event)&&o.markNoOffer())})}function u(e){o.isArmed&&h(()=>{var t,i;if((null==e?void 0:e.message)!=="booker_outcome"||(null==(t=e.extra)?void 0:t.outcome)!=="shown")return;let n=null==(i=e.extra)?void 0:i.offer_message_id;"string"==typeof n&&o.markShown(n)})}function d(){o.dispose()}function h(e){try{e()}catch(e){}}i.d(t,{HT:()=>c,Xk:()=>l,pZ:()=>u,wu:()=>d})},5172(e,t,i){"use strict";let n="data-qualified-manual-experience-id";function r(){for(let t of document.querySelectorAll("[data-qualified-meeting-booker-container]["+n+"]")){var e;let i=null==(e=t.getAttribute(n))?void 0:e.trim();if(i)return{container:t,experienceId:i}}return null}function s(e){return!!e.inlineMeetingBooker&&!!e.widgetAllowMessengerV2Styling&&!!e.widgetUseCodeSplitSnippet&&null!==r()}let o=new Set(["showLightboxLoading","startElementConversationLoadingState","initElementConversation","initQualifiedFormElementConversation"]);function a(e,t){return o.has(e)&&s(t)}i.d(t,{$D:()=>s,FI:()=>a,f3:()=>r})},2098(e,t,i){"use strict";i.d(t,{},{X:{BUTTON_CLICK:{name:"Visitor: Button Click",samplingProbability:1},WAIT_FOR_LIGHTBOX_LOADING_SPINNER:{name:"System: Wait for lightbox loading spinner",samplingProbability:1}}})},8376(e,t,i){"use strict";i.d(t,{},{D:{SUBMIT_FORM:{name:"Visitor: Submit Form",samplingProbability:1}}})},2995(e,t,i){"use strict";var n=i(2693);let r=["lightbox_gather"],s=["lightbox_gather","calendar_event_offer","calendar_event_confirmation","text"].filter(e=>!(0,n.S1)(r,e));i.d(t,{},{Yb:["initQualifiedFormElementConversation","qualifiedFormEnd","qualifiedFormRedirect"],aV:s})},3916(e,t,i){"use strict";function n(e){if(!e||"string"!=typeof e||0===(e=e.replace(/\s+/g,"")).length||/[^\d\s+().-]/.test(e)||e.includes("++")||e.includes("+0")||e.includes("+-")||e.includes("+00")||(e.match(/\+/g)||[]).length>1||e.includes("00+")||e.includes("+")&&!e.startsWith("+"))return!1;let t=e.replace(/[^0-9+]/g,"").replace(/^00/g,"+");return/^(?:\+\d{8,15}|\d{8,15})$/.test(t)}function r(e){return e.trim().replace(/[^0-9+]/g,"").replace(/^00/g,"+")}i.d(t,{g:()=>n,n:()=>r})},2283(e,t,i){"use strict";i.d(t,{v4:()=>_,O8:()=>E,R9:()=>w,Dj:()=>S,GJ:()=>b});var n,r,s,o,a=i(228),l=i(2845),c=i(5391),u=i(2693),d=i(1768),h=i(2995),p=i(3916),m=i(8034).pS,f=i(8034).Kj;class g{wait(){return this.isWaiting||(this.isWaiting=!0,"custom-event-resolver"===this.options.type&&this.resolveUsingCustomResolver(),("basic-event-resolver"===this.options.type||"custom-event-resolver"===this.options.type)&&this.channel.on(this.options.event,this.listener),"timeout"===this.options.type&&(this.timeoutHandle=m(()=>this.resolveUsingTimeout(),this.options.timeout))),this.promise}waitDisposed(){return this.disposedPromise}waitDisposedOrResolved(){return Promise.race([this.wait(),this.waitDisposed()])}get isDisposed(){return this._isDisposed}get isResolved(){return this._isResolved}resolveUsingCustomResolver(e){this._isResolved||"custom-event-resolver"!==this.options.type||this.options.shouldResolve(e)&&this.options.resolver(this.resolve,this.dispose)}resolveUsingBasicResolver(e){this._isResolved||"basic-event-resolver"!==this.options.type||(this.resolve(this.options.resolver(e)),this.dispose())}resolveUsingTimeout(){this._isResolved||"timeout"!==this.options.type||(this.resolve(this.options.result),this.dispose())}constructor(e,t){this.channel=e,this.options=t,this._isResolved=!1,this._isDisposed=!1,this.timeoutHandle=null,this.isWaiting=!1,this.dispose=()=>{this._isDisposed||(("basic-event-resolver"===this.options.type||"custom-event-resolver"===this.options.type)&&this.channel.off(this.options.event,this.listener),this.timeoutHandle&&(f(this.timeoutHandle),this.timeoutHandle=null),this._isDisposed=!0,this._resolveDisposed())},this.listener=e=>{"custom-event-resolver"===this.options.type?(this.options.onMessage(e,this.dispose),this.resolveUsingCustomResolver(e)):this.resolveUsingBasicResolver(e)},this.resolve=e=>{this._isResolved||(this._isResolved=!0,this._resolve(e))},this.promise=new Promise(e=>this._resolve=e),this.disposedPromise=new Promise(e=>this._resolveDisposed=e)}}class v{addActions(e){return this.actions.push(...e),this}async race(){let e=await Promise.race(this.actions.map(e=>e.wait()));return this.dispose(),e}
3dispose(){this.actions.forEach(e=>!e.isResolved&&e.dispose()),this.actions=[]}constructor(e=[]){this.actions=e}}var y=i(8034).pS,b=((n={}).OFFERS="offers",n.EMBEDDED="embedded",n),_=((r={}).INVALID="invalid",r.EMPTY="empty",r.NON_BUSINESS="non_business",r),w=((s={}).INVALID="invalid",s.EMPTY="empty",s.NOT_FULL_NAME="not_full_name",s.MUST_CHECK="must_check",s),E=((o={}).WIDGET="widget",o.REDIRECT="redirect",o.NONE="none",o);class S{async getFormConfig(){if("embedded"!==this.props.source)return Promise.reject();let{formApiName:e}=this.props;return new Promise((t,i)=>{let n=e=>{e.form_transaction_id===this.formTransactionId&&(this.props.channel.off("getQualifiedFormConfig",n),"qualified_form_config"in e?t({qualifiedFormConfig:{assetUrl:e.qualified_form_config.asset_url,emailField:{label:e.qualified_form_config.email_field.label,placeholder:e.qualified_form_config.email_field.placeholder},validateBusinessEmail:e.qualified_form_config.validate_business_email},success:!0}):t({error:e.error,success:!1}))};this.props.channel.on("getQualifiedFormConfig",n),this.props.channel.send({event:"getQualifiedFormConfig",payload:{bot_api_name:e,form_transaction_id:this.formTransactionId}})})}submitEmail(e){this.conversation=null,this.message=null;let{valid:t,reason:i}=this.validateEmail(e);return t?(this._submitEmail(e),{success:!0,result:this.waitForForm()}):{success:!1,error:i}}submitFollowUpQuestions(e){if(!this.message)throw Error("Cannot submit followup questions without an active conversation.");if(e.length!==this.message.inputFields.length)throw Error("Entries must match the number of input fields.");let t=this.validateEntries(e);if(Object.keys(t).length>0)return{success:!1,errors:t};let i={type:"field_entries",botStep:this.message.botStep,executionStep:[this.message.scriptId,this.message.botStep],entries:this.formatEntries(e),conversationId:this.message.conversationId};return this.props.iframeManager?this.props.iframeManager.sendMessage(i):this.props.channel.perform("send_message",(0,a._)({},i,{bot_step:this.message.botStep,botStep:void 0,execution_step:i.executionStep,executionStep:void 0,conversation_id:this.message.conversationId,conversationId:void 0})),{success:!0,action:new v(this.createEndActions()).race()}}validateEmail(e){if(!e||""===e.trim())return{valid:!1,reason:"empty"};if(!this.props.config)throw Error("Cannot submit email without a form config.");let[t,i]=(0,d.DT)(e,this.props.config.validateBusinessEmail);return t?{valid:t}:"personal"===i?{valid:t,reason:"non_business"}:{valid:t,reason:"invalid"}}_submitEmail(e){"offers"===this.props.source&&this.props.channel.send({event:"submitQualifiedForm",payload:{email:e,offer_id:this.props.offerId,form_transaction_id:this.formTransactionId,source:this.props.source}}),"embedded"===this.props.source&&this.props.channel.send({event:"submitQualifiedForm",payload:{email:e,bot_api_name:this.props.formApiName,form_transaction_id:this.formTransactionId,source:this.props.source}})}waitForForm(){let e=new v(this.createEndActions("redirect")),t=(t,i)=>{this.message&&this.message.inputFields.length>0?(e.dispose(),t({form:{title:this.message.title,subtitle:this.message.subtitle,buttonText:this.message.buttonText,inputFields:this.message.inputFields},action:null})):t({form:null,action:e.addActions(this.createEndActions("widget","end","timeout")).race()}),i()},i=e=>{var t;e.formTransactionId===this.formTransactionId&&(this.conversation=e,this.message=null!=(t=e.messages.find(e=>"lightbox_gather"===e.type))?t:null)},n=this.createAction({type:"custom-event-resolver",event:"initQualifiedFormElementConversation",resolver:t,onMessage:i,shouldResolve:()=>!!this.conversation});return e.race(),n.wait()}createEndActions(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let n=[];for(let e of(0===t.length&&(t=["redirect","widget","end","timeout"]),t))switch(e){case"redirect":n.push(this.createRedirectAction());break;case"widget":n.push(this.createWidgetAction());break;case"end":n.push(this.createQualifiedFormEndAction());break;case"timeout":n.push(this.createTimeoutAction())}return n}createTimeoutAction(){return this.createAction({type:"timeout",timeout:3e4,result:{type:"none"}})}createQualifiedFormEndAction(){return this.createAction({type:"basic-event-resolver",event:"qualifiedFormEnd",resolver:()=>({type:"none"})})}createRedirectAction(){return this.createAction({type:"basic-event-resolver",event:"qualifiedFormRedirect",resolver:e=>("embedded"===this.props.source&&(window.location.href=e.url),{type:"redirect",url:e.url})})}createWidgetAction(){let e=e=>(0,u.S1)(h.aV,e.type),t=()=>{this.props.channel.emit("received","initQualifiedFormElementConversation",this.conversation)},i=(e,t)=>{this.conversation&&e.conversationId===this.conversation.id?this.conversation.messages.push(e):t()};return this.createAction({type:"custom-event-resolver",event:"elementMessage",resolver:(e,i)=>{e({type:"widget"}),y(()=>{t(),i()},500)},onMessage:i,shouldResolve:()=>{var t,i;return!!(null==(i=this.conversation)||null==(t=i.messages)?void 0:t.find(e))}})}validateEntries(e){if(!this.message)throw Error("Cannot validate entries without an active conversation.");let t={};for(let[i,n]of e.entries()){let e=this.message.inputFields[i],{valid:r,error:s}=this.validateEntry(n,e);r||(t[e.name]=s)}return t}validateEntry(e,t){var i,n;if(!e||""===e.trim())return t.optional?{valid:!0}:{valid:!1,error:{type:"empty"}};if("name"===t.type&&t.validateFullName&&!(0,c.F)(e))return{valid:!1,error:{type:"not_full_name"}};if("boolean"===t.type){if("true"!==e&&"false"!==e)return{valid:!1,error:{type:"invalid"}};if(t.mustCheck&&"true"!==e)return{valid:!1,error:{type:"must_check"}}}return"decimal"===t.type&&Number.isNaN(parseFloat(e))||"phone"===t.type&&!(0,p.g)(e)||"picklist"===t.type&&!(null==(n=t.fieldValues)?void 0:n.some(t=>t.value===e))?{valid:!1,error:{type:"invalid"}}:"string"===t.type&&(null==(i=t.validation)?void 0:i.regex)&&!new RegExp(t.validation.regex,t.validation.caseSensitive?"g":"gi").test(e)?{valid:!1,error:{type:"invalid",message:t.validation.error}}:{valid:!0}}formatEntries(e){if(!this.message)throw Error("Cannot validate entries without an active conversation.");return e.map((e,t)=>this.formatEntry(e,this.message.inputFields[t]))}formatEntry(e,t){return"phone"===t.type?(0,p.n)(e):e}createAction(e){return new g(this.props.channel,e)}constructor(e){this.props=e,this.conversation=null,this.message=null,this.formTransactionId=(0,l.A)()}}},1370(e,t,i){"use strict";class n{static get locks(){var e;return null!=(e=this._locks)?e:this._locks=new Set}static get scrollTarget(){var e;return null!=(e=this._scrollTarget)?e:this._scrollTarget=this.getScrollTarget()}static get observers(){var e;return null!=(e=this._observers)?e:this._observers=new Map}static disableScroll(e,t){this.locks.has(e)||(this.locks.add(e),t&&this.watch(e,t),this.locks.size>1||this.makePageUnscrollable())}static restoreScroll(e){!this.locks.has(e)||(this.locks.delete(e),this.unwatch(e),this.locks.size>0||(this.restorePageScrollability(),this.scrollTargetOverflow=null))}static watch(e,t){let{overlayElement:i}=t;if(this.observers.has(e))return;let n=()=>{this.restoreScroll(e),this.unwatch(e)}
3,r=new MutationObserver(()=>{i.isConnected||n()});i.parentElement&&r.observe(i.parentElement,{childList:!0});let s=e=>{i.contains(e.target)||n()};document.body.addEventListener("click",s),this.observers.set(e,()=>{document.body.removeEventListener("click",s),r.disconnect()})}static unwatch(e){var t;this.observers.has(e)&&(null==(t=this.observers.get(e))||t(),this.observers.delete(e))}static makePageUnscrollable(){this.scrollTargetOverflow=this.getOverflow(this.scrollTarget),this.setOverflow(this.scrollTarget,this.getOverflowProperty())}static restorePageScrollability(){this.scrollTargetOverflow&&(this.setOverflow(this.scrollTarget,this.scrollTargetOverflow),this.scrollTargetOverflow=null)}static setOverflow(e,t){e.style.setProperty("overflow",t.value,t.priority)}static getOverflow(e){return{value:e.style.getPropertyValue("overflow"),priority:e.style.getPropertyPriority("overflow")}}static getScrollTarget(){return document.body.clientHeight<document.body.scrollHeight?document.body:document.documentElement}static getOverflowProperty(){return{value:"var(--qualified-widget-no-scroll, hidden)",priority:"important"}}}n._scrollTarget=null,n._locks=null,n._observers=null,n.scrollTargetOverflow=null,i.d(t,{q:()=>n})},7288(e,t,i){"use strict";var n=i(8635),r=i(375),s=i(228),o=i(1655),a=i.n(o),l=i(905),c=i(8034).pS,u=i(8034).Kj,d=i(8034).zh,h=i(8034).Qj,p=(0,r._)("_config"),m=(0,r._)("_widgetId"),f=(0,r._)("_visitorId"),g=(0,r._)("_batchQueue"),v=(0,r._)("_flushTimerId");let y=new class{setConfig(e){(0,n._)(this,p)[p]=e}setVisitorId(e){(0,n._)(this,f)[f]=e}setWidgetId(e){(0,n._)(this,m)[m]=e}resourceUrl(e,t){let i=(0,n._)(this,p)[p].host+"/w/1/"+(0,n._)(this,p)[p].token+"/"+e;if(t){let e=new URLSearchParams;Object.entries(t).forEach(t=>{let[i,n]=t;a()(n)||e.set(i,String(n))}),i+="?"+e.toString()}return i}serverLog(e){var t;let{type:i="log",message:r,extra:s={},fireAndForget:o=!1,flushImmediately:a=!1}=e;if((0,n._)(this,p)[p].host&&(0,n._)(this,p)[p].token){if(null==(t=(0,n._)(this,p)[p].featureFlags)?void 0:t.widgetVisitorEventsBatching){this.enqueueEvent({event:r,type:i,extra:s,fireAndForget:o}),a&&this.flushBatch({fireAndForget:o});return}this.sendEvent("visitor_events",{params:{wu:(0,n._)(this,m)[m],uuid:(0,n._)(this,f)[f]},body:{event:r,type:i,extra:s}},{fireAndForget:o})}}recordTrace(e){(0,n._)(this,p)[p].host&&(0,n._)(this,p)[p].token&&this.sendEvent("events/trace",{body:(0,s._)({},e,{widget_id:(0,n._)(this,m)[m],visitor_id:(0,n._)(this,f)[f]})})}enqueueEvent(e){((0,n._)(this,g)[g].push(e),(0,n._)(this,g)[g].length>=20)?this.flushBatch():this.scheduleFlush()}scheduleFlush(){null===(0,n._)(this,v)[v]&&((0,n._)(this,v)[v]=c(()=>this.flushBatch(),3e3))}flushBatch(e){let{fireAndForget:t=!1}=void 0===e?{}:e;if(null!==(0,n._)(this,v)[v]&&(u((0,n._)(this,v)[v]),(0,n._)(this,v)[v]=null),0===(0,n._)(this,g)[g].length)return;let i=(0,n._)(this,g)[g];(0,n._)(this,g)[g]=[];let r=t||i.some(e=>e.fireAndForget);this.sendEvent("visitor_events/batch",{params:{wu:(0,n._)(this,m)[m],uuid:(0,n._)(this,f)[f]},body:{events:i.map(e=>{let{event:t,type:i,extra:n}=e;return{event:t,type:i,extra:n}})}},{fireAndForget:r})}async sendEvent(e,t,i){let{params:n,body:r}=t,{fireAndForget:s=!1}=void 0===i?{}:i,o=fetch(this.resourceUrl(e,n),{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"},keepalive:!0,credentials:"omit"});if(s)return void o.catch(()=>{});try{let t=await o;if(!t.ok)throw Error("Failed to send event "+e+": "+t.status+" "+t.statusText)}catch(e){var a;null==(a=(0,l.Nj)())||a.captureException(e)}}constructor(e){Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,m,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,g,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),(0,n._)(this,g)[g]=[],(0,n._)(this,v)[v]=null,this.handlePagehide=()=>{this.flushBatch({fireAndForget:!0})},this.handleVisibilityChange=()=>{"u">typeof document&&"hidden"===document.visibilityState&&this.flushBatch({fireAndForget:!0})},(0,n._)(this,p)[p]=e,(0,n._)(this,m)[m]=void 0,(0,n._)(this,f)[f]=void 0,"u">typeof window&&d("pagehide",this.handlePagehide),"u">typeof document&&h("visibilitychange",this.handleVisibilityChange)}}({});i.d(t,{},{aF:y})},1787(e,t,i){"use strict";i.d(t,{Wm:()=>A,jM:()=>E,LF:()=>n.LF,qd:()=>n.qd,sJ:()=>n.sJ,Y9:()=>_,Y_:()=>N,$P:()=>n.$P,fR:()=>S,Zy:()=>w});var n=i(6731);
3class r{constructor(){this.generateTraceId=o(16),this.generateSpanId=o(8)}}let s=Array(32);function o(e){return function(){for(let t=0;t<2*e;t++)s[t]=Math.floor(16*Math.random())+48,s[t]>=58&&(s[t]+=39);return String.fromCharCode.apply(null,s.slice(0,2*e))}}var a=i(8635),l=i(375),c=i(7288);i(8034).pS,i(8034).LK;let u=null;function d(e,t){var i={parent:u,vars:e};let n=u;u=i;try{return t()}finally{u=n}}class h{startSpan(e,t,i){let n=new C(e,t,null==i?void 0:i.id);return n.setAttributes(t),this.spans.push(n),n}startActiveSpan(e,t,i,n){let r=this.startSpan(e,t,i);return n(r),r}async startActiveSpanAsync(e,t,i,n){let r=this.startSpan(e,t,i);return await n(r),r}recordTimedSpan(e,t,i,n,r){let s=new T(e,t,null==i?void 0:i.id,n,r);return this.spans.push(s),s}removeSpan(e){this.spans=this.spans.filter(t=>t!==e)}reset(){this.spans=[]}constructor(){this.spans=[]}}class p{}p.UNSET=0,p.OK=1,p.ERROR=2;var m=(0,l._)("_tracer"),f=(0,l._)("_hasCalledFlush"),g=(0,l._)("_hasRootSpan"),v=(0,l._)("_samplingProbability"),y=(0,l._)("_samplingDecision");class b{startActiveSpan(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return(0,a._)(this,m)[m].startActiveSpan(...t)}startActiveSpanAsync(e,t,i,n){var r;return(0,a._)(this,m)[m].startActiveSpanAsync(e,t,null!=(r=null==i?void 0:i.parentSpan)?r:null,async e=>{await w(i?{traceId:i.traceId,parentSpan:e,telemetry:i.telemetry}:void 0,()=>n(e))})}startSpan(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return(0,a._)(this,m)[m].startSpan(...t)}recordTimedSpan(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return(0,a._)(this,m)[m].recordTimedSpan(...t)}findSpan(e){return(0,a._)(this,m)[m].spans.find(e)}removeSpan(e){(0,a._)(this,m)[m].removeSpan(e)}reset(){(0,a._)(this,m)[m].reset()}get spans(){return(0,a._)(this,m)[m].spans}get samplingDecision(){return"boolean"!=typeof(0,a._)(this,y)[y]&&((0,a._)(this,y)[y]="number"!=typeof(0,a._)(this,v)[v]||Math.random()<(0,a._)(this,v)[v]),(0,a._)(this,y)[y]}async flush(e){let{rootAttributes:t={},traceId:i,rootSpanId:n}=e;if((0,a._)(this,f)[f])return;(0,a._)(this,f)[f]=!0;let{spans:r}=(0,a._)(this,m)[m];(0,a._)(this,m)[m].reset(),this.samplingDecision&&c.aF.recordTrace({hasRootSpan:(0,a._)(this,g)[g],trace_id:i,root_span_id:n,samplingProbability:(0,a._)(this,v)[v],rootAttributes:t,serviceName:"widget",spans:r.map(e=>({id:e.id,name:e.name,parentSpanId:e.parentSpanId,attributes:e.attributes,status:e.status,startTime:e.startTime,endTime:e.endTime}))})}constructor(e=!1,t){Object.defineProperty(this,m,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,g,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:void 0}),(0,a._)(this,m)[m]=new h,(0,a._)(this,g)[g]=e,(0,a._)(this,v)[v]=t,(0,a._)(this,f)[f]=!1}}let _=new b(!1,.001);function w(e,t){return e?d({telemetryCtx:e},t):t()}function E(){var e="telemetryCtx";let t=u;for(;t;){if(e in t.vars)return t.vars[e];t=t.parent}}function S(e,t,i){return d({telemetryCtx:e?{traceId:e.traceId,parentSpan:t,telemetry:e.telemetry}:void 0},i)}function A(e){var t,i;if(e.traceId&&(null==(t=e.parentSpan)?void 0:t.id))return"00-"+e.traceId+"-"+(null==(i=e.parentSpan)?void 0:i.id)+"-"+(e.telemetry.samplingDecision?"01":"00")}class x{get id(){return this._id}get name(){return this._name}get parentSpanId(){return this._parentSpanId}get attributes(){return this._attributes}get status(){return this._status}get startTime(){return this._startTime}get endTime(){return this._endTime}setAttributes(e){if(e&&0!==Object.keys(e).length)for(let[t,i]of Object.entries(e))i&&this.setAttribute(t,i)}setAttribute(e,t){this._attributes[e]=t}setStatus(e,t){this._status={code:e,message:t}}constructor(e,t){this._status={code:p.UNSET,message:""},this._id=new r().generateSpanId(),this._name=e,this._parentSpanId=t,this._startTime=0,this._endTime=0,this._attributes={}}}class C extends x{end(){if(0!==this.endTime)throw Error("end() already called on span.");this._endTime=performance.now()}constructor(e,t,i){super(e,i),this.setAttributes(t),this._startTime=performance.now()}}class T extends x{constructor(e,t,i,n,r){super(e,i),this.setAttributes(t),this._startTime=n,this._endTime=r}}var k=i(228),I=i(6100),F=i(5482),O=i(525),M=i(2098),R=i(8376),P=i(905);(0,k._)({},M.X,R.D,{SEND_CHAT_MESSAGE:{name:"Visitor: Send Chat Message",samplingProbability:1},CHAT_WAITING_RESPONSE:{name:"Visitor: Chat waiting response",samplingProbability:1},CHAT_MESSAGE_ACK:{name:"System: Chat message ack",samplingProbability:1}});class D extends(0,O.j)(class{}){constructor(e,t,i,n={}){var r;super(),this.span=e,this.store=t,this.parentInstance=i,this.attributes=n,this.childInstances=new Set,this.childStores=new Set,this.telemetry=null!=(r=null==i?void 0:i.telemetry)?r:new b(!0,e.samplingProbability),this.telemetrySpan=this.telemetry.startSpan(e.name,n,(null==i?void 0:i.telemetrySpan)||null)}}class L extends(0,O.j)(class{}){static getInstance(){var e;return this.instance=null!=(e=this.instance)?e:new L}startSpan(e,t){let{parentSpan:i,attributes:n={},suppressErrors:r=L.DEFAULT_SUPPRESS_ERRORS}=void 0===t?{}:t;try{if(this.map.has(e))throw Error("Attempted to start span "+e.name+" but it was already started.");let t=this.getParentInstance(i);if(i&&!t)throw Error("Attempted to start span "+e.name+" but parent span "+(null==i?void 0:i.name)+" was not started.");this.startInstance(e,t,(0,k._)({},this.attributes,n))}catch(e){this.handleError(e,r)}}finishSpan(e,t){let{error:i=!1,attributes:n={},suppressErrors:r=L.DEFAULT_SUPPRESS_ERRORS,recordErrorOnMissingSpan:s=!1}=void 0===t?{}:t;try{let t=this.map.get(e);if(!t&&s)throw Error("Attempted to finish span "+e.name+" but it was not started.");t&&this.endInstance(t,{error:i,attributes:n}
3)}catch(e){this.handleError(e,r)}}cancelSpan(e,t){void 0===t&&(t=!1);try{let i=this.map.get(e);if(!i&&t)throw Error("Attempted to cancel span "+e.name+" but it was not started.");i&&this.cancelInstance(i)}catch(e){this.handleError(e,L.DEFAULT_SUPPRESS_ERRORS)}}finishSpans(e,t){void 0===t&&(t=void 0);let[i={}]=[t],{suppressErrors:n=L.DEFAULT_SUPPRESS_ERRORS}=i,r=(0,I._)(i,["suppressErrors"]);try{let t=[];for(let i of e)try{this.finishSpan(i,(0,k._)({suppressErrors:n},r))}catch(e){t.push(e)}t.length>0&&this.handleError(AggregateError(t),n)}catch(e){this.handleError(e,n)}}createScope(e){let{parentSpan:t,attributes:i={},suppressErrors:n=L.DEFAULT_SUPPRESS_ERRORS}=void 0===e?{}:e;try{let e=this.getParentInstance(t);if(t&&!e)throw Error("Attempted to create scope with parent span "+(null==t?void 0:t.name)+" but it was not started.");let n=new L(e,i);return e&&e.childStores.add(n),n}catch(t){this.handleError(t,n);let e=new L;return e.dispose(),e}}getParentInstance(e){return e?this.map.get(e):this.storeParentInstance}startInstance(e,t,i){void 0===i&&(i={});let n=new D(e,this,t,i);t&&t.childInstances.add(n),this.map.set(e,n)}endInstance(e,t){let{error:i,attributes:n}=void 0===t?{}:t;for(let t of[...e.childInstances])this.endInstance(t,{error:i,attributes:n});e.childInstances.clear(),this.disposeStores(e),this.endSpan(e.telemetrySpan,i,n),e.parentInstance||e.telemetry.flush({}),this.removeInstance(e)}endSpan(e,t,i){i&&e.setAttributes(i),t?e.setStatus(p.ERROR,""):e.setStatus(p.OK,""),e.end()}cancelInstance(e){for(let t of[...e.childInstances])this.cancelInstance(t);e.childInstances.clear(),this.disposeStores(e),e.parentInstance?e.telemetry.removeSpan(e.telemetrySpan):e.telemetry.reset(),this.removeInstance(e)}disposeStores(e){for(let t of[...e.childStores])t.dispose();e.childStores.clear()}removeInstance(e){var t;null==(t=e.parentInstance)||t.childInstances.delete(e),e.store.map.delete(e.span),e.dispose()}handleError(e,t){if(void 0===t&&(t=L.DEFAULT_SUPPRESS_ERRORS),t)try{var i;null==(i=(0,P.Nj)())||i.captureException(e)}catch(e){}else throw e}constructor(e,t={}){super(),this.storeParentInstance=e,this.attributes=t,this.map=new Map}}L.instance=null,L.DEFAULT_SUPPRESS_ERRORS=!0,(0,F.Cg)([O.H,(0,F.Sn)("design:type",Function),(0,F.Sn)("design:paramtypes",["u"<typeof SpanType?Object:SpanType,"u"<typeof TracingStartOptions?Object:TracingStartOptions]),(0,F.Sn)("design:returntype",void 0)],L.prototype,"startSpan",null),(0,F.Cg)([O.H,(0,F.Sn)("design:type",Function),(0,F.Sn)("design:paramtypes",["u"<typeof SpanType?Object:SpanType,"u"<typeof TracingFinishOptions?Object:TracingFinishOptions]),(0,F.Sn)("design:returntype",void 0)],L.prototype,"finishSpan",null),(0,F.Cg)([O.H,(0,F.Sn)("design:type",Function),(0,F.Sn)("design:paramtypes",["u"<typeof SpanType?Object:SpanType,void 0]),(0,F.Sn)("design:returntype",void 0)],L.prototype,"cancelSpan",null),(0,F.Cg)([O.H,(0,F.Sn)("design:type",Function),(0,F.Sn)("design:paramtypes",[Array,"u"<typeof TracingFinishOptions?Object:TracingFinishOptions]),(0,F.Sn)("design:returntype",void 0)],L.prototype,"finishSpans",null),(0,F.Cg)([O.H,(0,F.Sn)("design:type",Function),(0,F.Sn)("design:paramtypes",["u"<typeof TracingStartOptions?Object:TracingStartOptions]),(0,F.Sn)("design:returntype",Object)],L.prototype,"createScope",null);let N=L.getInstance()},6731(e,t,i){"use strict";var n=i(228),r=i(8715),s=i(7288),o=i(8034).Qj,a=i(8034).LA;function l(e,t,i){Number.isNaN(t)||t<=0||((0,r.Bb)()&&console.log("[Metrics] "+e+": timing "+t+"ms",null!=i?i:""),s.aF.serverLog({message:e,type:"log",extra:(0,n._)({method:"dist",operand:t},i?{tags:i}:{})}))}let c=/\/qualified(-[\w-]+)?\.js/;function u(e){return c.test(e)}function d(e){var t,i;let n=null==(i=(null!=e?e:"function"==typeof performance.getEntriesByType?performance.getEntriesByType("resource"):[]).find(e=>u(e.name)))?void 0:i.startTime;return null!=n?n:null!=(t=window._q_setupCalledAt)?t:null}function h(){return void 0===window._q_setupCalledAt?"hosted":"npm"}class p{constructor(e){this.metricName=e,this.logged=!1,this.log=()=>{if(this.logged)return;let e=window._q_widgetInitializedAt;if(!e)return;let t=performance.now()-e;l(this.metricName,t),this.logged=!0},this.skip=()=>{this.logged=!0}}}function m(){return"visible"===document.visibilityState}let f={timeToInit:new p("multimodal_time_to_init_ms"),timeToReplaceGutter:new p("multimodal_time_to_replace_gutter_ms"),messengerLoa
3d:new class{constructor(e){this.metricName=e,this.logged=!1,this.wasEverHidden=!1,this.armed=!1,this.arm=()=>{!this.armed&&"u">typeof document&&(this.armed=!0,m()||(this.wasEverHidden=!0),o("visibilitychange",this.handleVisibilityChange))},this.log=()=>{if(this.logged||!this.armed||(this.latch(),this.wasEverHidden||!m()))return;let e=d();if(null===e)return;let t=performance.now()-e;t>6e4||l(this.metricName,t,{consumer:h()})},this.skip=()=>{this.logged||this.latch()},this.latch=()=>{this.logged=!0,this.armed&&a("visibilitychange",this.handleVisibilityChange)},this.handleVisibilityChange=()=>{m()||(this.wasEverHidden=!0)}}}("multimodal_messenger_load_ms")};i.d(t,{$P:()=>h,LF:()=>u,sJ:()=>d},{qd:{emitTiming:l,emitIncrement:function(e,t){(0,r.Bb)()&&console.log("[Metrics] "+e+": increment",null!=t?t:""),s.aF.serverLog({message:e,type:"log",extra:(0,n._)({method:"inc"},t?{tags:t}:{})})},multimodal:f}})},8034(e,t,i){"use strict";let n=null;function r(){if(!n){var e,t,i,r;let s=null!=(e=null==(r=window.qualified)||null==(i=r.sentinel)||null==(t=i.getOriginals)?void 0:t.call(i))?e:null;return s&&(n=s),s}return n}function s(){for(var e,t,i=arguments.length,n=Array(i),s=0;s<i;s++)n[s]=arguments[s];(null!=(e=null==(t=r())?void 0:t.windowAddEventListener)?e:window.addEventListener).call(window,...n)}function o(){for(var e,t,i=arguments.length,n=Array(i),s=0;s<i;s++)n[s]=arguments[s];(null!=(e=null==(t=r())?void 0:t.documentAddEventListener)?e:document.addEventListener).call(document,...n)}function a(){for(var e,t,i=arguments.length,n=Array(i),s=0;s<i;s++)n[s]=arguments[s];(null!=(e=null==(t=r())?void 0:t.windowRemoveEventListener)?e:window.removeEventListener).call(window,...n)}function l(){for(var e,t,i=arguments.length,n=Array(i),s=0;s<i;s++)n[s]=arguments[s];(null!=(e=null==(t=r())?void 0:t.documentRemoveEventListener)?e:document.removeEventListener).call(document,...n)}i.d(t,{LA:()=>l,Qj:()=>o,kZ:()=>a,zh:()=>s},{Kj:e=>{var t,i;(null!=(t=null==(i=r())?void 0:i.clearTimeout)?t:globalThis.clearTimeout).call(window,e)},LK:function(e,t){for(var i,n,s=arguments.length,o=Array(s>2?s-2:0),a=2;a<s;a++)o[a-2]=arguments[a];return(null!=(i=null==(n=r())?void 0:n.setInterval)?i:globalThis.setInterval).call(window,e,t,...o)},gj:e=>{var t,i;return(null!=(t=null==(i=r())?void 0:i.requestAnimationFrame)?t:globalThis.requestAnimationFrame).call(window,e)},pP:e=>{var t,i;(null!=(t=null==(i=r())?void 0:i.cancelAnimationFrame)?t:globalThis.cancelAnimationFrame).call(window,e)},pS:function(e,t){for(var i,n,s=arguments.length,o=Array(s>2?s-2:0),a=2;a<s;a++)o[a-2]=arguments[a];return(null!=(i=null==(n=r())?void 0:n.setTimeout)?i:globalThis.setTimeout).call(window,e,t,...o)},wm:e=>{var t,i;(null!=(t=null==(i=r())?void 0:i.clearInterval)?t:globalThis.clearInterval).call(window,e)}})},2140(e,t,i){"use strict";var n=i(5036),r=i(4826),s=i(8034).LK,o=i(8034).zh,a=i(8034).wm,l=i(8034).kZ;class c{bindRootStore(e){this.rootStore&&(this.rootStore.messengerEventListener=null),this.teardownSubscriptions(),this.rootStore=e,this.rootStore.messengerEventListener=e=>this.broadcastMessengerEvent(e),this.messengerEventsListeners.length>0&&!this.displayModeDisposer&&this.startMessengerEventSubscriptions();let t=!1,i=!1;this.messagesDisposer=this.rootStore.messages.subscribe(e=>{var n,r,s,o,a,l,c,u;this.trackMeetingEvents(e,{isBaselineTick:!i}),i=!0;let d=e.filter(e=>"text"===e.type&&!e.isOwn&&"isAp"in e&&e.isAp);if(d.length>this._lastApMessageCount){this._lastApMessageCount=d.length;let e=0===this._apMessagesCount;this._apMessagesCount=d.length,e&&this._apMessagesCount>0&&(null==this.onFirstApMessage||this.onFirstApMessage.call(this))}let h=e.filter(e=>"text"===e.type&&e.isOwn);h.length>this._lastVisitorMessageCount&&(this._lastVisitorMessageCount=h.length,this._visitorResponded=!0);let p=e.filter(e=>"text"===e.type&&!e.isOwn&&"userId"in e&&!!e.userId&&!("isAp"in e&&e.isAp));p.length>this._lastRepMessageCount&&(this._lastRepMessageCount=p.length,this._userResponded=!0);let m=e.filter(e=>"text"===e.type&&!e.isOwn&&"userId"in e&&!!e.userId&&!("isAp"in e&&e.isAp)).length;if(t){let e=m>(null!=(r=this._lastNonOwnTextCount)?r:0);if(this._lastNonOwnTextCount=m,e&&!(null==(s=this.rootStore)?void 0:s.disableTitleFlash.peek())){let e=null==(o=null==(a=this.rootStore)?void 0:a.displayMode.minimized.peek())||o;if(!document.hasFocus()||e){let e=null!=(l=null==(c=this.rootStore)?void 0:c.companyName.peek())?l:"Qualified",t=(null==(u=this.rootStore)?void 0:u.translationStore.t("titleFlash.messageFrom",{c
3ompanyName:e}))||"Message from "+e;this.setTitle(t)}}}else this._lastNonOwnTextCount=m,(null==(n=this.rootStore)?void 0:n.initialized.peek())&&(t=!0)}),this.pendingRootStoreActions.length>0&&(this.pendingRootStoreActions.forEach(e=>e()),this.pendingRootStoreActions=[])}dispose(){this.disposed=!0,this.teardownSubscriptions(),this.resetTitle(),this.rootStore&&(this.rootStore.messengerEventListener=null),this.rootStore=null,this.pendingRootStoreActions=[],this.notifiedJourneyReadiness.clear()}notifyClientExperienceReady(e){if(!this.disposed&&this.notifyHostClientExperienceReady)try{let t=JSON.stringify({journeyId:e.journeyId,journeyKind:e.journeyKind,resultType:e.resultType,resultId:e.resultId,uiSurface:e.uiSurface,conversationId:e.conversationId,bookerResultDetail:e.bookerResultDetail});if(this.notifiedJourneyReadiness.has(t))return;this.notifiedJourneyReadiness.add(t);try{this.notifyHostClientExperienceReady(e)}catch(e){this.notifiedJourneyReadiness.delete(t)}}catch(e){}}showLightboxLoading(){this.withRootStore(e=>e.showLightboxLoading())}showMessengerLoading(){this.withRootStore(e=>e.showMessengerLoading())}showInlineLoading(e){this.withRootStore(t=>t.showInlineLoading(e))}closeLightbox(){this.withRootStore(e=>e.closeLightbox())}openMessenger(){this.withRootStore(e=>e.setOpenedDisplayMode())}setChatIsVisible(e){this.withRootStore(t=>{e?t.setOpenedDisplayMode():t.closeWidget()})}addMessengerEventsListener(e){this.messengerEventsListeners.push(e),this.rootStore&&!this.displayModeDisposer&&this.startMessengerEventSubscriptions()}startDisplayModeSubscription(){let e=!0;this.displayModeDisposer=this.rootStore.displayMode.subscribe(t=>{if(e){e=!1,this.previousDisplayMode=t;return}this.handleDisplayModeChange(t)})}startCallInProgressSubscription(){let e=!0;this.callInProgressDisposer=this.rootStore.callInProgress.subscribe(t=>{if(e){e=!1;return}this.broadcastMessengerEvent(t?"callStarted":"callEnded")})}startCallStoreSubscription(){this.callStoreDisposer=this.rootStore.callStore.subscribe(e=>{if(this.teardownCallStoreObservers(),!e)return;let t=!0;this.micMutedDisposer=e.deviceStore.isMicMuted.subscribe(e=>{if(t){t=!1;return}this.broadcastMessengerEvent(e?"micMuted":"micUnmuted")})})}startMessengerEventSubscriptions(){this.startDisplayModeSubscription(),this.startCallInProgressSubscription(),this.startCallStoreSubscription()}trackMeetingEvents(e,t){var i,n;let{isBaselineTick:r}=t,s=!r&&null!=(i=null==(n=this.rootStore)?void 0:n.initialized.peek())&&i,o=(e,t,i)=>{e.forEach(e=>{!t.has(e)&&(t.add(e),s&&this.broadcastMessengerEvent(i))})};o(e.filter(e=>"calendar_event_offer"===e.type&&!1!==e.showCalendarEventOfferUi).map(e=>e.id),this._seenMeetingOfferIds,"meetingOffered"),o(e.filter(e=>"calendar_event_pick"===e.type).map(e=>e.id),this._seenMeetingBookedIds,"meetingBooked")}teardownCallStoreObservers(){null==this.micMutedDisposer||this.micMutedDisposer.call(this),this.micMutedDisposer=null}teardownSubscriptions(){null==this.displayModeDisposer||this.displayModeDisposer.call(this),this.displayModeDisposer=null,null==this.callInProgressDisposer||this.callInProgressDisposer.call(this),this.callInProgressDisposer=null,null==this.callStoreDisposer||this.callStoreDisposer.call(this),this.callStoreDisposer=null,this.teardownCallStoreObservers(),null==this.messagesDisposer||this.messagesDisposer.call(this),this.messagesDisposer=null,this.previousDisplayMode=null,this._seenMeetingOfferIds.clear(),this._seenMeetingBookedIds.clear()}withRootStore(e){this.rootStore?e(this.rootStore):this.pendingRootStoreActions.push(()=>{this.rootStore&&e(this.rootStore)})}broadcastMessengerEvent(e){this.messengerEventsListeners.forEach(t=>{try{t(e)}catch(e){console.error("Qualified: Error in messenger event handler",e)}})}isOpenedMode(e){return e===r.q5.SIDEBAR||e===r.q5.DOCKED}get apMessagesCount(){return this._apMessagesCount}get autoRespondPounceCount(){return this._autoRespondPounceCount}get visitorResponded(){return this._visitorResponded}get userResponded(){return this._userResponded}get originalDocumentTitle(){return this._originalDocumentTitle}setTitle(e){if(this._originalDocumentTitle||(this._originalDocumentTitle=document.title),this._flashDocumentTitle=e,document.title=e,!this._flashInterval){let e=0;this._flashInterval=s(()=>{var t,i;e++%2==0?document.title===this._flashDocumentTitle&&(document.title=null!=(t=this._originalDocumentTitle)?t:""):document.title=null!=(i=this._flashDocumentTitle)?i:""},1250),this._focusListener=()=>this.resetTitle(),o("focus",this._focusListener)}}resetTitle(){if(null!==this._flashInterval&&(a(this._flashInterval),this._flashInterval=null),this._focusListener&&(l("focus",this._focusListener),this._focusListener=null),null!==this._flashDocumentTitle&&document.title===this._flashDocumentTitle){var e;document.title=null!=(e=this._originalDocumentTitle)?e:""}this._originalDocumentTitle=null,this._flashDocumentTitle=null}constructor(e,t){this.rootStore=null,this.pendingRootStoreActions=[],this.disposed=!1,this.notifiedJourneyReadiness=new n.Q(100),this.messengerEventsListeners=[],this.displayModeDisposer=null,this.callInProgressDisposer=null,this.callStoreDisposer=null,this.micMutedDisposer=null,this.messagesDisposer=null,this._seenMeetingOfferIds=new Set,this._seenMeetingBookedIds=new Set,this.previousDisplayMode=null,this._apMessagesCount=0,this._autoRespondPounceCount=0,this._visitorResponded=!1,this._userResponded=!1,this._originalDocumentTitle=null,this._flashDocumentTitle=null,this._flashInterval=null,this._focusListener=null,this._lastApMessageCount=0,this._lastVisitorMessageCount=0,this._lastRepMessageCount=0,this.handleDisplayModeChange=e=>{let t=this.isOpenedMode(this.previousDisplayMode),i=this.isOpenedMode(e);this.previousDisplayMode=e,!t&&i?this.broadcastMessengerEvent("messengerOpened"):t&&!i&&this.broadcastMessengerEvent("messengerClosed"),i&&this.resetTitle()},this._lastNonOwnTextCount=void 0,this.onFirstApMessage=e,this.notifyHostClientExperienceReady=t}}i.d(t,{Q:()=>c})},9350(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>P});var n=i(9394),r=i(8189),s=i(1198),o=i.n(s),a=i(504),l=i.n(a);let c={":hover":".__q__hover",":focus-within":".__q__focus_within",":focus-visible":".__q__focus_visible",":focus":".__q__focus",":active":".__q__active"},u=e=>l()(o()(e),e=>Number.parseInt(e,10)),d=u(["http://www.w3.org/1999/xhtml","http://www.w3.org/2000/svg","http://www.w3.org/1999/xlink","http://www.w3.org/1998/Math/MathML"]),h=u([null,"A","ABBR","ADDRESS","AREA","ARTICLE","ASIDE","AUDIO","B","BASE","BDI","BDO","BIG","BLOCKQUOTE","BODY","BR","BUTTON","CANVAS","CAPTION","CITE","CODE","COL","COLGROUP","DATA","DATALIST","DD","DEL","DETAILS","DFN","DIALOG","DIV","DL","DT","EM","EMBED","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEAD","HEADER","HR","HTML","I","IFRAME","IMG","INPUT","INS","KBD","KEYGEN","LABEL","LEGEND","LI","LINK","MAIN","MAP","MARK","MENU","MENUITEM","META","METER","NAV","NOSCRIPT","OBJECT","OL","OPTGROUP","OPTION","O
3UTPUT","P","PARAM","PICTURE","PRE","PROGRESS","Q","RP","RT","RUBY","S","SAMP","SCRIPT","SECTION","SELECT","SMALL","SOURCE","SPAN","STRONG","STYLE","SUB","SUMMARY","SUP","TABLE","TBODY","TD","TEXTAREA","TFOOT","TH","THEAD","TIME","TITLE","TR","TRACK","U","UL","VAR","VIDEO","WBR","circle","clipPath","defs","ellipse","g","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan","use"]);u([null]);let p=[null,"scrollLeft","scrollTop","value","paused","currentTime","controls"];u(p);let m=p.filter(e=>!!e),f=["NOSCRIPT","SCRIPT","TITLE","FRAME"];var g=i(1442),v=i.n(g),y=i(1078),b=i(525),_=i(8034).pS;function w(e,t,i,n,r){let s,{timing:o="after",async:a=!0}=r,l=e.prototype,c=Object.getOwnPropertyDescriptor(l,t),u=c[i];if(!c||"function"!=typeof u)return()=>{};let d=a?function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];try{_(()=>n(...t),0)}catch(e){}}:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];try{n(...t)}catch(e){}};return s="before"===o?function(){return d(this,...arguments),u.apply(this,arguments)}:function(){let e=u.apply(this,arguments);return d(this,...arguments),e},c[i]=s,Object.defineProperty(l,t,c),()=>{let n=e.prototype,r=Object.getOwnPropertyDescriptor(n,t);r[i]=u,Object.defineProperty(n,t,r)}}class E extends(0,b.j)(Object){init(){}addPassiveDocumentListener(e,t,i){void 0===i&&(i=!1),this.callOnDispose((0,y.q2)(this.shipper.document,e,t,{capture:i,passive:!0}))}addPassiveWindowListener(e,t,i){void 0===i&&(i=!1),this.callOnDispose((0,y.q2)(this.shipper.window,e,t,{capture:i,passive:!0}))}get document(){return this.shipper.document}get window(){return this.shipper.window}get changeQueue(){return this.shipper.changeQueue}get serializer(){return this.shipper.serializer}constructor(e){super(),this.shipper=e}}class S extends E{clear(){this.changes=[],this.changedGlobals.clear(),this.changedNodes.clear()}globalChanged(e){this.changedGlobals.add(e)}eventHappened(e){this.changes.push(e)}nodeTreeChanged(e,t,i,n){let r=[this.serializer.nodeToId(e),0,null!=i?this.serializer.nodeToId(i):0,0];if(t.length>0){r[1]=[];for(let e=0;e<t.length;e++){let i=t[e];this.serializer.possiblyRemoved(i),r[1].push(this.serializer.nodeToId(i))}}if(n.length>0){r[3]=[];for(let e=0;e<n.length;e++){let t=n[e];r[3].push(this.serializer.idTree(t))}}this.changes.push([2,r])}nodeAttributeChanged(e,t){this.isRelevantNodeType(e)&&this.getNodeChanges(e).markAttribute(t)}nodeDataChanged(e){this.isRelevantNodeType(e)&&this.getNodeChanges(e).markData()}nodePropertyChanged(e,t){this.isRelevantNodeType(e)&&this.getNodeChanges(e).markProperty(t)}nestedShipperMessage(e,t){this.changes.push([15,[this.serializer.nodeToId(e),t]])}take(){this.changedNodes.forEach((e,t)=>{e.forEachProperty(e=>{this.changes.push([5,this.serializer.serializeNodePropertyRow(t,e)])}),e.forEachAttribute(e=>{this.changes.push([3,this.serializer.serializeNodeAttributeRow(t,e)])}),e.data&&this.changes.push([4,this.serializer.serializeNodeDataRow(t)])}),this.changedGlobals.size>0&&this.changedGlobals.forEach(e=>{this.changes.push(e.serialize())});let e=this.changes;return this.clear(),e}isRelevantNodeType(e){let{Node:t}=this.shipper.window,{nodeType:i}=e;return i===t.TEXT_NODE||i===t.ELEMENT_NODE&&!f.includes(e.tagName)||i===t.DOCUMENT_NODE}getNodeChanges(e){if(this.changedNodes.has(e))return this.changedNodes.get(e);{let t=new A;return this.changedNodes.set(e,t),t}}constructor(e){super(e),this.changes=[],this.changedGlobals=new Set,this.changedNodes=new Map}}class A{markProperty(e){this.properties[e]=!0}markAttribute(e){this.attributes[e]=!0}markData(){this.data=!0}forEachProperty(e){Object.keys(this.properties).forEach(e)}forEachAttribute(e){Object.keys(this.attributes).forEach(e)}constructor(){this.properties={},this.attributes={},this.data=!1}}class x extends E{clear(){this.knownNodeIds.clear(),this.newNodes=[],this.removedNodes=null,this.nextRemovedNodes=null}nodeToId(e){let t;if(!e)throw Error("nodeToId called without node");return this.nodesToIds.has(e)?t=this.nodesToIds.get(e):(t=this.idSeq++,this.nodesToIds.set(e,t)),this.knownNodeIds.has(t)||(this.newNodes.push(e),this.knownNodeIds.add(t)),this.removedNodes&&this.removedNodes.delete(e),t}idTree(e){let t=[this.nodeToId(e)];if(e instanceof this.window.ShadowRoot){let i=this.createStyleElementFromStyleSheets(e.adoptedStyleSheets);
3i&&t.push(this.idTree(i))}if(e.shadowRoot&&t.push(this.idTree(e.shadowRoot)),e.hasChildNodes())for(let i=0;i<e.childNodes.length;i++){let n=e.childNodes[i];t.push(this.idTree(n))}return t}possiblyRemoved(e){if(this.nextRemovedNodes||(this.nextRemovedNodes=new Set),this.nextRemovedNodes.add(e),e.shadowRoot&&this.possiblyRemoved(e.shadowRoot),e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++)this.possiblyRemoved(e.childNodes[t])}takeNew(){let e=this.newNodes;return this.newNodes=[],e.map(e=>this.serializeNodeRow(e))}takeDeletions(){let e=[];if(this.removedNodes)for(let t of this.removedNodes){let i=this.nodesToIds.get(t);i&&!(0,y.FS)(t,this.document)&&(this.nodesToIds.delete(t),this.knownNodeIds.delete(i),e.push(i))}return this.removedNodes=this.nextRemovedNodes,this.nextRemovedNodes=null,e}take(){return[this.takeNew(),this.takeDeletions()]}serializeNodeRow(e){let t=x.nodeSerializers[e.nodeType],i=t?this[t](e):[];return[this.nodeToId(e),e.nodeType,...i]}serializeNodeAttributeRow(e,t){return[this.nodeToId(e),...this.serializeAttribute(e,t)]}serializeNodePropertyRow(e,t){return[this.nodeToId(e),...this.serializeProperty(e,t)]}serializeNodeDataRow(e){let t=x.nodeDataSerializers[e.nodeType],i=t?this[t](e):"";return[this.nodeToId(e),i]}serialize_Element(e){var t,i,n;return[null!=(t=null!=(i=h[e.tagName])?i:e.tagName)?t:"",null!=(n=d[e.namespaceURI])?n:0,this.serializeAttributes(e),this.serializeProperties(e)]}serialize_DocumentType(e){return[e.name,e.publicId,e.systemId]}serialize_Text(e){return[this.serialize_Text_data(e)]}serialize_DocumentFragment(e){return[+(e instanceof this.window.ShadowRoot)]}serialize_Text_data(e){let t=e.parentNode;if(t){if("STYLE"===t.tagName)return this.serialize_Text_data_STYLEchild(e);else if("TEXTAREA"===t.tagName)return this.serialize_Text_data_TEXTAREAchild(e);else if("SCRIPT"===t.tagName)return this.serialize_Text_data_SCRIPTchild(e)}return this.serialize_Text_data_default(e)}serialize_Text_data_default(e){return String(e.data)}serialize_Text_data_STYLEchild(e){return this.rewriteStyleSheet(this.styleSheetAsText(e.parentNode,e))}serialize_Text_data_TEXTAREAchild(e){return this.maskValue(this.serialize_Text_data_default(e))}serialize_Text_data_SCRIPTchild(e){return""}serializeAttribute(e,t){let i=null,n=0;if("style"===t)i=e.style.cssText||e.getAttribute("style");else{let s=e.getAttributeNode(t);if(s){var r;t=s.name,"string"==typeof(i=s.value)&&(i.length>2048?i="":this.isSubmitInput(e)||"value"!==t||(i=this.maskValue(i))),n=null!=(r=d[s.namespaceURI])?r:0}}return[t,n,i]}serializeAttributes(e){let t=[];if(e.attributes)for(let i=0;i<e.attributes.length;i++){let n=e.attributes[i];n.specified&&("style"===n.name||"string"==typeof n.value)&&t.push(this.serializeAttribute(e,n.name))}return t.length>0?t:0}serializeProperty(e,t){if(!m.includes(t))return[0,0];{let i;return i=this.isSubmitInput(e)||"value"!==t||"string"!=typeof e.value?e[t]:this.maskValue(e.value),[t,i]}}serializeProperties(e){let t=[];return 0!==e.scrollLeft&&t.push(["scrollLeft",e.scrollLeft]),0!==e.scrollTop&&t.push(["scrollTop",e.scrollTop]),null!=e.value&&t.push(this.serializeProperty(e,"value")),e instanceof this.window.HTMLMediaElement&&(t.push(["paused",e.paused]),t.push(["currentTime",e.currentTime]),t.push(["controls",e.controls])),t.length>0?t:0}maskValue(e){return e&&Array(e.length+1).join("â¢")}styleSheetAsText(e,t){if(e.dataset.guruExtensionId)return"";if(e.childNodes.length>1)return String(t.data);try{let t="";for(let n=0;n<e.sheet.cssRules.length;n++){var i;let r=e.sheet.cssRules[n];if(null==(i=r.style)?void 0:i.inset){let{cssText:e,selectorText:i,style:{top:n,right:s,bottom:o,left:a}}=r;t+=e+" "+i+" { top: "+n+"; right: "+s+"; bottom: "+o+"; left: "+a+"; }"}else t+=r.cssText}return t}catch(e){return String(t.data)}}rewriteStyleSheet(e){return e.replace(/:hover|:focus-within|:focus-visible|:focus|:active/g,this.convertPseudoClass)}convertPseudoClass(e){var t;return null!=(t=c[e])?t:e}createStyleElementFromStyleSheets(e){try{let t="";for(let i=0;i<e.length;i++){let n=e[i];try{for(let e=0;e<n.cssRules.length;e++){let i=n.cssRules[e];t+=i.cssText}}catch(e){}}if(t){let e=this.document.createElement("style");return e.textContent=t,e}}catch(e){return null}}isSubmitInput(e){return e&&e.tagName&&"INPUT"===e.tagName&&"submit"===e.getAttribute("type")}constructor(e){super(e),this.idSeq=1,this.nodesToIds=new Map,this.knownNodeIds=new Set,this.newNodes=[],this.removedNodes=null,this.nextRemovedNodes=null}}x.nodeSerializers={1:"serialize_Element",3:"serialize_Text",10:"serialize_DocumentType",11:"serialize_DocumentFragment"},x.nodeDataSerializers={3:"serialize_Text_data"};var C=i(159);
3class T extends E{changed(){this.changeQueue.globalChanged(this),this.shipper.sendFrame()}}T.includedInKeyframe=!0;class k extends E{init(){this.addPassiveDocumentListener("scroll",this.onScroll,!0)}constructor(e,t){super(e),this.onScroll=e=>{let t=e.target;t&&t!==this.document?(this.changeQueue.nodePropertyChanged(t,"scrollLeft"),this.changeQueue.nodePropertyChanged(t,"scrollTop"),this.shipper.sendFrame()):this.onDocumentScroll()},this.onDocumentScroll=t}}class I extends T{init(){this.updateBaseLocation()}serialize(){return[14,[this.baseLocation,this.document.location.href]]}constructor(...e){super(...e),this.onLocationChange=()=>{this.updateBaseLocation(),this.changed()},this.updateBaseLocation=()=>{this.baseLocation=(this.document.getElementsByTagName("base")[0]||{}).href||this.document.location.href.match(/^(.*\/)[^/]*$/)[1]}}}let F=[I,class extends T{serialize(){return[1,[this.serializer.idTree(this.document)]]}},class extends T{init(){this.scrollListener.init()}cleanup(){this.scrollListener.dispose(),super.cleanup()}serialize(){let e=this.document.scrollingElement||this.document.documentElement;return[6,e?[e.scrollLeft,e.scrollTop]:[0,0]]}constructor(e){super(e),this.onScroll=()=>{this.changed()},this.scrollListener=new k(e,this.onScroll)}},class extends T{init(){this.addPassiveDocumentListener("mousemove",this.onMouseMove),this.addPassiveDocumentListener("mouseleave",this.onMouseLeave)}serialize(){return[7,[this.x,this.y,this.target?this.serializer.nodeToId(this.target):0]]}constructor(...e){super(...e),this.x=-1,this.y=-1,this.target=null,this.onMouseMove=e=>{this.x=e.clientX,this.y=e.clientY,this.target=e.target,this.changed()},this.onMouseLeave=()=>{this.x=this.y=-1,this.target=null,this.changed()}}},class extends E{init(){this.addPassiveDocumentListener("mousedown",this.onMouseDown,!0)}constructor(...e){super(...e),this.onMouseDown=e=>{this.changeQueue.eventHappened([8,[e.clientX,e.clientY]]),this.shipper.sendFrame()}}},class extends T{init(){this.addPassiveWindowListener("resize",this.onResize)}serialize(){let e=(0,C.zW)(this.window);return[9,[e.innerWidth,e.innerHeight]]}constructor(...e){super(...e),this.onResize=()=>{this.changed()}}},class extends T{init(){this.addPassiveDocumentListener("visibilitychange",this.onVisibilityChange),this.addPassiveWindowListener("pagehide",this.onPageHide)}get isVisible(){return"visible"===this.document.visibilityState}serialize(){return[10,[0|this.isVisible]]}constructor(...e){super(...e),this.navigating=!1,this.onVisibilityChange=()=>{this.navigating||this.changed()},this.onPageHide=()=>{this.navigating=!0}}},class extends T{init(){this.addPassiveWindowListener("focus",this.onWindowFocus),this.addPassiveWindowListener("blur",this.onWindowBlur)}serialize(){return[11,[0|this.document.hasFocus()]]}constructor(...e){super(...e),this.onWindowFocus=()=>{this.changed()},this.onWindowBlur=()=>{this.changed()}}},class extends T{init(){this.addPassiveDocumentListener("selectionchange",this.onSelectionChange)}serialize(){let e=this.document.getSelection();if(!e||0===e.rangeCount||e.isCollapsed)return[12,[0]];{let t=e.getRangeAt(0);return[12,[this.serializer.nodeToId(t.startContainer),t.startOffset,this.serializer.nodeToId(t.endContainer),t.endOffset]]}}constructor(...e){super(...e),this.onSelectionChange=()=>{this.changed()}}},class extends T{init(){this.addPassiveDocumentListener("focus",this.onFocus,!0),this.addPassiveDocumentListener("blur",this.onBlur,!0)}serialize(){return[13,[this.target?this.serializer.nodeToId(this.target):0]]}constructor(...e){super(...e),this.target=null,this.onFocus=e=>{this.target=e.target,this.changed()},this.onBlur=()=>{this.target=null,this.changed()}}},class extends E{init(){this.observer=new MutationObserver(this.onMutations),this.observeElement(this.document),this.createAttachShadowSpy(),this.observeExistingShadowRoots(this.document)}cleanup(){var e;null==(e=this.observer)||e.disconnect(),this.observer=null}observeElement(e){this.observer.observe(e,{childList:!0,characterData:!0,attributes:!0,subtree:!0})}observeExistingShadowRoots(e,t){let{skipRoot:i=!1}=void 0===t?{}:t,n=this.document.createTreeWalker(e,this.window.NodeFilter.SHOW_ELEMENT),r=i?n.nextNode():n.currentNode;for(;r;)this.observeShadowRootNode(r),r=n.nextNode()}createAttachShadowSpy(){this.callOnDispose(w(this.window.Element,"attachShadow","value",this.onAttachShadow,{timing:"after",async:!0}))}constructor(...e){super(...e),this.onMutations=e=>{let t=!1;for(let i=0;i<e.length;
3i++){let n=e[i],{type:r,target:s}=n;switch(r){case"childList":{let{nextSibling:e,addedNodes:i,removedNodes:r}=n;this.changeQueue.nodeTreeChanged(s,r,e,i),i.forEach(this.observeShadowRootNode),t=!0;break}case"attributes":{let{attributeName:e}=n;this.changeQueue.nodeAttributeChanged(s,e),t=!0;break}case"characterData":this.changeQueue.nodeDataChanged(s),t=!0}}t&&this.shipper.sendFrame()},this.observeShadowRootNode=e=>{let t=e instanceof this.window.ShadowRoot?e:e.shadowRoot;t&&(this.observeElement(t),this.observeExistingShadowRoots(t,{skipRoot:!0}))},this.onAttachShadow=e=>{e.shadowRoot&&this.onMutations([{type:"childList",target:e,addedNodes:[e.shadowRoot],removedNodes:[],nextSibling:null}])}}},class extends E{init(){let{CSSStyleSheet:e}=this.window;["insertRule","deleteRule"].forEach(t=>{this.callOnDispose(w(e,t,"value",this.onCSSRuleChange,{timing:"after",async:!0}))})}constructor(...e){super(...e),this.onCSSRuleChange=e=>{let t=null==e?void 0:e.ownerNode,i=null==t?void 0:t.childNodes[0];t&&i&&(this.changeQueue.nodeDataChanged(i),this.shipper.sendFrame())}}},class extends E{init(){this.addPassiveDocumentListener("play",this.onPlayStateChange,!0),this.addPassiveDocumentListener("pause",this.onPlayStateChange,!0)}constructor(...e){super(...e),this.onPlayStateChange=e=>{e.target&&(this.changeQueue.nodePropertyChanged(e.target,"paused"),this.changeQueue.nodePropertyChanged(e.target,"currentTime"),this.shipper.sendFrame())}}},class extends E{init(){this.addPassiveDocumentListener("input",this.onInputEvent)}constructor(e){super(e),this.onInputEvent=e=>{let{target:t}=e;("INPUT"===t.tagName||"TEXTAREA"===t.tagName)&&this.onInputValueChange(t)},this.onInputValueChange=e=>{this.changeQueue.nodePropertyChanged(e,"value"),this.shipper.sendFrame()},this.shipper.observeInputValue&&[this.window.HTMLInputElement,this.window.HTMLTextAreaElement].forEach(e=>{this.callOnDispose(w(e,"value","set",this.onInputValueChange,{timing:"after",async:!0}))})}}];class O{dispose(){this.clear(),this.helpers.forEach(e=>e.dispose()),this.window.__qlfdNodeForId&&delete this.window.__qlfdNodeForId}nodeForId(e){var t;let{nodesToIds:i,idSeq:n}=this.serializer;if(!this.idsToNodes||this.idsToNodesIdSeq!==n||this.idsToNodesSize!==i.size){for(let[e,t]of(this.idsToNodes=new Map,i))this.idsToNodes.set(t,e);this.idsToNodesIdSeq=n,this.idsToNodesSize=i.size}return null!=(t=this.idsToNodes.get(e))?t:null}clear(){this.serializer.clear(),this.changeQueue.clear(),this.sendFrame.cancel()}start(){this.started||(this.helpers.forEach(e=>e.init()),this.started=!0,this.window.__qlfdNodeForId=e=>this.nodeForId(e),this.sendKeyframe())}sendKeyframe(){if(!this.started)return;this.clear();let e=this.keyframeHelpers.map(e=>e.serialize()),[t,i]=this.serializer.take();this.sendMessage([1,1,e,t,i])}onNestedShipperMessage(e,t){this.changeQueue.nestedShipperMessage(e,t),this.sendFrame()}constructor(e,t,i,n=!1){this.sendFrame=v()(()=>{let e=this.changeQueue.take(),[t,i]=this.serializer.take();this.sendMessage([1,2,e,t,i])},1e3/15),this.window=e,this.document=t,this.sendMessage=i,this.observeInputValue=n,this.started=!1,this.serializer=new x(this),this.changeQueue=new S(this),this.idsToNodes=null,this.idsToNodesIdSeq=0,this.idsToNodesSize=0,this.helpers=[],this.keyframeHelpers=[],F.forEach(e=>{let t=new e(this);this.helpers.push(t),e.includedInKeyframe&&this.keyframeHelpers.push(t)})}}var M=i(1416);class R extends M.A{cleanup(){this.shipper.dispose(),this.widget.stopShipper(),super.cleanup()}recreateShipper(){this.shipper.dispose(),this.shipper=new O(window,document,this.sendMessage)}static getLastLocation(e){let t;return e[2].forEach(e=>{14===e[0]&&(t=e[1][1])}),t}refreshDisableLiveView(e){this.disableLiveView=!!this.denylistedVisitorStreamDomains.length&&(0,r._F)(this.denylistedVisitorStreamDomains,e,!0)}constructor(e,t){super(e),this.disableLiveView=!1,this.onReceived=e=>{e.start&&1<=e.start&&(this.shipper.started?(this.shipper.sendKeyframe(),this.widget.requestKeyframe()):(this.shipper.start(),this.widget.startShipper()))},this.onCableDisconnected=()=>{this.recreateShipper(),this.widget.stopShipper()},this.sendMessage=e=>{var t;if(null==(t=this.featureFlags)?void 0:t.liveViewBlockListSpa)this.refreshLocationState(),this.refreshDisableLiveView(this.currentLocation);else{let t=R.getLastLocation(e);t&&this.refreshDisableLiveView(t)}
3this.disableLiveView&&(e[3]=[],e[4]=[]),this.channel.sendLiveView({m:e})},this.onMessageFromWidget=(e,t)=>{this.shipper.onNestedShipperMessage(e,t)},this.refreshLocationState=()=>{let e=this.shipper.window.location.href;if(e!==this.currentLocation){this.currentLocation=e;let t=this.shipper.helpers.find(e=>e instanceof I);t&&t.onLocationChange()}},this.shipper=new O(window,document,this.sendMessage),this.channel.on("receivedLiveView",this.onReceived),this.channel.on("disconnected",this.onCableDisconnected),this.denylistedVisitorStreamDomains=t,this.currentLocation=this.shipper.window.location.href}}class P extends M.A{create(){return this.widget.config.isComplete&&!this.widget.config.disableLiveView&&(0,n.RC)("liveView")?this.container.resolve("pageMirror",this.widget.config.denylistedVisitorStreamDomains||[]):this.container.resolve("emptyPageMirror")}constructor(e){super(e),e.container.set("emptyPageMirror",{}),e.container.register1("pageMirror",R)}}},905(e,t,i){"use strict";let n;i.d(t,{sQ:()=>eF,Nj:()=>eO,XM:()=>eM});let r=/\(error: (.*)\)/,s=/captureMessage|captureException/,o="<anonymous>";function a(e,t,i,n){let r={filename:e,function:t,in_app:!0};return void 0!==i&&(r.lineno=i),void 0!==n&&(r.colno=n),r}let l=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,d=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,h=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,p=function(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,i=0)=>{let n=[],o=e.split("\n");for(let e=i;e<o.length;e++){let i=o[e];if(i.length>1024)continue;let s=r.test(i)?i.replace(r,"$1"):i;if(!s.match(/\S*Error: /)){for(let e of t){let t=e(s);if(t){n.push(t);break}}if(n.length>=50)break}}var a=n;if(!a.length)return[];let l=Array.from(a);return/sentryWrapped/.test(l[l.length-1].function||"")&&l.pop(),l.reverse(),s.test(l[l.length-1].function||"")&&(l.pop(),s.test(l[l.length-1].function||"")&&l.pop()),l.slice(0,50).map(e=>({...e,filename:e.filename||l[l.length-1].filename,function:e.function||"?"}))}}([30,e=>{let t=l.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=c.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,i]=m(t[1]||"?",t[2]);return a(i,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{let t=u.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=d.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],i=t[1]||"?";return[i,e]=m(i,e),a(e,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{let t=h.exec(e);return t?a(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]),m=(e,t)=>{let i=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return i||n?[-1!==e.indexOf("@")?e.split("@")[0]:"?",i?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var f=i(5811),g=i(9786),v=i(8160);let y=[];function b(e,t){for(let i of t)i&&i.afterAllSetup&&i.afterAllSetup(e)}function _(e,t,i){if(!i[t.name]){if(i[t.name]=t,-1===y.indexOf(t.name)&&(t.setupOnce(g.lb,v.BF),y.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){let i=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>i(t,n,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let i=t.processEvent.bind(t),n=Object.assign((t,n)=>i(t,n,e),{id:t.name});e.addEventProcessor(n)}}}function w(e,t){return Object.assign(function(...e){return t(...e)},{id:e})}var E=i(9623),S=i(1994);function A(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function x(e,t,i,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:i,parent_id:n}}var C=i(8880),T=i(8878);function k(e,t=100,n=Infinity){try{return function e(t,n,r=Infinity,s=Infinity,a=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(i){if(e)return!!t.has(i)||(t.add(i),!1);for(let e=0;e<t.length;e++)if(t[e]===i)return!0;return t.push(i),!1},function(i){if(e)t.delete(i);else for(let e=0;e<t.length;e++)if(t[e]===i){t.splice(e,1);break}}]}()){let[l,c]=a;if(null==n||["number","boolean","string"].includes(typeof n)&&!(0,E.yr)(n))return n;let u=function(e,t){try{var n;let r;if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==i.g&&t===i.g)return"[Global]";if("u">typeof window&&t===window)return"[Window]";if("u">typeof document&&t===document)return"[Document]";if((0,E.L2)(t))return"[VueViewModel]";if((0,E.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${function(e){try{if(!e||"function"!=typeof e)return o;return e.name||o}catch(e){return o}}(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let s=(n=t,(r=Object.getPrototypeOf(n))?r.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(s))return`[HTMLElement: ${s}]`;return`[object ${s}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!u.startsWith("[object "))return u;if(n.__sentry_skip_normalization__)return n;let d="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:r;if(0===d)return u.replace("object ","");if(l(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,d-1,s,a)}catch(e){}let h=Array.isArray(n)?[]:{},p=0,m=(0,T.W4)(n);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(p>=s){h[t]="[MaxProperties ~]";break}let i=m[t];h[t]=e(t,i,d-1,s,a),p++}return c(n),h}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}var I=i(7999),F=i(7279);function O(e,t){var i;let n,r=R(e,t),s={type:t&&t.name,value:(n=(i=t)&&i.message)?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"};return r.length&&(s.stacktrace={frames:r}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function M(e,t){return{exception:{values:[O(e,t)]}}}function R(e,t){let i=t.stacktrace||t.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(P.test(e.message))return 1}return 0}(t);try{return e(i,n)}catch(e){}return[]}let P=/Minified React error #\d+;/i;function D(e,t,i,n){let r={};if(n&&i){let n=R(e,i);n.length&&(r.exception={values:[{value:t,stacktrace:{frames:n}}]})}
3if((0,E.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:i}=t;return r.logentry={message:e,params:i},r}return r.message=t,r}let L="LinkedErrors",N=(e={})=>{let t=e.limit||5,i=e.key||"cause";return{name:L,setupOnce(){},preprocessEvent(e,n,r){let s=r.getOptions();!function(e,t,i=250,n,r,s,o){var a,l;if(!s.exception||!s.exception.values||!o||!(0,E.tH)(o.originalException,Error))return;let c=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;c&&(s.exception.values=(a=function e(t,i,n,r,s,o,a,l){if(o.length>=n+1)return o;let c=[...o];if((0,E.tH)(r[s],Error)){A(a,l);let o=t(i,r[s]),u=c.length;x(o,s,u,l),c=e(t,i,n,r[s],s,[o,...c],o,u)}return Array.isArray(r.errors)&&r.errors.forEach((r,o)=>{if((0,E.tH)(r,Error)){A(a,l);let u=t(i,r),d=c.length;x(u,`errors[${o}]`,d,l),c=e(t,i,n,r,s,[u,...c],u,d)}}),c}(e,t,r,o.originalException,n,s.exception.values,c,0),l=i,a.map(e=>(e.value&&(e.value=(0,S.xv)(e.value,l)),e))))}(O,s.stackParser,s.maxValueLength,i,t,e,n)}}};w(L,N);let j="Dedupe",B=()=>{let e;return{name:j,setupOnce(){},processEvent(t){if(t.type)return t;try{var i,n,r,s,o,a;let l,c,u,d;if(i=t,(n=e)&&(r=i,s=n,l=r.message,c=s.message,(l||c)&&(!l||c)&&(l||!c)&&l===c&&z(r,s)&&U(r,s)&&1||(o=i,a=n,u=q(a),d=q(o),u&&d&&u.type===d.type&&u.value===d.value&&z(o,a)&&U(o,a))))return null}catch(e){}return e=t}}};function U(e,t){let i=H(e),n=H(t);if(!i&&!n)return!0;if(i&&!n||!i&&n||n.length!==i.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],r=i[e];if(t.filename!==r.filename||t.lineno!==r.lineno||t.colno!==r.colno||t.function!==r.function)return!1}return!0}function z(e,t){let i=e.fingerprint,n=t.fingerprint;if(!i&&!n)return!0;if(i&&!n||!i&&n)return!1;try{return i.join("")===n.join("")}catch(e){return!1}}function q(e){return e.exception&&e.exception.values&&e.exception.values[0]}function H(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}w(j,B);let V=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property:googletag$/],W=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Q="InboundFilters",J=(e={})=>({name:Q,setupOnce(){},processEvent:(t,i,n)=>{var r,s,o,a;return(r=t,!((s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:V],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:W],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,n.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(r)||(o=r,a=s.ignoreErrors,!o.type&&a&&a.length&&(function(e){let t,i=[];e.message&&i.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(i.push(t.value),t.type&&i.push(`${t.type}: ${t.value}`)),i})(o).some(e=>(0,S.Xr)(e,a)))||function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let i=e.transaction;return!!i&&(0,S.Xr)(i,t)}(r,s.ignoreTransactions)||function(e,t){if(!t||!t.length)return!1;let i=K(e);return!!i&&(0,S.Xr)(i,t)}(r,s.denyUrls))&&function(e,t){if(!t||!t.length)return!0;let i=K(e);return!i||(0,S.Xr)(i,t)}(r,s.allowUrls))?t:null}});function K(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let i=e[t];if(i&&"<anonymous>"!==i.filename&&"[native code]"!==i.filename)return i.filename||null}return null}(t):null}catch(e){return null}}w(Q,J);var G=i(1392);i(8034).pS;let Y=G.OW,$="HttpContext",X=()=>({name:$,setupOnce(){},preprocessEvent(e){if(!Y.navigator&&!Y.location&&!Y.document)return;let t=e.request&&e.request.url||Y.location&&Y.location.href,{referrer:i}=Y.document||{},{userAgent:n}=Y.navigator||{},r={...e.request&&e.request.headers,...i&&{Referer:i},...n&&{"User-Agent":n}},s={...e.request,...t&&{url:t},headers:r};e.request=s}});w($,X);let Z="FunctionToString",ee=new WeakMap,et=()=>({name:Z,setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,T.sp)(this),i=ee.has((0,C.KU)())&&void 0!==t?t:this;return n.apply(i,e)}}catch(e){}},setup(e){ee.set(e,!0)}});w(Z,et);let ei=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function en(e,t=!1){let{host:i,path:n,pass:r,port:s,projectId:o,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&r?`:${r}`:""}@${i}${s?`:${s}`:""}/${n?`${n}/`:n}${o}`}function er(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function es(e,t=[]){return[e,t]}function eo(e,t){for(let i of e[1]){let e=i[0].type;if(t(i,e))return!0}return!1}function ea(e,t){return(t||new TextEncoder).encode(e)}let el={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function ec(e){if(!e||!e.sdk)return;
3let{name:t,version:i}=e.sdk;return{name:t,version:i}}class eu extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var ed=i(263),eh=i(435),ep=i(5306),em=i(9706),ef=i(6127),eg=i(8850),ev=i(644);let ey=new WeakMap;var eb=i(8034).LK,e_=i(8034).wm;class ew{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn&&(this._dsn=function(e){let t="string"==typeof e?function(e){let t=ei.exec(e);if(!t)return void(0,f.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[i,n,r="",s,o="",a]=t.slice(1),l="",c=a,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return er({host:s,pass:r,path:l,projectId:c,port:o,protocol:i,publicKey:n})}(e):er(e);if(t&&1)return t}(e.dsn)),this._dsn){const t=function(e,t={}){let i,n,r="string"==typeof t?t:t.tunnel,s="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return r||`${i=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"",`${i} 4`}return t}(e)).length},r]]));this._sendEnvelope(o)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){var e;let t,{integrations:i}=this._options;this._integrations=(e=this,t={},i.forEach(i=>{i&&_(e,i,t)}),t),b(this,i),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let i=!1,n=!1,r=t.exception&&t.exception.values;if(r)for(let e of(n=!0,r)){let t=e.mechanism;if(t&&!1===t.handled){i=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&i)&&((0,ed.qO)(e,{...i&&{status:"crashed"},errors:e.errors||Number(n||i)}),this.captureSession(e))}_isClientDoneProcessing(e){return new F.T2(t=>{let i=0,n=eb(()=>{0==this._numProcessing?(e_(n),t(!0)):(i+=1,e&&i>=e&&(e_(n),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,i,n=(0,v.rm)()){let r=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),(function(e,t,i,n,r,s){var o,a;let{normalizeDepth:l=3,normalizeMaxBreadth:c=1e3}=e,u={...t,event_id:t.event_id||i.event_id||(0,I.eJ)(),timestamp:t.timestamp||(0,ep.lu)()},d=i.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:i,release:n,dist:r,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?i:em.U),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=(0,S.xv)(e.message,s));let o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=(0,S.xv)(o.value,s));let a=e.request;a&&a.url&&(a.url=(0,S.xv)(a.url,s))})(u,e),o=u,(a=d).length>0&&(o.sdk=o.sdk||{},o.sdk.integrations=[...o.sdk.integrations||[],...a]),void 0===t.type&&function(e,t){let i,n=G.OW._sentryDebugIds;if(!n)return;let r=ey.get(t);r?i=r:(i=new Map,ey.set(t,i));let s=Object.keys(n).reduce((e,r)=>{let s,o=i.get(r);o?s=o:(s=t(r),i.set(r,s));for(let t=s.length-1;t>=0;t--){let i=s[t];if(i.filename){e[i.filename]=n[r];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=s[e.filename])})})}catch(e){}}(u,e.stackParser);let h=function(e,t){if(!t)return e;let i=e?e.clone():new ef.HG;return i.update(t),i}(n,i.captureContext);i.mechanism&&(0,I.M6)(u,i.mechanism);let p=r&&r.getEventProcessors?r.getEventProcessors():[],m=(0,ef.m6)().getScopeData();if(s){let e=s.getScopeData();(0,eg.Rg)(m,e)}if(h){let e=h.getScopeData();(0,eg.Rg)(m,e)}let f=[...i.attachments||[],...m.attachments];f.length&&(i.attachments=f),(0,eg.e2)(u,m);let v=[...p,...(0,g.lG)(),...m.eventProcessors];return(0,g.jB)(v,u,i).then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let i=e.debug_meta.images;
4Object.keys(t).forEach(e=>{i.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof l&&l>0)?function(e,t,i){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:k(e.data,t,i)}}))},...e.user&&{user:k(e.user,t,i)},...e.contexts&&{contexts:k(e.contexts,t,i)},...e.extra&&{extra:k(e.extra,t,i)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=k(e.contexts.trace.data,t,i))),e.spans&&(n.spans=e.spans.map(e=>{let n=(0,ev.et)(e).data;return n&&(e.data=k(n,t,i)),e})),n}(e,l,c):e)})(r,e,t,i,this,n).then(e=>{if(null===e)return e;let t={...n.getPropagationContext(),...i?i.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:n,spanId:r,parentSpanId:s,dsc:o}=t;e.contexts={trace:{trace_id:n,span_id:r,parent_span_id:s},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:o||(0,eh.l)(n,this,i),...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},i){return this._processEvent(e,t,i).then(e=>e.event_id,e=>{})}_processEvent(e,t,i){let n=this.getOptions(),{sampleRate:r}=n,s=eS(e),o=eE(e),a=e.type||"error",l=`before send for type \`${a}\``;if(o&&"number"==typeof r&&Math.random()>r)return this.recordDroppedEvent("sample_rate","error",e),(0,F.xg)(new eu(`Discarding event because it's not included in the random sample (sampling rate = ${r})`,"log"));let c="replay_event"===a?"replay":a,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,i,u).then(i=>{if(null===i)throw this.recordDroppedEvent("event_processor",c,e),new eu("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?i:function(e,t){let i=`${t} must return \`null\` or a valid event.`;if((0,E.Qg)(e))return e.then(e=>{if(!(0,E.Qd)(e)&&null!==e)throw new eu(i);return e},e=>{throw new eu(`${t} rejected with ${e}`)});if(!(0,E.Qd)(e)&&null!==e)throw new eu(i);return e}(function(e,t,i){let{beforeSend:n,beforeSendTransaction:r}=e;if(eE(t)&&n)return n(t,i);if(eS(t)&&r){if(t.spans){let e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return r(t,i)}return t}(n,i,t),l)}).then(n=>{if(null===n){if(this.recordDroppedEvent("before_send",c,e),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new eu(`${l} returned \`null\`, will not send event.`,"log")}let r=i&&i.getSession();if(!s&&r&&this._updateSessionFromEvent(r,n),s){let e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let o=n.transaction_info;return s&&o&&n.transaction!==e.transaction&&(n.transaction_info={...o,source:"custom"}),this.sendEvent(n,t),n}).then(null,e=>{if(e instanceof eu)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new eu(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 5Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{})}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[i,n]=t.split(":");return{reason:i,category:n,quantity:e[t]}})}}function eE(e){return void 0===e.type}function eS(e){return"transaction"===e.type}var eA=i(55);class ex extends ew{constructor(e){!function(e,t,i=[t],n="npm"){let r=e._metadata||{};r.sdk||(r.sdk={name:`sentry.javascript.${t}`,packages:i.map(e=>({name:`${n}:@sentry/${e}`,version:eA.M})),version:eA.M}),e._metadata=r}(e,"browser",["browser"],Y.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Y.document&&Y.document.addEventListener("visibilitychange",()=>{"hidden"===Y.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){var i,n;let r;return i=this._options.stackParser,n=this._options.attachStacktrace,r=function(e,t,i,n){let r;if((0,E.T2)(t)&&t.error)return M(e,t.error);if((0,E.BD)(t)||(0,E.W6)(t)){if("stack"in t)r=M(e,t);else{let s=t.name||((0,E.BD)(t)?"DOMError":"DOMException"),o=t.message?`${s}: ${t.message}`:s;r=D(e,o,i,n),(0,I.gO)(r,o)}return"code"in t&&(r.tags={...r.tags,"DOMException.code":`${t.code}`}),r}return(0,E.bJ)(t)?M(e,t):((0,E.Qd)(t)||(0,E.xH)(t)?r=function(e,t,i,n){let r=(0,C.KU)(),s=r&&r.getOptions().normalizeDepth,o={exception:{values:[{type:(0,E.xH)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let i=(0,T.HF)(e),n=t?"promise rejection":"exception";if((0,E.T2)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,E.xH)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${i}`}(t,{isUnhandledRejection:n})}]},extra:{__serialized__:function e(t,i=3,n=102400){let r=k(t,i);return~-encodeURI(JSON.stringify(r)).split(/%..|./).length>n?e(t,i-1,n):r}(t,s)}};if(i){let t=R(e,i);t.length&&(o.exception.values[0].stacktrace={frames:t})}return o}(e,t,i,void 0):(r=D(e,t,i,n),(0,I.gO)(r,`${t}`,void 0)),(0,I.M6)(r,{synthetic:!0}),r)}(i,e,t&&t.syntheticException||void 0,n),(0,I.M6)(r),r.level="error",t&&t.event_id&&(r.event_id=t.event_id),(0,F.XW)(r)}eventFromMessage(e,t="info",i){return function(e,t,i="info",n,r){let s=D(e,t,n&&n.syntheticException||void 0,r);return s.level=i,n&&n.event_id&&(s.event_id=n.event_id),(0,F.XW)(s)}(this._options.stackParser,e,t,i,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return;let t=function(e,{metadata:t,tunnel:i,dsn:n}){return es({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!i&&!!n&&{dsn:en(n)}},[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,i)}_flushOutcomes(){var e;let t=this._clearOutcomes();if(0===t.length||!this._dsn)return;let i=es((e=this._options.tunnel&&en(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,ep.lu)(),discarded_events:t}]]);this._sendEnvelope(i)}}var eC=i(8034).pS,eT=i(8034).Kj;function ek(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var eI=i(2693);class eF{static init(){if(this.initialized)return;this.initialized=!0,this.clients.widget=this.createClient("https://[email protected]/6666957"),this.clients.multimodal=this.createClient("https://[email protected]/4510545181278208");let e="u">typeof window?window.__qualifiedSentryProxyUrl:void 0;e&&this.setProxyUrl(e)}static setProxyUrl(e){this.proxyUrl=e}static getClient(e){var t;return this.clients[null!=(t=null==e?void 0:e.project)?t:"widget"]}static setContext(e){let{visitorUuid:t,widgetUuid:i}=e;t&&(this.visitorUuid=t),i&&(this.widgetUuid=i)}static createClient(e){let t={dsn:e,transport:e=>this.makeTransport(e),stackParser:p,integrations:[N(),B(),J(),X(),et()]};this.release&&(t.release=this.release);let i=new ex(t);return i.init(),i}static makeTransport(e){let t=e.url;return function(e,t,i=function(e){let t=[];function i(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return(0,F.xg)(new eu("Not adding Promise because buffer limit was reached."));let r=n();return-1===t.indexOf(r)&&t.push(r),r.then(()=>i(r)).then(null,()=>i(r).then(null,()=>{})),r},drain:function(e){return new F.T2((i,n)=>{let r=t.length;if(!r)return i(!0);let s=eC(()=>{e&&e>0&&i(!1)},e);
5t.forEach(e=>{(0,F.XW)(e).then(()=>{--r||(eT(s),i(!0))},n)})})}}}(e.bufferSize||30)){let n={};function r(r){let s=[];if(eo(r,(t,i)=>{let r=el[i];if(function(e,t,i=Date.now()){return(e[t]||e.all||0)>i}(n,r)){let n=ek(t,i);e.recordDroppedEvent("ratelimit_backoff",r,n)}else s.push(t)}),0===s.length)return(0,F.XW)();let o=es(r[0],s),a=t=>{eo(o,(i,n)=>{let r=ek(i,n);e.recordDroppedEvent(t,el[n],r)})};return i.add(()=>t({body:function(e,t){let[i,n]=e,r=JSON.stringify(i);function s(e){"string"==typeof r?r="string"==typeof e?r+e:[ea(r,t),e]:r.push("string"==typeof e?ea(e,t):e)}for(let e of n){let[t,i]=e;if(s(` 6${JSON.stringify(t)} 7`),"string"==typeof i||i instanceof Uint8Array)s(i);else{let e;try{e=JSON.stringify(i)}catch(t){e=JSON.stringify(k(i))}s(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),i=0;for(let n of e)t.set(n,i),i+=n.length;return t}(r)}(o,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode),n=function(e,{statusCode:t,headers:i},n=Date.now()){let r={...e},s=i&&i["x-sentry-rate-limits"],o=i&&i["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,i,,,s]=e.split(":",5),o=parseInt(t,10),a=(isNaN(o)?60:o)*1e3;if(i)for(let e of i.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(r[e]=n+a):r[e]=n+a;else r.all=n+a}else o?r.all=n+function(e,t=Date.now()){let i=parseInt(`${e}`,10);if(!isNaN(i))return 1e3*i;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(o,n):429===t&&(r.all=n+6e4);return r}(n,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof eu)return a("queue_overflow"),(0,F.XW)();throw e})}return r.__sentry__baseTransport__=!0,{send:r,flush:e=>i.drain(e)}}(e,e=>this.proxyUrl?this.send(e,t):Promise.resolve({}))}static send(e,t){let i={"X-Sentry-URL":t};return this.visitorUuid&&(i["X-Visitor-UUID"]=this.visitorUuid),this.widgetUuid&&(i["X-Widget-UUID"]=this.widgetUuid),fetch(this.proxyUrl,{body:e.body,method:"POST",headers:i}).then(e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}}function eO(e){return eF.getClient(e)}function eM(e){eF.setContext(e)}eF.release=(0,eI._p)(()=>"8366c583dfbdfe6932b8088234f05afe0c5f4e54"),eF.clients={},eF.initialized=!1},1416(e,t,i){"use strict";var n=i(5482),r=i(525),s=i(1314);class o extends(0,s._)((0,r.j)(Object)){get config(){return this.widget.config}get visitor(){return this.widget.visitor}get cable(){return this.widget.cable}get channel(){return this.widget.channel}get emitter(){return this.channel.emitter}get tracker(){return this.widget.tracker}get pageMirror(){return this.widget.pageMirror}get analytics(){return this.widget.analytics}get apiHandler(){return this.widget.apiHandler}get dateProvider(){return this.widget.dateProvider}get locationProvider(){return this.widget.locationProvider}get heartbeatManager(){return this.widget.heartbeatManager}get iframeManager(){return this.widget.iframeManager}get experienceAdapter(){return this.widget.experienceAdapter}get featureFlags(){var e;return null!=(e=this.widget.config.featureFlags)?e:{}}get pageViewActivityEmitter(){return this.widget.pageViewActivityEmitter}get offerScript(){return this.widget.offerScript}get contentActivityEmitter(){return this.widget.contentActivityEmitter}}(0,n.Cg)([s.W,(0,n.Sn)("design:type","u"<typeof Widget?Object:Widget)],o.prototype,"widget",void 0),i.d(t,{A:()=>o})},4127(e,t,i){"use strict";var n=i(905),r=i(8621);let s=["Googlebot","SemrushBot"];class o{static preload(e){try{if(this.isPreloaded||this.isCrawler())return;this.preloadAvatars(e),this.preloadOrbVideo(e),this.isPreloaded=!0}catch(e){var t;null==(t=(0,n.Nj)({project:"multimodal"}))||t.captureException(e)}}static isCrawler(){let e="u">typeof navigator?navigator.userAgent:"";return!!e&&s.some(t=>e.includes(t))}static preloadAvatars(e){var t,i,n;if(null==(t=e.featureFlags)?void 0:t.piperXAgentAvatar){if(null==(i=e.featureFlags)?void 0:i.piperXAnam){let t=(e.assetsHost||"https://assets.qualified-dev.com")+"/static-media/piperx-loading/"+r.X9+".mp4";this.preloadVideoAsset("video-preview-anam",t);return}(null==(n=e.multimodalReplicaPreviews)?void 0:n.length)?e.multimodalReplicaPreviews.forEach(t=>{var i;let{id:n,previewVideoSrc:s}=t,o=null!=(i=r.We[n])?i:n,a=r.XP[o]?""+e.host+r.XP[o]:void 0;this.preloadVideoAsset("video-preview-"+o,s,a)}
7):new Set(e.multimodalSelectedReplicaIds).forEach(t=>{let i=r.We[t];if(!i)return;let n=(e.assetsHost||"https://assets.qualified-dev.com")+"/static-media/piperx-loading/"+i+".mp4",s=r.XP[i]?""+e.host+r.XP[i]:void 0;this.preloadVideoAsset("video-preview-"+i,n,s)})}}static preloadOrbVideo(e){var t,i;(null==(t=e.featureFlags)?void 0:t.piperXAgentAvatar)||(null==(i=e.featureFlags)?void 0:i.piperXAgentVoice)&&this.preloadVideoAsset("orb-video",r.NY)}static preloadVideoAsset(e,t,i){if(this.preloadedAssets.has(e))return;let n=document.createElement("video");n.src=t,n.preload="auto",n.autoplay=!0,n.loop=!0,n.muted=!0,n.playsInline=!0,i&&(n.poster=i),n.load(),this.preloadedAssets.set(e,n)}}o.preloadedAssets=new Map,o.isPreloaded=!1,i.d(t,{W:()=>o})},8621(e,t,i){"use strict";i.d(t,{X9:()=>h,T:()=>s,W5:()=>a,wR:()=>c,hN:()=>p,yZ:()=>r,ew:()=>u,NY:()=>d,tv:()=>o,XP:()=>f,We:()=>m,B$:()=>l});let n=i.p+"media/piper_low_res.1fa19703f2.jpg",r="qualified-multimodal-host",s="multimodal:canOfferMeetingBooker",o=":is(header, [role='banner']):not(main *)",a="q-docked",l="q-widget-visible",c={floatingTopOffset:"--q-ext-main-floating-top-offset",minimizedZIndex:"--q-floating-multimodal-z-index"},u={docked:0x7ffffff8,minimized:0x7ffffffa,expanded:0x7fffffff,maximized:0x7fffffff},d="https://assets.qualified.com/static-media/piperx-orb/orb-animation.mp4",h="piper-anam",p="rca3f4d2b70f",m={rca8a38779a8:"Carter",r92debe21318:"James",r62baeccd777:"Danny",rf4703150052:"Charlie",re3a705cf66a:"Ruby",r6ae5b6efc9d:"Anna",r4317e64d25a:"Gloria",rc2146c13e81:"Olivia",r9d30b0e55ac:"Luna",r53a461095cf:"Lucy",r76e8278ed59:"Piper",r73d15593b85:"Amelia",rd210ad98545:"piper-anim",r579fcf42a57:"piper-informatica",rb6a13ea5990:"piper-v2",default:"Piper"},f={Piper:n}},4826(e,t,i){"use strict";var n,r,s,o,a,l,c,u,d,h,p,m,f,g=((n={}).SIDEBAR="sidebar",n.DOCKED="docked",n.COLLAPSED_CENTER="collapsed_center",n.COLLAPSED_RIGHT="collapsed_right",n.CLOSED="closed",n),v=((r={}).DOCKED="docked",r.SIDEBAR="sidebar",r),y=((s={}).TEXT="text",s.VOICE="voice",s.VIDEO="video",s),b=((o={}).CHAT="chat",o.FIELD_REQUEST="field_request",o.HIDDEN="hidden",o),_=((a={}).VISITOR_BLOCKED="visitor_blocked",a.REPS_OFFLINE="reps_offline",a.CONVERSATION_NOT_STARTED="conversation_not_started",a),w=((l={}).NONE="none",l.MULTIMODAL="multimodal",l.ARTIFACT="artifact",l),E=((c={}).Solid="solid",c.Outline="outline",c.Shade="shade",c),S=((u={}).Rectangle="rectangle",u.Pill="pill",u),A=((d={}).NONE="none",d.LIGHTBOX="lightbox",d.MESSENGER="messenger",d.INLINE="inline",d),x=((h={}).COLLAPSED_CENTER="collapsed_center",h.COLLAPSED_RIGHT="collapsed_right",h.OPENED="opened",h.CLOSED="closed",h),C=((p={}).Guided="guided",p.SelfGuided="self_guided",p),T=((m={}).StartPresentation="start_presentation",m.StartDeck="start_deck",m),k=((f={}).TAVUS="tavus",f.ANAM="anam",f);i.d(t,{Dp:()=>y,Gu:()=>A,Lc:()=>C,N5:()=>_,W_:()=>b,Y2:()=>w,aH:()=>S,iA:()=>x,in:()=>E,q5:()=>g,xQ:()=>T,z5:()=>v,zh:()=>k})},5482(e,t,i){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function r(e,t,i,n){var r,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,i,o):r(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}i.d(t,{Cg:()=>r,Cl:()=>n,Sn:()=>s})}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e](i,i.exports,__webpack_require__),i.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t,i)=>{var n=(t,i)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[i]:t[n]})};n(t,"get"),n(i,"value")},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,i)=>(__webpack_require__.f[i](e,t),t),[])),__webpack_require__.u=e=>"js/"+(({2029:"multimodal_v2",3587:"liveView",6342:"dummyModule",8243:"offers",8762:"analytics"})[e]||e)+"-"+({1719:"1dc04185",1815:"900110ec",1839:"403198ef",1905:"c686d9f6",2029:"99218085",2039:"d237cb94",2287:"68442e41",247:"ec07526b",3126:"e170fd0c",3338:"1d858388",3489:"574d5def",3587:"c97fba3c",3
7608:"bb3545a6",3657:"1b114a7d",3868:"03776eb8",391:"bfe5906d",4049:"6e89fc44",4061:"2b0bd4df",4104:"ad167183",4422:"3931d504",4423:"5088b7c6",4438:"deb0660a",4837:"726f47e7",5079:"56c669e2",5384:"3b3a0fc4",611:"e4c1f5ae",6247:"48c83cb9",6279:"f9312d57",631:"7aad7d46",6342:"5ec259e6",6364:"9a50be72",6414:"022c1b8b",6903:"1c312e33",7050:"8ff375c3",7166:"3765c721",7190:"cfc91754",7348:"baa12578",7412:"df49f762",7498:"cbfa65ee",8026:"c1540b29",8243:"c3bdecb1",8426:"dfcf34e6",8502:"20767c88",8503:"8fec600b",8711:"67af93ec",8762:"45b9b757",8835:"2cef6817",8841:"65f0c0fe",9338:"48f5b4a1",9691:"805fcb3c",9696:"b107515d",9925:"d51bf233",9965:"1e62fb83",9977:"7c2df656"})[e]+".js",__webpack_require__.miniCssF=e=>""+e+".css",__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="fireball:";__webpack_require__.l=function(i,n,r,s){if(e[i])return void e[i].push(n);if(void 0!==r)for(var o,a,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==i||u.getAttribute("data-rspack")==t+r){o=u;break}}o||(a=!0,(o=document.createElement("script")).type="text/javascript",o.timeout=120,__webpack_require__.nc&&o.setAttribute("nonce",__webpack_require__.nc),o.setAttribute("data-rspack",t+r),o.src=i),e[i]=[n];var d=function(t,n){o.onerror=o.onload=null,clearTimeout(h);var r=e[i];if(delete e[i],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),a&&document.head.appendChild(o)}})(),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.p="/packs/",(()=>{let e="[@rsbuild/plugin-assets-retry] ";function t(e,t){let i=t.domain;for(let t=0;t<i.length;t++){let n=i[t];if(-1!==e.indexOf(n))return n}return window.origin}let i=/[?#].*$/;function n(e,t,n,r,s,o){var a;return e.replace(t,n).replace(i,"")+(a=r+1,!0===o.addQuery?""!==s?`${s}&retry=${a}`:"?retry="+a:"function"==typeof o.addQuery?o.addQuery({times:a,originalQuery:s}):"")}let r=[{max:3,type:["script"],domain:[],crossOrigin:!1,delay:0,addQuery:!1}],s={},o={},a={},l={},c=__webpack_require__.e,u=__webpack_require__.u,d=__webpack_require__.miniCssF||__webpack_require__.k||(()=>null),h=__webpack_require__.l;function p(i){let h=Array.prototype.slice.call(arguments);h[10]||(h[10]={count:0,cssFailedCount:0});let m=h[10],f=c(...h);try{let e=u(i),t=d(i);"u">typeof window&&(e&&(window.__RB_ASYNC_CHUNKS__[e]=!0),t&&(window.__RB_ASYNC_CHUNKS__[t]=!0))}catch(t){console.error(e,"get original script or CSS filename error",t)}return m&&"number"==typeof m.count&&"number"==typeof m.cssFailedCount?(m.count+=1,f.catch(c=>{var f,g;let v,y,b,_,w=m.count-1,E=m.cssFailedCount,S=!!(null==c||null==(f=c.message)?void 0:f.includes("CSS chunk"));S&&(m.cssFailedCount+=1);let A=S?E:w-E;try{let e=function(e,i,c){var h,p,m;let f,g=c?null==(h=o[e])?void 0:h[i]:null==(p=s[e])?void 0:p[i],v=i+1;if(0===i||void 0===g){if(!(f=function(e,i){let s,o=i?d(e):u(e);if(!o)throw Error("only support cssExtract");let a=__webpack_require__.p,l="/"===a[0]&&"/"!==a[1]?window.origin+a+o:a+o,c=(s=l.split("?")[1])?"?"+s.split("#")[0]:"",h=function(e,i,n){for(let r=0;r<n.length;r++){let s=n[r],o=s.test,a=!0;if(o instanceof RegExp?a=o.test(e):"string"==typeof o?a=new RegExp(o).test(e):"function"==typeof o&&(a=o(e)),s.domain&&s.domain.length>0){let i=t(e,s);s.domain.includes(i)||(a=!1)}if(s.type&&s.type.length>0&&!s.type.includes(i)&&(a=!1),a)return s}return null}(l,i?"link":"script",r);if(!h)return null;let p=t(l,h);return{nextDomain:p,nextRetryUrl:n(l,p,p,0,c,h),originalScriptFilename:o,originalSrcUrl:l,originalQuery:c,rule:h}}(e,c)))return null;c?o[e]=[]:s[e]=[]}else{let e,r,s,{originalScriptFilename:o,originalSrcUrl:a,originalQuery:l,rule:c}=g,u=(m=g.nextDomain,e=c.domain,r=t(m,c),s=e.indexOf(r),-1===s?r:e[(s+1)%e.length]);f={nextDomain:u,nextRetryUrl:n(g.nextRetryUrl,g.nextDomain,u,i,l,c),originalScriptFilename:o,originalSrcUrl:a,originalQuery:l,rule:c}}return c?(o[e][v]=f,l[e]=f):(s[e][v]=f,a[e]=f),f}(i,A,S);if(!e)throw c;v=e.originalScriptFilename,y=e.nextRetryUrl,b=e.nextDomain,_=e.rule}catch(t){throw t!==c&&console.error(e,"failed to get nextRetryUrl",t),c}let x=e=>({times:e,domain:b,url:y,tagName:S?"link":"script",isAsyncChunk:!0}),C=x(A);if(A>=_.max)throw c.message=(null==(g=c.message)?void 0:g.includes("retries:"))?c.message:`Loading chunk ${i} from "${v}" failed after ${_.max} retries: "${c.message}"`,"function"==typeof _.onFail&&_.onFail(C),c;"function"==typeof _.onRetry&&_.onRetry(C);let T="function"==typeof _.delay?_.delay(C):_.delay;return(T>0?new Promise(e=>setTimeout(e,T)):Promise.resolve()).then(()=>
7p.apply(p,h)).then(e=>{let t=(null==m?void 0:m.count)===w+2;if("function"==typeof _.onSuccess&&t){let e=x(A+1);_.onSuccess(e)}return e})})):f}"u">typeof window&&!window.__RB_ASYNC_CHUNKS__&&(window.__RB_ASYNC_CHUNKS__={});try{__webpack_require__.e=p,__webpack_require__.l=function(){let e=Array.prototype.slice.call(arguments),t=a[e[3]];return t&&(e[0]=t.nextRetryUrl),h(...e)},__webpack_require__.rbLoadStyleSheet=function(e,t){let i=l[t];return i&&i.nextRetryUrl||__webpack_require__.p+e}}catch(t){console.error(e,"Register async chunk retry runtime failed",t)}})(),__webpack_require__.j="5674",(()=>{var e={5674:0};__webpack_require__.f.j=function(t,i){var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)i.push(n[2]);else{var r=new Promise((i,r)=>n=e[t]=[i,r]);i.push(n[2]=r);var s=__webpack_require__.p+__webpack_require__.u(t),o=Error();__webpack_require__.l(s,function(i){if(__webpack_require__.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var r=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;o.message="Loading chunk "+t+" failed.\n("+r+": "+s+")",o.name="ChunkLoadError",o.type=r,o.request=s,n[1](o)}},"chunk-"+t,t)}};var t=(t,i)=>{var n,r,[s,o,a]=i,l=0;if(s.some(t=>0!==e[t])){for(n in o)__webpack_require__.o(o,n)&&(__webpack_require__.m[n]=o[n]);a&&a(__webpack_require__)}for(t&&t(i);l<s.length;l++)r=s[l],__webpack_require__.o(e,r)&&e[r]&&e[r][0](),e[r]=0},i=self.rspackChunkfireball=self.rspackChunkfireball||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var __webpack_exports__=__webpack_require__(765);window.__qualifiedInit=__webpack_exports__.default;var q=__qualifiedInit.start({"version":9,"host":"https://app.qualified.com","cdnHost":"https://js.qualified.com","wsHost":"wss://ws.qualified.com/cable","assetsHost":"https://assets.qualified.com","frontendVersion":"2026-10-01-8366c583df","meetingLinkHost":"https://schedule.qualified.com","heartbeatPingDivisor":4,"staleThresholdSeconds":7})})()
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.