1(()=>{"use strict";var e={83(e,t,s){s.d(t,{Y:()=>i});const i=e=>{const t=new IntersectionObserver(s=>{s.forEach(s=>{s.isIntersecting&&(e.callback(),t.unobserve(e.element))})},{threshold:.5});t.observe(e.element)}},203(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.localStorageState=t.updateState=t.updateLS=t.getLSItem=t.getLSData=void 0,t.reportLocalStorageWriteFailure=n,t.saveToLocalStorage=o,t.getFromLocalStorage=a,t.removeFromLocalStorage=function(e){window.localStorage.removeItem(e)},t.checkLocalStorageContainsAnyKey=function(e){for(const t of e){const e=window.localStorage.getItem(t);if(null===e||""===e)return!0}return!1},t.shouldUpdateLocalStorage=function(e,t){if(0===e.length)return!0;if(0===t.length)return!1;if(JSON.stringify(e)===JSON.stringify(t))return!1;if(e.some(e=>null==e.id||null==e.updatedAt))return!0;if(t.some(t=>!e.some(e=>null!=e.id&&null!=t.id&&e.id.toString()===t.id.toString())))return!0;return t.some(t=>void 0!==e.find(e=>null!=e.id&&null!=t.id&&e.id.toString()===t.id.toString()&&t.updatedAt>=e.updatedAt))};const i=s(3831),r=s(7276);function n(e,t){(0,r.reportError)({name:r.ERROR_NAMES.localStorageWrite,type:"storage",text:`setItem failed for "${e}": ${t instanceof Error?t.message:String(t)}`})}function o(e,t,s=!0){try{if(window.localStorage.setItem(e,JSON.stringify(t)),!s)return;const r=new CustomEvent(i.ENTITY_EVENTS.progressorDataChange);document.dispatchEvent(r)}catch(t){n(e,t)}}function a(e){try{const t=window.localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){}}t.getLSData=e=>{const t=a(e);return null!=t?t:[]};t.getLSItem=(e,s)=>(0,t.getLSData)(e).find(e=>null!=e.id&&String(e.id)===s);t.updateLS=(e,s)=>{const i=(0,t.getLSData)(e),r=Array.isArray(i)?i:[],n=r.findIndex(e=>null!=e.id&&null!=s.id&&String(e.id)===String(s.id));-1!==n?r[n]=s:r.push(s),o(e,r)};t.updateState=(e,s,i)=>{const r=(0,t.getLSItem)(e,s);!r||r&&!r.state||(r.state=i,r.updatedAt=(new Date).toISOString(),(0,t.updateLS)(e,r))};class l{constructor(){this._validateUserId=null,this._isFlagLock=!1,this._requiredKeysToCheck=[]}set userIdValidator(e){this._validateUserId=e}static destroy(){l.instance=null}static getInstance(){return l.instance||(l.instance=new l),l.instance}set requiredKeysToCheck(e){this._requiredKeysToCheck=e}isBusy(){var e,t;return null!==(t=null===(e=this._validateUserId)||void 0===e?void 0:e.call(this))&&void 0!==t&&t&&(this._isFlagLock||this.anyRequiredKeyMissed())}anyRequiredKeyMissed(){var e;return(null!==(e=this._requiredKeysToCheck)&&void 0!==e?e:[]).some(e=>null===window.localStorage.getItem(e))}lock(){this._isFlagLock=!0}unlock(){this._isFlagLock=!1}}l.instance=null,t.localStorageState=l.getInstance()},226(e,t,s){s.d(t,{A:()=>i});const i=class{constructor(e,t="",s=null){this.apiToken=e,this.orgId=t,this.tokenLength=32,this.currentTime=s?new Date(s):new Date,this.orgId?(this.identName="orgId",this.identValue=this.orgId):(this.identName="token",this.identValue=this.apiToken)}getCharsFromHash(e,t=!1){return[e.charAt(0),e.charAt(t?6:e.length-2),e.slice(-1)]}isSameCharsFromHash(e,t){return JSON.stringify(e)===JSON.stringify(t)}getHashedCharsFromString(e){let t=0;const s=e.length;let i=0;if(s>0)for(;i<s;)t=(t<<5)-t+e.charCodeAt(i++)|0;return this.getCharsFromHash(t.toString())}validate(){if(this.orgId.length>0)return!0;return this.apiToken.length===this.tokenLength&&!0}}},301(e,t,s){s.d(t,{P:()=>c});var i=s(4970),r=s(203),n=s(5375),o=s(832),a=s(6920),l=function(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};class c{constructor(e,t,s=null,i=null,r=500){this.keysToSync=e,this.fetchDataFn=t,this.lastLoadedData=s,this.dataLoadedAt=i,this.intervalMs=r,this.isPaused=!1,this.lastFailedAt=null,this.failureBackoffMs=3e4,this.pauseHandler=()=>{this.isPaused=!0},this.resumeHandler=()=>{this.isPaused=!1},this.setupEventListeners()}setupEventListeners(){document.addEventListener(n.ENTITY_EVENTS.pauseSync,this.pauseHandler),document.addEventListener(n.ENTITY_EVENTS.resumeSync,this.resumeHandler)}init(){this.setupEventListeners(),this.intervalId&&clearInterval(this.intervalId),this.intervalId=window.setInterval(()=>{this.performSyncCheck()},this.intervalMs)}performSyncCheck(){!this.isPaused&&this.isAnyKeyMissing()&&(this.isInFailureBackoff()||(r.localStorageState.lock(),this.shouldFetchFreshData()?this.syncDataFromRemote().finally(()=>{r.localStorageState.unlock()}):this.lastLoadedData?(this.mergeRemoteDataWithLocal(this.lastLoadedData),r.localStorageState.unlock()):r.localStorageState.unlock()))}shouldFetchFreshData(){return!this.isInFailureBackoff()&&(!this.isPaused&&(this.isDataExpired()||!this.lastLoadedData))}destroy(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=void 0),this.removeEventListeners()}removeEventListeners(){document.removeEventListener(n.ENTITY_EVENTS.pauseSync,this.pauseHandler),document.removeEventListener(n.ENTITY_EVENTS.resumeSync,this.resumeHandler)}updateLoadedData(e,t=(new Date).toISOString()){this.lastLoadedData=e,this.dataLoadedAt=t,(null==e?void 0:e.isTemporaryProfile)&&!this.isPaused&&(this.isPaused=!0)}pauseSync(){this.isPaused=!0}unpauseSync(){this.isPaused=!1}isAnyKeyMissing(){return this.keysToSync.some(e=>null===localStorage.getItem(e))}syncDataFromRemote(){return l(this,void 0,void 0,function*(){try{const e=this.createTimeoutPromise();this.lastLoadedData=yield Promise.race([this.fetchAndParseData(),e]),this.updateLoadedData(this.lastLoadedData,(new Date).toISOString()),this.mergeRemoteDataWithLocal(this.lastLoadedData),this.lastFailedAt=null}catch(e){console.warn("Usetiful: [LocalStorageManager] Sync skipped or failed:",e),this.lastFailedAt=(new Date).toISOString()}})}createTimeoutPromise(){return new Promise((e,t)=>
1setTimeout(()=>t(new Error("Usetiful: Timeout: Sync could not be completed within 3 seconds.")),i.GK))}readLocalBackup(){const e={};for(const t of this.keysToSync){const s=localStorage.getItem(t);if(s)try{e[t]=JSON.parse(s)}catch(i){e[t]=s}}return e}fetchAndParseData(){return l(this,void 0,void 0,function*(){const e=yield this.fetchDataFn();if(e)try{return JSON.parse(e)}catch(e){return console.warn("Usetiful: Failed to parse fetched data",e),{}}return{}})}mergeRemoteDataWithLocal(e){const t=this.readLocalBackup();for(const s of this.keysToSync){const i=e[s],r=t[s];void 0!==i?this.setLocalStorageValue(s,this.resolveMergeConflict(r,i)):void 0===r&&this.setLocalStorageValue(s,null)}}resolveMergeConflict(e,t){var s,i;const r=null!==(s=(0,o.tryParseJSON)(t))&&void 0!==s?s:t,n=null!==(i=(0,o.tryParseJSON)(e))&&void 0!==i?i:e;return Array.isArray(r)&&Array.isArray(n)?this.mergeArrayById(n,r):this.areTimestampedObjects(n,r)?this.selectNewerObject(n,r):this.isEmptyValue(r)&&!this.isEmptyValue(n)?n:r}isEmptyValue(e){return null==e||("string"==typeof e&&""===e.trim()||(Array.isArray(e)?0===e.length:"object"==typeof e&&0===Object.keys(e).length))}areTimestampedObjects(e,t){return"object"==typeof t&&"object"==typeof e&&null!==t&&null!==e&&"updatedAt"in t&&"updatedAt"in e}selectNewerObject(e,t){return new Date(t.updatedAt)>new Date(e.updatedAt)?t:e}setLocalStorageValue(e,t){try{const s=this.serializeValue(e,t);return localStorage.getItem(e)!==s&&(localStorage.setItem(e,s),!0)}catch(t){return console.warn(`Usetiful: Failed to set localStorage for key "${e}"`,t),!1}}serializeValue(e,t){if("string"==typeof t)try{return JSON.parse(t),t}catch(e){return JSON.stringify(t)}return null===t?e===a.gD?"{}":"[]":JSON.stringify(t)}mergeArrayById(e,t){if(0===t.length)return e;if(0===e.length)return t;const s=t.filter(e=>null!=e.id),i=e.filter(e=>null!=e.id),r=e.filter(e=>null==e.id),n=new Map(s.map(e=>[String(e.id),e])),o=i.map(e=>{const t=n.get(String(e.id));if(!t)return e;return new Date(t.updatedAt)>new Date(e.updatedAt)?t:e}),a=new Set(i.map(e=>String(e.id)));for(const e of s)a.has(String(e.id))||o.push(e);return o.push(...r),o}isDataExpired(){if(!this.dataLoadedAt)return!0;const e=new Date,t=new Date(this.dataLoadedAt);return e.getTime()-t.getTime()>i.O8}isInFailureBackoff(){if(!this.lastFailedAt)return!1;const e=new Date,t=new Date(this.lastFailedAt);return e.getTime()-t.getTime()<this.failureBackoffMs}}},436(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CSS_CLASSES=void 0,t.CSS_CLASSES={fsExclude:"fs-exclude"}},444(e,t,s){s.d(t,{u:()=>i});const i={sendWEvent:"usetiful:sendWebEvent"}},714(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LS_STATES=t.LS_KEYS=void 0,t.LS_KEYS={surveys:"uf_surveys",previewSurveys:"preview_uf_surveys",contentThrottling:"uf_throttling"},t.LS_STATES={inProgress:"inProgress",inProgressInTour:"inProgressInTour",closed:"closed",waiting:"waiting",completed:"completed"}},722(e,t,s){s.d(t,{w:()=>i});const i={contentShown:"usetiful:contentShown"}},832(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tryParseJSON=function(e){if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(e){return}}},900(e,t,s){s.d(t,{RR:()=>u,VM:()=>a,iq:()=>c,o$:()=>o,xk:()=>n});var i=s(2022),r=function(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const n=(e,t={})=>{const{maxAttempts:s=i.FZ.maxAttempts,intervalMs:r=i.FZ.intervalMs,onTimeout:n}=t;return new Promise((t,i)=>{const o=document.querySelector(e);if(o)return void t(o);let a=0;const l=setInterval(()=>{a+=1;const r=document.querySelector(e);if(r)return clearInterval(l),void t(r);a>=s&&(clearInterval(l),null==n||n(),i())},r);window.usetiful_intervals&&window.usetiful_intervals.push(l)})},o=(e,t)=>{const{alignment:s,embedSettings:i}=e;return s===t&&!!(null==i?void 0:i.element)&&!!(null==i?void 0:i.placement)},a=(e,t)=>o(e,t)?n(e.embedSettings.element).then(()=>{}):Promise.resolve(),l=(e,t,s)=>{if(!((e,t,s)=>{if(!t.id)return!1;const r=t.id;switch(s){case i.gC.after:{const t=e.nextElementSibling;return(null==t?void 0:t.id)===r}case i.gC.before:{const t=e.previousElementSibling;return(null==t?void 0:t.id)===r}case i.gC.inside:return!!e.querySelector(`#${r}`);default:return!1}})(e,t,s))switch(s){case i.gC.after:e.insertAdjacentElement("afterend",t);break;case i.gC.before:e.insertAdjacentElement("beforebegin",t);break;case i.gC.inside:e.appendChild(t)}},c=(e,t,s,r)=>{if(!e)return void console.warn("embedToPage: No content provided");const o=document.querySelector(t);if(o)return l(o,e,s),void(null==r||r());i.FZ.enabled?n(t,{maxAttempts:i.FZ.maxAttempts,intervalMs:i.FZ.intervalMs,onTimeout:()=>{console.warn(`embedToPage: Target element "${t}" not found after waiting ${i.FZ.maxAttempts*i.FZ.intervalMs/1e3} seconds`)}}).then(t=>{l(t,e,s),null==r||r()}).catch(e=>{console.error("embedToPage: Failed to embed content",e)}):console.warn(`embedToPage: Target element "${t}" not found`)},u=(e,t,s,...i)=>r(void 0,[e,t,s,...i],void 0,function*(e,t,s,i={}){if(e)try{const r=yield n(t,i);l(r,e,s)}catch(e){throw console.error("embedToPageWithWaiting: Failed to embed content",e),e}else console.warn("embedToPageWithWaiting: No content provided")})}
1,1020(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});const i=s(5608);i.__exportStar(s(2769),t),i.__exportStar(s(3160),t)},1330(e,t,s){s.d(t,{D:()=>r});var i=s(9069);const r=e=>{var t;const s=null===(t=(0,i.k)())||void 0===t?void 0:t.dataLayer;if(!s)return;const r=e.split(".");return n(s,r)},n=(e,t)=>t.reduce((e,t)=>null==e?void 0:e[t],e)},1842(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});s(5608).__exportStar(s(5773),t)},1874(e,t,s){s.d(t,{A:()=>i});const i=class{constructor(){this.getLanguage=()=>{var e;const t=e=>!("string"!=typeof e||!e)&&(!!/^[a-zA-Z0-9-]+$/.test(e)&&e);try{const s=t(null===(e=null===document||void 0===document?void 0:document.documentElement)||void 0===e?void 0:e.lang);if(!1!==s)return s}catch(e){}try{if(navigator&&navigator.language)if(2===navigator.language.length){const e=t(navigator.language);if(!1!==e)return e}else if(navigator.language.length>2){const e=t(navigator.language.split("-")[0]);if(!1!==e)return e}}catch(e){}return!1}}}},2022(e,t,s){s.d(t,{FZ:()=>o,HH:()=>r,gC:()=>i,gT:()=>n});const i={before:"before",after:"after",inside:"inside"},r=[{name:i.before,label:"Before the element"},{name:i.after,label:"After the element"},{name:i.inside,label:"Inside the element"}],n={element:"",placement:i.after,margin:{top:0,left:0,right:0,bottom:0}},o={enabled:!0,maxAttempts:60,intervalMs:500}},2145(e,t,s){s.d(t,{A:()=>n});var i=s(3831);const r=class{constructor(e){this.element=e}parseBool(e){return!!this.element&&1===this.parseNumber(e)}parseNumber(e){var t;if(!this.element)return 0;const s=null!==(t=this.element.getAttribute(`data-${e}`))&&void 0!==t?t:"0";return parseInt(s,10)||0}parseString(e){var t;return this.element&&null!==(t=this.element.getAttribute(`data-${e}`))&&void 0!==t?t:""}parseOfflineSettings(){var e;const t=window._usetifulConfig;if(!t)throw new Error("Usetiful offline configuration not found. Please ensure _usetifulConfig is properly set.");const s=null!==(e=t.offlineSettings)&&void 0!==e?e:t;if(!(s.srcFile&&s.sourceFile&&s.themePath&&s.chunkPath))throw new Error("Incomplete offline configuration. All properties (srcFile, sourceFile, themePath, chunkPath) are required.");return{srcFile:s.srcFile,sourceFile:s.sourceFile,themePath:s.themePath,chunkPath:s.chunkPath}}parseHostname(){if(!this.element)return"";if(this.element.hasAttribute("data-hostname")){return(this.element.getAttribute("data-hostname")||"").replace(/\/+$/,"")}const e=(this.element.getAttribute("src")||"").match(/(https?:\/\/[^/]+)/);return e?e[1]:""}parseScriptBasePath(){if(!this.element)return"";const e=this.element.getAttribute("src")||"";if(!e)return"";const t=this.parseHostname();if(!t)return"";const s=e.replace(t,""),i=s.lastIndexOf("/");return-1===i?"":s.substring(0,i)}parseProtocol(){const e=this.parseHostname();return e.includes("://")?e.split("://")[0]+"://":"https://"}parseShortHostname(){return this.parseHostname().replace(/^https?:\/\//,"").replace("www.","")}parseApiHostname(){if(!this.element)return"";if(this.element.hasAttribute("data-api-hostname")){return(this.element.getAttribute("data-api-hostname")||"").replace(/\/+$/,"")}return""}parseAiHostname(){const e=this.parseHostname().replace(/^https?:\/\//,""),t=this.parseProtocol();if(!e||!t)return"";return(0,i.createMicroserviceUrlResolver)("ai",e,t).resolve()}};const n=class{constructor(e){this.parser=new r(e.getScriptElement()),this.apiToken=this.parser.parseString("token"),this.orgId=this.parser.parseString("org-id"),this.offlineSettings={srcFile:"",sourceFile:"",themePath:"",chunkPath:""},this.isDebug=this.parser.parseBool("debug"),this.withDrafts=this.parser.parseBool("with-drafts"),this.onlyTips=this.parser.parseBool("only-tips"),this.previewTourId=this.parser.parseNumber("preview-tour-id"),this.previewChecklistId=this.parser.parseString("preview-checklist-id"),this.previewBannerId=this.parser.parseString("preview-banner-id"),this.previewSurveyId=this.parser.parseString("preview-survey-id"),this.isUserIdentificationRequired=this.parser.parseBool("identify-user"),this.isDev=this.parser.parseShortHostname().startsWith("dev.")||this.parser.parseShortHostname().startsWith("staging.")}}}
1,2314(e,t,s){s.d(t,{FM:()=>i,JY:()=>n,Op:()=>r,ig:()=>o});const i="deactivated",r="SPACE_DEACTIVATED",n=e=>e.status===i&&e.code===r,o=e=>{console.warn(`Usetiful: ${e.message}`)}},2418(e,t,s){s.d(t,{A:()=>o});var i=s(4970),r=s(9069),n=s(6760);const o=class{constructor(e){this.checkInterval=100,this.anonymousFallbackMs=1e4,this.slowCheckInterval=1e3,this.intervalId=null,this.timeoutId=null,this.isInitialized=!1,this.cachedSessionId=null,this.observerRegistered=!1,this.orgIdMismatchLogged=!1,this.isFullStoryInstance=!1,this.dataCaptureDisabled=!1,this.userSnapshotSettled=!1,this.isFullStoryInstance=e}init(){this.isInitialized||this.isFullStoryInstance&&(this.isInitialized=!0,this.startChecking(),this.setAnonymousFallbackTimeout())}reinitialize(){if(this.isFullStoryInstance){if(this.cachedSessionId=null,this.observerRegistered){const e=this.getFS();if(e)try{const t=e("getSession",{format:"id"});t&&(this.cachedSessionId=t,this.dataCaptureDisabled=!1)}catch(e){console.warn("FullstoryClientApi: error re-fetching session:",e)}return}this.cleanup(),this.orgIdMismatchLogged=!1,this.dataCaptureDisabled=!1,this.startChecking(),this.setAnonymousFallbackTimeout()}}destroy(){this.cleanup()}startChecking(){this.intervalId=window.setInterval(()=>{this.checkForFS()},this.checkInterval),this.checkForFS()}setAnonymousFallbackTimeout(){this.timeoutId=window.setTimeout(()=>{this.timeoutId=null,this.cachedSessionId||(this.dataCaptureDisabled=!0,window.dispatchEvent(new CustomEvent(i.yC)),this.slowDownChecking())},this.anonymousFallbackMs)}slowDownChecking(){this.observerRegistered||null===this.intervalId||(window.clearInterval(this.intervalId),this.intervalId=window.setInterval(()=>{this.checkForFS()},this.slowCheckInterval))}checkForFS(){this.getFS()&&this.setupFullStoryObserver()}setupFullStoryObserver(){const e=this.getFS();if(!this.observerRegistered&&e){null!==this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null);try{e("observe",{type:"start",callback:({sessionUrl:e})=>{this.handleFSStart(e)}})}catch(e){return void console.warn("FullStoryDetector: Error setting up FS start observer:",e)}try{e("observe",{type:"shutdown",callback:()=>{this.handleFSShutdown()}})}catch(e){console.warn("FullStoryDetector: Error setting up FS shutdown observer:",e)}try{e("observe",{type:"internal/user",callback:({user:e})=>{(0,n.ey)(e,this.getSessionIdFromFS()),this.markUserSnapshotSettled(),null===e?this.lastDispatchedIdentityUid=void 0:this.notifyIdentityUid(e.uid)}}),this.getSessionIdFromFS()&&this.reconcileFsUser()}catch(e){console.warn("FullStoryDetector: Error setting up FS user observer:",e)}this.observerRegistered=!0;try{this.getSessionIdFromFS()&&!this.cachedSessionId&&this.handleFSStart()}catch(e){console.warn("FullStoryDetector: Error checking for existing FS session at observer registration:",e)}}}reconcileFsUser(){var e;const t=this.getFS(),s=null==t?void 0:t("getConfig");(0,n.Dk)(null!==(e=null==s?void 0:s.user)&&void 0!==e?e:null,this.getSessionIdFromFS()),(null==s?void 0:s.user)&&(this.markUserSnapshotSettled(),this.notifyIdentityUid(s.user.uid))}notifyIdentityUid(e){"string"==typeof e&&0!==e.length&&e!==this.lastDispatchedIdentityUid&&(this.lastDispatchedIdentityUid=e,window.dispatchEvent(new CustomEvent(i.v3)))}markUserSnapshotSettled(){this.userSnapshotSettled||(this.userSnapshotSettled=!0,window.dispatchEvent(new CustomEvent(i.Ku)))}waitForUserSnapshot(e){return this.userSnapshotSettled?Promise.resolve():new Promise(t=>{const s=new AbortController,r=window.setTimeout(()=>{s.abort(),t()},e);window.addEventListener(i.Ku,()=>{window.clearTimeout(r),t()},{once:!0,signal:s.signal})})}getIdentityUid(){var e,t;try{const s=this.getFS(),i=null===(t=null===(e=null==s?void 0:s("getConfig"))||void 0===e?void 0:e.user)||void 0===t?void 0:t.uid;return"string"==typeof i&&i.length>0?i:void 0}catch(e){return}}getSessionIdFromFS(){var e;const t=this.getFS(),s=null==t?void 0:t("getSession",{format:"all"});return null!==(e=null==s?void 0:s.sessionId)&&void 0!==e?e:void 0}handleFSShutdown(){this.cachedSessionId=null,this.dataCaptureDisabled=!0,window.localStorage.removeItem(i.oB),(0,n.S7)(),this.userSnapshotSettled=!1,this.lastDispatchedIdentityUid=void 0,this.cleanup();const e=new CustomEvent(i.yC);window.dispatchEvent(e)}handleFSStart(e){try{const t=this.getFS();if(!t)return;let s=null;if(s=e?this.parseSessionIdFromUrl(e):t("getSession",{format:"id"}),s){this.cachedSessionId=s,this.dataCaptureDisabled=!1,this.reconcileFsUser(),this.cleanup();const e=new CustomEvent(i.IA);window.dispatchEvent(e)}else console.warn("FullStoryDetector: FS started but no session ID available")}catch(e){console.warn("FullStoryDetector: Error getting FS session:",e)}}parseSessionIdFromUrl(e){if(!e||"string"!=typeof e)return null;const t=e.match(/\/(?:client-)?session\/([^/?]+)/);if(!t)return null;try{return decodeURIComponent(t[1])}catch(e){return t[1]}}cleanup(){null!==this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null),null!==this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=null)}getSessionId(){return this.cachedSessionId}isDataCaptureDisabled(){return this.dataCaptureDisabled}getFS(){if(this.hasOrgIdMismatch()){if(!this.orgIdMismatchLogged){const e=window._fs_org;console.warn(`FS orgId (${e}) and "Guides and Surveys" orgId (${window.USETIFUL.orgId}) are different so "Guides and Surveys" will run in anonymous mode.`),this.orgIdMismatchLogged=!0,this.cleanup()}return null}return(0,r.k)()}isAvailable(){return null!==this.getFS()}hasOrgIdMismatch(){var e;if("undefined"==typeof window)return!1;const t=window._fs_org;if(t&&(null===(e=window.USETIFUL)||void 0===e?void 0:e.orgId)){return String(t).trim().toLowerCase()!==String(window.USETIFUL.orgId).trim().toLowerCase()}return!1}}},2559(e,t,s){s.d(t,{b:()=>i,z:()=>r});const i="gs_userProperties",r="gs_fsUser"},2565(e,t,s){s.d(t,{_o:()=>r,hW:()=>n,uV:()=>a,y3:()=>o});var i=s(3339);const r=e=>{const t=document.querySelector(`#u-${e}-integration`);return!!t&&"1"===t.dataset.debug},n=(e,t,s,r)=>{const{tourId:n="Unknown id",tourName:o="Unknown tour",surveyName:a="Unknown survey",surveyId:l="Unknown id"}=r||{},c=e=>e.replace("{name}",t).replace("{id}",s).replace("{tourName}",o.toString()).replace("{tourId}",n.toString()).replace("{surveyName}",a.toString()).replace("{surveyId}",l.toString()),u={[`${i.t9.button}${i.dn.click}`]:"Button '{name}' ({id}) was clicked",[`${i.t9.button}${i.dn.show}
1`]:"Button '{name}' ({id}) was displayed",[`${i.t9.tour}${i.dn.started}`]:"Tour '{name}' ({id}) was started",[`${i.t9.step}${i.dn.skip}`]:"Step '{name}' ({id}) in tour '{tourName}' ({tourId}) was skipped",[`${i.t9.step}${i.dn.show}`]:"Step '{name}' ({id}) in tour '{tourName}' ({tourId}) was displayed",[`${i.t9.step}${i.dn.interact}`]:"Step '{name}' ({id}) in tour '{tourName}' ({tourId}) was interacted",[`${i.t9.tour}${i.dn.close}`]:"Tour '{name}' ({id}) was closed",[`${i.t9.smartTips}${i.dn.show}`]:"Smart tip '{name}' ({id}) was displayed",[`${i.t9.beacon}${i.dn.show}`]:"Hotspot of smart tip '{name}' ({id}) was displayed",[`${i.t9.beacon}${i.dn.click}`]:"Hotspot of smart tip '{name}' ({id}) was clicked",[`${i.t9.checklist}${i.dn.show}`]:"Checklist '{name}' ({id}) was displayed",[`${i.t9.checklist}${i.dn.complete}`]:"Checklist '{name}' ({id}) was completed",[`${i.t9.checklist}${i.dn.dismiss}`]:"Checklist '{name}' ({id}) was dismissed",[`${i.t9.checklistItem}${i.dn.complete}`]:"Checklist item '{name}' ({id}) was completed",[`${i.t9.checklistItem}${i.dn.click}`]:"Checklist item '{name}' ({id}) was clicked",[`${i.t9.checklist}${i.dn.close}`]:"Checklist '{name}' ({id}) was closed",[`${i.t9.assistant}${i.dn.show}`]:"Assistant '{name}' ({id}) was displayed",[`${i.t9.assistant}${i.dn.search}`]:"User searched for '{name}' in the Assistant ({id})",[`${i.t9.assistant}${i.dn.close}`]:"Assistant '{name}' ({id}) was closed",[`${i.t9.assistantItem}${i.dn.click}`]:"Assistant item '{name}' ({id}) was clicked",[`${i.t9.banner}${i.dn.show}`]:"Banner '{name}' ({id}) was displayed",[`${i.t9.banner}${i.dn.close}`]:"Banner '{name}' ({id}) was closed",[`${i.t9.banner}${i.dn.click}`]:"Banner '{name}' ({id}) was clicked",[`${i.t9.article}${i.dn.show}`]:"Article '{name}' was displayed from the assistant"};if(u[e])return c(u[e]);const d=[`${i.t9.nps}${i.dn.show}`,`${i.t9.survey}${i.dn.show}`,`${i.t9.reaction}${i.dn.show}`,`${i.t9.open}${i.dn.show}`],h=[`${i.t9.nps}${i.dn.reply}`,`${i.t9.reaction}${i.dn.reply}`,`${i.t9.open}${i.dn.reply}`];return d.includes(e)?c("Question '{name}' ({id}) in survey '{surveyName}' ({surveyId}) was displayed"):h.includes(e)?c("Question '{name}' ({id}) in survey '{surveyName}' ({surveyId}) answered"):"Unknown label"},o=e=>{const[t,s]=e.split("_"),r=Object.keys(i.t9).find(e=>i.t9[e].startsWith(t+"_")),n=Object.keys(i.dn).find(e=>i.dn[e]===s||i.dn[e].includes(s));return r&&n?`${i.Gs[r]} ${i.km[n]}`:(console.error("Usetiful -> Google Analytics: Invalid event string:",e),"Unknown label")},a=e=>{if(e)return void 0!==e.value?e.value:void 0!==e.answer?e.answer:void 0}},2769(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CONTENT_TYPES=t.NOTIFICATION_MESSAGES=t.NOTIFY_TYPES=void 0,t.NOTIFY_TYPES={waitingForClick:"waitingForClick",waitingForAppear:"waitingForAppear",closeTour:"closeTour",alert:"alert",info:"info",success:"success"},t.NOTIFICATION_MESSAGES={clearWaiting:"clearWaiting",contentClosed:"contentClosed",appears:"appears",stopPreview:"stopPreview",manual:"manual",scriptReady:"scriptReady"},t.CONTENT_TYPES={tour:"tour",checklist:"checklist",banner:"banner",survey:"survey"}},3160(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.notifyManuallyToPlugin=r,t.notifyCleanerInPlugin=function(){r({type:i.NOTIFICATION_MESSAGES.clearWaiting,text:"done"})},t.notifyRunnerInPlugin=function(e,t=!0,s=""){return void 0},t.notifySurveyInPlugin=function(e,t=!0){return void 0};const i=s(2769);function r({type:e,text:t="",contentType:s=""}){0}},3339(e,t,s){s.d(t,{Gs:()=>i,dn:()=>n,km:()=>o,t9:()=>r});const i={tour:"Tour",step:"Tour step",button:"Button",smartTips:"Smart Tip",beacon:"Hotspot Beacon",checklist:"Checklist",checklistItem:"Checklist Item",assistant:"Assistant",assistantItem:"Assistant Item",banner:"Banner",article:"Article",survey:"Survey",nps:"NPS Question",open:"Open Question",choice:"Choice Question",multiple:"Multiple Question",reaction:"Reaction Survey"},r={tour:"tour_",step:"step_",button:"button_",smartTips:"tip_",beacon:"beacon_",checklist:"checklist_",checklistItem:"checklist-item_",assistant:"assistant_",assistantItem:"assistant-item_",banner:"banner_",article:"article_",survey:"survey_",nps:"nps_",open:"open_",choice:"choice_",multiple:"multiple_",reaction:"reaction_"},n={started:"start",show:"show",skip:"skip",close:"close",click:"click",complete:"complete",dismiss:"dism
1iss",search:"search",reply:"reply",showLater:"later",interact:"interact"},o={started:"Started",show:"Seen",skip:"Skipped",close:"Closed",click:"Clicked",complete:"Completed",dismiss:"Dismissed",search:"Search Used",reply:"Replied",interact:"Interacted"}},3434(e,t,s){s.d(t,{NF:()=>n,gh:()=>i,lT:()=>o});const i=(e,t,s="")=>{if(!t||!t)return;const i=s?`${t}-${s}`:t,o=(new DOMParser).parseFromString(e,"text/html").getElementsByTagName("script");for(const e of o){const t=e.innerHTML;if(n(e,i)||!t)return;try{new Function(t)}catch(e){console.error("Usetiful: Your content contains a script with following errors:",e);continue}const s=document.createElement("script");s.dataset.source="usetiful:script",s.dataset.contentId=i,s.text=r(t),document.body.appendChild(s)}},r=e=>`\n try { \n ${e} \n } catch (error) { \n console.error('Usetiful: Your content contains a script with following errors:', error); \n }`,n=(e,t)=>{const s=document.querySelectorAll(`script[data-source="usetiful:script"][data-content-id="${t}"]`);for(const t of s)if(t.innerHTML===r(e.innerHTML))return!0;return!1},o=(e,t="")=>{document.querySelectorAll(t?`script[data-source="usetiful:script"][data-content-id="${e}-${t}"]`:`script[data-source="usetiful:script"][data-content-id^="${e}"]`).forEach(e=>e.remove())}},3473(e,t,s){s.d(t,{a:()=>l,$:()=>c});var i=s(2565),r=s(444),n=s(3831);const o=class{constructor(e){this.eventData=e,this.eventId=e.usetiful_event_id,this.eventLabel=e.usetiful_event_label,this.contentName=e.usetiful_content_name,this.contentId=e.usetiful_content_id,this.category="Usetiful";const[t,s]=this.eventId.split("_");this.eventAction=s,this.eventPrefix=t,this.eventName=`${(0,i.y3)(this.eventId)} (Usetiful)`}send(){(0,i._o)(n.INTEGRATIONS.webevent)&&console.info(`Usetiful -> Web Event: ${this.eventId}`,Object.assign({event_category:this.category,event_label:this.eventLabel,event_action:this.eventAction},this.eventData));const e=Object.assign({event:this.eventName,event_action:this.eventAction,event_category:this.category,event_label:this.eventLabel,timestamp:(new Date).toISOString()},this.eventData);"undefined"!=typeof window&&(window.USETIFUL||(window.USETIFUL={}),Array.isArray(window.USETIFUL.webEvents)||(window.USETIFUL.webEvents=[]),window.USETIFUL.webEvents.push(e))}},a=e=>{const{usetiful_content_name:t,usetiful_content_id:s,usetiful_event_id:r,data:n}=e.detail,a=Object.assign(Object.assign({},e.detail),{usetiful_event_label:(0,i.hW)(r,t,s,n)});new o(a).send()},l=()=>{document.addEventListener(r.u.sendWEvent,a)},c=()=>{document.removeEventListener(r.u.sendWEvent,a)}},3639(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CONDITION_OPERATOR_OR=t.CONDITION_OPERATOR_AND=t.CONDITION_ACTIONS=t.CONDITION_ACTION_SUBMIT_AND_CLOSE=t.CONDITION_ACTION_JUMP_TO_PAGE=t.OPEN_OPERATORS=t.CHOICE_OPERATORS=t.NUMERIC_OPERATORS=t.CONDITION_OPERATOR_NOT_CONTAINS=t.CONDITION_OPERATOR_CONTAINS=t.CONDITION_OPERATOR_IS_NOT=t.CONDITION_OPERATOR_IS=t.CONDITION_OPERATOR_HIGHER=t.CONDITION_OPERATOR_LOWER=t.CONDITION_OPERATOR_EQUAL=void 0,t.CONDITION_OPERATOR_EQUAL="equal",t.CONDITION_OPERATOR_LOWER="lower",t.CONDITION_OPERATOR_HIGHER="higher",t.CONDITION_OPERATOR_IS="is",t.CONDITION_OPERATOR_IS_NOT="is_not",t.CONDITION_OPERATOR_CONTAINS="contains",t.CONDITION_OPERATOR_NOT_CONTAINS="not_contains",t.NUMERIC_OPERATORS=[{value:t.CONDITION_OPERATOR_EQUAL,label:"Equal to"},{value:t.CONDITION_OPERATOR_LOWER,label:"Lower than"},{value:t.CONDITION_OPERATOR_HIGHER,label:"Higher than"}],t.CHOICE_OPERATORS=[{value:t.CONDITION_OPERATOR_IS,label:"Is selected"},{value:t.CONDITION_OPERATOR_IS_NOT,label:"Is not selected"}],t.OPEN_OPERATORS=[{value:t.CONDITION_OPERATOR_CONTAINS,label:"Contains"},{value:t.CONDITION_OPERATOR_NOT_CONTAINS,label:"Does not contain"}],t.CONDITION_ACTION_JUMP_TO_PAGE="jump_to_page",t.CONDITION_ACTION_SUBMIT_AND_CLOSE="submit_and_close",t.CONDITION_ACTIONS=[{value:t.CONDITION_ACTION_JUMP_TO_PAGE,label:"Jump to page"},{value:t.CONDITION_ACTION_SUBMIT_AND_CLOSE,label:"Submit and close"}],t.CONDITION_OPERATOR_AND="and",t.CONDITION_OPERATOR_OR="or"}
1,3665(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MicroserviceUrlResolver=void 0,t.createMicroserviceUrlResolver=i,t.resolveMicroserviceUrl=function(e,t,s){return i(e,t,s).resolve()};class s{constructor(e){this.config=e}resolve(){const{protocol:e,hostname:t,serviceName:s}=this.config;return`${e}${t}/${s}`}}function i(e,t,i=""){return new s({serviceName:e,hostname:t,protocol:i})}t.MicroserviceUrlResolver=s},3769(e,t,s){s.d(t,{S:()=>i});const i={sendGAEvent:"usetiful:sendGAEvent"}},3831(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});s(5608).__exportStar(s(7310),t)},3876(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getThemeClasses=t.getThemeHashFromURL=t.getClasses=void 0;t.getClasses=(e,t,s=null)=>{const i=`${e}${s?`-${s}`:""}`,r=t(i,e);return Object.assign({prefix:i},r)};t.getThemeHashFromURL=e=>{var t,s,i,r;let n=null===(r=null===(i=null===(s=null===(t=null==e?void 0:e.split("/"))||void 0===t?void 0:t.pop())||void 0===s?void 0:s.split("-"))||void 0===i?void 0:i.pop())||void 0===r?void 0:r.replace(".css","");const o=n?n.indexOf("?"):0;return o>=0&&(n=null==n?void 0:n.substring(0,o)),n&&"default"!==n?n:null};t.getThemeClasses=(e,s)=>(0,t.getClasses)("uf",s,(0,t.getThemeHashFromURL)(e))},3976(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});s(5608).__exportStar(s(3876),t)},4098(e,t,s){s.d(t,{S:()=>l,T:()=>c});var i=s(2565),r=s(3769),n=s(3831);const o=class{constructor(e){this.eventData=e,this.eventId=e.usetiful_event_id,this.eventLabel=e.usetiful_event_label,this.contentName=e.usetiful_content_name,this.contentId=e.usetiful_content_id,this.category="Usetiful";const[t,s]=this.eventId.split("_");this.eventAction=s,this.eventPrefix=t,this.eventName=`${(0,i.y3)(this.eventId)} (Usetiful)`}send(){window.gtag?(window.gtag("event",this.eventName,Object.assign({event_category:this.category,event_label:this.eventLabel,event_action:this.eventAction},this.eventData)),(0,i._o)(n.INTEGRATIONS.ga)&&console.info(`Usetiful -> Google Analytics: Event sent via gtag: ${this.eventId}, `,this.eventLabel)):window.dataLayer?(window.dataLayer.push(Object.assign({event:this.eventName,event_action:this.eventAction},this.eventData)),(0,i._o)(n.INTEGRATIONS.ga)&&console.info("Usetiful -> Google Analytics: Event sent via dataLayer:",this.eventData)):console.error("No anal
1ytics method available")}},a=e=>{const{usetiful_content_name:t,usetiful_content_id:s,usetiful_event_id:r,data:n}=e.detail,a=(0,i.uV)(n),l=Object.assign(Object.assign(Object.assign({},e.detail),{usetiful_event_label:(0,i.hW)(r,t,s,n)}),void 0!==a&&{usetiful_event_value:a});new o(l).send()},l=()=>{document.addEventListener(r.S.sendGAEvent,a)},c=()=>{document.removeEventListener(r.S.sendGAEvent,a)}},4307(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CONTENT_TYPE=void 0,t.CONTENT_TYPE={tour:"tour",checklist:"checklist",assistant:"assistant",smartTips:"smartTips",survey:"survey",banner:"banner"}},4442(e,t,s){s.d(t,{A:()=>i});const i=class{constructor(e){this.scriptMode=null!=e?e:""}isStandard(){return""===this.scriptMode}isPlugin(){return"plugin"===this.scriptMode}isOffline(){return"offline"===this.scriptMode}getScriptElement(){const e=`#usetiful${this.scriptMode.length>0?this.scriptMode.charAt(0).toUpperCase()+this.scriptMode.slice(1):""}Script`,t=null===document||void 0===document?void 0:document.querySelector(e);return t||(console.warn(`Usetiful plugin: script element ${e} does not exist in dom.`),null)}}},4847(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDisplayOrderedOptions=t.shuffle=t.getRangeNumericCircleColor=void 0;t.getRangeNumericCircleColor=(e,t)=>{const s=[{pos:0,rgb:{r:255,g:68,b:68}},{pos:.25,rgb:{r:255,g:136,b:0}},{pos:.5,rgb:{r:255,g:221,b:0}},{pos:.75,rgb:{r:102,g:221,b:51}},{pos:1,rgb:{r:0,g:221,b:0}}],i=t>1?e/(t-1):0;let r=s[0],n=s[s.length-1];for(let e=0;e<s.length-1;e++)if(i>=s[e].pos&&i<=s[e+1].pos){r=s[e],n=s[e+1];break}const o=n.pos-r.pos,a=0===o?0:(i-r.pos)/o,l=Math.round(r.rgb.r+(n.rgb.r-r.rgb.r)*a),c=Math.round(r.rgb.g+(n.rgb.g-r.rgb.g)*a),u=Math.round(r.rgb.b+(n.rgb.b-r.rgb.b)*a);return`#${l.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}${u.toString(16).padStart(2,"0")}`};t.shuffle=e=>{const t=e.slice();for(let e=t.length-1;e>0;e-=1){const s=Math.floor(Math.random()*(e+1));[t[e],t[s]]=[t[s],t[e]]}return t};t.getDisplayOrderedOptions=(e,s)=>!s||!Array.isArray(e)||e.length<2?e:(0,t.shuffle)(e)},4848(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getWidthStyleCSS=void 0;t.getWidthStyleCSS=e=>e&&e.width?`max-width: 100%; width: ${e.width}px; min-width: auto;`:""},4970(e,t,s){s.d(t,{GK:()=>r,IA:()=>l,Ku:()=>c,Lp:()=>i,O8:()=>n,oB:()=>o,v3:()=>u,yC:()=>a});const i=500,r=3e3,n=5e3,o="userProperties",a="gs-data-capture-disabled",l="gs-session-ready",c="gs-fs-user-snapshot-settled",u="gs-fs-identity-uid"},5087(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AB_EXPERIMENT_TARGET_TYPE=t.USER_SEGMENT_TARGET_TYPE=t.FS_VARIABLE_TARGET_TYPE=t.VARIABLE_TARGET_TYPE=t.USER_PROPERTY_TARGET_TYPE=t.TAG_TARGET_TYPE=t.CHECKLIST_STATE_TARGET_TYPE=t.TOUR_FINISHED_TARGET_TYPE=t.LS_DATA_TARGET_TYPE=t.LANGUAGE_TARGET_TYPE=t.FS_SEGMENT_OPERATOR_IS_NOT=t.FS_SEGMENT_OPERATOR_IS=t.FS_SEGMENT_TARGET_TYPE=t.USER_SEGMENT_OPERATOR_IS_NOT=t.USER_SEGMENT_OPERATOR_IS=t.isMultiValueOperator=t.isExistsOperator=t.USER_PROPERTY_OPERATOR_NOT_EXISTS=t.USER_PROPERTY_OPERATOR_EXISTS=t.USER_PROPERTY_OPERATOR_IS_NOT_ONE_OF=t.USER_PROPERTY_OPERATOR_IS_ONE_OF=t.USER_PROPERTY_OPERATOR_HIGHER=t.USER_PROPERTY_OPERATOR_LOWER=t.USER_PROPERTY_OPERATOR_NOT_CONTAINS=t.USER_PROPERTY_OPERATOR_CONTAINS=t.USER_PROPERTY_OPERATOR_IS_NOT=t.USER_PROPERTY_OPERATOR_IS=t.TAG_OPERATOR_NOT_EXISTS=t.TAG_OPERATOR_EXISTS=t.TAG_OPERATOR_IS_NOT_ONE_OF=t.TAG_OPERATOR_IS_ONE_OF=t.TAG_OPERATOR_HIGHER=t.TAG_OPERATOR_LOWER=t.TAG_OPERATOR_NOT_CONTAINS=t.TAG_OPERATOR_CONTAINS=t.TAG_OPERATOR_IS_NOT=t.TAG_OPERATOR_IS=t.DEVICE_TARGET_TYPE=t.DEVICE_TYPE_TABLET=t.DEVICE_TYPE_MOBILE=t.DEVICE_TYPE_DESKTOP=t.DEVICE_TYPE_ALL_TYPES=t.URL_ELEMENT_ATTR_VALUE_TYPE=t.URL_ELEMENT_TEXT_TYPE=t.URL_ELEMENT_TYPE_NEGATIVE=t.URL_ELEMENT_TYPE=t.URL_ADDRESS_TYPE=t.URL_ADDRESS_EXACT=t.URL_ADDRESS_NOT_CONTAIN=t.URL_ADDRESS_SIMPLE=void 0,t.FIELD_TYPE_AUTOCOMPLETE_MODES=t.FIELD_TYPE_AUTOCOMPLETE=t.REFERRER_URL_CONTAINS=t.REFERRER_URL_EXACT=t.CAT_DEVICE_CONDITIONS=t.CAT_AUDIENCE_CONDITIONS=t.CAT_PAGE_ELEMENT_CONDITIONS=t.CAT_PAGE_CONDITIONS=t.SYSTEMS=t.OS_LINUX=t.OS_ANDROID=t.OS_IOS=t.OS_MAC=t.OS_WIN=t.OS_TYPE_ALL_TYPES=t.OS_TARGET_TYPE=t.BROWSERS=t.BROWSER_TYPE_BLINK=t.BROWSER_TYPE_OPERA=t.BROWSER_TYPE_SAFARI=t.BROWSER_TYPE_EDGE=t.BROWSER_TYPE_IE=t.BROWSER_TYPE_FIREFOX=t.BROWSER_TYPE_CHROME=t.BROWSER_TYPE_ALL_TYPES=t.BROWSER_TARGET_TYPE=t.FS_SEGMENT_OPERATORS=t.USER_SEGMENT_OPERATORS=t.getUserPropertyOperatorsByType=t.USER_PROPERTY_OPERATORS_DATE=t.USER_PROPERTY_OPERATORS_BOOLEAN=t.USER_PROPERTY_OPERATORS_NUMERIC=t.USER_PROPERTY_OPERATORS_STRING=t.USER_PROPERTY_OPERATORS=t.VARIABLE_OPERATORS=t.TAG_OPERATORS=t.DEVICES_TYPES=void 0,t.URL_ADDRESS_SIMPLE="address-simple",t.URL_ADDRESS_NOT_CONTAIN="address-not-contain",t.URL_ADDRESS_EXACT="address-exact",t.URL_ADDRESS_TYPE="address",t.URL_ELEMENT_TYPE="element",t.URL_ELEMENT_TYPE_NEGATIVE="not-element",t.URL_ELEMENT_TEXT_TYPE="element-text",t.URL_ELEMENT_ATTR_VALUE_TYPE="element-attr",t.DEVICE_TYPE_ALL_TYPES="all-types",t.DEVICE_TYPE_DESKTOP="desktop",t.DEVICE_TYPE_MOBILE="mobile",t.DEVICE_TYPE_TABLET="tablet",t.DEVICE_TARGET_TYPE="target-device",t.TAG_OPERATOR_IS="tag-exact",t.TAG_OPERATOR_IS_NOT="tag-is-not",t.TAG_OPERATOR_CONTAINS="tag-contain",t.TAG_OPERATOR_NOT_CONTAINS="tag-not-contain",t.TAG_OPERATOR_LOWER="tag-lower",t.TAG_OPERATOR_HIGHER="tag-higher",t.TAG_OPERATOR_IS_ONE_OF="tag-is-one-of",t.TAG_OPERATOR_IS_NOT_ONE_OF="tag-is-not-one-of",t.TAG_OPERATOR_EXISTS="tag-exists",t.TAG_OPERATOR_NOT_EXISTS="tag-not-exists",t.USER_PROPERTY_OPERATOR_IS="user-property-exact",t.USER_PROPERTY_OPERATOR_IS_NOT="user-property-is-not",t.USER_PROPERTY_OPERATOR_CONTAINS="user-property-contain",t.USER_PROPERTY_OPERATOR_NOT_CONTAINS="user-property-not-contain",t.USER_PROPERTY_OPERATOR_LOWER="user-property-lower",t.USER_PROPERTY_OPERATOR_HIGHER="user-property-higher",t.USER_PROPERTY_OPERATOR_IS_ONE_OF="user-property-is-one-of",t.USER_PROPERTY_OPERATOR_IS_NOT_ONE_OF="user-property-is-not-one-of",t.USER_PROPERTY_OPERATOR_EXISTS="user-property-exists",t.USER_PROPERTY_OPERATOR_NOT_EXISTS="user-property-not-exists";t.isExistsOperator=e=>e===t.TAG_OPERATOR_EXISTS||e===t.TAG_OPERATOR_NOT_EXISTS||e===t.USER_PROPERTY_OPERATOR_EXISTS||e===t.USER_PROPERTY_OPERATOR_NOT_EXISTS;t.isMultiValueOperator=e=>e===t.USER_PROPERTY_OPERATOR_IS_ONE_OF||e===t.USER_PROPERTY_OPERATOR_IS_NOT_ONE_OF,t.USER_SEGMENT_OPERATOR_IS="segment-exact",t.USER_SEGMENT_OPERATOR_IS_NOT="segment-is-not",t.FS_SEGMENT_TARGET_TYPE="fs-segment",t.FS_SEGMENT_OPERATOR_IS="fs-segment-exact",t.FS_SEGMENT_OPERATOR_IS_NOT="fs-segment-is-not",t.LANGUAGE_TARGET_TYPE="audience-language",t.LS_DATA_TARGET_TYPE="device-ls-data",t.TOUR_FINISHED_TARGET_TYPE="device-tour-finished",t.CHECKLIST_STATE_TARGET_TYPE="checklist-state",t.TAG_TARGET_TYPE="tag",t.USER_PROPERTY_TARGET_TYPE="user-property",t.VARIABLE_TARGET_TYPE="variable",t.FS_VARIABLE_TARGET_TYPE="fs-variable",t.USER_SEGMENT_TARGET_TYPE="user-segment",t.AB_EXPERIMENT_TARGET_TYPE="ab-test",t.DEVICES_TYPES=[{value:t.DEVICE_TYPE_ALL_TYPES,label:"All types"},{value:t.DEVICE_TYPE_DESKTOP,label:"Desktop"},{value:t.DEVICE_TYPE_MOBILE,label:"Mobile"},{value:t.DEVICE_TYPE_TABLET,label:"Tablet"}],t.TAG_OPERATORS=[{value:t.TAG_OPERATOR_IS,label:"is"},{value:t.TAG_OPERATOR_IS_NOT,label:"is not"},{value:t.TAG_OPERATOR_CONTAINS,label:"contains"},{value:t.TAG_OPERATOR_NOT_CONTAINS,label:"doesn't contain"},{value:t.TAG_OPERATOR_LOWER,label:"lower than"},{value:t.TAG_OPERATOR_HIGHER,label:"higher than"},{value:t.TAG_OPERATOR_IS_ONE_OF,label:"is one of"},{value:t.TAG_OPERATOR_IS_NOT_ONE_OF,label:"is not one of"},{value:t.TAG_OPERATOR_EXISTS,label:"exists"},{value:t.TAG_OPERATOR_NOT_EXISTS,label:"doesn't exist"}],t.VARIABLE_OPERATORS=[{value:t.TAG_OPERATOR_IS,label:"is"},{value:t.TAG_OPERATOR_IS_NOT,label:"is not"},{value:t.TAG_OPERATOR_CONTAINS,label:"contains"},{value:t.TAG_OPERATOR_NOT_CONTAINS,label:"doesn't contain"},{value:t.TAG_OPERATOR_LOWER,label:"lower than"},{value:t.TAG_OPERATOR_HIGHER,label:"higher than"},{value:t.TAG_OPERATOR_IS_ONE_OF,label:"is one of"},{value:t.TAG_OPERATOR_IS_NOT_ONE_OF,label:"is not one of"}],t.USER_PROPERTY_OPERATORS=[{value:t.USER_PROPERTY_OPERATOR_IS,label:"is"},{value:t.USER_PROPERTY_OPERATOR_IS_NOT,label:"is not"},{value:t.USER_PROPERTY_OPERATOR_CONTAINS,label:"contains"},{value:t.USER_PROPERTY_OPERATOR_NOT_CONTAINS,label:"doesn't contain"},{value:t.USER_PROPERTY_OPERATOR_LOWER,label:"lower than"},{value:t.USER_PROPERTY_OPERATOR_HIGHER,label:"higher than"},{value:t.USER_PROPERTY_OPERATOR_IS_ONE_OF,label:"is one of"},{value:t.USER_PROPERTY_OPERATOR_IS_NOT_ONE_OF,label:"is not one of"},{value:t.USER_PROPERTY_OPERATOR_EXISTS,label:"exists"},{value:t.USER_PROPERTY_OPERATOR_NOT_EXISTS,label:"doesn't exist"}],t.USER_PROPERTY_OPERATORS_STRING=[{value:t.USER_PROPERTY_OPERATOR_IS,label:"is"},{value:t.USER_PROPERTY_OPERATOR_IS_NOT,label:"is not"},{value:t.USER_PROPERTY_OPERATOR_CONTAINS,label:"contains"},{value:t.USER_PROPERTY_OPERATOR_NOT_CONTAINS,label:"doesn't contain"},{value:t.USER_PROPERTY_OPERATOR_IS_ONE_OF,label:"is one of"},{value:t.USER_PROPERTY_OPERATOR_IS_NOT_ONE_OF,label:"is not one of"},{value:t.USER_PROPERTY_OPERATOR_EXISTS,label:"exists"},{value:t.USER_PROPERTY_OPERATOR_NOT_EXISTS,label:"doesn't exist"}],t.USER_PROPERTY_OPERATORS_NUMERIC=[{value:t.USER_PROPERTY_OPERATOR_IS,label:"is"},{value:t.USER_PROPERTY_OPERATOR_IS_NOT,label:"is not"},{value:t.USER_PROPERTY_OPERATOR_LOWER,label:"lower than"},{value:t.USER_PROPERTY_OPERATOR_HIGHER,label:"higher than"},{value:t.USER_PROPERTY_OPERATOR_IS_ONE_OF,label:"is one of"},{value:t.USER_PROPERTY_OPERATOR_IS_NOT_ONE_OF,label:"is not one of"},{value:t.USER_PROPERTY_OPERATOR_EXISTS,label:"exists"},{value:t.USER_PROPERTY_OPERATOR_NOT_EXISTS,label:"doesn't exist"}],t.USER_PROPERTY_OPERATORS_BOOLEAN=[{value:t.USER_PROPERTY_OPERATOR_IS,label:"is"},{value:t.USER_PROPERTY_OPERATOR_IS_NOT,label:"is not"},{value:t.USER_PROPERTY_OPERATOR_EXISTS,label:"exists"},{value:t.USER_PROPERTY_OPERATOR_NOT_EXISTS,label:"doesn't exist"}],t.USER_PROPERTY_OPERATORS_DATE=[{value:t.USER_PROPERTY_OPERATOR_IS,label:"is"},{value:t.USER_PROPERTY_OPERATOR_IS_NOT,label:"is not"},{value:t.USER_PROPERTY_OPERATOR_LOWER,label:"before"},{value:t.USER_PROPERTY_OPERATOR_HIGHER,label:"after"},{value:t.USER_PROPERTY_OPERATOR_EXISTS,label:"exists"},{value:t.USER_PROPERTY_OPERATOR_NOT_EXISTS,label:"doesn't exist"}];var s;t.getUserPropertyOperatorsByType=e=>{if(!e)return t.USER_PROPERTY_OPERATORS;const s=e.toLowerCase();return"str"===s||"strs"===s||"string"===s?t.USER_PROPERTY_OPERATORS_STRING:"int"===s||"ints"===s||"real"===s||"reals"===s||"number"===s?t.USER_PROPERTY_OPERATORS_NUMERIC:"bool"===s||"bools"===s||"boolean"===s?t.USER_PROPERTY_OPERATORS_BOOLEAN:"date"===s||"dates"===s||"datetime"===s?t.USER_PROPERTY_OPERATORS_DATE:t.USER_PROPERTY_OPERATORS},t.USER_SEGMENT_OPERATORS=[{value:t.USER_SEGMENT_OPERATOR_IS,label:"is"},{value:t.USER_SEGMENT_OPERATOR_IS_NOT,label:"is not"}],t.FS_SEGMENT_OPERATORS=[{value:t.FS_SEGMENT_OPERATOR_IS,label:"is"},{value:t.FS_SEGMENT_OPERATOR_IS_NOT,label:"is not"}],t.BROWSER_TARGET_TYPE="audience-browser",t.BROWSER_TYPE_ALL_TYPES="all-browsers",t.BROWSER_TYPE_CHROME="chrome",t.BROWSER_TYPE_FIREFOX="firefox",t.BROWSER_TYPE_IE="ie",t.BROWSER_TYPE_EDGE="edge",t.BROWSER_TYPE_SAFARI="safari",t.BROWSER_TYPE_OPERA="opera",t.BROWSER_TYPE_BLINK="blink",t.BROWSERS=[{value:t.BROW
1SER_TYPE_ALL_TYPES,label:"Any browser"},{value:t.BROWSER_TYPE_CHROME,label:"Google Chrome"},{value:t.BROWSER_TYPE_FIREFOX,label:"Firefox"},{value:t.BROWSER_TYPE_IE,label:"Internet Explorer"},{value:t.BROWSER_TYPE_EDGE,label:"Microsoft Edge"},{value:t.BROWSER_TYPE_SAFARI,label:"Safari"},{value:t.BROWSER_TYPE_OPERA,label:"Opera"},{value:t.BROWSER_TYPE_BLINK,label:"Blink"}],t.OS_TARGET_TYPE="audience-os",t.OS_TYPE_ALL_TYPES="all-systems",t.OS_WIN="windows",t.OS_MAC="macos",t.OS_IOS="ios",t.OS_ANDROID="android",t.OS_LINUX="linux",t.SYSTEMS=[{value:t.OS_TYPE_ALL_TYPES,label:"Any operating system"},{value:t.OS_WIN,label:"Windows"},{value:t.OS_MAC,label:"macOS"},{value:t.OS_IOS,label:"iOS"},{value:t.OS_ANDROID,label:"Android"},{value:t.OS_LINUX,label:"Linux"}],t.CAT_PAGE_CONDITIONS="page-conditions",t.CAT_PAGE_ELEMENT_CONDITIONS="page-element-consitions",t.CAT_AUDIENCE_CONDITIONS="audience-conditions",t.CAT_DEVICE_CONDITIONS="device-conditions",t.REFERRER_URL_EXACT="referrer-exact",t.REFERRER_URL_CONTAINS="referrer-contains",t.FIELD_TYPE_AUTOCOMPLETE="autocomplete",function(e){e.TAG="tag",e.USER_PROPERTY="user-property",e.USER_PROPERTY_VALUE="user-property-value",e.EXPERIMENT="experiment",e.SEGMENT="segment",e.FS_SEGMENT="fs-segment"}(s||(t.FIELD_TYPE_AUTOCOMPLETE_MODES=s={}))},5236(e,t){var s,i;Object.defineProperty(t,"__esModule",{value:!0}),t.RANGE_STAR_PATH=t.DEFAULT_CHOICE_UI_MODE=t.DEFAULT_RANGE_UI_MODE=t.ChoiceQuestionUiMode=t.RangeQuestionUiMode=t.EMOJI_QUESTION_MAX_OPTIONS=t.EMOJI_QUESTION_MIN_OPTIONS=t.QUESTION_EMOJI=t.QUESTION_RANGE=t.QUESTION_MULTIPLE=t.QUESTION_RATING=t.QUESTION_OPEN=t.QUESTION_NPS=t.QUESTION_CHOICE=t.SurveyAlignment=t.PAGE_MODAL=t.PAGE_SLIDEOUT=void 0,t.PAGE_SLIDEOUT="slideout",t.PAGE_MODAL="modal",t.SurveyAlignment={OverPage:"over-page",Embedded:"embedded"},t.QUESTION_CHOICE="choice",t.QUESTION_NPS="nps",t.QUESTION_OPEN="open",t.QUESTION_RATING="rating",t.QUESTION_MULTIPLE="multiple",t.QUESTION_RANGE="range",t.QUESTION_EMOJI="emoji",t.EMOJI_QUESTION_MIN_OPTIONS=2,t.EMOJI_QUESTION_MAX_OPTIONS=10,function(e){e.CONNECTED_SQUARE="connected_square",e.STAR="star",e.NUMERIC_CIRCLE="numeric_circle"}(s||(t.RangeQuestionUiMode=s={})),function(e){e.RADIO="radio",e.DROPDOWN="dropdown"}(i||(t.ChoiceQuestionUiMode=i={})),t.DEFAULT_RANGE_UI_MODE=s.CONNECTED_SQUARE,t.DEFAULT_CHOICE_UI_MODE=i.RADIO,t.RANGE_STAR_PATH="M9.09476 1.92853C9.45469 1.16175 10.5453 1.16175 10.9052 1.92853L12.8633 6.09999C13.005 6.40186 13.2878 6.61323 13.6174 6.66361L18.0764 7.34503C18.8809 7.46798 19.2095 8.4493 18.6411 9.03188L15.3524 12.4028C15.1308 12.63 15.0301 12.9488 15.0812 13.2621L15.8485 17.9674C15.9829 18.7913 15.1082 19.4074 14.3777 19.0035L10.4839 16.8505C10.1828 16.6841 9.81723 16.6841 9.51613 16.8505L5.6223 19.0035C4.89175 19.4074 4.01711 18.7913 4.15146 17.9674L4.91878 13.2621C4.96986 12.9488 4.86922 12.63 4.6476 12.4028L1.3589 9.03188C0.790537 8.4493 1.11906 7.46798 1.92362 7.34503L6.38255 6.66361C6.71219 6.61323 6.99503 6.40186 7.13672 6.09999L9.09476 1.92853Z"},5375(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.PARAM_PRODUCT_SURVEY_NAME=t.PROGRESSBAR_OPTIONS=t.EVENT_PAGE_CHANGE=t.PLANS=t.CLICK_ACTION=t.SHOW_ACTION=t.CLOSE_ACTION=t.REPORT_TYPE_SURVEY_PAGE=t.REPORT_TYPE_BANNER=t.STYLE_CUSTOM=t.STYLE_SECONDARY=t.STYLE_PRIMARY=t.ENTITY_EVENTS=void 0;const i=s(5608);t.ENTITY_EVENTS={progressorDataChange:"usetiful:progressorDataChange",reportProgress:"usetiful:reportProgress",reportAnswer:"usetiful:reportAnswer",setDisplay:"usetiful:setDisplay",initContentLoader:"usetiful:initContentLoader",toursEvents:"usetiful:toursEvent",tourEvents:"usetiful:tourEvent",placeInitialTriggers:"usetiful:placeInitialTriggers",goToNextStep:"usetiful:goToNextStep",moveToStep:"usetiful: moveToStep",pauseSync:"usetiful:pauseSync",resumeSync:"usetiful:resumeSync",setSurveyRunningInTour:"usetiful:setSurveyRunningInTour"},t.STYLE_PRIMARY="Primary",t.STYLE_SECONDARY="Secondary",t.STYLE_CUSTOM="Custom",t.REPORT_TYPE_BANNER="banner",t.REPORT_TYPE_SURVEY_PAGE="surveyPage",t.CLOSE_ACTION="close",t.SHOW_ACTION="show",t.CLICK_ACTION="click",t.PLANS={free:"free",plus:"plus",premium:"premium",enterprise:"enterprise",enterprise_offline:"enterprise_offline"},t.EVENT_PAGE_CHANGE="onPageChange",t.PROGRESSBAR_OPTIONS=Object.freeze({horizontalProgressBar:{title:"Horizontal Progress Bar",type:1},dots:{title:"Dots",type:2},stepNumber:{title:"Step Number",type:3},circleProgressBar:{title:"Circle Progress Bar",type:4}}),t.PARAM_PRODUCT_SURVEY_NAME="showProductSurvey",i.__exportStar(s(436),t),i.__exportStar(s(6215),t),i.__exportStar(s(3639),t)}
vendor: 6,367 bytes, line 1
1,5492(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});s(5608).__exportStar(s(9816),t)},5608(e,t,s){s.r(t),s.d(t,{__addDisposableResource:()=>U,__assign:()=>n,__asyncDelegator:()=>R,__asyncGenerator:()=>I,__asyncValues:()=>w,__await:()=>O,__awaiter:()=>p,__classPrivateFieldGet:()=>N,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>k,__createBinding:()=>T,__decorate:()=>a,__disposeResources:()=>$,__esDecorate:()=>c,__exportStar:()=>S,__extends:()=>r,__generator:()=>m,__importDefault:()=>L,__importStar:()=>C,__makeTemplateObject:()=>b,__metadata:()=>g,__param:()=>l,__propKey:()=>d,__read:()=>v,__rest:()=>o,__rewriteRelativeImportExtension:()=>x,__runInitializers:()=>u,__setFunctionName:()=>h,__spread:()=>E,__spreadArray:()=>y,__spreadArrays:()=>_,__values:()=>f,default:()=>B});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])},i(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}var n=function(){return n=Object.assign||function(e){for(var t,s=1,i=arguments.length;s<i;s++)for(var r in t=arguments[s])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};function o(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(s[i[r]]=e[i[r]])}return s}function a(e,t,s,i){var r,n=arguments.length,o=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,s,o):r(t,s))||o);return n>3&&o&&Object.defineProperty(t,s,o),o}function l(e,t){return function(s,i){t(s,i,e)}}function c(e,t,s,i,r,n){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,l=i.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?i.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),h=!1,g=s.length-1;g>=0;g--){var p={};for(var m in i)p[m]="access"===m?{}:i[m];for(var m in i.access)p.access[m]=i.access[m];p.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");n.push(o(e||null))};var T=(0,s[g])("accessor"===l?{get:d.get,set:d.set}:d[c],p);if("accessor"===l){if(void 0===T)continue;if(null===T||"object"!=typeof T)throw new TypeError("Object expected");(a=o(T.get))&&(d.get=a),(a=o(T.set))&&(d.set=a),(a=o(T.init))&&r.unshift(a)}else(a=o(T))&&("field"===l?r.unshift(a):d[c]=a)}u&&Object.defineProperty(u,i.name,d),h=!0}function u(e,t,s){for(var i=arguments.length>2,r=0;r<t.length;r++)s=i?t[r].call(e,s):t[r].call(e);return i?s:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,s){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:s?"".concat(s," ",t):t})}function g(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})}function m(e,t){var s,i,r,n={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(n=0)),n;)try{if(s=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(!(r=n.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){n=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(6===a[0]&&n.label<r[1]){n.label=r[1],r=a;break}if(r&&n.label<r[2]){n.label=r[2],n.ops.push(a);break}r[2]&&n.ops.pop(),n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e],i=0}finally{s=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var T=Object.create?function(e,t,s,i){void 0===i&&(i=s);var r=Object.getOwnPropertyDescriptor(t,s);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,i,r)}:function(e,t,s,i){void 0===i&&(i=s),e[i]=t[s]};function S(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||T(t,e,s)}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,s=t&&e[t],i=0;if(s)return s.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var s="function"==typeof Symbol&&e[Symbol.iterator];if(!s)return e;var i,r,n=s.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(s=n.return)&&s.call(n)}finally{if(r)throw r.error}}return o}function E(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function _(){for(var e=0,t=0,s=arguments.length;t<s;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<s;t++)for(var n=arguments[t],o=0,a=n.length;o<a;o++,r++)i[r]=n[o];return i}function y(e,t,s){if(s||2===arguments.length)for(var i,r=0,n=t.length;r<n;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}
1function O(e){return this instanceof O?(this.v=e,this):new O(e)}function I(e,t,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=s.apply(e,t||[]),n=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),i[Symbol.asyncIterator]=function(){return this},i;function o(e,t){r[e]&&(i[e]=function(t){return new Promise(function(s,i){n.push([e,t,s,i])>1||a(e,t)})},t&&(i[e]=t(i[e])))}function a(e,t){try{(s=r[e](t)).value instanceof O?Promise.resolve(s.value.v).then(l,c):u(n[0][2],s)}catch(e){u(n[0][3],e)}var s}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),n.shift(),n.length&&a(n[0][0],n[0][1])}}function R(e){var t,s;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(s=!s)?{value:O(e[i](t)),done:!1}:r?r(t):t}:r}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,s=e[Symbol.asyncIterator];return s?s.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=e[s]&&function(t){return new Promise(function(i,r){(function(e,t,s,i){Promise.resolve(i).then(function(t){e({value:t,done:s})},t)})(i,r,(t=e[s](t)).done,t.value)})}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var A=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},P=function(e){return P=Object.getOwnPropertyNames||function(e){var t=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[t.length]=s);return t},P(e)};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s=P(e),i=0;i<s.length;i++)"default"!==s[i]&&T(t,e,s[i]);return A(t,e),t}function L(e){return e&&e.__esModule?e:{default:e}}function N(e,t,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(e):i?i.value:t.get(e)}function k(e,t,s,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,s):r?r.value=s:t.set(e,s),s}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function U(e,t,s){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var i,r;if(s){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],s&&(r=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");r&&(i=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:i,async:s})}else s&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,s){var i=new Error(s);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function $(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var s,i=0;return function r(){for(;s=e.stack.pop();)try{if(!s.async&&1===i)return i=0,e.stack.push(s),Promise.resolve().then(r);if(s.dispose){var n=s.dispose.call(s.value);if(s.async)return i|=2,Promise.resolve(n).then(r,function(e){return t(e),r()})}else i|=1}catch(e){t(e)}if(1===i)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function x(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,s,i,r,n){return s?t?".jsx":".js":!i||r&&n?i+r+"."+n.toLowerCase()+"js":e}):e}const B={__extends:r,__assign:n,__rest:o,__decorate:a,__param:l,__esDecorate:c,__runInitializer
1s:u,__propKey:d,__setFunctionName:h,__metadata:g,__awaiter:p,__generator:m,__createBinding:T,__exportStar:S,__values:f,__read:v,__spread:E,__spreadArrays:_,__spreadArray:y,__await:O,__asyncGenerator:I,__asyncDelegator:R,__asyncValues:w,__makeTemplateObject:b,__importStar:C,__importDefault:L,__classPrivateFieldGet:N,__classPrivateFieldSet:k,__classPrivateFieldIn:D,__addDisposableResource:U,__disposeResources:$,__rewriteRelativeImportExtension:x}},5628(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5773(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getCookie=void 0,t.setCookie=function(e,t,s){let i="";if(s){const e=new Date;e.setTime(e.getTime()+24*s*60*60*1e3),i=`; expires=${e.toUTCString()}`}const r="https:"===window.location.protocol;document.cookie=`${e}=${t||""}; expires=${i}; path=/${r?"; Secure":""}`};t.getCookie=e=>{const t=`${e}=`,s=document.cookie.split(";");for(let e=0;e<s.length;e+=1){let i=s[e];for(;" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}},6215(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSettingsValue=t.SPACE_SETTINGS=void 0,t.SPACE_SETTINGS={realTimeData:"realTimeData",contentPriority:"contentPriority",priorityAcrossEntities:"priorityAcrossEntities",contentLimit:"contentLimit",fullstoryExcludeSurveyInputs:"fullstoryExcludeSurveyInputs"};t.getSettingsValue=(e,t)=>{var s;return(null===(s=null==e?void 0:e.find(e=>e.name===t))||void 0===s?void 0:s.value)||!1}},6395(e,t,s){s.d(t,{F:()=>c,q:()=>u});var i=s(8702),r=s(2565),n=s(3831),o=s(9069);const a=class{send(e={}){const{properties:t}=e.detail;if(!t.FSData)return;const s=(0,o.k)();s?s("trackEvent",t.FSData,"guides-and-surveys"):(0,r._o)(n.INTEGRATIONS.fullstory)&&console.warn("Usetiful: Fullstory isn't initialized so the event can't be sent:",t.FSData)}},l=e=>{(new a).send(e)},c=()=>{document.addEventListener(i.J.send,l)},u=()=>{document.removeEventListener(i.J.send,l)}},6712(e,t,s){s.d(t,{BI:()=>u,J0:()=>h,aq:()=>g,eC:()=>l,ep:()=>d,rk:()=>c,zL:()=>p});var i=s(3831),r=s(3769),n=s(444),o=s(8702),a=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(s[i[r]]=e[i[r]])}return s};const l=(e,t)=>{const s=new CustomEvent(i.ENTITY_EVENTS.setDisplay,{detail:{type:e,id:t}});document.dispatchEvent(s)},c=()=>
1{const e=new CustomEvent(i.ENTITY_EVENTS.initContentLoader);document.dispatchEvent(e)},u=e=>{let t=e.name;e.tourId?t=i.ENTITY_EVENTS.tourEvents:e.isToursContext&&(t=i.ENTITY_EVENTS.toursEvents);const s=new CustomEvent(t,{detail:{event:e.name,tourId:e.tourId,isToursContext:e.isToursContext,props:e.details,stepId:e.stepId,actionBtn:e.actionBtn}});return document.dispatchEvent(s),s},d=e=>{h(e),p(e);const{id:t}=e,s=a(e,["id"]);g(t,s)},h=e=>{const t=new CustomEvent(r.S.sendGAEvent,{detail:{usetiful_event_id:e.id,usetiful_content_id:e.contentId,usetiful_content_name:e.contentName,data:e.data}});document.dispatchEvent(t)},g=(e,t)=>{const s=new CustomEvent(o.J.send,{detail:{name:e,properties:t}});document.dispatchEvent(s)},p=e=>{const t=new CustomEvent(n.u.sendWEvent,{detail:{usetiful_event_id:e.id,usetiful_content_id:e.contentId,usetiful_content_name:e.contentName,data:e.data}});document.dispatchEvent(t)}},6760(e,t,s){s.d(t,{Dk:()=>d,S7:()=>l,ey:()=>u,k$:()=>a,yt:()=>h});var i=s(203),r=s(2559),n=s(8413);function o(e){const t=(0,i.getFromLocalStorage)(e);return"object"==typeof t&&t?t:null}function a(){var e;return Object.assign(Object.assign({},o(r.b)),null===(e=o(r.z))||void 0===e?void 0:e.properties)}function l(){(0,i.removeFromLocalStorage)(r.z)}function c(e,t){const s=o(r.z),n=(null==s?void 0:s.sessionId)===t;(0,i.saveToLocalStorage)(r.z,{sessionId:t,properties:n?Object.assign(Object.assign({},s.properties),e.properties):e.properties},!1)}function u(e,t){e&&t?c(e,t):l()}function d(e,t){if(e&&t)return void c(e,t);const s=o(r.z);t&&(null==s?void 0:s.sessionId)!==t&&l()}const h=e=>{const t=Object.assign({},e);for(const[s,i]of Object.entries(e))for(const e of n.K7)if(s.endsWith(e)){const r=s.slice(0,-e.length);r in t||(t[r]=i);break}return t}},6822(e,t,s){s.d(t,{s:()=>i});const i=(e,t=null,s=null)=>{if(document&&null===document.querySelector(`#${e}`)){const i=document.createElement("script");i.id=e,null!==t&&(i.src=t),null!==s&&(i.type="text/javascript",i.innerHTML=s);const r=null===document||void 0===document?void 0:document.querySelector("body");return r&&r.appendChild(i),i}return document.querySelector(`#${e}`)}},6920(e,t,s){s.d(t,{AJ:()=>o,BR:()=>n,Hh:()=>l,gD:()=>i,lG:()=>r,tZ:()=>a});const i="uf_tags",r="gs_last_tag_updatedAt",n=["autoSegment","customSegments","abExperiments"],o=/^question_.+/,a=/^\d+-survey$/,l=e=>"string"==typeof e&&(o.test(e)||a.test(e))},7228(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isHidden=void 0;t.isHidden=e=>{if(!e)return!0;let t=e;for(;t;){const s=window.getComputedStyle(t);if("none"===s.display||"visible"!==s.visibility||"0"===s.opacity)return!0;if(!(t!==e&&"hidden"!==s.overflow||0!==t.offsetWidth&&0!==t.getClientRects().length))return!0;t=t.parentElement}return!1}},7276(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportError=t.ERROR_NAMES=t.ENTITY_EVENTS=t.REPORT_TYPE_ERROR=t.REPORT_TYPE_STEP=void 0,t.REPORT_TYPE_STEP="step",t.REPORT_TYPE_ERROR="error",t.ENTITY_EVENTS={toursEvents:"usetiful:toursEvent",tourEvents:"usetiful:tourEvent",checklistDismissed:"usetiful:checklist.dismissed",checklistCompleted:"usetiful:checklist.completed",tourClosed:"usetiful:tour.closed",setDisplay:"usetiful:setDisplay",initContentLoader:"usetiful:initContentLoader",placeAllButton:"usetiful:placeAllButton",placeInitialTriggers:"usetiful:placeInitialTriggers",initAvailableTours:"usetiful:initAvailableTours",setCurrentTour:"usetiful:setCurrentTour",updateButtonTours:"usetiful:updateButtonTours",listenForRedirect:"usetiful:listenForRedirect",stopListeningForRedirect:"usetiful:stopListeningForRedirect",goToNextStep:"usetiful:goToNextStep",goToPreviousStep:"usetiful:goToPreviousStep",closeTour:"usetiful:closeTour",setTourTriggerToLocalStorage:"usetiful:setTourTriggerToLocalStorage",moveToStep:"usetiful:moveToStep",setProgress:"usetiful:setProgress",placeNextStepTrigger:"usetiful:placeNextStepTrigger",tipHidden:"usetiful:tipHidden",reportProgress:"usetiful:reportProgress",pauseContentLoader:"usetiful:pauseContentLoader",unpauseContentLoader:"usetiful:unpauseContentLoader",reportFormAnswer:"usetiful:reportFormAnswer",reportError:"usetiful:reportError",progressorDataChange:"usetiful:progressorDataChange"},t.ERROR_NAMES={conflict:"Conflict",missingElement:"MissingElement",userId:"UserIdIssue",duplicateScript:"DuplicateScript",conflictWarning:"ConflictWarning",progressorTimeout:"ProgressorTimeout",watermarkHidden:"WatermarkHidden",localStorageWrite:"LocalStorageWriteFailed"};t.reportError=({name:e,text:s,code:i=0,id:r,type:n=t.REPORT_TYPE_STEP})=>{const o=new CustomEvent(t.ENTITY_EVENTS.reportError,{detail:{reportType:t.REPORT_TYPE_ERROR,name:e,text:s,code:i,url:window.location.href,entityId:r,entityType:n}});document.dispatchEvent(o)}}
1,7310(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});const i=s(5608);i.__exportStar(s(3976),t),i.__exportStar(s(8821),t),i.__exportStar(s(1842),t),i.__exportStar(s(9751),t),i.__exportStar(s(5375),t),i.__exportStar(s(5236),t),i.__exportStar(s(4307),t),i.__exportStar(s(5492),t),i.__exportStar(s(8431),t),i.__exportStar(s(4847),t),i.__exportStar(s(832),t),i.__exportStar(s(1020),t)},7551(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Template=t.UF_CLASSES_PREFIX=void 0;const i=s(7276),r=s(3976),n=s(4307),o=s(7228),a=s(9619),l=s(9494),c=s(4848),u=s(9425);t.UF_CLASSES_PREFIX="uf";class d{constructor(e){this.setTheme=e=>{this.themeClasses=(0,r.getThemeClasses)(e,this.classDefinition)},this.createButton=e=>{const{color:t="Primary",label:s,className:i,attributes:r={},elementType:n="button",onClick:o,href:a="#"}=e,l=document.createElement(n);return"button"===n&&(l.type="button"),"a"===n&&(l.role="button",l.setAttribute("href",a)),l.innerHTML=(0,u.replaceTags)(s),l.classList.add(this.themeClasses.button),this.themeClasses[`button${t}`]&&l.classList.add(this.themeClasses[`button${t}`]),i&&(Array.isArray(i)?l.classList.add(...i):l.classList.add(...i.trim().split(" "))),Object.keys(r).forEach(e=>{l.setAttribute(e,r[e])}),"function"==typeof o&&l.addEventListener("click",e=>{o(e)}),this.appendButtonDataAttributes(l),l},this.createRadioOrCheckbox=e=>{const{id:t,name:s,value:i,label:r,className:n,attributes:o={},checked:a=!1,onChange:l,type:c}=e,u=document.createElement("div");u.classList.add(this.themeClasses.answer),n&&u.classList.add(...n.trim().split(" "));const d=document.createElement("input");d.type=c,d.id=t,d.name=s,d.value=i,d.checked=a,Object.keys(o).forEach(e=>{d.setAttribute(e,o[e])}),"function"==typeof l&&d.addEventListener("change",e=>{l(e)});const h=document.createElement("label");return h.setAttribute("for",t),h.textContent=r,u.appendChild(d),u.appendChild(h),u},this.createWrapper=e=>{const t=document.createElement("div");return e&&(Array.isArray(e)?t.classList.add(...e):t.classList.add(e)),t},this.createActions=e=>{const{actions:s,alignment:i}=e,r=document.createElement("div");return r.classList.add(this.themeClasses.actions),r.classList.add(`${t.UF_CLASSES_PREFIX}-${i}`),s.forEach(e=>{r.appendChild(e)}),r},this.createWatermarkBadge=(e=l.WATERMARK_TYPES.tour)=>{const t=document.createElement("div");t.classList.add(this.themeClasses.badgeFree);const s=document.createElement("a");return s.innerHTML=(0,a.getWatermarkText)(e),s.setAttribute("href",`https://www.usetiful.com/?utm_source=${e}_badge`),t.appendChild(s),setTimeout(()=>{(0,o.isHidden)(s)&&(0,i.reportError)({name:i.ERROR_NAMES.watermarkHidden})},100),t},this.createCloseButton=(e,t=!1)=>{let s;s=e.contentType===n.CONTENT_TYPE.tour?this.themeClasses.tourCloseButton:e.survey?this.themeClasses.surveyCloseButton:this.themeClasses.buttonClose;const i=this.createButton({label:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2 14L14 2" stroke="black" stroke-width="2" stroke-linecap="round"></path>\n<path d="M2 2L14 14" stroke="black" stroke-width="2" stroke-linecap="round"></path>\n</svg>',className:[this.themeClasses.buttonClose,s]});i.classList.remove(this.themeClasses.button),i.ariaLabel="Close";let r=()=>{};return r=e.contentType===n.CONTENT_TYPE.tour?()=>e.closeTour():e.contentType===n.CONTENT_TYPE.survey?()=>{var s,i,r;const n=null!==(r=null===(i=null===(s=e.surveys)||void 0===s?void 0:s.currentState)||void 0===i?void 0:i.pageIndex)&&void 0!==r?r:0;e.close(n,t)}:()=>e.close(),i.addEventListener("click",r),i},this.appendButtonDataAttributes=e=>{e.classList.contains(this.themeClasses.buttonMain)?e.dataset.ufButton="button-main":e.classList.contains(this.themeClasses.buttonClose)?e.dataset.ufButton="close":e.classList.contains(this.themeClasses.buttonPrimary)?e.dataset.ufButton="button-primary":e.classList.contains(this.themeClasses.button)&&(e.dataset.ufButton="button")},this.createContentWrapper=(e,t,s,i="")=>{e.innerHTML=(0,u.replaceTags)(t)||"",s&&(0,u.executeScriptFromContent)((0,u.replaceTags)(t),s,i)},this.destructElement=e=>{const t=document.querySelectorAll(`.${this.themeClasses.prefix}-${e}`);
1null==t||t.forEach(e=>{var t;null===(t=e.parentElement)||void 0===t||t.removeChild(e)})},this.themeClasses=(0,r.getThemeClasses)(e,this.classDefinition)}classDefinition(e,t){return{overlay:`${t}-overlay`,actions:`${e}-actions`,button:`${e}-button`,buttonPrimary:`${e}-button-primary`,buttonSecondary:`${e}-button-secondary`,buttonMain:`${e}-button-main`,badgeFree:`${t}-free-badge`,visible:`${t}-visible`,modal:`${e}-modal`,modalInner:`${e}-modal-inner`,slideout:`${e}-slideout`,slideoutInner:`${e}-slideout-inner`,buttonClose:`${e}-close-button`,content:`${e}-content`,alignCenter:`${t}-align-center`,alignLeft:`${t}-align-left`,alignRight:`${t}-align-right`,contentWithoutTitle:`${e}-content--without-title`,textLeft:`${e}-text-left`,textCenter:`${e}-text-center`,textRight:`${e}-text-right`,feedback:`${e}-feedback`,feedbackTitle:`${e}-feedback-title`,feedbackTextarea:`${e}-feedback-textarea`,npsTitles:`${e}-feedback-nps-titles`,buttonGroup:`${e}-button-group`,surveyButtonGroup:`${e}-survey-button-group`,surveyButton:`${e}-survey-button`,emojiOptions:`${e}-emoji-options`,emojiOption:`${e}-emoji-option`,emojiOptionSelected:`${e}-emoji-option-selected`,error:`${t}-error`,errorShake:`${t}-error-shake`,surveyPage:`${e}-survey-page`,checklistContent:`${e}-checklist-content`,assistantContent:`${e}-assistant-content`,tourCloseButton:`${e}-tour-close-button`,surveyCloseButton:`${e}-survey-close-button`,formQuestion:`${e}-form-question`,formFieldset:`${e}-form-fieldset`,answer:`${e}-answer`,scrollable:`${e}-scrollable`,rangeStar:`${e}-range-star`,rangeStarSelected:`${e}-range-star--selected`,rangeNumericCircle:`${e}-range-numeric-circle`,rangeNumericCircleSelected:`${e}-range-numeric-circle--selected`,surveyButtonGroupCenter:`${e}-survey-button-group--center`,surveyButtonGroupBetween:`${e}-survey-button-group--between`,formSelect:`${e}-form-select`,title:`${e}-title`,dotProgress:`${e}-dot-progress`,dotProgressRight:`${e}-dot-progress--right`,dotProgressItem:`${e}-dot-progress__item`,dotProgressActiveItem:`${e}-dot-progress__item--active`,numberProgress:`${e}-number-progress`,numberProgressRight:`${e}-number-progress--right`,circleProgress:`${e}-circle-progress`,circleProgressRight:`${e}-circle-progress--right`,circleProgressInner:`${e}-circle-progress__inner`,circleProgressBar:`${e}-circle-progress__bar`,circleProgressBarLeft:`${e}-circle-progress__bar--left`,circleProgressBarRight:`${e}-circle-progress__bar--right`,circleProgressProgress:`${e}-circle-progress__progress`}}setCustomWidth(e,t){e&&e.width&&t.setAttribute("style",(0,c.getWidthStyleCSS)(e))}setCustomClasses(e,t){if(e&&e.classes){e.classes.split(" ").forEach(e=>{e&&t.classList.add(e)})}}}t.Template=d,t.default=d},8008(e,t,s){s.d(t,{OB:()=>i,Y7:()=>a,g0:()=>c,oU:()=>l});const i="uf_tab_id",r=e=>{try{window.sessionStorage.setItem(i,e)}catch(e){}},n=()=>{const e=(()=>{try{return window.sessionStorage.getItem(i)||null}catch(e){return null}})()||Math.random().toString(36).substring(2);return r(e),e};let o=n();const a=()=>o||(o=n(),o),l=e=>{o=e,r(e)},c=()=>o},8338(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});s(5608).__exportStar(s(5087),t)},8413(e,t,s){s.d(t,{K7:()=>r,PB:()=>i,Zb:()=>n});const i=["_strs","_ints","_bools","_reals","_dates"],r=["_bool","_str","_real","_int","_date"],n=[...r,...i]},8431(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});s(5608).__exportStar(s(3665),t)},8615(e,t,s){s.d(t,{El:()=>c,Ep:()=>g,ev:()=>h,g:()=>r,he:()=>u,iK:()=>d,tK:()=>n});var i=s(3831);const r="uf_content_ownership",n=3e4,o=()=>{const e=(0,i.getFromLocalStorage)(r);return Array.isArray(e)?e:[]},a=e=>{try{localStorage.setItem(r,JSON.stringify(e))}catch(e){(0,i.reportLocalStorageWriteFailure)(r,e)}},l=(e,t,s)=>e.contentType===t&&e.contentId===String(s),c=(e,t,s,i)=>{const r=!(null==i?void 0:i.requireClaim);if(!s)return r;const a=o().find(s=>l(s,e,t));return!a||(e=>{const t=new Date(e.updatedAt).getTime();return Number.isNaN(t)||Date.now()-t>n})(a)?r:a.tabId===s},u=(e,t,s,i)=>{if(!s)return!0;if(!(null==i?void 0:i.force)&&!c(e,t,s))return!1;const r=o(),n=r.findIndex(s=>l(s,e,t)),u={contentType:e,contentId:String(t),tabId:s,updatedAt:(new Date).toISOString()};return n>=0?r[n]=u:r.push(u),a(r),!0},d=(e,t,s)=>{if(!s)return;const i=o(),r=i.filter(i=>!(l(i,e,t)&&i.tabId===s));r.length!==i.length&&a(r)},h=e=>{const t=o(),s=t.filter(t=>t.tabId!==e);s.length!==t.length&&a(s)},g=e=>{const t=o();let s=!1;const i=(new Date).toISOString(),r=t.map(t=>t.tabId!==e?t:(s=!0,Object.assign(Object.assign({},t),{updatedAt:i})));s&&a(r)}}
1,8702(e,t,s){s.d(t,{J:()=>i,g:()=>r});const i={send:"usetiful:sendFSEvent"},r={guideStateChanged:"Guide State Changed",guideStepSeen:"Guide Step Seen",guideStepInteracted:"Guide Step Interacted",surveyStateChanged:"Survey State Changed",surveyPageSeen:"Survey Page Seen",questionAnswered:"Question Answered",checklistStateChanged:"Checklist State Changed",checklistItemSeen:"Checklist Item Seen",checklistItemClicked:"Checklist Item Clicked",checklistItemStateChanged:"Checklist Item State Changed",smartTipStateChanged:"Smart Tip State Changed",bannerStateChanged:"Banner State Changed",bannerClicked:"Banner Clicked"}},8821(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Template=void 0;const i=s(5608);var r=s(7551);Object.defineProperty(t,"Template",{enumerable:!0,get:function(){return i.__importDefault(r).default}}),i.__exportStar(s(7551),t),i.__exportStar(s(5628),t),i.__exportStar(s(4848),t)},9069(e,t,s){s.d(t,{k:()=>i});const i=()=>{if("undefined"==typeof window)return null;const e=window._fs_namespace||"FS",t=window[e];return"function"==typeof t?t:null}},9190(e,t,s){s.d(t,{d:()=>i});const i={Button:"Button",Link:"Link"}},9425(e,t,s){s.r(t),s.d(t,{ARRAY_TYPE_SUFFIXES:()=>h.PB,CONTENT_OWNERSHIP_STORAGE_KEY:()=>p.g,CONTENT_OWNER_STALE_MS:()=>p.tK,CONTENT_PREFIX:()=>O.t9,ContentResolver:()=>m.A,DEACTIVATION_CODE:()=>l.Op,DEACTIVATION_STATUS:()=>l.FM,DEFAULT_EMBED_SETTINGS:()=>y.gT,DEFAULT_EMBED_WAIT_CONFIG:()=>y.FZ,DERIVED_LIVE_TAG_KEYS:()=>E.BR,EMBED_PLACEMENT:()=>y.gC,EVENT_ACTIONS:()=>O.dn,EVENT_LABEL_ACTIONS:()=>O.km,EVENT_LABEL_CONTENT:()=>O.Gs,EnvironmentDetector:()=>f.A,FEEDBACK_ANSWER_TAG_PATTERN:()=>E.tZ,FS_EVENT:()=>A.J,FS_EVENT_DATA_CAPTURE_DISABLED:()=>k.yC,FS_EVENT_IDENTITY_UID:()=>k.v3,FS_EVENT_NAMES:()=>A.g,FS_EVENT_SESSION_READY:()=>k.IA,FS_EVENT_USER_SNAPSHOT_SETTLED:()=>k.Ku,GA_EVENT:()=>R.S,INTERACTION_ELEMENT_TYPE:()=>P.d,LOCAL_STORAGE_SYNC_INTERVAL_MS:()=>k.Lp,LOCAL_STORAGE_SYNC_PROGRESSOR_DATA_TTL_MS:()=>k.O8,LOCAL_STORAGE_SYNC_PROGRESSOR_TIMEOUT_MS:()=>k.GK,LocalStorageSynchronizer:()=>c.P,PLACEMENT_OPTIONS:()=>y.HH,PROGRESSOR_LABEL_USER_PROPERTIES:()=>k.oB,SINGLE_TYPE_SUFFIXES:()=>h.K7,SURVEY_ANSWER_TAG_PATTERN:()=>E.AJ,Settings:()=>T.A,TAB_ID_STORAGE_KEY:()=>g.OB,THROTTLING_EVENTS:()=>N.w,TYPE_SUFFIXES:()=>h.Zb,TokenSecurity:()=>S.A,WEB_EVENT:()=>L.u,callWhenElementInViewport:()=>r.Y,claimContentOwnership:()=>p.he,clearFsUser:()=>u.S7,createScript:()=>i.s,embedToPage:()=>_.iq,embedToPageWithWaiting:()=>_.RR,executeScriptFromContent:()=>o.gh,expandUserPropertiesWithSuffixes:()=>u.yt,fsUserLSKey:()=>d.z,getCurrentTabId:()=>g.g0,getEventLabel:()=>n.hW,getEventName:()=>n.y3,getEventValue:()=>n.uV,getFSValue:()=>w.D,getLocalLastTagUpdatedAt:()=>v.M3,getOrCreateTabId:()=>g.Y7,getTagValue:()=>v.Gb,getUserPropertiesFromLS:()=>u.k$,handleSpaceDeactivation:()=>l.ig,initContentLoader:()=>a.rk,isDebug:()=>n._o,isEmbeddedContent:()=>_.o$,isInternalAnswerTagKey:()=>E.Hh,isScriptExisting:()=>o.NF,isServerTagSnapshotNewer:()=>v.tB,isSpaceDeactivated:()=>l.JY,isTabContentOwner:()=>p.El,lastTagUpdatedAtLSKey:()=>E.lG,loadTagsFromLS:()=>v.XN,placeFSEventListener:()=>b.F,placeGAEventListener:()=>I.S,placeWebEventListener:()=>C.a,reconcileFsUser:()=>u.Dk,refreshContentOwnershipForTab:()=>p.Ep,releaseContentOwnership:()=>p.iK,releaseContentOwnershipForTab:()=>p.ev,removeAddedScripts:()=>o.lT,removeFSEventListener:()=>b.q,removeGAEventListener:()=>I.T,removeSpecialCharacters:()=>v.SS,removeTagValue:()=>v.wZ,removeWebEventListener:()=>C.$,replaceTags:()=>v.wQ,replaceTagsFromServer:()=>v.Rw,sendEvent:()=>a.BI,sendFSEvent:()=>a.aq,sendGAEvent:()=>a.J0,sendIntegrationEvents:()=>a.ep,sendWebEvent:()=>a.zL,setCurrentTabId:()=>g.oU,setDisplayContent:()=>a.eC,setLocalLastTagUpdatedAt:()=>v.ys,tagsLSKey:()=>E.gD,updateFsUser:()=>u.ey,updateTagValue:()=>v.Pb,updateTagsFromLS:()=>v.Kc,userPropertiesLSKey:()=>d.b,waitForElement:()=>_.xk,waitForEmbedTarget:()=>_.VM});var i=s(6822),r=s(83),n=s(2565),o=s(3434),a=s(6712),l=s(2314),c=s(301),u=s(6760),d=s(2559),h=s(8413),g=s(8008),p=s(8615),m=s(4442),T=s(2145),S=s(226),f=s(1874),v=s(9900),E=s(6920),_=s(900),y=s(2022),O=s(3339),I=s(4098),R=s(3769),w=s(1330),b=s(6395),A=s(8702),P=s(9190),C=s(3473),L=s(444),N=s(722),k=s(4970)}
1,9494(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WATERMARK_TYPES=t.POWERED_BANNER_BY_TEXT=t.POWERED_CHECKLIST_BY_TEXT=t.POWERED_BY_TEXT=void 0,t.POWERED_BY_TEXT="ð Digital adoption by Usetiful",t.POWERED_CHECKLIST_BY_TEXT="ð Onboarding checklist by Usetiful",t.POWERED_BANNER_BY_TEXT="ð No-code banners by Usetiful",t.WATERMARK_TYPES={tour:"tour",checklist:"checklist",banner:"banner",smartTips:"smart-tips",assistant:"assistant"}},9619(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.getWatermarkText=void 0;const i=s(9494);t.getWatermarkText=e=>{let t=i.POWERED_BY_TEXT;switch(e){case i.WATERMARK_TYPES.checklist:t=i.POWERED_CHECKLIST_BY_TEXT;break;case i.WATERMARK_TYPES.banner:t=i.POWERED_BANNER_BY_TEXT}return t}},9751(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});const i=s(5608);i.__exportStar(s(203),t),i.__exportStar(s(714),t)},9816(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.INTEGRATIONS=void 0;const i=s(5375);t.INTEGRATIONS={ga:"ga",hubspot:"hubspot",fullstory:"fullstory",intercom:"intercom",webevent:"webevent"},t.config={[t.INTEGRATIONS.ga]:{plans:[i.PLANS.plus,i.PLANS.premium,i.PLANS.enterprise,i.PLANS.enterprise_offline]},[t.INTEGRATIONS.hubspot]:{plans:[i.PLANS.premium,i.PLANS.enterprise,i.PLANS.enterprise_offline]},[t.INTEGRATIONS.fullstory]:{plans:[i.PLANS.premium,i.PLANS.enterprise,i.PLANS.enterprise_offline]},[t.INTEGRATIONS.intercom]:{plans:[i.PLANS.premium,i.PLANS.enterprise,i.PLANS.enterprise_offline]},[t.INTEGRATIONS.webevent]:{plans:[i.PLANS.premium,i.PLANS.enterprise,i.PLANS.enterprise_offline]}}},9900(e,t,s){s.d(t,{Gb:()=>p,Kc:()=>g,M3:()=>S,Pb:()=>m,Rw:()=>E,SS:()=>d,XN:()=>h,tB:()=>v,wQ:()=>c,wZ:()=>T,ys:()=>f});var i=s(9069),r=s(6920),n=s(6760);const o=/\{([a-zA-Z0-9_.-]+)(?:\|([^}]*))?\}/g,a=e=>null!=e&&""!==e,l=(e,t)=>{let s=e;return t&&"string"==typeof s?s=d(s):"string"==typeof s&&(s=function(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}(s)),String(s)},c=(e,t=!1)=>{if("string"!=typeof e)return"";const s=[];if("undefined"!=typeof window){if(window.usetifulTags&&s.push(window.usetifulTags),Array.isArray(window.dataLayer)){const e=Object.assign({},...window.dataLayer);s.push(e)}const e=(0,i.k)();(null==e?void 0:e.dataLayer)&&"object"==typeof e.dataLayer&&s.push(e.dataLayer)}let r=null;const c=(0,n.k$)();return Object.keys(c).length>0&&(r=(0,n.yt)(c)),e=e.replace(o,(e,i,n)=>{const o=void 0!==n,c=((e,t,s)=>{if(t){const s=u(t,e);if(a(s))return s}for(const t of s){const s=u(t,e);if(a(s))return s}})(i,r,s);return a(c)?l(c,t):o?l(n,t):`{${i}}`}),e},u=(e,t)=>t.split(".").reduce((e,t)=>null==e?void 0:e[t],e);const d=e=>e.replace(/['"]/g,""),h=()=>{const e=localStorage.getItem(r.gD);if(e){const t=JSON.parse(e);if(window.usetifulTags||(window.usetifulTags={}),t&&"object"==typeof t){let e=!1;for(const s of r.BR)Object.prototype.hasOwnProperty.call(t,s)&&void 0!==window.usetifulTags[s]&&(delete t[s],e=!0);if(e)try{localStorage.setItem(r.gD,JSON.stringify(t))}catch(e){}}Object.assign(window.usetifulTags,t)}},g=()=>{window.usetifulTags||(window.usetifulTags={});const e=localStorage.getItem(r.gD);if(e){const t=new Set(r.BR),s=JSON.parse(e);Object.entries(s).forEach(e=>{const[s,i]=e;if(!t.has(s))if(window.usetifulTags[s]&&window.usetifulTags[s]!==i)window.usetifulTags[s]=i;else if(!window.usetifulTags[s]){const e={};e[s]=i,Object.assign(window.usetifulTags,e)}})}},p=e=>{if(!e)return null;const t=localStorage.getItem(r.gD);if(t){const s=JSON.parse(t);if(Array.isArray(s))return null;if(void 0!==s[e]&&null!==s[e])return s[e]}return null},m=(e,t)=>{if(!e)return;if((e=>null==e||0===e.toString().length)(t))return void T(e);const s=localStorage.getItem(r.gD);if(s){let i=JSON.parse(s);Array.isArray(i)&&(i={}),void 0!==i[e]&&t===i[e]||(i[e]=t,window.localStorage.setItem(r.gD,JSON.stringify(i)),g())}else{const s={};s[e]=t,window.localStorage.setItem(r.gD,JSON.stringify(s)),g()}},T=e=>{const t=localStorage.getItem(r.gD);if(t){const s=JSON.parse(t);null!==s[e]&&(delete s[e],window.localStorage.setItem(r.gD,JSON.stringify(s)))}window.usetifulTags&&Object.prototype.hasOwnProperty.call(window.usetifulTags,e)&&delete window.usetifulTags[e]},S=()=>{try{return window.localStorage.getItem(r.lG)}catch(e){return null}},f=e=>{try{window.localStorage.setItem(r.lG,e)}catch(e){}},v=e=>{if(!e)return!1;const t=S();if(!t)return!0;const s=Date.parse(e),i=Date.parse(t);return Number.isNaN(s)||Number.isNaN(i)?e!==t:s>i},E=e=>{const t=new Set(r.BR),s={};Object.entries(null!=e?e:{}
1).forEach(([e,i])=>{t.has(e)||(s[e]=i)});let i={};try{const e=window.localStorage.getItem(r.gD);if(e){const t=JSON.parse(e);t&&"object"==typeof t&&!Array.isArray(t)&&(i=t)}}catch(e){}try{window.localStorage.setItem(r.gD,JSON.stringify(s))}catch(e){}window.usetifulTags||(window.usetifulTags={});const n=window.usetifulTags;Object.keys(i).forEach(e=>{t.has(e)||Object.prototype.hasOwnProperty.call(s,e)||delete n[e]}),Object.entries(s).forEach(([e,t])=>{n[e]=t})}}},t={};function s(i){var r=t[i];if(void 0!==r)return r.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};const i="replyToSurvey",r="custom",n="tour",o="inProgress",a="closed",l="ufTag-",c="EXAMPLE_USER_ID",u="embedded",d="pulsatingPoint",h="questionMark",g="infoPoint",p={tour:"tour",checklist:"checklist",assistant:"assistant",smartTips:"smartTips",survey:"survey",banner:"banner"},m=Object.values(p),T="usetiful:checklist.completed",S="usetiful:listenForRedirect",f="usetiful:stopListeningForRedirect",v="usetiful:goToNextStep",E="usetiful:showLaterStep",_="usetiful:goToPreviousStep",y="usetiful:closeTour",O="usetiful:setTourTriggerToLocalStorage",I="usetiful:moveToStep",R="usetiful:reportProgress",w="usetiful:pauseContentLoader",b="usetiful:unpauseContentLoader",A="usetiful:reportFormAnswer",P="usetiful:reportAnswer",C="usetiful:reportAssistant",L="usetiful:reportError",N="usetiful:progressorDataChange",k="usetiful:recovedTourProgress",D="usetiful:goToUrl",U="usetiful:pauseSync",F="usetiful:basicApiReady",$="buttonCompleteEvent";var x=s(9900),B=s(4442),M=s(2145),G=s(1874);const Y="showSmartTip",j="showStep",W="click",V="show",H="redirect",q="delay",J="condition",K="complete",z="dismiss",X="triggerEvent",Q="pageAction",Z="pageLeft",ee="closeTour",te="showLaterAction",se="showAssistant",ie="Progressor",re="Reports",ne="gs_userProperties",oe="gs_fsSegments",ae="uf_reports_to_send",le="uf_tours_",ce="POST",ue="step",de="checklist",he="checklistItem",ge="autoSegment",pe="tags",me="lastTagUpdatedAt",Te="report_tags",Se="abExperiments",fe="customSegments",ve="form",Ee="survey",_e="error",ye="2026.09.23.111544-031f6a14715",Oe=new B.A(!1),{apiToken:Ie,orgId:Re,offlineSettings:we,withDrafts:be,onlyTips:Ae,previewTourId:Pe,previewChecklistId:Ce,previewBannerId:Le,previewSurveyId:Ne,isDebug:ke,isDev:De,parser:Ue,isUserIdentificationRequired:Fe}=new M.A(Oe),{getLanguage:$e}=new G.A,xe=null!==window.localStorage.getItem("pauseProductionTour"),Be=Pe>0,Me=void 0!==Ce&&""!==Ce,Ge=void 0!==Le&&""!==Le,Ye=void 0!==Ne&&""!==Ne,je={};let We="";We="/data.json",be&&(je.withDrafts=ke.toString()),Ae&&(je.onlyTips=ke.toString()),Be&&(je.previewTourId=null==Pe?void 0:Pe.toString()),Me&&(je.previewChecklistId=null==Ce?void 0:Ce.toString()),Ge&&(je.previewBannerId=null==Le?void 0:Le.toString()),Ye&&(je.previewSurveyId=null==Ne?void 0:Ne.toString());const Ve="tours",He="uf_smartTips",qe="checklistsRedirects",Je="checklistsDismiss",Ke="uf_completed",ze="uf_triggerTour",Xe="uf_surveys",Qe="uf_survey_answers",Ze="uf_throttling",et="uf_banners",tt="uf_tags",st="usetiful_pending_save",it=Ue.parseHostname(),rt=(Ue.parseShortHostname(),Ue.parseProtocol()),nt=(Ue.parseAiHostname(),Ue.parseScriptBasePath()),ot=Ue.parseApiHostname()||it||"",at=(lt=ot)&&""!==lt.trim()?lt.replace(/^https?:\/\//,"").replace(/\/+$/,""):"";var lt;const ct=(e=>{if(!e||""===e.trim())return"";try{return`${new URL(e).protocol}//`}catch(e){return""}})(ot)||rt,ut=ot!==it&&""!==ot,dt=[Ke,Ve,qe,Je,tt,et,He,Xe,Qe,Ze],ht=[Ke,Qe],gt=[Ve,Ke,et],pt=[...[Ve,qe,He,Je,et,Xe,Qe,Ze,tt],...[ze,"uf_triggerChecklist","uf_triggerBanner",Ke,"uf_manualRedirectURL"],ne,oe],mt=(e,t=!1)=>{ke&&(t?console.info(`%c Usetiful: ${e}`,"background: #387DFF; color: #edf3ff"):console.info(`Usetiful: ${e}`))},Tt=e=>{ke&&console.warn(`Usetiful: ${e}`)},St=e=>{mt(`Cleaning ${e.length}
1 intervals...`),e.forEach(e=>{clearInterval(e)})};class ft{constructor(){this.services=new Map}clear(){this.services.clear()}findServices(e){return e.map(e=>null===e?null:this.get(e))}registerClass(e,t,s=[]){if(null===this.get(e)){const i=this.findServices(s);this.services.set(e,new t(...i))}}registerConstant(e,t){null===this.get(e)&&this.services.set(e,t)}registerFunction(e,t,s=[]){if(null===this.get(e)){const i=this.findServices(s);this.services.set(e,t(...i))}}get(e){var t;return null!==(t=this.services.get(e))&&void 0!==t?t:null}}class vt{static getContainer(e="main"){return this.containers.has(e)||this.containers.set(e,new ft),this.containers.get(e)}static getDefaultContainer(){return this.getContainer("main")}static createContainer(e){console.warn("Creating new container with name:",e);const t=new ft;return this.containers.set(e,t),t}static removeContainer(e){return this.containers.delete(e)}static cleanup(){this.containers.forEach(e=>e.clear()),this.containers.clear()}}vt.containers=new Map;var Et=s(1842);const _t="usetiful-visitor-ident";const yt=class{constructor(){this.cookieLifeTimeDays=365,this.isNewVisitor=!1,this.getIdent=()=>{let e=(0,Et.getCookie)(_t);return e||(e=this.generateUUID(),this.isNewVisitor=!0,(0,Et.setCookie)(_t,e,this.cookieLifeTimeDays)),e},this.generateUUID=()=>{let e=(new Date).getTime(),t=performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,s=>{let i=16*Math.random();return e>0?(i=(e+i)%16|0,e=Math.floor(e/16)):(i=(t+i)%16|0,t=Math.floor(t/16)),("x"===s?i:i?3:8).toString(16)})}}};var Ot=s(3831),It=s(3665);let Rt=null,wt=null;function bt(){return!wt&&Rt&&(wt=new Rt(!0),wt.init(),window.gs_isFullStoryInstance=wt.isFullStoryInstance),wt}Rt=s(2418).A;var At=function(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};let Pt=null;const Ct=()=>{try{if("undefined"!=typeof crypto){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();if("function"==typeof crypto.getRandomValues){const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;const t=Array.from(e,e=>e.toString(16).padStart(2,"0")).join("");return[t.slice(0,8),t.slice(8,12),t.slice(12,16),t.slice(16,20),t.slice(20)].join("-")}}}catch(e){}const e="undefined"!=typeof performance?performance.now().toString(36).replace(".",""):"";return`rep_${Date.now().toString(36)}_${e}_${Math.random().toString(36).slice(2,9)}`},Lt=()=>(Pt||(Pt=(0,It.createMicroserviceUrlResolver)("reporter",at,ct)),Pt.resolve()),Nt={[Y]:"show",[j]:"show",[te]:"showLater",[V]:"show",[W]:"click",[ee]:"close",[Z]:"pageLeft",[Ot.CLOSE_ACTION]:"close",[H]:"redirect",[q]:"delay",[J]:"condition",[X]:"triggerEvent",[Q]:"pageAction",[K]:"complete",[z]:"dismiss",[se]:"view"};function kt({type:e,id:t,action:s,actionAt:i,visitorIdent:r,sessionId:n,tags:o,debug:a,isDevKit:l}){return{id:t,type:e,event:Nt[s],eventAt:"string"==typeof i?i:null==i?void 0:i.toISOString(),visitorIdent:r,sessionId:n,isPreview:a,tags:o,isDevKit:l}}function Dt({entityId:e,tags:t,questionType:s,question:i,answer:r,formId:n}){return{formId:n,questionType:s,question:i,answer:r,tags:t,entityId:e,entityType:ue}}function Ut({questionId:e,questionType:t,optionValue:s,optionValues:i,answerText:r,tags:n,visitorIdent:o,userId:a,sessionId:l,respondedAt:c}){return{questionId:e,questionType:t,optionValue:s,optionValues:i,answerText:r,tags:n,visitorIdent:o,userId:a,sessionId:l,respondedAt:c}}function Ft({assistantId:e,actionAt:t}){return[{assistantId:e,event:"view",eventAt:"string"==typeof t?t:null==t?void 0:t.toISOString()}]}function $t({entityId:e,entityType:t,tags:s,name:i,text:r,code:n,url:o,spaceId:a,visitorIdent:l,userId:c}){return{spaceId:a,text:r,name:i,code:n,url:o,tags:s,entityId:void 0!==e?e.toString():void 0,entityType:t,visitorIdent:l,userId:c}}const xt=(e,t)=>
1{if(!e||!t)return!1;const s=new Date(e).getTime(),i=new Date(t).getTime();return Math.abs(s-i)<=5e3};const Bt=class{constructor(e,t,s){this.data=[],this.batchSize=10,this.minBatchSize=1,this.maxBatchSize=10,this.nextPossibleSend=0,this.minSendInterval=1e4,this.maxSendInterval=6e4,this.sendIntervalId=null,this.maxPayloadSize=61440,this.batchSizeReduced=!1,this.isSending=!1,this.syncToLS=()=>{window.localStorage.setItem(ae,JSON.stringify(this.data))},this.checkLSSync=()=>{if(0===this.data.length)return;const e=window.localStorage.getItem(ae);null!==e&&""!==e||(this.data=[])},this.clearData=e=>{void 0===e?this.data=[]:this.data.splice(0,e),this.syncToLS()},this.getLSData=()=>{try{const e=window.localStorage.getItem(ae);return(e?JSON.parse(e):[]).filter(e=>e.reportType||"tour"!==e.type).map(e=>{var t;return Object.assign(Object.assign({},e),{_id:null!==(t=e._id)&&void 0!==t?t:Ct()})})}catch(e){return console.warn("Failed to parse report data from localStorage",e),[]}},this.getVisitorIdent=()=>this.visitor.getIdent(),this.add=(e,...t)=>At(this,[e,...t],void 0,function*(e,t=!1){var s,i,r;this.checkLSSync();const n=yield this.usetifulTags.getTags();let o=Object.assign(Object.assign({},e),{_id:Ct(),visitorIdent:this.visitorIdent,sessionId:null!==(i=null===(s=bt())||void 0===s?void 0:s.getSessionId())&&void 0!==i?i:null,userId:null!==(r=this.usetifulTags.getUserId())&&void 0!==r?r:void 0,debug:!!this.debug,tags:n});o=e.reportType===Ee?Object.assign(Object.assign({},o),{respondedAt:(new Date).toISOString()}):Object.assign(Object.assign({},o),{actionAt:(new Date).toISOString()});const a=this.data.some(e=>function(e,t){var s,i,r;if(null==e||null==t||e.reportType!==t.reportType)return!1;switch(e.reportType){case Ee:{const{surveyId:s,questionId:i,visitorIdent:r,optionValue:n,optionValues:o,answerText:a,sessionId:l,respondedAt:c}=e,u=t;return s===u.surveyId&&i===u.questionId&&r===u.visitorIdent&&l===u.sessionId&&n===u.optionValue&&a===u.answerText&&xt(c,u.respondedAt)&&JSON.stringify(o)===JSON.stringify(u.optionValues)}case ve:{const{formId:i,question:r,answer:n,questionType:o,actionAt:a}=e,l=t;return i===l.formId&&r===l.question&&n===l.answer&&o===l.questionType&&xt("string"==typeof a?a:null==a?void 0:a.toISOString(),"string"==typeof l.actionAt?l.actionAt:null===(s=l.actionAt)||void 0===s?void 0:s.toISOString())}case _e:{const{entityId:s,entityType:r,text:n,code:o,url:a,actionAt:l}=e,c=t;return s===c.entityId&&r===c.entityType&&n===c.text&&o===c.code&&xt("string"==typeof l?l:null==l?void 0:l.toISOString(),"string"==typeof c.actionAt?c.actionAt:null===(i=c.actionAt)||void 0===i?void 0:i.toISOString())&&a===c.url}default:{const{entityId:s,stepIndex:i,action:n,actionAt:o,type:a,id:l}=e,c=t;return s===c.entityId&&l===c.id&&i===c.stepIndex&&n===c.action&&a===c.type&&xt("string"==typeof o?o:null==o?void 0:o.toISOString(),"string"==typeof c.actionAt?c.actionAt:null===(r=c.actionAt)||void 0===r?void 0:r.toISOString())}}}(e,o)),l=function(e){if(e.reportType===Ee){const{surveyId:t,questionId:s,visitorIdent:i,optionValue:r,answerText:n,optionValues:o}=e;return"string"==typeof t&&"string"==typeof s&&"string"==typeof i&&("number"==typeof r&&null!==r||"string"==typeof n||Array.isArray(o))}return!0}(o);!a&&l&&(this.data.push(o),this.syncToLS(),t?(this.nextPossibleSend=Date.now()+500,this.reschedule(500)):this.send())}),this.send=(...e)=>At(this,[...e],void 0,function*(e=!1){this.checkLSSync(),this.syncToLS();const t=this.data,s=t.length&&e,i=Date.now(),r=t.length>=this.batchSize;if((s||r)&&!(i<this.nextPossibleSend||this.isSending)){this.isSending=!0;try{this.reschedule();const e=[...this.data],t=[],s=yield this.trySendOperation(()=>this.sendEntities(e),"entities");if(t.push(...s),!this.debug){const s=yield this.trySendOperation(()=>this.sendForms(e),"forms");t.push(...s);const i=yield this.trySendOperation(()=>this.sendSurveys(e),"surveys");t.push(...i);const r=yield this.trySendOperation(()=>this.sendAssistants(e),"assistants");t.push(...r);const n=yield this.trySendOperation(()=>this.sendErrors(e),"errors");t.push(...n)}if(t.length>0){const e=new Set(t.map(e=>e._id).filter(e=>!!e));this.data=this.data.filter(t=>!(t._id&&e.has(t._id))),this.syncToLS()}}finally{this.isSending=!1}this.batchSizeReduced&&this.data.length>0&&(this.batchSizeReduced=!1,console.log("Usetiful: Batch size was reduced, retrying send immediately"),setTimeout(()=>this.send(!0),100))}}),this.reschedule=e=>{this.sendIntervalId&&clearInterval(this.sendIntervalId);const t=e||this.maxSendInterval;this.sendIntervalId=setInterval(()=>this.send(!0),t)},this.beforeunloadEvent=()=>{this.send(!0)},this.init=()=>{this.data=this.getLSData(),this.syncToLS(),this.beforeUnload.setAction(re,this.beforeunloadEvent),this.reschedule()},this.destroy=()=>{this.beforeUnload.removeAction(re),this.sendIntervalId&&clearInterval(this.sendIntervalId)},this.reporterApi=e,this.usetifulTags=t,this.debug=ke,this.visitor=new yt,this.visitorIdent=this.getVisitorIdent(),this.beforeUnload=s,this.nextPossibleSend=0}calculatePayloadSize(e){try{const t=JSON.stringify(e);return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t).length:2*t.length}catch(e){return 0}}filterEntityItems(e){return e.filter(e=>!e.reportType&&e.action!==Z&&"tour"!==e.type)}prepareBatchForSending(e){const t=e.slice(0,this.batchSize),s=t.map(kt);return{itemsToSend:t,preparedItems:s,payloadSize:this.calculatePayloadSize(s)}}calculateNewBatchSize(){return Math.max(this.minBatchSize,Math.floor(this.batchSize/2))}handlePayloadTooLarge(e,t){const s=this.calculateNewBatchSize();return s<this.batchSize?(this.batchSize=s,this.batchSizeReduced=!0,console.warn(`Usetiful: Entity event payload too large (${e} bytes). Reducing batch size to ${this.batchSize}`),{shouldRetry:!0,shouldSkip:!1}):this.batchSize===this.minBatchSize?(console.error(`Usetiful: Single entity event exceeds size limit (${e} bytes). Skipping.`),{shouldRetry:!1,shouldSkip:!0,itemsToReturn:t}):{shouldRetry:!1,shouldSkip:!1}}postEntityEvents(e){return At(this,void 0,void 0,function*(){yield this.reporterApi.postWithoutResponse(`${Lt()}/${this.reporterApi.basePath}/entity-events/`,e,!0)})}adjustBatchSizeAfterSuccess(){this.batchSize<this.maxBatchSize&&(this.batchSize=Math.min(this.maxBatchSize,this.batchSize+1))}handleServerError(e){var t,s;if((null===(t=e.message)||void 0===t?void 0:t.includes("413"))||(null===(s=e.message)||void 0===s?void 0:s.includes("Payload Too Large"))){const e=this.calculateNewBatchSize();return this.batchSize=e,this.batchSizeReduced=!0,console.warn(`Usetiful: Server rejected entity events (413). Reducing batch size to ${this.batchSize}`),{shouldRetry:!0}}return{shouldRetry:!1}}sendEntities(e){return At(this,void 0,void 0,function*(){const t=this.filterEntityItems(e);if(0===t.length)return[];const{itemsToSend:s,preparedItems:i,payloadSize:r}=this.prepareBatchForSending(t);if(r>this.maxPayloadSize){const{shouldRetry:t,shouldSkip:i,itemsToReturn:n}=this.handlePayloadTooLarge(r,s);if(t)return this.sendEntities(e);if(i&&n)return n}try{return yield this.postEntityEvents(i),this.adjustBatchSizeAfterSuccess(),s}catch(t){const{shouldRetry:s}=this.handleServerError(t);if(s)return this.sendEntities(e);throw t}})}sendForms(e){return At(this,void 0,void 0,function*(){const t=e.filter(e=>e.reportType===ve);if(0===t.length)return[];for(const e of t)yield this.reporterApi.postWithoutResponse(`${Lt()}/${this.reporterApi.basePath}/form-answers/`,Dt(e),!0);return t})}sendSurveys(e){return At(this,void 0,void 0,function*(){const t=e.filter(e=>e.reportType===Ee);if(0===t.length)return[];for(const e of t){const t=Ut(e);yield this.reporterApi.postWithoutResponse(`${Lt()}/${this.reporterApi.basePath}/surveys/${e.surveyId}/responses/`,t,!0)}return t})}sendAssistants(e){return At(this,void 0,void 0,function*(){const t=e.filter(e=>"assistant"===e.reportType);if(0===t.length)return[];for(const e of t)yield this.reporterApi.postWithoutResponse(`${Lt()}/${this.reporterApi.basePath}/assistant-events/`,Ft(e),!0);return t})}sendErrors(e){return At(this,void 0,void 0,function*(){const t=e.filter(e=>e.reportType===_e);if(0===t.length)return[];for(const e of t){const t=$t(e);yield this.reporterApi.postWithoutResponse(`${Lt()}/${this.reporterApi.basePath}/console-errors/`,t,!0)}return t})}trySendOperation(e,t){return At(this,void 0,void 0,function*(){try{return yield e()}catch(e){return console.warn(`Usetiful: Failed to send ${t}. Retrying later.`,e),[]}})}},Mt=navigator.userAgent.indexOf("Opera")>
1-1,Gt=navigator.userAgent.indexOf("Firefox")>-1,Yt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),jt=!!document.documentMode,Wt=!jt&&!!window.StyleMedia,Vt=!Mt&&/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),Ht=(Vt||Mt)&&!!window.CSS;var qt=function(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const Jt=class{constructor(e,t="api-space",s=it,i=Re){this.apiToken=e,this.basePath=t,this.apiHostname=s||"",this.orgId=i}request(e,t,s=null,i=!0){const r=new XMLHttpRequest;return r.open(e,`${this.apiHostname}/${this.basePath}${t}`,i),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type","application/json; charset=utf-8"),this.orgId?r.setRequestHeader("X-ORG-ID",this.orgId):this.apiToken&&r.setRequestHeader("X-AUTH-TOKEN",this.apiToken),null!==s?r.send(JSON.stringify(s)):r.send(),r}requestWithPromise(e,t,s=null,i=!0){return new Promise((r,n)=>{const o=this.request(e,t,s,i);o.onload=()=>{const{status:e,response:t}=o;e>=200&&e<300?r(t):n()},o.onerror=()=>{n()}})}get(e,t){return this.request("GET",e,t)}post(e,t){return this.request(ce,e,t)}setSpaceToken(e){e&&e!==this.apiToken&&(this.apiToken=e)}postWithoutResponse(e){return qt(this,arguments,void 0,function*(e,t=null,s=!0,i={},r=()=>{}){if(!t)return;const n=Object.assign({"Content-Type":"application/json"},i);s&&(this.orgId?n["X-ORG-ID"]=this.orgId:this.apiToken&&(n["X-AUTH-TOKEN"]=this.apiToken));try{const s=yield fetch(e,{keepalive:!0,method:ce,headers:n,body:JSON.stringify(t)});if(!s.ok)throw new Error(`Request failed with status ${s.status}`);r&&r()}catch(e){if("AbortError"===e.name)return void console.log("Fetch request was aborted");if(Gt&&"NetworkError when attempting to fetch resource."===e.message)return;throw console.error("Fetch error:",e),e}})}};var Kt=s(6712);
1const zt=class{constructor(e){this.activeTriggers="[]",this.lastClearedTrigger=null,this.clearTourTriggerAfterDelay=(e,t=!1,s=1500)=>{this.lastClearedTrigger=e,t&&(0,Kt.BI)({isToursContext:!0,name:S}),setTimeout(()=>{window.usetiful_isAboutToRefresh?t&&((0,Kt.BI)({isToursContext:!0,name:f}),window.usetiful_isAboutToRefresh=null):this.removeTriggerFromLocalStorage(e)},s)},this.storage=e;const t=this.storage.getItem(ze);t?this.setTriggers(t):this.setTriggers("[]"),this.tourTriggerFromURL=-1,this.stepTriggerFromURL=-1}getTriggers(){return this.updateTriggers(),"[]"===this.activeTriggers&&null!==this.lastClearedTrigger?(mt(`getTriggers: returning lastClearedTrigger ${this.lastClearedTrigger}`),JSON.stringify([this.lastClearedTrigger])):this.activeTriggers}setTriggers(e){e&&(this.activeTriggers=e)}updateTriggers(){const e=this.storage.getItem(ze);this.setTriggers(e)}hasTourTrigger(e){const t=this.getTriggers(),s=JSON.parse(t);return!!s&&s.includes(e)}removeAllTriggersFromLocalStorage(){this.storage.removeItem(ze),this.setTriggers("[]")}removeTriggerFromLocalStorage(e){const t=this.getTriggers(),s=JSON.parse(t);if(s){if(s.indexOf(e)>=0){const t=s.filter(t=>t!==e);t.length>0?(this.storage.setItem(ze,JSON.stringify(t)),this.setTriggers(JSON.stringify(t))):this.removeAllTriggersFromLocalStorage()}}}setTourTriggerToLocalStorage(e){let t=[];const s=this.getTriggers(),i=JSON.parse(s);i&&(t=i.filter(t=>t!==e)),t.push(e),t.length>0&&(this.setTriggers(JSON.stringify(t)),this.storage.setItem(ze,JSON.stringify(t)))}parseTourTriggerFromUrl(){var e;if(!(null===(e=window.location)||void 0===e?void 0:e.search))return{tourId:null,stepIndex:null};const t=new URLSearchParams(window.location.search),s=t.get("showProductTour"),i=s?Number(s):null;window.usetifulTags||(window.usetifulTags={});for(const[e,s]of t.entries())if(e.startsWith(l)){const t=e.slice(6);window.usetifulTags[t]=s}const r=t.get("productTourStep");return{tourId:i,stepIndex:r?Number(r):null}}hasTourTriggerInUrl(){try{const{tourId:e,stepIndex:t}=this.parseTourTriggerFromUrl();return this.tourTriggerFromURL=null!=e?e:-1,this.stepTriggerFromURL=null!=t?t:-1,-1!==this.tourTriggerFromURL}catch(e){return console.warn(e instanceof Error?e.message:String(e)),!1}}getStepTriggerFromUrl(){return this.stepTriggerFromURL>0?this.stepTriggerFromURL:void 0}checkTourTriggers(){if(this.hasTourTriggerInUrl()){const e=this.tourTriggerFromURL;this.removeAllTriggersFromLocalStorage(),this.setTourTriggerToLocalStorage(e)}}clearLastClearedTrigger(){mt("clearLastClearedTrigger"),this.lastClearedTrigger=null}};var Xt=s(2314),Qt=s(226);const Zt=e=>{const t=e.indexOf("#");return-1===t||(e=>{const t=e.indexOf("#");if(-1===t)return!1;const s=e.substring(t+1);return s.includes("/")||/^[^/]+\/.*$/.test(s)})(e)?e:e.substring(0,t)};let es=Zt(window.location.href);const ts="onPageChange",ss="onProgressorDataReady",is=()=>{const e=new CustomEvent(ts);mt("change url event call"),window.dispatchEvent(e)},rs=()=>(es=Zt(window.location.href),setInterval(()=>(e=>{const t=Zt(e);t!==es&&(mt(`URL changed from ${es} to ${t}`),is(),es=t)})(window.location.href),500));const ns=class{constructor(){this.themeLoadingPromises=new Map,this.loadCriticalCss=()=>{const e=document.getElementsByTagName("head")[0],t=document.createElement("style");t.innerHTML="[data-uf-content] {display: none}",e.appendChild(t)},this.loadTheme=(e,t)=>{let s=e;if(this.themeLoadingPromises.has(s))return this.themeLoadingPromises.get(s);const i=new Promise(e=>{const t=document.querySelector(`link[href="${s}"][rel="stylesheet"]`);if(null===t||t.getAttribute("href")!==s){const t=document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.href=s,i.onload=()=>{this.themeLoadingPromises.delete(s),e(s)},t.appendChild(i)}else this.themeLoadingPromises.delete(s),e(s)});return this.themeLoadingPromises.set(s,i),i},this.loadMultipleThemes=e=>{const t=e.map(({theme:e,themeSlug:t})=>this.loadTheme(e,t));return Promise.all(t)}}};var os=s(6822);const as="gs",ls=()=>as,cs={CONTENT_LOADER:`${as}-content-loader`,TOURS:`${as}-tours`,CHECKLISTS:`${as}-checklists`,ASSISTANTS:`${as}-assistants`,SMART_TIPS:`${as}-smart-tips`,BANNERS:`${as}-banners`,FORMS:`${as}-forms`,DEVKIT:`${as}-devkit`,SURVEYS:`${as}-surveys`,GA_INTEGRATION:`${as}-ga-integration`,FULLSTORY_INTEGRATION:`${as}-fullstory-integration`,WEBEVENT_INTEGRATION:`${as}-webevent-integration`},us=[cs.CONTENT_LOADER,cs.SMART_TIPS,cs.BANNERS,cs.TOURS],ds=[cs.CONTENT_LOADER,cs.TOURS,cs.CHECKLISTS,cs.ASSISTANTS,cs.SURVEYS],hs=[cs.CONTENT_LOADER,cs.TOURS,cs.CHECKLISTS,cs.ASSISTANTS,cs.SURVEYS],gs=e=>ut?`${nt}/v${ye}/${e}.js`:`${nt}/${e}.js?v=${ye}`;
1var ps=function(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const ms=new class{constructor(){this.loadedChunks=new Set,this.loadingPromises={}}loadChunk(e){if(this.loadedChunks.has(e))return mt(`Chunk ${e} already loaded`),Promise.resolve();if(this.loadingPromises[e]){mt(`Chunk ${e} already loading, waiting...`);const t=this.loadingPromises[e];if(t)return t;Tt(`Promise for ${e} was unexpectedly cleared, creating new one`)}if(mt(`Loading chunk: ${e}`),!document.body)return Tt(`DOM not ready for chunk loading: ${e}`),Promise.reject(new Error(`DOM not ready for chunk loading: ${e}`));this.loadingPromises[e]=new Promise((t,s)=>{const i=this.getScriptId(e),r=document.getElementById(i);let n=`${it}${gs(e)}`;if(r)return this.loadedChunks.add(e),void t();const o=(0,os.s)(i,n);(e=>ds.includes(e))(e)&&(o.setAttribute("importance","high"),o.setAttribute("fetchpriority","high")),o.setAttribute("crossorigin","anonymous"),o.onload=()=>{mt(`Chunk ${e} loaded successfully`),this.loadedChunks.add(e),delete this.loadingPromises[e],t()},o.onerror=()=>{Tt(`Failed to load chunk: ${e} from ${n}`),delete this.loadingPromises[e],s(new Error(`Failed to load chunk: ${e} from ${n}`))}});const t=this.loadingPromises[e];if(!t)throw new Error(`Failed to create loading promise for chunk: ${e}`);return t}loadMultipleChunks(e){return ps(this,void 0,void 0,function*(){const t=e.map(e=>this.loadChunk(e));return Promise.all(t)})}isChunkLoaded(e){return this.loadedChunks.has(e)}getLoadedChunks(){return Array.from(this.loadedChunks)}getBuildVersion(){return ye}getScriptId(e){return e}getPluginChunkUrl(e){const t=document.querySelector("script[data-chunk-urls]"),s=null==t?void 0:t.getAttribute("data-chunk-urls");if(t&&s)try{const t=JSON.parse(s);return t[e]?(mt(`Plugin chunk URL from dataset: ${t[e]}`),t[e]):(Tt(`Chunk URL not found in dataset for: ${e}`),null)}catch(e){return Tt("Failed to parse chunk URLs from dataset"),null}const i=document.querySelector('script[src*="usetiful-plugin.js"]');if(i&&i.src){const t=`${i.src.replace("usetiful-plugin.js","")}${e}-plugin.js`;return mt(`Plugin chunk URL (fallback): ${t}`),t}return Tt(`No fallback method available for chunk: ${e}`),null}},Ts=e=>{var t;return null===(t=window.USETIFUL)||void 0===t?void 0:t[e]};var Ss=function(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const fs=(e,t,s,i)=>{if(!e||0===e.length)return;const r=Ts("bannersInit");ms.isChunkLoaded(cs.BANNERS)&&r?r(e,t,s,i):ms.loadChunk(cs.BANNERS).then(()=>{const r=Ts("bannersInit");r&&r(e,t,s,i)}).catch(()=>{mt("Failed to load banners chunk")})},vs=(e,t)=>{if(!e||0===e.length)return;const s=Ts("smartTipsInit");if(ms.isChunkLoaded(cs.SMART_TIPS)&&s){const i=s(e,t);i&&i.init()}else ms.loadChunk(cs.SMART_TIPS).then(()=>{const s=Ts("smartTipsInit");if(s){const i=s(e,t);i&&i.init()}}).catch(()=>{mt("Failed to load smart tips chunk")})},Es=(e,t,s,...i)=>Ss(void 0,[e,t,s,...i],void 0,function*(e,t,s,i=[],r){if(!(e.length>0||t.length>0||s.length>0||i.length>0))return null;const n=[...hs];t.length>0&&n.push(cs.CHECKLISTS),s.length>0&&n.push(cs.ASSISTANTS),i.length>0&&n.push(cs.SURVEYS);try{mt("Loading blocking chunks for page change/update"),n.map(e=>ms.loadChunk(e).catch(()=>null)),yield Promise.all(hs.map(e=>ms.loadChunk(e))),mt("Critical chunks loaded, initializing...");let o=null,a=null,l=null,c=null;const u=Ts("toursInit");u&&(o=u(e,r));const d=Ts("assistantsInit");s.length>0&&d&&(l=d(s,(null==o?void 0:o.runTourOnClick)||(()=>{}),r));const h=Ts("checklistsInit");t.length>0&&h&&(a=h(t,(null==o?void 0:o.runTourOnClick)||(()=>{}),r));const g=Ts("surveysInit");return i.length>0&&g&&(c=g(i,!1,Ye,r)),mt("Blocking content initialized successfully"),{toursInstance:o,checklistInstance:a,assistantInstance:l,surveysInstance:c}}catch(e){return mt("Failed to load blocking chunks"),null}}),_s=()=>{const e=Ts("formsInit");ms.isChunkLoaded(cs.FORMS)&&e?e():ms.loadChunk(cs.FORMS).then(()=>{const e=Ts("formsInit");e&&e()}).catch(()=>{mt("Failed to load forms chunk")})};
1var ys=function(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const Os=class{constructor(e,t){this.ensureUrlChangeListener=()=>{void 0===this.urlChangeIntervalId&&(this.urlChangeIntervalId=rs())},this.afterLoaded=(e,t)=>{const{settings:s,spaceToken:i,orgId:r}=t,n=vt.getDefaultContainer();if(i){const e=n.get(on.ProgressorApi);e&&"function"==typeof e.setSpaceToken&&e.setSpaceToken(i);const t=n.get(on.ReporterApi);t&&"function"==typeof t.setSpaceToken&&t.setSpaceToken(i)}e(t),window.USETIFUL=window.USETIFUL||{},window.USETIFUL.settings=s,r&&(window.USETIFUL.orgId=r);const o=(0,Ot.getSettingsValue)(s,Ot.SPACE_SETTINGS.realTimeData);let a=t,l=0;let c=!1,u=!1;const d=()=>ys(this,void 0,void 0,function*(){const t=vt.getDefaultContainer().get(on.ProgressorApi);try{yield null==t?void 0:t.saveToApi()}catch(e){Tt("progressor save failed on page change")}this.beforeUnload.beforeUnloadListener(),l++;const s=(()=>ys(this,void 0,void 0,function*(){try{t&&"function"==typeof t.loadFromApi&&(yield t.loadFromApi({skipIfFresh:!0,noWaitForUserId:!0}))}catch(e){Tt("progressor sync failed on page change")}}))();try{try{const e=yield this.getData();if(null===e)return;a=e}catch(e){Tt("data.json fetch failed on page change")}yield s,(t=>{e(t);const s=vt.getDefaultContainer();t.banners&&fs(t.banners,t.watermark,!1,s),t.smartTipsGroups&&vs(t.smartTipsGroups,s),Es(t.tours||[],t.checklists||[],t.assistants||[],t.surveys||[],s),_s()})(a)}finally{l--}}),h=()=>ys(this,void 0,void 0,function*(){if(c)u=!0;else{c=!0;try{yield d()}catch(e){Tt("page change handler failed")}finally{c=!1,u&&(u=!1,h())}}});window.addEventListener(ts,h),window.addEventListener(ss,()=>{if(l>0)return;mt("call main method after the progressor data is ready!");const t=vt.getDefaultContainer();a.banners&&fs(a.banners,a.watermark,!1,t),a.smartTipsGroups&&vs(a.smartTipsGroups,t),null===t.get(an.contentLoader)&&e(a)}),o&&this.startDataCheck(e,h)},this.startDataCheck=(e,t)=>{const s=()=>{this.beforeUnload.beforeUnloadListener(),this.callUpdate(e)};setInterval(()=>{this.api.requestWithPromise("GET","/data-state").then(e=>{const i=JSON.parse(e);if((0,Xt.JY)(i))return(0,Xt.ig)(i),void console.warn(`Usetiful: ${i.message}`);!(()=>{const e=localStorage.getItem(Ve);return null!==e&&e.indexOf(o)>=0})()&&this.lastDataJSONLoad&&i.updatedAt>this.lastDataJSONLoad&&(s(),window.removeEventListener(ts,t),window.addEventListener(ts,s))}).catch(e=>{e.message&&e.message.includes("403")&&console.warn("Usetiful: Space may be deactivated")})},3e4)},this.callUpdate=e=>{this.getData().then(t=>{if(null!==t&&t&&(e(t),t.banners)){const e=vt.getDefaultContainer();fs(t.banners,t.watermark,!1,e)}}).catch(e=>console.error(e))},this.loadConfig=e=>{const t=new Qt.A(Ie,Re);t.validate()?xe?mt("Script is paused by plugin"):this.getData().then(t=>{null!==t&&this.afterLoaded(e,t)}).catch(e=>console.error(e)):console.error(`The usetiful identifier "${t.identName}" "${t.identValue}" has invalid format. Please check if you have inserted the script correctly.`)},this.parseAndCheckDeactivation=e=>{const t=JSON.parse(e),s=(0,Xt.JY)(t);return s&&(0,Xt.ig)(t),{json:t,isDeactivated:s}},this.getData=()=>new Promise((e,t)=>{{const s=this.api.get((()=>{if(""===We)return We;const e=new URLSearchParams(je),t=$e();!1!==t&&e.set("lang",t);const s=e.toString();return s?`${We}?${s}`:We})());s.onload=()=>{const{status:i,response:r}=s;if(this.ensureUrlChangeListener(),i>=200&&i<400)try{const{json:t,isDeactivated:s}=this.parseAndCheckDeactivation(r);if(s)return void e(null);this.lastDataJSONLoad=(new Date).toISOString(),e(t)}catch(e){t(e)}else if(403===i)try{const{json:t,isDeactivated:s}=this.parseAndCheckDeactivation(r);if(s)return console.warn(`Usetiful: ${t.message}`),void e(null)}catch(e){}t(new Error(`Usetiful: connection error ${i}`))},s.onerror=()=>{Tt("error"),t(new Error("Network error"))}}}),this.loadCriticalCss=()=>this.cssThemeLoader.loadCriticalCss(),this.loadTheme=(e,t)=>
1this.cssThemeLoader.loadTheme(e,t),this.loadMultipleThemes=e=>this.cssThemeLoader.loadMultipleThemes(e),this.api=e,this.beforeUnload=t,this.lastDataJSONLoad=null,this.cssThemeLoader=new ns}};const Is=class{constructor(){this.init=()=>{this.isListenerPlaced||this.placeListener()},this.beforeUnloadListener=()=>{mt("beforeUnloadListener event called"),this.actions.forEach((e,t)=>{e&&(2===t?setTimeout(()=>e(),1):e())})},this.placeListener=()=>{this.isListenerPlaced||(window.addEventListener("beforeunload",this.beforeUnloadListener),this.isListenerPlaced=!0)},this.removeListener=()=>{this.isListenerPlaced&&(window.removeEventListener("beforeunload",this.beforeUnloadListener),this.isListenerPlaced=!1)},this.setAction=(e,t)=>{switch(e){case"PageLeft":this.actions[0]=t;break;case re:this.actions[1]=t;break;case ie:this.actions[2]=t}},this.removeAction=e=>{this.setAction(e,()=>{})},this.destroy=()=>{this.removeListener(),this.actions=new Array(3)},this.isListenerPlaced=!1,this.actions=new Array(3)}};var Rs=s(6920),ws=s(7276),bs=s(301),As=s(4970);const Ps=()=>{const e=window.usetiful_fsResolvedHandler;e&&(window.removeEventListener(As.IA,e),window.removeEventListener(As.yC,e),window.usetiful_fsResolvedHandler=void 0);const t=window.usetiful_fsIdentityUidHandler;t&&(window.removeEventListener(As.v3,t),window.usetiful_fsIdentityUidHandler=void 0)};var Cs=function(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})},Ls=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(s[i[r]]=e[i[r]])}return s};const Ns="save";let ks=null;const Ds=()=>(null!=ks||(ks=(0,It.createMicroserviceUrlResolver)("progressor",at,ct)),ks.resolve());const Us=class{constructor(e,t,s,i,r="api"){this.loadedUserData={},this.dataChanged=!1,this.saveInFlight=!1,this.inFlightSave=null,this.resaveQueued=!1,this.loadingState=0,this.inFlightFetch=null,this.loadGeneration=0,this.lastProgressorTimeoutReportedAt=null,this.lastLoadedIdentityKey=null,this.handleFSResolved=()=>{this.loadFromApi({skipIfFresh:!0}).catch(()=>{})},this.handleFSIdentityUid=()=>{this.getUserId()||this.hasFullStoryIdentity()&&this.loadFromApi().catch(()=>{})},this.request=(e,t,s=null,i=3e3)=>new Promise((r,n)=>{const o=new XMLHttpRequest;o.open(e,`${Ds()}/${this.basePath}/${t}`,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.onload=()=>{const{status:e,response:t}=o;if(200===e)try{const e=JSON.parse(t);r(e)}catch(e){n(new Error(`Usetiful: parsing response JSON error ${e}`))}else n(new Error(`Usetiful: connection error ${e}`))},o.onerror=()=>{n(new Error("Usetiful: Request failed with network error"))},null!==s?o.send(JSON.stringify(s)):o.send();const a=setTimeout(()=>{o.abort(),n(new Error("Usetiful: Request timed out"))},i);o.onloadend=()=>{clearTimeout(a)}}),this.sendDataReadyEvent=()=>{const e=new CustomEvent(ss);window.dispatchEvent(e)},this.beforeunloadEvent=()=>{this.saveToApi(!0)},this.setDataChanged=e=>{var t,s,i;if(this.markDataChanged(),e&&(null===(s=null===(t=e.detail)||void 0===t?void 0:t.props)||void 0===s?void 0:s.isImmediate)){if(null===(i=this.loadedUserData)||void 0===i?void 0:i.isTemporaryProfile)return;this.scheduleImmediateSave()}},this.placeEventListeners=()=>{document.addEventListener(N,this.setDataChanged)},this.removeEventListeners=()=>{document.removeEventListener(N,this.setDataChanged)},this.postDataToWebhook=(e,t)=>Cs(this,void 0,void 0,function*(){const s=`${Ds()}/webhook-trigger/${e}`,i=yield this.usetifulTags.getTags(),r={spaceToken:this.apiToken,data:t,tags:i};{const e=this.getResolvedUserId(),t=this.getFullstorySessionId();e&&(r.userId=e),t&&(r.sessionId=t)}this.api.postWithoutResponse(s,r,!1)}),this.apiToken=e,this.orgId=Re,this.basePath=r,this.usetifulTags=t,this.beforeUnload=s,this.api=i,bt(),this.localStorageSynchronizer=new bs.P(dt,this.fetchDataFromApi.bind(this),this.loadedUserData,this.dataLoadedAt,As.Lp),Ps(),window.usetiful_fsResolvedHandler=this.handleFSResolved,window.usetiful_fsIdentityUidHandler=this.handleFSIdentityUid,window.addEventListener(As.IA,this.handleFSResolved),window.addEventListener(As.yC,this.handleFSResolved),window.addEventListener(As.v3,this.handleFSIdentityUid),this.loadFromApi().catch(e=>{console.error("Usetiful: Error loading data from the Progressor API:",e)})}setSpaceToken(e){e&&e!==this.apiToken&&(mt(`ProgressorApi: Updating apiToken to
1spaceToken: ${e}`),this.apiToken=e)}init(){var e;null===(e=bt())||void 0===e||e.reinitialize(),this.setUnloadListener(),this.placeEventListeners(),this.localStorageSynchronizer.init(),this.inFlightFetch=null,window.__usetifulProgressorReady=!0,window.dispatchEvent(new CustomEvent("onProgressorInitialized"))}destroy(){this.beforeUnload.removeAction(ie),this.clearSaveTimer(),this.clearImmediateSaveTimer(),this.removeEventListeners(),this.localStorageSynchronizer.destroy()}getUserId(){return this.usetifulTags.getUserId()}getUserToken(){return this.usetifulTags.getUserToken()}getFullstorySessionId(){var e,t;return null!==(t=null===(e=bt())||void 0===e?void 0:e.getSessionId())&&void 0!==t?t:null}getFullStoryIdentityUid(){var e,t;const s=null===(t=null===(e=bt())||void 0===e?void 0:e.getIdentityUid)||void 0===t?void 0:t.call(e);return"string"==typeof s&&s.length>0?s:null}getResolvedUserId(){var e;return null!==(e=this.getUserId())&&void 0!==e?e:this.getFullStoryIdentityUid()}shouldWaitForUserIdentifier(){var e,t;{const s=!!this.getFullstorySessionId(),i=null!==(t=null===(e=bt())||void 0===e?void 0:e.isDataCaptureDisabled())&&void 0!==t&&t;return!(s||i)}}getUserIdentifier(){{const e=this.getResolvedUserId();if(e)return{kind:"userId",value:e};const t=this.getFullstorySessionId();return t?{kind:"sessionId",value:t}:null}}loadFromApi(){return Cs(this,arguments,void 0,function*(e={}){var t;if(e.skipIfFresh&&this.dataLoadedAt&&Date.now()-new Date(this.dataLoadedAt).getTime()<1e4&&JSON.stringify(this.getAuthPayload(this.getUserIdentifier()))===this.lastLoadedIdentityKey)return void mt("Progressor loadFromApi: data younger than 10000ms for the same identity, skipping GET");if(e.noWaitForUserId){const e=bt();if(e&&!e.getSessionId()&&!e.isDataCaptureDisabled())return}const s=++this.loadGeneration;yield this.recoverPendingSave(),this.localStorageSynchronizer.pauseSync();try{if(!e.noWaitForUserId){const e=bt();this.getUserId()||!(null==e?void 0:e.getSessionId())&&!(null==e?void 0:e.isDataCaptureDisabled())||(yield null===(t=null==e?void 0:e.waitForUserSnapshot)||void 0===t?void 0:t.call(e,500))}const i=yield this.fetchDataFromApi(0,e.noWaitForUserId);if(s!==this.loadGeneration)return void mt("Progressor loadFromApi: discarding stale fetch (identity superseded)");null!==i&&(this.dataLoadedAt=(new Date).toISOString()),this.processFetchedData(i)}catch(e){if(s!==this.loadGeneration)return;console.error(e);const t=Date.now();throw(null===this.lastProgressorTimeoutReportedAt||t-this.lastProgressorTimeoutReportedAt>3e5)&&(this.lastProgressorTimeoutReportedAt=t,(0,ws.reportError)({name:ws.ERROR_NAMES.progressorTimeout,type:"account",text:e.message||String(e)})),this.loadingState=1,this.sendDataReadyEvent(),e}finally{this.localStorageSynchronizer.unpauseSync()}})}hasFullStoryIdentity(){return!!this.getResolvedUserId()}getUserData(e){return this.isLoadedDataSameAsLS(),Object.prototype.hasOwnProperty.call(this.loadedUserData,e)?this.loadedUserData[e]:null}saveUserData(e,t){var s;this.getUserIdentifier()&&!(null===(s=this.loadedUserData)||void 0===s?void 0:s.isTemporaryProfile)&&("object"!=typeof this.loadedUserData&&(this.loadedUserData={}),this.loadedUserData[e]=t,this.markDataChanged())}getDataToSend(){var e,t;const s={};dt.forEach(e=>{var t,i;const r=window.localStorage.getItem(e);let n=null!==r?r:null!==(t=this.loadedUserData[e])&&void 0!==t?t:"[]";if(ht.includes(e)&&"string"==typeof n&&(n=null!==(i=(0,Ot.tryParseJSON)(n))&&void 0!==i?i:[]),e===tt&&"string"==typeof n){const e=(0,Ot.tryParseJSON)(n);e&&"object"==typeof e&&!Array.isArray(e)&&(n=JSON.stringify(this.stripDerivedLiveTags(e)))}s[e]=n});const i=null!==(t=null!==(e=this.loadedUserData[ge])&&void 0!==e?e:window.usetifulTags[ge])&&void 0!==t?t:null;null!==i&&(s[ge]=i),s[pe]=this.loadedUserData[pe],s[Te]=JSON.stringify(this.getTagsForProgressorReport()),s[Se]=window.usetifulTags[Se];const r=(0,x.M3)();return r&&(s[me]=r),s}getTagsForProgressorReport(){const e=window.usetifulTags,{apiToken:t,userId:s,userToken:i}=e,r=Ls(e,["apiToken","userId","userToken"]);return this.stripDerivedLiveTags(r)}stripDerivedLiveTags(e){const t={};return Object.keys(e).forEach(s=>{Rs.BR.includes(s)||(t[s]=e[s])}),t}recoverPendingSave(){return Cs(this,void 0,void 0,function*(){try{const e=(0,Ot.getFromLocalStorage)(st);if(e){const{timestamp:t,data:s}=e;if(Date.now()-t<3e5){const e=`${Ds()}/${this.basePath}/${Ns}`;try{yield this.api.postWithoutResponse(e,s,!1,{"x-requested-with":"XMLHttpRequest"},()=>{(0,Ot.removeFromLocalStorage)(st)})}catch(e){console.warn("Usetiful: Failed to recover pending save:",e)}}else(0,Ot.removeFromLocalStorage)(st)}}catch(e){(0,Ot.removeFromLocalStorage)(st)}})}saveToApi(e=!1){var t,s,i;if(!this.dataChanged)return mt("Progressor saveToApi: No data changed, skipping save"),null!==(t=this.inFlightSave)&&void 0!==t?t:Promise.resolve();if(null===(s=this.loadedUserData)||void 0===s?void 0:s.isTemporaryProfile)return mt("Progressor saveToApi: Temporary profile, skipping save"),Promise.resolve();const r=this.getUserIdentifier();if(!r)return mt("Progressor saveToApi: No user identifier available, skipping save"),Promise.resolve();if(this.saveInFlight&&!e)return this.resaveQueued=!0,mt("Progressor saveToApi: Save already in flight, queueing resave"),null!==(i=this.inFlightSave)&&void 0!==i?i:Promise.resolve();this.clearSaveTimer(),this.clearImmediateSaveTimer();const n=Object.assign({data:this.getDataToSend()},this.getAuthPayload(r));mt(`Progressor saveToApi: Saving data (beforeUnload=${e})`,!0);const o=`${Ds()}/${this.basePath}/${Ns}`;if(e){const e=this.writePendingSaveBackup(n);return this.api.postWithoutResponse(o,n,!1,{"x-requested-with":"XMLHttpRequest"},()=>{this.removePendingSaveBackup(e)}).catch(()=>{}),this.dataChanged=!1,Promise.resolve()}this.saveInFlight=!0,this.dataChanged=!1;const a=this.writePendingSaveBackup(n),l=this.api.postWithoutResponse(o,n,!1,{"x-requested-with":"XMLHttpRequest"},()=>{this.removePendingSaveBackup(a)}).catch(()=>{this.dataChanged=!0,this.scheduleSaveTimer()}).finally(()=>{this.saveInFlight=!1,this.inFlightSave===l&&(this.inFlightSave=null),this.resaveQueued&&(this.resaveQueued=!1,this.saveToApi())});return this.inFlightSave=l,l}writePendingSaveBackup(e){const t=Date.now();try{(0,Ot.saveToLocalStorage)(st,{timestamp:t,data:e},!1)}catch(e){}return t}removePendingSaveBackup(e){const t=(0,Ot.getFromLocalStorage)(st);
1(null==t?void 0:t.timestamp)===e&&(0,Ot.removeFromLocalStorage)(st)}markDataChanged(){this.dataChanged=!0,this.scheduleSaveTimer()}scheduleSaveTimer(){void 0===this.sendTimeoutId&&(this.sendTimeoutId=setTimeout(()=>{this.sendTimeoutId=void 0,this.saveToApi()},1e4))}clearSaveTimer(){void 0!==this.sendTimeoutId&&(clearTimeout(this.sendTimeoutId),this.sendTimeoutId=void 0)}setUnloadListener(){this.beforeUnload.setAction(ie,()=>{this.beforeunloadEvent()})}isLoadedDataSameAsLS(){let e=!0;const t=Object.keys(this.loadedUserData),s=[];return t.forEach(t=>{this.loadedUserData[t]!==window.localStorage.getItem(t)&&(e=!1),s.length>0&&console.warn(`Usetiful: Data from progressor and local storage are not equal for these keys: '${s.toString()}. It may result in wrong progress state.'`)}),e}addAutoSegmentToUsetifulTags(){const e=this.getUserData(ge);null!==e&&(window.usetifulTags[ge]=e)}addABTestVariantsToUsetifulTags(){this.applyDerivedArrayTag(Se)}addCustomSegmentsToUsetifulTags(){this.applyDerivedArrayTag(fe)}applyDerivedArrayTag(e){const t=this.getUserData(e);Array.isArray(t)&&(0===t.length&&null===this.getResolvedUserId()||(window.usetifulTags[e]=t))}addUserTagsToUsetifulTags(){var e,t;const s=this.getUserData(pe);if(null===s)return;const i=null!==(e=(0,Ot.tryParseJSON)(s))&&void 0!==e?e:[];window.usetifulTags=null!==(t=window.usetifulTags)&&void 0!==t?t:{},i.forEach(e=>{window.usetifulTags[e.key]=e.value})}applyServerTagInvalidation(){const e=this.getUserData(me);if(!(0,x.tB)(e))return!1;const t=this.getUserData(Te),s="string"==typeof t?(0,Ot.tryParseJSON)(t):t,i=s&&"object"==typeof s&&!Array.isArray(s)?s:{};return(0,x.Rw)(i),(0,x.ys)(e),!0}addUserPropertiesToLS(){var e;const t=this.getUserData("userProperties"),s=this.getUserData("email"),i=this.getUserData("displayName"),r=null!==(e=(0,Ot.tryParseJSON)(t))&&void 0!==e?e:{};null!==s&&(r.email=s),null!==i&&(r.displayName=i),"object"!=typeof r||0!==Object.keys(r).length?(0,Ot.saveToLocalStorage)(ne,r,!1):(0,Ot.removeFromLocalStorage)(ne)}addFsSegmentsToLS(){const e=this.getUserData("segments"),t="string"==typeof e?(0,Ot.tryParseJSON)(e):e;Array.isArray(t)&&0!==t.length?(0,Ot.saveToLocalStorage)(oe,t,!1):(0,Ot.removeFromLocalStorage)(oe)}addTagsToLS(){var e;const t=this.getUserData(tt);if(null===t)return;const s=this.stripDerivedLiveTags(null!==(e=(0,Ot.tryParseJSON)(t))&&void 0!==e?e:{}),i=(0,Ot.getFromLocalStorage)(tt)||{};Object.keys(s).forEach(e=>{Object.prototype.hasOwnProperty.call(i,e)||(i[e]=s[e])}),(0,Ot.saveToLocalStorage)(tt,i,!1)}addContentProgressToLS(){[Ke,Ve,He,Xe,Qe].forEach(e=>{var t,s;let i=[],r=[];const n=window.localStorage.getItem(e);n&&(i=null!==(t=(0,Ot.tryParseJSON)(n))&&void 0!==t?t:[]);const o=this.getUserData(e);o&&(r=null!==(s=(0,Ot.tryParseJSON)(o))&&void 0!==s?s:[]);(0,Ot.shouldUpdateLocalStorage)(i,r)&&(0,Ot.saveToLocalStorage)(e,r,!1)})}scheduleImmediateSave(){void 0===this.immediateSaveTimeoutId&&(this.immediateSaveTimeoutId=setTimeout(()=>{this.immediateSaveTimeoutId=void 0,this.saveToApi()},200))}clearImmediateSaveTimer(){void 0!==this.immediateSaveTimeoutId&&(clearTimeout(this.immediateSaveTimeoutId),this.immediateSaveTimeoutId=void 0)}addBannersToLS(){var e;const t=this.getUserData(et);if(null===t)return;const s=null!==(e=(0,Ot.tryParseJSON)(t))&&void 0!==e?e:[];(0,Ot.saveToLocalStorage)(et,s,!1)}addThrottlingToLS(){var e;const t=this.getUserData(Ze);if(null===t)return;const s=null!==(e=(0,Ot.tryParseJSON)(t))&&void 0!==e?e:{};(0,Ot.saveToLocalStorage)(Ze,s,!1)}fetchDataFromApi(){return Cs(this,arguments,void 0,function*(e=0,t=!1){var s,i,r,n;this.getUserIdentifier();if(null===(s=bt())||void 0===s?void 0:s.hasOrgIdMismatch())return mt("fetchDataFromApi: FullStory orgId mismatch detected, running in anonymous mode, skipping fetch"),this.loadingState=1,null;if(!t&&this.shouldWaitForUserIdentifier()&&(mt("fetchDataFromApi: Waiting for user identifier..."),this.loadingState=2,yield new Promise(e=>{const t=new AbortController,s=setTimeout(()=>{t.abort(),e()},200);window.addEventListener(As.yC,()=>{clearTimeout(s),e()},{once:!0,signal:t.signal}),window.addEventListener(As.IA,()=>{clearTimeout(s),e()},{once:!0,signal:t.signal})}),this.shouldWaitForUserIdentifier()))return e>150?(this.loadingState=1,this.sendDataReadyEvent(),null):this.fetchDataFromApi(e+1,t);const o=this.getUserIdentifier();if(!o)return mt("fetchDataFromApi: No user identifier available, skipping fetch"),t||(this.loadingState=1,this.sendDataReadyEvent()),null;t||this.getUserId()||(yield null===(r=null===(i=bt())||void 0===i?void 0:i.waitForUserSnapshot)||void 0===r?void 0:r.call(i,500)),this.loadingState=3;const a=Object.assign({},this.getAuthPayload(null!==(n=this.getUserIdentifier())&&void 0!==n?n:o)),l=JSON.stringify(a);if(this.inFlightFetch&&this.inFlightFetch.key===l)return mt("Progressor fetchDataFromApi: joining in-flight fetch"),this.inFlightFetch.promise;const c=this.request(ce,"get",a),u={key:l,promise:c};this.inFlightFetch=u;const d=()=>{this.inFlightFetch===u&&(this.inFlightFetch=null)};return c.then(e=>{null!==e&&this.inFlightFetch===u&&(this.lastLoadedIdentityKey=l),d()},d),c})}getAuthPayload(e){const t={};{this.orgId?t.orgId=this.orgId:t.accountToken=this.apiToken;const e=this.getUserId(),s=null!=e?e:this.getFullStoryIdentityUid(),i=this.getFullstorySessionId();if(s&&(t.userId=s,e)){const e=this.getUserToken();e&&(t.userToken=e)}i&&(t.sessionId=i)}return t}processFetchedData(e){if(e&&"string"==typeof e){const t=(0,Ot.tryParseJSON)(e);if(void 0===t)throw new Error("Usetiful: progressor payload could not be parsed as JSON");if(this.loadedUserData=t,this.localStorageSynchronizer.updateLoadedData(this.loadedUserData,this.dataLoadedAt),this.loadedUserData.isTemporaryProfile){this.addUserPropertiesToLS(),this.addFsSegmentsToLS();const e=new CustomEvent(U);return document.dispatchEvent(e),void this.sendDataReadyEvent()}const s=this.getLastSyncTimeFromStorage(),i=this.checkAndHandleProgressCleared(s);if(this.storeLastSyncTime(),!i){this.addAutoSegmentToUsetifulTags(),this.addCustomSegmentsToUsetifulTags(),this.addUserTagsToUsetifulTags();this.applyServerTagInvalidation()||this.addTagsToLS(),this.addUserPropertiesToLS(),this.addFsSegmentsToLS(),this.addBannersToLS(),this.addThrottlingToLS(),this.addABTestVariantsToUsetifulTags(),this.addContentProgressToLS()}this.sendDataReadyEvent()}}
1checkAndHandleProgressCleared(e){if(this.loadedUserData&&this.loadedUserData.progressClearedAt&&"string"==typeof this.loadedUserData.progressClearedAt){const t=new Date(this.loadedUserData.progressClearedAt);if(this.loadedUserData.storedAt&&"string"==typeof this.loadedUserData.storedAt){if(new Date(this.loadedUserData.storedAt).getTime()>t.getTime())return!1}if(t.getTime()>e.getTime())return console.warn("Usetiful: Server indicates progress was cleared, syncing local storage"),this.localStorageSynchronizer.pauseSync(),pt.forEach(e=>{const t=e===ne||e===tt?"{}":"[]";window.localStorage.setItem(e,t)}),window.USETIFUL.user.removeAllTags(),this.localStorageSynchronizer.updateLoadedData(this.buildClearedDataObject(),(new Date).toISOString()),this.markDataChanged(),setTimeout(()=>{this.localStorageSynchronizer.unpauseSync()},1e3),!0}return!1}buildClearedDataObject(){const e={};return pt.forEach(t=>{const s=t===ne||t===tt?"{}":"[]";e[t]=s}),e}getLastSyncTimeStorageKey(){return`usetiful_last_sync_${this.getResolvedUserId()||"anonymous"}`}storeLastSyncTime(){const e=(new Date).toISOString(),t=this.getLastSyncTimeStorageKey();window.localStorage.setItem(t,e)}getLastSyncTimeFromStorage(){const e=this.getLastSyncTimeStorageKey(),t=window.localStorage.getItem(e);return t?new Date(t):new Date(0)}},Fs=(e=!1)=>{let t=!1;return(s=>{const i=/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/i.test(s),r=/(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/i.test(s)||/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(s.substr(0,4));(e?i:r)&&(t=!0)})(navigator.userAgent||navigator.vendor||window.opera),t},$s=Fs(),xs=Fs(!0),Bs=!xs&&!$s;var Ms=function(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};class Gs{constructor(e){this.autoGenTagsPromise=null,this.reportDataPrivacy=0,this.setReportDataPrivacy=e=>{this.reportDataPrivacy=e},this.api=e}getTags(){return Ms(this,void 0,void 0,function*(){const{usetifulTags:e}=window,t=Object.fromEntries(Object.entries(e||{}).filter(([e,t])=>"userToken"!==e&&!(0,Rs.Hh)(e)&&("userId"===e||null!=t&&""!==t))),s="object"==typeof e?t:{};return s.autoGeneratedTags&&delete s.autoGeneratedTags,3===this.reportDataPrivacy?s:1===this.reportDataPrivacy?Object.fromEntries(Object.entries(s).filter(([e])=>"userId"===e)):2===this.reportDataPrivacy?Object.fromEntries(Object.entries(s).filter(([e])=>"userId"!==e)):4===this.reportDataPrivacy?Object.assign({},yield this.getAutoGenTags()):5===this.reportDataPrivacy?Object.assign(Object.assign({},s),yield this.getAutoGenTags()):{}})}getTag(e){const{usetifulTags:t}=window;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:null}getUserId(){const e=this.getTag("userId");return e&&e!==c?e.toString():null}getUserToken(){const e=this.getTag("userToken");return e?e.toString():null}getAutoGenTags(){return this.autoGenTagsPromise||(this.autoGenTagsPromise=new Promise(e=>{if(window.usetifulTags||(window.usetifulTags={}),window.usetifulTags.autoGeneratedTags&&null!==window.usetifulTags.autoGeneratedTags.country)e(window.usetifulTags.autoGeneratedTags);else{const t=Object.assign(Object.assign({},(()=>{const e=navigator.userAgent;let t,s=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];
1if(/trident/i.test(s[1]))return t=/\brv[ :]+(\d+)/g.exec(e)||[],{browserName:"IE",browserVersion:t[1]||""};if("Chrome"===s[1]&&(t=e.match(/\bOPR|Edge\/(\d+)/),null!=t))return{browserName:"Opera",browserVersion:t[1]};s=s[2]?[s[1],s[2]]:[navigator.appName,navigator.appVersion,"-?"],t=e.match(/version\/(\d+)/i),null!=t&&s.splice(1,1,t[1]);const i={browserName:s[0],browserVersion:s[1]};return Mt?Object.assign(Object.assign({},i),{browserName:"Opera"}):Gt?Object.assign(Object.assign({},i),{browserName:"Firefox"}):Yt?Object.assign(Object.assign({},i),{browserName:"Safari"}):jt?Object.assign(Object.assign({},i),{browserName:"IE"}):Wt?Object.assign(Object.assign({},i),{browserName:"Edge"}):Vt?Object.assign(Object.assign({},i),{browserName:"Chrome"}):Ht?Object.assign(Object.assign({},i),{browserName:"Blink"}):i})()),{browserLanguage:window.navigator.userLanguage||window.navigator.language,deviceType:$s?"Mobile":xs?"Tablet":"Desktop",screenSize:`${window.screen.width} x ${window.screen.height}`,domain:window.location.hostname,url:window.location.href,country:null});window.usetifulTags.autoGeneratedTags=t;const s=this.getCountryFromBrowser();if(s)window.usetifulTags.autoGeneratedTags.country=s,e(window.usetifulTags.autoGeneratedTags);else{const t=this.getGeoipFromCache();if(!t){const t=this.api.get("/geoip");return t.onload=({currentTarget:{status:t,response:s}})=>{if(t>=200&&t<400){const e=JSON.parse(s).country;window.usetifulTags.autoGeneratedTags.country=e,e&&this.setGeoipCache(e)}else window.usetifulTags.autoGeneratedTags.country=null;e(window.usetifulTags.autoGeneratedTags)},void(t.onerror=()=>{window.usetifulTags.autoGeneratedTags.country=null,e(window.usetifulTags.autoGeneratedTags)})}window.usetifulTags.autoGeneratedTags.country=t,e(window.usetifulTags.autoGeneratedTags)}}})),this.autoGenTagsPromise}initializeAutoGenTags(){return this.getAutoGenTags()}areAutoGenTagsReady(){var e;return!!(null===(e=window.usetifulTags)||void 0===e?void 0:e.autoGeneratedTags)}getGeoipFromCache(){try{const e=document.cookie.split(";");for(const t of e){const[e,s]=t.trim().split("=");if(e===Gs.GEOIP_COOKIE_NAME)return decodeURIComponent(s)}return null}catch(e){return null}}setGeoipCache(e){try{const t=new Date;t.setTime(t.getTime()+36e5),document.cookie=`${Gs.GEOIP_COOKIE_NAME}=${encodeURIComponent(e)}; expires=${t.toUTCString()}; path=/`}catch(e){}}getCountryFromBrowser(){var e;try{const t=navigator.language||(null===(e=navigator.languages)||void 0===e?void 0:e[0]);if(t&&t.includes("-")){const e=t.split("-")[1];if(e&&2===e.length)return this.getCountryNameFromCode(e.toUpperCase())}}catch(e){return null}return null}getCountryNameFromCode(e){return{US:"United States",GB:"United Kingdom",DE:"Germany",FR:"France",IT:"Italy",ES:"Spain",NL:"Netherlands",PL:"Poland",CA:"Canada",AU:"Australia",JP:"Japan",CN:"China",IN:"India",BR:"Brazil",RU:"Russia",TR:"Turkey"}[e]||null}}Gs.GEOIP_COOKIE_NAME="uf_geoip";const Ys=Gs;const js=class{constructor(e){this.parseBoolean=e=>!0===(e&&"string"==typeof e?JSON.parse(e):e),this.saveToStorage=()=>{const e=JSON.stringify(this.checklistData);this.progressorApi.saveUserData(this.getLocalStorageKey(),e)},this.progressorApi=e,this.alreadyParsed=!1,this.checklistData=[]}init(){this.processParseData()}destroy(){this.alreadyParsed=!1,this.checklistData=[]}getLocalStorageKey(){return Je}processParseData(){if(this.alreadyParsed)return;const e=this.progressorApi.getUserData(this.getLocalStorageKey()),t=localStorage.getItem(this.getLocalStorageKey());if(e&&"string"==typeof e){const t=JSON.parse(e);this.saveToLocalStorage(t),this.checklistData=t}else t?(this.loadFromLocalStorage(),this.saveToStorage()):this.checklistData=[];this.alreadyParsed=!0}loadFromLocalStorage(){const e=localStorage.getItem(this.getLocalStorageKey());e&&(this.checklistData=JSON.parse(e))}isChecklistDismiss(e=null){if(this.alreadyParsed||this.processParseData(),e&&this.checklistData&&this.checklistData.length>0){const t=this.checklistData.find(t=>t.id===e);if(t)return this.parseBoolean(t.value)}return!1}clearParsedData(){this.checklistData=[],this.alreadyParsed=!1}refreshData(){this.alreadyParsed=!1,this.processParseData()}isAllChecklistsDismissed(e){let t=!0;for(const s of e){const{id:e}=s;this.isChecklistDismiss(e)||(t=!1)}return t}setDismissValue(e,t=null){if(t){this.alreadyParsed||this.processParseData();void 0!==this.checklistData.find(e=>e.id===t)?this.checklistData=this.checklistData.map(s=>s.id===t?Object.assign(Object.assign({},s),{value:e}):s):this.checklistData.push({id:t,value:e}),this.saveToLocalStorage(this.checklistData),this.saveToStorage(),this.progressorApi.saveUserData(this.getLocalStorageKey(),JSON.stringify(this.checklistData))}}saveToLocalStorage(e){localStorage.setItem(this.getLocalStorageKey(),JSON.stringify(e))}clearDismissValue(e=null){e&&(this.checklistData=this.checklistData.filter(t=>t.id!==e),this.saveToLocalStorage(this.checklistData),this.saveToStorage())}},Ws={overlay:"overlay",top:"top",left:"left",right:"right",bottom:"bottom",embedded:"embedded",visible:"visible",answer:"answer",bubble:"bubble",smarttip:"smart-tip",bubbleContent:"bubble-content",bubbleContentWithoutTitle:"bubble-content--without-title",beacon:"beacon",beaconAround:"beacon__around",beaconIconic:"beacon__iconic",beaconIconicQuestion:"beacon__iconic-question",beaconIconicInformation:"beacon__iconic-information",bubbleInvisible:"bubble--invisible",modal:"modal",modalInner:"modal-inner",dotProgressBPadding:"dot-progress--bpadding",circleProgressBPadding:"circle-progress--bpadding",title:"title",checklistTitle:"checklist-title",assistantTitle:"assistant-title",titleWithoutProgress:"title--without-progress",titleWithoutContent:"title--without-content",contentWithDescription:"content--with-description",description:"description",slideout:"slideout",slideoutInner:"slideout-inner",articleInner:"article-inner",actions:"actions",searchBox:"search-box",searchIcon:"search-icon",searchResults:"search-results",actionsPaddingAroun
1d:"actions--padding-around",redirect:"redirect",delay:"delay",condition:"condition",redirectInner:"redirect-inner",triggerEventInner:"trigger-event-inner",pageActionInner:"page-action-inner",buttonMain:"button-main",buttonMainTourSelection:"button-selection",buttonMainBottomLeft:"button-main--bottom-left",buttonMainBottomRight:"button-main--bottom-right",buttonMainTopLeft:"button-main--top-left",buttonMainTopRight:"button-main--top-right",tourSelection:"tour-selection",checklist:"checklist",button:"button",checklistButton:"checklist-button",assistantButton:"assistant-button",surveyButton:"survey-button",buttonIcon:"button-icon",buttonIconRight:"button-icon--right",buttonBlock:"btn-block",checklistButtonBlock:"checklist-btn-block",assistantButtonBlock:"assistant-btn-block",buttonPrimary:"button-primary",buttonClose:"close-button",buttonBack:"back-button",buttonGroup:"button-group",surveyButtonGroup:"survey-button-group",badge:"badge",badgeFree:"free-badge",spaceMaker:"space-maker",spaceMakerPlus:"space-maker--plus",spaceMakerDouble:"space-maker--double",done:"done",content:"content",checklistContent:"checklist-content",assistantContent:"assistant-content",contentWithoutTitle:"content--without-title",feedback:"feedback",required:"required",feedbackThankYouMessage:"feedback-thank-you-message",reaction:"reaction",feedbackTitle:"feedback-title",feedbackTextarea:"feedback-textarea",npsTitles:"feedback-nps-titles",inProgress:"inprogress",progress:"progress",progressValue:"progress-value",dotProgress:"dot-progress",dotProgressRight:"dot-progress--right",dotProgressCenter:"dot-progress--center",dotProgressLeft:"dot-progress--left",dotProgressFree:"dot-progress--free",dotProgressItem:"dot-progress__item",dotProgressActiveItem:"dot-progress__item--active",circleProgress:"circle-progress",circleProgressRight:"circle-progress--right",circleProgressLeft:"circle-progress--left",circleProgressCenter:"circle-progress--center",circleProgressFree:"circle-progress--free",circleProgressInner:"circle-progress__inner",circleProgressBar:"circle-progress__bar",circleProgressBarLeft:"circle-progress__bar--left",circleProgressBarRight:"circle-progress__bar--right",circleProgressProgress:"circle-progress__progress",numberProgress:"number-progress",numberProgressRight:"number-progress--right",numberProgressLeft:"number-progress--left",numberProgressCenter:"number-progress--center",numberProgressFree:"number-progress--free",numberProgressDivider:"number-progress__divider",progressTop:"progress--top",progressBottom:"progress--bottom",progressbar:"progress-bar",assistant:"assistant",notification:"notification",notificationInner:"notification-inner",notificationSearchInner:"notification-inner--search",static:"static",alert:"alert",preview:"preview",pointer:"pointer",bottomAction:"bottom-action",checklistBottomAction:"checklist-bottom-action",svgIcon:"svg-icon",textLeft:"text-left",textRight:"text-right",scrollable:"scrollable",congratulation:"congratulation",errorShake:"error-shake",formFieldset:"form-fieldset",formQuestion:"form-question",validationAlert:"validation-alert",error:"error",stopAnimation:"stop-animation",surveyPage:"survey-page",tourCloseButton:"tour-close-button",surveyCloseButton:"survey-close-button",checklistCloseButton:"checklist-close-button",assistantCloseButton:"assistant-close-button",surveyOptionIndicator:"survey-option-indicator",surveyOptionRadio:"survey-option-indicator--radio",surveyOptionCheckbox:"survey-option-indicator--checkbox",rangeNumericCircle:"range-numeric-circle",rangeStar:"range-star",formSelect:"form-select",rangeStarSelected:"range-star--selected"},Vs=["overlay","pointer"],Hs=["svgIcon"],qs=(e,t)=>{const s={};return Object.keys(Ws).forEach(i=>{Hs.includes(i)?s[i]=Ws[i]:s[i]=`${Vs.includes(i)?t:e}-${Ws[i]}`}),s},Js=(e=null)=>(0,Ot.getClasses)(Ot.UF_CLASSES_PREFIX,qs,(0,Ot.getThemeHashFromURL)(e)),Ks="ufp",zs=(0,Ot.getClasses)(Ot.UF_CLASSES_PREFIX,qs),Xs=((0,Ot.getClasses)(Ks,qs),"redirect"),Qs="delay",Zs="condition",ei="triggerEvent",ti="pageAction",si=/^UsetifulShadowDom\(((?:[^()]*|\([^)]*\))*)\)/,ii=e=>{let t=e.replace(/\[([^\]=~^$*|]+)([=~^$*|]?=)?('[^']*'|"[^"]*"|[^\]]*)?\]/g,(e,t,s,i)=>`[${t.replace(/(?<!\\):/g,"\\:")}${s||""}${i||""}]`);return t=t.split(/(["'][^"']*["'])/).map((e,t)=>t%2==0?e.replace(/\\\\/g,"\\"):e).join(""),t},ri=e=>{if(!e)return!1;if((e.match(/\(/g)||[]).length!==(e.match(/\)/g)||[]).length)return!1;try{const t=si.test(e)?ci(e):e;return document.createDocumentFragment().querySelector(ii(t)),!0}catch(e){return!1}},ni=(e,t)=>{if(!t)return Array.from(e);if(!t.text)return[];const s=Array.from(e);return"contains"===t.filterType?s.filter(e=>{var s;return null===(s=e.textContent)||void 0===s?void 0:s.includes(t.text)}):s.filter(e=>{var s;return(null===(s=e.textContent)||void 0===s?void 0:s.trim())===t.text})},oi=e=>{var t,s;const i=ii(e),{shadowDomSelector:r,childSelector:n}=(e=>{const t=e.match(si);return t?{shadowDomSelector:t[1].trim(),childSelector:ci(e)}:{shadowDomSelector:null,childSelector:e}})(i);if(r){const e=document.querySelector(r);return null!==(s=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelectorAll(n))&&void 0!==s?s:document.querySelectorAll(n)}return document.querySelectorAll(n)},ai=(e,t,s)=>{var i;if(!e)return null;try{const r=oi(e);if(!r.length){if(s)try{return s()}catch(e){return console.error("Usetiful: Fallback function failed",e),null}return null}const n=t?ni(r,t):Array.from(r);return null!==(i=null==n?void 0:n[0])&&void 0!==i?i:null}catch(t){return console.error(`Usetiful: Invalid selector ${e}`,t),null}},li=(e,t)=>{if(!e)return[];try{const s=oi(e);return s.length?t?ni(s,t):Array.from(s):[]}catch(t){return console.error(`Usetiful: Invalid selector ${e}`,t),[]}},ci=e=>{const t=hi(e);return(null==t?void 0:t.childSelector)||e},ui=e=>{var t,s;const i=hi(e);return{shadowDomSelector:null!==(t=null==i?void 0:i.shadowDomSelector)&&void 0!==t?t:null,childSelector:null!==(s=null==i?void 0:i.childSelector)&&void 0!==s?s:e,isAShadowDomSelector:!!i}},di=e=>"number"==typeof e?e:"string"!=typeof e?NaN:e.includes(".")?parseFloat(e):parseInt(e,10),hi=e=>{const t="UsetifulShadowDom(";if(!e.startsWith(t))return null;let s=0;for(let t=18;t<e.length;t+=1)if("("===e[t])s+=1;else if(")"===e[t]){if(0===s){const s=e.slice(18,t),i=e.slice(t+1).trim();return{shadowDomSelector:s.trim(),childSelector:i}}s-=1}return null},gi=(e,t)=>null!==e&&t in e,pi=(e,t)=>e&&gi(e,"nodeName")&&e.nodeName.toLowerCase()===t,mi=e=>{var t;mt("called destroyElement"),e instanceof HTMLElement&&(null===(t=e.parentNode)||void 0===t||t.removeChild(e))},Ti=e=>{const t=ai(e);t instanceof HTMLElement&&(mt(`called destroyElementBySelector ${e}`),mi(t))},Si=(e,t)=>null!==e.closest(ci(t));var fi=s(3339);const vi="top",Ei="right",_i="bottom",yi="left",Oi="top-left",Ii="top-right",Ri="bottom-left",wi="bottom-right",bi="Show Content";class Ai{constructor(e,t,s){this.setTheme=e=>{this.template.setTheme(e)},this.getButtonLabelContent=(e,t=0)=>{let s=`${e}`;return t&&t>0&&(s+=`<span class="${this.template.themeClasses.badge}">${t}</span>`),s},this.template=t,this.container=e,s&&(this.config=s)}getButtonElement(){return this.id?document.querySelector(`[data-uf-id="${this.id}"][data-uf-button="button-main"]`):document.querySelector('[data-uf-button="button-main"]')}static isButtonVisible(e){var t;return"boolean"==typeof e?e:null!==(t=null==e?void 0:e.visible)&&void 0!==t&&t}static isButtonCollapsed(e){var t;return"boolean"!=typeof e&&(null!==(t=null==e?void 0:e.collapsed)&&void 0!==t&&t)}static getButtonLabel(e,t){var s;return"boolean"==typeof e?t:null!==(s=null==e?void 0:e.label)&&void 0!==s?s:t}getButtonAlignmentClass(e){const t=this.template.themeClasses.buttonMainBottomRight;if("boolean"==typeof e||!(null==e?void 0:e.alignment))return t;return{[Oi]:this.template.themeClasses.buttonMainTopLeft,[Ii]:this.template.themeClasses.buttonMainTopRight,[Ri]:this.template.themeClasses.buttonMainBottomLeft,[wi]:t}[e.alignment]||t}static getButtonPositionStyles(e){if("boolean"==typeof e)return{};const t={};return(null==e?void 0:e.alignment)&&e.alignment!==wi&&(t[`--${zs.prefix}-button-position`]=e.alignment),void 0!==(null==e?void 0:e.offsetHorizontal)&&null!==e.offsetHorizontal&&(t[`--${zs.prefix}-button-offset-horizontal`]=`${e.offsetHorizontal}px`),void 0!==(null==e?void 0:e.offsetVertical)&&null!==e.offsetVertical&&(t[`--${zs.prefix}-button-offset-vertical`]=`${e.offsetVertical}px`),t}setConfig(e){this.config=e}getConfig(){return this.config}show(){if(!this.config)throw new Error("Button configuration not set. Call setConfig() first.");if(!this.shouldShow())return;const e=this.shouldAutoOpen();this.config.theme&&this.config.themeSlug?this.container.get(on.CssThemeLoader).loadTheme(this.config.theme,this.config.themeSlug).then(t=>{var s;this.setTheme(t),this.createButton(),e&&(null===(s=this.config)||void 0===s||s.onClick())}):(this.createButton(),e&&this.config&&this.config.onClick())}shouldShow(){return!!this.config&&Ai.isButtonVisible(this.config.button)}shouldAutoOpen(){var e,t;return!!this.config&&(!!this.config.forceCollapsed||("boolean"==typeof this.config.button||!0!==(null===(e=this.config.button)||void 0===e?void 0:e.collapsed))&&("boolean"!=typeof this.config.button&&!1===(null===(t=this.config.button)||void 0===t?void 0:t.collapsed)))}createButton(){var e;if(!this.config)return;const t=`button_${this.config.id}`,s=this.getButtonLabel();this.prepareMainButton(t,s,this.config.onClick,null!==(e=this.config.alignment)&&void 0!==e?e:null,this.config.button)}getButtonLabel(){var e,t;if(!this.config)return bi;const s=null!==(t=null!==(e=Ai.getButtonLabel(this.config.button,this.config.defaultLabel))&&void 0!==e?e:this.config.defaultLabel)&&void 0!==t?t:bi;return this.getButtonLabelContent(s,this.config.badge)}destroy(){mi(this.getButtonElement()),this.config=void 0}isVisible(){return!!this.getButtonElement()}getId(){return this.id}getTargetElement(e){if("boolean"==typeof e||!(null==e?void 0:e.element))return null;try{const t=document.querySelector(e.element);return t||(mt(`Button element not found: ${e.element}. Using default positioning.`),null)}catch(t){return mt(`Invalid button element selector: ${e.element}. Using default positioning.`),null}}prepareMainButton(e,t,s,i=null,r){if(mt("prepareMainButton called"),document.querySelector(`[data-uf-button="button-main"][data-uf-id="${e}"]`))return;mi(this.getButtonElement()),this.id=e;const n=this.template.createLink((0,x.wQ)(t),this.template.themeClasses.buttonMain);n.dataset.ufId=e,n.setAttribute("style","display:none");const o=(0,x.wQ)(t);s&&n.addEventListener("click",e=>{s(),e.stopImmediatePropagation(),e.preventDefault(),(0,Kt.ep)({id:`${fi.t9.button}${fi.dn.click}
1`,contentId:this.id,contentName:o})},!1);const a=this.getTargetElement(r);if(a){a.appendChild(n),n.style.position="absolute";const e=getComputedStyle(a).position;"static"!==e&&""!==e||(a.style.position="relative")}else{const e=document.body;e&&e.appendChild(n)}n.classList.add(zs.visible),this.addAlignmentClass(n,r,i),this.addPositionStyles(n,r),(0,Kt.ep)({id:`${fi.t9.button}${fi.dn.show}`,contentId:this.id,contentName:o})}addAlignmentClass(e,t,s){const i=this.getFinalAlignment(t,s);let r=null;i&&(r=this.getAlignmentClassByPosition(i)),r||(r=this.getDefaultAlignmentClass(t)),r&&e.classList.add(r)}getFinalAlignment(e,t){return e&&"boolean"!=typeof e&&e.alignment?e.alignment:t||null}addPositionStyles(e,t){if(t){const s=Ai.getButtonPositionStyles(t);Object.entries(s).forEach(([t,s])=>{e.style.setProperty(t,s)})}}getAlignmentClassByPosition(e){return{[Oi]:this.template.themeClasses.buttonMainTopLeft,[Ii]:this.template.themeClasses.buttonMainTopRight,[Ri]:this.template.themeClasses.buttonMainBottomLeft,[wi]:this.template.themeClasses.buttonMainBottomRight}[e]||null}getDefaultAlignmentClass(e){return e?this.getButtonAlignmentClass(e):this.template.themeClasses.buttonMainBottomRight}}const Pi=Ai,Ci=e=>{if(e&&e.eventName){window.usetiful_activeTriggersOnElements.some(t=>t.eventName===e.eventName&&(!e.elementSelector||t.elementSelector===e.elementSelector))||window.usetiful_activeTriggersOnElements.push(e)}},Li=e=>{const t=window.usetiful_activeTriggersOnElements.indexOf(e);mt(`removing item on index ${t} from active triggers`),window.usetiful_activeTriggersOnElements.splice(t,1)};class Ni{constructor(e,t){this.setAppearTrigger=()=>{mt(`setAppearTrigger called for ${this.elementSelector} ...`);const e=2*this.loop;let t=!1,s=1;if(!this.availableOnPage.checkTriggerURL(this.trigger)||this.isInitial&&this.availableOnPage.isElementVisibleOnPage(this.elementSelector))return mt(`Element ${this.elementSelector} exist on the page so the trigger doesn't need to be placed.`),!1;const i=window.setInterval(()=>{mt(`${this.id}: ${s} / ${e}: Waiting on the element '${this.elementSelector}' to appear...`),!t&&this.availableOnPage.isTriggable(this)&&this.triggerFunction?(mt(`${this.id}: Element appeared`),t=!0,this.removeAppearTrigger(),this.triggerFunction()):-1===this.loop||e&&s<e?s+=1:t?this.isInitial&&!this.availableOnPage.isTriggable(this)&&(t=!1,mt(`${this.id}: Element disappeared`)):e&&(this.removeAppearTrigger(),this.failFunction?this.failFunction():this.altSolution&&this.altSolution())},500);return this.intervalId=i,!0},this.removeAppearTrigger=()=>{mt(`${this.id}: removeAppearTrigger called.`),this.intervalId&&(clearInterval(this.intervalId),Li(this),mt(`${this.id}: interval removed.`))},this.trigger=e,this.id=(+new Date).toString(36),this.eventType=e.type,this.eventName=this.eventType,this.eventType===r&&(this.eventName=e.name),this.loop=e.loop?parseInt(e.loop,10):0,this.url=e.url,this.elementSelector=e.element;const s=ui(this.elementSelector||"");this.shadowHostSelector=s.isAShadowDomSelector?s.shadowDomSelector:null,this.shadowChildSelector=s.isAShadowDomSelector?s.childSelector:null,this.isInitial=!1,this.isChecklistItem=!1,this.isSurvey=!1,this.isProgressOnClick=!1,this.failFunction=void 0,this.triggerFunction=()=>{},this.reverseTriggerFunction=()=>{},this.availableOnPage=t}}const ki=["click","mouseup","wheel","touchmove","mouseover"],Di=e=>ki.includes(e),Ui=(e,t,s,i,r)=>{let n=null;for(const e of i)if(e instanceof Element)try{if(e.matches(t)&&e.shadowRoot){n=e.shadowRoot;break}}catch(e){return Tt(`matchesShadowDomSelector: Invalid shadow host selector "${t}"`),!1}if(!n)return!1;const o=e=>(null==e?void 0:e.getRootNode())===n;if(!(e instanceof Element))return!1;try{if(e.matches(s)&&o(e))return!0;if(Di(r)){for(let e=1;e<i.length;e++){const t=i[e];if(t===n)break;if(t instanceof Element)try{if(t.matches(s)&&o(t))return!0}catch(e){return Tt(`matchesShadowDomSelector: Invalid child selector "${s}"`),!1}}if("a"===e.tagName.toLowerCase()&&o(e)&&null!==e.querySelector(s))return!0}}catch(e){return Tt(`matchesShadowDomSelector: Invalid child selector "${s}"`),!1}return!1},Fi=(e,t)=>t.checkTriggerURL(e),$i=(e,t)=>{const s=(0,x.wQ)(e);
1setTimeout(()=>{if(t){const e=window.open(s,"_blank");null==e||e.focus()}else window.location.href=s||"",(e=>e.includes("#"))(s)&&window.USETIFUL.reinitialize()},1)},xi=e=>{var t;return!Bi(window.location.href,null!==(t=e.url)&&void 0!==t?t:"/")},Bi=(e,t)=>{if(t.startsWith("/")||t.startsWith("."))return!0;try{const s=new URL(e),i=new URL(t),r=e=>e.toLowerCase().replace(/^www\./,"");return s.protocol===i.protocol&&r(s.hostname)===r(i.hostname)&&s.port===i.port}catch(e){return console.warn(e instanceof Error?e.message:"Invalid URL encountered"),!1}};class Mi{constructor(e){this.placeTrigger=e=>{if(e&&this.isTriggerMissing(e)&&"appears"!==e.eventType){if(mt(`placeTrigger: Event ${e.eventName} on url: ${e.url} and element: ${e.elementSelector} with loop:${e.loop}.`),e.eventType===r){Ci(e);if(e.elementSelector&&ai(e.elementSelector)&&"window"!==e.elementSelector){const t=ai(e.elementSelector);t&&t.addEventListener(e.eventName,this.centralEventListener)}else this.placeCentralListener(e.eventName,e.elementSelector);return}switch(Ci(e),e.eventName){case"hover":{e.eventName="mouseover";const t=this.getTrigger({trigger:e.trigger,successFunction:e.reverseTriggerFunction,eventName:"mouseout",stepId:e.stepId});t&&(Ci(t),this.placeCentralListener(t.eventName,e.elementSelector));break}case"focus":e.eventName="focusin";break;case"mouseenter":e.eventName="mouseover";break;case"click":e.eventName="mouseup";break;case"wheel":{const t=this.getTrigger({trigger:e.trigger,successFunction:e.triggerFunction,eventName:"touchmove",stepId:e.stepId,isInitial:e.isInitial,isProgressOnClick:e.isProgressOnClick});t&&(Ci(t),this.placeCentralListener("touchmove",e.elementSelector));break}}this.placeCentralListener(e.eventName,e.elementSelector)}},this.getTrigger=e=>{const{trigger:t,successFunction:s,altSolution:i,failFunction:r,isInitial:n,stepId:o,eventName:a,isProgressOnClick:l}=e;if(!t)return null;const c=new Ni(t,this.availableOnPage);return void 0!==s&&(c.triggerFunction=s),void 0!==i&&(c.altSolution=i),void 0!==r&&(c.failFunction=r),void 0!==n&&(c.isInitial=n),void 0!==o&&(c.stepId=o),void 0!==a&&(c.eventName=a),void 0!==l&&(c.isProgressOnClick=l),c},this.placeAppearsTrigger=e=>{let t=!1;return this.availableOnPage.checkTriggerURL(e.trigger)&&(t=e.setAppearTrigger()),t},this.centralEventListener=e=>{var t;const s=e.target||e.srcElement||e.currentTarget||window;if(mt(`centralEventListener: called with event ${e.type} on element: ${s}`,!0),!(s instanceof Element||s instanceof HTMLElement||s instanceof Window||s===window))return;const i=null===(t=e.composedPath)||void 0===t?void 0:t.call(e),r=this.searchInActiveTriggers(e.type,s,i);var n;n=s,ke&&console.log(n),r.forEach(t=>{t.stepId?t.triggerFunction(t.stepId):t.isChecklistItem&&t.checklistItemId?t.triggerFunction(t.checklistItemId):t.triggerFunction(e)})},this.updateListeners=()=>{mt("Updating listeners on window.usetiful_activeTriggersOnElements..."),window.usetiful_activeListeners&&window.usetiful_activeListeners.forEach(e=>{window.removeEventListener(e,this.centralEventListener)}),window.usetiful_activeListeners=[],window.usetiful_activeTriggersOnElements.forEach(e=>{this.placeCentralListener(e.eventName,e.elementSelector)})},this.placeCentralListener=(e,t)=>{const s=ui(t||"");if(s.isAShadowDomSelector&&s.shadowDomSelector){document.querySelector(s.shadowDomSelector)||Tt(`placeCentralListener: Shadow host "${s.shadowDomSelector}" not found in DOM. Listener bound to window; will match via composedPath() when host appears.`)}e&&window.usetiful_activeListeners&&-1===window.usetiful_activeListeners.indexOf(e)&&(window.addEventListener(e,this.centralEventListener),window.usetiful_activeListeners.push(e))},this.removeCentralListener=e=>{if(!window.usetiful_activeListeners)return;const t=window.usetiful_activeListeners.indexOf(e);t>-1&&window.usetiful_activeListeners.splice(t,1)},this.hasProgressOnClickTrigger=e=>{const t=this.searchInActiveTriggers("mouseup",e);for(let e=0;e<t.length;e+=1)if(t[e].isProgressOnClick)return!0;return!1},this.isAppearsTrigger=e=>!!e&&"appears"===(null==e?void 0:e.type)&&""!==(null==e?void 0:e.element),this.isTriggerMissing=e=>{if(!e)return!1;const t=this.searchInActiveTriggers(e.eventName,e.elementSelector);let s=!1;return t.forEach(t=>{t.isChecklistItem===e.isChecklistItem&&t.isProgressOnClick===e.isProgressOnClick&&t.isInitial===e.isInitial&&(s=!0)}),!s},this.searchInActiveTriggers=(e,t,s)=>{const i=window.usetiful_activeTriggersOnElements,r=t,n=[];for(let t=0;t<i.length;
1t+=1){const o=i[t],a="hover"===e||"focus"===e||"mouseenter"===e||"click"===e?o.eventType===e:o.eventName===e;if(Fi(o.trigger,this.availableOnPage)&&a){const t=o.elementSelector;let i=!1;if("string"==typeof r)i=t===r;else{const n=!t||"window"===t;if(o.shadowHostSelector&&o.shadowChildSelector&&(null==s?void 0:s.length)){const t=s[0];t instanceof Element&&(i=Ui(t,o.shadowHostSelector,o.shadowChildSelector,s,e))}else{(n?window:ai(t))===r||n?i=!0:!r||r instanceof Window||n||!Di(e)||(i=Si(r,t),!i&&pi(r,"a")&&(i=r&&null!==r.querySelector(t)))}}i&&n.push(o)}}return n},this.removeAllTriggers=e=>{mt("removeAllTriggers called");[...window.usetiful_activeTriggersOnElements].forEach((t,s)=>{if(!e&&t.isInitial&&(t.isChecklistItem||t.isSurvey))return;if(mt(`item ${s}...`),t.eventType===r){if(Li(t),window.removeEventListener(t.eventName,this.centralEventListener),t.elementSelector&&"window"!==t.elementSelector){const e=document.querySelector(t.elementSelector);e&&e.removeEventListener(t.eventName,this.centralEventListener)}return}"appears"===t.eventName?(Li(t),t.removeAppearTrigger()):Li(t)}),this.updateListeners()},this.triggersClearance=e=>{mt("triggersClearance: Removing triggers from window.usetiful_activeTriggersOnElements..."),window.usetiful_activeTriggersOnElements&&window.usetiful_activeTriggersOnElements.length>0&&(this.removeAllTriggers(e),e&&window.usetiful_activeTriggersOnElements.length>0&&Tt("triggersClearance: No all active triggers were removed"))},window.usetiful_activeTriggersOnElements||(window.usetiful_activeTriggersOnElements=[]),window.usetiful_activeListeners||(window.usetiful_activeListeners=[]),this.availableOnPage=e}}var Gi=s(8338);const Yi=["Win32","Win64","Windows","WinCE"].indexOf(window.navigator.platform)>-1,ji=["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(window.navigator.platform)>-1,Wi=["iPhone","iPad","iPod"].indexOf(window.navigator.platform)>-1,Vi=/Android/.test(window.navigator.userAgent),Hi=/Linux/.test(window.navigator.platform);class qi{constructor(e){this.getWildcardCharacter=()=>this.wildcard,this.containWildcard=e=>e.indexOf(this.wildcard)>-1,this.getWildcardIndexes=(e,t=this.wildcard)=>{const s=[];let i=e.indexOf(t,0);for(;i>=0;)s.push(i),i=e.indexOf(t,i+1);return s},this.checkWildcardURLExact=(e,t)=>{if(""===e.replace(new RegExp(this.wildcard,"g"),""))return!0;const s=e.split(this.getWildcardCharacter()),i=this.getWildcardIndexes(e),r=e.indexOf(s[0])>i[0]||s[0]===e.substring(0,i[0]),n=e.indexOf(s[s.length-1])<i[0]||s[s.length-1]===e.substring(i[i.length-1]+this.wildcard.length);return this.checkWildcardURLContains(e,t)&&r&&n},this.checkWildcardURLContains=(e,t)=>{const s=e.split(this.getWildcardCharacter());if(s.length>2){const e=[];for(let i=0;i<s.length-1;i++){const r=`${s[i]}${this.getWildcardCharacter()}${s[i+1]}`;e.push(this.checkWildcardStringContains(r,t))}return!e.includes(!1)}return this.checkWildcardStringContains(e,t)},this.checkWildcardStringContains=(e,t)=>{if(""===e.replace(new RegExp(this.wildcard,"g"),""))return!0;const s=e.indexOf(this.wildcard),i=e.substring(0,s),r=e.substring(s+this.wildcard.length),n=t.indexOf(i),o=t.indexOf(r);return!(i.length>0&&-1===n||r.length>0&&-1===o||i&&r&&n+i.length>o)},this.wildcard=e}}var Ji=s(7228),Ki=s(1330),zi=s(8413),Xi=s(6760);class Qi{constructor(e,t,s){this.checkIfInputContainWildcard=e=>this.wildcard.containWildcard(e),this.checkWildcardURLExact=e=>this.wildcard.checkWildcardURLExact(e,this.location),this.checkWildcardURLContains=e=>this.wildcard.checkWildcardURLContains(e,this.location),this.checkURL=e=>{if(this.checkIfInputContainWildcard(e))return this.checkWildcardURLExact(e);try{return new RegExp(e,"i").test(this.location)}catch(t){return console.warn(`Entered regular expression'${e}' isn't valid.`),!1}},this.checkURLSimple=e=>this.checkIfInputContainWildcard(e)?this.checkWildcardURLContains(e):this.location.indexOf(e)>-1,this.checkURLNotContain=e=>this.checkIfInputContainWildcard(e)?!this.checkWildcardURLContains(e):-1===this.location.indexOf(e),this.checkURLExact=e=>this.checkIfInputContainWildcard(e)?this.checkWildcardURLExact(e):this.location===e,this.checkTag=(e,t,s)=>{var i,r,n;const o=s===Gi.TAG_OPERATOR_IS_NOT||s===Gi.TAG_OPERATOR_NOT_CONTAINS||s===Gi.TAG_OPERATOR_IS_NOT_ONE_OF||s===Gi.TAG_OPERATOR_NOT_EXISTS;let a;if(void 0!==(null===(r=null===(i=window.usetifulTags)||void 0===i?void 0:i.autoGeneratedTags)||void 0===r?void 0:r[e]))a=window.usetifulTags.autoGeneratedTags[e];else{if(void 0===(null===(n=window.usetifulTags)||void 0===n?void 0:n[e]))return!!o;a=window.usetifulTags[e]}return null===a?!!o:s===Gi.TAG_OPERATOR_EXISTS||s!==Gi.TAG_OPERATOR_NOT_EXISTS&&this.checkValue(t,a,s)},this.checkVariable=(e,t,s)=>{const i=(e=>{if(Array.isArray(window.dataLayer))for(let t=window.dataLayer.length-1;t>=0;t=-1){const s=window.dataLayer[t];if(s&&e in s)return s[e]}})(e),r=s===Gi.TAG_OPERATOR_IS_NOT||s===Gi.TAG_OPERATOR_NOT_CONTAINS||s===Gi.TAG_OPERATOR_IS_NOT_ONE_OF||s===Gi.TAG_OPERATOR_NOT_EXISTS;return null==i?!!r:s===Gi.TAG_OPERATOR_EXISTS||s!==Gi.TAG_OPERATOR_NOT_EXISTS&&this.checkValue(t,i,s)},this.checkFSVariable=(e,t,s)=>{const i=(0,Ki.D)(e),r=s===Gi.TAG_OPERATOR_IS_NOT||s===Gi.TAG_OPERATOR_NOT_CONTAINS||s===Gi.TAG_OPERATOR_IS_NOT_ONE_OF||s===Gi.TAG_OPERATOR_NOT_EXISTS;return null==i?!!r:s===Gi.TAG_OPERATOR_EXISTS||s!==Gi.TAG_OPERATOR_NOT_EXISTS&&this.checkValue(t,i,s)},this.looksLikeSuffixedKey=e=>zi.Zb.some(t=>e.endsWith(t)),this.checkUserProperty=(e,t,s,i)=>{const r=s===Gi.USER_PROPERTY_OPERATOR_IS_NOT||s===Gi.USER_PROPERTY_OPERATOR_NOT_CONTAINS||s===Gi.USER_PROPERTY_OPERATOR_IS_NOT_ONE_OF||s===Gi.USER_PROPERTY_OPERATOR_NOT_EXISTS,n=(0,Xi.k$)();let o;if(i&&this.looksLikeSuffixedKey(e))o=n[`${e}_${i}`];else if(o=n[e],null==o&&i){o=n[`${e}_${i}`]}if(null==o)for(const t of zi.Zb){const s=`${e}${t}`;if(s in n){o=n[s];break}}if(null==o)return!!r;if(s===Gi.USER_PROPERTY_OPERATOR_EXISTS)return!0;
1if(s===Gi.USER_PROPERTY_OPERATOR_NOT_EXISTS)return!1;const a=this.normalizeUserPropertyOperator(s);return Array.isArray(o)?this.checkArrayValue(t,o,a,i):this.checkValue(t,o,a,i)},this.normalizeUserPropertyOperator=e=>{if(!e)return e;return{[Gi.USER_PROPERTY_OPERATOR_IS]:Gi.TAG_OPERATOR_IS,[Gi.USER_PROPERTY_OPERATOR_IS_NOT]:Gi.TAG_OPERATOR_IS_NOT,[Gi.USER_PROPERTY_OPERATOR_CONTAINS]:Gi.TAG_OPERATOR_CONTAINS,[Gi.USER_PROPERTY_OPERATOR_NOT_CONTAINS]:Gi.TAG_OPERATOR_NOT_CONTAINS,[Gi.USER_PROPERTY_OPERATOR_HIGHER]:Gi.TAG_OPERATOR_HIGHER,[Gi.USER_PROPERTY_OPERATOR_LOWER]:Gi.TAG_OPERATOR_LOWER,[Gi.USER_PROPERTY_OPERATOR_IS_ONE_OF]:Gi.TAG_OPERATOR_IS_ONE_OF,[Gi.USER_PROPERTY_OPERATOR_IS_NOT_ONE_OF]:Gi.TAG_OPERATOR_IS_NOT_ONE_OF,[Gi.USER_PROPERTY_OPERATOR_EXISTS]:Gi.TAG_OPERATOR_EXISTS,[Gi.USER_PROPERTY_OPERATOR_NOT_EXISTS]:Gi.TAG_OPERATOR_NOT_EXISTS}[e]||e},this.extractDateOnly=(e,t)=>{if(/([Zz]|[+-]\d{2}:?\d{2})$/.test(e)){const t=new Date(e);return isNaN(t.getTime())?null:Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}return Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10))},this.compareDatesOnly=(e,t)=>{const s=/^(\d{4})-(\d{2})-(\d{2})/,i=e.match(s),r=t.match(s);if(!i&&!r)return null;if(!i||!r)return{useStringFallback:!0};const n=this.extractDateOnly(e,i),o=this.extractDateOnly(t,r);return null===n||null===o?{useStringFallback:!0}:{propDateOnly:n,condDateOnly:o}},this.checkValue=(e,t,s,i)=>{var r,n,o,a;const l=di(e),c=l.toString()===e,u=Number.isNaN(l);switch(s){case Gi.TAG_OPERATOR_IS:{const s=t.toString(),i=null!==(r=null==e?void 0:e.toString())&&void 0!==r?r:"",n=this.compareDatesOnly(s,i);return n?n.useStringFallback?s===i:n.propDateOnly===n.condDateOnly:s===i||(u?t===l&&c:di(t)===l&&c)}case Gi.TAG_OPERATOR_IS_NOT:{const s=t.toString(),i=null!==(n=null==e?void 0:e.toString())&&void 0!==n?n:"",r=this.compareDatesOnly(s,i);if(r)return r.useStringFallback?s!==i:r.propDateOnly!==r.condDateOnly;const o=s!==i,a=di(t)!==l;return o||(u?t!==l&&c:a&&c)}case Gi.TAG_OPERATOR_CONTAINS:return t.toString().includes(e);case Gi.TAG_OPERATOR_NOT_CONTAINS:return!t.toString().includes(e);case Gi.TAG_OPERATOR_IS_ONE_OF:if(!e)return!1;return e.split("\n").map(e=>e.trim()).filter(e=>e.length>0).some(e=>{if(e.toString()===t.toString())return!0;const s=di(e);return"str"!==i&&!Number.isNaN(s)&&String(s)===e.toString()&&s===di(t)});case Gi.TAG_OPERATOR_IS_NOT_ONE_OF:if(!e)return!0;return!e.split("\n").map(e=>e.trim()).filter(e=>e.length>0).some(e=>{if(e.toString()===t.toString())return!0;const s=di(e);return"str"!==i&&!Number.isNaN(s)&&String(s)===e.toString()&&s===di(t)});case Gi.TAG_OPERATOR_HIGHER:{const s=t.toString(),i=null!==(o=null==e?void 0:e.toString())&&void 0!==o?o:"";if("number"==typeof t&&"number"==typeof e)return t>e;const r=this.compareDatesOnly(s,i);if(r)return r.useStringFallback?s>i:r.propDateOnly>r.condDateOnly;const n="number"==typeof t?t:di(t);return Number.isNaN(n)||Number.isNaN(l)?s>i:n>l}case Gi.TAG_OPERATOR_LOWER:{const s=t.toString(),i=null!==(a=null==e?void 0:e.toString())&&void 0!==a?a:"";if("number"==typeof t&&"number"==typeof e)return t<e;const r=this.compareDatesOnly(s,i);if(r)return r.useStringFallback?s<i:r.propDateOnly<r.condDateOnly;const n="number"==typeof t?t:di(t);return Number.isNaN(n)||Number.isNaN(l)?s<i:n<l}default:return t.toString()===(null==e?void 0:e.toString())||(u?t===l&&c:di(t)===l&&c)}},this.checkArrayValue=(e,t,s,i)=>{const r=[Gi.TAG_OPERATOR_IS_NOT,Gi.TAG_OPERATOR_NOT_CONTAINS,Gi.TAG_OPERATOR_IS_NOT_ONE_OF];return s&&r.includes(s)?t.every(t=>this.checkValue(e,t,s,i)):t.some(t=>this.checkValue(e,t,s,i))},this.checkSegment=(e,t)=>{const s=t===Gi.USER_SEGMENT_OPERATOR_IS_NOT,i=window.usetifulTags,r=null==i?void 0:i[fe],n=null==i?void 0:i[ge];if(!i||!Array.isArray(r)&&!n)return!!s;const o=[];return Array.isArray(r)&&o.push(...r),"string"==typeof n&&o.push(n),null===o?!!s:t===Gi.USER_SEGMENT_OPERATOR_IS_NOT?!o.includes(e):o.includes(e)},this.checkFSSegment=(e,t)=>{const s=t===Gi.FS_SEGMENT_OPERATOR_IS_NOT;if(!e)return s;const i=(()=>{if("undefined"==typeof window||!window.localStorage)return[];const e=(0,Ot.getFromLocalStorage)("gs_fsSegments");return Array.isArray(e)?e.map(e=>String(e)):[]})().includes(e);return s?!i:i},this.checkExperiment=e=>{var t,s;if(!window.usetifulTags||!Array.isArray(null===(t=window.usetifulTags)||void 0===t?void 0:t[Se]))return!1;const i=null===(s=window.usetifulTags)||void 0===s?void 0:s[Se];return null==i?void 0:i.includes(e)},this.refreshURL=()=>{this.location=window.location.href},this.checkElement=({elementSelector:e,value:t="",filterOptions:s})=>{if(ri(e)){const i=li(e,s);if(i.length){if(!t)return!0;const e=new RegExp(t);return i.some(t=>{var s;return e.test((null!==(s=t.textContent)&&void 0!==s?s:"").trim())})}}return!1},this.checkAttribute=(e,t,s)=>{if(ri(e)){const i=ai(e);if(i){const e=i.getAttribute(t);return!(!e||!s)&&new RegExp(s).test(e.trim())}}return!1},this.checkTriggerURL=e=>!!e&&(!e.url||""!==e.url&&this.checkURL(e.url)),this.checkDevice=e=>{let t=!1;switch(e){case Gi.DEVICE_TYPE_ALL_TYPES:t=!0;break;case Gi.DEVICE_TYPE_DESKTOP:t=Bs;break;case Gi.DEVICE_TYPE_MOBILE:t=$s;break;case Gi.DEVICE_TYPE_TABLET:t=xs}return t},this.checkBrowser=e=>{let t=!1;switch(e){case Gi.BROWSER_TYPE_ALL_TYPES:t=!0;break;case Gi.BROWSER_TYPE_CHROME:t=Vt;break;case Gi.BROWSER_TYPE_FIREFOX:t=Gt;break;case Gi.BROWSER_TYPE_SAFARI:t=Yt;break;case Gi.BROWSER_TYPE_OPERA:t=Mt;break;case Gi.BROWSER_TYPE_IE:t=jt;break;case Gi.BROWSER_TYPE_EDGE:t=Wt;break;case Gi.BROWSER_TYPE_BLINK:t=Ht}return t},this.checkOS=e=>{let t=!1;switch(e){case Gi.OS_TYPE_ALL_TYPES:t=!0;break;case Gi.OS_WIN:t=Yi;break;case Gi.OS_MAC:t=ji;break;case Gi.OS_IOS:t=Wi;break;case Gi.OS_ANDROID:t=Vi;break;case Gi.OS_LINUX:t=Hi}return t},this.checkTargetEntity=(e,t,s,i)=>{if(e[t])return!0;const r=[];return Object.keys(e).forEach(t=>{e[t]&&r.push(s(t))}),i?r.every(e=>e):r.some(e=>e)},this.checkBrowserLanguage=e=>window.navigator&&window.navigator.language.indexOf(e)>-1,this.checkLS=(e,t)=>localStorage.getItem(e)===t,this.checkTourState=(e,t)=>
1{const s="state",i=this.api,r=null==i?void 0:i.getStoredObjectData(e);switch(t){case"not-started":return null===r;case"completed":return!!this.completionApi&&this.completionApi.isCompleted(n,parseInt(e,10));default:if(r&&r[s])return r[s]===t}return!1},this.checkChecklistState=(e,t)=>{switch(t){case"dismissed":return!!this.dismiss&&this.dismiss.isChecklistDismiss(e);case"completed":return!!this.completionApi&&this.completionApi.isCompleted("checklist",e);default:return!1}},this.checkReferrerURL=(e,t)=>t?document.referrer===e:document.referrer.indexOf(e)>-1,this.evaluate=(e,t,s)=>e?t&&s:t||s,this.checkByTargets=(e,t)=>{let s=!1;const i=!t||0===t;let r=!1,n=!1,o=!1;const a={},l={},c={};return!e||0===e.length||(Array.isArray(e)&&(i&&(s=!0),e.forEach(e=>{var t,u,d,h;switch(e.type){case Gi.URL_ADDRESS_EXACT:s=this.evaluate(i,s,this.checkURLExact(e.url));break;case Gi.URL_ADDRESS_SIMPLE:s=this.evaluate(i,s,this.checkURLSimple(e.url));break;case Gi.URL_ADDRESS_NOT_CONTAIN:s=this.evaluate(i,s,this.checkURLNotContain(e.url));break;case Gi.URL_ADDRESS_TYPE:s=this.evaluate(i,s,this.checkURL(e.url));break;case Gi.TAG_TARGET_TYPE:s=this.evaluate(i,s,this.checkTag(e.name,e.text,e.operator));break;case Gi.USER_PROPERTY_TARGET_TYPE:s=this.evaluate(i,s,this.checkUserProperty(e.name,e.text,e.operator,e.propertyType));break;case Gi.VARIABLE_TARGET_TYPE:s=this.evaluate(i,s,this.checkVariable(e.name,e.text,e.operator));break;case Gi.FS_VARIABLE_TARGET_TYPE:s=this.evaluate(i,s,this.checkFSVariable(e.name,e.text,e.operator));break;case Gi.FS_SEGMENT_TARGET_TYPE:s=this.evaluate(i,s,this.checkFSSegment(e.id,e.operator));break;case Gi.USER_SEGMENT_TARGET_TYPE:s=this.evaluate(i,s,this.checkSegment(null!==(t=e.formattedName)&&void 0!==t?t:"",e.operator));break;case Gi.AB_EXPERIMENT_TARGET_TYPE:s=this.evaluate(i,s,this.checkExperiment(e.variant));break;case Gi.URL_ELEMENT_TYPE:s=this.evaluate(i,s,this.checkElement({elementSelector:e.element}));break;case Gi.URL_ELEMENT_TYPE_NEGATIVE:s=this.evaluate(i,s,!this.checkElement({elementSelector:e.element}));break;case Gi.URL_ELEMENT_TEXT_TYPE:s=this.evaluate(i,s,this.checkElement({elementSelector:e.element,value:e.text}));break;case Gi.URL_ELEMENT_ATTR_VALUE_TYPE:s=this.evaluate(i,s,this.checkAttribute(e.element,e.attr,e.text));break;case Gi.DEVICE_TARGET_TYPE:(null===(u=e.device)||void 0===u?void 0:u.length)>0&&(r=!0,a[e.device]=!0);break;case Gi.BROWSER_TARGET_TYPE:(null===(d=e.browser)||void 0===d?void 0:d.length)>0&&(n=!0,l[e.browser]=!0);break;case Gi.OS_TARGET_TYPE:(null===(h=e.os)||void 0===h?void 0:h.length)>0&&(o=!0,c[e.os]=!0);break;case Gi.LANGUAGE_TARGET_TYPE:s=this.evaluate(i,s,this.checkBrowserLanguage(e.text));break;case Gi.LS_DATA_TARGET_TYPE:s=this.evaluate(i,s,this.checkLS(e.name,e.text));break;case Gi.TOUR_FINISHED_TARGET_TYPE:s=this.evaluate(i,s,this.checkTourState(e.tours,e.state));break;case Gi.CHECKLIST_STATE_TARGET_TYPE:s=this.evaluate(i,s,this.checkChecklistState(e.checklist,e.state));break;case Gi.REFERRER_URL_EXACT:s=this.evaluate(i,s,this.checkReferrerURL(e.url,!0));break;case Gi.REFERRER_URL_CONTAINS:s=this.evaluate(i,s,this.checkReferrerURL(e.url,!1))}}),r&&(s=this.evaluate(i,s,this.checkTargetEntity(a,Gi.DEVICE_TYPE_ALL_TYPES,this.checkDevice,i))),n&&(s=this.evaluate(i,s,this.checkTargetEntity(l,Gi.BROWSER_TYPE_ALL_TYPES,this.checkBrowser,i))),o&&(s=this.evaluate(i,s,this.checkTargetEntity(c,Gi.OS_TYPE_ALL_TYPES,this.checkOS,i)))),s)},this.checkTargetWithWaiting=(e,t,s=60)=>new Promise((i,r)=>{let n=0;const o=setInterval(()=>{n+=1,this.checkAvailableOnPage(e,t)&&(i(null),clearInterval(o)),n>=s&&(clearInterval(o),r())},500)}),this.getParsedConditions=e=>{let t=e;try{return!e||e instanceof Object||(t=JSON.parse(e)),t}catch(e){mt("Targets field is not JSON.")}return!1},this.isElementVisibleOnPage=e=>this.checkElement({elementSelector:e})&&!(0,Ji.isHidden)(ai(e)),this.isTriggable=e=>this.isElementVisibleOnPage(e.elementSelector)&&this.checkTriggerURL(e.trigger),this.evaluateTargetsWithDetails=(e,t)=>{var s,i;if(!e||!Array.isArray(e)||0===e.length)return[];const r={[Gi.DEVICE_TARGET_TYPE]:"device",[Gi.BROWSER_TARGET_TYPE]:"browser",[Gi.OS_TARGET_TYPE]:"os"},n={};for(const t of e)t.type in r&&(null!==(s=n[i=t.type])&&void 0!==s?s:n[i]=[]).push(t);const o=new Set,a=[];for(const s of e){if(s.type in r){if(o.has(s.type))continue;o.add(s.type);const e=n[s.type],i=r[s.type],l=e.map(e=>e[i]).filter(e=>e&&e.length>0),c=Object.assign(Object.assign({},e[0]),{[i]:l.join(" OR ")});a.push({condition:c,result:this.checkByTargets(e,t)});continue}a.push({condition:s,result:this.checkByTargets([s],void 0)})}return a},this.evaluateAvailableOnPageWithDetails=(e,t)=>{const s=1===t?"OR":"AND",i=this.getParsedConditions(e);if(!i||!Array.isArray(i))return{overall:!0,operator:s,conditions:[],subGroups:[]};const r=i.filter(e=>!Object.keys(e).includes("targets")),n=i.filter(e=>Object.keys(e).includes("targets")),o=this.evaluateTargetsWithDetails(r,t),a=n.map(e=>({operator:1===e.targetOperator?"OR":"AND",conditions:this.evaluateTargetsWithDetails(e.targets,e.targetOperator),overall:this.checkByTargets(e.targets,e.targetOperator)}));return{overall:this.checkAvailableOnPage(e,t),operator:s,conditions:o,subGroups:a}},this.location=window.location.href,this.wildcard=new qi("{}"),this.api=e,this.completionApi=t,this.dismiss=s}checkAvailableOnPage(e,t){const s=this.getParsedConditions(e);let i=s,r=[];s&&(i=s.filter(e=>!Object.keys(e).includes("targets")),r=s.filter(e=>Object.keys(e).includes("targets")));let n=this.checkByTargets(i,t);r.length>0&&(!i||0===i.length)&&(n=1!==t);const o=[n];
1return r&&r.forEach(e=>{o.push(this.checkByTargets(e.targets,e.targetOperator))}),t?o.some(e=>e):o.every(e=>e)}}const Zi="click",er="tourCompletion",tr="pageEvent",sr="visitURL",ir="startTour",rr="immediately",nr="openURL",or="nothing",ar="done",lr="open",cr="inProgress",ur="pageEvent",dr={url:"",type:"click",element:"",loop:"3"},hr={tourId:0,action:"start"},gr={urlContains:""};Object.assign(Object.assign(Object.assign({},dr),hr),gr),Object.assign(Object.assign(Object.assign({},dr),hr),gr);const pr=class{constructor(e,t){this.saveToStorage=()=>{const e=localStorage.getItem(qe);this.progressorApi.saveUserData(qe,e)},this.progressorApi=e,this.checklistData=[],this.alreadyParsed=!1,this.processParseData(),this.completionApi=t}processParseData(){if(this.alreadyParsed)return;const e=this.progressorApi.getUserData(qe);if(e&&"string"==typeof e){const t=JSON.parse(e);this.saveToLocalStorage(t),this.checklistData=t}else this.loadFromLocalStorage(),this.saveToStorage();this.alreadyParsed=!0}loadFromLocalStorage(){const e=localStorage.getItem(qe);e&&(this.checklistData=JSON.parse(e))}isRedirected(e){if(this.loadFromLocalStorage(),this.checklistData&&this.checklistData.length>0){return void 0!==this.checklistData.find(t=>t.id===e)}return!1}markAsRedirected(e,t,s,i,r){this.alreadyParsed=!1,this.processParseData();void 0!==this.checklistData.find(t=>t.id===e)||(this.checklistData.push({id:e}),this.completionApi.completeItem(he,e,t||"",!0,i,{checklistName:r,itemIndex:s})),this.saveToLocalStorage(this.checklistData),this.saveToStorage()}saveToLocalStorage(e){localStorage.setItem(qe,JSON.stringify(e))}removeRedirected(e){this.alreadyParsed=!1,this.processParseData(),this.checklistData=this.checklistData.filter(t=>t.id!==e),this.saveToLocalStorage(this.checklistData),this.saveToStorage()}};function mr(e){return!(!e||"object"!=typeof e||!Array.isArray(e.conditions))}function Tr(e){return!(!e||"object"!=typeof e||"string"!=typeof e.type||Array.isArray(e.conditions))}const Sr=(e,t,s,i)=>{const r=new pr(t,s),{id:n,onClickAction:o,tourId:a,completionEvent:l,completionOn:c}=e,u=(d=l)?mr(d)?d.conditions:Tr(d)?[d]:[]:[];var d;if(0===u.length&&c){return fr({type:c,event:{}},{id:n,onClickAction:o,tourId:a},r,s,i)}let h=lr;for(const e of u){const t=fr(e,{id:n,onClickAction:o,tourId:a},r,s,i);if(t===ar)return ar;t===cr?h!==lr&&h!==ur||(h=cr):t===ur&&h===lr&&(h=ur)}return h};function fr(e,t,s,i,r){const{id:l,onClickAction:c,tourId:u}=t;switch(e.type){case Zi:if(c===ir){const e=r.getObjectStatus(u.toString());if(e===a)return ar;if(e===o)return cr}else if((c===nr||c===or)&&s.isRedirected(l))return ar;break;case tr:return s.isRedirected(l)?ar:ur;case rr:return ar;case er:if(e.event){let t="number"!=typeof e.event.tourId?parseInt(e.event.tourId,10):e.event.tourId;if(0===t&&(t=u),t&&"complete"===e.event.action&&i.isCompleted(n,t)||"start"===e.event.action&&r.getObjectStatus(t.toString())===a)return ar;if("onClickButton"===e.event.action){const{tourId:t,stepId:s,actionBtn:r}=e.event,n=`${t}-${s}-${r.id}`,o=`${t}-${s}-${r.value}`;if(i.isCompleted($,n)||i.isCompleted($,o))return ar}}break;case sr:if(s.isRedirected(l))return ar}return lr}var vr=s(203);const Er="uf_collapsed";const _r=class{constructor(){const e=window.localStorage.getItem(Er);this.collapseStates=e?JSON.parse(e):[]}init(){this.loadFromLocalStorage()}getCollapsedState(e,t){const s=this.collapseStates.find(s=>s.type===e&&s.id===t);return s?s.collapsed:null}
1setCollapsedState(e,t,s){const i=this.collapseStates.find(s=>s.type===e&&s.id===t);i?i.collapsed=s:this.collapseStates.push({type:e,id:t,collapsed:s}),window.localStorage.setItem(Er,JSON.stringify(this.collapseStates))}loadFromLocalStorage(){const e=window.localStorage.getItem(Er);e&&(this.collapseStates=JSON.parse(e))}},yr="toursSelection",Or="assistantSelection",Ir=["uf_progressorLastSaveSuccessful",yr,Or];const Rr=class{constructor(e,t,s,i,r){this.keysToRemove=Ir,this.toursData=[],this.checklistsData=[],this.assistantData=[],this.surveysData=[],this.api=e,this.progressorApi=t,this.completionApi=s,this.tourSelectionVal="",this.assistSelectionVal="",this.dismiss=i,this.collapseState=r}init(e,t,s,i,r,n){var o,a;this.dismiss=r,this.collapseState=n,this.toursData=e,this.checklistsData=t,this.assistantData=s,this.surveysData=i,this.tourSelectionVal=null!==(o=localStorage.getItem(yr))&&void 0!==o?o:"",this.assistSelectionVal=null!==(a=localStorage.getItem(Or))&&void 0!==a?a:"",this.permanentlyRemoveFromLS(),this.restartTours(),this.restartChecklist(),this.restartSurveys(),this.api.saveToLocalStorage(this.api.getStoredData()),this.migrateStatesToCompletions(),this.migrateBannersFromCookieToLocalStorage(),this.migrateCollapsed(p.checklist),this.migrateCollapsed(p.assistant),this.migrateTourLastSeenFromUpdatedAt(),this.initializeSurveyAnswers(),this.initializeTags()}permanentlyRemoveFromLS(){this.keysToRemove.forEach(e=>{localStorage.removeItem(e)})}restartTours(){this.toursData.filter(e=>{const t=this.api.getStoredObjectData(e.id.toString()),s=e.lastRestartOn,i=null==t?void 0:t.updatedAt;return i&&s&&s>i||s&&!i?e:null}).forEach(e=>{this.api.removeObject(e.id.toString()),this.completionApi.uncompleteItem(n,e.id)})}restartChecklist(){const e=this.getChecklistToRestart();e.length>0&&e.forEach(e=>{const t=e.items;this.forceProgressorSync(()=>{this.cleanLSChecklistItems(t),this.cleanLSChecklist(e.id.toString())})})}forceProgressorSync(e,t=20,s=0){var i;if(null===(i=window.USETIFUL)||void 0===i?void 0:i.user)try{document.dispatchEvent(new CustomEvent(Ot.ENTITY_EVENTS.pauseSync)),e(),this.progressorApi&&this.progressorApi.markDataChanged(),document.dispatchEvent(new CustomEvent(Ot.ENTITY_EVENTS.resumeSync))}catch(e){console.error("Usetiful: Error during forceProgressorSync callback execution:",e),document.dispatchEvent(new CustomEvent(Ot.ENTITY_EVENTS.resumeSync))}else{if(s>=t)return void console.warn(`Usetiful: forceProgressorSync failed after ${t} retries. User API not available.`);setTimeout(()=>{this.forceProgressorSync(e,t,s+1)},500)}}getChecklistToRestart(){return this.checklistsData?this.checklistsData.filter(e=>{const t=e.lastRestartOn;let s=!1;return e.items.forEach(e=>{if(this.completionApi.isCompleted(he,e.id)){const i=this.completionApi.getStorageKey(),r=window.localStorage.getItem(i);if(r){const i=JSON.parse(r).filter(t=>t.id===e.id)[0];i&&t>i.updatedAt&&(s=!0)}}}),s?e:null}):[]}restartSurveys(){const e=this.getSurveyToRestart();e.length>0&&e.forEach(e=>{this.completionApi.uncompleteItem(p.survey,e.id)})}getSurveyToRestart(){return this.surveysData?this.surveysData.filter(e=>{const t=e.lastRestartOn,s=this.completionApi.isCompleted(p.survey,e.id),i=this.completionApi.getCompletionDate(p.survey,e.id);return s&&t>i?e:null}):[]}cleanLSChecklistItems(e){0!==e.length&&e.forEach(e=>{if(e.tourId){this.api.removeObject(e.tourId),this.completionApi.uncompleteItem(n,e.tourId);const t=`${e.tourId}-`;this.completionApi.uncompleteItemsByPrefix($,t)}((e,t,s)=>{const i=new pr(t,s),{id:r}=e;i.isRedirected(r)&&i.removeRedirected(r)})(e,this.progressorApi,this.completionApi),this.completionApi.uncompleteItem(he,e.id)})}cleanLSChecklist(e){const t=this.dismiss;if(t){t.loadFromLocalStorage();t.isChecklistDismiss(e)&&t.clearDismissValue(e)}this.collapseState.setCollapsedState(p.checklist,e,!1),this.completionApi.uncompleteItem(de,e)}migrateStatesToCompletions(){var e;if(null===window.localStorage.getItem(Ke)){const t=[];this.api.getDataByName(Ve).forEach(e=>{e.state===a&&t.push({type:n,id:e.id,migration:!0,updatedAt:e.updatedAt})}
1),null===(e=this.checklistsData)||void 0===e||e.forEach(e=>{const s=e.items;let i=0;null==s||s.forEach(e=>{var s,r,n;(s=e.completionEvent,r=rr,n=e.completionOn,!(!s&&!n)&&(mr(s)?s.conditions.some(e=>e.type===r):Tr(s)?s.type===r:!!n&&n===r))||Sr(e,this.progressorApi,this.completionApi,this.api)!==ar||(i+=1,t.push({type:he,id:e.id,migration:!0,updatedAt:(new Date).toISOString()}))}),i===s.length&&t.push({type:de,id:e.id,migration:!0,updatedAt:(new Date).toISOString()})}),window.localStorage.setItem(Ke,JSON.stringify(t)),this.completionApi.saveToStorage()}}migrateCollapsed(e){const t=JSON.parse(localStorage.getItem(Er)||"[]"),s=(s,i)=>{s.forEach(s=>{const r={id:s.id,collapsed:i,type:e},n=t.findIndex(t=>t.id===s.id&&t.type===e);-1===n?t.push(r):t[n].collapsed=i})};switch(e){case p.checklist:if(""===this.tourSelectionVal)return;s(this.checklistsData,"enabled"!==this.tourSelectionVal);break;case p.assistant:if(""===this.assistSelectionVal)return;s(this.assistantData,"enabled"!==this.assistSelectionVal)}localStorage.setItem(Er,JSON.stringify(t))}migrateBannersFromCookieToLocalStorage(){var e,t;if(null===window.localStorage.getItem(et)){const s=null!==(e=(0,vr.getFromLocalStorage)(et))&&void 0!==e?e:[],i=document.cookie,r=new Map,n=`${ls()}-banner-version-`,o=(new Date).toISOString();i.split(";").forEach(e=>{const[t,s]=e.trim().split("=");t.startsWith(n)&&r.set(t,decodeURIComponent(s))}),r.forEach((e,t)=>{const i={id:t.replace(n,"").trim(),version:parseInt(e,10),updateAt:o};s.push(i)}),(0,vr.saveToLocalStorage)(et,s,!1),r.size>0&&(null===(t=this.progressorApi)||void 0===t||t.markDataChanged())}}migrateTourLastSeenFromUpdatedAt(){var e;try{const t=(0,vr.getFromLocalStorage)(Ve);if(!t)return;const s=null!=t?t:[];if(s.some(e=>e.lastSeen))return;let i=!1;const r=s.map(e=>!e.lastSeen&&e.updatedAt?(i=!0,Object.assign(Object.assign({},e),{lastSeen:e.updatedAt})):e);i&&((0,vr.saveToLocalStorage)(Ve,r,!1),null===(e=this.progressorApi)||void 0===e||e.markDataChanged())}catch(e){console.warn("Error migrating tour lastSeen from updatedAt",e)}}initializeSurveyAnswers(){null===window.localStorage.getItem(Qe)&&window.localStorage.setItem(Qe,"[]")}initializeTags(){null===window.localStorage.getItem(tt)&&window.localStorage.setItem(tt,"{}")}};var wr=s(8615),br=s(8008);const Ar="smart-tips-group",Pr=e=>{if(!e)return 0;const t=new Date(e).getTime();return Number.isNaN(t)?0:t};const Cr=class{constructor(e,t,s){this.isGivenObject=(e,t)=>{var s;return(null==e?void 0:e.name)===t||e.id===t||(null===(s=null==e?void 0:e.id)||void 0===s?void 0:s.toString())===t},this.setProgressToLocalStorage=(e,t,s)=>{const{name:i,id:r}=t,o=(new Date).toISOString();this.type===n?(this.updateState(r,{state:e,name:i,currentStep:s||0,updatedAt:o}),this.updatePreviewStep(e,s||0)):this.updateState(r,{state:e,id:r,updatedAt:o})},this.getCurrentStepIndexLS=e=>this.getObjectState(e.toString(),"currentStep",0),this.getRunningContentFrom
1LS=(e=null)=>{const t=e?this.getDataByName(e):this.getStoredData(),s=[];if(t&&t.length)for(const[e,i]of Object.entries(t)){i.id&&e&&i&&i.state===o&&s.push(i)}return s},this.closeTourInLS=(e,t,s)=>{var i,r;this.setProgressToLocalStorage(a,{name:t,id:e},s);try{(null===(r=null===(i=window.USETIFUL)||void 0===i?void 0:i.user)||void 0===r?void 0:r.syncToProgressor)&&window.USETIFUL.user.syncToProgressor()}catch(e){console.warn("Usetiful: Failed to sync to progressor:",e)}},this.closeInProgressTour=(e,t,s)=>{this.isTourInProgressLS(e)&&this.closeTourInLS(e.toString(),t,s)},this.isTourInProgressLS=e=>this.getObjectState(e.toString(),"state")===o,this.getTourUpdateAt=e=>this.getObjectState(e.toString(),"updatedAt"),this.getInProgressTours=e=>e.filter(e=>this.isTourInProgressLS(e.id)),this.getLastOpenTour=e=>{if(!e.length)return null;let t=null,s="";return e.forEach(e=>{const i=this.getTourUpdateAt(e.id);(!s||i&&new Date(i)>new Date(s))&&(t=e,s=i)}),t},this.removeObject=e=>{let t=this.getStoredData();t=t.filter(t=>!this.isGivenObject(t,e)).map(e=>e),this.saveToStorage(t),this.saveToLocalStorage(t)},this.removeDuplicities=(e=this.getStoredData(),t=(e,t)=>void 0!==t.id&&void 0!==e.id&&t.id.toString()===e.id.toString())=>{if(e&&e.length){const s=[];return e.forEach(e=>{const i=s.find(s=>t(e,s));if(i){if(!i.updatedAt||e.updatedAt>i.updatedAt){const i=s.findIndex(s=>t(e,s));s[i]=e}}else s.push(e)}),s}return[]},this.recoverTourProgress=e=>{const t=localStorage.getItem(e),s=t?(0,Ot.tryParseJSON)(t):void 0;if(Array.isArray(s)){const t=[];if(s.forEach(e=>{if(!(0,wr.El)(n,null==e?void 0:e.id,(0,br.g0)()))return void t.push(e);const s=this.getStoredObjectData(String(null==e?void 0:e.id));if((null==s?void 0:s.state)!==a&&"waiting"!==(null==s?void 0:s.state)){if((null==s?void 0:s.state)===o){const t=Pr(s.updatedAt),i=Pr(null==e?void 0:e.updatedAt),r=Number(s.currentStep)||0,n=Number(null==e?void 0:e.currentStep)||0;if(t>i||t===i&&r>=n)return}this.setProgressToLocalStorage(o,{name:null==e?void 0:e.name,id:null==e?void 0:e.id},null==e?void 0:e.currentStep)}}),t.length>0)return void localStorage.setItem(e,JSON.stringify(t))}localStorage.removeItem(e)},this.type=e,this.progressorAPI=s,this.storageKeyName=t}getStoredData(){let e=[];const t=window.localStorage.getItem(this.storageKeyName);if(t)try{e=JSON.parse(t)}catch(t){console.warn(t),e=[]}return e}getDataByName(e){let t=[];const s=window.localStorage.getItem(e);if(s)try{t=JSON.parse(s)}catch(e){console.warn(e),t=[]}return t}getStoredObjectData(e){const t=this.getStoredData();let s=null;return t&&t.length&&(s=t.find(t=>this.isGivenObject(t,e))||null),s}getObjectState(e,t,s=null){const i=this.getStoredObjectData(e);return i&&i[t]?i[t]:s}setStateByProperty(e,t,s){const i=this.getStoredData().map(i=>this.isGivenObject(i,e)?Object.assign(Object.assign({},i),{[t]:s}):i);this.saveToLocalStorage(i)}updateState(e,t){let s=this.getStoredData();null===this.getStoredObjectData(e)&&(this.type===n?s.push(Object.assign({id:e},t)):this.type===Ar&&s.push(Object.assign({},t))),s=s.map(s=>this.isGivenObject(s,e)?Object.assign(Object.assign({},s),t):s),this.saveToStorage(s),this.saveToLocalStorage(s)}saveToLocalStorage(e){const t=this.getStoredData(),s=this.removeDuplicities(e);if(0===s.length&&t.length>0)return void window.localStorage.setItem(this.storageKeyName,"[]");(0,vr.shouldUpdateLocalStorage)(t,s)&&window.localStorage.setItem(this.storageKeyName,JSON.stringify(s))}addToLocalStorageByKey(e,t,s){const i=this.getDataByName(e).concat(t),r=s?this.removeDuplicities(i,s):this.removeDuplicities(i);window.localStorage.setItem(e,JSON.stringify(r))}saveToStorage(e){this.progressorAPI.saveUserData(this.storageKeyName,JSON.stringify(e))}getObjectStatus(e){return this.getObjectState(e,"state")}updatePreviewStep(e,t){}getRunningTour(e){const t=this.getStoredData();if(t&&t.length)for(const[s,i]of Object.entries(t)){const t=i.id;if(t&&s&&i&&i.state===o&&(!e||e&&e.find(e=>e.id===t)))return t}return null}isTourReopenFromLS(e){return this.getObjectStatus(e)===a}};var Lr=s(8702);const Nr=class{constructor(e){this.saveToLocalStorage=e=>{localStorage.setItem(this.getStorageKey(),e)},this.getCompletionRecord=(e,t)=>this.api.getDataByName(this.getStorageKey()).find(s=>s.type===e&&s.id===t),this.getCompletionDate=(e,t)=>
1{const s=this.getCompletionRecord(e,t);return s&&s.updatedAt||""},this.isCompleted=(e,t)=>void 0!==this.getCompletionRecord(e,t),this.uncompleteItem=(e,t)=>{if(!this.isCompleted(e,t))return;const s=this.api.getDataByName(this.getStorageKey()),i=s.findIndex(s=>s.type===e&&s.id===t);-1!==i&&(s.splice(i,1),this.saveToLocalStorage(JSON.stringify(s)),this.saveToStorage())},this.uncompleteItemsByPrefix=(e,t)=>{const s=this.api.getDataByName(this.getStorageKey()),i=s.filter(s=>!(s.type===e&&String(s.id).startsWith(t)));i.length!==s.length&&(this.saveToLocalStorage(JSON.stringify(i)),this.saveToStorage())},this.getStorageKey=()=>Ke,this.saveToStorage=()=>{const e=this.api.getDataByName(this.getStorageKey());this.api.progressorAPI.saveUserData(this.getStorageKey(),JSON.stringify(e))},this.api=e}init(){this.loadDataFromProgressor()}loadDataFromProgressor(){const e=this.api.progressorAPI.getUserData(this.getStorageKey());if(e&&"string"==typeof e){const t=this.api.getDataByName(this.getStorageKey()),s=JSON.parse(e);(0,Ot.shouldUpdateLocalStorage)(t,s)&&this.saveToLocalStorage(e)}}completeItem(e,t,s="",i=!1,r,o=null){var a,l;if(this.isCompleted(e,t))return;const c={type:e,id:t,updatedAt:(new Date).toISOString()};if(!r||e!==he&&e!==n||(c.parentId=r),this.api.addToLocalStorageByKey(this.getStorageKey(),[c],(e,t)=>void 0!==t.id&&void 0!==e.id&&t.id.toString()===e.id.toString()&&void 0!==t.type&&void 0!==e.type&&t.type.toString()===e.type.toString()),this.saveToStorage(),i){if(e!==n){const s=new CustomEvent(R,{detail:{type:e,itemId:t,action:K,isDevKit:!1}});document.dispatchEvent(s)}const i={[de]:fi.t9.checklist,[he]:fi.t9.checklistItem,[Ee]:fi.t9.survey,[n]:fi.t9.tour}[e];if(i===fi.t9.checklist){(0,Kt.ep)({id:`${i}${fi.dn.complete}`,contentId:t.toString(),contentName:s,FSData:{name:Lr.g.checklistStateChanged,properties:{checklistName:s,checklistId:t.toString(),state:"completed"}}});const e=new CustomEvent(T);document.dispatchEvent(e)}if(i===fi.t9.survey){const e=o.pages.length-1,r=o.pages[e];(0,Kt.ep)({id:`${i}${fi.dn.complete}`,contentId:t.toString(),contentName:s,FSData:{name:Lr.g.surveyStateChanged,properties:{surveyName:o.name,surveyId:o.id.toString(),state:"completed",pageName:r.name,pageType:r.type,pageId:r.id.toString(),pageIndex:e}}})}i===fi.t9.tour&&(0,Kt.ep)({id:`${i}${fi.dn.complete}`,contentId:t.toString(),contentName:s,FSData:{name:Lr.g.guideStateChanged,properties:{guideName:o.name,guideId:o.id.toString(),state:"completed",stepName:o.currentStepName||"",stepType:o.currentStepType||"",stepId:(null===(a=o.currentStepId)||void 0===a?void 0:a.toString())||"",stepIndex:o.currentStepIndex||0}}}),i===fi.t9.checklistItem&&(0,Kt.ep)({id:`${i}${fi.dn.complete}`,contentId:t.toString(),contentName:s,FSData:{name:Lr.g.checklistItemStateChanged,properties:{checklistName:(null==o?void 0:o.checklistName)||"",checklistId:r||"",itemName:s,itemId:t.toString(),itemState:"completed",itemIndex:null!==(l=null==o?void 0:o.itemIndex)&&void 0!==l?l:0}}})}}};function kr(e,t){e&&e.width&&t.setAttribute("style",(0,Ot.getWidthStyleCSS)(e))}function Dr(e,t){if(e&&e.classes){e.classes.split(" ").forEach(e=>{e&&t.classList.add(e)})}}var Ur=s(8821),Fr=s(9494),$r=s(83),xr=s(900);const Br="next",Mr="previous",Gr="goto",Yr="gototour",jr="close",Wr="show-later",Vr=Ot.STYLE_PRIMARY,Hr=(Ot.STYLE_SECONDARY,Ot.STYLE_CUSTOM,[{name:Gr,label:"Go to..."},{name:Yr,label:"Another tour"},{name:Wr,label:"Check again later"},{name:jr,label:"Close tour"}]);const qr=e=>{const t=e.target;if(!t)return;const s=t.closest(`.${zs.formQuestion}`);if(null!==s){const e=s.getAttribute("id");switch(t.classList.remove(zs.error),s.classList.remove(zs.error),t.tagName.toLowerCase()){case"input":switch(t.getAttribute("type")){case"radio":(0,x.Pb)(e,t.value);break;case"checkbox":setTimeout(()=>{(0,x.Pb)(e,Jr(s))},100);break;default:Kr("focusout",e,t)}break;case"select":Kr("change",e,t);break;case"textarea":Kr("focusout",e,t)}}},Jr=e=>{const t=[],s=e.querySelectorAll("input");return s.length>0&&s.forEach(e=>{e.checked&&t.push(e.value)}),t.toString()},Kr=(e,t,s)=>{s.addEventListener(e,()=>{(0,x.Pb)(t,s.value)},{once:!0})};const zr=class{constructor(e){this.isEmpty=e=>!e.value||""===e.value,this.isValidEmail=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.value),this.hasSelectedInput=e=>Array.from(e).some(e=>e.checked),this.validateForm=()=>{this.loadFormsData();let e=!0;
1return this.fieldSets.forEach((t,s)=>{if(!this.formElement||!this.formElement[s]||null===this.formElement[s])return void(e=!0);const i=[];for(let e=0;e<t.length;e+=1){const s=t[e];s.classList.remove(zs.error);let r=!0;switch(s.tagName.toLowerCase()){case"select":r=!this.isEmpty(s);break;case"input":{const e=s;r=!e.required||e.required&&!this.isEmpty(e),r="email"!==s.getAttribute("type")||!e.required&&""===e.value?r:this.isValidEmail(e);break}case"div":{const e=s.querySelectorAll("input");e.length>0&&(r=this.hasSelectedInput(e));break}}r||i.push(s)}if(i.length>0){let t=`${this.formElement[s].dataset.validationMessage||"Update values in the following fields"}<ul>`;i.forEach(e=>{var s,i;e.classList.add(zs.error);let r=null===(i=null===(s=e.closest(`.${zs.formQuestion}`))||void 0===s?void 0:s.querySelector("label"))||void 0===i?void 0:i.textContent;r||(r="<i>Empty label</i>"),t+=`<li>${r}</li>`}),t+="</ul>",this.placeValidationMessage(t,this.formElement[s]),e=!1}else this.removeValidationMessage(this.formElement[s])}),e},this.removeValidationMessage=e=>{const t=e.querySelector(`section.${zs.validationAlert}`);t&&t.parentNode&&t.parentNode.removeChild(t)},this.placeValidationMessage=(e,t)=>{this.wasValidated&&this.removeValidationMessage(t);const s=document.createElement("section");s.classList.add(zs.validationAlert);const i=document.createElement("span");i.textContent="â ",s.appendChild(i);const r=document.createElement("span");r.innerHTML=e,s.appendChild(r),t.append(s),this.wasValidated=!0},this.storeDefaultValues=()=>{this.loadFormsData();this.getAllQuestions().forEach(e=>{const t=this.getFieldValue(this.getField(e));t&&(0,x.Pb)(e.getAttribute("id"),t)})},this.getFieldValue=e=>{var t;const s=e.tagName.toLowerCase(),i=e.querySelector("input");if("div"===s||"p"===s){if("checkbox"===(null==i?void 0:i.type))return Jr(e);if("radio"===(null==i?void 0:i.type)){const s=e.querySelector("input[checked]"),i=(0,x.Gb)(e.id);return null!==(t=null==s?void 0:s.value)&&void 0!==t?t:null==i?"":String(i)}}return e.value},this.getFinalQuestionText=e=>{var t,s,i,r,n;const o=null!==(t=e.getAttribute("id"))&&void 0!==t?t:"",a=null===(s=e.querySelector(`label[for='${o}']`))||void 0===s?void 0:s.textContent,l=null===(i=e.querySelector("label"))||void 0===i?void 0:i.textContent,c=e.querySelectorAll("label").length>1,u=null===(n=null===(r=e.closest(".uf-form-fieldset"))||void 0===r?void 0:r.querySelector("legend"))||void 0===n?void 0:n.textContent;let d=null!=u?u:o;return!c&&l&&""!==l&&(d=l),a&&""!==a&&(d=a),d},this.reportAnswers=e=>{if(!this.formElement)return;this.getAllQuestions().forEach(t=>{var s,i;const r=null!==(s=t.getAttribute("id"))&&void 0!==s?s:"",n=this.getFinalQuestionText(t),o=null!==(i=this.getFieldValue(this.getField(t)))&&void 0!==i?i:"",a=(e=>{switch(e.tagName.toLowerCase()){case"select":return"radio";case"input":if("checkbox"===e.getAttribute("type"))return"checkbox";break;default:{const t=e.querySelector("input");if(t&&("checkbox"===t.getAttribute("type")||"radio"===t.getAttribute("type")))return t.getAttribute("type");break}}return"text"})(this.getField(t));if(!r||!n)return;const l=new CustomEvent(A,{detail:{formId:`${e}_${r}`,reportType:ve,questionType:a,question:n,entityId:e,entityType:ue,answer:o}});document.dispatchEvent(l)})},this.stepElementClass=e,this.formElement=null,this.stepElement=null,this.fieldSets=[],this.wasValidated=!1,this.storeDefaultValues()}loadFormsData(){var e;this.stepElement=document.querySelector(`.${this.stepElementClass}`),this.stepElement&&(this.formElement=Array.from(null===(e=this.stepElement)||void 0===e?void 0:e.querySelectorAll(`.${zs.formFieldset}`)),this.formElement.forEach((e,t)=>{this.fieldSets[t]=[],this.fieldSets[t]=this.getFieldsToValidate(e)}))}getAllQuestions(){var e;const t=[];return null===(e=this.formElement)||void 0===e||e.forEach(e=>{const s=e.querySelectorAll(`.${zs.formQuestion}`);t.push(...s)}),t}getField(e){const t=e.querySelector("input"),s=e.querySelector("textarea"),i=e.querySelector("select"),r=e.querySelectorAll('input[type="checkbox"]').length>1,n=e.querySelectorAll('input[type="radio"]').length>1;return!t||r||n?!s||r||n?i||e:s:t}getFieldsToValidate(e){if(!e)return[];const t=[];return e.querySelectorAll(`.${zs.formQuestion}
1`).forEach(e=>{const s=e.dataset.required,i=e.querySelector("[required]"),r=e.querySelector("[type='email']"),n=e.querySelector("input"),o=e.querySelector("select");(s||i||r)&&(n&&n.closest(`.${zs.formQuestion}`)!==e||o&&o.closest(`.${zs.formQuestion}`)!==e)||(s?t.push(e):i?t.push(i):r&&t.push(r))}),t}};const Xr=class{constructor(e,t,s,i,r,n){this.prepareAction=e=>{var t;const s=this.template.createButton(this.actionData.value),i=new zr(e),r=e=>{if(this.shouldValidateForm)return i.validateForm()?(i.reportAnswers(this.stepId),void e()):(s.classList.add(zs.errorShake),setTimeout(()=>{s.classList.remove(zs.errorShake)},500),!1);e()};switch(this.actionData.type){case Br:s.addEventListener("click",()=>{r(()=>{var e;(0,Kt.BI)({tourId:this.tourId,name:v,stepId:this.stepId,actionBtn:{id:null!==(e=this.actionData.id)&&void 0!==e?e:"",value:this.actionData.value}})})});break;case Mr:case jr:case Wr:s.addEventListener("click",()=>{this.performAction()});break;case Gr:case Yr:s.addEventListener("click",()=>{r(()=>this.performAction())});break;default:s.addEventListener("click",()=>{r(()=>{var e;return(0,Kt.BI)({name:I,details:{stepId:this.actionData.to,display:!0},tourId:this.tourId,stepId:this.stepId,actionBtn:{id:null!==(e=this.actionData.id)&&void 0!==e?e:"",value:this.actionData.value}})})})}return s.classList.add(this.template.themeClasses.button),(this.actionData.styleType?this.actionData.styleType===Vr:this.actionData.type===Br||this.actionData.type===Yr)&&s.classList.add(this.template.themeClasses.buttonPrimary),(null===(t=this.actionData)||void 0===t?void 0:t.classes)&&s.classList.add(...this.actionData.classes.split(" ")),this.template.commonTemplate.appendButtonDataAttributes(s),s},this.performAction=()=>{var e,t,s,i,r,n,o,a,l,c;switch(this.actionData.type){case Br:(0,Kt.BI)({tourId:this.tourId,name:v,stepId:this.stepId,actionBtn:{id:null!==(e=this.actionData.id)&&void 0!==e?e:"",value:this.actionData.value}});break;case Mr:(0,Kt.BI)({tourId:this.tourId,name:_,stepId:this.stepId,actionBtn:{id:null!==(t=this.actionData.id)&&void 0!==t?t:"",value:this.actionData.value}});break;case Gr:this.actionData.url&&(Be&&!this.actionData.progressToNextStep&&(0,Ot.notifyManuallyToPlugin)({type:Ot.NOTIFICATION_MESSAGES.stopPreview}),(0,Kt.BI)({tourId:this.tourId,name:D,stepId:this.stepId,actionBtn:{id:null!==(s=this.actionData.id)&&void 0!==s?s:"",value:this.actionData.value}}),$i(this.actionData.url,!0),this.actionData.progressToNextStep&&(0,Kt.BI)({tourId:this.tourId,name:v,stepId:this.stepId,actionBtn:{id:null!==(i=this.actionData.id)&&void 0!==i?i:"",value:this.actionData.value}}));break;case Wr:(0,Kt.BI)({tourId:this.tourId,name:E,stepId:this.stepId,actionBtn:{id:null!==(r=this.actionData.id)&&void 0!==r?r:"",value:this.actionData.value}});break;case Yr:{if(!this.actionData.tourId)return console.warn("TourId in another tour button doesn't exist"),this.actionData;const e=parseInt(this.actionData.tourId,10);if(this.isCurrentTour(e)&&(0,Kt.BI)({name:v,details:{display:!1},tourId:this.tourId,stepId:this.stepId,actionBtn:{id:null!==(n=this.actionData.id)&&void 0!==n?n:"",value:this.actionData.value}}),this.actionData.url){window.usetiful_isAboutToRefresh=!0,xi(this.actionData)||(0,Kt.BI)({name:O,details:{tourId:e},tourId:this.tourId,stepId:this.stepId,actionBtn:{id:null!==(o=this.actionData.id)&&void 0!==o?o:"",value:this.actionData.value}}),this.isCurrentTour(e)||this.sendCloseTourEvent();const t=Object.assign({},this.actionData);this.modifyURLBeforeRedirect(t),t.url&&($i(t.url,!1),xi(this.actionData)&&this.sendCloseTourEvent())}else if(this.isCurrentTour(e)||((0,Kt.BI)({name:O,details:{tourId:e},tourId:this.tourId,stepId:this.stepId,actionBtn:{id:null!==(a=this.actionData.id)&&void 0!==a?a:"",value:this.actionData.value}}),this.sendCloseTourEvent()),Be){const e=Object.assign({},this.actionData);this.modifyURLBeforeRedirect(e),e.url&&(e=>{window.history.replaceState?window.history.replaceState(void 0,"",e):window.location.hash=e,window.location.reload()})(e.url)}break}case jr:(0,Kt.BI)({tourId:this.tourId,name:y,stepId:this.stepId,actionBtn:{id:null!==(l=this.actionData.id)&&void 0!==l?l:"",value:this.actionData.value}});break;default:(0,Kt.BI)({name:I,details:{stepId:this.actionData.to,display:!0},tourId:this.tourId,stepId:this.stepId,actionBtn:{id:null!==(c=this.actionData.id)&&void 0!==c?c:"",value:this.actionData.value}})}return this.actionData},this.sendCloseTourEvent=()=>{var e;(0,Kt.BI)({name:y,details:{reason:Z},tourId:this.tourId,stepId:this.stepId,actionBtn:{id:null!==(e=this.actionData.id)&&void 0!==e?e:"",value:this.actionData.value}})},this.isCurrentTour=e=>e===this.tourId,this.actionData=e,this.template=s,this.tourName=t,this.tourId=i,this.shouldValidateForm=!1,this.stepId=r,this.modifyURLBeforeRedirect=n}};var Qr,Zr,en,tn,sn,rn=function(e,t,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(e):i?i.value:t.get(e)};
1Qr=new WeakMap,Zr=new WeakMap,en=new WeakMap,tn=new WeakMap,sn=new WeakMap;const nn=class{constructor(e=null,t=!1){this.setTheme=e=>{this.themeClasses=Js(e),this.commonTemplate.setTheme(e)},this.setIsWatermark=e=>{this.isWatermark=e},this.createButton=(e,t="")=>{const s=document.createElement("button");return s.type="button",s.innerHTML=(0,x.wQ)(e),""!==t&&(Array.isArray(t)?s.classList.add(...t):s.classList.add(t)),this.commonTemplate.appendButtonDataAttributes(s),s},this.createLink=(e,t=this.themeClasses.button,s="#")=>{const i=document.createElement("a");return i.setAttribute("href",s),i.innerHTML=e,""!==t&&i.classList.add(t),this.commonTemplate.appendButtonDataAttributes(i),i},this.createTitle=(e,t,s=!0,i=this.themeClasses.title)=>{if(!s)return;const r=document.createElement(`h${e}`);return r.dataset.ufElement="title",r.innerHTML=(0,x.wQ)(t),""!==i&&r.classList.add(i),t?r:void 0},this.createBubble=({ident:e,contentHTML:t,title:s,progressBar:i,closeButton:r,appendAdditionalContent:n,hotspot:o,customStyle:a,isTour:l,tourId:c,stepId:u})=>{const d=document.querySelector(`.${this.themeClasses.prefix}-${e}`),{body:h}=document;if(d instanceof HTMLElement)return d;if(!(h instanceof HTMLBodyElement))return;const g=document.createElement("div");g.dataset.ufContent="bubble";const p=h.appendChild(g);p.classList.add(this.themeClasses.bubble,`${this.themeClasses.prefix}-${e}`),l||p.classList.add(this.themeClasses.smarttip),p.setAttribute("id",e),a&&(kr(a,p),Dr(a,g));const m=document.createElement("div");m.classList.add(this.themeClasses.pointer),m.setAttribute("data-floating-arrow",""),p.appendChild(m),r instanceof HTMLButtonElement&&p.appendChild(r),s instanceof HTMLElement&&(s.dataset.ufElement="title",p.appendChild(s)),i instanceof HTMLElement&&p.appendChild(i);const T=this.commonTemplate.createWrapper(this.themeClasses.bubbleContent);return null===s&&T.classList.add(this.themeClasses.bubbleContentWithoutTitle),this.commonTemplate.createContentWrapper(T,t,c,u),this.checkScrollableClass(T),p.appendChild(T),n&&n(p),this.isWatermark&&p.appendChild(this.commonTemplate.createWatermarkBadge(l?Fr.WATERMARK_TYPES.tour:Fr.WATERMARK_TYPES.smartTips)),o&&p.classList.add(this.themeClasses.bubbleInvisible),p},this.createSpaceMaker=(e="",t=0,s=0)=>{const i=this.commonTemplate.createWrapper(this.themeClasses.spaceMaker);return t&&"center"!==e||s!==Ot.PROGRESSBAR_OPTIONS.dots.type?t||s!==Ot.PROGRESSBAR_OPTIONS.stepNumber.type&&s!==Ot.PROGRESSBAR_OPTIONS.circleProgressBar.type||i.classList.add(this.themeClasses.spaceMakerDouble):i.classList.add(this.themeClasses.spaceMakerPlus),i},Qr.set(this,(e,t)=>{const s=this.commonTemplate.createWrapper(this.themeClasses.progress),i=this.commonTemplate.createWrapper(this.themeClasses.progressbar);return 0===e&&s.classList.add("hidden"),"top"===t?s.classList.add(this.themeClasses.progressTop):"bottom"===t&&s.classList.add(this.themeClasses.progressBottom),i.style.width=`${e}%`,s.appendChild(i),s}),Zr.set(this,(e,t,s,i)=>{const r=this.commonTemplate.createWrapper(this.themeClasses.dotProgress);return i&&"center"!==e?"left"===e&&i?r.classList.add(this.themeClasses.dotProgressRight):"right"===e&&i&&r.classList.add(this.themeClasses.dotProgressLeft):r.classList.add(this.themeClasses.dotProgressCenter),this.isWatermark&&r.classList.add(this.themeClasses.dotProgressFree),[...Array(t)].forEach((e,t)=>{const i=document.createElement("span");i.classList.add(this.themeClasses.dotProgressItem),t===s-1&&i.classList.add(this.themeClasses.dotProgressActiveItem),r.appendChild(i)}),r}),en.set(this,(e,t,s,i)=>{const r=this.commonTemplate.createWrapper(this.themeClasses.numberProgress);i?"right"===s&&i&&r.classList.add(this.themeClasses.numberProgressLeft):r.classList.add(this.themeClasses.numberProgressCenter),this.isWatermark&&r.classList.add(this.themeClasses.numberProgressFree),r.innerHTML=e.toString();const n=document.createElement("span");return n.innerHTML="/",r.appendChild(n),r.innerHTML+=t.toString(),r}),tn.set(this,(e,t,s)=>{let i=180*e/100*2,r=0;e>50&&(r=i-180,i=180);const n=this.commonTemplate.createWrapper(this.themeClasses.circleProgress);s?"right"===t&&s&&n.classList.add(this.themeClasses.circleProgressLeft):n.classList.add(this.themeClasses.circleProgressCenter),this.isWatermark&&n.classList.add(this.themeClasses.circleProgressFree);const o=this.commonTemplate.createWrapper(this.themeClasses.circleProgressInner),a=document.createElement("div"),l=this.commonTemplate.createWrapper(this.themeClasses.circleProgressBar);l.classList.add(this.themeClasses.circleProgressBarLeft);const c=this.commonTemplate.createWrapper(this.themeClasses.circleProgressProgress);c.style.transform=`rotate(${i}deg)`,l.appendChild(c);const u=this.commonTemplate.createWrapper(this.themeClasses.circleProgressBar);u.classList.add(this.themeClasses.circleProgressBarRight);const d=this.commonTemplate.createWrapper(this.themeClasses.circleProgressProgress);return d.style.transform=`rotate(${r}deg)`,u.appendChild(d),a.appendChild(l),a.appendChild(u),n.appendChild(o),n.appendChild(a),n}),this.progressBarController=(e,t,s)=>{const{title:i,publicTitle:r,position:n,type:o,alignment:a,actions:l}=e,c=""!==i&&!0===r,{progressType:u}=t,d=rn(this,sn,"f").call(this,t.steps,s),h=d.activeStepIndex/(d.stepsLength/100);switch(u){case Ot.PROGRESSBAR_OPTIONS.dots.type:return rn(this,Zr,"f").call(this,a,d.stepsLength,d.activeStepIndex,l.length);case Ot.PROGRESSBAR_OPTIONS.stepNumber.type:return rn(this,en,"f").call(this,d.activeStepIndex,d.stepsLength,a,l.length);case Ot.PROGRESSBAR_OPTIONS.circleProgressBar.type:return rn(this,tn,"f").call(this,h,a,l.length);default:{let e="";return c||"pointer"===o?c||(e=n&&"bottom"===n?"bottom":"top"):e="top",rn(this,Qr,"f").call(this,h,e)}}},sn.set(this,(e,t)=>{const s={stepsLength:0,activeStepIndex:0};return e.forEach((e,i)=>{[Xs,Qs,Zs,ti,ei].includes(e.type)||(s.stepsLength+=1,i<=t&&(s.activeStepIndex+=1))}),s}),this.createBeacon=(e,t,s,i,r,n,o)=>{const a=document.getElementById(e);if(a)return a;const l=void 0!==o?Js(o):this.themeClasses,c=this.commonTemplate.createWrapper(l.beacon);c.dataset.ufElement="beacon",s&&s!==d&&(c.classList.add(l.beaconIconic),s===h&&c.classList.add(l.beaconIconicQuestion),s===g&&c.classList.add(l.beaconIconicInformation));const{body:u}=document;if(u.appendChild(c),!s||s===d){const e=document.createElement("div");e.classList.add(l.beaconAround),c.appendChild(e)}return c.setAttribute("id",e),c.style.zIndex=t,i&&Dr(i,c),(0,$r.Y)({element:c,callback:()=>(0,Kt.ep)({id:`${fi.t9.beacon}${fi.dn.show}
1`,contentId:r,contentName:n})}),c},this.removeAllBeacons=()=>{document.querySelectorAll("[data-uf-element=beacon]").forEach(e=>e.remove()),window.usetiful_smartTipsObserver&&window.usetiful_smartTipsObserver.length>0&&window.usetiful_smartTipsObserver.forEach(e=>clearInterval(e))},this.notifyUser=(e,t,s,i,r,n,o="bottom-right",a=null,l=null)=>{let c;const d=document.createElement("div");d.dataset.ufContent=e,a&&(d.dataset.id=a),d.setAttribute("style","display: none"),r&&d.classList.add(...r);const h=document.createElement("div");c=t instanceof HTMLElement?t:this.createTitle(3,t);const g=document.createElement("button");g.type="button","checklist"===e?g.classList.add(this.themeClasses.buttonClose,this.themeClasses.checklistCloseButton):g.classList.add(this.themeClasses.buttonClose),g.dataset.ufButton="close",g.ariaLabel="Close";const p=()=>{var t;n&&n(),(null===(t=d.parentElement)||void 0===t?void 0:t.id)===`container_${a}`&&"confirm"!==e&&d.parentElement.remove(),mi(d)};if("checklist"===e&&(window.USETIFUL.checklist.close=p),g.addEventListener("click",p),g.innerHTML='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2 14L14 2" stroke="black" stroke-width="2" stroke-linecap="round"/>\n<path d="M2 2L14 14" stroke="black" stroke-width="2" stroke-linecap="round"/>\n</svg>\n',h.appendChild(g),c instanceof HTMLElement&&h.appendChild(c),s){const t=document.createElement("div");"checklist"===e?t.classList.add(this.themeClasses.content,this.themeClasses.checklistContent):t.classList.add(this.themeClasses.content),t.innerHTML=s,h.appendChild(t)}if(i){const e=i();h.append(e)}if(d.appendChild(h),d.classList.add(this.themeClasses.notification),h.classList.add(`${this.themeClasses.notificationInner}`),this.isWatermark&&h.append(this.commonTemplate.createWatermarkBadge(Fr.WATERMARK_TYPES.checklist)),o===u&&"confirm"!==e){if(!d)return;let e=document.querySelector(`#container_${a}`);const t=!e;if(e?(e.innerHTML="",e.appendChild(d)):(e=document.createElement("div"),a&&(e.id=`container_${a}`),e.style.position="relative",e.appendChild(d),document.body.appendChild(e)),d.classList.add(this.themeClasses.embedded),a&&d.classList.add(`${zs.prefix}-${a}`),l&&t){const{element:t,placement:s,margin:i}=l;if(!t||!s)return;try{this.appendMarginStyle(d,i),(0,xr.iq)(e,t,s)}catch(e){console.error("Error while embedding notification",e)}}}else if(o===u&&"confirm"===e){const e=document.querySelector(`#container_${a}`);if(e){if(d.style.position="absolute",d.style.left="0",d.style.bottom="0",l){const{margin:e}=l;if(e)try{this.appendMarginStyle(d,e)}catch(e){console.error("Error while setting margin for embedded confirmation",e)}}e.appendChild(d)}}else{const e="bottom-left"===o?this.themeClasses.left:this.themeClasses.right;d.classList.add(e),d.style["bottom-left"===o?"left":"right"]="0",d.style.bottom="0",document.body.appendChild(d)}d.classList.contains(zs.visible)||d.classList.add(zs.visible)},this.confirmation=(e,t,s,i,r,n,o,a)=>{const l=`${zs.prefix}-confirmation`,c=`.${l}`;document.querySelector(c)||this.notifyUser("confirm",e,t,()=>{const e=this.commonTemplate.createWrapper(this.themeClasses.actions);e.classList.add("center");const t=this.createButton(s,this.themeClasses.button);t.addEventListener("click",e=>{r(),Ti(c),e.preventDefault(),e.stopPropagation()},!1),e.append(t);const n=this.createButton(i,this.themeClasses.button);return n.addEventListener("click",e=>{Ti(c),e.preventDefault(),e.stopPropagation()},!1),e.append(n),e},[l],()=>{},n,o,a)},this.showElement=e=>{document.body.appendChild(e),e.classList.contains(zs.visible)||e.classList.add(zs.visible)},this.changeItemToDoneStyle=e=>{const t=document.querySelector(`button[data-id='${e}']`);if(t instanceof HTMLButtonElement){t.classList.add(this.themeClasses.done),t.dataset.ufStatus="done";const e=t.querySelector(`.${this.themeClasses.svgIcon}`);e&&(e.innerHTML='<svg class="svg-icon filled" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M21.5349 4.9743C21.8253 5.26973 21.8211 5.74459 21.5257 6.03492L12.2213 15.1789C11.7234 15.6682 10.9213 15.6549 10.4399 15.1494L7.4569 12.0172C7.17123 11.7173 7.18281 11.2426 7.48276 10.9569C7.78271 10.6712 8.25744 10.6828 8.5431 10.9828L11.351 13.9311L20.4743 4.96508C20.7697 4.67474 21.2446 4.67887 21.5349 4.9743Z" />\n<path fill-rule="evenodd" clip-rule="evenodd" d="M12 3.75C7.44365 3.75 3.75 7.44365 3.75 12C3.75 16.5563 7.44365 20.25 12 20.25C16.5563 20.25 20.25 16.5563 20.25 12C20.25 11.2036 20.1374 10.4348 19.9276 9.70794C19.8128 9.30996 20.0423 8.89424 20.4403 8.7794C20.8383 8.66456 21.254 8.89409 21.3688 9.29206C21.6172 10.1527 21.75 11.0615 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C14.243 2.25 16.3111 3.00835 17.9587 4.2822C18.2864 4.53555 18.3467 5.00658 18.0933 5.33428C1
17.84 5.66198 17.369 5.72225 17.0413 5.4689C15.647 4.39099 13.8994 3.75 12 3.75Z" />\n</svg>\n')}},this.checklistProgressUpdate=()=>{var e;const t=document.querySelectorAll(`.${this.themeClasses.notificationInner} .${this.themeClasses.actions} button`);if(0===t.length)return;let s=0;t.forEach(e=>{e.classList.contains(this.themeClasses.done)&&(s+=1)});const i=Math.round(s/(t.length/100));if(!i)return;null===(e=document.querySelector(`.${this.themeClasses.progressbar}`))||void 0===e||e.setAttribute("style",`width: ${i}%;`);const r=document.querySelector(`.${this.themeClasses.progressValue}`);r&&(r.textContent=`${i}%`);const n=document.querySelector(`.${this.themeClasses.badge}`),o=t.length-s;n&&0===o&&n.remove(),n&&(n.textContent=`${o}`)},this.destructElement=e=>{const t=li(`.${this.themeClasses.prefix}-${e}`);null==t||t.forEach(e=>{var t;null===(t=e.parentElement)||void 0===t||t.removeChild(e)})},this.checkScrollableClass=(e,t=4)=>{const s=window.innerHeight;0===e.clientHeight&&t>=0&&setTimeout(()=>this.checkScrollableClass(e,t-1),50),e.clientHeight>.8*s?e.classList.add(this.themeClasses.scrollable):e.classList.remove(this.themeClasses.scrollable)},this.prepareModal=({isOpen:e,data:t,entity:s,currentStepIndex:i,modifyURLBeforeRedirect:r,prepareFeedback:n,callbackAfterCreation:o})=>{const a=this.commonTemplate.createWrapper(this.themeClasses.modal);a.dataset.ufContent="modal",e&&a.classList.add(zs.visible),t.positioning&&this.addPositioningStyle(t.positioning,a),a.classList.add(`${this.themeClasses.prefix}-${t.name}`);const l=this.commonTemplate.createWrapper(this.themeClasses.modalInner),c=document.body.appendChild(a);t.customStyle&&(kr(t.customStyle,l),Dr(t.customStyle,l));const u=c.appendChild(l);this.appendInnerElement({innerElement:u,data:t,entity:s,currentStepIndex:i,modifyURLBeforeRedirect:r,prepareFeedback:n}),e&&window.scrollTo({top:0}),o(c)},this.prepareSlideout=({isOpen:e,data:t,entity:s,currentStepIndex:i,prepareFeedback:r,modifyURLBeforeRedirect:n,callbackAfterCreation:o})=>{const a=this.commonTemplate.createWrapper(this.themeClasses.slideout);a.dataset.ufContent="slideout",a.classList.add(`${this.themeClasses.prefix}-${t.position}`,`${this.themeClasses.prefix}-${t.name}`),e&&a.classList.add(zs.visible);const l=this.commonTemplate.createWrapper(this.themeClasses.slideoutInner),c=document.body.appendChild(a),u=c.appendChild(l);t.customStyle&&(kr(t.customStyle,u),Dr(t.customStyle,u)),this.appendInnerElement({innerElement:u,data:t,entity:s,currentStepIndex:i,prepareFeedback:r,modifyURLBeforeRedirect:n}),o(c)},this.addPositioningStyle=(e,t)=>{if(!e||!t)return;const{position:s,coordinates:i,fixed:r}=e,{top:n,left:o,right:a,bottom:l}=i;t.classList.add(`${Ur.UF_CLASSES_PREFIX}-${s}`,`${Ur.UF_CLASSES_PREFIX}-positioning-new`),r&&t.classList.add(`${Ur.UF_CLASSES_PREFIX}-fixed`);const c={[vi]:{top:`${null!=n?n:0}px`},[Oi]:{top:`${null!=n?n:0}px`,left:`${null!=o?o:0}px`},[Ii]:{top:`${null!=n?n:0}px`,right:`${null!=a?a:0}px`},[_i]:{bottom:`${null!=l?l:0}px`},[Ri]:{bottom:`${null!=l?l:0}px`,left:`${null!=o?o:0}px`},[wi]:{bottom:`${null!=l?l:0}px`,right:`${null!=a?a:0}px`},[yi]:{left:`${null!=o?o:0}px`},[Ei]:{right:`${null!=a?a:0}px`}};Object.assign(t.style,c[s])},this.appendInnerElement=({innerElement:e,data:t,entity:s,currentStepIndex:r,prepareFeedback:n,modifyURLBeforeRedirect:o})=>{var a,l,c;const{title:u,publicTitle:d,content:h,actions:g,alignment:p,closeButton:m}=t,T=""!==u&&!0===d,S=e,f=this.commonTemplate.createWrapper(this.themeClasses.content),v=this.createTitle(3,u,T);T||f.classList.add(this.themeClasses.contentWithoutTitle),f&&h&&this.commonTemplate.createContentWrapper(f,h,null===(a=s.id)||void 0===a?void 0:a.toString(),null===(l=t.id)||void 0===l?void 0:l.toString()),m&&S.appendChild(this.commonTemplate.createCloseButton(s)),v&&S.appendChild(v),s.isProgress()&&S.appendChild(this.getProgressBar({data:t,entity:s,currentStepIndex:r})),S.appendChild(f),this.prepareInlineSurvey({wrapper:S,data:t,entity:s,prepareFeedback:n});let E=null;if((!(_=t.progressOnClick)||"button"===_||_===i)&&g&&g.length>0){const e=this.isForm(f);E=null!==(c=this.prepareActions({data:t,entity:s,isForm:e,modifyURLBeforeRedirect:o}))&&void 0!==c?c:null,E&&S.appendChild(E)}var _;const{progressType:y}=s.tourData,O=this.createSpaceMaker(p,null==g?void 0:g.length,y);E?E.appendChild(O):S.appendChild(O),this.isWatermark&&S.appendChild(this.commonTemplate.createWatermarkBadge(Fr.WATERMARK_TYPES.tour)),this.checkScrollableClass(f)},this.getProgressBar=({data:e,entity:t,currentStepIndex:s})=>{const i=t.getTour();return this.progressBarController(e,i,s)},this.prepareInlineSurvey=({wrapper:e,data:t,entity:s,prepareFeedback:i})=>{i({wrapper:e,data:t,entity:s})},this.prepareActions=({data:e,entity:t,isForm:s,modifyURLBeforeRedirect:r})=>{if(!e)return;const n=this.commonTemplate.createWrapper(this.themeClasses.actions);e.alignment&&n.classList.add(`${Ur.UF_CLASSES_PREFIX}-${e.alignment}`);const o=((e,t)=>{if(!t)return[];const s=Hr.map(e=>e.name);return e===i?t.filter(e=>s.includes(e.type)):t})(e.progressOnClick,e.actions);if(o)for(const i of o){const o=new Xr(i,t.name,this,t.id,e.id,r);o.shouldValidateForm=s;const a=o.prepareAction(`${this.themeClasses.prefix}-${e.name}`);a&&n.appendChild(a)}return n},this.isForm=e=>null!==(null==e?void 0:e.querySelector(`.${zs.formFieldset}`)),this.themeClasses=Js(e),this.isWatermark=t,this.commonTemplate=new Ur.Template(e)}appendMarginStyle(e,t){e.style.marginTop=`${t.top}px`,e.style.marginLeft=`${t.left}px`,e.style.marginRight=`${t.right}px`,e.style.marginBottom=`${t.bottom}px`}},on={BeforeUnload:"BeforeUnload",SpaceApi:"SpaceApi",ReporterApi:"ReporterApi",Report:"Report",TourTriggersControl:"TourTriggersControl",CommonTriggersControl:"CommonTriggersControl",Loader:"Loader",CssThemeLoader:"CssThemeLoader",ProgressorApi:"ProgressorApi",UsetifulTags:"UsetifulTags",ChecklistDismiss:"Dismiss",ButtonControl:"ButtonControl",AvailableOnPage:"AvailableOnPage",LocalStorageCleaner:"LocalStorageCleaner",StorageApiTour:"StorageApiTour",StorageApiSmartTips:"StorageApiSmartTips",CompletionApi:"CompletionApi",CollapsedState:"CollapsedState",Template:"Template"},an={LocalStorage:"LocalStorage",apiToken:"apiToken",apiBaseUrl:"apiBaseUrl",apiSpaceBasePath:"apiSpaceBasePath",reporterHostname:"reporterHostname",reporterBasePath:"reporterBasePath",license:"license",watermark:"watermark",assistantInstance:"assistantInstance",checklistInstance:"checklistInstance",toursInstance:"toursInstance",surveysInstance:"surveysInstance",contentLoader:"contentLoader",tourType:n,smartTipsType:Ar,tourStorageKeyName:Ve,smartTipsGroupStorageKeyName:He};let ln=!1;const cn=()=>
1{if(ln)return;ln=!0;const e=vt.getDefaultContainer(),{localStorage:t}=window;e.registerConstant(an.apiToken,Ie),e.registerConstant(an.apiBaseUrl,ot),e.registerConstant(an.apiSpaceBasePath,"api-space"),e.registerConstant(an.reporterHostname,Lt()),e.registerConstant(an.reporterBasePath,"api"),e.registerClass(on.SpaceApi,Jt,[an.apiToken,an.apiSpaceBasePath,an.apiBaseUrl]),e.registerClass(on.ReporterApi,Jt,[an.apiToken,an.reporterBasePath,an.reporterHostname,null]),e.registerConstant(an.LocalStorage,t),e.registerClass(on.Template,nn),e.registerClass(on.BeforeUnload,Is),e.registerClass(on.Loader,Os,[on.SpaceApi,on.BeforeUnload]),e.registerClass(on.CssThemeLoader,ns),e.registerClass(on.UsetifulTags,Ys,[on.SpaceApi]),e.registerClass(on.Report,Bt,[on.ReporterApi,on.UsetifulTags,on.BeforeUnload]),e.registerClass(on.TourTriggersControl,zt,[an.LocalStorage]),e.registerClass(on.ProgressorApi,Us,[an.apiToken,on.UsetifulTags,on.BeforeUnload,on.SpaceApi]),e.registerConstant(an.tourType,n),e.registerConstant(an.smartTipsType,Ar),e.registerConstant(an.tourStorageKeyName,Ve),e.registerConstant(an.smartTipsGroupStorageKeyName,He),e.registerClass(on.StorageApiTour,Cr,[an.tourType,an.tourStorageKeyName,on.ProgressorApi]),e.registerClass(on.StorageApiSmartTips,Cr,[an.smartTipsType,an.smartTipsGroupStorageKeyName,on.ProgressorApi]),e.registerClass(on.ChecklistDismiss,js,[on.ProgressorApi]),e.registerFunction(on.ButtonControl,()=>{const e=vt.getDefaultContainer();return new Pi(e,e.get(on.Template))}),e.registerClass(on.CompletionApi,Nr,[on.StorageApiTour]),e.registerClass(on.AvailableOnPage,Qi,[on.StorageApiTour,on.CompletionApi,on.ChecklistDismiss]),e.registerClass(on.CommonTriggersControl,Mi,[on.AvailableOnPage]),e.registerClass(on.LocalStorageCleaner,Rr,[on.StorageApiTour,on.ProgressorApi,on.CompletionApi]),e.registerClass(on.CollapsedState,_r)},un=e=>{const t=vt.getDefaultContainer();return null===t.get(e)&&cn(),t.get(e)},dn=(e,t)=>{vt.getDefaultContainer().registerConstant(e,t)};class hn{constructor(e){this.reportEntityProgress=({type:e,entityId:t=0,stepIndex:s=0,action:i,itemId:r=0,isDevKit:n})=>{this.addToReportQueue(`report of ${e} for entity ${r||t} with action ${i}`,{type:e,id:r||t,entityId:t,tourId:"number"==typeof t?t:0,stepIndex:s,action:i,isDevKit:n})},this.saveSurveyAnswerLS=({id:e,updatedAt:t,surveyId:s,surveyName:i,questionId:r,questionType:n,pageId:o,pageName:a,optionValue:l,optionValues:c,answerText:u},d=!1)=>{try{const h=JSON.parse(localStorage.getItem(Qe)||"[]");h.push({id:e,updatedAt:t,surveyId:s,surveyName:i,questionId:r,questionType:n,pageId:o,pageName:a,optionValue:l,optionValues:c,answerText:u}),(0,Ot.saveToLocalStorage)(Qe,h,!1),d||document.dispatchEvent(new CustomEvent(N,{detail:{props:{isImmediate:!0}}}))}catch(e){console.error("Failed to save survey answer to localStorage:",e)}},this.reportFormAnswer=({reportType:e="form",question:t="",questionType:s="",answer:i="",formId:r,entityId:n=0})=>{this.addToReportQueue(`report of form for entity ${n} with question ${t} with answer ${i}`,{reportType:e,formId:r,questionType:s,question:t,answer:i,entityId:n})},this.reportSurveyAnswer=({reportType:e=Ot.CONTENT_TYPE.survey,surveyId:t,surveyName:s,questionType:i="",questionId:r,pageId:n,pageName:o,optionValue:a,optionValues:l,answerText:c,batched:u=!1})=>{var d;const h=`report of survey ${t} with question ${r} with answer ${null!==(d=null!=c?c:a)&&void 0!==d?d:l}`;this.addToReportQueue(h,{reportType:e,surveyId:t,questionId:r,questionType:i,optionValue:a,optionValues:l,answerText:c},!0),this.saveSurveyAnswerLS({id:`${t}_${r}_${Date.now()}`,updatedAt:(new Date).toISOString(),surveyId:t,surveyName:s,questionId:r,questionType:i,pageId:(null==n?void 0:n.toString())||"",pageName:o,optionValue:a,optionValues:l,answerText:c},u)},this.reportAssistantProgress=({reportType:e=Ot.CONTENT_TYPE.assistant,assistantId:t})=>{this.addToReportQueue(`report of assistant ${t}`,{reportType:e,assistantId:t})},this.reportError=({reportType:e="error",name:t="",text:s="",code:i=0,url:r="",entityId:n="0",entityType:o="",spaceId:a=0})=>{this.addToReportQueue(`report of form for entity ${n} with question ${t} with answer ${s}`,{reportType:e,name:t,text:s,code:i,url:r,entityType:o,entityId:n,spaceId:a})},this.triggerReportEntityEvent=e=>{this.reportEntityProgress(e.detail)},this.triggerReportFormAnswer=e=>{this.reportFormAnswer(e.detail)},this.triggerReportSurveyAnswer=e=>{this.reportSurveyAnswer(e.detail)},this.triggerReportAssistantEvent=e=>{this.reportAssistantProgress(e.detail)},this.triggerReportError=e=>{this.reportError(e.detail)},this.placeReportListener=()=>{document.addEventListener(R,this.triggerReportEntityEvent),document.addEventListener(A,this.triggerReportFormAnswer),document.addEventListener(P,this.triggerReportSurveyAnswer),document.addEventListener(C,this.triggerReportAssistantEvent),document.addEventListener(L,this.triggerReportError)},this.removeReportListener=()=>{document.removeEventListener(R,this.triggerReportEntityEvent),document.removeEventListener(A,this.triggerReportFormAnswer),document.removeEventListener(P,this.triggerReportSurveyAnswer),document.removeEventListener(L,this.triggerReportError)},this.report=e}addToReportQueue(e,t,s=!1){this.report&&(mt(e),this.report.add(t,s))}}let gn=null;const pn=()=>
1{if(!gn)throw new Error("ReportManager not initialized. Call initializeReportManager first.");return gn},mn=()=>{pn().placeReportListener()};var Tn=s(6395);const Sn=class{constructor(){this.isUnloading=!1,this.startOwnershipHeartbeat=()=>{this.stopOwnershipHeartbeat(),(0,wr.Ep)(this.tabId),this.ownershipHeartbeat=window.setInterval(()=>(0,wr.Ep)(this.tabId),1e4)},this.stopOwnershipHeartbeat=()=>{void 0!==this.ownershipHeartbeat&&(window.clearInterval(this.ownershipHeartbeat),this.ownershipHeartbeat=void 0)},this.storeTourProgress=(e=localStorage.getItem(Ve))=>{var t;if(e){const s=null===(t=JSON.parse(e))||void 0===t?void 0:t.filter(e=>e.state===o);s.length>0&&localStorage.setItem(`${le}${this.tabId}`,JSON.stringify(s))}},this.requestTourProgressRecover=()=>{(0,Kt.BI)({name:k,isToursContext:!0,details:{key:`${le}${this.tabId}`}})},this.unloadListener=e=>{(null==e?void 0:e.persisted)||(this.isUnloading=!0,(0,wr.ev)(this.tabId),localStorage.removeItem(`${le}${this.tabId}`))},this.removeOnLoadListener=()=>{window.addEventListener("pagehide",this.unloadListener)},this.pageShowListener=e=>{e.persisted&&(this.isUnloading=!1,"visible"===document[this.visibilityAPI.state]&&this.handleVisibilityChange())},this.visibilityAPI=this.getVisibilityAPI(),this.boundVisibilityHandler=this.handleVisibilityChange.bind(this),this.tabId=(0,br.Y7)(),(0,br.oU)(this.tabId),this.removeOnLoadListener(),window.addEventListener("pageshow",this.pageShowListener)}init(){this.visibilityAPI.visibilityChange&&document.addEventListener(this.visibilityAPI.visibilityChange,this.boundVisibilityHandler,!1),"visible"===document[this.visibilityAPI.state]&&this.startOwnershipHeartbeat()}destroy(){document.removeEventListener(this.visibilityAPI.visibilityChange,this.boundVisibilityHandler,!1),this.stopOwnershipHeartbeat(),window.removeEventListener("pagehide",this.unloadListener),window.removeEventListener("pageshow",this.pageShowListener),(0,wr.ev)(this.tabId)}getVisibilityAPI(){if(void 0!==document.hidden)return{hidden:"hidden",visibilityChange:"visibilitychange",state:"visibilityState"};if(void 0!==document.msHidden)return{hidden:"msHidden",visibilityChange:"msvisibilitychange",state:"msVisibilityState"};if(void 0!==document.webkitHidden)return{hidden:"webkitHidden",visibilityChange:"webkitvisibilitychange",state:"webkitVisibilityState"};throw new Error("Page Visibility API is not supported.")}handleVisibilityChange(){if("visible"===document[this.visibilityAPI.state]){if(this.requestTourProgressRecover(),this.startOwnershipHeartbeat(),!Fe||Fe&&window.usetifulTags.userId){const e=new CustomEvent(b);document.dispatchEvent(e)}}else{const e=new CustomEvent(w);document.dispatchEvent(e),this.isUnloading||this.storeTourProgress(),this.stopOwnershipHeartbeat(),(0,wr.ev)(this.tabId)}}},fn={[Ot.INTEGRATIONS.ga]:{scriptId:cs.GA_INTEGRATION,scriptPath:gs(cs.GA_INTEGRATION),pluginPath:`${cs.GA_INTEGRATION}-plugin.js`,initFn:()=>{var e,t;return null===(t=null===(e=window.USETIFUL)||void 0===e?void 0:e.gaInit)||void 0===t?void 0:t.call(e)}},[Ot.INTEGRATIONS.fullstory]:{scriptId:cs.FULLSTORY_INTEGRATION,scriptPath:gs(cs.FULLSTORY_INTEGRATION),pluginPath:`${cs.FULLSTORY_INTEGRATION}-plugin.js`,initFn:()=>{var e,t;return null===(t=null===(e=window.USETIFUL)||void 0===e?void 0:e.FSInit)||void 0===t?void 0:t.call(e)}},[Ot.INTEGRATIONS.webevent]:{scriptId:cs.WEBEVENT_INTEGRATION,scriptPath:gs(cs.WEBEVENT_INTEGRATION),pluginPath:`${cs.WEBEVENT_INTEGRATION}-plugin.js`,initFn:()=>{var e,t;return null===(t=null===(e=window.USETIFUL)||void 0===e?void 0:e.WEInit)||void 0===t?void 0:t.call(e)}}},vn=(e,t)=>{const s=fn[t];if(!s)return;if(document.getElementById(s.scriptId))return void s.initFn();let i=`${e}${s.scriptPath}`;const r=(0,os.s)(s.scriptId,i);ke&&(r.dataset.debug="1"),r.onload=s.initFn},En=(e,t,s,i)=>{vn(e,Ot.INTEGRATIONS.fullstory),t.forEach(({code:t})=>{var r;t!==Ot.INTEGRATIONS.fullstory&&(s&&i&&!(null===(r=i[t])||void 0===r?void 0:r.plans.includes(s))?console.warn(`Usetiful: ${t} integration isn't available in your current plan.`):vn(e,t))})},_n=()=>{const e=un(on.UsetifulTags).getUserId();return mt(`Identified userId is: ${e}`),!!e&&(!e||e!==c||(console.error("Invalid UserID provided to Usetiful. Replace sample value with unique identificator for each logged-in user. Read more about how to use userIDs on https://help.usetiful.com/support/solutions/articles/77000514872-user-id-for-cross-device-support"),(0,ws.reportError)({name:ws.ERROR_NAMES.userId,text:"You are using an example userId.",type:"account"}),!1))},yn="data-u-banner-original",On=()=>{const e=document.querySelectorAll(`[${yn}]`);e.length>
10&&e.forEach(e=>{"BODY"===e.tagName?e.style.paddingTop=e.getAttribute(yn):e.style.top=e.getAttribute(yn),e.removeAttribute(yn)})};var In=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(s[i[r]]=e[i[r]])}return s};const Rn=()=>{const e={reinitialize:()=>{console.warn("reinitialize function is not available yet. Please try to call it with some delay")},deactivateScript:()=>{const e=document.getElementById("usetifulScript");e?(e.remove(),window.USETIFUL.removeTriggers(),window.USETIFUL.removeContent(),Ps(),null==wt||wt.destroy(),wt=null):console.error("Usetiful script not found")},removeContent:()=>{var e;null===(e=document.getElementById(`${ls()}-banners`))||void 0===e||e.remove(),On(),(()=>{const e=document.body;if(e&&e.hasAttribute(yn))try{const t=e.getAttribute(yn);t&&(e.style.paddingTop=t,e.removeAttribute(yn))}catch(t){console.error("Error resetting style for element:",e,t)}})(),window.usetiful_instance=void 0,vt.cleanup();document.querySelectorAll('[data-uf-content], [data-uf-element], [data-uf-button="button-main"], .uf-overlay').forEach(e=>e.remove())},removeTriggers:()=>{var e;window.usetiful_activeTriggersOnElements=[],window.usetiful_smartTipsAddedEvents=[],(null===(e=window.usetiful_intervals)||void 0===e?void 0:e.length)>0&&(St(window.usetiful_intervals),window.usetiful_intervals=[])}};window.USETIFUL=Object.assign(Object.assign({},window.USETIFUL),e),Re&&(window.USETIFUL.orgId=Re)},wn=[p.tour,p.survey],bn={not_applicable:"Content throttling does not apply to this content type.",off:"Content throttling is turned off.",ignored:"This survey ignores content throttling â always allowed.",allowing_all:"Throttling is on and currently allows this content.",allowing_specific:"Throttling is on and blocks this content, but other content is still allowed.",blocking_all:"Throttling is on and currently blocks all autoplayed content."},An=(e,t)=>{window.USETIFUL.troubleshoot={checkTargeting:(s,i)=>{const r=t[s];if(!r)return console.error(`Usetiful: Unknown content type "${s}". Valid values: ${m.join(", ")}.`),null;const n=String(i),o=r.find(e=>String(e.id)===n||e.ulid&&e.ulid===n);if(!o)return console.error(`Usetiful: No ${s} with id "${i}" found in the current content.`),null;e.refreshURL();const a=o.targets;Array.isArray(a)&&0!==a.length||console.info(`Usetiful: ${s} "${i}" has no targeting conditions â it matches every page (overall: true).`);const l=e.evaluateAvailableOnPageWithDetails(a,o.targetOperator),c=e=>{const{type:t,id:s}=e,i=In(e,["type","id"]),r=Object.fromEntries(Object.entries(i).filter(([,e])=>null!=e&&""!==e));return JSON.stringify(r)},u=e=>e.map(({condition:e,result:t,note:s})=>Object.assign({type:e.type,params:c(e),result:t},s?{note:s}:{}));console.group(`%cContent targeting â overall: ${l.overall?"â
PASS":"â FAIL"} (${l.operator})`,"font-weight: bold; color: "+(l.overall?"green":"red")),l.conditions.length>0&&console.table(u(l.conditions)),l.subGroups.forEach((e,t)=>{console.group(`%cSub-group ${t+1} â overall: ${e.overall?"â
PASS":"â FAIL"} (${e.operator})`,"font-weight: bold; color: "+(e.overall?"green":"red")),console.table(u(e.conditions)),console.groupEnd()}),console.groupEnd();const d=((e,t)=>{var s;const i={applicable:wn.includes(e),enabled:!1,blocked:!1,blockedBy:null,state:"not_applicable",general:null,survey:null};if(!i.applicable)return i;if(e===p.survey&&t.ignoreContentThrottling)return Object.assign(Object.assign({},i),{state:"ignored"});const r=null===(s=window.USETIFUL)||void 0===s?void 0:s.throttling,n="function"==typeof(null==r?void 0:r.getStatus)?r.getStatus():void 0;if(!n||!n.enabled)return Object.assign(Object.assign({},i),{state:"off"});const o=n.general.limitReached,a=e===p.survey&&n.survey.limitReached;let l=!1,c=null,u="allowing_all";return o?(l=!0,c="general",u="blocking_all"):a&&(l=!0,c="survey",u="allowing_specific"),Object.assign(Object.assign({},i),{enabled:!0,blocked:l,blockedBy:c,state:u,general:n.general,survey:n.survey})})(s,o);return(e=>{var t,s;const i="not_applicable"===e.state||"off"===e.state||"ignored"===e.state,r=i?"gray":e.blocked?"red":"green",n=i?"â¹ï¸":e.blocked?"â BLOCKED":"â
ALLOWED";if(console.group(`%cContent throttling â ${n}`,`font-weight: bold; color: ${r}`),console.info(bn[e.state]),e.enabled){const i=[];(null===(t=e.general)||void 0===t?void 0:t.configured)&&i.push({counter:"general",usage:e.general.usage,limit:e.general.limit,limitReached:e.general.limitReached}),(null===(s=e.survey)||void 0===s?void 0:s.configured)&&i.push({counter:"survey",usage:e.survey.usage,limit:e.survey.limit,limitReached:e.survey.limitReached}),i.length>0&&console.table(i),console.info("Note: content throttling only affects autoplayed content. Manually triggered content is never throttled.")}console.groupEnd()})(d),Object.assign(Object.assign({},l),{throttling:d})}}};var Pn=s(2559);window.USETIFUL||(window.USETIFUL={});const Cn=e=>null!=e&&""!==e;
1var Ln=function(e,t,s,i){return new(s||(s=Promise))(function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const Nn=vt.getDefaultContainer();let kn=0;function Dn(){var e;if(window.usetiful_instance||window.usetiful_plugin_instance){const e=window.usetiful_plugin_instance?"The Usetiful script cannot be initialized because Usetiful Chrome extension is already running.":"The Usetiful script cannot be initialized because another Usetiful instance is already running. Check the implementation of the Usetiful code and prevent it from being called multiple times when page is loading.";return console.warn(e),void(window.usetiful_plugin_instance||(0,ws.reportError)({name:ws.ERROR_NAMES.duplicateScript,type:"account"}))}us.forEach(e=>{ms.loadChunk(e).catch(()=>{})}),window.usetiful_instance=Date.now().toString(),Rn(),(()=>{const e={setId:e=>{window.usetifulTags||(window.usetifulTags={}),window.usetifulTags.userId=e},setTag:(e,t)=>{window.usetifulTags||(window.usetifulTags={}),window.usetifulTags[e]=t},setTags:e=>{window.usetifulTags||(window.usetifulTags={});for(const t in e)Cn(e[t])&&window.USETIFUL.user.setTag(t,e[t])},removeTag:e=>{window.usetifulTags||(window.usetifulTags={}),delete window.usetifulTags[e],(0,x.wZ)(e)},removeAllTags:()=>{if(window.localStorage.removeItem(tt),window.usetifulTags)for(const e in window.usetifulTags)"userId"!==e&&delete window.usetifulTags[e]},clearProgress:()=>{pt.forEach(e=>{const t=e===Pn.b?"{}":"[]";window.localStorage.setItem(e,t)}),window.USETIFUL.user.removeAllTags()}};if(window.USETIFUL.user=e,document.dispatchEvent(new CustomEvent(F)),window.location.hash.includes("#installationVerifier")){const e={resource:"USETIFUL_SCRIPT",type:Ot.NOTIFICATION_MESSAGES.scriptReady};window.postMessage(e,"*"),["https://app.fullstory.com","https://app.eu1.fullstory.com","https://app.staging.fullstory.com","https://app.eu1.staging.fullstory.com","https://app.onfire.fyi","https://app.eu1.onfire.fyi","https://webber.internal.fullstory.test:8043"].forEach(t=>{var s;null===(s=window.opener)||void 0===s||s.postMessage(e,t)})}})(),cn();const t=un(on.Loader),s=un(on.UsetifulTags),i=un(on.BeforeUnload),r=un(on.ProgressorApi),n=un(on.LocalStorageCleaner);null!==(e=window.usetifulTags)&&void 0!==e||(window.usetifulTags={}),s.initializeAutoGenTags().catch(()=>{console.warn("Usetiful: Failed to initialize autoGeneratedTags")});const o=un(on.Report);(e=>{gn=new hn(e)})(o),window.usetiful_intervals=[];let a=null,l=null,c=null,u=null,d=null,h=null;const g=e=>Ln(this,[e],void 0,function*({tours:e=[],smartTipsGroups:t=[],checklists:g=[],assistants:m=[],banners:T=[],licence:S,reportPrivacyMode:f,watermark:v,settings:E=[],integrations:_=[],surveys:y=[],isOverusedAccount:O=!1}){window.usetiful_isAboutToRefresh=null,Ot.localStorageState.userIdValidator=_n,Ot.localStorageState.requiredKeysToCheck=gt,An(un(on.AvailableOnPage),{tour:e,checklist:g,assistant:m,banner:T,survey:y,smartTips:t});const I=new CustomEvent(w);if(document.dispatchEvent(I),(()=>{const e=un(on.ProgressorApi);if(1===e.loadingState)return!1;{const t=bt();return!(!(null==t?void 0:t.isAvailable())||t.isDataCaptureDisabled())&&0===Object.keys(e.loadedUserData).length}})())return mt("Guides and Surveys: Script is waiting for Progressor data to be ready."),!1;if(O&&"free"===S&&console.error("%cYou are heavily overusing the free version of Usetiful. Please review your license to avoid having your content blocked!","background: #ffcc00; color: #b30000; font-size: 16px; font-weight: bold; padding: 8px 16px; border: 2px solid #b30000; border-radius: 4px;"),(()=>{const e=un(on.ProgressorApi);return _n()&&0===Object.keys(e.loadedUserData).length&&1===e.loadingState})()){if(kn>=5)return console.error("Usetiful: Maximum retry attempts (5) reached."),kn=0,!1;kn++;const e=Math.pow(10,kn);return console.warn(`Usetiful: UserId set with delay. Retrying loading from API (attempt ${kn}/5) in ${e}ms.`),setTimeout(()=>{r.loadFromApi()},e),!1}kn=0;const R=un(on.ChecklistDismiss);R.destroy();un(on.CompletionApi).init(),(()=>{const e={reinitialize:()=>{window.USETIFUL.user?window.USETIFUL.user.getProgress().then(is):is()}};window.USETIFUL=Object.assign(Object.assign({},window.USETIFUL),e)})(),((e,t)=>{const s=Ts("devkitInit");ms.isChunkLoaded(cs.DEVKIT)&&s?s(e,t):ms.loadChunk(cs.DEVKIT).then(()=>{const s=Ts("devkitInit");s&&s(e,t)}).catch(()=>{mt("Failed to load devkit chunk")})})(r,R),_s();const b=un(on.CollapsedState);n.init(e,g,m,y,R,b),b.init(),R.init(),dn(an.license,S),dn(an.watermark,v),s.setReportDataPrivacy(parseInt(f,10)),window.usetiful_intervals.length>0&&(St(window.usetiful_intervals),window.usetiful_intervals=[]),u&&(u=null),c&&(c=null),l&&(l=null),d&&(d.destroy(),d=null),a&&(a.destroy(),a=null),h&&(h.destroyInstance(),h=null),o&&(pn().removeReportListener(),(0,Tn.q)(),o.destroy()),r&&r.destroy(),i&&i.destroy(),window.removeEventListener("click",qr),window.removeEventListener("focusin",qr),(0,x.XN)(),T.length&&fs(T,v,Ge,Nn),_.length>0&&En(it,_,S,Ot.config);const A=[],P=[];t.length>0&&A.push(cs.SMART_TIPS),T.length>0&&A.push(cs.BANNERS);const C=e.length>0||g.length>0||m.length>0||y.length>0;C&&(P.push(cs.TOURS),g.length>
10&&P.push(cs.CHECKLISTS),m.length>0&&P.push(cs.ASSISTANTS),y.length>0&&P.push(cs.SURVEYS));try{d=new Sn,t.length>0&&vs(t,Nn);let s=null;if(C&&(s=yield Es(e,g,m,y,Nn)),s){const e=(0,Ot.getSettingsValue)(E,Ot.SPACE_SETTINGS.contentPriority)||[p.tour,p.survey,p.checklist,p.assistant],t=(0,Ot.getSettingsValue)(E,Ot.SPACE_SETTINGS.priorityAcrossEntities)||!1,i=Ts("contentLoaderInit");i&&(a=i(s.assistantInstance,s.checklistInstance,s.toursInstance,e,t,Nn),dn(an.contentLoader,a))}i.init(),r.init(),d.init(),(0,Tn.F)();const n=a||Nn.get(an.contentLoader);return null==n||n.init(E),mn(),o.init(),!0}catch(e){return console.error("Failed to load required chunks:",e),console.error("Usetiful: Falling back to basic initialization"),i.init(),r.init(),null==d||d.init(),mn(),(0,Tn.F)(),o.init(),!1}});let m=!1;const T=e=>Ln(this,void 0,void 0,function*(){if(m)return mt("main is already running, skipping this run"),!1;m=!0;try{return yield g(e)}finally{m=!1}});return t.loadCriticalCss(),new Promise(e=>{t.loadConfig(t=>Ln(this,void 0,void 0,function*(){const s=yield T(t);e(s)}))})}Dn()})();
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.