@pendo/agent 2.270.0 → 2.271.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  /*
2
2
  @license https://agent.pendo.io/licenses
3
3
  */
4
- function URLPolyfillFactory(n){return function URL(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory),__defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),_a,__defProp$1=Object.defineProperty,__defNormalProp$1=(e,t,n)=>t in e?__defProp$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField$1=(e,t,n)=>__defNormalProp$1(e,"symbol"!=typeof t?t+"":t,n),NodeType$2=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(NodeType$2||{});const testableAccessors$1={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods$1={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype$1={},isAngularZonePresent$1=()=>!!globalThis.Zone;function getUntaintedPrototype$1(e){if(untaintedBasePrototype$1[e])return untaintedBasePrototype$1[e];var t=globalThis[e];const n=t.prototype;var i=e in testableAccessors$1?testableAccessors$1[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in testableMethods$1?testableMethods$1[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r&&!isAngularZonePresent$1())return untaintedBasePrototype$1[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype$1[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache$1={};function getUntaintedAccessor$1(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache$1[i]?untaintedAccessorCache$1[i].call(t):(e=getUntaintedPrototype$1(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache$1[i]=e).call(t):t[n])}const untaintedMethodCache$1={};function getUntaintedMethod$1(e,t,n){var i=e+"."+String(n);return untaintedMethodCache$1[i]?untaintedMethodCache$1[i].bind(t):"function"!=typeof(e=getUntaintedPrototype$1(e)[n])?t[n]:(untaintedMethodCache$1[i]=e).bind(t)}function childNodes$1(e){return getUntaintedAccessor$1("Node",e,"childNodes")}function parentNode$1(e){return getUntaintedAccessor$1("Node",e,"parentNode")}function parentElement$1(e){return getUntaintedAccessor$1("Node",e,"parentElement")}function textContent$1(e){return getUntaintedAccessor$1("Node",e,"textContent")}function contains$1(e,t){return getUntaintedMethod$1("Node",e,"contains")(t)}function getRootNode$1(e){return getUntaintedMethod$1("Node",e,"getRootNode")()}function host$1(e){return e&&"host"in e?getUntaintedAccessor$1("ShadowRoot",e,"host"):null}function styleSheets$1(e){return e.styleSheets}function shadowRoot$1(e){return e&&"shadowRoot"in e?getUntaintedAccessor$1("Element",e,"shadowRoot"):null}function querySelector$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelector")(t)}function querySelectorAll$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelectorAll")(t)}function mutationObserverCtor$1(){return getUntaintedPrototype$1("MutationObserver").constructor}const index$1={childNodes:childNodes$1,parentNode:parentNode$1,parentElement:parentElement$1,textContent:textContent$1,contains:contains$1,getRootNode:getRootNode$1,host:host$1,styleSheets:styleSheets$1,shadowRoot:shadowRoot$1,querySelector:querySelector$1,querySelectorAll:querySelectorAll$1,mutationObserver:mutationObserverCtor$1};function isElement(e){return e.nodeType===e.ELEMENT_NODE}function isShadowRoot(e){var t=e&&"host"in e&&"mode"in e&&index$1.host(e)||null;return Boolean(t&&"shadowRoot"in t&&index$1.shadowRoot(t)===e)}function isNativeShadowDom(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function getNative$1$1(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}const nativeSetTimeout="undefined"!=typeof window?getNative$1$1("setTimeout").bind(window):global.setTimeout;function fixBrowserCompatibilityIssuesInCSS(e){return e=e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")?e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):e}function escapeImportStatement(e){var t=e["cssText"];return t.split('"').length<3?t:(t=["@import",`url(${JSON.stringify(e.href)})`],""===e.layerName?t.push("layer"):e.layerName&&t.push(`layer(${e.layerName})`),e.supportsText&&t.push(`supports(${e.supportsText})`),e.media.length&&t.push(e.media.mediaText),t.join(" ")+";")}function stringifyStylesheet(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;return!t&&e.ownerNode&&e.ownerNode.ownerDocument&&(t=e.ownerNode.ownerDocument.location.href),fixBrowserCompatibilityIssuesInCSS(Array.from(n,e=>stringifyRule(e,t)).join(""))}catch(t){return null}}function stringifyRule(t,n){if(isCSSImportRule(t)){let e;try{e=stringifyStylesheet(t.styleSheet)||escapeImportStatement(t)}catch(i){e=t.cssText}return t.styleSheet.href?absolutifyURLs(e,t.styleSheet.href):e}{let e=t.cssText;return isCSSStyleRule(t)&&(e=replaceChromeGridTemplateAreas(t),t.selectorText.includes(":"))&&(e=fixSafariColons(e)),n?absolutifyURLs(e,n):e}}function replaceChromeGridTemplateAreas(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}function fixSafariColons(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function isCSSImportRule(e){return"styleSheet"in e}function isCSSStyleRule(e){return"selectorText"in e}class Mirror{constructor(){__publicField$1(this,"idNodeMap",new Map),__publicField$1(this,"nodeMetaMap",new WeakMap)}getId(e){return e?(null==(e=this.getMeta(e))?void 0:e.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap["delete"](t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function createMirror$2(){return new Mirror}function maskInputValue({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&toLowerCase(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function toLowerCase(e){return e.toLowerCase()}const ORIGINAL_ATTRIBUTE_NAME="__rrweb_original__";function is2DCanvasBlank(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=ORIGINAL_ATTRIBUTE_NAME in r?r[ORIGINAL_ATTRIBUTE_NAME]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return!1}return!0}function getInputType(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?toLowerCase(t):null}function extractFileExtension(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}function extractOrigin(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}const URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,URL_PROTOCOL_MATCH=/^(?:[a-z+]+:)?\/\//i,URL_WWW_MATCH=/^www\..*/i,DATA_URI=/^(data:)([^,]*),(.*)/i;function absolutifyURLs(e,d){return(e||"").replace(URL_IN_CSS_REF,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(URL_PROTOCOL_MATCH.test(n)||URL_WWW_MATCH.test(n))return`url(${r}${n}${r})`;if(DATA_URI.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${extractOrigin(d)+n}${r})`;var a=d.split("/"),o=n.split("/");a.pop();for(const s of o)"."!==s&&(".."===s?a.pop():a.push(s));return`url(${r}${a.join("/")}${r})`})}let _id=1;const tagNameRegex=new RegExp("[^a-z0-9-_:]"),IGNORED_NODE=-2;function genId(){return _id++}function getValidTagName$1(e){return e instanceof HTMLFormElement?"form":(e=toLowerCase(e.tagName),tagNameRegex.test(e)?"div":e)}let canvasService,canvasCtx;const SRCSET_NOT_SPACES=/^[^ \t\n\r\u000c]+/,SRCSET_COMMAS_OR_SPACES=/^[, \t\n\r\u000c]+/;function getAbsoluteSrcsetString(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(SRCSET_COMMAS_OR_SPACES),!(o>=r.length);){let n=e(SRCSET_NOT_SPACES);if(","===n.slice(-1))n=absoluteToDoc(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=absoluteToDoc(i,n),!1);for(;;){var s=r.charAt(o);if(""===s){a.push((n+e).trim());break}if(t)")"===s&&(t=!1);else{if(","===s){o+=1,a.push((n+e).trim());break}"("===s&&(t=!0)}e+=s,o+=1}}}return a.join(", ")}const cachedDocument=new WeakMap;function absoluteToDoc(e,t){return t&&""!==t.trim()?getHref(e,t):t}function isSVGElement(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function getHref(e,t){let n=cachedDocument.get(e);if(n||(n=e.createElement("a"),cachedDocument.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function transformAttribute(e,t,n,i){return i&&("src"!==n&&("href"!==n||"use"===t&&"#"===i[0])&&("xlink:href"!==n||"#"===i[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?getAbsoluteSrcsetString(e,i):"style"===n?absolutifyURLs(i,getHref(e)):"object"===t&&"data"===n?absoluteToDoc(e,i):i:absoluteToDoc(e,i))}function ignoreAttribute(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function _isBlockedElement(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}function classMatchesRegex(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&classMatchesRegex(index$1.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&classMatchesRegex(index$1.parentNode(t),n,e)}function needMaskingText(e,t,n,i){let r;if(isElement(e)){if(r=e,"*"===n)return!0;if(!index$1.childNodes(r).length)return!1}else{if(null===index$1.parentElement(e))return!1;r=index$1.parentElement(e)}try{if("string"==typeof t){if(i){if(r.closest("."+t))return!0}else if(r.classList.contains(t))return!0}else if(classMatchesRegex(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function onceIframeLoaded(n,i,r){var o=n.contentWindow;if(o){let e=!1,t;try{t=o.document.readyState}catch(a){return}if("complete"!==t){const s=nativeSetTimeout(()=>{e||(i(),e=!0)},r);void n.addEventListener("load",()=>{clearTimeout(s),e=!0,i()})}else{r="about:blank";if((n.src===r||n.src!==r&&o.location.href!==r)&&"complete"===t)return nativeSetTimeout(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}function onceStylesheetLoaded(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=nativeSetTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}function serializeNode(e,t){var{doc:n,mirror:t,blockClass:i,blockSelector:r,needsMask:o,inlineStylesheet:a,maskInputOptions:s={},maskTextFn:d,maskInputFn:u,dataURLOptions:c={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1}=t,g=getRootId(n,t);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:NodeType$2.Document,childNodes:[],compatMode:e.compatMode}:{type:NodeType$2.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:NodeType$2.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return serializeElementNode(e,{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:a,maskInputOptions:s,maskInputFn:u,dataURLOptions:c,inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f,rootId:g,needsMask:o});case e.TEXT_NODE:return serializeTextNode(e,{doc:n,needsMask:o,maskTextFn:d,maskInputOptions:s,maskInputFn:u,rootId:g});case e.CDATA_SECTION_NODE:return{type:NodeType$2.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:NodeType$2.Comment,textContent:index$1.textContent(e)||"",rootId:g};default:return!1}}function getRootId(e,t){return!t.hasNode(e)||1===(e=t.getId(e))?void 0:e}function serializeTextNode(e,t){var n,{needsMask:i,maskTextFn:r,rootId:o,maskInputOptions:a,maskInputFn:s}=t,d=index$1.parentNode(e),u=d&&d.tagName;let c=index$1.textContent(e);var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=d.sheet)&&n.cssRules&&(c=stringifyStylesheet(d.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=absolutifyURLs(c,getHref(t.doc))}return p&&(c="SCRIPT_PLACEHOLDER"),!l&&!p&&c&&i&&(c=r?r(c,index$1.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&a.textarea&&(c=s?s(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:NodeType$2.Text,textContent:c||"",isStyle:l,rootId:o}}function serializeElementNode(t,e){const{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:s,dataURLOptions:d={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:l,newlyAddedElement:p=!1,rootId:h,needsMask:f}=e;var e=_isBlockedElement(t,i,r),g=getValidTagName$1(t);let m={};var v,y=t.attributes.length;for(let e=0;e<y;e++){var b=t.attributes[e];ignoreAttribute(g,b.name,b.value)||(m[b.name]=transformAttribute(n,g,toLowerCase(b.name),b.value))}if("link"===g&&o){var I=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=I?stringifyStylesheet(I):e)&&(delete m.rel,delete m.href,m._cssText=e)}if("style"===g&&t.sheet&&!(t.innerText||index$1.textContent(t)||"").trim().length&&(I=stringifyStylesheet(t.sheet))&&(m._cssText=I),"input"!==g&&"textarea"!==g&&"select"!==g||(I=t.value,v=t.checked,"radio"!==m.type&&"checkbox"!==m.type&&"submit"!==m.type&&"button"!==m.type&&I?m.value=maskInputValue({element:t,type:getInputType(t),tagName:g,value:I,maskInputOptions:a,maskInputFn:s,needsMask:f}):v&&(m.checked=v)),"option"===g&&(t.selected&&!a.select?m.selected=!0:delete m.selected),"dialog"===g&&t.open&&(m.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===g&&c&&("2d"===t.__context?is2DCanvasBlank(t)||(m.rr_dataURL=t.toDataURL(d.type,d.quality)):"__context"in t||(I=t.toDataURL(d.type,d.quality),(v=n.createElement("canvas")).width=t.width,v.height=t.height,I!==v.toDataURL(d.type,d.quality)&&(m.rr_dataURL=I))),"img"===g&&u){canvasService||(canvasService=n.createElement("canvas"),canvasCtx=canvasService.getContext("2d"));const S=t,A=S.currentSrc||S.getAttribute("src")||"<unknown-src>",T=S.crossOrigin,_=()=>{S.removeEventListener("load",_);try{canvasService.width=S.naturalWidth,canvasService.height=S.naturalHeight,canvasCtx.drawImage(S,0,0),m.rr_dataURL=canvasService.toDataURL(d.type,d.quality)}catch(e){if("anonymous"!==S.crossOrigin)return S.crossOrigin="anonymous",void(S.complete&&0!==S.naturalWidth?_():S.addEventListener("load",_));console.warn(`Cannot inline img src=${A}! Error: `+e)}"anonymous"===S.crossOrigin&&(T?m.crossOrigin=T:S.removeAttribute("crossorigin"))};S.complete&&0!==S.naturalWidth?_():S.addEventListener("load",_)}"audio"!==g&&"video"!==g||((v=m).rr_mediaState=t.paused?"paused":"played",v.rr_mediaCurrentTime=t.currentTime,v.rr_mediaPlaybackRate=t.playbackRate,v.rr_mediaMuted=t.muted,v.rr_mediaLoop=t.loop,v.rr_mediaVolume=t.volume),p||(t.scrollLeft&&(m.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(m.rr_scrollTop=t.scrollTop)),e&&({width:I,height:v}=t.getBoundingClientRect(),m={"class":m["class"],rr_width:I+"px",rr_height:v+"px"}),"iframe"!==g||l(m.src)||(t.contentDocument||(m.rr_src=m.src),delete m.src);let w;try{customElements.get(g)&&(w=!0)}catch(C){}return{type:NodeType$2.Element,tagName:g,attributes:m,childNodes:[],isSVG:isSVGElement(t)||void 0,needBlock:e,rootId:h,isCustom:w}}function lowerIfExists(e){return null==e?"":e.toLowerCase()}function slimDOMExcluded(e,t){if(t.comment&&e.type===NodeType$2.Comment)return!0;if(e.type===NodeType$2.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===extractFileExtension(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lowerIfExists(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(e.attributes.name)||"icon"===lowerIfExists(e.attributes.rel)||"apple-touch-icon"===lowerIfExists(e.attributes.rel)||"shortcut icon"===lowerIfExists(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&lowerIfExists(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(lowerIfExists(e.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===lowerIfExists(e.attributes.name)||"googlebot"===lowerIfExists(e.attributes.name)||"bingbot"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===lowerIfExists(e.attributes.name)||"generator"===lowerIfExists(e.attributes.name)||"framework"===lowerIfExists(e.attributes.name)||"publisher"===lowerIfExists(e.attributes.name)||"progid"===lowerIfExists(e.attributes.name)||lowerIfExists(e.attributes.property).match(/^article:/)||lowerIfExists(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===lowerIfExists(e.attributes.name)||"yandex-verification"===lowerIfExists(e.attributes.name)||"csrf-token"===lowerIfExists(e.attributes.name)||"p:domain_verify"===lowerIfExists(e.attributes.name)||"verify-v1"===lowerIfExists(e.attributes.name)||"verification"===lowerIfExists(e.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(e.attributes.name)))return!0}}return!1}function serializeNodeWithId(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,maskTextClass:a,maskTextSelector:s,skipChild:d=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f={},inlineImages:g=!1,recordCanvas:m=!1,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:S=!1}=e;let A=e["needsMask"],{preserveWhiteSpace:T=!0}=e;A||(e=void 0===A,A=needMaskingText(t,a,s,e));e=serializeNode(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:C,newlyAddedElement:S});if(!e)return console.warn(t,"not serialized"),null;let _;_=i.hasNode(t)?i.getId(t):slimDOMExcluded(e,h)||!T&&e.type===NodeType$2.Text&&!e.isStyle&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?IGNORED_NODE:genId();var E=Object.assign(e,{id:_});if(i.add(t,E),_===IGNORED_NODE)return null;v&&v(t);let x=!d;if(E.type===NodeType$2.Element&&(x=x&&!E.needBlock,delete E.needBlock,e=index$1.shadowRoot(t))&&isNativeShadowDom(e)&&(E.isShadowHost=!0),(E.type===NodeType$2.Document||E.type===NodeType$2.Element)&&x){h.headWhitespace&&E.type===NodeType$2.Element&&"head"===E.tagName&&(T=!1);var R={doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:d,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C};if(E.type!==NodeType$2.Element||"textarea"!==E.tagName||void 0===E.attributes.value)for(const N of Array.from(index$1.childNodes(t))){var k=serializeNodeWithId(N,R);k&&E.childNodes.push(k)}let e=null;if(isElement(t)&&(e=index$1.shadowRoot(t)))for(const M of Array.from(index$1.childNodes(e))){var O=serializeNodeWithId(M,R);O&&(isNativeShadowDom(e)&&(O.isShadow=!0),E.childNodes.push(O))}}e=index$1.parentNode(t);return e&&isShadowRoot(e)&&isNativeShadowDom(e)&&(E.isShadow=!0),E.type===NodeType$2.Element&&"iframe"===E.tagName&&onceIframeLoaded(t,()=>{var e=t.contentDocument;e&&y&&(e=serializeNodeWithId(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&y(t,e)},b),E.type===NodeType$2.Element&&"link"===E.tagName&&"string"==typeof E.attributes.rel&&("stylesheet"===E.attributes.rel||"preload"===E.attributes.rel&&"string"==typeof E.attributes.href&&"css"===extractFileExtension(E.attributes.href))&&onceStylesheetLoaded(t,()=>{var e;I&&(e=serializeNodeWithId(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&I(t,e)},w),E}function snapshot(e,t){var{mirror:t=new Mirror,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:s=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:c,maskInputFn:l,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I=()=>!1}=t||{};return serializeNodeWithId(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,maskTextClass:r,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:c,maskInputFn:l,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:h,inlineImages:s,recordCanvas:d,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I,newlyAddedElement:!1})}var __defProp2=Object.defineProperty,__defNormalProp2=(e,t,n)=>t in e?__defProp2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField2=(e,t,n)=>__defNormalProp2(e,"symbol"!=typeof t?t+"":t,n);function getNative$8(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}"undefined"!=typeof window?getNative$8("setTimeout").bind(window):global.setTimeout;class BaseRRNode{constructor(){__publicField2(this,"parentElement",null),__publicField2(this,"parentNode",null),__publicField2(this,"ownerDocument"),__publicField2(this,"firstChild",null),__publicField2(this,"lastChild",null),__publicField2(this,"previousSibling",null),__publicField2(this,"nextSibling",null),__publicField2(this,"ELEMENT_NODE",1),__publicField2(this,"TEXT_NODE",3),__publicField2(this,"nodeType"),__publicField2(this,"nodeName"),__publicField2(this,"RRNodeType")}get childNodes(){var e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof BaseRRNode&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const testableAccessors={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype={},isAngularZonePresent=()=>!!globalThis.Zone;function getUntaintedPrototype(e){if(untaintedBasePrototype[e])return untaintedBasePrototype[e];var t=globalThis[e];const n=t.prototype;var i=e in testableAccessors?testableAccessors[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in testableMethods?testableMethods[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r&&!isAngularZonePresent())return untaintedBasePrototype[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache={};function getUntaintedAccessor(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache[i]?untaintedAccessorCache[i].call(t):(e=getUntaintedPrototype(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache[i]=e).call(t):t[n])}const untaintedMethodCache={};function getUntaintedMethod(e,t,n){var i=e+"."+String(n);return untaintedMethodCache[i]?untaintedMethodCache[i].bind(t):"function"!=typeof(e=getUntaintedPrototype(e)[n])?t[n]:(untaintedMethodCache[i]=e).bind(t)}function childNodes(e){return getUntaintedAccessor("Node",e,"childNodes")}function parentNode(e){return getUntaintedAccessor("Node",e,"parentNode")}function parentElement(e){return getUntaintedAccessor("Node",e,"parentElement")}function textContent(e){return getUntaintedAccessor("Node",e,"textContent")}function contains(e,t){return getUntaintedMethod("Node",e,"contains")(t)}function getRootNode(e){return getUntaintedMethod("Node",e,"getRootNode")()}function host(e){return e&&"host"in e?getUntaintedAccessor("ShadowRoot",e,"host"):null}function styleSheets(e){return e.styleSheets}function shadowRoot(e){return e&&"shadowRoot"in e?getUntaintedAccessor("Element",e,"shadowRoot"):null}function querySelector(e,t){return getUntaintedAccessor("Element",e,"querySelector")(t)}function querySelectorAll(e,t){return getUntaintedAccessor("Element",e,"querySelectorAll")(t)}function mutationObserverCtor(){return getUntaintedPrototype("MutationObserver").constructor}const index={childNodes:childNodes,parentNode:parentNode,parentElement:parentElement,textContent:textContent,contains:contains,getRootNode:getRootNode,host:host,styleSheets:styleSheets,shadowRoot:shadowRoot,querySelector:querySelector,querySelectorAll:querySelectorAll,mutationObserver:mutationObserverCtor};function getWindow(e){var t=e.defaultView;return t||e}function on(e,t,n=document){var i=getWindow(n),r=getNative$1$1("addEventListener",i);const o=getNative$1$1("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}const DEPARTED_MIRROR_ACCESS_WARNING="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let _mirror={map:{},getId(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),-1},getNode(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),null},removeNodeFromMap(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)},has(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),!1},reset(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)}};function throttle$2(r,o,a={}){let s=null,d=0;return function(...e){var t=Date.now(),n=(d||!1!==a.leading||(d=t),o-(t-d));const i=this;n<=0||o<n?(s&&(clearTimeout(s),s=null),d=t,r.apply(i,e)):s||!1===a.trailing||(s=nativeSetTimeout(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function hookSetter(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){nativeSetTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>hookSetter(e,t,o||{},!0)}function patch(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.toString=function(){return r.toString()},i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(_mirror=new Proxy(_mirror,{get(e,t,n){return"map"===t&&console.error(DEPARTED_MIRROR_ACCESS_WARNING),Reflect.get(e,t,n)}}));let nowTimestamp=Date.now;function getWindowScroll(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function closestElementOfNode(e){return e?e.nodeType===e.ELEMENT_NODE?e:index.parentElement(e):null}function isBlocked(e,t,n,i){if(e){e=closestElementOfNode(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(classMatchesRegex(e,t,i))return!0}catch(r){}if(n){if(e.matches(n))return!0;if(i&&null!==e.closest(n))return!0}}}return!1}function isSerialized(e,t){return-1!==t.getId(e)}function isIgnored(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===IGNORED_NODE}function isAncestorRemoved(e,t){var n;return!isShadowRoot(e)&&(n=t.getId(e),!t.has(n)||(!(n=index.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||isAncestorRemoved(n,t)))}function legacy_isTouchEvent(e){return Boolean(e.changedTouches)}function polyfill$1(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function isSerializedIframe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function isSerializedStylesheet(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function hasShadowRoot(e){return!!e&&(e instanceof BaseRRNode&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(index.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nowTimestamp=()=>(new Date).getTime());class StyleSheetMirror{constructor(){__publicField(this,"id",1),__publicField(this,"styleIDMap",new WeakMap),__publicField(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function getShadowHost(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=index.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&index.host(index.getRootNode(e))?index.host(index.getRootNode(e)):n}function getRootShadowHost(e){let t=e;for(var n;n=getShadowHost(t);)t=n;return t}function shadowHostInDom(e){var t=e.ownerDocument;return!!t&&(e=getRootShadowHost(e),index.contains(t,e))}function inDom(e){var t=e.ownerDocument;return!!t&&(index.contains(t,e)||shadowHostInDom(e))}var EventType=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(EventType||{}),IncrementalSource=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(IncrementalSource||{}),MouseInteractions=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(MouseInteractions||{}),PointerTypes=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(PointerTypes||{}),CanvasContext=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(CanvasContext||{}),MediaInteractions=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(MediaInteractions||{});function isNodeInLinkedList(e){return"__ln"in e}class DoubleLinkedList{constructor(){__publicField(this,"length",0),__publicField(this,"head",null),__publicField(this,"tail",null),__publicField(this,"reordered",!1)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=(null==n?void 0:n.next)||null;return n}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&isNodeInLinkedList(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&isNodeInLinkedList(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,t&&(t.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),null===n.next&&(this.tail=n),this.length++}removeNode(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}needsReorder(e){return!(this.reordered||!e.value.previousSibling||!isNodeInLinkedList(e.value.previousSibling)||!e.previous||e.previous.value===e.value.previousSibling)}reorder(){if(this.reordered)return!1;let e=this.tail;for(var t=this.head;e;){var n=e.previous;if(this.removeNode(e.value),this.addNode(e.value),e===t)break;e=n}return this.reordered=!0}}const moveKey=(e,t)=>e+"@"+t;class MutationBuffer{constructor(){__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"texts",[]),__publicField(this,"attributes",[]),__publicField(this,"attributeMap",new WeakMap),__publicField(this,"removes",[]),__publicField(this,"mapRemoves",[]),__publicField(this,"movedMap",{}),__publicField(this,"addedSet",new Set),__publicField(this,"movedSet",new Set),__publicField(this,"droppedSet",new Set),__publicField(this,"removesSubTreeCache",new Set),__publicField(this,"mutationCb"),__publicField(this,"blockClass"),__publicField(this,"blockSelector"),__publicField(this,"maskTextClass"),__publicField(this,"maskTextSelector"),__publicField(this,"inlineStylesheet"),__publicField(this,"maskInputOptions"),__publicField(this,"maskTextFn"),__publicField(this,"maskInputFn"),__publicField(this,"keepIframeSrcFn"),__publicField(this,"recordCanvas"),__publicField(this,"inlineImages"),__publicField(this,"slimDOMOptions"),__publicField(this,"dataURLOptions"),__publicField(this,"doc"),__publicField(this,"mirror"),__publicField(this,"iframeManager"),__publicField(this,"stylesheetManager"),__publicField(this,"shadowDomManager"),__publicField(this,"canvasManager"),__publicField(this,"processedNodeManager"),__publicField(this,"unattachedDoc"),__publicField(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),__publicField(this,"emit",()=>{if(!this.frozen&&!this.locked){const d=[],u=new Set,c=new DoubleLinkedList,l=e=>{let t=e,n=IGNORED_NODE;for(;n===IGNORED_NODE;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var e,n,i=index.parentNode(t);if(i&&inDom(t)&&"TEXTAREA"!==i.tagName)return i=isShadowRoot(i)?this.mirror.getId(getShadowHost(t)):this.mirror.getId(i),e=l(t),-1===i||-1===e?c.addNode(t):void((n=serializeNodeWithId(t,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{isSerializedIframe(e,this.mirror)&&this.iframeManager.addIframe(e),isSerializedStylesheet(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hasShadowRoot(t)&&this.shadowDomManager.addShadowRoot(index.shadowRoot(t),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}}))&&(d.push({parentId:i,nextId:e,node:n}),u.add(n.id)))};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=index.parentNode(p);isParentRemoved(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!isAncestorInSet(this.droppedSet,h)&&!isParentRemoved(this.removesSubTreeCache,h,this.mirror)||isAncestorInSet(this.movedSet,h)?r(h):this.droppedSet.add(h);let e=null;for(;c.length;){let t=null;if(!(t=e&&(n=this.mirror.getId(index.parentNode(e.value)),i=l(e.value),-1!==n)&&-1!==i?e:t)){let e=c.tail;for(;e;){var o=e;if(e=e.previous,o){var a=this.mirror.getId(index.parentNode(o.value));if(-1===l(o.value))c.needsReorder(o)&&c.reorder()&&(e=c.tail);else{if(-1!==a){t=o;break}a=o.value,a=index.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=index.host(a);if(-1!==this.mirror.getId(a)){t=o;break}}}}}}if(!t){for(;c.head;)c.removeNode(c.head.value);break}e=t.previous,c.removeNode(t.value),r(t.value)}var s={texts:this.texts.map(e=>{var t=e.node,n=index.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{var t,n,i=e["attributes"];return"string"==typeof i.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<i.style.length)&&(t+n).split("var(").length===i.style.split("var(").length&&(i.style=e.styleDiff),{id:this.mirror.getId(e.node),attributes:i}}).filter(e=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:d};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(s))}}),__publicField(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(index.childNodes(e),e=>index.textContent(e)||"").join("")}),__publicField(this,"processMutation",i=>{if(!isIgnored(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=index.textContent(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,closestElementOfNode(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a=i.target;let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(r=getInputType(a),o=needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0),t=maskInputValue({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),isBlocked(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("IFRAME"===a.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(a.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"INPUT"===a.tagName&&"password"===(i.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!ignoreAttribute(a.tagName,e))if(n.attributes[e]=transformAttribute(this.doc,toLowerCase(a.tagName),toLowerCase(e),t),"style"===e){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(c){this.unattachedDoc=this.doc}var s=this.unattachedDoc.createElement("span");i.oldValue&&s.setAttribute("style",i.oldValue);for(const l of Array.from(a.style)){var d=a.style.getPropertyValue(l),u=a.style.getPropertyPriority(l);d!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?n.styleDiff[l]=""===u?d:[d,u]:n._unchangedStyles[l]=[d,u]}for(const p of Array.from(s.style))""===a.style.getPropertyValue(p)&&(n.styleDiff[p]=!1)}else"open"===e&&"DIALOG"===a.tagName&&(a.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":isBlocked(i.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==i.target.tagName?(i.addedNodes.forEach(e=>this.genAdds(e,i.target)),i.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=isShadowRoot(i.target)?this.mirror.getId(index.host(i.target)):this.mirror.getId(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||isIgnored(e,this.mirror,this.slimDOMOptions)||!isSerialized(e,this.mirror)||(this.addedSet.has(e)?(deepDelete(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||isAncestorRemoved(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[moveKey(t,n)]?deepDelete(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!isShadowRoot(i.target)||!isNativeShadowDom(i.target))||void 0}),processRemoves(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),__publicField(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(isIgnored(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let e=null;(e=n&&this.mirror.hasNode(n)?this.mirror.getId(n):e)&&-1!==e&&(this.movedMap[moveKey(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);isBlocked(t,this.blockClass,this.blockSelector,!1)||(index.childNodes(t).forEach(e=>this.genAdds(e)),hasShadowRoot(t)&&index.childNodes(index.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function deepDelete(t,e){t["delete"](e),index.childNodes(e).forEach(e=>deepDelete(t,e))}function processRemoves(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),index.childNodes(i).forEach(e=>n.push(e)))}}function isParentRemoved(e,t,n){return 0!==e.size&&_isParentRemoved(e,t)}function _isParentRemoved(e,t,n){t=index.parentNode(t);return!!t&&e.has(t)}function isAncestorInSet(e,t){return 0!==e.size&&_isAncestorInSet(e,t)}function _isAncestorInSet(e,t){t=index.parentNode(t);return!!t&&(!!e.has(t)||_isAncestorInSet(e,t))}let errorHandler;function registerErrorHandler(e){errorHandler=e}function unregisterErrorHandler(){errorHandler=void 0}const callbackWrapper=n=>{return errorHandler?(...e)=>{try{return n(...e)}catch(t){if(!errorHandler||!0!==errorHandler(t))throw t}}:n},mutationBuffers=[];function getEventTarget(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function initMutationObserver(e,t){var n=new MutationBuffer,e=(mutationBuffers.push(n),n.init(e),new(mutationObserverCtor())(callbackWrapper(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function initMoveObserver({mousemoveCb:n,sampling:e,doc:t,mirror:r}){if(!1===e.mousemove)return()=>{};var i="number"==typeof e.mousemove?e.mousemove:50,e="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o=[],a;const s=throttle$2(callbackWrapper(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e);e=callbackWrapper(throttle$2(callbackWrapper(e=>{var t=getEventTarget(e),{clientX:n,clientY:i}=legacy_isTouchEvent(e)?e.changedTouches[0]:e;a=a||nowTimestamp(),o.push({x:n,y:i,id:r.getId(t),timeOffset:nowTimestamp()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?IncrementalSource.Drag:e instanceof MouseEvent?IncrementalSource.MouseMove:IncrementalSource.TouchMove)}),i,{trailing:!1}));const d=[on("mousemove",e,t),on("touchmove",e,t),on("drag",e,t)];return callbackWrapper(()=>{d.forEach(e=>e())})}function initMouseInteractionObserver({mouseInteractionCb:a,doc:i,mirror:s,blockClass:d,blockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let c=null;return Object.keys(MouseInteractions).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=toLowerCase(e);o=e;var o,n=n=>{var i=getEventTarget(n);if(!isBlocked(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=PointerTypes.Mouse;break;case"touch":e=PointerTypes.Touch;break;case"pen":e=PointerTypes.Pen}e===PointerTypes.Touch?MouseInteractions[o]===MouseInteractions.MouseDown?t="TouchStart":MouseInteractions[o]===MouseInteractions.MouseUp&&(t="TouchEnd"):(e,PointerTypes.Pen)}else legacy_isTouchEvent(n)&&(e=PointerTypes.Touch);null!==e?(c=e,(t.startsWith("Touch")&&e===PointerTypes.Touch||t.startsWith("Mouse")&&e===PointerTypes.Mouse)&&(e=null)):MouseInteractions[o]===MouseInteractions.Click&&(e=c,c=null);var r,n=legacy_isTouchEvent(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,callbackWrapper(a)({type:MouseInteractions[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(MouseInteractions[e]){case MouseInteractions.MouseDown:case MouseInteractions.MouseUp:t=t.replace("mouse","pointer");break;case MouseInteractions.TouchStart:case MouseInteractions.TouchEnd:return}r.push(on(t,n,i))}),callbackWrapper(()=>{r.forEach(e=>e())})}function initScrollObserver({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return on("scroll",callbackWrapper(throttle$2(callbackWrapper(e=>{var t,n,e=getEventTarget(e);e&&!isBlocked(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=getWindowScroll(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}function initViewportResizeObserver({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return on("resize",callbackWrapper(throttle$2(callbackWrapper(()=>{var e=getWindowHeight(),t=getWindowWidth();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}const INPUT_TAGS=["INPUT","TEXTAREA","SELECT"],lastInputValueMap=new WeakMap;function initInputObserver({inputCb:i,doc:s,mirror:r,blockClass:e,blockSelector:n,ignoreClass:d,ignoreSelector:u,maskInputOptions:c,maskInputFn:l,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=getEventTarget(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?index.parentElement(i):i)&&r&&!(INPUT_TAGS.indexOf(r)<0)&&!isBlocked(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=getInputType(i)||"",a=needMaskingText(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=maskInputValue({element:i,maskInputOptions:c,tagName:r,type:o,value:e,maskInputFn:l,needsMask:a})),g(i,p?{text:e,isChecked:n,userTriggered:t}:{text:e,isChecked:n}),i.name);"radio"===o&&r&&n&&s.querySelectorAll(`input[type="radio"][name="${r}"]`).forEach(e=>{var t;e!==i&&(t=e.value,g(e,p?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))})}}function g(e,t){var n=lastInputValueMap.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(lastInputValueMap.set(e,t),n=r.getId(e),callbackWrapper(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>on(e,callbackWrapper(o),s)),v=s.defaultView;return v?(t=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),a=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]],t&&t.set&&m.push(...a.map(e=>hookSetter(e[0],e[1],{set(){callbackWrapper(o)({target:this,isTrusted:!1})}},!1,v))),callbackWrapper(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}function getNestedCSSRulePositions(e){var t,n;return e=e,t=[],hasNestedCSSRule("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n)):e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t}function getIdAndStyleId(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function initStyleSheetObserver({styleSheetRuleCb:s,mirror:d,stylesheetManager:u},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new Proxy(e,{apply:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(t,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,n=this.cssRules.length){return i.CSSStyleSheet.prototype.insertRule.apply(this,[e+` { ${t} }`,n])},i.CSSStyleSheet.prototype.deleteRule);i.CSSStyleSheet.prototype.deleteRule=new Proxy(t,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:i}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let n;i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replace:i}),e.apply(t,n)})}));let r;i.CSSStyleSheet.prototype.replaceSync&&(r=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(canMonkeyPatchNestedCSSRule("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),canMonkeyPatchNestedCSSRule("CSSSupportsRule")&&(o.CSSSupportsRule=i.CSSSupportsRule)),{});return Object.entries(o).forEach(([e,t])=>{a[e]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule},t.prototype.insertRule=new Proxy(a[e].insertRule,{apply:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...getNestedCSSRulePositions(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(a[e].deleteRule,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...getNestedCSSRulePositions(t),i]}]}),e.apply(t,n)})})}),callbackWrapper(()=>{i.CSSStyleSheet.prototype.insertRule=e,i.CSSStyleSheet.prototype.deleteRule=t,n&&(i.CSSStyleSheet.prototype.replace=n),r&&(i.CSSStyleSheet.prototype.replaceSync=r),Object.entries(o).forEach(([e,t])=>{t.prototype.insertRule=a[e].insertRule,t.prototype.deleteRule=a[e].deleteRule})})}function initAdoptedStyleSheetObserver({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(index.host(t));e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(e=null==(e=t.ownerDocument)?void 0:e.defaultView)?void 0:e.ShadowRoot;const o=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&e&&o?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var e;return null==(e=o.get)?void 0:e.call(this)},set(e){var t=null==(t=o.set)?void 0:t.call(this,e);if(null!==r&&-1!==r)try{i.adoptStyleSheets(e,r)}catch(n){}return t}}),callbackWrapper(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function initStyleDeclarationObserver({styleDeclarationCb:d,mirror:u,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new Proxy(p,{apply:callbackWrapper((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=getIdAndStyleId(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,set:{property:o,value:a,priority:s},index:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:callbackWrapper((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=getIdAndStyleId(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,remove:{property:o},index:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),callbackWrapper(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}function initMediaInteractionObserver({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=callbackWrapper(a=>throttle$2(callbackWrapper(e=>{var t,n,i,r,o,e=getEventTarget(e);e&&!isBlocked(e,d,u,!0)&&({currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}=e,s({type:a,id:c.getId(e),currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}))}),e.media||500));const i=[on("play",n(MediaInteractions.Play),t),on("pause",n(MediaInteractions.Pause),t),on("seeked",n(MediaInteractions.Seeked),t),on("volumechange",n(MediaInteractions.VolumeChange),t),on("ratechange",n(MediaInteractions.RateChange),t)];return callbackWrapper(()=>{i.forEach(e=>e())})}function initFontObserver({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;t.FontFace=function(e,t,n){var i=new o(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};e=patch(e.fonts,"add",function(e){return function(t){return nativeSetTimeout(callbackWrapper(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}});return i.push(()=>{t.FontFace=o}),i.push(e),callbackWrapper(()=>{i.forEach(e=>e())})}function initSelectionObserver(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;e=callbackWrapper(()=>{var t=d.getSelection();if(!(!t||h&&null!=t&&t.isCollapsed)){h=t.isCollapsed||!1;var n=[],i=t.rangeCount||0;for(let e=0;e<i;e++){var{startContainer:r,startOffset:o,endContainer:a,endOffset:s}=t.getRangeAt(e);isBlocked(r,c,l,!0)||isBlocked(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}});return e(),on("selectionchange",e)}function initCustomElementObserver({doc:e,customElementCb:o}){e=e.defaultView;return e&&e.customElements?patch(e.customElements,"define",function(r){return function(e,t,n){try{o({define:{name:e}})}catch(i){console.warn("Custom element callback failed for "+e)}return r.apply(this,[e,t,n])}}):()=>{}}function mergeHooks(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:a,inputCb:s,mediaInteractionCb:d,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:l,fontCb:p,selectionCb:h,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),d(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),l(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),h(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}function initObservers(e,t={}){var n=e.doc.defaultView;if(!n)return()=>{};mergeHooks(e,t);let i;e.recordDOM&&(i=initMutationObserver(e,e.doc));const r=initMoveObserver(e),o=initMouseInteractionObserver(e),a=initScrollObserver(e),s=initViewportResizeObserver(e,{win:n}),d=initInputObserver(e),u=initMediaInteractionObserver(e);let c=()=>{},l=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=initStyleSheetObserver(e,{win:n}),l=initAdoptedStyleSheetObserver(e,e.doc),p=initStyleDeclarationObserver(e,{win:n}),e.collectFonts)&&(h=initFontObserver(e));const f=initSelectionObserver(e),g=initCustomElementObserver(e),m=[];for(const v of e.plugins)m.push(v.observer(v.callback,n,v.options));return callbackWrapper(()=>{mutationBuffers.forEach(e=>e.reset()),null!=i&&i.disconnect(),r(),o(),a(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m.forEach(e=>e())})}function hasNestedCSSRule(e){return"undefined"!=typeof window[e]}function canMonkeyPatchNestedCSSRule(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class CrossOriginIframeMirror{constructor(e){__publicField(this,"iframeIdToRemoteIdMap",new WeakMap),__publicField(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class IframeManager{constructor(e){__publicField(this,"iframes",new WeakMap),__publicField(this,"crossOriginIframeMap",new WeakMap),__publicField(this,"crossOriginIframeMirror",new CrossOriginIframeMirror(genId)),__publicField(this,"crossOriginIframeStyleMirror"),__publicField(this,"crossOriginIframeRootIdMap",new WeakMap),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"wrappedEmit"),__publicField(this,"takeFullSnapshot"),__publicField(this,"loadListener"),__publicField(this,"stylesheetManager"),__publicField(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}setTakeFullSnapshot(e){this.takeFullSnapshot=e}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e),!e.contentDocument&&e.contentWindow&&e.contentWindow.postMessage({type:"rrweb",origin:window.location.origin,snapshot:!0},"*")}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(n,e){var t;switch(e.type){case EventType.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case EventType.Meta:case EventType.Load:case EventType.DomContentLoaded:return!1;case EventType.Plugin:return e;case EventType.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case EventType.IncrementalSnapshot:switch(e.data.source){case IncrementalSource.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,n);var t=this.crossOriginIframeRootIdMap.get(n);t&&this.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(e=>{this.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,n,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case IncrementalSource.Drag:case IncrementalSource.TouchMove:case IncrementalSource.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case IncrementalSource.ViewportResize:return!1;case IncrementalSource.MediaInteraction:case IncrementalSource.MouseInteraction:case IncrementalSource.Scroll:case IncrementalSource.CanvasMutation:case IncrementalSource.Input:return this.replaceIds(e.data,n,["id"]),e;case IncrementalSource.StyleSheetRule:case IncrementalSource.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case IncrementalSource.Font:return e;case IncrementalSource.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case IncrementalSource.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(e=>{this.replaceStyleIds(e,n,["styleId"])}),e}}return!1}replace(e,t,n,i){for(const r of i)!Array.isArray(t[r])&&"number"!=typeof t[r]||(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===NodeType$2.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ShadowDomManager{constructor(e){__publicField(this,"shadowDoms",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"scrollCb"),__publicField(this,"bypassOptions"),__publicField(this,"mirror"),__publicField(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(isNativeShadowDom(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=initMutationObserver({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(initScrollObserver({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),nativeSetTimeout(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(index.host(e))),this.restoreHandlers.push(initAdoptedStyleSheetObserver({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(patch(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=index.shadowRoot(this);return t&&inDom(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i$1=0;i$1<chars.length;i$1++)lookup[chars.charCodeAt(i$1)]=i$1;var encode=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=chars[t[r]>>2])+chars[(3&t[r])<<4|t[r+1]>>4])+chars[(15&t[r+1])<<2|t[r+2]>>6])+chars[63&t[r+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},n;const canvasVarMap=new Map;function variableListFor$1(e,t){let n=canvasVarMap.get(e);return n||(n=new Map,canvasVarMap.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const saveWebGLVar=(t,n,i)=>{if(t&&(isInstanceOfWebGLObject(t,n)||"object"==typeof t)){n=variableListFor$1(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};function serializeArg(e,t,n){var i;return e instanceof Array?e.map(e=>serializeArg(e,t,n)):null===e?e:e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:encode(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[serializeArg(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?(i=e["src"],{rr_type:e.constructor.name,src:i}):e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[serializeArg(e.data,t,n),e.width,e.height]}:isInstanceOfWebGLObject(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:saveWebGLVar(e,t,n)}:e}const serializeArgs=(e,t,n)=>e.map(e=>serializeArg(e,t,n)),isInstanceOfWebGLObject=(t,n)=>{var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof n[e]);return Boolean(e.find(e=>t instanceof n[e]))};function initCanvas2DMutationObserver(n,i,r,o){const e=[];var t;for(const s of Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype))try{"function"==typeof i.CanvasRenderingContext2D.prototype[s]&&(t=patch(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return isBlocked(this.canvas,r,o,!0)||nativeSetTimeout(()=>{var e=serializeArgs(t,i,this);n(this.canvas,{type:CanvasContext["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=hookSetter(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:CanvasContext["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function getNormalizedContextName(e){return"experimental-webgl"===e?"webgl":e}function initCanvasContextObserver(e,r,o,a){const t=[];try{var n=patch(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return isBlocked(this,r,o,!0)||(n=getNormalizedContextName(e),"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function patchGLPrototype(e,i,r,o,a,s){var t,n=[];for(const u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(t=patch(e,u,function(n){return function(...e){var t=n.apply(this,e);return saveWebGLVar(t,s,this),"tagName"in this.canvas&&!isBlocked(this.canvas,o,a,!0)&&(e=serializeArgs(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=hookSetter(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function initCanvasWebGLMutationObserver(e,t,n,i){const r=[];return r.push(...patchGLPrototype(t.WebGLRenderingContext.prototype,CanvasContext.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...patchGLPrototype(t.WebGL2RenderingContext.prototype,CanvasContext.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}const encodedJs="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",decodeBase64$1=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)),blob="undefined"!=typeof window&&window.Blob&&new Blob([decodeBase64$1(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(e){let t;try{var n;if(t=blob&&(window.URL||window.webkitURL).createObjectURL(blob))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n;throw""}catch(i){return new Worker("data:text/javascript;base64,"+encodedJs,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class CanvasManager{constructor(e){__publicField(this,"pendingCanvasMutations",new Map),__publicField(this,"rafStamps",{latestId:0,invokeId:null}),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"resetObservers"),__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=initCanvasContextObserver(n,i,r,!0),a=new Map,s=new WorkerWrapper,d=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:CanvasContext["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{isBlocked(e,i,r,!0)||t.push(e)}),t},p=e=>{c=(u&&e-u<d||(u=e,l().forEach(async e=>{var t,n,i=this.mirror.getId(e);a.get(i)||0!==e.width&&0!==e.height&&(a.set(i,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(t=e.getContext(e.__context))?void 0:t.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT),n=await createImageBitmap(e),s.postMessage({id:i,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};c=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=initCanvasContextObserver(e,t,n,!1),r=initCanvas2DMutationObserver(this.processMutation.bind(this),e,t,n),o=initCanvasWebGLMutationObserver(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{var n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){var n,i;this.frozen||this.locked||(i=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=i.map(e=>{const{type:t,...n}=e;return n}),i=i[0]["type"],this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations["delete"](e))}}class StylesheetManager{constructor(e){__publicField(this,"trackedLinkElements",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"adoptedStyleSheetCb"),__publicField(this,"styleMirror",new StyleSheetMirror),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(const o of e){let e;if(this.styleMirror.has(o))e=this.styleMirror.getId(o);else{e=this.styleMirror.add(o);var r=[];for(let e=0;e<o.rules.length;++e)r.push({rule:stringifyRule(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:stringifyRule(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ProcessedNodeManager{constructor(){__publicField(this,"nodeMap",new WeakMap),__publicField(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let wrappedEmit,takeFullSnapshot$1=()=>{},canvasManager,recording=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const vl=document.createElement("iframe");document.body.appendChild(vl),Array.from=(null==(_a=vl.contentWindow)?void 0:_a.Array.from)||Array.from,document.body.removeChild(vl)}}catch(err){console.debug("Unable to override Array.from",err)}const mirror=createMirror$2();function record(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:P="rr-ignore",ignoreSelector:G=null,maskTextClass:s="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:D,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:B,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:W=!0,recordCanvas:v=!1,recordCrossOriginIframes:U=!1,recordAfter:$="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:z=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:V}=e,w=(registerErrorHandler(V),!U||window.parent===window);let C=!1;if(!w)try{window.parent.document&&(C=!1)}catch(J){C=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!C)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),mirror.reset();const S=!0===D?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==t?t:{password:!0},A=!0===c||"all"===c?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===c,headMetaDescKeywords:"all"===c,headTitleMutations:"all"===c}:c||{};polyfill$1();let Y,T=0;const H=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!C?h(e):e},_=(wrappedEmit=(e,t)=>{var n;e.timestamp=nowTimestamp(),null==(n=mutationBuffers[0])||!n.isFrozen()||e.type===EventType.FullSnapshot||e.type===EventType.IncrementalSnapshot&&e.data.source===IncrementalSource.Mutation||mutationBuffers.forEach(e=>e.unfreeze()),w?null!=i&&i(H(e),t):C&&(n={type:"rrweb",event:H(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===EventType.FullSnapshot?(Y=e,T=0):e.type!==EventType.IncrementalSnapshot||e.data.source===IncrementalSource.Mutation&&e.data.isAttachIframe||(T++,t=o&&T>=o,n=r&&e.timestamp-Y.timestamp>r,(t||n)&&takeFullSnapshot$1(!0))},e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,...e}})}),K=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Scroll,...e}}),X=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CanvasMutation,...e}});const E=new StylesheetManager({mutationCb:_,adoptedStyleSheetCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.AdoptedStyleSheet,...e}})}),x=new IframeManager({mirror:mirror,mutationCb:_,stylesheetManager:E,recordCrossOriginIframes:U,wrappedEmit:wrappedEmit,takeFullSnapshot:takeFullSnapshot$1});for(const N of b||[])N.getMirror&&N.getMirror({nodeMirror:mirror,crossOriginIframeMirror:x.crossOriginIframeMirror,crossOriginIframeStyleMirror:x.crossOriginIframeStyleMirror});const R=new ProcessedNodeManager,k=(canvasManager=new CanvasManager({recordCanvas:v,mutationCb:X,win:window,blockClass:n,blockSelector:a,mirror:mirror,sampling:f.canvas,dataURLOptions:g}),new ShadowDomManager({mutationCb:_,scrollCb:K,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:S,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:A,iframeManager:x,stylesheetManager:E,canvasManager:canvasManager,keepIframeSrcFn:I,processedNodeManager:R},mirror:mirror}));takeFullSnapshot$1=(e=!1)=>{if(W){wrappedEmit({type:EventType.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}},e),E.reset(),k.init(),mutationBuffers.forEach(e=>e.lock());var t=snapshot(document,{mirror:mirror,blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:S,maskTextFn:p,maskInputFn:l,slimDOM:A,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{isSerializedIframe(e,mirror)&&x.addIframe(e),isSerializedStylesheet(e,mirror)&&E.trackLinkElement(e),hasShadowRoot(e)&&k.addShadowRoot(index.shadowRoot(e),document)},onIframeLoad:(e,t)=>{x.attachIframe(e,t),k.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{E.attachLinkElement(e,t)},keepIframeSrcFn:I});if(!t)return console.warn("Failed to snapshot the document");wrappedEmit({type:EventType.FullSnapshot,data:{node:t,initialOffset:getWindowScroll(window)}},e),mutationBuffers.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&E.adoptStyleSheets(document.adoptedStyleSheets,mirror.getId(document))}},x.setTakeFullSnapshot(takeFullSnapshot$1);try{const M=[],L=e=>{return callbackWrapper(initObservers)({mutationCb:_,mousemoveCb:(e,t)=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.ViewportResize,...e}}),inputCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Input,...e}}),mediaInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MediaInteraction,...e}}),styleSheetRuleCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleSheetRule,...e}}),styleDeclarationCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Font,...e}}),selectionCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Selection,...e}})},customElementCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CustomElement,...e}})},blockClass:n,ignoreClass:P,ignoreSelector:G,maskTextClass:s,maskTextSelector:d,maskInputOptions:S,inlineStylesheet:u,sampling:f,recordDOM:W,recordCanvas:v,inlineImages:y,userTriggeredOnInput:j,collectFonts:z,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:I,blockSelector:a,slimDOMOptions:A,dataURLOptions:g,mirror:mirror,iframeManager:x,stylesheetManager:E,shadowDomManager:k,processedNodeManager:R,canvasManager:canvasManager,ignoreCSSAttributes:Z,plugins:(null==(e=null==b?void 0:b.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>wrappedEmit({type:EventType.Plugin,data:{plugin:t.name,payload:e}})})))||[]},B)},F=(x.addLoadListener(e=>{try{M.push(L(e.contentDocument))}catch(t){console.warn(t)}}),()=>{takeFullSnapshot$1(),M.push(L(document)),recording=!0});return"interactive"===document.readyState||"complete"===document.readyState?F():(M.push(on("DOMContentLoaded",()=>{wrappedEmit({type:EventType.DomContentLoaded,data:{}}),"DOMContentLoaded"===$&&F()})),M.push(on("load",()=>{wrappedEmit({type:EventType.Load,data:{}}),"load"===$&&F()},window))),()=>{M.forEach(e=>e()),R.destroy(),recording=!1,unregisterErrorHandler()}}catch(O){console.warn(O)}}record.addCustomEvent=(e,t)=>{if(!recording)throw new Error("please add custom event after start recording");wrappedEmit({type:EventType.Custom,data:{tag:e,payload:t}})},record.freezePage=()=>{mutationBuffers.forEach(e=>e.freeze())},record.takeFullSnapshot=e=>{if(!recording)throw new Error("please take full snapshot after start recording");takeFullSnapshot$1(e)},record.mirror=mirror,!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(n=n||{});var setTimeout=safeBind(window.setTimeout,window);function safeBind(e,t){return"function"==typeof e.bind?e.bind(t):e}var setTimeout=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return safeBind(e[t],e)}(window),setTimeout$1=setTimeout,Promise$3=window.Promise,Promise$3=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=setTimeout$1;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a}),Promise$4=Promise$3,__assign=function(){return(__assign=Object.assign||function __assign(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},SessionRecorderBuffer=function(){function e(e,t){void 0===t&&(t=Infinity),this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}return e.prototype.isEmpty=function(){return 0===this.data.length},e.prototype.count=function(){return this.data.length},e.prototype.clear=function(){this.data.length=0},e.prototype.clearSequence=function(){this.sequenceNumber=0},e.prototype.push=function(e){this.data.push(e),this.checkRateLimit()},e.prototype.pack=function(e,n){var t=this.data.splice(0,this.maxCount);return e.recordingPayload=t,e.sequence=this.sequenceNumber,e.recordingPayloadCount=t.length,t.length&&(e.browserTime=t[0].timestamp),e.recordingPayloadMetadata=n.map(t,function(e){var t=n.pick(e,"type","timestamp");return e.data&&(t.data=n.pick(e.data,"source","type","x","y","id","height","width","href")),t}),this.sequenceNumber+=t.length,e},e.prototype.checkRateLimit=function(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()},e}(),MAX_BACKOFF=6,MAX_FAILURES=100,SendQueue=function(){function e(e,t){void 0===t&&(t=MAX_FAILURES),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}return e.prototype.isEmpty=function(){return this.queue.length<=0},e.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},e.prototype.start=function(){this.stopped=!1},e.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},e.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},e.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},e.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},e.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,MAX_BACKOFF))))},e.prototype.retryLater=function(e){var t=this;this.timer=setTimeout$1(function(){delete t.timer,t.next()},e)},e.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},e.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},e.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Promise$4.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Promise$4.all(i)},e}(),RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,RESOURCE_CACHING$1="resourceCaching",Transport=function(){function e(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}return e.prototype.start=function(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}},e.prototype.stop=function(){this.worker&&(this.worker.terminate(),delete this.worker)},e.prototype.send=function(e,t,n){var i,r=e.url,o=e.payload;if(0<(n=void 0===n?0:n)&&(r="".concat(r,"&rt=").concat(n)),this.worker&&!t&&o)return(i={}).promise=new Promise$4(function(e,t){i.resolve=e,i.reject=t}),this.workerResponse=i,this.worker.postMessage({url:r,payload:o,shouldCacheResources:this.isResourceCachingEnabled}),i.promise;if(!e.body){n=JSON.stringify(o);if(n.length>this.maxSize)throw(o=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",o;e.body=this.pendo.compress(n,"binary"),delete e.payload}return r="".concat(r,"&ct=").concat((new Date).getTime()),this.post(r,{keepalive:t,body:e.body})},e.prototype.post=function(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$4.resolve():Promise$4.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)},e.prototype._onMessage=function(e){e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))},e.prototype._onError=function(){this.onError&&this.onError()},e}(),ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n,i){return void 0===n&&(n=Infinity),void 0===i&&(i=0),!isElementNode(e)||n<i?-1:e.matches(t)?i:distanceToMatch(e.parentNode,t,n,i+1)}function shouldMask(e,t){var n=t.maskAllText,i=t.maskTextSelector,t=t.unmaskTextSelector;try{var r=isElementNode(e)?e:e.parentElement;if(null===r)return!1;var o=-1,a=-1;if(n){if((a=distanceToMatch(r,t))<0)return!0;o=distanceToMatch(r,i,0<=a?a:Infinity)}else{if((o=distanceToMatch(r,i))<0)return!1;a=distanceToMatch(r,t,0<=o?o:Infinity)}return 0<=o?!(0<=a)||o<=a:!(0<=a||!n)}catch(s){}return!!n}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}function SessionRecorder(e,t){this.record=e,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0,this.WorkerClass=t}SessionRecorder.FULL_SNAPSHOT=2,SessionRecorder.META=4,SessionRecorder.INCREMENTAL_SNAPSHOT=3,SessionRecorder.INCREMENTAL_SOURCE_MUTATION=0,SessionRecorder.INCREMENTAL_SOURCE_INPUT=5,SessionRecorder.SEND_INTERVAL=5e3,SessionRecorder.MAX_SEND_COUNT=2e4;var RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent";function wrapMethodWithCatch(t){return function(){try{return t.apply(this,arguments)}catch(e){this.api&&this.api.log&&this.api.log.critical("session recording error",{error:e})}}}function errorLogger(e){if("undefined"!=typeof Object&&"function"==typeof Object.getOwnPropertyNames&&e.constructor&&e.constructor.prototype)for(var t=0,n=Object.getOwnPropertyNames(e.constructor.prototype);t<n.length;t++){var i=n[t];"constructor"!==i&&(e[i]=wrapMethodWithCatch(e[i]))}return e}function decodeBase64(e,t){var n=atob(e);if(t){for(var i=new Uint8Array(n.length),r=0,o=n.length;r<o;++r)i[r]=n.charCodeAt(r);return new TextDecoder("utf-16le").decode(new Uint16Array(i.buffer))}return n}function createURL(e,t,n){t=t===undefined?null:t,e=decodeBase64(e,n!==undefined&&n),n=e.indexOf("\n",10)+1,n=e.substring(n)+(t?"//# sourceMappingURL="+t:""),e=new Blob([n],{type:"application/javascript"});return URL.createObjectURL(e)}function createBase64WorkerFactory(t,n,i){var r;return function WorkerFactory(e){return r=r||createURL(t,n,i),new Worker(r,e)}}SessionRecorder.prototype.addConfigOptions=function(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RESOURCE_CACHING,[e.sources.PENDO_CONFIG_SRC],undefined)},SessionRecorder.prototype.initialize=function(e,t){this.pendo=e,this.api=t;var n=this.pendo._.bind,i=this.api.ConfigReader,r=(this.buffer=new SessionRecorderBuffer(SessionRecorder.SEND_INTERVAL,SessionRecorder.MAX_SEND_COUNT),this.buffer.onRateLimit=n(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,e,t),this.transport.onError=n(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=n(this.onWorkerMessage,this),this.sendQueue=new SendQueue(n(this.transport.send,this.transport)),this.sendQueue.onTimeout=n(this.sendFailure,this,"SEND_TIMEOUT"),this.isNewSession=!1,this.addConfigOptions(),this.config=i.get(RECORDING_CONFIG),this.onRecordingStart=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_START))?i.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_STOP))?i.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){},i.get(RECORDING_CONFIG_ENABLED));(e._.isBoolean(r)?r:this.config.enabled)?i.get("excludeNonGuideAnalytics")?this.logStopReason("ANALYTICS_DISABLED"):(r=this.sessionIdKey="".concat(SESSION_RECORDING_ID,".").concat(e.apiKey),e.recording={start:n(this.start,this),stop:n(this.stop,this)},this.subscriptions=[t.attachEvent(t.Events,"appHidden",n(this.handleHidden,this)),t.attachEvent(t.Events,"appUnloaded",n(this.handleUnload,this)),t.attachEvent(t.Events,"identify",n(this.changeIdentity,this)),t.attachEvent(t.Events,"metadata",n(this.changeMetadata,this)),t.attachEvent(t.Events,"eventCaptured",n(this.addRecordingId,this)),t.attachEvent(t.Events,"transmit:locked",n(this.stop,this)),t.attachEvent(t.Events,"transmit:unlocked",n(this._start,this)),t.attachEvent(t.frames.getChannel(),"message",n(this._frameMessage,this))],t.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(t.attachEvent(t.Events,"ready",n(this.ready,this))),t.agentStorage.registry.addSession(r),t.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)):this.logStopReason("RECORDING_DISABLED")},SessionRecorder.prototype.teardown=function(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0,this.stop(),this.transport.stop()},SessionRecorder.prototype.ready=function(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()},SessionRecorder.prototype.changeIdentity=function(e){var t=this;this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&this.stop(),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(function(){t._start()},500))},SessionRecorder.prototype.changeMetadata=function(e){var t=this,e=e.data[0],n=e.hashChanged,e=e.options;if(this.allowStart&&n)return clearTimeout(this._changeIdentityTimer),this.visitorId=e.visitor.id,this.accountId=e.account.id,this.fetchVisitorConfig().then(function(e){e&&e.enable||!t.isRecording()?e&&e.enable&&!t.isRecording()&&t._startRecordingForVisitor(e):t.stop()})["catch"](function(e){t.api.log.critical("Failed to re-fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype.snapshot=function(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())},SessionRecorder.prototype.isRecording=function(){return null!=this.interval},SessionRecorder.prototype.recordingConfig=function(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}};return this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[]).join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes}},SessionRecorder.prototype.start=function(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()},SessionRecorder.prototype._markEvents=function(e){if(this.recordingId)for(var t=0,n=e;t<n.length;t++){var i=n[t];i.visitor_id===this.visitorId&&"identify"!==i.type&&(i.recordingId=this.recordingId,i.recordingSessionId=this.sessionId(this.recordingId))}},SessionRecorder.prototype.restartPtm=function(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e=0,t=this.pendo.buffers.silos;e<t.length;e++){var n=t[e];this._markEvents(n)}this._restartPtm(),this._restartPtm=null}},SessionRecorder.prototype._start=function(){var t=this;if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(function(e){t.allowStart&&(e&&e.enable?t._startRecordingForVisitor(e):(t.restartPtm(),t.logStopReason("VISITOR_DISABLED")))})["catch"](function(e){t.restartPtm(),t.api.log.critical("Failed to fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype._startRecordingForVisitor=function(e){var t=this;if(this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var n=this.pendo._.bind,i=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(function(){t.sendQueue.failed()||t.send()},SessionRecorder.SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:n(this.emit,this)},i)),this._refreshIds(),this.onRecordingStart()}catch(r){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}},SessionRecorder.prototype._sendIds=function(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId})},SessionRecorder.prototype._refreshIds=function(e){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})},SessionRecorder.prototype._frameMessage=function(e){e=e.data;"pendo:sr:id"===e.type?(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.restartPtm()):"pendo:sr:refresh"===e.type&&window==window.top&&this._sendIds()},SessionRecorder.prototype.clearSessionId=function(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)},SessionRecorder.prototype.sessionId=function(e){var t,n;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionId||((t=this.api.sessionStorage.getItem(this.sessionIdKey))||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(t=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):t=e,this.api.sessionStorage.setItem(this.sessionIdKey,t)),this._sessionId=t),this._sessionId},SessionRecorder.prototype.clearOldSessionId=function(){var e=this.getLastUserInteractionEventInformation();if(e){var t=e.timestamp,e=e.visitorId===this.visitorId&&e.accountId===this.accountId,t=t>Date.now()-this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);if(e&&t)return}this.clearSessionInfo(),this.isNewSession=!0},SessionRecorder.prototype.clearSessionInfo=function(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()},SessionRecorder.prototype.isUserInteraction=function(e){return e.type===SessionRecorder.INCREMENTAL_SNAPSHOT&&e.data.source>SessionRecorder.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=SessionRecorder.INCREMENTAL_SOURCE_INPUT},SessionRecorder.prototype.storeLastUserInteractionEventInformation=function(e,t,n,i){(this.isUserInteraction(e)||i)&&(this.lastUserInteractionEventInfo={timestamp:e.timestamp,visitorId:t,accountId:n},this.api.sessionStorage.setItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT,JSON.stringify(this.lastUserInteractionEventInfo)))},SessionRecorder.prototype.clearLastUserInteractionEventInformation=function(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)},SessionRecorder.prototype.getLastUserInteractionEventInformation=function(){if(this.lastUserInteractionEventInfo)return this.lastUserInteractionEventInfo;try{return this.lastUserInteractionEventInfo=JSON.parse(this.api.sessionStorage.getItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)),this.lastUserInteractionEventInfo}catch(e){return null}},SessionRecorder.prototype.emit=function(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===SessionRecorder.META,n=e.type===SessionRecorder.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=!i&&t?!0:!1,r=(this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r),this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES));i&&e.timestamp-i>r&&!n&&!t?(this.send(),this.clearSessionInfo(),this.snapshot()):(t&&this.send(),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.send({keyframe:!0})):!t&&(this.eventsSinceLastKeyFrame+=1,i=e.timestamp-this.lastKeyFrameTime,r=ONE_DAY_IN_MILLISECONDS<=i,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),r||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))},SessionRecorder.prototype.updateCurrentRecordingSize=function(e){this.currentRecordingSize+=e},SessionRecorder.prototype.onWorkerMessage=function(e){switch(e.type){case"recordingPayloadSize":var t=e.recordingPayloadSize,n=e.exceedsPayloadSizeLimit;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e.hostedResourcesEvent;n&&this.sendHostedResources(n)}},SessionRecorder.prototype.addRecordingId=function(e){this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.stop()):this._markEvents([e]))},SessionRecorder.prototype.stop=function(){this._stop&&this._stop(),this.send(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()},SessionRecorder.prototype.handleHidden=function(){this.send({hidden:!0})},SessionRecorder.prototype.handleUnload=function(){this.send({unload:!0})},SessionRecorder.prototype.buildRequestUrl=function(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return"".concat(t,"=").concat(e)}).join("&");return t.length?"".concat(e,"?").concat(t):e},SessionRecorder.prototype.sendFailure=function(e){this.stop(),this.logStopReason(e)},SessionRecorder.prototype.rateLimitExceeded=function(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")},SessionRecorder.prototype.send=function(e){var e=void 0===e?{}:e,t=e.unload,t=void 0!==t&&t,n=e.keyframe,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e;if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),n=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!n,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get()},i),i=(this.transport.usesSelfHostedWorker&&(n.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(n),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(n.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),i)),n=this.buffer.pack(n,this.pendo._);if(t||e)try{this.sendQueue.drain([{url:i,payload:n}],t)}catch(r){r.reason&&this.logStopReason(r.reason)}else this.sendQueue.push({url:i,payload:n});this.buffer.isEmpty()||this.send({unload:t})}else this.buffer.clear()},SessionRecorder.prototype.fetchVisitorConfig=function(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/recordingconf/").concat(this.pendo.apiKey),{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(function(e){return e.json()})},SessionRecorder.prototype.logStopReason=function(e,t){var n=this,i=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:__assign({reason:e},t&&{error:t})},i),t=this.pendo.compress(e),i=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(i,{body:t,keepalive:!0})["catch"](function(e){n.api.log.critical("Failed to send reason for stopping recording",{error:e})})},SessionRecorder.prototype.sendHostedResources=function(e){var t=this,n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(__assign(__assign({},e),{browserTime:(new Date).getTime()}),n),n=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(n,{body:e,keepalive:!0})["catch"](function(e){t.api.log.critical("Failed to send hosted resources for recording event",{error:e})})};var WorkerFactory=createBase64WorkerFactory("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwp2YXIgd29ya2VyX2NvZGUgPSAoZnVuY3Rpb24gKGV4cG9ydHMpIHsKICAgICd1c2Ugc3RyaWN0JzsKCiAgICB2YXIgYjY0ID0gKGZ1bmN0aW9uKCkgewoKICAgICAgICB2YXIgbG9va3VwID0gJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5LV8nLnNwbGl0KCcnKTsKCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgJ3VpbnQ4VG9CYXNlNjQnOiB1aW50OFRvQmFzZTY0CiAgICAgICAgfTsKCiAgICAgICAgZnVuY3Rpb24gdWludDhUb0Jhc2U2NCh1aW50OCkgewogICAgICAgICAgICB2YXIgaSwKICAgICAgICAgICAgICAgIGV4dHJhQnl0ZXMgPSB1aW50OC5sZW5ndGggJSAzLCAvLyBpZiB3ZSBoYXZlIDEgYnl0ZSBsZWZ0LCBwYWQgMiBieXRlcwogICAgICAgICAgICAgICAgb3V0cHV0ID0gJycsCiAgICAgICAgICAgICAgICB0ZW1wLCBsZW5ndGg7CgogICAgICAgICAgICBmdW5jdGlvbiB0cmlwbGV0VG9CYXNlNjQobnVtKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gbG9va3VwW251bSA+PiAxOCAmIDB4M0ZdICsgbG9va3VwW251bSA+PiAxMiAmIDB4M0ZdICsgbG9va3VwW251bSA+PiA2ICYgMHgzRl0gKyBsb29rdXBbbnVtICYgMHgzRl07CiAgICAgICAgICAgIH0KCiAgICAJCS8vIGdvIHRocm91Z2ggdGhlIGFycmF5IGV2ZXJ5IHRocmVlIGJ5dGVzLCB3ZSdsbCBkZWFsIHdpdGggdHJhaWxpbmcgc3R1ZmYgbGF0ZXIKICAgICAgICAgICAgZm9yIChpID0gMCwgbGVuZ3RoID0gdWludDgubGVuZ3RoIC0gZXh0cmFCeXRlczsgaSA8IGxlbmd0aDsgaSArPSAzKSB7CiAgICAgICAgICAgICAgICB0ZW1wID0gKHVpbnQ4W2ldIDw8IDE2KSArICh1aW50OFtpICsgMV0gPDwgOCkgKyAodWludDhbaSArIDJdKTsKICAgICAgICAgICAgICAgIG91dHB1dCArPSB0cmlwbGV0VG9CYXNlNjQodGVtcCk7CiAgICAgICAgICAgIH0KCiAgICAJCS8vIHBhZCB0aGUgZW5kIHdpdGggemVyb3MsIGJ1dCBtYWtlIHN1cmUgdG8gbm90IGZvcmdldCB0aGUgZXh0cmEgYnl0ZXMKICAgICAgICAgICAgLy9lc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgZGVmYXVsdC1jYXNlCiAgICAgICAgICAgIHN3aXRjaCAoZXh0cmFCeXRlcykgewogICAgICAgICAgICBjYXNlIDE6CiAgICAgICAgICAgICAgICB0ZW1wID0gdWludDhbdWludDgubGVuZ3RoIC0gMV07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMl07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwWyh0ZW1wIDw8IDQpICYgMHgzRl07CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgY2FzZSAyOgogICAgICAgICAgICAgICAgdGVtcCA9ICh1aW50OFt1aW50OC5sZW5ndGggLSAyXSA8PCA4KSArICh1aW50OFt1aW50OC5sZW5ndGggLSAxXSk7CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMTBdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA+PiA0KSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA8PCAyKSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiBvdXRwdXQ7CiAgICAgICAgfQogICAgfSkoKTsKCiAgICBmdW5jdGlvbiBnZXREZWZhdWx0RXhwb3J0RnJvbUNqcyAoeCkgewogICAgCXJldHVybiB4ICYmIHguX19lc01vZHVsZSAmJiBPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoeCwgJ2RlZmF1bHQnKSA/IHhbJ2RlZmF1bHQnXSA6IHg7CiAgICB9CgogICAgdmFyIGRlZmxhdGVfbWluID0ge2V4cG9ydHM6IHt9fTsKCiAgICAvKgogICAgICogQGxpY2Vuc2UgemxpYi5qcyAyMDEyIC0gaW1heWEgWyBodHRwczovL2dpdGh1Yi5jb20vaW1heWEvemxpYi5qcyBdIFRoZSBNSVQgTGljZW5zZQogICAgICovCgogICAgKGZ1bmN0aW9uIChtb2R1bGUpIHsKICAgIAkoZnVuY3Rpb24oKSB7dmFyIG49dm9pZCAwLHc9ITAsYWE9dGhpcztmdW5jdGlvbiBiYShmLGQpe3ZhciBjPWYuc3BsaXQoIi4iKSxlPWFhOyEoY1swXWluIGUpJiZlLmV4ZWNTY3JpcHQmJmUuZXhlY1NjcmlwdCgidmFyICIrY1swXSk7Zm9yKHZhciBiO2MubGVuZ3RoJiYoYj1jLnNoaWZ0KCkpOykhYy5sZW5ndGgmJmQhPT1uP2VbYl09ZDplPWVbYl0/ZVtiXTplW2JdPXt9O312YXIgQz0idW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50OEFycmF5JiYidW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50MTZBcnJheSYmInVuZGVmaW5lZCIhPT10eXBlb2YgVWludDMyQXJyYXk7ZnVuY3Rpb24gSyhmLGQpe3RoaXMuaW5kZXg9Im51bWJlciI9PT10eXBlb2YgZD9kOjA7dGhpcy5lPTA7dGhpcy5idWZmZXI9ZiBpbnN0YW5jZW9mKEM/VWludDhBcnJheTpBcnJheSk/ZjpuZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO2lmKDIqdGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4KXRocm93IEVycm9yKCJpbnZhbGlkIGluZGV4Iik7dGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4JiZjYSh0aGlzKTt9ZnVuY3Rpb24gY2EoZil7dmFyIGQ9Zi5idWZmZXIsYyxlPWQubGVuZ3RoLGI9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGU8PDEpO2lmKEMpYi5zZXQoZCk7ZWxzZSBmb3IoYz0wO2M8ZTsrK2MpYltjXT1kW2NdO3JldHVybiBmLmJ1ZmZlcj1ifQogICAgCUsucHJvdG90eXBlLmI9ZnVuY3Rpb24oZixkLGMpe3ZhciBlPXRoaXMuYnVmZmVyLGI9dGhpcy5pbmRleCxhPXRoaXMuZSxnPWVbYl0sbTtjJiYxPGQmJihmPTg8ZD8oTFtmJjI1NV08PDI0fExbZj4+PjgmMjU1XTw8MTZ8TFtmPj4+MTYmMjU1XTw8OHxMW2Y+Pj4yNCYyNTVdKT4+MzItZDpMW2ZdPj44LWQpO2lmKDg+ZCthKWc9Zzw8ZHxmLGErPWQ7ZWxzZSBmb3IobT0wO208ZDsrK20pZz1nPDwxfGY+PmQtbS0xJjEsOD09PSsrYSYmKGE9MCxlW2IrK109TFtnXSxnPTAsYj09PWUubGVuZ3RoJiYoZT1jYSh0aGlzKSkpO2VbYl09Zzt0aGlzLmJ1ZmZlcj1lO3RoaXMuZT1hO3RoaXMuaW5kZXg9Yjt9O0sucHJvdG90eXBlLmZpbmlzaD1mdW5jdGlvbigpe3ZhciBmPXRoaXMuYnVmZmVyLGQ9dGhpcy5pbmRleCxjOzA8dGhpcy5lJiYoZltkXTw8PTgtdGhpcy5lLGZbZF09TFtmW2RdXSxkKyspO0M/Yz1mLnN1YmFycmF5KDAsZCk6KGYubGVuZ3RoPWQsYz1mKTtyZXR1cm4gY307CiAgICAJdmFyIGRhPW5ldyAoQz9VaW50OEFycmF5OkFycmF5KSgyNTYpLE07Zm9yKE09MDsyNTY+TTsrK00pe2Zvcih2YXIgTj1NLFM9TixlYT03LE49Tj4+PjE7TjtOPj4+PTEpUzw8PTEsU3w9TiYxLC0tZWE7ZGFbTV09KFM8PGVhJjI1NSk+Pj4wO312YXIgTD1kYTtmdW5jdGlvbiBpYShmKXt0aGlzLmJ1ZmZlcj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKDIqZik7dGhpcy5sZW5ndGg9MDt9aWEucHJvdG90eXBlLmdldFBhcmVudD1mdW5jdGlvbihmKXtyZXR1cm4gMiooKGYtMikvNHwwKX07aWEucHJvdG90eXBlLnB1c2g9ZnVuY3Rpb24oZixkKXt2YXIgYyxlLGI9dGhpcy5idWZmZXIsYTtjPXRoaXMubGVuZ3RoO2JbdGhpcy5sZW5ndGgrK109ZDtmb3IoYlt0aGlzLmxlbmd0aCsrXT1mOzA8YzspaWYoZT10aGlzLmdldFBhcmVudChjKSxiW2NdPmJbZV0pYT1iW2NdLGJbY109YltlXSxiW2VdPWEsYT1iW2MrMV0sYltjKzFdPWJbZSsxXSxiW2UrMV09YSxjPWU7ZWxzZSBicmVhaztyZXR1cm4gdGhpcy5sZW5ndGh9OwogICAgCWlhLnByb3RvdHlwZS5wb3A9ZnVuY3Rpb24oKXt2YXIgZixkLGM9dGhpcy5idWZmZXIsZSxiLGE7ZD1jWzBdO2Y9Y1sxXTt0aGlzLmxlbmd0aC09MjtjWzBdPWNbdGhpcy5sZW5ndGhdO2NbMV09Y1t0aGlzLmxlbmd0aCsxXTtmb3IoYT0wOzspe2I9MiphKzI7aWYoYj49dGhpcy5sZW5ndGgpYnJlYWs7YisyPHRoaXMubGVuZ3RoJiZjW2IrMl0+Y1tiXSYmKGIrPTIpO2lmKGNbYl0+Y1thXSllPWNbYV0sY1thXT1jW2JdLGNbYl09ZSxlPWNbYSsxXSxjW2ErMV09Y1tiKzFdLGNbYisxXT1lO2Vsc2UgYnJlYWs7YT1iO31yZXR1cm4ge2luZGV4OmYsdmFsdWU6ZCxsZW5ndGg6dGhpcy5sZW5ndGh9fTtmdW5jdGlvbiBrYShmLGQpe3RoaXMuZD1sYTt0aGlzLmk9MDt0aGlzLmlucHV0PUMmJmYgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShmKTpmO3RoaXMuYz0wO2QmJihkLmxhenkmJih0aGlzLmk9ZC5sYXp5KSwibnVtYmVyIj09PXR5cGVvZiBkLmNvbXByZXNzaW9uVHlwZSYmKHRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZSksZC5vdXRwdXRCdWZmZXImJih0aGlzLmE9QyYmZC5vdXRwdXRCdWZmZXIgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShkLm91dHB1dEJ1ZmZlcik6ZC5vdXRwdXRCdWZmZXIpLCJudW1iZXIiPT09dHlwZW9mIGQub3V0cHV0SW5kZXgmJih0aGlzLmM9ZC5vdXRwdXRJbmRleCkpO3RoaXMuYXx8KHRoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpKTt9dmFyIGxhPTIsbmE9e05PTkU6MCxoOjEsZzpsYSxuOjN9LFQ9W10sVTsKICAgIAlmb3IoVT0wOzI4OD5VO1UrKylzd2l0Y2godyl7Y2FzZSAxNDM+PVU6VC5wdXNoKFtVKzQ4LDhdKTticmVhaztjYXNlIDI1NT49VTpULnB1c2goW1UtMTQ0KzQwMCw5XSk7YnJlYWs7Y2FzZSAyNzk+PVU6VC5wdXNoKFtVLTI1NiswLDddKTticmVhaztjYXNlIDI4Nz49VTpULnB1c2goW1UtMjgwKzE5Miw4XSk7YnJlYWs7ZGVmYXVsdDp0aHJvdyAiaW52YWxpZCBsaXRlcmFsOiAiK1U7fQogICAgCWthLnByb3RvdHlwZS5mPWZ1bmN0aW9uKCl7dmFyIGYsZCxjLGUsYj10aGlzLmlucHV0O3N3aXRjaCh0aGlzLmQpe2Nhc2UgMDpjPTA7Zm9yKGU9Yi5sZW5ndGg7YzxlOyl7ZD1DP2Iuc3ViYXJyYXkoYyxjKzY1NTM1KTpiLnNsaWNlKGMsYys2NTUzNSk7Yys9ZC5sZW5ndGg7dmFyIGE9ZCxnPWM9PT1lLG09bixrPW4scD1uLHQ9bix1PW4sbD10aGlzLmEsaD10aGlzLmM7aWYoQyl7Zm9yKGw9bmV3IFVpbnQ4QXJyYXkodGhpcy5hLmJ1ZmZlcik7bC5sZW5ndGg8PWgrYS5sZW5ndGgrNTspbD1uZXcgVWludDhBcnJheShsLmxlbmd0aDw8MSk7bC5zZXQodGhpcy5hKTt9bT1nPzE6MDtsW2grK109bXwwO2s9YS5sZW5ndGg7cD1+ays2NTUzNiY2NTUzNTtsW2grK109ayYyNTU7bFtoKytdPWs+Pj44JjI1NTtsW2grK109cCYyNTU7bFtoKytdPXA+Pj44JjI1NTtpZihDKWwuc2V0KGEsaCksaCs9YS5sZW5ndGgsbD1sLnN1YmFycmF5KDAsaCk7ZWxzZSB7dD0wO2Zvcih1PWEubGVuZ3RoO3Q8dTsrK3QpbFtoKytdPQogICAgCWFbdF07bC5sZW5ndGg9aDt9dGhpcy5jPWg7dGhpcy5hPWw7fWJyZWFrO2Nhc2UgMTp2YXIgcT1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpO3EuYigxLDEsdyk7cS5iKDEsMix3KTt2YXIgcz1vYSh0aGlzLGIpLHgsZmEsejt4PTA7Zm9yKGZhPXMubGVuZ3RoO3g8ZmE7eCsrKWlmKHo9c1t4XSxLLnByb3RvdHlwZS5iLmFwcGx5KHEsVFt6XSksMjU2PHopcS5iKHNbKyt4XSxzWysreF0sdykscS5iKHNbKyt4XSw1KSxxLmIoc1srK3hdLHNbKyt4XSx3KTtlbHNlIGlmKDI1Nj09PXopYnJlYWs7dGhpcy5hPXEuZmluaXNoKCk7dGhpcy5jPXRoaXMuYS5sZW5ndGg7YnJlYWs7Y2FzZSBsYTp2YXIgQj1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpLHRhLEosTyxQLFEsTGE9WzE2LDE3LDE4LDAsOCw3LDksNiwxMCw1LDExLDQsMTIsMywxMywyLDE0LDEsMTVdLFgsdWEsWSx2YSxnYSxqYT1BcnJheSgxOSksCiAgICAJd2EsUixoYSx5LHhhO3RhPWxhO0IuYigxLDEsdyk7Qi5iKHRhLDIsdyk7Sj1vYSh0aGlzLGIpO1g9cGEodGhpcy5tLDE1KTt1YT1xYShYKTtZPXBhKHRoaXMubCw3KTt2YT1xYShZKTtmb3IoTz0yODY7MjU3PE8mJjA9PT1YW08tMV07Ty0tKTtmb3IoUD0zMDsxPFAmJjA9PT1ZW1AtMV07UC0tKTt2YXIgeWE9Tyx6YT1QLEY9bmV3IChDP1VpbnQzMkFycmF5OkFycmF5KSh5YSt6YSkscixHLHYsWixFPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzE2KSxELEEsSD1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMTkpO2ZvcihyPUc9MDtyPHlhO3IrKylGW0crK109WFtyXTtmb3Iocj0wO3I8emE7cisrKUZbRysrXT1ZW3JdO2lmKCFDKXtyPTA7Zm9yKFo9SC5sZW5ndGg7cjxaOysrcilIW3JdPTA7fXI9RD0wO2ZvcihaPUYubGVuZ3RoO3I8WjtyKz1HKXtmb3IoRz0xO3IrRzxaJiZGW3IrR109PT1GW3JdOysrRyk7dj1HO2lmKDA9PT1GW3JdKWlmKDM+dilmb3IoOzA8di0tOylFW0QrK109MCwKICAgIAlIWzBdKys7ZWxzZSBmb3IoOzA8djspQT0xMzg+dj92OjEzOCxBPnYtMyYmQTx2JiYoQT12LTMpLDEwPj1BPyhFW0QrK109MTcsRVtEKytdPUEtMyxIWzE3XSsrKTooRVtEKytdPTE4LEVbRCsrXT1BLTExLEhbMThdKyspLHYtPUE7ZWxzZSBpZihFW0QrK109RltyXSxIW0Zbcl1dKyssdi0tLDM+dilmb3IoOzA8di0tOylFW0QrK109RltyXSxIW0Zbcl1dKys7ZWxzZSBmb3IoOzA8djspQT02PnY/djo2LEE+di0zJiZBPHYmJihBPXYtMyksRVtEKytdPTE2LEVbRCsrXT1BLTMsSFsxNl0rKyx2LT1BO31mPUM/RS5zdWJhcnJheSgwLEQpOkUuc2xpY2UoMCxEKTtnYT1wYShILDcpO2Zvcih5PTA7MTk+eTt5KyspamFbeV09Z2FbTGFbeV1dO2ZvcihRPTE5OzQ8USYmMD09PWphW1EtMV07US0tKTt3YT1xYShnYSk7Qi5iKE8tMjU3LDUsdyk7Qi5iKFAtMSw1LHcpO0IuYihRLTQsNCx3KTtmb3IoeT0wO3k8UTt5KyspQi5iKGphW3ldLDMsdyk7eT0wO2Zvcih4YT1mLmxlbmd0aDt5PHhhO3krKylpZihSPQogICAgCWZbeV0sQi5iKHdhW1JdLGdhW1JdLHcpLDE2PD1SKXt5Kys7c3dpdGNoKFIpe2Nhc2UgMTY6aGE9MjticmVhaztjYXNlIDE3OmhhPTM7YnJlYWs7Y2FzZSAxODpoYT03O2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29kZTogIitSO31CLmIoZlt5XSxoYSx3KTt9dmFyIEFhPVt1YSxYXSxCYT1bdmEsWV0sSSxDYSwkLG1hLERhLEVhLEZhLEdhO0RhPUFhWzBdO0VhPUFhWzFdO0ZhPUJhWzBdO0dhPUJhWzFdO0k9MDtmb3IoQ2E9Si5sZW5ndGg7STxDYTsrK0kpaWYoJD1KW0ldLEIuYihEYVskXSxFYVskXSx3KSwyNTY8JClCLmIoSlsrK0ldLEpbKytJXSx3KSxtYT1KWysrSV0sQi5iKEZhW21hXSxHYVttYV0sdyksQi5iKEpbKytJXSxKWysrSV0sdyk7ZWxzZSBpZigyNTY9PT0kKWJyZWFrO3RoaXMuYT1CLmZpbmlzaCgpO3RoaXMuYz10aGlzLmEubGVuZ3RoO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29tcHJlc3Npb24gdHlwZSI7fXJldHVybiB0aGlzLmF9OwogICAgCWZ1bmN0aW9uIHJhKGYsZCl7dGhpcy5sZW5ndGg9Zjt0aGlzLms9ZDt9CiAgICAJdmFyIHNhPWZ1bmN0aW9uKCl7ZnVuY3Rpb24gZihiKXtzd2l0Y2godyl7Y2FzZSAzPT09YjpyZXR1cm4gWzI1NyxiLTMsMF07Y2FzZSA0PT09YjpyZXR1cm4gWzI1OCxiLTQsMF07Y2FzZSA1PT09YjpyZXR1cm4gWzI1OSxiLTUsMF07Y2FzZSA2PT09YjpyZXR1cm4gWzI2MCxiLTYsMF07Y2FzZSA3PT09YjpyZXR1cm4gWzI2MSxiLTcsMF07Y2FzZSA4PT09YjpyZXR1cm4gWzI2MixiLTgsMF07Y2FzZSA5PT09YjpyZXR1cm4gWzI2MyxiLTksMF07Y2FzZSAxMD09PWI6cmV0dXJuIFsyNjQsYi0xMCwwXTtjYXNlIDEyPj1iOnJldHVybiBbMjY1LGItMTEsMV07Y2FzZSAxND49YjpyZXR1cm4gWzI2NixiLTEzLDFdO2Nhc2UgMTY+PWI6cmV0dXJuIFsyNjcsYi0xNSwxXTtjYXNlIDE4Pj1iOnJldHVybiBbMjY4LGItMTcsMV07Y2FzZSAyMj49YjpyZXR1cm4gWzI2OSxiLTE5LDJdO2Nhc2UgMjY+PWI6cmV0dXJuIFsyNzAsYi0yMywyXTtjYXNlIDMwPj1iOnJldHVybiBbMjcxLGItMjcsMl07Y2FzZSAzND49YjpyZXR1cm4gWzI3MiwKICAgIAliLTMxLDJdO2Nhc2UgNDI+PWI6cmV0dXJuIFsyNzMsYi0zNSwzXTtjYXNlIDUwPj1iOnJldHVybiBbMjc0LGItNDMsM107Y2FzZSA1OD49YjpyZXR1cm4gWzI3NSxiLTUxLDNdO2Nhc2UgNjY+PWI6cmV0dXJuIFsyNzYsYi01OSwzXTtjYXNlIDgyPj1iOnJldHVybiBbMjc3LGItNjcsNF07Y2FzZSA5OD49YjpyZXR1cm4gWzI3OCxiLTgzLDRdO2Nhc2UgMTE0Pj1iOnJldHVybiBbMjc5LGItOTksNF07Y2FzZSAxMzA+PWI6cmV0dXJuIFsyODAsYi0xMTUsNF07Y2FzZSAxNjI+PWI6cmV0dXJuIFsyODEsYi0xMzEsNV07Y2FzZSAxOTQ+PWI6cmV0dXJuIFsyODIsYi0xNjMsNV07Y2FzZSAyMjY+PWI6cmV0dXJuIFsyODMsYi0xOTUsNV07Y2FzZSAyNTc+PWI6cmV0dXJuIFsyODQsYi0yMjcsNV07Y2FzZSAyNTg9PT1iOnJldHVybiBbMjg1LGItMjU4LDBdO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgbGVuZ3RoOiAiK2I7fX12YXIgZD1bXSxjLGU7Zm9yKGM9MzsyNTg+PWM7YysrKWU9ZihjKSxkW2NdPWVbMl08PDI0fAogICAgCWVbMV08PDE2fGVbMF07cmV0dXJuIGR9KCksSGE9Qz9uZXcgVWludDMyQXJyYXkoc2EpOnNhOwogICAgCWZ1bmN0aW9uIG9hKGYsZCl7ZnVuY3Rpb24gYyhiLGMpe3ZhciBhPWIuayxkPVtdLGU9MCxmO2Y9SGFbYi5sZW5ndGhdO2RbZSsrXT1mJjY1NTM1O2RbZSsrXT1mPj4xNiYyNTU7ZFtlKytdPWY+PjI0O3ZhciBnO3N3aXRjaCh3KXtjYXNlIDE9PT1hOmc9WzAsYS0xLDBdO2JyZWFrO2Nhc2UgMj09PWE6Zz1bMSxhLTIsMF07YnJlYWs7Y2FzZSAzPT09YTpnPVsyLGEtMywwXTticmVhaztjYXNlIDQ9PT1hOmc9WzMsYS00LDBdO2JyZWFrO2Nhc2UgNj49YTpnPVs0LGEtNSwxXTticmVhaztjYXNlIDg+PWE6Zz1bNSxhLTcsMV07YnJlYWs7Y2FzZSAxMj49YTpnPVs2LGEtOSwyXTticmVhaztjYXNlIDE2Pj1hOmc9WzcsYS0xMywyXTticmVhaztjYXNlIDI0Pj1hOmc9WzgsYS0xNywzXTticmVhaztjYXNlIDMyPj1hOmc9WzksYS0yNSwzXTticmVhaztjYXNlIDQ4Pj1hOmc9WzEwLGEtMzMsNF07YnJlYWs7Y2FzZSA2ND49YTpnPVsxMSxhLTQ5LDRdO2JyZWFrO2Nhc2UgOTY+PWE6Zz1bMTIsYS0KICAgIAk2NSw1XTticmVhaztjYXNlIDEyOD49YTpnPVsxMyxhLTk3LDVdO2JyZWFrO2Nhc2UgMTkyPj1hOmc9WzE0LGEtMTI5LDZdO2JyZWFrO2Nhc2UgMjU2Pj1hOmc9WzE1LGEtMTkzLDZdO2JyZWFrO2Nhc2UgMzg0Pj1hOmc9WzE2LGEtMjU3LDddO2JyZWFrO2Nhc2UgNTEyPj1hOmc9WzE3LGEtMzg1LDddO2JyZWFrO2Nhc2UgNzY4Pj1hOmc9WzE4LGEtNTEzLDhdO2JyZWFrO2Nhc2UgMTAyND49YTpnPVsxOSxhLTc2OSw4XTticmVhaztjYXNlIDE1MzY+PWE6Zz1bMjAsYS0xMDI1LDldO2JyZWFrO2Nhc2UgMjA0OD49YTpnPVsyMSxhLTE1MzcsOV07YnJlYWs7Y2FzZSAzMDcyPj1hOmc9WzIyLGEtMjA0OSwxMF07YnJlYWs7Y2FzZSA0MDk2Pj1hOmc9WzIzLGEtMzA3MywxMF07YnJlYWs7Y2FzZSA2MTQ0Pj1hOmc9WzI0LGEtNDA5NywxMV07YnJlYWs7Y2FzZSA4MTkyPj1hOmc9WzI1LGEtNjE0NSwxMV07YnJlYWs7Y2FzZSAxMjI4OD49YTpnPVsyNixhLTgxOTMsMTJdO2JyZWFrO2Nhc2UgMTYzODQ+PQogICAgCWE6Zz1bMjcsYS0xMjI4OSwxMl07YnJlYWs7Y2FzZSAyNDU3Nj49YTpnPVsyOCxhLTE2Mzg1LDEzXTticmVhaztjYXNlIDMyNzY4Pj1hOmc9WzI5LGEtMjQ1NzcsMTNdO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgZGlzdGFuY2UiO31mPWc7ZFtlKytdPWZbMF07ZFtlKytdPWZbMV07ZFtlKytdPWZbMl07dmFyIGssbTtrPTA7Zm9yKG09ZC5sZW5ndGg7azxtOysraylsW2grK109ZFtrXTtzW2RbMF1dKys7eFtkWzNdXSsrO3E9Yi5sZW5ndGgrYy0xO3U9bnVsbDt9dmFyIGUsYixhLGcsbSxrPXt9LHAsdCx1LGw9Qz9uZXcgVWludDE2QXJyYXkoMipkLmxlbmd0aCk6W10saD0wLHE9MCxzPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMjg2KSx4PW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzApLGZhPWYuaSx6O2lmKCFDKXtmb3IoYT0wOzI4NT49YTspc1thKytdPTA7Zm9yKGE9MDsyOT49YTspeFthKytdPTA7fXNbMjU2XT0xO2U9MDtmb3IoYj1kLmxlbmd0aDtlPGI7KytlKXthPQogICAgCW09MDtmb3IoZz0zO2E8ZyYmZSthIT09YjsrK2EpbT1tPDw4fGRbZSthXTtrW21dPT09biYmKGtbbV09W10pO3A9a1ttXTtpZighKDA8cS0tKSl7Zm9yKDswPHAubGVuZ3RoJiYzMjc2ODxlLXBbMF07KXAuc2hpZnQoKTtpZihlKzM+PWIpe3UmJmModSwtMSk7YT0wO2ZvcihnPWItZTthPGc7KythKXo9ZFtlK2FdLGxbaCsrXT16LCsrc1t6XTticmVha30wPHAubGVuZ3RoPyh0PUlhKGQsZSxwKSx1P3UubGVuZ3RoPHQubGVuZ3RoPyh6PWRbZS0xXSxsW2grK109eiwrK3Nbel0sYyh0LDApKTpjKHUsLTEpOnQubGVuZ3RoPGZhP3U9dDpjKHQsMCkpOnU/Yyh1LC0xKTooej1kW2VdLGxbaCsrXT16LCsrc1t6XSk7fXAucHVzaChlKTt9bFtoKytdPTI1NjtzWzI1Nl0rKztmLm09cztmLmw9eDtyZXR1cm4gQz9sLnN1YmFycmF5KDAsaCk6bH0KICAgIAlmdW5jdGlvbiBJYShmLGQsYyl7dmFyIGUsYixhPTAsZyxtLGsscCx0PWYubGVuZ3RoO209MDtwPWMubGVuZ3RoO2E6Zm9yKDttPHA7bSsrKXtlPWNbcC1tLTFdO2c9MztpZigzPGEpe2ZvcihrPWE7MzxrO2stLSlpZihmW2Uray0xXSE9PWZbZCtrLTFdKWNvbnRpbnVlIGE7Zz1hO31mb3IoOzI1OD5nJiZkK2c8dCYmZltlK2ddPT09ZltkK2ddOykrK2c7Zz5hJiYoYj1lLGE9Zyk7aWYoMjU4PT09ZylicmVha31yZXR1cm4gbmV3IHJhKGEsZC1iKX0KICAgIAlmdW5jdGlvbiBwYShmLGQpe3ZhciBjPWYubGVuZ3RoLGU9bmV3IGlhKDU3MiksYj1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoYyksYSxnLG0sayxwO2lmKCFDKWZvcihrPTA7azxjO2srKyliW2tdPTA7Zm9yKGs9MDtrPGM7KytrKTA8ZltrXSYmZS5wdXNoKGssZltrXSk7YT1BcnJheShlLmxlbmd0aC8yKTtnPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoZS5sZW5ndGgvMik7aWYoMT09PWEubGVuZ3RoKXJldHVybiBiW2UucG9wKCkuaW5kZXhdPTEsYjtrPTA7Zm9yKHA9ZS5sZW5ndGgvMjtrPHA7KytrKWFba109ZS5wb3AoKSxnW2tdPWFba10udmFsdWU7bT1KYShnLGcubGVuZ3RoLGQpO2s9MDtmb3IocD1hLmxlbmd0aDtrPHA7KytrKWJbYVtrXS5pbmRleF09bVtrXTtyZXR1cm4gYn0KICAgIAlmdW5jdGlvbiBKYShmLGQsYyl7ZnVuY3Rpb24gZShhKXt2YXIgYj1rW2FdW3BbYV1dO2I9PT1kPyhlKGErMSksZShhKzEpKTotLWdbYl07KytwW2FdO312YXIgYj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGMpLGE9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGMpLGc9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGQpLG09QXJyYXkoYyksaz1BcnJheShjKSxwPUFycmF5KGMpLHQ9KDE8PGMpLWQsdT0xPDxjLTEsbCxoLHEscyx4O2JbYy0xXT1kO2ZvcihoPTA7aDxjOysraCl0PHU/YVtoXT0wOihhW2hdPTEsdC09dSksdDw8PTEsYltjLTItaF09KGJbYy0xLWhdLzJ8MCkrZDtiWzBdPWFbMF07bVswXT1BcnJheShiWzBdKTtrWzBdPUFycmF5KGJbMF0pO2ZvcihoPTE7aDxjOysraCliW2hdPjIqYltoLTFdK2FbaF0mJihiW2hdPTIqYltoLTFdK2FbaF0pLG1baF09QXJyYXkoYltoXSksa1toXT1BcnJheShiW2hdKTtmb3IobD0wO2w8ZDsrK2wpZ1tsXT1jO2ZvcihxPTA7cTxiW2MtMV07KytxKW1bYy0KICAgIAkxXVtxXT1mW3FdLGtbYy0xXVtxXT1xO2ZvcihsPTA7bDxjOysrbClwW2xdPTA7MT09PWFbYy0xXSYmKC0tZ1swXSwrK3BbYy0xXSk7Zm9yKGg9Yy0yOzA8PWg7LS1oKXtzPWw9MDt4PXBbaCsxXTtmb3IocT0wO3E8YltoXTtxKyspcz1tW2grMV1beF0rbVtoKzFdW3grMV0scz5mW2xdPyhtW2hdW3FdPXMsa1toXVtxXT1kLHgrPTIpOihtW2hdW3FdPWZbbF0sa1toXVtxXT1sLCsrbCk7cFtoXT0wOzE9PT1hW2hdJiZlKGgpO31yZXR1cm4gZ30KICAgIAlmdW5jdGlvbiBxYShmKXt2YXIgZD1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGYubGVuZ3RoKSxjPVtdLGU9W10sYj0wLGEsZyxtLGs7YT0wO2ZvcihnPWYubGVuZ3RoO2E8ZzthKyspY1tmW2FdXT0oY1tmW2FdXXwwKSsxO2E9MTtmb3IoZz0xNjthPD1nO2ErKyllW2FdPWIsYis9Y1thXXwwLGI8PD0xO2E9MDtmb3IoZz1mLmxlbmd0aDthPGc7YSsrKXtiPWVbZlthXV07ZVtmW2FdXSs9MTttPWRbYV09MDtmb3Ioaz1mW2FdO208azttKyspZFthXT1kW2FdPDwxfGImMSxiPj4+PTE7fXJldHVybiBkfWZ1bmN0aW9uIEthKGYsZCl7dGhpcy5pbnB1dD1mO3RoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO3RoaXMuZD1WLmc7dmFyIGM9e30sZTtpZigoZHx8IShkPXt9KSkmJiJudW1iZXIiPT09dHlwZW9mIGQuY29tcHJlc3Npb25UeXBlKXRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZTtmb3IoZSBpbiBkKWNbZV09ZFtlXTtjLm91dHB1dEJ1ZmZlcj10aGlzLmE7dGhpcy5qPW5ldyBrYSh0aGlzLmlucHV0LGMpO312YXIgVj1uYTsKICAgIAlLYS5wcm90b3R5cGUuZj1mdW5jdGlvbigpe3ZhciBmLGQsYyxlLGIsYSxnPTA7YT10aGlzLmE7c3dpdGNoKDgpe2Nhc2UgODpmPU1hdGguTE9HMkUqTWF0aC5sb2coMzI3NjgpLTg7YnJlYWs7ZGVmYXVsdDp0aHJvdyBFcnJvcigiaW52YWxpZCBjb21wcmVzc2lvbiBtZXRob2QiKTt9ZD1mPDw0fDg7YVtnKytdPWQ7c3dpdGNoKDgpe2Nhc2UgODpzd2l0Y2godGhpcy5kKXtjYXNlIFYuTk9ORTplPTA7YnJlYWs7Y2FzZSBWLmg6ZT0xO2JyZWFrO2Nhc2UgVi5nOmU9MjticmVhaztkZWZhdWx0OnRocm93IEVycm9yKCJ1bnN1cHBvcnRlZCBjb21wcmVzc2lvbiB0eXBlIik7fWJyZWFrO2RlZmF1bHQ6dGhyb3cgRXJyb3IoImludmFsaWQgY29tcHJlc3Npb24gbWV0aG9kIik7fWM9ZTw8NnwwO2FbZysrXT1jfDMxLSgyNTYqZCtjKSUzMTt2YXIgbT10aGlzLmlucHV0O2lmKCJzdHJpbmciPT09dHlwZW9mIG0pe3ZhciBrPW0uc3BsaXQoIiIpLHAsdDtwPTA7Zm9yKHQ9ay5sZW5ndGg7cDx0O3ArKylrW3BdPQogICAgCShrW3BdLmNoYXJDb2RlQXQoMCkmMjU1KT4+PjA7bT1rO31mb3IodmFyIHU9MSxsPTAsaD1tLmxlbmd0aCxxLHM9MDswPGg7KXtxPTEwMjQ8aD8xMDI0Omg7aC09cTtkbyB1Kz1tW3MrK10sbCs9dTt3aGlsZSgtLXEpO3UlPTY1NTIxO2wlPTY1NTIxO31iPShsPDwxNnx1KT4+PjA7dGhpcy5qLmM9ZzthPXRoaXMuai5mKCk7Zz1hLmxlbmd0aDtDJiYoYT1uZXcgVWludDhBcnJheShhLmJ1ZmZlciksYS5sZW5ndGg8PWcrNCYmKHRoaXMuYT1uZXcgVWludDhBcnJheShhLmxlbmd0aCs0KSx0aGlzLmEuc2V0KGEpLGE9dGhpcy5hKSxhPWEuc3ViYXJyYXkoMCxnKzQpKTthW2crK109Yj4+MjQmMjU1O2FbZysrXT1iPj4xNiYyNTU7YVtnKytdPWI+PjgmMjU1O2FbZysrXT1iJjI1NTtyZXR1cm4gYX07YmEoIlpsaWIuRGVmbGF0ZSIsS2EpO2JhKCJabGliLkRlZmxhdGUuY29tcHJlc3MiLGZ1bmN0aW9uKGYsZCl7cmV0dXJuIChuZXcgS2EoZixkKSkuZigpfSk7YmEoIlpsaWIuRGVmbGF0ZS5wcm90b3R5cGUuY29tcHJlc3MiLEthLnByb3RvdHlwZS5mKTt2YXIgTWE9e05PTkU6Vi5OT05FLEZJWEVEOlYuaCxEWU5BTUlDOlYuZ30sTmEsT2EsVyxQYTtpZihPYmplY3Qua2V5cylOYT1PYmplY3Qua2V5cyhNYSk7ZWxzZSBmb3IoT2EgaW4gTmE9W10sVz0wLE1hKU5hW1crK109T2E7Vz0wO2ZvcihQYT1OYS5sZW5ndGg7VzxQYTsrK1cpT2E9TmFbV10sYmEoIlpsaWIuRGVmbGF0ZS5Db21wcmVzc2lvblR5cGUuIitPYSxNYVtPYV0pO30pLmNhbGwobW9kdWxlLmV4cG9ydHMpOyAKICAgIH0gKGRlZmxhdGVfbWluKSk7CgogICAgdmFyIGRlZmxhdGVfbWluRXhwb3J0cyA9IGRlZmxhdGVfbWluLmV4cG9ydHM7CiAgICB2YXIgWkxpYkRlZmxhdGUgPSAvKkBfX1BVUkVfXyovZ2V0RGVmYXVsdEV4cG9ydEZyb21DanMoZGVmbGF0ZV9taW5FeHBvcnRzKTsKCiAgICBmdW5jdGlvbiB0b1VURjhBcnJheShzdHIpIHsKICAgICAgICB2YXIgdXRmOCA9IFtdOwogICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgc3RyLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIHZhciBjaGFyY29kZSA9IHN0ci5jaGFyQ29kZUF0KGkpOwogICAgICAgICAgICBpZiAoY2hhcmNvZGUgPCAweDgwKQogICAgICAgICAgICAgICAgdXRmOC5wdXNoKGNoYXJjb2RlKTsKICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweDgwMCkgewogICAgICAgICAgICAgICAgdXRmOC5wdXNoKDB4YzAgfCAoY2hhcmNvZGUgPj4gNiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweGQ4MDAgfHwgY2hhcmNvZGUgPj0gMHhlMDAwKSB7CiAgICAgICAgICAgICAgICB1dGY4LnB1c2goMHhlMCB8IChjaGFyY29kZSA+PiAxMiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICAvLyBzdXJyb2dhdGUgcGFpcgogICAgICAgICAgICAgICAgaSsrOwogICAgICAgICAgICAgICAgLy8gVVRGLTE2IGVuY29kZXMgMHgxMDAwMC0weDEwRkZGRiBieQogICAgICAgICAgICAgICAgLy8gc3VidHJhY3RpbmcgMHgxMDAwMCBhbmQgc3BsaXR0aW5nIHRoZQogICAgICAgICAgICAgICAgLy8gMjAgYml0cyBvZiAweDAtMHhGRkZGRiBpbnRvIHR3byBoYWx2ZXMKICAgICAgICAgICAgICAgIGNoYXJjb2RlID0gMHgxMDAwMCArICgoKGNoYXJjb2RlICYgMHgzZmYpIDw8IDEwKSB8CiAgICAgICAgICAgICAgICAgICAgKHN0ci5jaGFyQ29kZUF0KGkpICYgMHgzZmYpKTsKICAgICAgICAgICAgICAgIHV0ZjgucHVzaCgweGYwIHwgKGNoYXJjb2RlID4+IDE4KSwgMHg4MCB8ICgoY2hhcmNvZGUgPj4gMTIpICYgMHgzZiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHV0Zjg7CiAgICB9CgogICAgdmFyIFpsaWIgPSB7CiAgICAgICAgJ0RlZmxhdGUnOiBaTGliRGVmbGF0ZS5abGliLkRlZmxhdGUKICAgIH07CiAgICB2YXIgRW5jb2RpbmcgPSB7CiAgICAgICAgJ2Jhc2U2NFVybCc6ICdiYXNlNjR1cmwnLAogICAgICAgICdiaW5hcnknOiAnYmluYXJ5JwogICAgfTsKICAgIGZ1bmN0aW9uIGNvbXByZXNzKGpzb25fb2JqLCBlbmNvZGluZykgewogICAgICAgIGlmICghZW5jb2RpbmcpIHsKICAgICAgICAgICAgZW5jb2RpbmcgPSBFbmNvZGluZy5iYXNlNjRVcmw7CiAgICAgICAgfQogICAgICAgIC8qIC0tIFRoaXMgaXMgWkxJQiAqLwogICAgICAgIHZhciBjb21wcmVzc0RhdGEgPSB0b1VURjhBcnJheSh0eXBlb2YganNvbl9vYmogPT09ICdzdHJpbmcnID8ganNvbl9vYmogOiBKU09OLnN0cmluZ2lmeShqc29uX29iaikpOwogICAgICAgIHZhciBkZWZsYXRlID0gbmV3IFpsaWIuRGVmbGF0ZShjb21wcmVzc0RhdGEpOwogICAgICAgIHZhciBjb21wcmVzc2VkQnl0ZXMgPSBkZWZsYXRlLmNvbXByZXNzKCk7CiAgICAgICAgaWYgKGVuY29kaW5nID09PSBFbmNvZGluZy5iYXNlNjRVcmwpIHsKICAgICAgICAgICAgcmV0dXJuIGI2NC51aW50OFRvQmFzZTY0KGNvbXByZXNzZWRCeXRlcyk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICByZXR1cm4gY29tcHJlc3NlZEJ5dGVzOwogICAgICAgIH0KICAgIH0KCiAgICB2YXIgT05FX0hVTkRSRURfTUJfSU5fQllURVMgPSAxMDAgKiAxMDI0ICogMTAyNDsKICAgIGZ1bmN0aW9uIG1hdGNoSG9zdGVkUmVzb3VyY2VzKHJlY29yZGluZ0V2ZW50LCBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQpIHsKICAgICAgICB2YXIgZm9udFVSTFJlZ2V4ID0gL2h0dHBzOlwvXC9bXlxzXSs/XC4od29mZnx3b2ZmMnx0dGZ8b3RmfGVvdClcYi9nOwogICAgICAgIHZhciBob3N0ZWRSZXNvdXJjZXMgPSBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQubWF0Y2goZm9udFVSTFJlZ2V4KTsKICAgICAgICByZXR1cm4gewogICAgICAgICAgICAndHlwZSc6ICdyZWNvcmRpbmcnLAogICAgICAgICAgICAndmlzaXRvcklkJzogcmVjb3JkaW5nRXZlbnQudmlzaXRvcklkLAogICAgICAgICAgICAnYWNjb3VudElkJzogcmVjb3JkaW5nRXZlbnQuYWNjb3VudElkLAogICAgICAgICAgICAna2V5RnJhbWUnOiBmYWxzZSwKICAgICAgICAgICAgJ2xhc3RLZXlGcmFtZSc6IHJlY29yZGluZ0V2ZW50Lmxhc3RLZXlGcmFtZSwKICAgICAgICAgICAgJ3JlY29yZGluZ0lkJzogcmVjb3JkaW5nRXZlbnQucmVjb3JkaW5nSWQsCiAgICAgICAgICAgICdyZWNvcmRpbmdTZXNzaW9uSWQnOiByZWNvcmRpbmdFdmVudC5yZWNvcmRpbmdTZXNzaW9uSWQsCiAgICAgICAgICAgICd1cmwnOiByZWNvcmRpbmdFdmVudC51cmwsCiAgICAgICAgICAgICdzdWJUeXBlJzogJ2hvc3RlZFJlc291cmNlcycsCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkJzogW10sCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkTWV0YWRhdGEnOiBbXSwKICAgICAgICAgICAgJ3NlcXVlbmNlJzogMCwKICAgICAgICAgICAgJ3JlY29yZGluZ1BheWxvYWRDb3VudCc6IDAsCiAgICAgICAgICAgICdob3N0ZWRSZXNvdXJjZXMnOiBob3N0ZWRSZXNvdXJjZXMgfHwgW10KICAgICAgICB9OwogICAgfQogICAgLy8ga2VlcCBpbiBtaW5kIGNoYW5nZXMgaGVyZSBtYXkgbmVlZCBhZGRyZXNzaW5nIGluIHRoZSBleHRlbnNpb24gd29ya2VyIHByb3h5IGFzIHdlbGwKICAgIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBpZiAoZS5kYXRhLnVybCAmJiBlLmRhdGEucGF5bG9hZCkgewogICAgICAgICAgICAgICAgdmFyIF9hID0gZS5kYXRhLCB1cmwgPSBfYS51cmwsIHBheWxvYWQgPSBfYS5wYXlsb2FkLCBzaG91bGRDYWNoZVJlc291cmNlcyA9IF9hLnNob3VsZENhY2hlUmVzb3VyY2VzOwogICAgICAgICAgICAgICAgdmFyIHNlcXVlbmNlXzEgPSBwYXlsb2FkLnNlcXVlbmNlOwogICAgICAgICAgICAgICAgdmFyIHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCA9IEpTT04uc3RyaW5naWZ5KHBheWxvYWQucmVjb3JkaW5nUGF5bG9hZCk7CiAgICAgICAgICAgICAgICAvLyBjYWxjdWxhdGUgYW5kIHBvc3QgYmFjayB0aGUgcmVjb3JkaW5nIHBheWxvYWQgc2l6ZSBiZWZvcmUgdGhlIHBheWxvYWQgaXMgY29tcHJlc3NlZAogICAgICAgICAgICAgICAgdmFyIHJlY29yZGluZ1BheWxvYWRTaXplID0gbmV3IFRleHRFbmNvZGVyKCkuZW5jb2RlKHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCkubGVuZ3RoOwogICAgICAgICAgICAgICAgdmFyIGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0ID0gcmVjb3JkaW5nUGF5bG9hZFNpemUgPj0gT05FX0hVTkRSRURfTUJfSU5fQllURVM7CiAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAncmVjb3JkaW5nUGF5bG9hZFNpemUnLAogICAgICAgICAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkU2l6ZSc6IHJlY29yZGluZ1BheWxvYWRTaXplLAogICAgICAgICAgICAgICAgICAgICdleGNlZWRzUGF5bG9hZFNpemVMaW1pdCc6IGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIC8vIGRvbid0IGF0dGVtcHQgdG8gc2VuZCB0aGUgcGF5bG9hZCBpZiBpdCBleGNlZWRzIHRoZSBhbGxvd2VkIGxpbWl0CiAgICAgICAgICAgICAgICBpZiAoZXhjZWVkc1BheWxvYWRTaXplTGltaXQpCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgaWYgKHNob3VsZENhY2hlUmVzb3VyY2VzKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGhvc3RlZFJlc291cmNlc0V2ZW50ID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXMocGF5bG9hZCwgc3RyaW5naWZpZWRSZWNvcmRpbmdQYXlsb2FkKTsKICAgICAgICAgICAgICAgICAgICBpZiAoaG9zdGVkUmVzb3VyY2VzRXZlbnQuaG9zdGVkUmVzb3VyY2VzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAndHlwZSc6ICdob3N0ZWRSZXNvdXJjZXMnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2hvc3RlZFJlc291cmNlc0V2ZW50JzogaG9zdGVkUmVzb3VyY2VzRXZlbnQKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcGF5bG9hZC5yZWNvcmRpbmdTaXplID0gcmVjb3JkaW5nUGF5bG9hZFNpemU7CiAgICAgICAgICAgICAgICB2YXIgYm9keSA9IGNvbXByZXNzKHBheWxvYWQsICdiaW5hcnknKTsKICAgICAgICAgICAgICAgIC8vIHdlIHdhbnQgdG8gY2FsY3VsYXRlIGN0IChjdXJyZW50IHRpbWUpIGFzIGNsb3NlIGFzIHdlIGNhbiB0byB0aGUgYWN0dWFsIFBPU1QgcmVxdWVzdAogICAgICAgICAgICAgICAgLy8gc28gdGhhdCBpdCdzIGFzIGFjY3VyYXRlIGFzIHBvc3NpYmxlCiAgICAgICAgICAgICAgICB1cmwgPSAiIi5jb25jYXQodXJsLCAiJmN0PSIpLmNvbmNhdChuZXcgRGF0ZSgpLmdldFRpbWUoKSk7CiAgICAgICAgICAgICAgICBmZXRjaCh1cmwsIHsKICAgICAgICAgICAgICAgICAgICAnbWV0aG9kJzogJ1BPU1QnLAogICAgICAgICAgICAgICAgICAgICdib2R5JzogYm9keQogICAgICAgICAgICAgICAgfSkudGhlbihmdW5jdGlvbiAocmVzcG9uc2UpIHsKICAgICAgICAgICAgICAgICAgICBpZiAocmVzcG9uc2Uuc3RhdHVzIDwgMjAwIHx8IHJlc3BvbnNlLnN0YXR1cyA+PSAzMDApIHsKICAgICAgICAgICAgICAgICAgICAgICAgcG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogbmV3IEVycm9yKCJyZWNlaXZlZCBzdGF0dXMgY29kZSAiLmNvbmNhdChyZXNwb25zZS5zdGF0dXMsICI6ICIpLmNvbmNhdChyZXNwb25zZS5zdGF0dXNUZXh0KSksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnc3RhdHVzJzogcmVzcG9uc2Uuc3RhdHVzLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXF1ZW5jZTogc2VxdWVuY2VfMQogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KVsnY2F0Y2gnXShmdW5jdGlvbiAoZSkgewogICAgICAgICAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogZSwKICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGNhdGNoIChlKSB7CiAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICdlcnJvcic6IGUKICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfTsKCiAgICBleHBvcnRzLm1hdGNoSG9zdGVkUmVzb3VyY2VzID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXM7CgogICAgcmV0dXJuIGV4cG9ydHM7Cgp9KSh7fSk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdvcmtlci5qcy5tYXAKCg==",null,!1);function loadAgent(i){var u=function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");return{uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}}}(),Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var t={exports:{}},r=(!function(h){!function(){var s="object"==typeof window?window:{},i=!s.JS_SHA1_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node,e=(i&&(s=Bt),!s.JS_SHA1_NO_COMMON_JS&&h.exports),o="0123456789abcdef".split(""),n=[-2147483648,8388608,32768,128],d=[24,16,8,0],r=["hex","array","digest","arrayBuffer"],t=[],a=function(t){return function(e){return new l(!0).update(e)[t]()}},u=function(){var t=a("hex");(t=i?c(t):t).create=function(){return new l},t.update=function(e){return t.create().update(e)};for(var e=0;e<r.length;++e){var n=r[e];t[n]=a(n)}return t},c=function(t){var n=eval("require('crypto')"),i=eval("require('buffer').Buffer"),e=function(e){if("string"==typeof e)return n.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(e.length===undefined)return t(e);return n.createHash("sha1").update(new i(e)).digest("hex")};return e};function l(e){e?(t[0]=t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0,this.blocks=t):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}l.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===s.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<d[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<d[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<d[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<d[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<d[3&n++],a[n>>2]|=(128|t>>12&63)<<d[3&n++]),a[n>>2]|=(128|t>>6&63)<<d[3&n++]),a[n>>2]|=(128|63&t)<<d[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},l.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=n[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},l.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+a[s+4]<<0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+a[s+4]<<0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+a[s+4]<<0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+a[s+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+r<<0,this.h4=this.h4+o<<0},l.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},l.prototype.toString=l.prototype.hex,l.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},l.prototype.array=l.prototype.digest,l.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var p=u();e?h.exports=p:s.sha1=p}()}(t),t.exports),R=e(r),o,a={createScriptURL:function(e){return e},createHTML:function(e){return e}};function Te(e){return o||(o=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",a):a),e.trustedTypesPolicy=o),o}var k="stagingServerHashes",C,O={};function N(e){return e.loadAsModule}function M(e){e=N(e)?{}:window;return C=e.pendo=e.pendo||{}}function L(e){return"staging"===e.environmentName}function F(e){return!e.unminified}function P(e){return"extension"===e.installType}function G(e){return!P(e)&&!L(e)&&U(e)}function D(e,t){return!P(e)&&F(e)&&t}function B(e){void 0===e&&(e=[]);for(var t=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g,n=0;n<e.length;n++){var i=e[n];if(t.test(i.src))return i.src.replace(/\.js$/,"-staging.js")}}function W(e,t,n){e=B(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function U(e,t){if(L(e=e||he()))return!0;if(t=t||window.location,j(e))for(var n=$(t.host),i=0,r=e[k].length;i<r;++i)if(e[k][i]===n)return!0;if(z(e))for(var o=0,a=e.stagingServers.length;o<a;++o){var s=e.stagingServers[o];if((s="string"==typeof s?new RegExp("^"+s+"$"):s)instanceof RegExp&&s.test(t.host))return!0}return!1}function $(e){return u.uint8ToBase64(R.create().update(e).digest())}function j(e){return e&&e.stagingAgentUrl&&e[k]}function z(e){return e&&e.stagingAgentUrl&&e.stagingServers}var Z=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function V(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function Y(e,t){t[e]=t[e]||function(){V(t,e,arguments)}}function H(e){if(!e._q)for(var t=Z,n=0,i=t.length;n<i;++n)Y(t[n],e)}function de(e,t,n){if(G(e)){e=W(e,!0,n);if(e)return H(t),le(e,t),!0}return!1}function ue(e,t,n){if(D(e,n)){e=W(e,!1,n);if(e)return H(t),le(e,t),!0}return!1}function ce(e,t,n){return de(e,t,n)||ue(e,t,n)}function le(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=Te(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function pe(e){O=e}function he(){return O}function fe(){return void 0===i?{}:i}function ge(e){return he()[e]}var me=ve(window.setTimeout,window);function ve(e,t){return"function"==typeof e.bind?e.bind(t):e}var me=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return ve(e[t],e)}(window),Dt=me,ye={exports:{}},be=(!function(){var e;e=function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},i=Array.prototype,P=Object.prototype,G="undefined"!=typeof Symbol?Symbol.prototype:null,D=i.push,d=i.slice,l=P.toString,B=P.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),W=Array.isArray,U=Object.keys,$=Object.create,j=t&&ArrayBuffer.isView,z=isNaN,Z=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),Y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],H=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function K(e){return void 0===e}function X(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var J=r("String"),q=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=W||r("Array");function g(e,t){return null!=e&&B.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return q(e)&&z(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=H}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=Y.length,i=e.constructor,r=p(i)&&i.prototype||P,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=Y[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(U)return U(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return G.valueOf.call(e)===G.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==we||!p(e[Ie])}}var Ie="forEach",e=["clear","delete"],n=["get","has","set"],W=e.concat(Ie,n),we=e.concat(n),t=["add"].concat(e,Ie,"has"),n=a?be(W):r("Map"),e=a?be(we):r("WeakMap"),W=a?be(t):r("Set"),a=r("WeakSet");function I(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ce(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Se(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ae(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var Te=Ae(u),s=Ae(y),_e=Ae(u,!0);function Ee(e){var t;return o(e)?$?$(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function xe(e){return f(e)?e:[e]}function w(e){return b.toPath(e)}function Re(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function ke(e,t,n){e=Re(e,w(t));return K(e)?n:e}function Oe(e){return e}function C(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=w(t),function(e){return Re(e,t)}}function S(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?S(e,t,n):(o(e)&&!f(e)?C:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function A(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Fe(){}function Pe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=xe,b.iteratee=Le;var T=Date.now||function(){return(new Date).getTime()};function Ge(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},De=Ge(t),t=Ge(Ce(t)),Be=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},We=/(.)^/,Ue={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},$e=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+Ue[e]}var ze=/^\s*(\w|\$)+\s*$/;var Ze=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Ee(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var _=c(function(r,o){var a=_.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Ye=(_.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),E=ue(v);function x(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(E(s)&&(f(s)||ae(s)))if(1<t)x(s,t-1,n,i),r=i.length;else for(var d=0,u=s.length;d<u;)i[r++]=s[d++];else n||(i[r++]=s)}return i}var He=c(function(e,t){var n=(t=x(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ye(e[i],e)}return e});var Ke=c(function(e,t,n){return Dt(function(){return e.apply(null,n)},t)}),Xe=_(Ke,b,1);function Je(e){return function(){return!e.apply(this,arguments)}}function qe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=_(qe,2);function et(e,t,n){t=A(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=A(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=A(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(d.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function dt(e,t,n){t=(E(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function R(e,t,n){if(t=S(t,n),E(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function k(e,t,n){t=A(t,n);for(var i=!E(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=S(t,i,4),s=n,d=!E(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function O(e,i,t){var r=[];return i=A(i,t),R(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=A(t,n);for(var i=!E(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=A(t,n);for(var i=!E(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return E(e)||(e=I(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=w(n),r=n.slice(0,-1),n=n[n.length-1]),k(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Re(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return k(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=E(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=A(i,t),R(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):J(e)?e.match(vt):E(e)?k(e,Oe):I(e):[]}function bt(e,t,n){if(null==t||n)return(e=E(e)?e:I(e))[Pe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Pe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=A(i,e),R(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var It=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),wt=M(function(e,t,n){e[n]=t}),Ct=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),St=M(function(e,t,n){e[n?0:1].push(t)},!0);function At(e,t,n){return t in n}var Tt=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=S(i,t[1])),t=u(e)):(i=At,t=x(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),_t=c(function(e,n){var t,i=n[0];return p(i)?(i=Je(i),1<n.length&&(t=n[1])):(n=k(x(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Tt(e,i,t)});function Et(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function xt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Et(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var Rt=c(function(e,t){return t=x(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return Rt(e,t)});function Ot(e,t,n,i){X(t)||(i=n,n=t,t=!1),null!=n&&(n=A(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}return r}var Nt=c(function(e){return Ot(x(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Ft(e,t){return e._chain?b(t).chain():t}function Pt(n){return R(Se(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return D.apply(e,arguments),Ft(this,t.apply(b,e))}}),b}R(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Ft(this,e)}}),R(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Ft(this,e=null!=e?t.apply(e,arguments):e)}});var F=Pt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:X,isElement:function(e){return!(!e||1!==e.nodeType)},isString:J,isNumber:q,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&Z(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||J(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:W,isWeakSet:a,keys:y,allKeys:u,values:I,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ce,functions:Se,methods:Se,extend:Te,extendOwn:s,assign:s,defaults:_e,create:function(e,t){return e=Ee(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Te({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=w(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=A(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Fe,toPath:xe,property:Ne,propertyOf:function(t){return null==t?Fe:function(e){return ke(t,e)}},matcher:C,matches:C,times:function(e,t,n){var i=Array(Math.max(0,e));t=S(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Pe,now:T,escape:De,unescape:t,templateSettings:Be,template:function(o,e,t){e=_e({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||We).source,(e.interpolate||We).source,(e.evaluate||We).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace($e,je),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!ze.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=w(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++Ze+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:_,bind:Ye,bindAll:He,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:Ke,defer:Xe,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:T(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=T(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Dt(c,t)),d};return e.cancel=function(){clearTimeout(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=T()-o;e<n?r=Dt(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=T(),r||(r=Dt(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout(r),r=a=d=null},e},wrap:function(e,t){return _(t,e)},negate:Je,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:qe,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,C(t))},each:R,forEach:R,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Je(A(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,C(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=E(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=A(i,t),R(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=A(i,t),gt(k(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:It,indexBy:wt,countBy:Ct,partition:St,toArray:yt,size:function(e){return null==e?0:(E(e)?e:y(e)).length},pick:Tt,omit:_t,first:xt,head:xt,take:xt,initial:Et,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return x(e,t,!1)},without:kt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:Rt,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Pt,"default":b}),Gt=F.toPath;return F.mixin({toPath:function(e){return F.isString(e)?e.split("."):Gt(e)}}),F._=F},ye.exports=e()}(),ye.exports),K=e(be),Ie;function S(e){return!(null==e)}function we(e){return K.isFunction(e)||K.isRegExp(e)?e:K.isArray(e)?K.map(e,we):K.isObject(e)?K.reduce(e,function(e,t,n){return e[n]=we(t),e},{}):e}var m=function(){var i=K.all,r=K.each,o=K.filter,a=K.first,s=K.find,n=K.map,d=K.pluck,u="snippet",c="pendoconfig",l="global",p="default",h={};function e(e,t,n,i){void 0===t&&(t=[c]),e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,u]),e("allowedOriginServers"),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("apiKey",[c,u]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),e("forceAnonymous",[u,c],!1),e("identityStorageLifetime",[u,c]),e("identityStorageSuffix",[u,c]),e("ignoreHashRouting",[u,c]),e("initializeImmediately",[u,c],!1),e("installType"),e("localStorageOnly",[u,c]),e("location.pushState",[u,c],!0),e("maxCookieTTLDays",[u,c],Infinity),e("observeShadowRoots",[u,c],!1),e("pendoCore",[c],!0),e("preferBroadcastChannel",[u,c],!1),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedAgentUrl",[u,c]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[u,c],[]),e("analytics.excludeEvents",[u,c],[]),e("enableDebugEvents",[u,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[u,c],!1),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[u]),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disableGuides",[u]),e("disablePrefetch",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideTimeout",[u]),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u]),e("guides.disabled",[u]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1),e("previewModeAssetPath"),e("storage.allowKeys",[u],"*"),e("disableFeedback",[u]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[u,c]),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,u]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("forceParentDesigner",[u]),e("enableAllEmbeddedGuideEvents",[c],!1);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),S(e=K.get(t.lookup,(t=e,K.get(t,"key")||K.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new I(e.name,n,t)}function y(e,t){return t=t||K.get(e,"supportedSources",[u,c,l]),o(n(t,K.partial(v,e)),function(e){return S(e.value)})}function b(e,t,n){var i=g(e),e=new I(e,t=t||K.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&S(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function I(e,t,n){this.name=e,this.value=t,this.source=n}function w(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(d(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[u]=function(){return{lookup:Ie||window.pendo_options,name:u}},f[c]=function(){return{lookup:he(),name:c}},f[l]=function(){return{lookup:C,name:l}},I.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:w,get:function(e,t){return b(e,t).value},getLocalConfig:function(e,t){return arguments.length?b(e,t,[u]).value:we(Ie)},getHostedConfig:function(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig:function(e){Ie=e},options:function(){return d(h,"name")},sources:{SNIPPET_SRC:u,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate:function(t){t.groupCollapsed("Validate Config options"),r(w(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}(),Ce="prod",Se="extension",Ae="native";function _e(){return m.get("installType")||Ae}function Ee(e){return e===Ce?"pendo-static":xe(e)}function xe(e){var t;return e===Ce?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}function Re(e){return/native/.test(e)}var ke=function(e,t){return e=e||10,(t=!isNaN(Oe)&&(!t||Oe<t))&&d<e},d,Oe;function Ne(e){return parseInt(e,10)}var Me=function(e){return K.isString(e)?e.toLowerCase():e};function Le(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e}function Fe(){return(window.navigator||{}).userAgent}var Pe=function(e){var t=Ne((/msie (\d+)/.exec(Me(e))||[])[1]);return t=isNaN(t)?Ne((/trident\/.*; rv:(\d+)/.exec(Me(e))||[])[1]):t},d=Pe(Fe()),Ge=function(e,t){e=Ne((/trident\/(\d+)/.exec(Me(e))||[])[1]);return e=isNaN(e)&&7==t?3:e},Oe=Ge(Fe(),d),De={},Be=Ne((/android (\d+)/.exec(Me(Fe()))||[])[1]),We=/Boxee/i.test(Fe()),Ue=window.document||{},$e=Ue.documentMode,je,ze=/^(Moz|webkit|O|ms)(?=[A-Z])/,Ze=Ue.body&&Ue.body.style,Ve=!1,Ye=!1,He;if(Ze){for(var Ke in Ze)if(He=ze.exec(Ke),He){je=He[0],je=je.substr(0,1).toUpperCase()+je.substr(1);break}je=je||"WebkitOpacity"in Ze&&"webkit",Ve=!!("transition"in Ze||je+"Transition"in Ze),Ye=!!("animation"in Ze||je+"Animation"in Ze),!Be||Ve&&Ye||(Ve=K.isString(Ue.body.style.webkitTransition),Ye=K.isString(Ue.body.style.webkitAnimation))}var Xe=K.memoize(function Xe(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&K.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&K.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&K.get(n,"pushState.writable",!0)&&K.get(n,"replaceState.writable",!0),i=!(Be<4),r=_e()===Se;return!(!e||t||!n||!i||We||r)});function Je(){var e="onhashchange"in window,t=!$e||7<$e,n=_e()===Se;return!(!e||!t||n)}function qe(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Fe())}var l={supportsHistoryApi:Xe,supportsHashChange:Je,hasEvent:function(e){var t;return("input"!=e||9!=d)&&(K.isUndefined(De[e])&&(t=Ue.createElement("div"),De[e]="on"+e in t),De[e])},vendorPrefix:je,transitions:Ve,animations:Ye,android:Be,msie:d,msieDocumentMode:$e,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:K.isFunction(window.addEventListener),MutationObserver:Re(window.MutationObserver),isMinimumIEVersion:Le,isMobileUserAgent:K.memoize(qe)},Qe=function(){return!isNaN(d)&&11!=d&&"CSS1Compat"!==document.compatMode},et=function(e,t){var n,i=e.height,r=e.width;return"top"==e.arrowPosition||"bottom"==e.arrowPosition?(n=0,"top"==e.arrowPosition?(e.top=t.top+t.height,n=-1,e.arrow.top=3,d<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+C.TOOLTIP_ARROW_SIZE),e.arrow.top=i-C.TOOLTIP_ARROW_SIZE,10==d?e.arrow.top--:d<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=10+C.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*C.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-C.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-C.TOOLTIP_ARROW_SIZE),e.arrow.left=r-C.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-C.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},tt="",nt="",it="",rt="",ot="",at="2.270.0_",st="2.270.0",dt="xhr",ut=function(){return Qe()?at+"+quirksmode":at},ct=function(){tt=ge("env")||tt,nt=ge("server")||nt,it=ge("assetHost")||it,rt=ge("assetPath")||rt,ot=ge("designerEnv")||ot;var e=lt()?tt+"_ext":tt;at=st+"_"+e};function lt(){return(ge("installType")||fe().installType)===Se}function pt(){return-1!==tt.indexOf("prod")}function ht(e,t){return!/prod/.test(e)||U(t)}var ft=/^\s+|\s+$/g,gt=String.prototype.trim;function mt(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var gt=gt||function(){return this.replace(ft,"")},vt={exports:{}},yt=(!function(){var q=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===q?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,P,n=this.input;switch(this.d){case 0:for(t=0,P=n.length;t<P;){var G,D,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===P,o=q,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),G=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&G,a[s++]=G>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,D=i.length;o<D;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,B=c.length;l<B;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,W,b,I,w,U,C=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),S=ne;for(C.b(1,1,Q),C.b(S,2,Q),p=re(this,n),S=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var A,T,_,E,x,z=h,Z=f,R=new(ee?Uint32Array:Array)(z+Z),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=A=0;N<z;N++)R[A++]=m[N];for(N=0;N<Z;N++)R[A++]=v[N];if(!ee)for(N=0,_=O.length;N<_;++N)O[N]=0;for(N=E=0,_=R.length;N<_;N+=A){for(A=1;N+A<_&&R[N+A]===R[N];++A);if(T=A,0===R[N])if(T<3)for(;0<T--;)O[k[E++]=0]++;else for(;0<T;)(x=T-3<(x=T<138?T:138)&&x<T?T-3:x)<=10?(k[E++]=17,k[E++]=x-3,O[17]++):(k[E++]=18,k[E++]=x-11,O[18]++),T-=x;else if(k[E++]=R[N],O[R[N]]++,--T<3)for(;0<T--;)k[E++]=R[N],O[R[N]]++;else for(;0<T;)T-3<(x=T<6?T:6)&&x<T&&(x=T-3),k[E++]=16,k[E++]=x-3,O[16]++,T-=x}for(e=ee?k.subarray(0,E):k.slice(0,E),y=oe(O,7),w=0;w<19;w++)j[w]=y[$[w]];for(g=19;4<g&&0===j[g-1];g--);for(W=ae(y),C.b(h-257,5,Q),C.b(f-1,5,Q),C.b(g-4,4,Q),w=0;w<g;w++)C.b(j[w],3,Q);for(w=0,U=e.length;w<U;w++)if(b=e[w],C.b(W[b],y[b],Q),16<=b){switch(w++,b){case 16:I=2;break;case 17:I=3;break;case 18:I=7;break;default:throw"invalid code: "+b}C.b(e[w],I,Q)}for(var M,V,S=[S,m],L=[L,v],Y=S[0],H=S[1],K=L[0],X=L[1],F=0,J=p.length;F<J;++F)if(M=p[F],C.b(Y[M],H[M],Q),256<M)C.b(p[++F],p[++F],Q),V=p[++F],C.b(K[V],X[V],Q),C.b(p[++F],p[++F],Q);else if(256===M)break;this.a=C.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),I=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=I[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===q&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=w.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,w=l,C=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case w.NONE:t=0;break;case w.h:t=1;break;case w.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:w.NONE,FIXED:w.h,DYNAMIC:w.g});if(Object.keys)g=Object.keys(C);else for(m in g=[],v=0,C)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),C[m])}.call(vt.exports),vt.exports),bt=e(yt),It={Deflate:bt.Zlib.Deflate},wt={base64Url:"base64url",binary:"binary"};function Ct(e,t){t=t||wt.base64Url;e=mt("string"==typeof e?e:JSON.stringify(e)),e=new It.Deflate(e).compress();return t===wt.base64Url?u.uint8ToBase64(e):e}var St={exports:{}},At=(!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(St.exports),St.exports),Tt=e(At),_t={CRC32:Tt.Zlib.CRC32},Et=function(e,n){var i;return 200<=(n=n||0)?e:K.isArray(e)?K.map(e,function(e){return Et(e,n+1)}):!K.isObject(e)||K.isDate(e)||K.isRegExp(e)||K.isElement(e)?K.isString(e)?K.escape(e):e:(i={},K.each(e,function(e,t){i[t]=Et(e,n+1)}),i)},xt=function(e){e=mt(e);return u.uint8ToBase64(e)},Rt=function(e){if(void 0!==e)return e=mt(e=K.isString(e)?e:JSON.stringify(e)),_t.CRC32.calc(e,0,e.length)};function kt(e){return e[Math.floor(Math.random()*e.length)]}function Ot(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=kt(i);return n}var Nt=function(e,t,n){return!(!S(e)||!S(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function Mt(){return"undefined"!=typeof $A&&K.isFunction($A.get)&&K.isString($A.get("$Browser.formFactor"))}function Lt(e,t){void 0===t&&(t=window);var n="__symbol__";if("undefined"!=typeof Zone&&K.isFunction(Zone[n])){n=t[Zone[n](e)];if(K.isFunction(n))return n}return t[e]}function Ft(e){return K.isFunction(e.isFinite)?e.isFinite:e.Number&&K.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)}}var Pt=Ft(window);function Gt(e){return"number"==typeof e&&Pt(e)&&Math.floor(e)===e}function Wt(e,t,n,i){(t=t||{}).maxRetries=Gt(t.maxRetries)?t.maxRetries:10,t.delay=Gt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Dt(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,Wt(e,t,o,a)},t.delay):(a||function(){})()}var Ut=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function $t(e){return K.isObject(e)&&K.isFunction(e.then)}var jt=K.isFunction(window.decodeURIComponent)?window.decodeURIComponent:K.identity,zt=K.isFunction(window.encodeURIComponent)?window.encodeURIComponent:K.identity,Zt=window.Promise,Zt=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=Dt;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a}),Vt=Zt,Yt=function(e,t){return(Yt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Yt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Kt=function(){return(Kt=Object.assign||function Kt(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Xt(e,t,s,d){return new(s=s||Vt)(function(n,i){function r(e){try{a(d.next(e))}catch(t){i(t)}}function o(e){try{a(d["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((d=d.apply(e,t||[])).next())})}function Jt(n,i){var r,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},d=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return d.next=e(0),d["throw"]=e(1),d["return"]=e(2),"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function e(t){return function(e){return u([t,e])}}function u(e){if(r)throw new TypeError("Generator is already executing.");for(;s=d&&e[d=0]?0:s;)try{if(r=1,o&&(a=2&e[0]?o["return"]:e[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,e[1])).done)return a;switch(o=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,o=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))s.label=e[1];else if(6===e[0]&&s.label<a[1])s.label=a[1],a=e;else{if(!(a&&s.label<a[2])){a[2]&&s.ops.pop(),s.trys.pop();continue}s.label=a[2],s.ops.push(e)}}e=i.call(n,s)}catch(t){e=[6,t],o=0}finally{r=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}function qt(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Qt=function(){function e(){this.listeners={}}return e.prototype.addEventListener=function(e,t){var n=this.listeners[e];n||(this.listeners[e]=n=[]),K.findIndex(n,function(e){return t===e})<0&&n.push(t)},e.prototype.removeEventListener=function(e,t){var n,i=this.listeners[e];i&&0<=(n=K.findIndex(i,function(e){return t===e}))&&(i.splice(n,1),i.length||delete this.listeners[e])},e.prototype.dispatchEvent=function(t){var e=this.listeners[t.type];e&&K.each(e,function(e){e(t)})},e}(),en=function(){function e(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}return e.prototype.toString=function(){var e=this.message;return this.error&&e!==this.error.message&&(e="".concat(e,":").concat(this.error.message)),this.attributes&&(e+=": ".concat(K.map(this.attributes,function(e,t){return"".concat(t,"=").concat(e)}))),e},e.prototype.hashCode=function(){return this.toString()},e}(),tn,nn=(!function(e){e.Debug="debug",e.Info="info",e.Warn="warn",e.Error="error",e.Critical="critical"}(tn=tn||{}),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ht(t,e),t.prototype.write=function(e,t,n){this.dispatchEvent(new en(t,e,n))},t.prototype.writeError=function(e,t,n){K.isString(e)?r={message:i=e}:i=(r=e).message,n&&n.error&&(r=n.error,delete n.error);var i,r,e=new en(t,i,n);e.error=r,this.dispatchEvent(e)},t.prototype.debug=function(e,t){this.write(e,tn.Debug,t)},t.prototype.info=function(e,t){this.write(e,tn.Info,t)},t.prototype.warn=function(e,t){this.writeError(e,tn.Warn,t)},t.prototype.error=function(e,t){this.writeError(e,tn.Error,t)},t.prototype.critical=function(e,t){this.writeError(e,tn.Critical,t)},t}(Qt)),X=new nn;function rn(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var on=function(){var e=m.get("storage.allowKeys")||"*";return K.isArray(e)?K.indexBy(e):e};function an(e){var t=on();return"*"===t||t[e]}function sn(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function dn(n){K.forEach(K.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function un(e){return{getItem:sn(e,e.getItem,null),setItem:sn(e,e.setItem),removeItem:sn(e,e.removeItem),clearPendo:K.partial(dn,e)}}function cn(e){var t=K.noop,t={getItem:function(){return null},setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?un(n):t}catch(i){return t}}var ln=cn(function(){return window.localStorage}),pn=cn(function(){return window.sessionStorage}),hn={},fn,gn=!0,mn=function(){return m.get("localStorageOnly")},vn=function(){return!!m.get("disableCookies")};function yn(e){gn=e}var bn=function(e){var t=vn()||mn()?hn[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?jt(e[2]):null},In=function(e,t,n,i){var r,o;!gn||m.get("preventCookieRefresh")&&bn(e)===t||(o=xn(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+zt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",fn&&(o+=";domain="+fn),vn()||mn()?hn[e]=o:document.cookie=o)};function wn(e,t){var n,i;e?K.isString(e)&&(t=t.replace(/:\d+$/,""),e=e.replace(/^\./,""),n=new RegExp("\\."+rn(e)+"$"),i=new RegExp("^"+rn(e)+"$"),n.test(t)||i.test(t))&&(fn="."+e):fn=e}function Cn(){return fn}function Sn(e){Cn()?In(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var An=function(e,t){return"_pendo_".concat(e,".").concat(t||C.apiKey)},Tn=function(e,t){return bn(An(e,t))},_n=864e5,En=100*_n,xn=function(e){void 0===e&&(e=En);var t=m.get("maxCookieTTLDays"),t=t<Infinity?t*_n:Infinity;return Math.min(e,t)},Rn=function(e,t,n,i,r){n=n||En,In(An(e,r),t,n,i)},kn=function(){function e(){this.keys={}}return e.prototype.addLocal=function(e){this._add(e,"local")},e.prototype.addSession=function(e){this._add(e,"session")},e.prototype.hasLocal=function(e){return this._has(e,"local")},e.prototype.hasSession=function(e){return this._has(e,"session")},e.prototype._add=function(e,t){this.keys[e]||(this.keys[e]=t)},e.prototype._has=function(e,t){return this.keys[e]===t},e}(),h=function(){var i=new kn;function e(t,n){return function(e){if(an(e))return i[n](e)||X.warn("storage key ".concat(e," is not registered")),t.apply(this,arguments);X.debug("writing storage key ".concat(e," is not allowed"))}}function d(){return!vn()&&!Cn()&&u("localStorage")}var u=K.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function c(e){e.cache&&(e.cache={})}function r(e,t,n){t=t?e:An(e,n);if(d())return localStorage.removeItem(t);Sn(t)}var t=K.extend({},pn),n=(t.setItem=e(t.setItem,"hasSession"),K.extend({},ln));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){var i;return d()?(i=t?e:An(e,n),null===(i=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}(localStorage.getItem(i)))&&r(e,t,n),i):t?bn(e):Tn(e,n)},write:e(function(e,t,n,i,r,o){if(c(u),d())try{var a=i?e:An(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+xn(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void c(u)}catch(s){}if(!i)return Rn(e,t,n,r,o);In(e,t,n,r)},"hasLocal"),clear:r,registry:i,getLocal:function(){return n},getSession:function(){return t}}}(),On=function(){var e={},c=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},l=function(n,i){var r=e.defer(),o=function(n,i){Dt(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===p?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},p=1;return e.defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,K.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(p,e)},a=function(e){t(2,e)},s=function(e,t){e=l(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=c();try{e(t(u),t(a))}catch(n){t(a)(n)}},u=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(n){return void a(n)}t?d(t):o(e)},e=c();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},e}(),J;function Nn(e){var n,i=J.defer(),r=K.isArray(e)?[]:{},o=K.size(e);return o?(n=!1,K.each(e,function(e,t){J.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):J.resolve(e)}!lt()&&ht(tt,he())&&l.isMinimumIEVersion(11)?J={all:function(e){return K.isArray(e)?Vt.all.apply(Vt,arguments):Nn(e)},reject:function(){return Vt.reject.apply(Vt,arguments)},resolve:function(){return Vt.resolve.apply(Vt,arguments)},defer:function(){var n={};return n.promise=new Vt(function(e,t){n.resolve=e,n.reject=t}),n}}:(J=On,J.all=Nn,J.reject=function(e){var t=J.defer();return t.reject(e),t.promise},J.resolve=function(e){var t=J.defer();return t.resolve(e),t.promise});var Mn=h.getSession(),Ln="pendo_frameId",Fn="pendo_tabId",Pn="pendo_parentTabId";function Gn(n){var e=K.partial,t=K.extend,i=K.omit,r={data:{},getItem:function(e){return r.data[e]},setItem:function(e,t){r.data[e]=t},removeItem:function(e){r.data[e]=null,delete r.data[e]}};var o=e(u,Fn,c),a=e(u,Ln,r);function s(e,t){return(K.isFunction(t)?t():t).getItem(e)}function d(e,t,n){(K.isFunction(n)?n():n).setItem(e,t)}function u(e,t){var n=s(e,t);return n||d(e,n=Ot(16),t),n}function c(){return n=r,i=Mn,{getItem:function(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem:function(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem:function(e){n.removeItem(e),i.removeItem(e)}};var n,i}return{addTracerIds:function(e){return i(t(e,{parentTabId:s(Pn,c),tabId:o(),frameId:a()}),function(e){return e===undefined})},setParentTabId:function(e){d(Pn,e,c)},newTabId:function(){var e=Ot(16);return d(Fn,e,c),e},getTabId:o,getFrameId:a,tabIdChanged:function(t){var e;if(l.addEventListener)return n.addEventListener("storage",e=function(e){e.key===Fn&&(r.removeItem(Fn),t())}),function(){n.removeEventListener("storage",e)}}}}var Dn=Gn(window);function Bn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(K.isString(e)||K.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),K.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return K.isFunction(t)?(n=K.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=K.toArray(arguments).slice(1);return K.map(t,function(e){return e.apply(C,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return K.map(e,function(e){if(!t.cancel)return e.apply(C,[t])})},this.triggerAsync=function(){var e=K.map(this.trigger.apply(this,arguments),function(e){return!1===e?J.reject():e});return J.all(e)},this}Bn.clear=function(t){t&&K.each(K.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};var y=function(){function e(e,t){this.name=e,this.groups=t||[]}var t="debug",n="lifecycle",i="runtime",r="frames",o={DEBUG:t,FRAMES:r,LIFECYCLE:n,RUNTIME:i},a=[new e("ready",[t,n]),new e("deliverablesLoaded",[t,n]),new e("guidesFailed",[t,n]),new e("guidesLoaded",[t,n]),new e("guideListChanged",[t,n]),new e("guideSeen",[t,n]),new e("guideNotSeen",[t,n]),new e("guideAdvanced",[t,n]),new e("guideDismissed",[t,n]),new e("guideSnoozed",[t,n]),new e("beforeGuideShow",[n]),new e("beforeMount",[i]),new e("beforeAdvance",[i]),new e("beforePrevious",[i]),new e("beforeSnooze",[i]),new e("beforeDismiss",[i]),new e("beforeUnmount",[i]),new e("unmounted",[i]),new e("beforeUpdate",[i]),new e("updated",[i]),new e("guideSnoozeCancelled",[t,n]),new e("guideTimeout",[t,n]),new e("guideLoopStopped",[t,n]),new e("guideUpdateComplete",[n]),new e("designerLaunched",[t,n]),new e("debuggerLaunched",[t,n]),new e("stepEligibility",[t]),new e("identify",[t,n]),new e("metadata",[t,n]),new e("appUnloaded",[t,n]),new e("appHidden",[t,n]),new e("startPreview",[t]),new e("resourceFetchFail",[t]),new e("contentVerificationFail",[t]),new e("contentValidationFail",[t]),new e("renderFail",[t]),new e("appUsage",[n]),new e("eventCaptured",[t]),new e("error",[t,n]),new e("onClickCaptured",[t]),new e("urlChanged",[n]),new e("leaderChanged",[n,r]),new e("transmit:locked",[n]),new e("transmit:unlocked",[n]),new e("sessionChanged",[n]),new e("childFrameJoined",[r])],s=Bn.call({});function d(e,t){e={type:e,ts:v()};return S(t)&&K.isObject(t)&&(e.data=t),e}var u={debug:function(){return Dn.addTracerIds(d.apply(null,arguments))},lifecycle:d,runtime:d,frames:d};var c=s.trigger;function l(t){var e=K.findWhere(a,{name:t}),n=K.toArray(arguments).slice(1),i={};return K.each(e.groups,function(e){i.cancel||(i=u[e](t,n),c.apply(s,[e].concat(i)))}),i.cancel||(i=d(t,n),c.apply(s,[t].concat(i))),i}return s.trigger=l,K.each(K.values(o),function(e){s[e]={on:K.partial(s.on,e),one:K.partial(s.one,e),off:K.partial(s.off,e)}}),K.each(a,function(e){e=e.name,s[e]={on:K.partial(s.on,e),one:K.partial(s.one,e),off:K.partial(s.off,e),trigger:K.partial(l,e)}}),s}();function Wn(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),K.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),K.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:K.partial(t,i),subscribeAction:K.partial(t,r),registerModule:function h(n,e){K.isString(n)&&(n=[n]);var t=u(s.state,e,n);K.extend(s.getters,p(e,t,s,n));K.extend(o,c(e,t,n));K.extend(a,l(e,t,s,n));K.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return K.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):K.noop;var n,i}function d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return K.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),K.extend(i,we(t.state||{}))}function c(e,n,i){var r={};return K.each(e.mutations,function(e,t){r[d(i,t)]=K.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:d(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:d(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=d(t);i&&(i+="/");return K.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return K.each(e.actions,function(e,t){n[d(r,t)]=K.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return K.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}function Un(){return Wn()}var q=Un(),$n=(q.subscribe(function(e,t){}),"_PENDO_T_"),jn=11,zn="visitorId",Zn="oldVisitorId",Vn="accountId",Yn=function(e){return(e=void 0===e?"":e)+Ot(jn)};function Hn(e){return e&&"string"==typeof e&&0===gt.call(e).length}var Kn=function(e){return S(e)&&""!==e&&e!==ti&&"boolean"!=typeof e&&"object"!=typeof e&&!Hn(e)},Xn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,$n.length)===$n},Jn=function(){return!m.get("disablePersistence")},qn=function(e){e=e||[zn,Vn,Zn];var t=m.get("identityStorageSuffix")||C.apiKey;K.each(e,function(e){Sn(An(e,t)),h.clear(e,!1,t)})},Qn="VISITOR-UNIQUE-ID",ei=function(e){return Qn===e},ti="::",ni=function(e){return new RegExp(ti).test(e)};function ii(e){return e.old_visitor_id!==e.visitor_id}var ri=function(e){return ii(e)||e.old_account_id!==e.account_id},oi=function(e,t){var n={old_visitor_id:Q(),old_account_id:fi()};Kn(e)?(pi(e),gi(t),n.visitor_id=Q({generate:!0}),n.account_id=fi(),ri(n)&&(ii(n)&&hi(n.old_visitor_id),y.identify.trigger(n))):X.info("Invalid visitor id "+e)},ai;function si(){return Yn($n)}function di(e){C.visitorId!==e&&(Jn()&&mi(zn,e),C.visitorId=e)}function ui(){if(Kn(C.visitorId))return C.visitorId;var e=m.get("forceAnonymous");if(Jn()){var t=vi(zn);if(Kn(t)&&(!e||Xn(t)))return t}return undefined}function Q(e){void 0===e&&(e={});var t=ui();return di(t=!t&&e.generate?si():t),t}function ci(){return ai=ai===undefined&&Jn()?vi(Zn):ai}function li(){return Q()||si()}var pi=function(e){Kn(e)?di(""+e):X.info("Invalid visitor id "+e)};function hi(e){e&&mi(Zn,ai=e)}var fi=function(){var e=m.get("forceAnonymous");return Kn(C.accountId)||!Jn()||e||(e=vi(Vn),C.accountId=e),C.accountId},gi=function(e){K.isUndefined(e)?X.info("No account id provided"):Kn(e)?(C.accountId=""+e,Jn()&&mi(Vn,C.accountId)):(yi(),X.info("Invalid account id: "+e+". Account cleared"))};function mi(e,t){var n=m.get("identityStorageLifetime")||En,i=m.get("identityStorageSuffix")||C.apiKey;h.write(e,t,n,!1,!0,i)}function vi(e){var t=m.get("identityStorageSuffix"),n=t||C.apiKey,n=h.read(e,!1,n)||h.read(e,!1,C.apiKey);return t&&h.clear(e,!1,C.apiKey),n}function yi(){delete C.accountId;var e=m.getLocalConfig();delete e.account,m.setLocalConfig(e),q.commit("metadata/clearAccount"),Jn()&&h.clear(Vn)}function bi(){var e={old_visitor_id:Q({generate:!1}),old_account_id:fi(),wasCleared:!0};qn(),delete C.visitorId,delete C.accountId,Q({generate:!0}),K.extend(e,{visitor_id:Q(),account_id:fi()}),y.identify.trigger(e)}function Ii(e){e=e.data[0];return K.get(e,"wasCleared")}var wi=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||X.critical(e)}}};function Ci(n){return function Si(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var Si=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(Ci);function Ai(e){return e&&K.isFunction(e.composedPath)}function Ti(e){if(Ai(e))try{return e.composedPath()}catch(t){return e.path}return null}function _i(e){return e.shadowRoot}function Ei(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function xi(e,t){return Ei(e,t)?e.host:e.parentNode}var c=function(){function d(e){return!!e&&-1<e.indexOf(c.PSEUDO_ELEMENT)}function u(e){return K.reduce(e,function(e,t){return t.value===c.PSEUDO_SAFE?e+c.PSEUDO_ELEMENT:e+t.value},"")}return{PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Ti,getShadowRoot:_i,isElementShadowRoot:Ei,getParent:xi,isShadowSelector:d,wrapSizzle:function(i){i.intercept(function(a,e,n,i,r){var t,o;return d(e)?K.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(c.PSEUDO_REGEX,c.PSEUDO_SAFE),t=K.map(o.tokenize(t),u),K.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(c.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return d(e)?(o=s((r={baseCss:(o=(o=e).split(c.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(c.PSEUDO_ELEMENT)}).baseCss,t),K.reduce(o,function(e,t){return c.getShadowRoot(t)?e.concat(s(r.shadowCss,c.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!c.isElementShadowRoot(t)&&(d(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}}}(),Ri={exports:{}},ki=(!function(P){var e,h,I,o,G,f,D,B,w,d,u,C,S,n,A,g,i,r,m,a=window,T="sizzle"+ +new Date,c=a.document,_=0,W=0,U=O(),$=O(),j=O(),v=O(),z=function(e,t){return e===t&&(u=!0),0},Z={}.hasOwnProperty,t=[],V=t.pop,Y=t.push,E=t.push,H=t.slice,x=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",s="[\\x20\\t\\r\\n\\f]",l="(?:\\\\[\\da-fA-F]{1,6}"+s+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",X="\\["+s+"*("+l+")(?:"+s+"*([*^$|!~]?=)"+s+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+l+"))|)"+s+"*\\]",J=":("+l+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+X+")*)|.*)\\)|)",q=new RegExp(s+"+","g"),R=new RegExp("^"+s+"+|((?:^|[^\\\\])(?:\\\\.)*)"+s+"+$","g"),Q=new RegExp("^"+s+"*,"+s+"*"),ee=new RegExp("^"+s+"*([>+~]|"+s+")"+s+"*"),te=new RegExp(s+"|>"),ne=new RegExp(J),ie=new RegExp("^"+l+"$"),p={ID:new RegExp("^#("+l+")"),CLASS:new RegExp("^\\.("+l+")"),TAG:new RegExp("^("+l+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+J),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+s+"*(even|odd|(([+-]|)(\\d*)n|)"+s+"*(?:([+-]|)"+s+"*(\\d+)|))"+s+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+s+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+s+"*((?:-\\d)?\\d*)"+s+"*\\)|)(?=[^-]|$)","i")},re=/HTML$/i,oe=/^(?:input|select|textarea|button)$/i,ae=/^h\d$/i,se=/^[^{]+\{\s*\[native \w/,de=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ue=/[+~]/,y=new RegExp("\\\\[\\da-fA-F]{1,6}"+s+"?|\\\\([^\\r\\n\\f])","g"),b=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},ce=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,le=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},pe=function(){C()},he=Ie(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{E.apply(t=H.call(c.childNodes),c.childNodes),t[c.childNodes.length].nodeType}catch(F){E={apply:t.length?function(e,t){Y.apply(e,H.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function k(e,t,n,i){var r,o,a,s,d,u,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(C(t),t=t||S,A)){if(11!==l&&(s=de.exec(e)))if(r=s[1]){if(9===l){if(!(u=t.getElementById(r)))return n;if(u.id===r)return n.push(u),n}else if(c&&(u=c.getElementById(r))&&m(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return E.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return E.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&!v[e+" "]&&(!g||!g.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(te.test(e)||ee.test(e))){for((c=ue.test(e)&&ve(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(ce,le):t.setAttribute("id",a=T)),o=(d=f(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+be(d[o]);u=d.join(",")}try{return E.apply(n,c.querySelectorAll(u)),n}catch(p){v(e,!0)}finally{a===T&&t.removeAttribute("id")}}}return B(e.replace(R,"$1"),t,n,i)}function O(){var n=[];function i(e,t){return n.push(e+" ")>I.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function N(e){return e[T]=!0,e}function M(e){var t=S.createElement("fieldset");try{return!!e(t)}catch(F){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)I.attrHandle[n[i]]=t}function ge(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&he(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function L(a){return N(function(o){return o=+o,N(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in h=k.support={},G=k.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!re.test(t||e&&e.nodeName||"HTML")},C=k.setDocument=function(e){var e=e?e.ownerDocument||e:c;return e!=S&&9===e.nodeType&&e.documentElement&&(n=(S=e).documentElement,A=!G(S),c!=S&&(e=S.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",pe,!1):e.attachEvent&&e.attachEvent("onunload",pe)),h.scope=M(function(e){return n.appendChild(e).appendChild(S.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=M(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=M(function(e){return e.appendChild(S.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=!!S.getElementsByClassName,h.getById=M(function(e){return n.appendChild(e).id=T,!S.getElementsByName||!S.getElementsByName(T).length}),h.getById?(I.filter.ID=function(e){var t=e.replace(y,b);return function(e){return e.getAttribute("id")===t}},I.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&A)return(e=t.getElementById(e))?[e]:[]}):(I.filter.ID=function(e){var t=e.replace(y,b);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},I.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&A){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),I.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},I.find.CLASS=h.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&A?t.getElementsByClassName(e):h.qsa&&A?t.querySelectorAll("."+e):void 0},i=[],g=[],(h.qsa=!!S.querySelectorAll)&&(M(function(e){var t;n.appendChild(e).innerHTML=Te().createHTML("<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+s+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+s+"*(?:value|"+K+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),(t=S.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+s+"*name"+s+"*="+s+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),M(function(e){e.innerHTML=Te().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=S.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+s+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(h.matchesSelector=se.test(r=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&M(function(e){h.disconnectedMatch=r.call(e,"*"),r.call(e,"[s!='']:x"),i.push("!=",J)}),g=g.length&&new RegExp(g.join("|")),i=i.length&&new RegExp(i.join("|")),e=!!n.compareDocumentPosition,m=e||n.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},z=e?function(e,t){var n;return e===t?(u=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==S||e.ownerDocument==c&&m(c,e)?-1:t==S||t.ownerDocument==c&&m(c,t)?1:d?x(d,e)-x(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==S?-1:t==S?1:r?-1:o?1:d?x(d,e)-x(d,t):0;if(r===o)return ge(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ge(a[i],s[i]):a[i]==c?-1:s[i]==c?1:0}),S},k.matches=function(e,t){return k(e,null,null,t)},k.matchesSelector=function(e,t){if(C(e),h.matchesSelector&&A&&!v[t+" "]&&(!i||!i.test(t))&&(!g||!g.test(t)))try{var n=r.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(F){v(t,!0)}return 0<k(t,S,null,[e]).length},k.contains=function(e,t){return(e.ownerDocument||e)!=S&&C(e),m(e,t)},k.attr=function(e,t){(e.ownerDocument||e)!=S&&C(e);var n=I.attrHandle[t.toLowerCase()],n=n&&Z.call(I.attrHandle,t.toLowerCase())?n(e,t,!A):undefined;return n!==undefined?n:h.attributes||!A?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},k.escape=function(e){return(e+"").replace(ce,le)},k.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},k.uniqueSort=function(e){var t,n=[],i=0,r=0;if(u=!h.detectDuplicates,d=!h.sortStable&&e.slice(0),e.sort(z),u){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return d=null,e},o=k.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(I=k.selectors={cacheLength:50,createPseudo:N,match:p,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(y,b),e[3]=(e[3]||e[4]||e[5]||"").replace(y,b),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||k.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&k.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return p.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ne.test(n)&&(t=(t=f(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(y,b).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+s+")"+e+"("+s+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=k.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(q," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,d,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;d=u="only"===f&&!d&&"nextSibling"}return!0}if(d=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===_&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(h=s=0,d.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[_,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===_&&i[1]:h))for(;(a=++s&&a&&a[u]||(h=s=0,d.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[_,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=I.pseudos[e]||I.setFilters[e.toLowerCase()]||k.error("unsupported pseudo: "+e);return a[T]?a(o):1<a.length?(t=[e,e,"",o],I.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=x(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:N(function(e){var i=[],r=[],s=D(e.replace(R,"$1"));return s[T]?N(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:N(function(t){return function(e){return 0<k(t,e).length}}),contains:N(function(t){return t=t.replace(y,b),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:N(function(n){return ie.test(n||"")||k.error("unsupported lang: "+n),n=n.replace(y,b).toLowerCase(),function(e){var t;do{if(t=A?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=a.location&&a.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===S.activeElement&&(!S.hasFocus||S.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!I.pseudos.empty(e)},header:function(e){return ae.test(e.nodeName)},input:function(e){return oe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:L(function(){return[0]}),last:L(function(e,t){return[t-1]}),eq:L(function(e,t,n){return[n<0?n+t:n]}),even:L(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:L(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:L(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:L(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=I.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})I.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})I.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function ye(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function Ie(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=W++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var i,r,o=[_,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[T]||(e[T]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===_&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function we(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function Ce(e,t,n,i,r){for(var o,a=[],s=0,d=e.length,u=null!=t;s<d;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),u&&t.push(s));return a}function Se(h,f,g,m,v,e){return m&&!m[T]&&(m=Se(m)),v&&!v[T]&&(v=Se(v,e)),N(function(e,t,n,i){var r,o,a,s=[],d=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)k(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:Ce(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=Ce(p,d),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[d[o]]=!(l[d[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?x(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=Ce(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):E.apply(t,p)})}ye.prototype=I.filters=I.pseudos,I.setFilters=new ye,f=k.tokenize=function(e,t){var n,i,r,o,a,s,d,u=$[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=I.preFilter;a;){for(o in n&&!(i=Q.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=ee.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(R," ")}),a=a.slice(n.length)),I.filter)I.filter.hasOwnProperty(o)&&(i=p[o].exec(a))&&(!d[o]||(i=d[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?k.error(e):$(e,s).slice(0)},D=k.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=j[e+" "];if(!a){for(n=(t=t||f(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=I.relative[e[0].type],a=o||I.relative[" "],s=o?1:0,d=Ie(function(e){return e===i},a,!0),u=Ie(function(e){return-1<x(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==w)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=I.relative[e[s].type])c=[Ie(we(c),t)];else{if((t=I.filter[e[s].type].apply(null,e[s].matches))[T]){for(n=++s;n<r&&!I.relative[e[n].type];n++);return Se(1<s&&we(c),1<s&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(R,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&be(e))}c.push(t)}return we(c)}(t[n]))[T]?r:o).push(a);(a=j(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,d=0,u="0",c=e&&[],l=[],p=w,h=e||b&&I.find.TAG("*",r),f=_+=null==p?1:Math.random()||.1,g=h.length;for(r&&(w=t==S||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==S||(C(o),n=!A);s=m[a++];)if(s(o,t||S,n)){i.push(o);break}r&&(_=f)}y&&((o=!s&&o)&&d--,e)&&c.push(o)}if(d+=u,y&&u!==d){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<d)for(;u--;)c[u]||l[u]||(l[u]=V.call(i));l=Ce(l)}E.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&k.uniqueSort(i)}return r&&(_=f,w=p),c},y?N(i):i))).selector=e}return a},B=k.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&f(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&A&&I.relative[o[1].type]){if(!(t=(I.find.ID(a.matches[0].replace(y,b),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=p.needsContext.test(e)?0:o.length;r--&&(a=o[r],!I.relative[s=a.type]);)if((d=I.find[s])&&(i=d(a.matches[0].replace(y,b),ue.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&be(o))break;return E.apply(n,i),n}}return(u||D(e,c))(i,t,!A,n,!t||ue.test(e)&&ve(t.parentNode)||t),n},h.sortStable=T.split("").sort(z).join("")===T,h.detectDuplicates=!!u,C(),h.sortDetached=M(function(e){return 1&e.compareDocumentPosition(S.createElement("fieldset"))}),M(function(e){return e.innerHTML=Te().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&M(function(e){return e.innerHTML=Te().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),M(function(e){return null==e.getAttribute("disabled")})||fe(K,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Ae=a.Sizzle;k.noConflict=function(){return a.Sizzle===k&&(a.Sizzle=Ae),k},P.exports?P.exports=k:a.Sizzle=k}(Ri),Ri.exports),Oi=e(ki);function Ni(e){var n=K.extend(function(){return n.Sizzle.apply(this,arguments)},e);return n.reset=function(){n.Sizzle=e,n.matchesSelector=e.matchesSelector,n.matches=e.matches},n.intercept=function(e,t){n[t=void 0===t?"Sizzle":t]=K.wrap(n[t],e)},n.reset(),n}var s=Ni(Oi);function ee(e,t){var n,i=this;if(e&&e instanceof ee)return e;if(!(i instanceof ee))return new ee(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=K.toArray(r.childNodes)}else if(K.isString(e)){t instanceof ee&&(t=0<t.length?t[0]:null);try{n=s(e,t)}catch(o){n=[]}}else n=[e];else n=[];return K.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,i}function Mi(){this.ownerKey="_pendo_"+Ot(8)}K.extend(Mi.prototype,{cache:function(e){var t;return K.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set:function(e,t,n){e=this.cache(e);return e[t]=n,e},get:function(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove:function(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!K.isEmpty(n)||(e[this.ownerKey]=undefined)}});var Li=new Mi,Fi=1,Pi=2,Gi=3;function Di(e){return K.isNumber(e.eventPhase)&&e.eventPhase===Fi}function Bi(e){return K.isNumber(e.eventPhase)&&e.eventPhase===Pi}function te(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?Lt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),function(){Wi(e,t,n,i)}):K.noop}function Wi(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?Lt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Ui=function(e){var t=c.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},$i={add:function(t,e){var n=Li.get(t),i=(n.handle||(n.handle=function(e){$i.dispatch(t,e)}),e.id=K.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||te(t,e.type,n.handle,e.capture),i.push(e),function(){ee.event.remove(t,e.type,e.handler,e.capture)}},dispatch:function(r,o){var e,t,a;r&&(e=(Li.get(r,"captureEvents")||{})[o.type]||[],t=(Li.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Li.get(o)).ignore&&(a.handled=a.handled||{},K.each(t.slice(),function(e){var t=!!e.capture===Di(o),n=Bi(o),t=!t&&!n;if(!(Ui(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!S(e.selector)||0<ee(Ui(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){X.error(i)}}}))},remove:function(e,t,n,i){var r=Li.get(e);if(r){if(K.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=K.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Wi(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Wi(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Wi(e,t,r.handle));K.isEmpty(r.captureEvents)&&K.isEmpty(r.bubbleEvents)&&(Li.remove(e,"captureEvents"),Li.remove(e,"bubbleEvents"),Li.remove(e,"handle"))}},trigger:function(e){var t=Li.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Ui(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=c.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Di(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)$i.dispatch(o[i],e);(e=$i.clone(e)).eventPhase=Pi}for(e.eventPhase!==Pi||t.pendoStopped||($i.dispatch(n,e),(e=$i.clone(e)).eventPhase=Gi),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)$i.dispatch(o[i],e)}}else $i.dispatch(Ui(e),e)},clone:function(e){var t=K.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Li.ownerKey]),e=c.getComposedPath(e);return e&&(t.composedPath=K.constant(e)),t},$:{on:function(e,n,i,r){return K.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){K.each(e,function(e){$i.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},p=function(){function r(){return window.XMLHttpRequest||ActiveXObject}function i(e){var t=J.defer(),n=new(r())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),K.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),function i(e){var t=e.then;var n=e["catch"];e.then=function(){return i(t.apply(this,arguments))};e["catch"]=function(){return i(n.apply(this,arguments))};e.fail=e["catch"];return e}(t.promise)}function o(e,t,n){return i({method:"POST",url:e,data:t,headers:n})}return K.extend(i,{get:function(e,t){return i({method:"GET",url:e,headers:t})},post:o,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",o(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(K.isArray(t))i=t;else{if(!K.isObject(t))return e||"";i=K.keys(t)}var i=K.map(i,function(e){return K.isArray(t)?zt(e):zt(e)+"="+zt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=K.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported:function(){return void 0!==r()}})}(),ji=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},zi=function(){return window.process.resourcesPath||""},Zi=function(){return window.process.env.PWD||""},Vi=function(){return window.process.env.HOME||""},Yi=function(){return window.process.env.npm_package_name||""},Hi=function(){return m.get("annotateUrl")||Qi()||m.get("sanitizeUrl")||m.get(cr)||m.get("xhrWhitelist")},Ki=function(){return Qi()?{href:qi(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Xi=function(){return new Si(window.location.href)},Ji=function(){var e,t,n,i;return Hi()?(e=Xi(),Qi()&&(e.href=qi(e.href)),ji()?(t=f.electronResourcesPath(),n=f.electronUserDirectory(),i=f.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(f.electronUserHomeDirectory(),"").replace("file:///","")):pr(e.href)):q.getters["location/href"]()},qi=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Qi=function(){return!0===m.get("ignoreHashRouting")},er,tr=500;function nr(){return K.isUndefined(er)&&function e(){sr(),er=Dt(e,tr)}(),function(){clearTimeout(er)}}var ir=function(e){var t;try{t=Ji()}catch(n){}return t},rr=[],or=!1,ar=null;function sr(){var t=Ki().href;ar!=t&&(ar=t,K.map(rr,function(e){e(t)}))}var dr=function(e){var n,i=[],t=(X.info("Initializing Pendo URL Watcher"),m.get("location.pushState")&&l.supportsHistoryApi());return or||(t&&(n=window.history,K.each(["pushState","replaceState"],function(e){var t=n[e];n[e]=K.wrap(n[e],function(e){var t=e.apply(n,K.toArray(arguments).slice(1));return Dt(sr,0),t}),i.push(function(){n[e]=t})}),i.push(te(window,"popstate",sr))),l.supportsHashChange()&&i.push(te(window,"hashchange",sr)),!1!==t&&l.supportsHashChange()||i.push(nr()),or=!0),rr.push(e),function(){K.each(i,function(e){e()}),rr.length=0,or=!1}},ur=function(){rr=[]},cr="queryStringWhitelist";function lr(e){var t=m.get("sanitizeUrl");return K.isFunction(t)?t(e):e}function pr(e){e=e||Ki().href;var t=m.get("annotateUrl");if(t)if(K.isFunction(t))try{var n,i,r,o=t();return o&&(K.isObject(o)||K.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&K.isArray(n)||i&&(K.isArray(i)||K.isObject(i)))&&(n&&(e=fr(e,null,n,!0)),o=i||{}),p.urlFor(e,o,r)):e}catch(a){X.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else X.error("customer-provided `annotateUrl` must be of type: function");return e}function hr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function fr(e,t,n,i){e=e||ir(),t=t||hr(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=K.isArray(n)?mr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var gr=function(e,t,n){n=n||m.get(cr);return lr(fr(e,t,n=K.isFunction(n)?n():n,!1))},mr=function(e,t,n){return n&&K.contains(t,"*")?"":(e=vr(e),e=n?K.omit(e,t):K.pick(e,t),yr(e))},vr=function(e){e=e.split("&");return K.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&jt(t[1])),e},{})},yr=function(e){return K.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},f={watch:dr,get:ir,externalizeURL:gr,startPoller:nr,getWindowLocation:Ki,clear:ur,isElectron:ji,electronUserDirectory:Zi,electronAppName:Yi,electronUserHomeDirectory:Vi,electronResourcesPath:zi},br;function Ir(){var e=m.getLocalConfig("dataHost");return e||((e=m.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:nt)}function wr(){br=Ir()}function Cr(e){e.HOST=br}function Sr(){var e=m.get("contentHost")||m.get("assetHost")||it;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function Ar(e){return"".concat(Sr(),"/").concat(rt?rt+"/":"").concat(e)}function Tr(){var e=m.get("allowPartnerAnalyticsForwarding",!1)&&m.get("adoptAnalyticsForwarding",!1);return m.get("trainingPartner",!1)||e}var _r=3,Er=1,xr=9,Rr=11,kr=4;function Or(e){return e&&e.nodeType===Er}function ne(e){if(Or(e))try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(t){}}function Nr(e,t){var n;return!(!e||!K.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&K.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),K.any(n,function(e){return e&&"none"!==e}))}function Mr(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Lr(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function Fr(e){return K.isNumber(e)?e:0}function Pr(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!Dr(e)?null:e}function Gr(e){return Nr(ne(e),je)&&isNaN(d)}function Dr(e){if(e)return(e=ne(e))&&(K.contains(["relative","absolute","fixed"],e.position)||Nr(e,je))}function Br(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=Dr(t)?t:Pr(t,n),i=t?Wr(t):{top:0,left:0},e=Wr(e),i={top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height};return t?(t!==n.document.scrollingElement&&(i.top+=Fr(t.scrollTop),i.left+=Fr(t.scrollLeft)),i.top-=Fr(t.clientTop),i.left-=Fr(t.clientLeft)):(i.top+=Mr(n),i.left+=Lr(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function Wr(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}function Ur(){var e=m.get("pendoCore");return void 0===e||e}var $r=Ur(),jr=function(e,t,n){e=br+"/data/"+e+"/"+t,t=K.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function zr(){return K.compact([C.apiKey].concat(C.additionalApiKeys))}var Zr=function(e){return e+="v"+at,Yr(jr("log.gif",C.apiKey,{msg:e,version:at}))};function Vr(e){try{var t=br+"/data/errorlog?apiKey="+C.apiKey,n={error:e,version:"v"+at,visitorId:Q()},i=Hr.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):p.postJSON(t,n);return i.then(function(){X.info("successfully wrote error")},function(e){X.info("error writing error:"+e)})}catch(r){return X.info("Failed to write error to server using POST endpoint: "+r),Zr("Failed to write error to server using POST endpoint: "+r)}}function Yr(e){var t,n;return Qr()?(t=J.defer(),te(n=new Image,"load",t.resolve),te(n,"error",t.reject),n.src=e,t.promise):J.resolve()}function Hr(e,t){t=K.extend({},{method:"GET",keepalive:!0},t=void 0===t?{}:t);return fetch(e,t)}function Kr(e,t){return navigator.sendBeacon(e,t)}Hr.supported=function(){try{return K.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(err){return!1}},Kr.supported=function(){return K.isFunction(navigator.sendBeacon)};var Xr=!1,Jr=function(){var e=Qr();return Xr=!0,e&&y["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},qr=function(){var e=!Qr();return Xr=!1,e&&y["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."},Qr=function(){return!Xr&&$r},eo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(ro(e))}catch(n){return!1}},to=function(e,t){try{var n;eo(e,t)||(n=gt.call(ro(e))+" "+t,io(e,n))}catch(i){}},no=function(e,t){try{var n,i;eo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=ro(e).replace(n," "),io(e,i))}catch(r){}},io=function(e,t){K.isString(e.className)?e.className=t:e.setAttribute("class",t)},ro=function(e){try{var t=e.className;return(K.isString(t)||!S(t)?t:e.getAttribute("class"))||""}catch(n){return""}},oo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},ao={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},so=function(e,t){t=uo(t);co(e,t)},uo=function(e){if(K.isString(e)){var t,n,i,r=e.split(";");for(e={},n=0;n<r.length;n++)i=(t=r[n]).indexOf(":"),e[t.substring(0,i)]=t.substring(i+1)}return e},co=function(a,e){K.each(e,function(e,t){if(""!==(t=gt.call(t))){var n=oo(t),i=(!K.isNumber(e)||isNaN(e)||ao[n]?K.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=gt.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=gt.call(e)}catch(o){X.info("failed to set style: "+t+" with value "+e)}}})},lo=function(){return Qe()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},po=function(e){var t=lo(),n=Mr(),i=Lr();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function ho(t){return K.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function ie(e){var t;return To(e)?((t=Wr(e)).fixed=!0,ho(t)):ho(Br(e,bo()))}var fo=function(e,t){var n;"string"==typeof e?(n=ee(e),K.map(n,function(e){no(e,t)})):no(e,t)},go=function(e,t){var n;"string"==typeof e?(n=ee(e),K.map(n,function(e){to(e,t)})):to(e,t)},mo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},vo=K.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return s(e,t)}catch(n){return Zr("error using sizzle: "+n),t.getElementsByTagName(e)}}),yo=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return X.info("error interrogating body elements: "+n),Zr("error picking best body:"+n),0}},bo=function(e){e=e||document;try{var t=vo("body",e);return t&&1<t.length?(t.sort(yo),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return Zr("Error getting body element: "+n),e.body}};function Io(e,t){if(!e)return[];var n=[];if(e.childNodes)for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];1===r.nodeType&&r!==t&&n.push(r)}return n}function wo(e){return e&&e.parentNode?Io(e.parentNode,e):[]}function Co(e){if(s.contains(document,e))return!0;for(;e&&e.parentNode||c.isElementShadowRoot(e);)e=c.getParent(e);return e===document}var re=function(e){var t=bo();if(null!==e)return e===document||e===window?((t={left:window.pageXOffset||t.scrollLeft,top:window.pageYOffset||t.scrollTop,width:window.innerWidth,height:window.innerHeight}).right=t.left+t.width,t.bottom=t.top+t.height,t):((t=ie(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},So=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Ao(e){for(var t=e&&e.parentNode;t;){if(Nr(ne(t),je))return 1;t=t.parentNode}}function To(e){for(var t,n=e;n;){if(!(t=ne(n)))return;if("fixed"===t.position)return!isNaN(d)||!Ao(n);n=n.parentNode}}var _o=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Co(e))for(i=e;i;)if(c.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=ne(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=ne(r))&&!K.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Ao(i))i=Pr(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function Eo(e,t){e=ne(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?g.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?g.BOTH:t.test(e.overflowY)?g.Y:t.test(e.overflowX)?g.X:t.test(e.overflow)?g.BOTH:g.NONE}var g={X:"x",Y:"y",BOTH:"both",NONE:"none"};function xo(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Co(e)}function Ro(e){var t=document.createElement("script"),n=document.head||document.getElementsByTagName("head")[0]||document.body;t.type="text/javascript",e.src?t.src=e.src:t.text=e.text||e.textContent||e.innerHTML||"",n.appendChild(t),n.removeChild(t)}function ko(e){var e=Wr(e),t=lo();return K.extend(t,{top:0,left:0,bottom:t.height,right:t.width}),So(t,e)}function Oo(e){var t=K.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],e.nodeName),n=!!e.tabIndex,i=!e.hidden,e=!e.disabled;return(t||n)&&i&&e}function No(e){if(e){if(K.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function Mo(e,t,n){for(var i=[],r=No(document.documentElement),o=No(_o(t)),a=0;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=No(_o(o)),a++;return function(){K.each(K.compact(i),function(e){e()}),i.length=0}}var Lo=['a[href]:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])',"iframe"].join(", ");function Fo(e,t,n){var i=re(t),t=Eo(t,n);if(t!==g.BOTH||So(e,i)){if(t===g.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===g.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function Po(e){if(e){if(xo(e))return 1;var t=re(e);if(0!==t.width&&0!==t.height){var n=ne(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=ne(i=i.parentNode)}return 1}}}}function b(e,t){if(!Po(e))return!1;if(!xo(e)){for(var n=re(e),i=_o(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!Fo(n,i,t))return!1;i=_o(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Lr(),e+=Mr()),o<=0||e<=0)return!1}}return!0}function Go(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=re(e),u=_o(e,s);if(!Po(e))return!1;for(;u;){if(t=re(u),(o=Eo(u,a))!==g.NONE&&(i=n=0,o!==g.Y&&o!==g.BOTH||(d.bottom>t.bottom&&(n+=d.bottom-t.bottom,d.top-=n,d.bottom-=n),d.top<t.top&&(n-=r=t.top-d.top,d.top+=r,d.bottom+=r)),o!==g.X&&o!==g.BOTH||(d.right>t.right&&(i+=d.right-t.right,d.left-=i,d.right-=i),d.left<t.left&&(i-=r=t.left-d.left,d.left+=r,d.right+=r))),!Fo(d,u,s))return!1;u=_o(u,s)}return!0}function Do(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=bo(),d=_o(e,a);d&&d!==s;)t=re(e),n=re(d),r=i=0,t.bottom>n.bottom&&(i+=t.bottom-n.bottom,t.top-=i,t.bottom-=i),t.top<n.top&&(i-=o=n.top-t.top,t.top+=o,t.bottom+=o),t.right>n.right&&(r+=t.right-n.right,t.left-=r,t.right-=r),t.left<n.left&&(r-=o=n.left-t.left,t.left+=o,t.right+=o),K.isFunction(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=_o(d,a)}var Bo={};function Wo(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===Ir())return!0;if(t===Sr())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.jpn|\.hsbc|\.au)?\.pendo\.io$/,/^https:\/\/((adopt\.)?us1\.)?(app|via|adopt)\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu|us1|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.hsbc|\.au)?\.pendo\.io$/],n=(pt()||(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|jp-prod|hsbc|au|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-hummus|mobile-fbi|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze|armada|voc|mcfly|calypso|dap|scrum-ops|ml|helix|uat)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/,new RegExp("^https://pendo-"+tt+"-static\\.storage\\.googleapis\\.com$")])),m.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!K.contains(m.get("allowedOriginServers",[]),t)||K.any(e,function(e){return e.test(t)})}function Uo(e){var t;if(K.isString(e))return t=(t=hr(e).substring(1))&&t.length?vr(t):{},e=K.last(K.first(e.split("?")).split("/")).split("."),{filename:K.first(e),extension:e.slice(1).join("."),query:t}}function $o(e){return K.isString?e.replace(/-/g,"+").replace(/_/g,"/"):e}function jo(e,t){var n;m.get("guideValidation")&&l.sri&&(n=Uo(t),t=K.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+$o(n.query[t]),e.setAttribute("crossorigin","anonymous"))}Bo.$={findOrCreate:function(e){return 0<this.length?this:ee(e)},find:function(e){var t=ee();return t.context=this.context,this.each(function(){ee(e,this).each(function(){t[t.length++]=this})}),t},each:function(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html:function(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text:function(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){so(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass:function(e){return e=e.split(/\s+/),this.each(function(t){K.each(e,function(e){to(t,e)})})},removeClass:function(e){return e=e.split(/\s+/),this.each(function(t){K.each(e,function(e){no(t,e)})})},hasClass:function(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){K.each(e,function(e){n=n&&eo(t,e)})}),n)},toggleClass:function(e){return e=e.split(/\s+/),this.each(function(t){K.each(e,function(e){(eo(t,e)?no:to)(t,e)})})},css:function(e){return this.each(function(){so(this,e)}),this},appendTo:function(e){return ee(e).append(this),this},append:function(e){var t=this;return ee(e).each(function(){t.length&&t[0].appendChild(this),Co(this)&&K.each(s("script",this),Ro)}),t},prependTo:function(e){return ee(e).prepend(this),this},prepend:function(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],ee(e).each(function(){n?ee(this).insertBefore(n):ee(this).appendTo(t)})),this},getParent:function(){var e=ee(this)[0];if(e&&e.parentNode)return ee(e.parentNode)},insertBefore:function(e){e=ee(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),Co(document))&&K.each(s("script",this[0]),Ro)},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(e,t){return K.isObject(e)?(this.each(function(){K.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest:function(e,t){for(var n=this[0];n&&!s.matchesSelector(n,e);)if((n=xi(n))===document||t&&s.matchesSelector(n,t))return ee();return ee(n)},eq:function(e){return ee(this[e])},height:function(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width:function(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus:function(){return this.each(function(){K.isFunction(this.focus)&&this.focus()})}},K.extend(ee,{data:Li,event:$i,removeNode:mo,getClass:ro,hasClass:eo,addClass:go,removeClass:fo,getBody:bo,getComputedStyle:ne,getClientRect:re,intersectRect:So,getScrollParent:_o,isElementVisible:b,scrollIntoView:Do,getRootNode:No}),K.extend(ee.prototype,$i.$,Bo.$);var zo=function(e){var t=0===m.get("allowedOriginServers",[]).length,n=Tr();return!(!t&&!n&&ht(tt,he()))||Wo(e)},Zo=function(e){return new Si(e).origin},Vo=function(e,t,n){void 0===n&&(n=!1);try{var i,r="text/css",o="text/javascript";if(K.isString(e)&&(e={url:e}),!zo(Zo(e.url)))throw new Error;e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];if(e.type===r){var d=document.createElement("link");d.type=r,d.rel="stylesheet",d.href=e.url,jo(d,e.url),a=d}else{if(Mt())return(i=document.createElement("script")).addEventListener("load",function(){t(),mo(i)}),i.type=o,i.src=Te(C).createScriptURL(e.url),jo(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=Te(C).createScriptURL(e.url),jo(i,e.url),a=i,t=K.wrap(t,function(e,t){ee.removeNode(i),t?n&&e(t):e.apply(this,K.toArray(arguments).slice(1))})}return s.appendChild(a),Yo(a,e.url,t),a}catch(u){return{}}},Yo=function(e,t,n){var i=!1;S(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Dt(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Dt(function(){i||Zr("Failed to load "+t+" within 10 seconds")},1e4))},Ho=function(e){var t=JSON.parse(e.data),n=e.origin;X.debug(C.app_name+": Message: "+JSON.stringify(t)+" from "+n),ga(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Ko=function(e){qo(oa)(Xo(e))},Xo=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};X.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}},Jo;function qo(t){return function(e){if(e&&Wo(e.origin))return t.apply(this,arguments)}}function Qo(e){Jo=e}var ea=function(e){fa(e.moduleURL)},ta=function(e){ba(Ho)},na={disconnect:function(e){},module:ea,debug:ta},ia=function(e,t){na[e]=t},ra=function(e){delete na[e]},oa=function(e){var t;e&&(t=e.data)&&S(na[t.type])&&na[t.type](t,e)},aa={},sa=function(e){if(aa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},da=function(e){return S(aa[e])},ua=function(e){if(aa)for(var t in aa)if(0<=t.indexOf(e))return t;return null},ca=[],la=function(){var e;ca.length<1||(e=ca.shift(),da(e))||Vo(e,function(){sa(e),la()})};function pa(e){var t={"/js/lib/ckeditor/ckeditor.js":1},n=(K.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1}),(e=e.replace(/^https:\/\//,"")).substring(0,e.indexOf("/"))),e=e.substring(e.indexOf("/"));return Wo("https://"+n)&&t[e]}function ha(e){return e.replace(/^[a-zA-Z-:]*\/\//,"https://")}var fa=function(e){pa(e=ha(e))&&(ca.push(e),1<ca.length||la())},ga=function(e,t,n){var i,r=K.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Jo||va(),n="*"),t.guid=r,e&&K.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";X.info("Failed to postMessage: "+t)}return r},ma=function(){return window!=window.top},va=function(){var e=new RegExp("^"+rn(br).replace(/^https?:/,"https?:")),t=m.get("forceParentDesigner");return!pt()&&t||e.test(location.href)?window.parent:window.top},ya=function(){var e;ma()&&(e=va(),ga(e,{type:"load",url:location.toString()},"*"))},ba=function(e){var t;return S(window.addEventListener)&&K.isFunction(window.addEventListener)&&(t=qo(e),window.addEventListener("message",t,!1)),function(){S(window.removeEventListener)&&K.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Ia=K.memoize(function(){return m.get("restrictP1Access")}),wa=[],Ca=[],Sa=12e4,Aa=16,Ta=1900,_a=65536,Ea=function(e){return!(!e||""===e)},xa=function(){return f.get()},Ra={flush:K.noop,flushBy:K.noop,flushEvents:La,flushTrackEvents:La,flushSilos:La,flushTrackEventSilos:La,flushBeacons:La,flushNow:La,flushLater:Fa,flushEvery:Pa,flushStop:Ga,beacons:[],silos:[],trackEventSilos:[],lock:Jr,unlock:Ba},ka=[];function Oa(e){ka.push(e)}function Na(e){e=ka.indexOf(e);0<=e&&ka.splice(e,1)}function Ma(e,t){var n;return t=parseInt(t,10)||0,e[t]||(n=Dt(function(){e(),e[t]()},t),e[t]=function(){window.clearTimeout(n),delete e[t]})}function La(e,t){try{K.each(ka,function(e){e.flush&&e.flush(t)})}catch(n){X.critical("unhandled error while flushing event cache",{error:n})}}function Fa(e){return Ma(K.partial(La,!0),e)}function Pa(e){var t;if(e=parseInt(e,10)||0,K.isObject(Pa.intervals)||(Pa.intervals={}),!Pa.intervals[e])return t=window.setInterval(La,e),Pa.intervals[e]=function(){clearInterval(t),delete Pa.intervals[e]}}function Ga(){var e=K.values(Pa.intervals).concat([La]);K.map(e,function(e){K.isFunction(e)&&e()})}function Da(){K.each(ka,function(e){e.clear&&e.clear()}),Ga()}function Ba(){if(!Qr())return Da(),qr()}function Wa(e){e=atob(e);return Uint8Array.from(e,function(e){return e.codePointAt(0)})}function Ua(e){return K.isString(e)&&/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e)}function $a(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode(Wa(e.split(".")[1]))):JSON.parse(atob(e.split(".")[1]))}catch(t){return null}}function ja(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(X.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(X.debug(t+"The signingKeyName is supplied but missing jwt."),!1):!!Ua(e.jwt)||(X.debug(t+"The jwt is invalid."),!1):(X.debug(t+"Missing jwt and signingKeyName."),!1)}var za=function(){var t=null;return{set:function(e){t=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==t?t:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!m.get("enableSignedMetadata")&&(n=ja(e,t),m.get("requireSignedMetadata")&&!n?(X.debug("Pendo will not "+t+"."),!1):n?$a(e.jwt):void X.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}}}(),Za=6,Va=100,Ya=function(){function e(e,t){void 0===t&&(t=Va),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}return e.prototype.isEmpty=function(){return this.queue.length<=0},e.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},e.prototype.start=function(){this.stopped=!1},e.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},e.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},e.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},e.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},e.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,Za))))},e.prototype.retryLater=function(e){var t=this;this.timer=Dt(function(){delete t.timer,t.next()},e)},e.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},e.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},e.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Vt.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Vt.all(i)},e}(),Ha="_PENDO_UNNAMED_",Ka=5;function Xa(e,t,n,i,r,o){n={type:e,browser_time:v(),visitor_id:Q({generate:!0}),account_id:fi(),url:f.externalizeURL(n),props:t||{},eventProperties:r},n=Dn.addTracerIds(n);return"track"===e&&(n.track_event_name=i||Ha),y.eventCaptured.trigger(n,o),n}function Ja(){var e=m.get("dropAnonymous"),t=Xn(Q());return $r&&(!e||!t)}function qa(e,t,n,i,r,o){Ja()&&(t=Xa(e,t,n,i,r,o),Ea(t.url))&&ts(t)&&("track"===e?Vs.push(t):Zs.push(Qa(q,t)))}function Qa(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),K.isEmpty(n)||(t.ops=n)}catch(i){}return t}var es=["load","meta","identify"];function ts(e){return!m.get("freeNPSData")||K.contains(es,e.type)}function ns(){var r=K.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}var is=0;function rs(e,t){e.sequence=is++,t(e)}function os(n,e){var i=e;return function(e,t){t(i=n(i,e))}}function as(e){return os(function(e,t){return e.push(t),e},e)}function ss(e,t){return Tr()?ds("account_id")(e,t):t(e)}function ds(s){return function(e,t){if(!e.length)return t(e);for(var n=K.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==K.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function us(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function cs(e,t,n){t=n[t-1]||K.last(n);return Math.ceil(e/t)}function ls(e,t){for(var n,i=0,r=(K.isFunction(t.overhead)?t.overhead:K.constant(0))(),o=0;o<e.length;++o){if(cs(n=us(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(cs(i+n,o+1,t.compressionRatio)+r>t.upper)return o;i+=n}if(!(0<o))for(o=i=0;o<e.length;++o){if(cs(i+(n=us(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function ps(){var e=za.get();return K.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}function hs(i){return function(e,t){for(var n=ls(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=ls(e,i)}}var fs=2e3;function gs(t){return t=K.defaults(t||{},{fields:[],siloMaxLength:_a}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],X.debug("Max length exceeded for an event"),K.each(t.fields,function(e){var t=i[e];t&&t.length>fs&&(X.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,fs),delete n.JZB)})),e(n)}}function ms(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=C.squeezeAndCompress(e.slice()),e.JZB.length<=_a)||1===e.length?t(e):(n=e.length/2,ms(e.slice(0,n),t),void ms(e.slice(n),t))}function vs(e,t){Qr()&&t(e)}function ys(){return function(e,t){1===e.length&&e.JZB.length>_a?(X.debug("Couldn't write event"),Zr("Single item is: "+e.JZB.length+". Dropping."),Vr(e.JZB)):t(e)}}function bs(e){return K.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey)}function Is(e,t){return jr(t.beacon+".gif",e,K.extend({v:at,ct:v(),jzb:t.JZB},t.params,t.auth))}function ws(e,t){return jr(t.beacon+".gif",e,K.extend({v:at,ct:v(),s:t.JZB.length},t.params))}function Cs(i){return function(e,t){e.params=K.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=za.get();K.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Ss(e,t){var n=Tr(),i=K.first(e),i=K.get(i,"account_id");n&&i&&(e.params=K.extend({},e.params,{acc:xt(i)})),t(e)}function As(e,t){var n=K.first(e),n=K.get(n,"props.source");n&&(e.params=K.extend({},e.params,{source:n})),t(e)}function Ts(e){return JSON.stringify(K.extend({events:e.JZB},e.auth))}function _s(e,t){return Yr(Is(e,t))}function Es(e){return e.status<200||300<=e.status?J.reject(new Error("received status code ".concat(e.status,": ").concat(e.statusText))):J.resolve()}function xs(e,t){return Hr(Is(e,t)).then(Es)}function Rs(e,t){return fetch(ws(e,t),{method:"POST",keepalive:!0,body:Ts(t),headers:{"Content-Type":"application/json"}}).then(Es)}function ks(e,t){var n=Ts(t);return Kr(ws(e,t),n)?J.resolve():J.reject()}function Os(e,t){return p({method:"GET",url:Is(e,t)})}function Ns(e,t){return p({method:"POST",url:ws(e,t),data:Ts(t),headers:{"Content-Type":"application/json"}})}function Ms(e,t){return p({method:"GET",url:Is(e,t),sync:!0})}function Ls(e,t){return p({method:"POST",url:ws(e,t),data:Ts(t),sync:!0,headers:{"Content-Type":"application/json"}})}function Fs(n){return function(e,t){return t.JZB?t.eventLength<=Ta&&!m.get("sendEventsWithPostOnly")?(n.preferFetch&&!t.auth&&Hr.supported()?xs:t.auth?Os:_s)(e,t):n.allowPost&&t.eventLength<=_a?(Hr.supported()?Rs:Kr.supported()?ks:Ns)(e,t):J.resolve():J.resolve()}}function Ps(n){return function(e,t){if(t.JZB){if(t.eventLength<=Ta&&!m.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Hr.supported())return xs(e,t);if(l.msie<=11)return Ms(e,t)}if(t.eventLength<=_a&&n.allowPost){if(Hr.supported())return Rs(e,t);if(Kr.supported())return ks(e,t);if(l.msie<=11)return Ls(e,t)}}return J.resolve()}}function Gs(e){return ns(vs,ss,ms,gs(e.shorten),ms,ys(),Cs(e),Ss,As)}var Ds=function(){function e(e){this.queues=e}return e.prototype.isEmpty=function(){return K.all(this.queues,function(e){return e.isEmpty()})},e.prototype.stop=function(){K.each(this.queues,function(e){return e.stop()})},e.prototype.push=function(){var t=K.toArray(arguments);K.each(this.queues,function(e){return e.push.apply(e,t)})},e.prototype.drain=function(){var t=K.toArray(arguments);return J.all(K.map(this.queues,function(e){return e.drain.apply(e,t)}))},e}();function Bs(t,r,o){r=r||Fs(t),o=o||Ps(t);var e=bs(t),e=K.map(e,function(i){var e=new Ya(function(e,t,n){return n&&(e.params=K.extend({},e.params,{rt:n})),(t?o:r)(i,e)});return e.onTimeout=function(){q.commit("monitoring/incrementCounter",t.beacon+"GifFailures")},e.retryPending=!0,e});return new Ds(e)}function Ws(i){return function(e,t){var n=m.get("excludeNonGuideAnalytics");"ptm"===i&&n||t(e)}}function Us(e,t){var n=m.get("analytics.excludeEvents");0<=K.indexOf(n,e.type)||t(e)}var $s=function(){function e(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Bs(e)}return e.prototype.pause=function(e){var t=this,n=(void 0===e&&(e=1e4),K.uniqueId()),i=this.locks,r=(i[n]=1,function(){i[n]&&(clearTimeout(o),delete i[n],t.flush())}),o=Dt(r,e);return r},e.prototype.push=function(e){var t=this;this.packageSilos(e,function(e){t.silos.push(e)})},e.prototype.clear=function(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()},e.prototype.flush=function(e){var t,e=void 0===e?{}:e,n=e.unload,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e,i=this.cache,r=this.silos;0===i.length&&0===r.length&&this.sendQueue.isEmpty()||K.isEmpty(this.locks)&&(r.push(i.slice()),i.length=0,i=r.slice(),r.length=0,t=[],K.each(i,function(e){this.processSilos(e,function(e){t.push(e)})},this),n||e?this.sendQueue.drain(t,n):(r=this.sendQueue).push.apply(r,t))},e}(),js,zs,Zs,Vs;function Ys(e){var t=Gs(e),n=ns(Ws(e.beacon),Us,rs,as(e.cache),hs({overhead:ps,lower:m.get("sendEventsWithPostOnly")?_a:Ta,upper:_a,compressionRatio:[.5*Ka,.75*Ka,Ka]}));return new $s(K.extend({processSilos:t,packageSilos:n},e))}function Hs(){return js=Ra.events=wa,zs=Ra.trackEvents=Ca,Zs=Ys({cache:js,silos:Ra.silos,apiKey:zr,beacon:"ptm",allowPost:!0}),Vs=Ys({cache:zs,silos:Ra.trackEventSilos,apiKey:zr,beacon:"ptm",allowPost:!0,params:{type:"track"}}),Oa(Zs),Oa(Vs),function(){Da(),Na(Zs),Na(Vs)}}var Ks=wi(function(e){var t,n;if((e=e||f.get())&&e!==Ks.lastUrl)return Ks.lastUrl=e,n=-1,Ia()||ya(),X.debug("sending load event for url "+e),t={load_time:n="undefined"!=typeof performance&&K.isFunction(performance.getEntriesByType)&&!K.isEmpty(performance.getEntriesByType("navigation"))?(t=performance.getEntriesByType("navigation")[0]).loadEventStart-t.fetchStart:n},ma()&&(t.is_frame=!0),"*"!==(n=on())&&(t.allowed_storage_keys=K.keys(n)),qa("load",t,e),Fa(),y.urlChanged.trigger(),!0});function Xs(e){return"hidden"===e.visibilityState}Ks.reset=function(){Ks.lastUrl=null};var Js="visibilitychange",qs="pagehide",Qs="unload";function ed(e,t){var n;return t?((n=[]).push(te(document,Js,function(){Xs(document)&&e(!0,!1)})),n.push(te(window,qs,K.partial(e,!1,!0))),function(){return K.each(n,function(e){e()})}):te(window,Qs,K.partial(e,!0,!0))}function td(){this.serializers=K.toArray(arguments)}function nd(e,t){return e.tag=c.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function id(e){return S(e)?""+e:""}function rd(e,t){return e.id=id(t.id),e}function od(e,t){return e.cls=id(ee.getClass(t)),e}K.extend(td.prototype,{add:function(e){this.serializers.push(e)},remove:function(e){e=K.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize:function(n,i){return n?(i=i||n,K.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var ad=256,sd=64,dd={a:{events:["click"],attr:["href"]},button:{events:["click"],attr:["value","name"]},img:{events:["click"],attr:["src","alt"]},select:{events:["mouseup"],attr:["name","type","selectedIndex"]},textarea:{events:["mouseup"],attr:["name"]},'input[type="submit"]':{events:["click"],attr:["name","type","value"]},'input[type="button"]':{events:["click"],attr:["name","type","value"]},'input[type="radio"]':{events:["click"],attr:["name","type"]},'input[type="checkbox"]':{events:["click"],attr:["name","type"]},'input[type="password"]':{events:["click"],attr:["name","type"]},'input[type="text"]':{events:["click"],attr:["name","type"]}},ud=function(e){return e&&0===e.indexOf("data:")?(X.debug("Embedded data provided in URI."),e.substring(0,e.indexOf(","))):e+""};function cd(e,t){return e.getAttribute?e.getAttribute(t):e[t]}var ld=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?(i=e.getAttribute(t),lr(ud(i))):(i=cd(e,t),(!n||typeof i===n)&&i?K.isString(i)?gt.call(i).substring(0,ad):i:null):null};function pd(t){var e,n,i;return K.isRegExp(t)&&K.isFunction(t.test)?function(e){return t.test(e)}:K.isArray(t)?(e=K.map(K.filter(t,K.isObject),function(e){var t;return e.regexp?(t=(t=/\/([a-z]*)$/.exec(e.value))&&t[1]||"",new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),t)):new RegExp("^"+e.value+"$","i")}),function(t){return K.any(e,function(e){return e.test(t)})}):K.isObject(t)&&t.regexp?(n=(n=/\/([a-z]*)$/.exec(t.value))&&n[1]||"",i=new RegExp(t.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):K.constant(!1)}function hd(e,t,n,i){try{var r,o=K.indexBy(t),a=K.filter(K.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=sd?K.pluck(a,"nodeName"):(r=K.groupBy(e,function(e){return o[e.nodeName]?"defaults":K.isString(e.value)&&e.value.length>ad?"large":"small"}),K.pluck([].concat(K.sortBy(r.defaults,"nodeName")).concat(K.sortBy(r.small,"nodeName")).concat(K.sortBy(r.large,"nodeName")).slice(0,sd),"nodeName"))}catch(s){return X.error("Error collecting DOM Node attributes: ".concat(s)),[]}}function fd(t,n){var e=pd(m.get("htmlAttributes")),i=pd(m.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=ld(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},hd(n.attributes,dd[r]&&dd[r].attr,e,i));return K.each(r,function(e){t.attrs[e.toLowerCase()]=ld(n,e)}),t}function gd(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=K.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==Er}).indexOf(t).value()),e}function md(i,e){var r;return m.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(md),e=this.serialize(e.previousElementSibling),this.add(md),i.attrs=i.attrs||{},K.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;K.isEmpty(e)||(K.isObject(e)?K.each(e,function(e,t){e&&!K.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}function vd(){return new td(nd,rd,od,fd,gd,md)}var yd=vd(),bd=function(e){return"BODY"===e.nodeName&&e===bo()||null===e.parentNode&&!c.isElementShadowRoot(e)},Id="pendo-ignore",wd="pendo-analytics-ignore",Cd=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=yd.serialize(o,e)}while(r||!Nt(a.cls,Id)&&!Nt(a.cls,wd)||(r=!0),n.parentElem=a,n=a,(i=c.getParent(o))&&!bd(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Sd=["","left","right","middle"],Ad=function(e,t){return Sd[t]},Td=function(){return!0},_d=function(e){return e.which||e.button},Ed=function(e){return e},xd=function(e,t){return e[t]},Rd=[["button",_d,Td,Ad],["altKey",xd,Ed,Ed],["ctrlKey",xd,Ed,Ed],["metaKey",xd,Ed,Ed],["shiftKey",xd,Ed,Ed]],kd=function(e,t){for(var n=[],i=0;i<Rd.length;i++){var r=Rd[i],o=r[0],a=r[1],s=r[2],r=r[3],a=a(e,o);s(a)&&n.push(r(o,a))}return t.flags=n,t},Od={click:kd},Nd=function(e){return e.nodeType===_r?e.parentNode:e.nodeType===kr?null:e.correspondingUseElement||e},Md=function(e){try{var t,n,i,r,o,a;ee.data.get(e,"counted")||(ee.data.set(e,"counted",!0),t=Ui(e),n=e.type,i={},(r=Od[n])&&(i=r(e,i)),ee.data.get(e,"stopped")&&(i.stopped=!0),e.from&&K.isString(e.from)&&(i.from=e.from),(t=Nd(t))?(o=Cd(t),K.extend(o,i),Ks()&&f.startPoller(),o.ignore||(a=void 0,"click"===n&&(a=Ld(t)),qa(n,{target:o},undefined,undefined,a,e),y.trigger("appUsage",o,e))):X.info("Invalid HTML target",{contexts:["event","dom","processing"]}))}catch(s){X.critical("pendo.io while handling event",{error:s})}};function Ld(e){e=Fd(e),y.onClickCaptured.trigger(e),e=e.getEventProperties();if(!K.isEmpty(e))return e}function Fd(e){var n={};return{getEventProperties:function(){return n},addEventProperty:function(e,t){K.isString(e)&&!K.isUndefined(t)?n[e]=t:X.error("Failed to add click event property")},target:e}}var Pd=function(e){var t=K.map(e,function(e){return I(document,e,Md,!0)});return function(){K.each(t,function(e){e()})}},Gd=5e3,Dd=K.debounce(Md,Gd,!0),Bd=function(e){var t=[],n=(K.contains(e=e||["click","focus","submit","change"],"change")&&(e=K.without(e,"change"),t.push(function(){Dd.cancel()}),t.push(te(document,"change",Dd,!0))),m.get("interceptElementRemoval")||m.get("syntheticClicks.elementRemoval")),i=m.get("syntheticClicks.targetChanged"),n=(t.push(Wd(ee.event.trigger,l.addEventListener,n,i).teardown),t.push(Pd(e)),t.push(ed(function(e,t){t&&y.appUnloaded.trigger(),e&&y.appHidden.trigger()},m.get("preventUnloadListener"))),y.appHidden.on(function(){La(!0,{hidden:!0})}),y.appUnloaded.on(function(){La(!0,{unload:!0})}),m.get("interceptStopPropagation",!0)),i=m.get("interceptPreventDefault",!0);return n&&t.push(jd(window.Event,e)),i&&t.push(zd(window.Event,["touchend"])),function(){K.each(t,function(e){e()})}};function Wd(t,e,n,i){var r,o,a=[],s=l.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=ee.event.clone(e);return e.type="click",e.from=d,e.bubbles=!0,e},down:function(e){o=!1,e&&(r=c.cloneEvent(e),n)&&c.intercept(e)},up:function(e){o=!1,e&&r&&i&&Ui(r)!==Ui(e)&&(o=!0,t(r))},click:function(e){r=null,o&&ee.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=Ud(Ui(e));K.each(e,function(e){e=$d(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(K.each(a,function(e){e()}),a=[])},teardown:function Wm(){c.unwrap(),K.each(u,function(e){e()})}};return e&&(u.push(te(document,d,c.down,!0)),u.push(te(document,s,c.up,!0)),u.push(te(document,"click",c.click,!0))),c}function Ud(e){for(var t=[];e&&!bd(e);)t.push(e),e=e.parentNode;return t}function $d(n,i){var e=["remove","removeChild"];try{if(!n)return K.noop;K.each(e,function(e){var t=n[e];if(!t)return K.noop;n[e]=K.wrap(t,function(e){return i&&i(),e.apply(this,K.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return K.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){X.critical("ERROR in interceptRemove",{error:t})}return function(){K.each(e,function(e){if(!n[e])return K.noop;e=n[e]._pendoUnwrap;K.isFunction(e)&&e()})}}function jd(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return K.noop;var i=K.indexBy(e);K.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=K.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(ee.data.set(this,"stopped",!0),ee.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){X.critical("ERROR in interceptStopPropagation",{error:r})}return function(){K.each(t,function(e){e=n.prototype[e]._pendoUnwrap;K.isFunction(e)&&e()})}}function zd(t,e){try{if(!t||!t.prototype)return K.noop;var i=K.indexBy(e),n=t.prototype.preventDefault;if(!n)return K.noop;t.prototype.preventDefault=K.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=ee.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Fi,ee.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){X.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;K.isFunction(e)&&e()}}function I(e,t,n,i){return e&&t&&n?(i&&!l.addEventListener&&(i=!1),ee.event.add(e,{type:t,handler:n,capture:i})):K.noop}function w(e,t,n,i){e&&t&&n&&(i&&!l.addEventListener&&(i=!1),ee.event.remove(e,t,n,i))}var Zd=function(e){ee.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Vd=function(e,t){return"complete"!==(t=t||window).document.readyState?te(t,"load",e):(e(),K.noop)},Yd=[],Hd=[],Kd={},Xd={};function Jd(e){Kd=e}function A(){return Yd}function qd(){return Qd(A())}function Qd(e){return K.filter(e,function(e){return!e.isFrameProxy})}function eu(e){K.isArray(e)?(Yd=e,y.guideListChanged.trigger({guideIds:K.pluck(e,"id")})):X.info("bad guide array input to `setActiveGuides`")}var tu=function(){var n=[];return{addGuide:function(e){var t;K.isEmpty(e)||(n=n.concat(e),K.each(n,function(e){return e.hide&&e.hide()}),e=A(),(t=K.difference(e,n)).length<e.length&&(eu(t),q.dispatch("frames/changeGuideList",t)))}}}();function nu(t,n){return K.find(ou(),function(e){return K.get(e,t)===n})||null}function T(e){return nu("id",e)}function iu(e){return nu("name",e)}function ru(e,t){return e&&e.id?(e=T(e.id)).findStepById(t):null}function ou(){var e=K.values(Xd);return e.length?Yd.concat(K.flatten(e)):A()}function au(){Xd={}}function su(e,t){K.isArray(t)&&(Xd[e]=t)}function du(e){delete Xd[e]}var uu="_pendo-guide-tt_",cu="_pendo-guide-mobile-tt_",lu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},pu=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)};function hu(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function fu(){return!!(hu()&&lo().width<=320)||l.isMobileUserAgent()}function oe(){var e=oe.attachPoint;if(null==e){var t=m.get("guides.attachPoint");if(K.isString(t)){try{e=s(t)[0]}catch(n){X.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!K.isFunction(t)&&t();oe.attachPoint=e}return e||bo()}var gu=function(e){var t=Kd[e.guideId];if(t){t=t.element();if(Co(t)&&t.id==="_pendo-badge_"+e.id)return t}},mu=function(e){var t;return e?(t=e.getGuide(),t="building-block"===K.get(t,"attributes.type")||!pu(t),!e.overrideElement&&t&&(e.overrideElement=gu(e)),e.targetElement=vu(e),e.overrideElement||e.targetElement):(X.info("Can't get element for null step"),null)},vu=function(e){e=e.elementPathRule||null,e=e?s(e):[bo()];return 0===e.length?null:K.first(e)};function yu(e){var t=K.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function bu(e,t,n){var i,r,o,e=ie(e),t=ie(t),a=(e=e,a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),o=Math.max(e.top+e.height,a.top+a.height),e=Math.max(e.left+e.width,a.left+a.width),{height:Math.abs(o-i),width:Math.abs(e-r),top:i,left:r});!1!==po(a)||t.fixed||(o=Iu(a,lo(),n,Eo(bo(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function Iu(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};return r.y="top"===n?e.top:e.top+e.height-t.height,r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),K.contains([g.X,g.BOTH],i)&&(r.x=0),K.contains([g.Y,g.BOTH],i)&&(r.y=0),r}function wu(e,t,n,i,r){var o,a=K.toArray(arguments).slice(1),s=e.apply(this,a);return n||No(o=oe())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function Cu(){return q.getters["frames/isLeader"]()}function Su(){return q.getters["frames/leaderExists"]()}function Au(e){return q.dispatch("frames/updateFrameVisibility",{visibility:e})}var Tu=function(){var n=Bn.call({}),i={validateGuide:1,validateLauncher:1,validateGlobalScript:1},e={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1};return K.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){e[t]&&y[t].on(function(e){return Tu[t].apply(Tu[t],e.data)}),n[t]=function(e){return K.isFunction(e)?n.on(t,e):n[i[t]?"triggerAsync":"trigger"].apply(n,[t].concat(K.toArray(arguments)))}}),n}();function _u(e,t,n){return p.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){C.guidesPayload(e.data),n()})}var Eu={post:_u,load:function(e,t){return p.get(e).then(function(e){C.guidesPayload(e.data),t()})},endpoint:function(){return"guide.json"},usesXhr:function(){return!0}};function xu(e){e=Uo(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}var Ru=function(){var t,n,e,i,r,o={failed:{},verified:{}};return n=o,i=Vr,r=function(e){try{var t=[];return!Eu.usesXhr()&&e.domJsonpUrl?t.push(s(e,"domJsonpUrl")):Eu.usesXhr()&&e.domUrl&&t.push(a(e,"domUrl")),e.contentUrlJs?t.push(s(e,"contentUrlJs")):e.contentUrl&&t.push(s(e,"contentUrl")),J.all(t)}catch(n){throw y.contentVerificationFail.trigger(e,n),n}},e=function(e){return r(e).then(K.noop,function(e){return/verify/.test(e)&&i(e),J.reject(e)})},t=function(t){return n.failed[t.id]?J.reject():n.verified[t.id]?J.resolve():e(t).then(function(){n.verified[t.id]=!0},function(e){return n.failed[t.id]=!0,J.reject(e)})},{verify:function(e){return m.get("guideValidation")?t(e):J.resolve()},reset:function(){o.failed={},o.verified={}}};function a(e,t){var n,i=e[t];return K.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||xu(e[t]),p.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=R.create()).update(e),u.uint8ToBase64(t.digest())!==n)return J.reject('Unable to verify content at "'+i+'"')})):J.reject('unable to parse "'+i+'"')}function s(e,t){var n=e[t];return l.sri&&/[?&]sha(256|384|512)=/.test(n)?J.resolve():a(e,t)}}(),ku=function(){var o="allow",a="deny",s="pending",d={},r=function(){return 0<K.size(Tu._handlers.validateGuide)};function u(i){var r=d[i.id];return r||(r={},d[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+Rt(e),n=(r[t]||(r[t]={status:s},r.status=s),r[t].promise);return n||(n=Tu.validateGuide(e,i).then(function(){r[t].status=o,r.status=o},function(e){return r[t].status=a,r.status=a,J.reject(e)}),r[t].promise=n),n})}var c=function(e,n){var i=[];return K.each(e,function(e,t){n&&(t=n+"."+t),K.isObject(e)?K.each(c(e,t),function(e){i.push(e)}):i.push([t,e])}),i};return{state:d,Step:function(e){var n=this;function i(e){return K.filter([["content",xu(e.contentUrl)],["contentCss",xu(e.contentUrlCss)],["contentJs",xu(e.contentUrlJs)],["dom",xu(e.domUrl)],["domJsonp",xu(e.domJsonpUrl)]],function(e){return e[1]})}return this.signature=function(){var e,t;return this.domUrl?this.guide.authoredLanguage===this.language?i(this):i({contentUrl:n.contentUrl,contentUrlCss:n.contentUrlCss,contentUrlJs:n.contentUrlJs,domUrl:n.domUrl,domJsonpUrl:n.domJsonpUrl}):(e=[["content",this.content]],(t=this.attributes&&this.attributes.variables)&&(t=c(t)).length&&(t=K.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return K.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<K.size(Tu._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(r()&&i)return!1}),n.before("render",function(){var e,t;if(r())return!i&&(t="launcher-"+Rt(n.signature()),(t=d[t])!==a)&&(t!==o?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+Rt(t),Tu.validateLauncher(t).then(function(){d[e]=o},function(){d[e]=a}).then(function(){i=!1,n.render(),n.update(A())},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=c(this.data);return t.length&&(t=K.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!r())return J.resolve();try{return K.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=se.findResourceCenterModules(t,A()),t=[t].concat(n),J.all(K.map(t,u))):u(e)}catch(i){throw y.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!r()||!!(e=d[e.guideId])&&e.status===o},invalid:function(e){return!!r()&&!!(e=d[e.guideId])&&e.status===a},reset:function(){d={}}}}();function Ou(e,t){var n=K.toArray(arguments).slice(2);return K.reduce(e,function(e,t){return t.apply(e,n)},t)}function Nu(e){return K.isFunction(e.before)?e:Ou(Nu.behaviors,e)}function Mu(e,t){return Ou(Mu.behaviors,e,t)}function Lu(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",n=e.length,i=0,r=0,o="",a=0;a<n;a++)for(r=r<<8|e[a],i+=8;5<=i;)o+=t[r>>>i-5&31],i-=5;return 0<i&&(o+=t[r<<5-i&31]),o}function Fu(e){var t,n,i=m.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+Ee(tt)+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+xe(tt)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+rn(it),"g"),i)):e}function Pu(e){return m.getLocalConfig("contentHost")?JSON.parse(Fu(JSON.stringify(e))):e}function Gu(){var e=rn(m.getHostedConfig("contentHost"));if(e)return e+"*"}function Du(e){return!!(K.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props"))}Nu.behaviors=[],Mu.behaviors=[];var Bu=function(){var u={},c=K.compose(function(e){var t=Gu();return t&&!new RegExp(t).test(e)&&X.debug("Failed to verify URL: "+e+" vs "+t),e},Fu);var d=[function(e,t,n){return t="var guide = pendo.findGuideById('".concat(t,"');\nvar step = guide && guide.findStepById('").concat(n,"');"),e.replace("<% if (typeof guide !== 'undefined') { %>\nvar guide = pendo.findGuideById('<%= guide.id %>');\nvar step = guide && guide.findStepById('<%= step.id %>');\n<% } %>",t)}];return{load:function(t){try{var e=u[t.id];if(e&&e.language!==t.language&&delete u[t.id],!u[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(u[t.id]=r,Eu.usesXhr()&&t.domUrl?(r.deferred.domJson=J.defer(),p.get(c(t.domUrl)).then(function(e){r.domJson=Pu(e.data),Du(e.data)?r.deferred.domJson.resolve():(X.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){X.critical(e),y.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=J.defer(),n=Vo(c(t.domJsonpUrl),function(e){ee.removeNode(n),e&&y.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!m.get("preventCodeInjection")){r.deferred.content=J.defer();var a=Vo(c(function(e){if(Mt()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+Lu(mt(n)));if(K.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){ee.removeNode(a),e&&y.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=J.defer(),Vo({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!m.get("preventCodeInjection")){r.deferred.content=J.defer();var s=Vo(function(e,t){if(!K.isString(e))return e;var n=K.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){ee.removeNode(s),e&&y.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return J.reject("fetchedDomContent is still false");r.deferred.promise=J.all(i).then(function(){return K.omit(r,"deferred")})}return u[t.id].deferred.promise}catch(d){throw y.resourceFetchFail.trigger(t,d),d}},reset:function(){u={}},guideContent:function(e,t,n,i,r){var o,a,s;K.isString(n)&&(o=n,a=e,s=t,n=K.reduce(d,function(e,t){return t(e,a,s)},o),K.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?K.template(n):K.constant(n)),o=u[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=u[e+t])&&e.deferred.domJson&&(e.domJson=Pu(n),e.deferred.domJson.resolve())}}}(),Wu=function(){function a(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(K.extend(i,{fetchContent:function(e){void 0===e&&(e=!1);return e?a.prefetch(i):a.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=K.indexOf(n.steps,i);K.chain(n.steps).rest(t+1).first(e).each(function(e){K.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function s(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}return a.state={},a.queue=[],a.pending=function(){return K.reduce(a.state,function(e,t){return e+(t.loaded?0:1)},0)},a.reset=function(){Bu.reset(),a.state={},a.queue=[]},a.prefetch=function(e){var t;return a.hasContent(e)?K.get(a.state[s(e)],"promise"):(t=J.defer(),a.queue.push([t,e]),t.promise)},a.processPrefetch=function(e){return void 0===e&&(e=10),a.queue.length?(e=a.queue.splice(0,Math.max(e-a.pending(),0)),J.all(K.map(e,function(t){return a.fetchContent(t[1]).then(function(e){t[0].resolve(e)})["catch"](function(e){t[0].reject(e)})}))):J.resolve()},a.fetchContent=function(t){var e=s(t);if(!(i=a.state[e])){var n,i={},r=t.getGuide();if(r.control)return J.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=K.extend({id:r,language:n,guideId:t.guideId},K.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=Ru.verify(o).then(function(){return i.verified=!0,Bu.load(o)}).then(function(e){return i.loaded=!0,e}),a.state[e]=i}return i.promise.then(function(e){K.extend(t,e)})},a.hasContent=function(e){return S(e.content)||S(e.domJson)},a}(),Uu=function(){var e=y.runtime,o=[];function r(e,n,i,r){return K.filter(e,function(e){if(K.isFunction(e[r])){if(K.isFunction(e.test))try{return e.test(n,i)}catch(t){return X.critical("Error in global script test code block",{error:t}),!1}return K.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function a(e,t,n){var i=[];return"script"===(n=void 0===n?"script":n)&&K.isFunction(e.script)&&i.push(e.script),K.size(o)&&(e=r(o,e,t,n),K.each(e,function(e){i.push(e[n])})),i}function i(t,n,i){var r=i.guide;r&&K.all(a(i,r,"beforeMount"),function(e){try{return e.call(t,n),!n.cancel}catch(err){return X.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:err}),!1}})}var s=Bn.call({}),d={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function u(e){return d[e]}function t(n){this.step=n,K.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=K.first(arguments)+":"+K.get(n,"guide.id");return h[t].apply(this,[e].concat(K.rest(arguments)))}},this);var e=K.bind(function(e){this.step.id!==e.step.id?X.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=K.partial(s.off,"afterUnmounted",e),s.on("afterUnmounted",e)}return e.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,u(e.type))return-1<K.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&s.trigger(t,e),t=d[e.type].type,s[t](e.type,e),"unmounted"===e.type?s.trigger("afterUnmounted",e):"beforeMount"===e.type&&i(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}),t.prototype.on=function(e,t){var n,i;u(e)?(d[e].fromUnmount&&(t=K.once(t)),n=this.step,i=t,t=wi(t=function(e){if(e.step.id===n.id)return i(e);X.debug("called guide runtime callback on wrong step")}),s.on(e,t),this.purge=K.compose(this.purge,K.partial(s.off,e,t))):X.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){var e=m.get("guides.globalScripts");K.each(e,Uu.addGlobalScript)},teardown:function(){K.each(o,Uu.removeGlobalScript)},addGlobalScript:function(e){var t,n,i,r;t=e,(i=K.without(K.keys(t),"script","test","regex","beforeMount")).length&&(n=t.script,t.script=function(){if(K.each(i,function(e){u(e)&&this.on(e,t[e])},this),K.isFunction(n))return n.apply(this,arguments)}),r=e=t,!K.isFunction(r.script)&&!K.isFunction(r.beforeMount)||r.test&&!K.isFunction(r.test)||r.regex&&!K.isRegExp(r.regex)?X.critical("Error adding invalid GlobalScript via API"):o.push(e)},removeGlobalScript:function(e){0<=(e=K.indexOf(o,e))&&o.splice(e,1)},getContext:function(e){return new t(e)},runCustomScripts:function(n,i){K.each(a(n,i),function(e){try{var t=Uu.getContext(n);e.call(t,n,i)}catch(err){X.critical("Exception thrown running code block for: "+JSON.stringify({guideId:i.id,stepId:n.id}),{error:err})}})}}}();function $u(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?K.find(e.children,function(e){return $u(e)}):void 0}function ju(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=ju(e.children[n],t);if(i)return i}return!1}function zu(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat.apply(n,K.map(e.children,function(e){return zu(e,t)})):n}function Zu(e,t){if(t.props&&t.props.id===e)return t;if(t.children)for(var n=0;n<t.children.length;n++){var i=Zu(e,t.children[n]);if(i)return i}}var Vu=function(){return{buildNodesFromTemplate:function(e,t,n,i,r){var o=i||A(),a=r||C.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return K.reduce(e,function(e,t,n){var i=se.findResourceCenterHomeView(f),r=K.find(f,function(e){return e.id===t.id});if(C.designer)r=t,i=K.find(f,function(e){return K.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return K.each(r.children,function(e){e=T(e);e&&e.control&&e.steps[0].onControlGuide("control")}),e}var o,a,s,d=JSON.parse(JSON.stringify(p)),u=(delete d.templateChildren,d.props.id=d.props.id+"-"+n,d.props["data-pendo-module-guide-id"]=r.id,d.actions||(d.actions=[]),{action:"renderResourceCenterModule",source:d.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),u=(d.props["data-localization-direction"]&&u.parameters.push({name:"transitionDirection",type:"string",value:d.props["data-localization-direction"]}),C.designer||d.actions.push(u),K.get(i,"attributes.notificationBubble")),c=K.get(i,"attributes.notifications"),u=(u&&c&&("AnnouncementsModule"===K.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===K.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(d.props["data-pendo-notification-id"]=o,c=d,r=u,u=o,o=(i=i).attributes.notifications.individualCounts[o],c=ju(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=K.find(c.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(l=parseInt(s.props.style.width,10))&&!isNaN(l)&&(a=c.children.indexOf(s),l=l-40+"px","100%"!==s.props.style.width&&(s.props.style.width=l),(l="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(i.attributes.notifications.individualCounts[u]),props:{style:{position:"relative",top:"50%","font-weight":r["font-weight"],"font-family":r["font-family"],color:r.color}}}],props:{id:"pendo-home-view-bubble","class":"_pendo-home-view-bubble",style:Kt(Kt(Kt({position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px"},!l&&{right:"20px"}),l&&{left:"20px"}),{top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":r["background-color"],display:o?"block":"none"}),"aria-hidden":!0}},c.children.splice(a+1,0,s)),ju(d=m(d,t,d.props.id,n),function(e){e=K.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=ju(d,function(e){e=K.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=ju(d,function(e){e=K.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-".concat(n))});return u&&(u.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]="".concat(u.props.id," ").concat(l&&l.props.id)),e.concat(g(d,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,d){var e=o.templateChildren;return K.reduce(e,function(e,t,n){var i,r=f(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},C.designer||i.actions.push(r),i=m(i,t,i.props.id,n),e.concat(d(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;K.filter(r,function(e){return f(n,e)}).length?(e.children=K.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(e,t){e.templateName&&(e.templateChildren=t);if(!e.children||!e.children.length)return;for(var n=0;n<e.children.length;n++)o(e.children[n],t)}(e,r)):e.children=K.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});return se.updatePseudoStyleSelectors(e),[i(e,t,n)]}(t,n,o,a);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(s,d,u,c){var e=s.templateChildren;return K.reduce(e,function(e,t,n){var i,r,o,a=f(u,t);return a?(delete(i=JSON.parse(JSON.stringify(s))).templateChildren,i.props.id=i.props.id+"-"+n,i.props["data-pendo-show-guide-id"]=a.id,i.props["class"]+=" pendo-task-list-item",i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:a.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},C.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),ju(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=l(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=m(i,t,i.props.id,n),e.concat(c(i,d,u))):e},[])}(t,n,o,a);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,t,n,i){var r=e.templateChildren||t.getGuide().attributes.resourceCenter.children,o=0,a=0,r=(K.forEach(r,function(e){e=f(n,e);e&&(e.isComplete()?(o+=e.getTotalSteps(),a+=e.getTotalSteps()):(o+=e.getTotalSteps(),a+=e.getSeenSteps()))}),parseInt(a/o*100,10));isNaN(r)&&(r=0);r={totalPercentComplete:r+"%"};return ju(e=m(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(l,e,n,p){e=e.getGuide().attributes.resourceCenter.children,e=K.reduce(e,function(e,t){t=f(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!K.every(e,function(e){e=e.steps[0];return!!Wu.hasContent(e)}))return[];var t=se.getResourceCenter(),h=K.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return K.map(e,function(e,t){var n,i,r,o,a,s,d,u="whatsnew"===K.get(e,"attributes.type"),c=JSON.parse(JSON.stringify(l));return c.props.id=c.props.id+"-"+t,c.props["data-pendo-announcement-guide-id"]=e.id,c.props["data-pendo-announcement-send-seen-event"]=!0,u?(t=c,u=h,s=p,n=Nu(r=e),(d=n.steps[0]).render(),Uu.runCustomScripts(d,n),i="#"+(n=d.guideElement)[0].id+" h1::after { display:none; }",n[0].appendChild(document.createElement("style")).innerHTML=i,u&&((o=g(u)).props.style.top="20px"),!se.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,d),n.appendTo(i),i):(u=c,r=h,o=p,d=Nu(t=e),s=t.steps[0],Uu.runCustomScripts(s,d),d=JSON.parse(JSON.stringify(s.domJson)),u.children=[d],r&&(a=g(r),d=ju(u,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(u.props.style["padding-top"],10),d=parseInt(d.props.style["padding-top"],10),a.props.style.top=d+r+5+"px"),!se.hasAnnouncementBeenSeen(t)&&a&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(a)),delete u.templateName,(d=Zu("pendo-guide-container",u))&&(d.props.id=d.props.id+"-"+s.id),o(u,s))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():K.find(n,function(e){return e.id===t.guideId}),o=K.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=K.get(r,"currentFirstEligibleToBeSeenAt")||K.get(r,"showsAfter")||K.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=m(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:g,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return K.reduce(e,function(e,t,n){t=f(i,t);return t&&e.push(t),e},[])}};function l(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return K.isNull(n[t])||K.isUndefined(n[t])?e:n[t]})}function m(e,t,n,i){if(e.content&&(e.content=l(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?l(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)m(e.children[r],t,n,i);return e}function f(e,t){e=K.find(e,function(e){return e.id===(t.id||t)});if(C.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function g(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Kt(Kt({position:"absolute","border-radius":"5px",height:"10px",width:"10px","line-height":"0px"},t),{top:"30px","box-sizing":"content-box","background-color":e["background-color"],"z-index":"10"})}}}}(),Yu=function(){return{buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return n(t)}},createProgressCircleSvg:n};function n(e){var t,n,i,r,o,a,s;return ke(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=ee(Te(C).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.find(".pendo-progress-circle-fill"),t?o.css({border:"3px solid "+n,height:"10px",width:"10px"}):o.css({border:"3px solid "+i,height:"10px",width:"10px"}),r):100<=((t=e.svgAttributes).fillCircle.percentComplete||0)?(n=(n=t).fillCircle.stroke,(i=ee(Te(C).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",n),i):(r=(o=t).fillCircle.stroke,e=o.backgroundCircle.stroke,o=o.fillCircle.percentComplete||0,a='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+(a=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+a+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(a=ee(Te(C).createHTML(a))).find(".pendo-progress-circle-fill")[0],a.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),o<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",r),s.setAttributeNS(null,"stroke-dasharray",o+", 100")),a)}}(),Hu=function(e,t){return e<t},Ku=K.negate(Hu);function Xu(e){return{top:0,left:0,right:e.width,bottom:e.height,width:0,height:0}}function Ju(){var e=bo();return Gr(e)?re(e):((e=lo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function qu(e,t,n){var i={},r=t.top-e.top,e=t.left-e.left;return i.top=r-n.top,i.left=e-n.left,i.height=t.height+n.top+n.bottom,i.width=t.width+n.left+n.right,i.bottom=i.top+i.height,i.right=i.left+i.width,{top:{top:0,height:Math.max(i.top,0),left:i.left,width:i.width},left:{top:0,bottom:0,left:0,width:i.left},bottom:{top:i.bottom,width:i.width,bottom:0,left:i.left},right:{top:0,bottom:0,left:i.right,right:0}}}function Qu(e){var t;if(e&&e.length)return t=Gr(bo())?re:Wr,(e=K.reduce(e,function(n,e){var i;return b(e)?(i=t(e))?(K.each([["top",Hu],["right",Ku],["bottom",Ku],["left",Hu]],function(e){var t=e[0],e=e[1];n[t]&&!e(i[t],n[t])||(n[t]=i[t])}),n):void 0:n},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function ec(e,t){var n=Ju(),e=Qu(e)||Xu(n);return{viewport:n,box:e,overlays:qu(n,e,t)}}function tc(e){var t=[],n=K.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==bo()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=ee(i[r]);o&&K.each(o,function(e){t.push(e)})}catch(a){X.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var nc=null,ic=function(e){var t=!K.isEqual(e,nc);return nc=e,t},rc=null,oc=function(e){var t=!K.isEqual(e,rc);return rc=e,t},ac=null,sc=function(e){var t=!K.isEqual(e,ac);return ac=e,t},dc=function(e){return oc(e.viewport)||ic(e.box)||sc(e.overlays)};function uc(e){try{var t=ec(tc(e),K.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));dc(t)&&K.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];K.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){X.info("Failed to update BlockOut ui",{contexts:["error"]})}}function cc(e){try{var t,n,i,r;if(!pc())return t=ec(tc(e),K.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),dc(t),n={"z-index":1e4,position:"fixed"},i=[],K.each(t.overlays,function(e,t){t=lc(t,K.extend({},e,n));i.push(t)}),r=hc(i,e),e.backdrop=r[0],r}catch(o){X.info("Failed to add BlockOut ui",{contexts:["error"]})}}function lc(e,t){var n=ee("div.pendo-backdrop-region-"+e);return n.length||(n=ee(document.createElement("div")).addClass("pendo-backdrop-region-"+e)),ee(n).css(t).attr("pendo-region",e),n}function pc(){return 0<ee("._pendo-guide-backdrop_").length}function hc(e,t){var r=Zu("pendo-backdrop",t.domJson),o=(K.each(["left","right","width","height","bottom","top"],function(e){delete r.props.style[e]}),ee(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"));return K.each(r.props,function(n,i){K.each(e,function(e,t){"style"===i?e.css(r.props.style):"class"===i?e.addClass(n):"id"===i?e.attr(i,n+"-"+t):e.attr(i,n),o.append(e)})}),o}var fc="top",gc="bottom",mc="left",vc="right",yc="center";function bc(e,t,n){return n===vc||n===mc?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?yc:n<e/2?vc:mc)}function Ic(e,t,n){return n===fc||n===gc?n:(n=e.top,(t=(e=t.height)/3)<n&&n<2*t?yc:n<e/2?gc:fc)}var wc=function(){return{createBBTooltip:i,getBBTooltipDimensions:p,determineBBHorizontalBias:bc,determineTooltipPosition:a,positionBBTooltipWithBias:s,calculateToolTipPositionForTopBottom:r,calculateToolTipPositionForLeftRight:o,buildTooltipCaret:h,styleTopOrBottomCaret:u,styleLeftOrRightCaret:f,buildBorderCaret:g,determineBorderCaretColor:v,placeBBTooltip:function(e,t){var n,i,r,o,a,t=t||function(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=$u(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(i=e.element||mu(e),n=ie(i),"none"!==ne(e.elements[0]).display)&&(i=Wr(i),a=e.attributes.layoutDir,e=e.guideElement,r=ee(t).find("#pendo-guide-container"),o=r[0].style,t=ne(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},r={height:parseInt(r[0].getAttribute("data-caret-height"),10)||0,width:parseInt(r[0].getAttribute("data-caret-width"),10)||0,backgroundColor:r[0].style["background-color"],offset:10,borderColor:o.borderColor,borderWidth:parseInt(o.borderWidth,10)},o=this.getBBTooltipDimensions(n,t,r,a,i),r.height&&r.width&&(t=e.find(".pendo-tooltip-caret")[0],a=e.find(".pendo-tooltip-caret-border")[0],t&&d(t,o,r),a)&&m(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:l,attachScrollHandlers:c,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!K.isObject(e.domJson)||!(e=$u(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){i(t,e.element,e,n),e.hasBeenScrolledTo||(Do(e.element),bu(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}};function i(e,t,n,i){var r,o,a,s,d,u;if(n.guideElement)return(r=n.guideElement).addClass(fu()?cu:uu),0===(o=ie(t)).height&&0===o.width?null:(t=Wr(t),(e=ju(e,function(e){return"pendo-guide-container"===e.props.id}))?(u=n.attributes.layoutDir,d={height:i.offsetHeight,width:i.offsetWidth},a={height:parseInt(e.props["data-caret-height"],10)||0,width:parseInt(e.props["data-caret-width"],10)||0,backgroundColor:e.props.style["background-color"],offset:10},l(n),e.props.style.border&&(e=e.props.style.border.split(" "),a.borderColor=e[2],a.borderWidth=parseInt(e[0],10)),e=p(o,d,a,u,t),n&&(n.dim=e),n&&K.isFunction(n.getGuide)&&(s=n.getGuide()),d=K.get(s,"attributes.resourceCenter"),o.fixed?(r.css({position:"fixed"}),i.style.position="absolute"):n&&d||(i.style.position="absolute"),a.height&&a.width&&h(r,e,a),u="300000",i&&i.style&&i.style["z-index"]&&(u=i.style["z-index"]),r.css({"z-index":u}),d||r.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&r.css({left:e.left,top:e.top,position:o.fixed?"fixed":"absolute"}),"top"===e.layoutDir&&e.hbias===mc&&r.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),c(n,y),r[0]):void 0)}function c(e,t){e&&K.isFunction(e.attachEvent)&&(hu()&&e.element===ee.getBody()||(t=K.throttle(K.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),Mo(K.bind(e.attachEvent,e),e.targetElement,t)))}function t(t,n){var e=ee(n.elementPathRule)[0];n.attachEvent(e,t,function(e){ee.data.set(e,"advanced",!0),hf(t,n)})}function l(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?t("mouseover",e):e.attributes.advanceActions.elementClick&&t("click",e))}function p(e,t,n,i,r){var o=lo(),i=i||"auto",t={width:Math.min(t.width,o.width),height:t.height},r=(t.layoutDir=i,t.hbias=bc(e,o,i),t.vbias=Ic(e,o,i),t.layoutDir=a(t,o,r,i),s(t,e,o));return t.top=r.top,t.left=r.left,"top"===t.layoutDir?t.top-=n.height:"bottom"===t.layoutDir?t.top+=n.height:"right"===t.layoutDir?t.left+=n.height:"left"===t.layoutDir&&(t.left-=n.height),t}function a(e,t,n,i){var r,o,a,s,d,u,c;return i&&"auto"!==i?i:(i=n.top,o=(r=n.left)+n.width,a=n.top-e.height<0,s=n.top+n.height+e.height>t.height,d=n.left-e.width<0,u=n.left+n.width+e.width>t.width,!(s&&a&&d&&u)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===yc)&&(c="top"),"top"===(c=r<e.width&&t.width-o<e.width?"bottom":c)&&n.top-e.height<0&&(c="bottom"),s&&a&&(e.hbias!==yc&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function s(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?r(e,n,t,e.layoutDir,e.hbias):o(e,n,t,e.vbias)}function r(e,t,n,i,r){var o=e.height,a=e.width,s={top:null,left:null};return"bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-o),"right"===r?((i=n.left+n.width/2)+e.width>t.width&&(i-=i+e.width-t.width),s.left=i):s.left="left"===r?n.left-a+n.width/2:n.left+n.width/2-a/2,s}function o(e,t,n,i){var r=e.height,o=e.width,a={top:null,left:null};return"right"===e.layoutDir?a.left=n.left+n.width:"left"===e.layoutDir&&(a.left=Math.max(0,n.left-o)),"bottom"===i?((o=n.top+n.height/2)+e.height>t.height&&(o-=o+e.height-t.height),a.top=o):a.top="top"===i?n.top-r+n.height/2:n.top-r/2+n.height/2,a}function h(e,t,n){var i=document.createElement("div"),e=(i.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),i.style.position="absolute",i.style.zIndex=11,d(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=g(i,n,t.layoutDir),e.appendChild(i))}function d(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||u(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||f(e,t,n)}function u(e,t,n){var i,r=lo();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===mc?(i=t.width-2*n.width-n.offset-n.borderWidth,e.style.left=i+"px",t.left+=n.offset+n.width+n.borderWidth):t.hbias===vc?(e.style.left=n.offset+n.borderWidth+"px",t.left-=n.offset+n.width+n.borderWidth,t.left+t.width>r.width&&(t.left=t.left-(t.left+t.width-r.width)),t.left=Math.max(0,t.left)):e.style.left=t.width/2-n.width+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.top=i+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.bottom=r+"px",e.style.top=""),e}function f(e,t,n){var i,r=lo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===fc?(i=t.height-2*n.width-n.offset-n.borderWidth,e.style.top=i+"px",t.top+=n.offset+n.width+n.borderWidth):t.vbias===gc?(e.style.top=n.offset+n.borderWidth+"px",t.top-=n.offset+n.width+n.borderWidth,t.top+t.height>r.height&&(t.top=t.top-(t.top+t.height-r.height)),t.top=Math.max(0,t.top)):e.style.top=t.height/2-n.width+"px","left"===t.layoutDir&&(e.style["border-left"]=n.height+"px solid "+n.backgroundColor,e.style["border-right"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.right=i+"px",e.style.left=""),"right"===t.layoutDir&&(e.style["border-right"]=n.height+"px solid "+n.backgroundColor,e.style["border-left"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.left=r+"px",e.style.right=""),e}function g(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,m(i,t,n,e),i}function m(e,t,n,i){for(var r={top:"",right:"",bottom:"",left:""},o=["Top","Right","Bottom","Left"],a=0;a<o.length;a++){var s="border"+o[a]+"Width",d="border"+o[a]+"Color",u="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[d]=v(i.style[d],t.borderColor),r[u]="solid"):(r[s]="",r[d]="",r[u]="")}"top"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.bottom=parseInt(i.style.bottom,10)-t.borderWidth+"px"),"bottom"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.top=parseInt(i.style.top,10)-t.borderWidth+"px"),"right"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.left=parseInt(i.style.left,10)-t.borderWidth+"px"),"left"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.right=parseInt(i.style.right,10)-t.borderWidth+"px"),K.extend(e.style,r)}function v(e,t){return"transparent"===e?e:t}function y(e){b(e.element)?(wc.placeBBTooltip(e),ee(e.elements[0]).css({display:"block"})):ee(e.elements[0]).css({display:"none"})}}();function Cc(i){var e=i.find('[data-pendo-grow-height="true"]');if(e.length)for(var r=Object.entries(e),o=[],t=0;t<r.length;t++)!function(e){if(Number.isInteger(Number.parseInt(r[e][0],10))){var t=r[e][1];if(K.some(o,function(e){return e.parentNode===t.parentNode}))return;var e=i[0],n=t.parentNode.closest('[data-pendo-grow-height="true"]');if(n){if(!o.includes(n))return;e=n}Sc(t,e),o.push(t)}}(t)}function Sc(e,t){for(var n=0,i=e.parentNode.children,r=0;r<i.length;r++){var o,a=i[r];a!==e&&(o=ne(a),o=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10),n+=a.offsetHeight+o)}var s=t.offsetHeight,t=ne(t),t=parseInt(t.paddingTop,10)+parseInt(t.paddingBottom,10),d=ne(e),d=parseInt(d.marginTop,10)+parseInt(d.marginBottom,10),s=Math.max(s-t-n-d,0);0<s&&(e.style.height=s+"px")}function Ac(e,t){var n,i,r,o,a,s,d,u,c,e=ee("#"+e,t)[0];e&&(t=ee(e),n=ee(t.find("#pendo-guide-container")[0]),r="%"===(i=e.style.height)[i.length-1]?"%":"px",o=parseInt(i,10),a=e.getAttribute("data-pendo-static-height"),t.css({height:"auto"}),a||n.css({"max-height":"none"}),s=parseInt(ne(e).height,10),d=lo().height,u=parseInt(e.style.top,10),u=isNaN(u)?0:u,c=parseInt(e.style.bottom,10),(d=d-u-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":d+"px",overflow:"auto"}),s=d),s!==o?(t.css({height:(u=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(d<s?d:u)/2+"px"})):t.css({height:i}))}function Tc(e,t){e=ee("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=ee(e),t=ee(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(ne(e).width,10)),o=lo().width-parseInt(e.style.left||0,10)-parseInt(e.style.right||0,10);if(o<r&&(t.css({"max-width":o+"px"}),r=o),!isNaN(i))switch(e.getAttribute("data-vertical-alignment")){case"Centered":case"Top Aligned":case"Bottom Aligned":var a=r/2;parseInt(n.css("margin-left"),10)!==a&&n.css({"margin-left":"-"+a+"px"});break;case"Right Aligned":case"Top Right Aligned":case"Bottom Right Aligned":a=i-r;parseInt(n.css("margin-right"),10)!==a&&n.css({"margin-right":"-"+a+"px"})}}}}function _c(e,i){e=K.isArray(e)?e:[e],e=K.reduce(e,function(e,t){var t=ee("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]);Ec(e),K.each(e,function(e){xc(e),Rc(e)})}function Ec(e){e=K.reduce(e,function(e,t){return e.concat(K.toArray(ee(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]);e&&e.length&&kc(K.reduce(e,function(e,t){var n,t=ee(t),i=Mc(t[0]),i=i.marginLeft+i.marginRight,r=Nc(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[]))}function xc(e){e=ee("._pendo-open-text-poll-input",e);e&&e.length&&K.each(e,function(e){var t,n=ee(e),i=n.attr("data-_pendo-open-text-poll-resize-base-width"),e=(i||(i=e.style.width,n.attr("data-_pendo-open-text-poll-resize-base-width",i)),Mc(n[0])),r=e.marginLeft+e.marginRight,o=Nc(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Oc(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),kc({$blockElement:n,availableSpace:o}))})}function Rc(e){e=ee(["._pendo-video","._pendo-image"].join(","),e);e&&e.length&&K.each(e,function(e){var t=ee(e),n=Mc(t[0]),i=n.width,n=n.marginLeft+n.marginRight,r=t.attr("data-_pendo-media-resize-base-width"),e=(r||(r=e.style.width,t.attr("data-_pendo-media-resize-base-width",r)),-1!==r.indexOf("%"));if(t.hasClass("_pendo-image")){var o=e&&100<parseInt(r,10),a=t.attr("data-pendo-accessible-element");if(o||!a)return void t.css({width:i});t.css({height:"auto"})}o=Nc(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Oc(t,i,r,a),kc({$blockElement:t,availableSpace:a}))})}function kc(e){K.isArray(e)||(e=[e]),K.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=K.map(e,function(e){return Mc(e.$blockElement[0]).width});K.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Oc(e,t,n,i){var r=-1!==e[0].style.width.indexOf("%"),i=i*(parseInt(n,10)/100);(r||t<i)&&e.css({width:i<0?0:i})}function Nc(e){e=e.closest("._pendo-row");if(e){e=ne(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Mc(e){e=ne(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var ae=function(){return{calculateTotalOffsetWidth:s,center:function(e,t){for(var n=t/2,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=s(e,r);e[r].style.left=n+o+"px"}1<e.length&&(i.style.right=n+"px");t.style.left=n+"px"},createFlexContainer:function(e){var t=document.createElement("div");t.style.display="inline-block",e||(t.style.position="absolute");return t.style["vertical-align"]="top",t.setAttribute("class","pendo-mock-flexbox-element"),t},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n=[],i=0;i<e.length;i++){var r;t&&-1!==(e[i].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(r=e[i].children[0].offsetHeight+"px",e[i].style.height=r),n.push(e[i].offsetHeight)}return K.reduce(n,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var n=t,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=s(e,r);e[r].style.left=n+o+"px"}1<e.length&&(t.style.left=n+"px");i.style.right="0px"},flexStart:function(e){e[0].style.left="0px";for(var t=1;t<e.length;t++){var n=s(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return K.filter(e,t)},getPendoVisualElements:function(e){return K.filter(e,function(e){return!t(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=a(e),i=ae.getPendoInlineUIElements(e.children);if(1===n.length&&0===n[0].id.indexOf("pendo-text"))return e;for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var r=0;r<n.length;r++)d(n[r])?t.appendChild(n[r]):t.appendChild(ae.wrapElementInMockFlexboxContainer(n[r],e,t));for(var o=0;o<i.length;o++)t.appendChild(i[o]);return e.parentNode.replaceChild(t,e),t},isPendoInlineUIElement:t,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":ae.spaceBetween(e,t);break;case"space-around":ae.spaceAround(e,t);break;case"space-evenly":ae.spaceEvenly(e,t);break;case"center":ae.center(e,t);break;case"flex-start":ae.flexStart(e);break;case"flex-end":ae.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":ae.topAlignment(e);break;case"center":ae.centerAlignment(e,t);break;case"bottom":ae.bottomAlignment(e)}},spaceAround:function(e,t){for(var n=t/(2*e.length),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=s(e,r);e[r].style.left=2*n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},spaceBetween:function(e,t){for(var n=t/Math.max(e.length-1,1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=s(e,r);e[r].style.left=r*n+o+"px"}t.style.left="0px",i.style.right="0px"},spaceEvenly:function(e,t){for(var n=t/(e.length+1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=s(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=K.get(e.style,"width",""),s=ne(e).width,d=-1!==i.indexOf("_pendo-open-text-poll-wrapper")||-1!==i.indexOf("_pendo-image-wrapper")||-1!==i.indexOf("pendo-video-wrapper")||-1!==i.indexOf("_pendo-number-scale-poll-wrapper");r&&!d&&(a=(a?s:null)||ne(e.children[0]).width);(0<=i.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=i.indexOf("pendo-task-list-progress-circle"))&&(s=parseInt(ne(t).width,10),u=parseInt(ne(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(ee(t).find("._pendo-simple-text").getParent()||ee(n).find("._pendo-simple-text").getParent())[0],n=s-u,"border-box"!==K.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px");{var u;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=ae.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),u=K.get(e,"children")[0],r&&u&&-1!==(u.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||d||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:a,initializeFlexRows:function(e,t,n){var i,r=function(e){return K.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children);0!==r.length&&(i=ae.getRowWidth(e),r=ae.wrapFlexElementsInFlexRows(r,e,i),ae.formatFlexRows(r,e,t,n,i))},getRowWidth:c,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||c(t),r=ae.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=Wr(d).width,u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==K.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=ae.createFlexRow()).appendChild(d),a.push(o={row:r,rowWidthUsed:u})),o.row.appendChild(d)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||c(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),ae.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));ae.setElementHorizontalAlignment(s.row.children,u,n),ae.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:d,flexAllThings:function(e,t){e=ee("#"+e,t)[0];e&&(n(e),ae.flexElement(e))},flexElement:function(e){e=ee("[data-pendo-display-flex]",e);K.each(e,function(e){var t=ae.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");ae.initializeFlexRows(t,n,e)})},maintainAspectRatios:n};function a(e){return ee(["._pendo-button",".pendo-block-wrapper","._pendo-multi-choice-poll-select-border","._pendo-text-subTitle","._pendo-text-paragraph","._pendo-text-title","._pendo-text-custom","._pendo-close-guide","> ._pendo-simple-text","div._pendo-resource-center-module-list-item-text-container","._pendo-resource-center-right-caret",'[id^="pendo-onboarding-guide-progress-circle"]','[id^="pendo-task-list-progress-circle"]','[id^="pendo-a11y-list-item-button-block"]',"._pendo-resource-center-onboarding-module-listed-guide-link","._pendo-home-view-bubble"].join(","),e)}function t(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function s(e,t){for(var n=(e=Array.prototype.slice.call(e)).slice(0,t),i=0,r=0;r<n.length;r++)i+=n[r].offsetWidth;return i}function c(e){var t=Wr(e).width,e=ne(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function d(e){o(e);var t=re(e);if(0===t.width||0===t.height)return!0;if(!e.style||"visible"!==e.style.visibility)for(var n=e,i=e.id||"",r=0;0!==i.indexOf("pendo-g-")&&(o(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function o(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function n(e){var n="data-aspect-ratio",e=ee("["+n+"]",e);K.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}}(),Lc;function Fc(){return!C.designer&&m.get("disableGuidePseudoStyles")}function Pc(e,t,n){return e&&e.templateName?Vu.buildNodesFromTemplate(e.templateName,e,t,n,Bc):"style"===e.type&&Fc()?[]:[Bc(e,t,n)]}function Gc(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),X.info(e),new Error(e)}function Dc(n,i,r,o){var a={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,dir:!0,"for":!0,frameborder:!0,href:!0,id:!0,loading:!0,name:!0,placeholder:!0,placement:!0,rows:!0,role:!0,sandbox:!0,scoped:!0,src:!0,start:!0,style:!0,tabindex:!0,target:!0,title:!0,type:!0,value:!0},s={embed:{src:!0}},d=/^data-/,u=/^aria-/,e=K.keys(n);return K.reduce(e,function(e,t){return s[o]&&s[o][t]&&Gc(t,r,i,o),a[t]||d.test(t)||u.test(t)||Gc(t,r,i),e[t]=n[t],e},{})}function Bc(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=Dc(n.props,i.id,i.guideId,n.type);var t,r=ee(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return ee(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&wc.attachScrollHandlers(i,uc),cc(i);if(K.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||m.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==gt.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(C.designer||(n.css=jc(n.css)),(t=m.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=zc(n.css):r.text(zc(n.css))),n.svgWidgetId&&Yu.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)$c(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=T(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(K.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=No(oe()),d=s!==document,u=0;u<n.children.length;u++){var c=Pc(n.children[u],i,e);K.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):d?((t=new CSSStyleSheet).replaceSync(e[0].innerHTML),s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject.adoptedStyleSheets.push(t):s.adoptedStyleSheets=[t]):(ee.addClass(e[0],"pendo-style-".concat(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){Wc(e,i)}):Wc(r[0],i),r}function Wc(e,t){var n=e.id&&-1!==e.id.indexOf("badge"),i=!!e.getAttribute("src"),r=e.className&&0<=e.className.indexOf("bb-control"),o=e.tagName&&e.tagName.toLowerCase(),a=e.className&&0<=e.className.indexOf("_pendo-video");("img"===o&&i&&!n&&!r||"iframe"===o&&t&&!a)&&"lazy"!==e.getAttribute("loading")&&(t.attributes&&!t.attributes.imgCount?t.attributes.imgCount=1:t.attributes&&t.attributes.imgCount&&t.attributes.imgCount++,Uc(ee(e),t))}function Uc(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=$u(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&ee("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(Tc(t,i.guideElement),_c(t,i.guideElement),ae.flexAllThings(t,i.guideElement),e=i.getGuide(),K.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===K.get(e,"attributes.resourceCenter.moduleId")||(Ac(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(_c(t,i.guideElement),ae.flexAllThings(i.containerId,i.guideElement))),"tooltip"===i.attributes.calculatedType&&wc.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",ee.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=ee("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&wc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",ae.flexAllThings(i.containerId,i.guideElement)):X.info("Failed to find guideContainer for id: "+i.containerId)})}function $c(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?C.designerv2&&C.designerv2.designerActions&&C.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function jc(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)K.contains(t,e[i].selector)||n.push(e[i]);return n}function zc(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=zc(n[r].styles):K.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function Zc(t){K.each(document.head.childNodes,function(e){e&&ee.hasClass(e,"pendo-style-".concat(t))&&mo(e)})}var Vc=function(){var e=window.navigator;return((K.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Yc="meta",Hc=function(e){return void 0!==(e="object"==typeof e?Rt(e):e)&&e.toString&&(e=e.toString()),""+(K.isNumber(Lc)?Lc:vi(Yc))!==e},Kc=K.compose(JSON.parse,JSON.stringify),Xc=function(e){var t=K.extend({},e.visitor),n=K.extend({},e.account),e=K.extend({},e.parentAccount);return t.id===Qn&&(X.info("Missing visitor id."),delete t.id),Kn(n.id)&&Kn(e.id)&&(ni(n.id)?e.id=n.id.split(ti)[0]:n.id=""+e.id+ti+n.id),Kn(n.id)&&(n.id=""+n.id),Kn(t.id)?t.id=""+t.id:t.id=Q({generate:!0}),t.language=Vc(),{visitor:Kc(t),account:Kc(n),parentAccount:Kc(e),date:Jc(),version:C.VERSION}},Jc=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return e=(t=t<10?"0"+t:t)+"/"+(n=n<10?"0"+n:n)+"/"+e.getFullYear()},qc=function(e){(e=K.isObject(e=void 0===e?{}:e)?e:{}).jwt&&e.signingKeyName&&(t=za.getJwtOptions(e,"updateOptions"))&&(za.set(K.pick(e,"jwt","signingKeyName")),e=t),e=Xc(e),q.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t=K.clone(rl()),n=(m.setLocalConfig(K.extend({},m.getLocalConfig(),e)),q.commit("metadata/setMetadata",e),rl()),i=(Kn(e.visitor.id)&&(C.identify(e.visitor.id,e.account.id),e.visitor.id=Q(),e.account.id=fi()),Rt(e)),r=Hc(i);return Lc=i,r&&mi(Yc,i),{options:e,hashChanged:r,storeChanged:!K.isEqual(t,n)}},Qc=wi(function(e){e=qc(e);y.metadata.trigger(e)}),el=wi(function(e,t){K.isObject(e)?Qc(e):oi(e,t)}),tl=function(){var e=ee("script");return nl(e)&&"extension"!==_e()},nl=function(e){var t=new RegExp("/agent/static/"+C.apiKey+"/pendo\\.js$");return!K.any(e,function(e){return t.test(e.src)})},il=function(){var e=m.get("blockAgentMetadata");return e!==undefined&&e};function rl(){return q.getters["metadata/metadata"]()}function ol(){return JSON.parse(JSON.stringify(rl()))}function al(e){var t=e.data[0],n=m.getLocalConfig()||{};Ii(e)?(qn([Yc]),q.commit("metadata/reset",t)):(n.visitor=K.extend({},n.visitor,{id:t.visitor_id}),n.account=K.extend({},n.account,{id:t.account_id}),m.setLocalConfig(n),q.commit("metadata/setMetadata",n))}y.identify.on(al);var sl={Launcher:{addBehavior:K.noop},Metadata:{getMetadata:rl},Util:{documentScrollTop:Mr,documentScrollLeft:Lr,getOffsetPosition:ie},Events:y,JWT:{getJWT:za.get}};function dl(e,t){var n=sl[e]||{};K.extend(n,t),sl[e]=n}var ul={},cl=function(n){var t=[],i=[],r={};function o(t){var e;return!!K.every(["name","version","use","type","uri"],K.partial(K.has,t))&&(e=t.use,e=r[e]?r[e].validators:[],K.every(K.map(e,function(e){return e(t)})))}function a(e){var t;return"behavior"===e.use?!!e.uri(n,sl)&&(i.push(e),!0):(t=e.use,!!(t=r[t]?r[t].handler||K.identity:null)&&((e=t(e))&&i.push(e),!!e))}return n.tagExtension=function(e,t){e=n.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},n.findExtensionByTag=function(t){return K.find(i,function(e){return K.contains(e.tags,t)})},n.findExtensionByName=function(e){return K.findWhere(i,{name:e})},n.filterExtensionsByUse=function(t){return K.filter(i,function(e){return e.use===t})},n.findExtensionByNameAndProvider=function(t,n){return K.find(i,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},n.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],r[e]={handler:t,validators:n}},n.getExtensionFrames=function(){return K.reduce(i,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=K.filter(e,o)).length&&(t=function n(e){if(!e.length)return e;var t=K.filter(e,a);if(t.length)return n(K.difference(e,t));return e}(t.concat(e)))}}(ul),se=function(){return{initializeResourceCenter:function(r){if(!(f=u(r)))return J.resolve();if(q.getters["frames/isShownInAnotherFrame"]()(f.steps[0]))return J.resolve();if(se.isFullyCustom(f))return f.hasResourceCenterContent=!0,J.resolve();var e=c(f,r),t=K.reduce(e,function(e,t){return d(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(ku.validate(f).then(K.noop,function(){f.launchMethod="api"})),f.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},K.forEach(i(),function(e){var t=ul.findExtensionByNameAndProvider("chat",e),t=(t&&I(e,t),ul.findExtensionByNameAndProvider("helpcenter",e));t&&I(e,t)}),K.forEach(e,function(t){var e=t.attributes.resourceCenter,n=e.children,i=e.moduleId,e=("IframeModule"===i&&(t.hasResourceCenterContent=!0),"SandboxModule"===i&&(t.hasResourceCenterContent=!0),"IntegrationModule"===i&&(t.integrationConfig=l(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&p(e.integrationName,e.integrationProvider),K.reduce(n,function(e,t){var n=K.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(f.attributes.notifications.individualCounts[t.id]=0,K.forEach(e,function(e){F(e)||e.isControlGroup()||f.attributes.notifications.individualCounts[t.id]++}));-1<K.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&K.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),f.modules=e,f.badgeHidden=!0,J.all(t)["catch"](function(){return f=null,X.error("Failed to load one or more Resource Center modules"),J.resolve()})},findResourceCenterHomeView:u,findResourceCenterModules:c,replaceResourceCenterContent:n,renderResourceCenterModule:function(e,t){n(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){ee("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?se.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(se.showResourceCenterEmptyState(),K.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=ee("#pendo-resource-center-empty-state-container");e&&e.length&&ee(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=ul.findExtensionByNameAndProvider(e,t);return e?(n=ee(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):X.info("could not find target element for "+t+" integration"):X.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:p,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=se.getResourceCenterContainer())&&(e=ee(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=ee(e);e.css({display:"none"}),e.appendTo(oe())})},getResourceCenter:t,getResourceCenterContainer:E,getResourceCenterBadge:r,addNotificationBubbleToResourceCenterBadge:U,addNotificationBubbleToTargetElement:$,updateNotificationBubbles:function(){var e=f,t=K.get(e,"attributes.notifications");if(t){var n=O(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Z(),t.totalUnseenCount=n;else{G();var i=n!==t.totalUnseenCount;if(i||!R(s)){if("badge"===e.launchMethod){i=r();if(!i)return;U(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&K.get(e,"attributes.activation.selector")){i=ee(e.attributes.activation.selector);if(!i.length)return;$(i[0],e.attributes.notificationBubble,n),te(window,"resize",K.debounce(k,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Z,updateNotificationBubbleCount:L,updateNotificationBubbleOnHomeView:D,updateOrCreateNotificationBubble:N,hexToRgb:x,doesIntegrationExist:l,calculateTotalNotificationCount:O,updateNotificationBubblesOnHomeView:G,createNotification:j,appendNotificationBubble:z,hasAnnouncementBeenSeen:F,clearAnnouncementUnseenInterval:h,createAnnouncementUnseenInterval:m,findShownResourceCenterModule:function(){var e=se.getResourceCenterContainer();if(e){e=ee(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=K.find(qd(),function(e){return e.id===t});if(K.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:V,repositionResourceCenter:function(){var e=se.getResourceCenterContainer();{var t,n,i;e&&(i=se.findResourceCenterHomeView(qd()).steps[0],t=K.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(K.get(i,"domJson.props.style.bottom",0),10),i=parseInt(K.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=lo().height-n-i)<=t&&(e.style.height=(n-10).toString()+"px"),i=parseInt(e.style.height,10),i=isNaN(i)?0:i,t<n)&&t!==i&&(e.style.height=t.toString()+"px")}Cc(ee(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;q.getters["frames/isLeader"]()&&1<(e=K.unique(K.compact([].concat(K.toArray(ee("._pendo-resource-center-badge-container"))).concat(K.toArray(ee("._pendo-resource-center-badge-container")))))).length&&function(e){var t=re(e[0]),e=re(e[1]);return So(t,e)}(e)&&(t=ie(e[0]).width+5,n=ie(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return K.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=E();if(t){o=lo().width,r=ee(t),e=ee(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(ne(r[0]).width,10),o<i&&(i=parseInt(t.style.left,10),i=isNaN(i)?0:i,t=parseInt(t.style.right,10),t=isNaN(t)?0:t,o=o-t-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=ee('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=ee(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=ne(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),ee('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(i=ne(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(ne(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=ee(l),l=(p.css({"max-width":"none"}),ne(l)),h=parseInt(l.width,10),l=u-d-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:I,renderNativeIntegration:T,isSupportedNativeIntegration:v,handleNativeIntegrationContinuation:_,isProviderInstalled:y,adjustNotificationBubbleForResize:k,getNotificationBubbleDefaultCss:M,getModuleId:P,isIframeModule:function(e){return"IframeModule"===P(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===P(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===P(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===P(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!se.isSupportedNativeIntegration(e.integrationProvider)||se.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=u(e);if(!n)return J.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return J.resolve();if(se.isFullyCustom(n))return J.resolve();var t=c(n,e),i=[],r=K.indexBy(e,"id");return K.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=K.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),K.each(e,function(e){d(e)&&i.push(e.steps[0].fetchContent(!0))}))}),J.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=ee('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=ee('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===K.get(t,"data-localization-direction",!1),e=K.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=K.get(t,"style.left",!1),e=K.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:B,resetBadgeAriaLabel:function(){var e=se.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:W,updatePseudoStyleSelectors:Y,hideRCBadge:H};var f,e,g,s,o,a;function d(e){return e.steps&&e.steps.length&&K.isFunction(e.steps[0].fetchContent)}function u(e){var e=K.filter(e,function(e){return K.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=K.find(e,function(e){return"staged"===e.state});return t||e[0]}function c(t,e){return K.filter(e,function(e){return e&&!e.isFrameProxy&&K.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function n(t,e,n,i){if(void 0===i&&(i=!0),!g){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),E());if(e){var a=ee(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=K.find(qd(),function(e){return e.id===t}),c=(t!==f.id?(Zc(K.get(f.activeModule||f,"steps.0.id")),f.activeModule=u):(s=f.activeModule,Zc(K.get(s,"steps.0.id")),delete f.activeModule),K.get(u,"attributes.resourceCenter.integrationProvider")),l=(v(c)&&T(c),u.steps[0]),c=Y(l.domJson),c=(c.props["data-pendo-guide-id"]=u.id,Bc(c,l)),p=c[0],r=(-1===p.id.indexOf("pendo-g-")&&(p=c.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=r,a.style.transition=r,"left"===o?p.style.left=e.offsetWidth+"px":"right"===o&&(p.style.left=-1*e.offsetWidth+"px")),n&&(ee(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),ee(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?ee(p).insertBefore(r):ee(p).appendTo(e),l.guideElement=ee(e),l.elements.push(l.guideElement[0]),se.adjustResourceCenterWidth(p),"AnnouncementsModule"===P(u)&&l.guide.guidesInModule?(_c(r=K.reduce(l.guide.guidesInModule,function(e,t){var n;return K.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=ee(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),K.each(r,function(e){ae.flexAllThings(e,l.guideElement)})):ae.flexAllThings("pendo-resource-center-container"),Cc(ee(e)),p.style.left="0px",!n){g=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Dt(function(){ee(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),g=!1},200)}catch(h){throw g=!1,h}}return"AnnouncementsModule"===P(u)&&(m(),r=Vu.getGuidesInResourceCenterModule(u,qd()),(n=K.reduce(r,function(e,t){return t.steps&&t.steps.length&&Wu.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(K.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=ee(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return K.each(K.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return ee(document.createElementNS(i,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:e})},t=ee(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),ee(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),J.all(n).then(function(){var e=J.defer();return Dt(e.resolve,500),e.promise}).then(function(){f.activeModule===u&&se.renderResourceCenterModule(u,i)})),se.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function h(){window.clearInterval(e),e=null}function m(){e=e||window.setInterval(function(){var e=E();if(!e)return h();e=ee(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return h();var t=ee(e).find('ol[id^="pendo-list"]');if(!t.length)return h();var n=re(t[0]),i=ee(t).find("li");if(!i.length)return h();for(var r=e.attr("data-pendo-guide-id"),o=f.attributes.notifications.individualCounts[r],a=n.height/3,s=re(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=ee(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(re(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=K.find(qd(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),ke(10)?u.find(".pendo-unread-announcement-mini-bubble").remove():(c[0].style.visibility="hidden",c[0].style.opacity="0",c[0].style.transition="visibility 0s 2s, opacity 2s linear"),F(l)||o--,L(o,r)),l.steps[0].seenState="advanced",Of(l.id,l.steps[0].id,Q(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Lf(l.id,l.steps[0].id,Q(),"advanced",l.language)}}},500)}function l(e,t){return ul.findExtensionByNameAndProvider(e,t)}function p(e,t){e=ul.findExtensionByNameAndProvider(e,t);if(!e)return X.info(t+" integration has not been loaded into the agent");v(t)&&y(t)?f.hasEligibleNativeIntegrationModule=!0:(Co((t=e.getFrame())[0])||t.appendTo(oe()),t.css({display:"none"}))}function i(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function v(e){return!!e&&0<=i().indexOf(e)}function y(e){return!!e&&null!==(e=b(e))&&K.isFunction(window[e])}function b(e){if(!e)return null;switch(e){case"zendesk-chat":case"zendesk-messaging":case"zendesk-native-kb":return"zE";case"intercom-chat":return"Intercom";case"drift-native-chat":return"drift";default:return null}}function I(e,t){var n,i,r;e&&(y(e)?w(e,t):(e=e,t=t,"function"==typeof Object.defineProperty&&null!==(i=b(e))&&(o&&o[i]?o[i][e]||(o[i][e]={installed:!1,integrationObj:t}):((o=o||{})[i]=((n={})[e]={installed:!1,integrationObj:t},n),Object.defineProperty(window,i,{get:function(){return r},set:function(e){r=e,K.forEach(o[i],function(e,t){var n=e.integrationObj;!e.installed&&y(t)&&(e.installed=!0,w(t,n),p(n.name,t),K.forEach(f.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===n.name&&e.integrationConfig.data.provider.name===t&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0})))))}function w(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=S(i);C(n,"webWidget","hide"),C(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),C(n,"webWidget:on","close",function(){C(n,"webWidget","hide"),A()}),f.isInProgress()&&_(f.activeModule),C(n,"webWidget:on","chat:unreadMessages",function(e){L(e,"chat")});break;case"zendesk-messaging":i=t;C(i=i.data.provider.name,"messenger","hide"),C(i,"messenger:on","close",function(){A()}),C(i,"messenger:on","unreadMessages",function(e){L(e,"chat")});break;case"intercom-chat":var r=t;r=S(r),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=r?r[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:r?r[1]:"right"}),window.Intercom("onHide",function(){A()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=rl();window.drift.identify(t.visitor.id,function o(e){var t={};for(var n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{var i,r=o(e[n]);for(i in r)r[i]&&(t[n+"."+i]=r[i])}return t}(t)),window.drift.on("message",function(e){if(!f.isNativeModuleActive)return L(1,"chat")})}),window.drift.on("chatClose",function(e){L(0,"chat"),window.drift.hide(),A()})}}function C(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];try{a&&a[e]||window.zE.apply(null,n)}catch(r){a?a[e]=!0:((t={})[e]=!0,a=t)}}function S(e){e=K.get(e,"data.options.labels.position");return e=e&&e.split("-")}function A(){V(f.activeModule),delete f.activeModule,f.continueToNativeModule=!1}function T(e,t){if(e){var n=rl();if(f.isShown()&&f.hide(),a&&a[e])X.info(e+" integration failed to communicate with API, closing"),se.replaceResourceCenterContent(f.id,undefined,!0),A();else{var i=r();switch(i&&H(i,f),e){case"zendesk-messaging":C(e,"messenger","show"),C(e,"messenger","open");break;case"zendesk-native-kb":C(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),C(e,"webWidget","show"),C(e,"webWidget","open");break;case"zendesk-chat":C(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&C(e,"webWidget","prefill",{email:{value:n.visitor.email}});break;case"intercom-chat":window.Intercom("show"),n&&n.visitor&&n.visitor.email&&window.Intercom("update",{email:n.visitor.email});break;case"drift-native-chat":window.drift.api.openChat(),n&&n.visitor&&n.visitor.email&&window.drift.config({email:n.visitor.email})}L(0,"chat"),!f.activeModule&&t&&(f.activeModule=t).steps[0].onShown("launcher")}}}function _(e){e&&!e.isTopLevel&&(T(K.get(e,"attributes.resourceCenter.integrationProvider")),f.activeModule||(f.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function t(){return f}function E(){return K.get(f,"steps.0.guideElement.0")}function r(){if(f&&f.id)return Kd[f.id]}function x(e){e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function R(e){return e&&K.all(e,function(e){return Co(e&&e.length?e[0]:e)})}function k(){var e,t=se.getResourceCenter(),n=K.get(t,"attributes.notifications");n&&(n=se.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&K.get(t,"attributes.activation.selector")&&(e=ee(t.attributes.activation.selector)).length&&se.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function O(e){return K.reduce(e,function(e,t){return e+t},0)}function G(){var e,t=f;t&&(t=K.get(t,"attributes.notifications"))&&(e=E())&&ee(e).find("._pendo-resource-center-home-list").length&&K.each(t.individualCounts,function(e,t){D(e,t)})}function D(e,t){var n=se.getResourceCenterContainer();n&&(n=ee(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=ee(n[0]).find("._pendo-home-view-bubble"),n=ee(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),ee(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),ee(t[0]).css({display:"none"})))}function B(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function W(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function U(e,t,n){var i=W(n),i=e.getAttribute(i),i=(i&&(B(e),i=i.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",i)),K.get(t,"position","top-left")),r=ne(e),r=(parseInt(r.width,10)||56)/2,o=r/Math.sqrt(2),r=Math.round(r-o)-10,a=r-10,o=Math.round(2*o),r={"top-left":{top:r+"px",left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:r+"px",left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:r+o,left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:r+o,left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},a=e.attributes["data-localization-direction"]||!1,o=se.resourceCenterIgnoreRtl();N(e,t,n,r[i=a&&!o?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function $(e,t,n){var i=Br(e,e),r=Br(e,bo());N(e,t,n,{width:"28px",top:i.top-Math.min(r.top,14)+"px",left:i.left-Math.min(r.left,14)+"px",position:"absolute"},{width:"28px","font-size":"16px","text-align":"center",position:"absolute",right:"0px"})}function N(e,t,n,i,r){var o,a;R(s)?(a=(o=M(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=K.extend(a,i),o=K.extend(o,r),s.bubbleEle.css(a),s.unseenCountEle.css(o),s.unseenCountEle.text()!=""+n&&s.unseenCountEle.text(n)):(a=ee(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&z(s=j(t,n,i,r),e)}function M(e){return{defaultBubbleCss:{position:"absolute","border-radius":"20px","line-height":"0px",height:"26px","box-sizing":"content-box","background-color":e["background-color"]},defaultUnseenCountCss:{"font-weight":e["font-weight"],"font-family":e["font-family"],height:"100%",position:"relative",top:"50%",color:e.color}}}function j(e,t,n,i){var r,o=M(e),a=o.defaultBubbleCss,o=o.defaultUnseenCountCss,s=(t=t||0,ee(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),d=ee(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),a=K.extend(a,n),n=K.extend(o,i);return s.css(a),d.css(n),ke(10)||Fc()||(r=ee(document.createElement("style")).attr("id","pendo-resource-center-bubble-animation"),i="@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } } "+('.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+("rgb("+(o=x(e["background-color"])).r+", "+o.g+", "+o.b+")")+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"),r.styleSheet?r.styleSheet.cssText=i:r[0].innerHTML=i),d.text(t),{bubbleEle:s,unseenCountEle:d,styleEle:r}}function z(e,t){e.styleEle&&e.styleEle.appendTo(t),e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Z(){var n=s?s.bubbleEle:ee(".pendo-resource-center-badge-notification-bubble"),i=s?s.styleEle:ee("#pendo-resource-center-bubble-animation");n&&K.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&K.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),s=null,se.resetBadgeAriaLabel()}function L(e,t){var n=f;n&&(n=K.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,se.updateNotificationBubbles())}function F(e){return!(!K.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function V(e){var t=K.get(e,"attributes.resourceCenter.isModule",!1)?e:se.findShownResourceCenterModule();t&&(t=K.first(t.steps),uf(t));t=(K.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:se.findResourceCenterHomeView(qd())).steps[0];return uf(t)}function P(e){return K.get(e,"attributes.resourceCenter.moduleId")}function Y(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|"),n=new RegExp("#((".concat(t,")[^:]*)")),t=zu(e,function(e){return e.css&&e.css.length});return K.forEach(t,function(e){K.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function H(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Kd[t.id])}}(),ll=1e4,pl="lastStepAdvanced";function hl(e){q.dispatch("guideState/updateLastGuideStepSeen",e),q.dispatch("guideState/write"),q.dispatch("frames/changeLastGuideStepSeen",e)}function fl(){var e=[];return q.dispatch("guideState/init"),e.push(te(window,"focus",gl)),e.push(te(window,"storage",function(e){q.dispatch("guideState/storageChanged",e)})),function(){return K.each(e,function(e){e()})}}function gl(){q.dispatch("guideState/regainFocus")}function ml(){return q.state.guideState.lastGuideStepSeen}var vl={actions:{init:function(e){e.getters.storage().registry.addLocal(pl),e.commit("setScopedStorageKey",An(e.state.storageKey)),y.identify.on(function(e){Ii(e)&&qn([pl])})},load:function(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&K.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire:function(n){K.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire:function(n){var i=n.getters.now();K.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply:function(o){var a,s=K.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),K.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((!a||e.time>a.time)&&(a=e),(i=s[i])&&(t=K.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(X.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(X.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(X.info("making sure that seenReason = '"+e.reason+"' for "+n+": "+r),t.seenReason=e.seenReason),e.dismissCount!==undefined&&t.dismissCount!=e.dismissCount&&(t.dismissCount===undefined?t.dismissCount=e.dismissCount:t.dismissCount=Math.max(e.dismissCount,t.dismissCount),X.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=K.indexOf(i.steps,t),K.each(i.steps.slice(0,e),function(e){K.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",K.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen:function(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen:function(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=K.some(e.getters.guideList(),function(e){return e.id===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),C.lastGuideStepSeen=t))},updateThrottlingState:function(e,t){e.commit("setThrottlingState",t)},write:function(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(K.map(e.state.steps,function(e){return K.extend({tabId:t},e)}));X.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged:function(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(a){}e.getters.storageChangedInOtherTab()(o)&&(_l(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus:function(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(El(),xl())),n&&om()}},mutations:{expireStepState:function(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState:function(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey:function(e,t){e.scopedStorageKey=t},setLastGuideStepSeen:function(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen:function(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange:function(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt:function(e,t){e.lastGuideRequestAt=t},setThrottlingState:function(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:ll,storageKey:pl,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now:function(){return v()},storage:function(){return h},guideList:function(){return A()},tabLostFocus:function(e){return!!e.receivedStateChangeAt},isGuideRequestStale:function(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab:function(n,e,i){return function(e){var t=K.get(i,"frames.tabId");return!!e&&!!((e=K.max(K.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix:function(){return m.get("crossAppGuideStorageSuffix")},visitorId:function(){return Q()}}},yl=function(){return{canDisplay:function(e,t,n){if(n&&n.enabled&&K.isFinite(t)){t=i(t,n);if(K.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=m.get("appAutoOrdering")||[].concat(m.get("leaderKey"));{var i;n.length&&(i=q.getters["frames/autoOrdering"](),n=K.reduce(n,function(e,t){return e.concat(i[t]||[])},[]),t=K.uniq(n.concat(t)))}var r,o,n=function(e){e=K.defaults(K.groupBy(e,function(e){return s(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return K.isArray(t)&&t.length?(n=K.indexBy(e,"id"),t=K.reduce(t,i,[]),K.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(K.filter(e,a),t));return K.find(e,function(e){return e.isTraining})?(t=m.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],K.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=yl.lastDismissedTime(t),n=yl.canDisplay(v(),n,t.throttling);if((s(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:i};function a(e){return e&&/auto/.test(e.launchMethod)}function s(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||K.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function i(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return K.isNumber(n)&&Pt(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:K.isNumber(n)?(new Date).getTime():void 0}}();function bl(t){return y.guideSeen.on(function(e){var e=e.data[0].props||{};"permalink"===e.reason&&(e=t(e.guide_id))&&(e.shownFromPermalink=!0)}),{tryDisplay:function(){var e=n(window.location.href),t=this.getGuideFromUrl(e);if(t&&this.shouldShowPermalinkGuide(t))return e=this.getStepFromUrl(e,t),this.showPermalinkGuide(t,e)},getQueryString:n,getGuideFromUrl:function(e){e=e.pendo||e.c__pendo;return e?t(e):null},getStepFromUrl:function(e,t){e=e.step;return e?function(e,t){return K.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function n(e){var t=hr(e).substring(1),t=vr(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=hr(e.substring(n+1)).substring(1),K.extend(t,vr(n))),t}}var Il=K.memoize(function(){return bl(T)});function wl(e,t){var e=K.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}var Cl=function(){function e(){this.name="autoDisplay",this.queue=[]}return e.prototype.markDirty=function(){var e;Cu()&&(this.queue.push("permalink","continuation"),(e=this.queue).push.apply(e,yl.sortAndFilter(A(),C.autoOrdering)))},e.prototype.process=function(e){if(Vh())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Il().tryDisplay(C);if("continuation"===t){var n=wl(A(),ml());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!wl(A(),ml()))return e.saveContext(t),yl.tryDisplayGuide(t,C);this.cancel()}}},e.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&X.warn("Auto display ("+e.id+") timeout exceeded")},e.prototype.cancel=function(){this.queue.length=0},e.prototype.isComplete=function(){return!this.queue.length},e}(),Sl=null,Al=500,Tl=function(e){Sl=K.delay(function(){Sl=null,xl()},e=e||Al),C.guidesProcessingThreadHandle=Sl},_l=function(){Sl&&(clearTimeout(Sl),Sl=null,C.guidesProcessingThreadHandle=Sl),q.dispatch("guideUpdate/stopScheduledUpdate")},El=function(){Jh(),$l.cancel();for(var e=0;e<Hd.length;e++){var t=Hd[e];t.parentNode.removeChild(t)}Hd.length=0,q.dispatch("guideUpdate/stopObserver"),y.guideLoopStopped.trigger()},xl=function(){if(_l(),ng())X.info("guides are loading.",{contexts:["guides","loading"]});else if(jg())X.info("guides are disabled.",{contexts:["guides","disabled"]});else if(zg())X.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!q.getters["guideState/tabLostFocus"]())try{var e=ou();e&&0!==e.length&&(q.dispatch("guideUpdate/startObserverIfNeeded"),$l.isComplete()&&$l.markDirty(),Su())&&$l.process()}catch(t){$l.cancel(),X.critical("ERROR in guide-loop",{error:t})}finally{$l.paused||Rl()}};function Rl(){$l.isComplete()?(q.state.guideUpdate.useObserver&&!q.state.guideUpdate.needsUpdate||Tl(),y.guideUpdateComplete.trigger()):Tl(50)}var kl=function(){var e=m.getLocalConfig();m.get("delayGuides")&&(delete e.delayGuides,m.setLocalConfig(e)),m.get("guides.delay")&&(delete e.guides.delay,m.setLocalConfig(e)),xl()},Ol=function(){jg()||Vg(!0),El(),qf()},Nl=function(){function e(e,t){this.dirty=!1,this.name=e,this.processFn=K.isFunction(t)?t:K.noop}return e.prototype.markDirty=function(){this.dirty=!0},e.prototype.process=function(){this.processFn(),this.dirty=!1},e.prototype.cancel=function(){this.dirty=!1},e.prototype.isComplete=function(){return!this.dirty},e}();function Ml(){var t=dm();t&&(K.each(t.steps,function(e){Ll(t.guide,e)}),t.guide.checkForHiddenGroupSteps())}function Ll(e,t){var n,i,r,o,a;t.isLocked()||q.getters["frames/isShownInAnotherFrame"]()(t)||(n=t.element,i=t.targetElement,o=t.guideElement,r=ee("."+Uh),(o=o.find("#pendo-guide-container")[0])&&o.textContent&&(o=ne(o).fontSize,t.attributes.currentTextZoomFontSize!==o)&&(t.attributes.currentTextZoomFontSize&&t.redraw(),t.attributes.currentTextZoomFontSize=o),t.elementPathRule&&i&&!s.matchesSelector(i,t.elementPathRule)?t.hide():(o=b(n),a=!0,i&&o&&t.elementContainsRulesList&&(o=a=wf(i,t.elementContainsRulesList)),n&&(o||r.hasClass("mouseover"))?t.checkPlacement():("tooltip"===t.type||"tooltip"===t.attributes.calculatedType)&&Go(n)&&a||t.hide()))}var Fl=function(){function e(){this.name="badge",this.queue=[]}return e.prototype.markDirty=function(){this.queue.push.apply(this.queue,K.filter(Qd(A()),lu))},e.prototype.process=function(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()},e.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();X.warn("Badge ("+e.id+") timeout exceeded")},e.prototype.cancel=function(){this.queue.length=0},e.prototype.isComplete=function(){return!this.queue.length},e}();function Pl(i,e){var r,o,t,n,a;se.isFullyCustom(i)||(r=!1,o=[],t=K.filter(i.modules,function(e){var t,n;return!!e&&(!!se.isIframeModule(e)||!!se.isSandboxModule(e)||(se.isIntegrationModule(e)?!!se.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=K.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=Rt(K.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:K.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=Rt(K.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,se.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=a),e(i,t,o),1===t.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=t[0].id,a=!i.activeModule&&n,e=i.activeModule&&i.activeModule.id!==t[0].id,a||e||r)&&se.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=K.find(t,function(e){return e.isContinuation(ml())}),a=K.get(n,"attributes.doNotResume"),e=K.get(n,"attributes.resourceCenter.integrationProvider"),se.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=K.find(t,function(e){return e.id===i.activeModule.id}))&&r&&se.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||se.replaceResourceCenterContent(i.id)),se.repositionResourceCenter())}function Gl(e,t){var n,i,r,o;se.isFullyCustom(e)||(n=[],o=[],(r=K.find(e.modules,function(e){return!!se.isIframeModule(e)||!!se.isSandboxModule(e)||!!se.isIntegrationModule(e)&&(!!se.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&n.push(r),r=K.flatten(K.pluck(e.modules,"guidesInModule")),o=K.filter(K.compact(r),function(e){return e.control}),!n.length&&(i=K.reduce(e.modules,function(t,n){return K.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=K.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=K.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=i[(r=K.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&n.push(r),t(e,n,o))}function Dl(e,t,n){var i,r,o=Kd[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),r=-1!==e.launchMethod.indexOf("extensionIcon"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),o&&se.hideRCBadge(o,e),K.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):(i||r)&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(o||(K.isFunction(e.placeBadge)&&e.placeBadge(),o=Kd[e.id]),o&&o.show(),e.badgeHidden=!1)}function Bl(e){var t,n;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,n=e.activeModule,t=K.get(n,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=n&&se.isSupportedNativeIntegration(t),se.isFullyCustom(e)?e.hasResourceCenterContent=!0:((e.isShown()||!q.getters["frames/isLeader"]()?Pl:Gl)(e,Dl),e.isNativeModuleActive&&(e.isShown()&&e.hide(),n=Kd[e.id])&&se.hideRCBadge(n,e),"dom"===e.launchMethod&&(se.updateNotificationBubbles(),se.adjustNotificationBubbleForResize())))}var Wl=function(){function e(e){void 0===e&&(e=50),this.startTime=-1,this.timeLimit=e,this.context=null}return e.prototype.start=function(){this.context=null,this.startTime=v()},e.prototype.isTimeExceeded=function(){return v()-this.startTime>this.timeLimit},e.prototype.saveContext=function(e){this.context=e},e.prototype.getContext=function(){return this.context},e}(),Ul=function(){function e(e){this.phases=e,this.queue=[],this.paused=!1}return e.prototype.markDirty=function(){for(var e=0,t=this.phases;e<t.length;e++)t[e].markDirty();this.queue=this.phases.slice()},e.prototype.runGuidePhase=function(){for(var e,t,n,i=this.queue[0],r=new Wl(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));$t(e)?(t=this.updateId,n=K.bind(function(){this.updateId===t&&(this.paused=!1,xl())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()},e.prototype.addPhase=function(e,t){t=t||e.name||this.phases.length,K.isFunction(e)&&(e=new Nl(t,e)),this.phases.push(e)},e.prototype.removePhase=function(t){var e=K.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)},e.prototype.timedOut=function(){return!!this.iterationStartTime&&v()-this.iterationStartTime>q.state.guideUpdate.iterationTimeLimit},e.prototype.ejectGuide=function(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=m.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&tu.addGuide(e)},e.prototype.process=function(){var e=v();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,q.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=v(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)},e.prototype.complete=function(e){q.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),q.commit("guideUpdate/completeUpdate",e),this.cancel()},e.prototype.cancel=function(){this.updateId=null,this.paused=!1;for(var e=this.queue.length=0,t=this.phases;e<t.length;e++){var n=t[e];K.isFunction(n.cancel)&&n.cancel()}},e.prototype.isComplete=function(){return!this.queue.length},e}(),$l=new Ul([new Fl,new Nl("resourceCenter",function(){Bl(se.getResourceCenter())}),new Nl("frameVisibility",function(){q.dispatch("frames/checkFrameVisibility")}),new Nl("guideShowing",Ml),new Cl]);function jl(){$l.addPhase.apply($l,arguments)}function zl(){$l.removePhase.apply($l,arguments)}function Zl(){var s={};return K.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=K.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}var Vl="debug-enabled";function Yl(){try{return JSON.parse(h.read(Vl,!0)||bn(Vl))||{}}catch(e){return{}}}function Hl(e){var t;return void 0===e&&(e=!0),t=q&&q.getters&&q.getters["debugger/debuggingEnabled"]?q.getters["debugger/debuggingEnabled"]():!0===Yl().enabled,e?t:t?"Yes":"No"}var Kl=function(){function e(e,t){this.type=t,this.identificationFn=e}return e.prototype.test=function(e){return this.identificationFn(e)},e}(),Xl=function(){var i={},e=function(e){var e=e.data,t=e[0];e[1];var n=T(t.guideId),e=(K.find(i,function(e){return e.GuideType.test(n)})||{}).handler;e&&e(n,"resourceFetchFail")};return{run:function(){y.resourceFetchFail.on(e)},stop:function(){y.resourceFetchFail.off(e)},addTypeHandler:function(e,t){K.isFunction(t)?i[e.type]={GuideType:e,handler:t}:X.error("Invalid Handler function provided for type ".concat(e.type))}}}(),Jl=(Xl.addTypeHandler(new Kl(lu,"badge"),function(e,t){tu.addGuide(e)}),"_pendo-badge_");function ql(e,t){var n;m.get("disablePrefetch")||(t=K.keys(t)).length&&(n=K.indexBy(e,"id"),K.each(t,function(e){var e=n[e];e&&(e=K.first(e.steps))&&K.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}function Ql(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function ep(i){return function(e){var t,n;return K.get(e,"props.data-localization-direction",!1)&&!i&&(t=K.get(e,"props.style.left","auto"),n=K.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}}function tp(e,t){var n=e?["he","ar"]:[];return function(e){return K.contains(n,t)&&(e.props["data-localization-direction"]=!0),e}}function np(t,n){var e,i,r=vu(n),o=!(null==(o=null==t?void 0:t.attributes)||!o.resourceCenter),a=!1;return o&&(a=null==(e=null==(e=null==t?void 0:t.attributes)?void 0:e.badge)?void 0:e.ignoreRTL),"building-block"===t.attributes.type?(e=K.reduce([tp(o,t.language),ep(a),Ql,Pu,function(e){return Bc(e,{id:n.id,guideId:t.id,isBadge:!0})}],function(e,t){return t(e)},this.domJson)[0],i=e,ee.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=Fu(this.imageUrl),i.className="_pendo-badge "+Jl,o=this.width||13,a=this.height||13,so(i,"width:"+o+"px;height:"+a+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=K.isFunction(n.getGuide)&&n.getGuide(),t=_f(e);!e.isShown()||q.getters["frames/isShownInAnotherFrame"]()(n)?xf(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=K.find(e.steps,function(e){return e.isShown()}),uf(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(K.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){ee.removeNode(i),Zc(t.id),K.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},_f(t)&&(this.toggleAriaExpanded=function(){var e=!!ee("#pendo-resource-center-container")[0],t=ee("button._pendo-resource-center-badge-container")[0]||ee('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=K.constant(n),this.target=K.constant(r),this.element=K.constant(i),this}function ip(){return"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t=this.target(),n=this.element();this.isP2Badge&&so(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&so(n,this.css),t&&t.tagName&&(e=t.tagName.toLowerCase(),/br|input|img|select|textarea/.test(e)?n.parentNode!==t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):n.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(n):"inline-left"===this.position&&t.prepend(n)))}),this}function rp(s){return this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e,t=this.element(),n=ie(this.target()),i=0,r=0,o=0;if(this.offsets&&(i=this.offsets.top||0,r=this.offsets.right||0,o=this.offsets.left||0),!K.get(s,"attributes.resourceCenter",!1)){var a="position:"+(n.fixed?"fixed":"absolute")+";top:"+(n.top+i)+"px;";switch(this.position){case"top-right":a+="left:"+(n.left+n.width-r)+"px";break;case"top-left":a+="left:"+(n.left+o)+"px"}so(t,a)}t.parentNode||(oe().appendChild(t),e=Mo(te,this.target(),fp),this.removeScrollHandlers=function(){fp.cancel(),e()})}),this}function op(){return"over"===this.position&&this.before("show",function(){var e,t=this.element(),n=ie(this.target()),i="position:absolute;top:"+n.top+"px;left:"+n.left+"px;";i+="height:"+n.height+"px;width:"+n.width+"px;",so(t,i+="background-color:transparent;"),t.parentNode||(oe().appendChild(t),e=Mo(fp,t,this.target()),this.removeScrollHandlers=function(){fp.cancel(),e()})}),this}function ap(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Zd(e)};return t.after("show",function(){n||(I(e,"click",i),n=!0)}),t.after("hide",function(){w(e,"click",i),n=!1}),t}function sp(){var t,e,n,i=this.element(),r=this.step(),o=!1;return"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(t=K.throttle(function(e){Ui(e)===i||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className))return!0;if(/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(Ui(e))||n()},50,{trailing:!1}),e=function(e){r.isShown()||xf(r,"badge"),I(document,"mousemove",t),Zd(e)},n=function(e){w(document,"mousemove",t),hu()||uf(r)},this.after("show",function(){o||(I(i,"mouseover",e),o=!0)}),this.after("hide",function(){w(i,"mouseover",e),w(document,"mousemove",t),o=!1})),this}function dp(){var e,t,n,i,s,d=this.element(),u=this.target(),r=!1;return(this.showBadgeOnlyOnElementHover||/hover/.test(this.showOnEvent))&&!hu()&&(e="inline"===this.position?"visibility:visible;":"display:inline;",t="inline"===this.position?"visibility:hidden;":"display:none;",n=K.throttle(function(e){var t,n,i,r,o,a;Ui(e)===u||Ui(e)===d||eo(d,"triggered")||(t=e.clientX,e=e.clientY,n=re(u),i=re(d),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||s()},50,{trailing:!1}),i=function(){so(d,e),I(document,"mousemove",n)},s=function(){w(document,"mousemove",n),so(d,t)},this.after("show",function(){r||(I(u,"mouseover",i),r=!0,s())}),this.after("hide",function(){r&&(w(u,"mouseover",i),r=!1),s()})),this}np.create=function(n){var i=np.findStep(n);if(i)return K.reduce(np.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},np.findStep=function(e){var t=K.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},np.behaviors=[Zl,np,ip,rp,op,ap,sp,dp];var up=function(e,t){var n,i,r=(t=t||Kd)[e.id],o=r?r.step():np.findStep(e);o&&(i=r?r.target():vu(o),(n=K.get(e,"attributes.resourceCenter"))&&!q.getters["frames/canShowRCBadge"]()?r&&K.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(se.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&wf(i,o.elementContainsRulesList)),(i=o.elementPathRule&&b(i)&&s.matchesSelector(i,o.elementPathRule)&&n)?((r=r||np.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),Hl()&&y.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),se.repositionDoubleResourceCenterBadge()))},cp=function(){K.map(Kd,lp),Jd({})},lp=function(e,t){e&&(K.isFunction(e.hide)&&e.hide(),K.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Kd[t.id]},pp=function(e){var t=Kd[e.id];t&&lp(t,e)};function hp(){K.map(Kd,function(e){e&&e.show&&e.show()})}var fp=K.throttle(hp,10);function gp(e){var n;e&&e.length&&(n=K.indexBy(e),K.each(Kd,function(e,t){n[t]||(e.hide(),delete Kd[t])}))}var mp=h.getLocal(),vp="pendo-preview",yp="current-guide-preview",_;function bp(e){return q.dispatch("preview/load"),Ip(e)}function Ip(t){var e=Zp();if(e)return Cp(t),q.dispatch("preview/start",K.extend(e)),h.clear(pl),yn(!1),Ra.lock(),og(Kp),y.startPreview.trigger(),y.leaderChanged.on(function(e){q.dispatch("preview/write"),e.oldLeaderId||om(),q.getters["frames/isLeader"]()||(ee(_).remove(),_=null,t.removeEventListener("message",Tp))}),jl(wp),!0}function wp(){return q.getters["frames/isFollower"]()||Bp(document,A(),ml()),!0}function Cp(e){if(q.getters["frames/leaderExists"]()){if(!q.getters["frames/isFollower"]()){if(_)return!0;K.isFunction(e.addEventListener)&&e.addEventListener("message",Tp),_=Rp(),bo().appendChild(_)}}else y.one("leaderChanged",K.partial(Cp,e))}function Sp(e,t,n){Jh(),q.commit("healthCheck/resetStepStatus",null,{root:!0}),Wu.reset(),om();var i=e[0],i=(i&&K.each(i.steps,function(e){e.seenState=null}),h.clear(pl),xp(null),Zp());return i&&(i=K.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),q.dispatch("preview/restart",i)),Gp(e,t)}function Ap(e){_&&_.style&&(_.style.height=e)}function Tp(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===vp+"::exit"?($p({preventWindowClose:n}),q.dispatch("frames/stopPreview",{preventWindowClose:n})):t===vp+"::restart"?(n=Sp(A(),ml(),e.data.language),q.dispatch("guideState/forceExpire"),q.dispatch("guideState/updateLastGuideStepSeen",n),q.dispatch("frames/restartPreview")):t===vp+"::resize"?Ap(e.data.height):t===vp+"::request-preview-mode-type"&&(n=Vp(),_)&&_.contentWindow&&n&&_.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:n.previewModeType||"NEW_TAB"}},location.origin))}function _p(){return q.getters["preview/isInPreviewMode"]()}function Ep(){return q.getters["preview/isInDesignerPreviewMode"]()}function xp(e){q.dispatch("preview/update",e)}function Rp(){var t=document.createElement("iframe");t.id=vp;return co(t,{border:"none",display:"block !important",height:"70px","min-height":"70px",left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100%","z-index":4e5}),t.onload=function(){m.get("inlineStyleNonce")&&(o=t.contentDocument.createElement.bind(t.contentDocument),t.contentDocument.createElement=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i,r=o.apply(void 0,qt([e],t,!1));return"style"===e&&(i=m.get("inlineStyleNonce"))&&r.setAttribute("nonce",i),r});var o,e=document.createElement("script");e.src=Wh(),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},t}function kp(){var e=Vp();return e?Ep()?(K.each(e.guide.steps,function(t){var e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),K.each(e,function(e){delete t[e]})}),e.guide.showsAfter=null,e.guide.expiresAfter=null,[e.guide]):void 0:[]}function Op(e){var t=Zp();return t?(t.isResourceCenter?Np:Fp)(e,t):e}function Np(e,t){var n=se.findResourceCenterHomeView(e),e=K.filter(e,function(e){return e.id!==n.id}),t=(Pp(n,t.stepId),K.map(e,function(e){return e.launchMethod="launcher",e}));return[n].concat(t)}function Mp(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Lp(e){e.launchMethod="api";e=e.steps[0];e&&(e.seenState="advanced")}function Fp(e,t){var n;return K.each(e,function(e){e.id===t.guideId?n=e:Lp(e)}),Mp(n),n.showsAfter=null,n.expiresAfter=null,Pp(n,t.stepId),e}function Pp(e,t){for(var n=K.find(e.steps,function(e){return e.id===t}),i=n?e.steps.indexOf(n):0,r=0;r<e.steps.length;r++)r<i?(e.steps[r].seenState="advanced",e.steps[r].seenReason="continue"):(e.steps[r].seenState=null,e.steps[r].seenReason=null)}function Gp(e,t){null==t&&(t={});var n=Zp();if(!n)return t;e=K.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Mp(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Dp(e,t){_&&_.contentWindow&&_.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Bp(e,t,n){var i,r,o,a,s,d,u;_p()&&(i=Zp())&&_&&_.contentWindow&&(t&&t.length?(_.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),r=K.find(t,function(e){return e.id===i.guideId}),o=0,a=r.steps.length,s=n||{},K.find(r.steps,function(e,t){return s.guideStepId===e.id&&("dismissed"===s.state||"active"===s.state?o=t:"advanced"===s.state&&s.destinationStepId?o=K.indexOf(r.steps,K.find(r.steps,function(e){return e.id===s.destinationStepId})):"advanced"===s.state&&t===a-1&&(o=a),!0)}),t="dismissed"===s.state,n=a-1<=o,t=t||n,n=n?a-1:o,u=(d=r.steps[n]).isShown(),_.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:nt}},location.origin),_.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:r.previewPages}},location.origin),_.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:r.name,guideAttributes:JSON.stringify(r.attributes),guideLaunchMethod:r.launchMethod,guideActivationSelector:yu(r),isAdoptGuide:r.isTraining,isResourceCenter:i.isResourceCenter,stepId:d&&d.id,currentStepIndex:n,stepCount:a,elementPathRule:d.elementPathRule,elementContainsRulesList:d.elementContainsRulesList,triggerElementPathRule:d.triggerElementPathRule,isShown:u,pageId:d.pageId,completed:t,languageOptions:K.get(i,"languageOptions",[]),currentLanguage:i.language}},location.origin),Up(d,n,_)):Dp(e,{status:404,data:"Guide not found"}))}function Wp(e){var t,n;_&&_.contentWindow&&_.style&&(t=K.first(ee('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(t=ne(t))&&(n={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===t.top?(_.style.top="auto",_.style.bottom="0px",_.contentWindow.postMessage(n,location.origin)):"0px"!==t.bottom&&_.style.top||(_.style.top="0px",_.style.bottom="auto",n.payload.isPreviewBarTop=!0,_.contentWindow.postMessage(n,location.origin)))}function Up(a,t,s){var n,e;a&&s&&s.contentWindow&&(n=a.getGuide().id,(e=K.filter(q.state.frames.frames,function(e){return"hidden"!==e.visibility&&e.guides&&e.guides[n]})).length)&&(e=K.map(e,function(e){return E.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:a.id,guideId:n,currentStepIndex:t})}),J.all(e).then(function(e){for(var t={},n=-1,i=0;i<e.length;i++){var r=JSON.parse(e[i]).errors;if(!r.GUIDE){var o=K.keys(r).length;if(!o){t={};break}-1===n?(t=r,n=o):a.regexUrlRule?!r.PAGE&&o<=n&&(t=r,n=o):o<n&&(t=r,n=o)}}s.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:t}},location.origin)})["catch"](K.noop))}function $p(e){var t=Vp(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),mp.getItem("pendo-navigation-state"));if(q.dispatch("preview/exit"),Jh({stayHidden:!0}),h.clear(pl),Ra.unlock(),ee(_).remove(),ag(),zl(wp),yn(!0),n&&i){mp.setItem(yp,JSON.stringify(K.extend(t,{isExitBackToDesigner:!0})));try{var r=JSON.parse(i),o={target:r.baseUrl,gcsBucket:r.gcsBucket,preloader:!0,DADesigner:r.isDADesigner,host:r.host,forceNativeDesigner:"web"===t.guide.appPlatform};q.dispatch("preview/launchInAppDesigner",o)}catch(err){q.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),om()}function jp(e,t){e=K.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function zp(){return q}var Zp=K.partial(jp,zp,"state.preview.preview"),Vp=K.partial(jp,zp,"state.preview.designerPreview");function Yp(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+zt(e.subscriptionId)+t+zt(e.guideId)+"/preview"}var Hp=function(e){var t;return Wo(e.origin)?(t=Yp(e))?(t={url:e.origin+t+"?url="+zt(f.externalizeURL())+"&apiKey="+C.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),p(t).then(function(e){return e.data.guide})):(X.info("Invalid guide url, exiting preview"),J.reject("invalid guide url")):(X.info("Invalid origin, exiting preview"),J.reject("invalid origin"))},Kp={load:function(e,t){return Jp(e,t)},post:function(e,t,n){return Jp(e,n)},endpoint:function(){return""},usesXhr:function(){return!0}};function Xp(n,t){var e,i;return Wo(n.origin)?(e=Yp(n))?q.getters["frames/leaderExists"]()&&n.apiKey===C.apiKey?(e="".concat(n.origin).concat(e,"?url=").concat(zt(f.externalizeURL()),"&apiKey=").concat(C.apiKey),n.childGuides&&n.childGuides.length&&(e+="&childGuides="+n.childGuides.toString()),Ep()&&(e+="&ignoreGuide=true"),e={url:e,withCredentials:!0},n.headers&&(e.headers=n.headers),i=[],p(e).then(function(e){e=e.data;return Ep()?(i=kp(),e.guide=i[0]):i=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(i=i.concat(e.children)),n.language&&n.language!==K.get(i,"[0].authoredLanguage")&&qp(i,n.language.value),n.watermarkConfig&&(e.guide.isTraining=!0),C.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},C.guideCssUrl=e.guideCssUrl,C.normalizedUrl=e.normalizedUrl,C.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Hp(t)):e}).then(function(e){e.attributes&&e.attributes.isWatermark&&i.push(e),C.guidesPayload({id:t,lastGuideStepSeen:Gp(i,C.lastGuideStepSeen),guides:Op(i)})})["catch"](function(e){return Dp(document,e),J.reject(e)})):(C.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),J.resolve()):(X.info("Invalid guide url, exiting preview"),J.reject("invalid guide url")):(X.info("Invalid origin, exiting preview"),J.reject("invalid origin"))}function Jp(e,t){var n=Zp();return!n||!Yp(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?J.reject():Xp(n,e[1]).then(t)}function qp(e,c){K.forEach(e,function(u){K.forEach(u.steps,function(e){var t=K.get(u,"translationStates."+c+".stepTranslations."+e.id,{}),n=t.domHash,i=t.domJsonpHash,r=t.translationHash,o=t.originalDomJsonHash,a=t.originalDomJsonpHash,s=t.originalBuildingBlockHash,d=t.domHash256,t=t.domJsonpHash256;e.domUrl=Qp(o,e.domUrl,".dom.json",d),e.domJsonpUrl=Qp(a,e.domJsonpUrl,".dom.jsonp",t),e.buildingBlocksUrl=Qp(s,e.buildingBlocksUrl,".buildingBlocks.json"),n&&i&&r&&(e.domUrl=e.domUrl.replace(".dom.json","-"+n+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+i+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+r+"-"+c+".buildingBlocks.json"))})})}function Qp(e,t,n,i){var r,o;if(t)return o=r=(t=t.split("/"))[t.length-1],e&&(o="".concat(e).concat(r.slice(r.indexOf(n)))),i&&-1<(e=o.indexOf("sha256="))&&(o="".concat(o.slice(0,e)).concat("sha256=").concat(i)),t[t.length-1]=o,t.join("/")}var eh=function(){var n=null,i=[],r=function(e){C.apiKey=e+="",n=e};return{getApiKey:function(){return C.apiKey},discoverKeys:function(e){var t=e.apiKey,e=e.additionalApiKeys,e=void 0===e?[]:e;n=null,i=[],t=t,(t=m.get("apiKey",t))&&r(t),t=e,t=m.get("additionalApiKeys",t),i=K.reduce(t,function(e,t){return t&&e.push(t+""),e},[]),i=[].concat(t),C.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys:function(){return C.additionalApiKeys},tamperedWith:function(){return C.apiKey!==n||C.additionalApiKeys!==i}}}(),th=h.getLocal(),nh=function(){var a=nt,n="in-app-designer",i="latest";function e(e){if(!e.ignoreLocalStorageNavigation){var t,e=th.getItem("pendo-navigation-state");if(e&&q.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(err){return}if(!t.apiKey||t.apiKey===eh.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===_e())return e=t.isDADesigner?"da-designer":"in-app-designer",e={target:t.baseUrl,preloader:!0,host:t.host,gcsBucket:t.gcsBucket||e,DADesigner:t.isDADesigner,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},nh.launchInAppDesigner(e),!0}}}return"local"===ot&&(a="https://local.pendo.io:8080"),y.leaderChanged.on(function(){e({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Ep()})}),{launchDesigner:function(e){var t,n="latest",i="designer";h("designer-styles","@keyframes pendoExtensionSlideIn{from{transform:translate3d(-300px,0,0)}to{transform:translate3d(0,0,0);}}#pendo-draggable-handle{z-index:11;line-height: 15px;text-align:center;font-size:20px;letter-spacing:1.5px;position:absolute;width:100%;height:65px;font-size:16px;background-color:transparent;color:#ABE7DB;user-select:none;cursor: move;cursor: grab;cursor: -moz-grab;cursor: -webkit-grab;}#pendo-draggable-handle:active{cursor: grabbing;cursor: -moz-grabbing;cursor: -webkit-grabbing !important;}#pendo-draggable-handle.hidden{display:none;}#pendo-draggable-handle:hover{color:#2EA2A0;}#pendo-designer-container{animation-duration:375ms;animation-name:pendoExtensionSlideIn;animation-timing-function:cubic-bezier(0.4,0.0,0.2,1); box-shadow: 0px 2px 10px rgba(0,0,0,0.15);height:100vh;width:400px;position:fixed;top:0;left:0;overflow:hidden;border-radius:3px;z-index:1000000;}#pendo-mousemove-cover{position:absolute;height:100%;width:100%;top:0;left:0;z-index:9999999999;display:none;}#pendo-designer-container.fullscreen{width:100%;opacity:0.98;}#pendo-designer-container.closed{left:-400px;}#pendo-designer-iframe{background:#3a3c45;border:0px;height:100%;left:0;z-index:10;top:0;width:100%;}"),f("designer-shims",a+"/"+i+"/"+n+"/plugin.js"),C.DESIGNER_VERSION?l(n,i):t=window.setInterval(function(){C.DESIGNER_VERSION&&(l(n,i),clearInterval(t))},100)},launchInAppDesigner:s,localStorageNavigation:e,launchOnToken:function(e){if(!g(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(jt(e)))||{}}catch(t){return{}}}(e[1]),e=d(t),n=c(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),s({target:n,host:e,preloader:!1,sidebarDesigner:!!t.sidebarDesigner}),!0}}},sendMessageToLocalStorage:function(e){var t=document.getElementById("pendo-designer-communication-iframe");t&&t.contentWindow.postMessage(e.data,nh.hostConfig.host)},isValidDesignerHost:r,isValidTarget:o,addCommunicationIframe:function(e,t){e=e||{};K.isFunction(t)||(t=K.noop);var n=c(e),e=u(e),i=(new Date).getTime(),r=(nh.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=p(r,a+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},addStylesToPage:h,hostConfig:{host:a},isDesignerFrame:g,addScriptToPage:f};function r(e){return!!e&&Wo(e)}function d(e){var e=(e=e||{}).host||a,t=r(e),e=t?e:nt;return t||X.info("Invalid host, falling back to "+nt),e}function u(e){var e=(e=e||{}).gcsBucket||n,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:n;return t||X.info("Invalid bucket, falling back to "+n),e}function o(e){return"latest"===e||"beta"===e||"via"===e||"mobile"===e||new RegExp("^[0-9]+.[0-9]+.[0-9]+(-[a-z0-9-]+[a-z0-9]+)?$").test(e)}function c(e){var e=(e=e||{}).target||e.baseFolder||i,t=o(e),e=t?e:i;return t||X.info("Invalid target, falling back to "+i),e}function s(e){if(!g(window.name)&&!C.designerLaunched)if(m.get("disableDesigner"))X.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,o,a=!1;try{a=!!window.top.pendo}catch(s){}nh.crossFrameChannel===undefined&&(nh.crossFrameChannel=E,nh.useCrossFrameChannel=!0),ma()&&a&&!e.allowChildFrame&&!e.selectionOnly?X.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):C.isReady()?(C.designerLaunchTime=(new Date).getTime(),a=d(e=e||{}),i=u(e),r=c(e),n=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+i+"/"+r+"/"+n,nh.hostConfig={gcsBucket:i,baseFolder:r,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:_e(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:eh.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),r=m.get("designerAgentPluginsLoader"),a=window.__pendoExtensions&&e.forceNativeDesigner,o=!window.__pendoExtensions&&!K.isFunction(r),(a||o)&&(nh.addScriptToPage(t,n,i),C.designerLaunched=!0),!e.forceNativeDesigner&&K.isFunction(r)&&(r(t,n,i),C.designerLaunched=!0)):X.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function l(e,t){window.postMessage({type:"connect",source:"pendo-designer-content-script",destination:"pendo-designer-agent"},location.origin);var n;document.getElementById("pendo-designer-container")||(n="pendo-designer-embedded",n+="__"+nh.windowCommunicationId,(t=p("pendo-designer-iframe",a+"/"+t+"/"+e+"/designer.html")).setAttribute("name",n),e=function(e){var t=document.createElement("div");return t.setAttribute("id","pendo-designer-container"),t.appendChild(e),t}(t),document.body.appendChild(e))}function p(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&so(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups"),i.src=t,i}function h(e,t){var n;document.getElementById(e)||((n=document.createElement("style")).setAttribute("id",e),n.type="text/css",e=document.createTextNode(t),n.appendChild(e),document.getElementsByTagName("head")[0].appendChild(n))}function f(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=Te(C).createScriptURL(t),n&&K.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function g(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}}(),ih=function(){var a={body:"pendo-launch-modal-body",closeButton:"pendo-launch-modal-close-button",container:"pendo-launch-modal",footer:"pendo-launch-modal-footer",header:"pendo-launch-modal-header",launchButton:"pendo-launch-modal-launch-button",title:"pendo-launch-modal-title",logoContainer:"pendo-launch-modal-logo-container",style:"pendo-launch-modal-style",commIframeId:"pendo-designer-communication-iframe"},s={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},d={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370},u=(d.FOOTER_HEIGHT=1.25*d.HEADER_HEIGHT,d.BODY_HEIGHT="calc(100% - "+d.HEADER_HEIGHT+"px - "+d.FOOTER_HEIGHT+"px)",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 164.12 164.12"><defs><style>.cls-1{fill:#fff;}</style></defs><title>chevron</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><polygon class="cls-1" points="82.06 0 0 82.06 82.06 82.06 82.06 164.13 164.13 82.06 164.13 0 82.06 0"/></g></g></svg>'),c={},l=(c["#"+a.closeButton+":hover"]={"background-color":s.GRAY_LIGHTER_6},c["#"+a.launchButton+":hover"]={"background-color":s.TEAL_DARKER+" !important"},{PRIMARY_FONT:"Helvetica Neue"});return{listen:function(){return K.isFunction(document.addEventListener)?(document.addEventListener("keyup",e,!1),function(){document.removeEventListener("keyup",e,!1)}):function(){}},launchOnLocalStorageToken:v,ids:a,removeElement:f,attemptToLaunch:t,loadPluginJs:function(){var t;C.designerLaunched||(t=K.once(function(e){v(e,!0)}),ba(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function e(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&t(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&t(!1,!0)}function p(e,t){var n,i,r,o={"background-color":s.WHITE,height:d.MODAL_HEIGHT+"px","min-height":d.MODAL_HEIGHT+"px",width:d.MODAL_WIDTH+"px",position:"fixed",top:d.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-d.MODAL_WIDTH/2+"px","border-radius":"4px","box-shadow":"0px 13px 28px rgba(0, 0, 0, 0.17)",overflow:"hidden","z-index":"300000","box-sizing":"border-box"},o=h("div",a.container,o);o.appendChild(((i=document.createElement("style")).setAttribute("id",a.style),i.type="text/css",r=document.createTextNode(function(e){return K.reduce(K.pairs(e),function(e,t){var n=t[0],t=t[1];return e+n+"{"+K.reduce(K.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},"")}(c)),i.appendChild(r),i)),o.appendChild((r=t,i=h("div",a.header,{"background-color":s.GRAY_PRIMARY,height:d.HEADER_HEIGHT+"px","min-height":d.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(t=h("div",a.logoContainer,{height:"38px",width:"44px","background-color":s.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=Te(C).createHTML(u),i.appendChild(t),(t=h("div",a.title,{width:"100%",display:"flex","align-items":"center","font-family":l.PRIMARY_FONT,"font-size":"18px",color:s.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=r?"VIA Designer":"Pendo Designer",i.appendChild(t),i)),o.appendChild(((r=h("div",a.body,{height:d.BODY_HEIGHT,"min-height":d.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":l.PRIMARY_FONT,"font-size":"14px","box-sizing":"border-box"})).innerText="Thanks for letting us know you're here. We're ready to try this again. Launch Designer below to begin.",r)),o.appendChild((n=e,t=h("div",a.footer,{"align-items":"center","border-top":"1px solid"+s.GRAY_LIGHTER_6,display:"flex",height:d.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":d.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(i=h("button",a.closeButton,{"border-radius":"3px",border:"none",height:d.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":l.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","margin-right":"10px","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Close",i.onclick=function(){f(a.container),f(a.commIframeId)},(r=h("button",a.launchButton,{"background-color":s.TEAL_PRIMARY,"border-radius":"3px",color:s.WHITE,border:"none",height:d.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":l.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",r.onclick=function(){v(n)},t.appendChild(i),t.appendChild(r),t)),document.body.appendChild(o)}function h(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),K.extend(e.style,n),e}function t(t,n){var i,r,o;C.designerLaunched||(o=K.once(function(e){t||!n?v(e):p(e,t),g()}),ba(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),K.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(a.commIframeId)&&m()},100))):g())}),nh.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){m(),i=window.setInterval(m,50)}))}function f(e){document.getElementById(e)&&document.getElementById(e).remove()}function g(){var e=document.querySelector("#"+a.commIframeId+'[src*="pendo"]');e&&e.remove()}function m(){var e=document.getElementById(a.commIframeId);e&&e.contentWindow&&K.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:C.visitorId},K.get(C,"designerv2.hostConfig.host",nt))}function v(e,t){var n={},e=JSON.parse(e);n.target=e.target||"latest",e.host&&(n.host=e.host),e.lookaside&&(n.lookaside=e.lookaside),t&&(n.selectionOnly=t),e.forceNativeDesigner&&(n.forceNativeDesigner=e.forceNativeDesigner),e.sidebarDesigner&&(n.sidebarDesigner=e.sidebarDesigner),f(a.container),nh.launchInAppDesigner(n)}}();function rh(e){var t=J.defer();return Vo(e,function(){t.resolve()}),t.promise}function oh(e,t){return 0<K.size(Tu._handlers.validateGlobalScript)?p.get(t).then(function(e){return Tu.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)}function ah(e,t){return t?e(t):J.resolve()}var sh=K.wrap(K.once(K.wrap(rh,oh)),ah),dh={initializeWatermark:function(e){e=K.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),dh.watermarkGuides=e,e=K.map(e,function(e){return e.fetchContent()});return J.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return K.find(dh.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return K.find(dh.watermarkGuides,function(e){return t===e.appId})}(e.appId);if(n&&n.steps){var i,n=n.steps[0];if(n&&n.domJson)return i=n.domJson,(i=t(i,n)).css({position:"absolute",left:"auto",top:e.isBottomAligned?"auto":"100%",bottom:e.isBottomAligned?"100%":"auto",right:"0"}),i}}}},uh=1e4;function ch(n,i){var r=!1,o=[];return n.addEventListener("message",function(e){d(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t){void 0===t&&(t=uh);var n=J.defer(),i=Ot(32),r=(e=K.extend(e,{promiseId:i}),Dt(function(){o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(function(e){clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,K.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=K.extend({apiKey:C.apiKey,allowMixedApiKeyFrames:m.get("allowMixedApiKeyFrames"),agentInstallType:_e()},e),n.postMessage(t),Dt(function(){d(t)},0))}function s(e){e.promiseId||(t=Ot(32),e=K.extend(e,{promiseId:t}));var t=J.defer();return o[e.promiseId]=t,a(K.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==C.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===m.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){X.critical("ERROR in cross frame channel",{error:n})}}}var lh="frames/removeFrame";function ph(e){if(!K.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}function hh(e,t){return new(K.isFunction(e.MessageChannel)?yh:bh)(e,t)}function fh(e,t,n){return new gh(e,t,n,hh(t,n))}function gh(e,t,n,i){this.init(e,t,n,i)}K.extend(gh.prototype,{init:function(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=K.bind(this._frameConnectHandler,this),this._impl.onmessage=K.bind(this._fireMessageListeners,this),this._impl.onrelay=K.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners:function(t){K.each(this._listeners,function(e){e(t)})},_controlMessageHandler:function(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===lh)&&this._topMessageHandler(e)},_topMessageHandler:function(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===lh&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop:function(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Dt(K.bind(function(){this._connected||(0===t?K.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler:function(){this._singletonMessageHandler.addEventListener(K.bind(this._controlMessageHandler,this))},_frameConnectHandler:function(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener:function(e,t){"message"===e&&this._listeners.push(t)},postMessage:function(e){this._closed||this._impl.postMessage(e)},close:function(){this._closed=!0,this._listeners.length=0,this._impl.close()}});var mh={_frameConnectHandler:function(e){K.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived:function(e){K.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage:function(e){K.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage:function(e){var t;return K.isString(e.data)?((t=K.pick(e,"type","origin","source","ports","lastEventId","target")).data=ph(e.data),t):e}};function vh(t){return t&&K.all(["addEventListener","start"],function(e){return K.isFunction(t[e])})}function yh(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function bh(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=K.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=K.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}function Ih(t,e){var n=[],i=!1;return{targetOrigin:function(){return i?location.origin:"*"},secure:function(e){i=e},addEventListener:function(e){0===n.length&&t.addEventListener("message",r),n.push(e)},removeEventListener:function(e){e=n.indexOf(e);0<=e&&n.splice(e,1),0===n.length&&t.removeEventListener("message",r)},close:function(){t.removeEventListener("message",r),n.length=0}};function r(t){i&&!e(t.origin)||K.each(n,function(e){K.isFunction(e)&&e(t)})}}K.extend(yh.prototype,mh,{connectToTop:function(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect:function(e){var t=e.ports[0];vh(t)&&((this._ports[e.data.frameId]=t).addEventListener("message",K.bind(this._relayMessage,this)),t.start(),t.postMessage({action:"pendo::connectSuccess"}),t.postMessage({action:"frames/receiveFrame",frame:q.state.frames.frames[q.state.frames.frameId],"pendo-preview":q.state.preview.preview}))},frameDisconnect:function(e){delete this._ports[e.data.frameId]},connectSuccess:function(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",K.bind(this._messageReceived,this))},broadcast:function(t){K.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage:function(e){this._port&&this._port.postMessage(e),e.action===lh&&this._window.top.postMessage(e,this._targetOrigin)},close:function(){K.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel:function(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=K.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel:function(){this._port&&K.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),K.extend(bh.prototype,mh,{connectToTop:function(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect:function(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=K.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect:function(e){delete this._frames[e.data.frameId]},connectSuccess:function(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast:function(t){var n=this._singletonMessageHandler.targetOrigin();K.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage:function(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close:function(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});var wh=Ih(window,Wo);function Ch(e,o){var a=[];return e.removeEventListener=K.wrap(e.removeEventListener,function(e,t,n){var i,r=K.toArray(arguments).slice(1);return"message"===t&&0<=(i=K.findIndex(a,function(e){return e[0]===n}))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=K.wrap(e.addEventListener,function(e,t,n){var i,r=K.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),e.postMessage=K.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,K.toArray(arguments).slice(1))}),e}function Sh(e){if(!l.addEventListener)return{addEventListener:K.noop,postMessage:K.noop,close:K.noop};var t=!!window.__pendoExtensions;if(m.get("preferBroadcastChannel")&&!t&&K.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=Ch(new BroadcastChannel("pendo"),Dn);if(t&&K.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),fh(e,window,wh)}function Ah(e,t){if("undefined"!=typeof Turbolinks){var n=Turbolinks&&Turbolinks.EVENTS&&Turbolinks.EVENTS.LOAD;if(n)return te(e,n,t)}return function(){}}var Th="eJwFwIEIAAAAwDDQd3-N1QABFQC5",_h="guides_blocked",Eh=18e5,xh=144e5,Rh="1",kh="0",Oh="Guides disabled: unreachable endpoint guide.gif";function Nh(){return h.read(_h)===Rh}function Mh(e){e.cached||(e.success?h.write(_h,kh,xh):(X.info(Oh),h.write(_h,Rh,Eh)))}function Lh(e,t){var n=h.read(_h);return n===Rh?(X.info(Oh),J.resolve({success:!1,cached:!0})):n===kh?J.resolve({success:!0,cached:!0}):(n=jr("guide.gif",t,{jzb:Th,ct:v(),v:at}),(e.usesXhr()?p.get(n):Yr(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}}))}var Fh=h.getLocal(),Ph=[],Gh="Guide was not shown because this visitor is in a control group of an active experiment for the guide",Dh=[];function Bh(){var e=m.get("guideCssAssetPath");return e||Ar("guide.css")}function Wh(){var e=m.get("previewModeAssetPath");return e||Ar("pendo.preview.min.js")}var Uh="_pendo-guide_",$h="_pendo_g_",jh=0;function zh(e){jh=e}function Zh(){return jh}var Vh=function(){return K.any(A(),function(e){return e.isShown()})},Yh=function(e,t){var n=ee("._pendo-close-guide_",e);return n.length||(n=ee(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),Qe()?9<d&&n.css({top:3}):8===d?n.css({top:9,right:2}):9===d?n.css({right:2,top:3}):9<d&&n.css({top:3}),e=ee("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},Hh=function(n){return K.reduce(A(),function(e,t){return n(t)&&e.push(t),e},[])},Kh=function(e,t,n,i,r){e=ru(T(e),t);e&&(e.seenState=n,e.lastSeenAt=i,r!==undefined)&&(e.dismissCount=r)},Xh=function(e){for(var t=new RegExp("^"+$h);e;){if(K.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function Jh(t){K.each(A(),function(e){K.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var qh=function(e){return e&&e.guideId};function Qh(e){return e&&K.isFunction(e.render)}var ef=function(e,t){var n,i;return qh(e)&&(t=e,e=null),Qh(t)?t:t?(n=T(t.guideId))&&n.findStepById(t.id):(n=K.find(A(),function(e){return e.isShown()}))?((i=e?Xh(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||Zr("findStepForGuideEvent: step with id "+i):(t=K.find(n.steps,function(e){return e.isShown()}))||Zr("findStepForGuideEvent: no step shown"),t):void 0},tf=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=mu(e);"tooltip"===e.type&&K.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):w(n,t,hf,!0)};function nf(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Vr('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var rf=function(e){var e=ee("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},of=function(e){e=K.get(e,"attributes.activation.selector",""),e=s(e);e.length<1||e[0].focus()},af=function(){var e=se.getResourceCenterBadge();e?e.element().focus():(e=se.getResourceCenter(),of(e))},sf=function(e){if(!C.designer&&e&&"building-block"===K.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=K.get(e,"launchMethod","").split("-"),r=K.contains(i,"dom"),o=K.contains(i,"badge"),i=_f(e);if(K.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&rf(t);break;case"dom":r&&of(e);break;case"launcher":af();break;default:return}}};function df(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var uf=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=ef(e,t))&&t.id?nf(t)||("dismissed"===t.seenState?X.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(X.info("onGuideDismissed called",{contexts:["guides"]}),y.beforeDismiss.trigger(t).cancel?X.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(tf(t),e=t.id,n=T(s=t.guideId),i=(i=K.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=K.get(t,"dismissCount",0)+1,Nf(s,e,Q(),i,o),o=v(),Kh(s,e,"dismissed",o,r),(a=K.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||hl({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:Q(),dismissCount:r}),df(n,i)&&Df(o,Gf.DISMISSED),t.hide(),sf(a),Vh()||(El(),xl())))):El()},cf=function(e,t,n){var i,r,o,a,s,d,u;X.info("onGuideSnoozed called",{contexts:["guides"]}),(t=ef(e,t))?"snoozed"===t.seenState?X.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):y.beforeSnooze.trigger(t).cancel?X.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,X.info("no snooze duration provided, defaulting to 1 day")),nf(t)||(tf(t),e=t.id,i=t.guideId,r=Q(),a=(o=T(i))&&o.language,s=(s=K.first(o&&o.steps))&&s.seenReason,d=v(),X.info("snoozing guide for "+n+" ms"),t.snoozeEndTime=u=d+n,Mf(i,e,r,s,a,n),Kh(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||hl({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:Q(),snoozeEndTime:u}),df(o,s)&&Df(d,Gf.SNOOZED),t.hide(),sf(o),Vh())||(El(),xl())):(X.info("missing step. can't snooze",{contexts:["guides","error"]}),El(),Zr("onGuideSnoozed: missing step"))},lf=function(){var e=dm();e&&K.each(e.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=mu(e);"tooltip"===e.type&&K.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):w(n,t,hf,!0)})},pf=function(e){var t,n,i,r=(r=e&&e.step)||ef(e);r?(i=e&&e.params,i=K.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?X.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=T(r.guideId),(n=K.find(i.steps,function(e){return e.id===t}))?(n=K.indexOf(i.steps,n),i=K.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?hf(e,r,!1):ff(e,r)):X.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):X.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):X.info("[goToStep] missing current step",{contexts:["guides","error"]})},hf=function(e,t,n){if(lf(),1===arguments.length&&qh(e)&&(s=nu(e.guideId),i=ef(),s)&&i&&K.first(s.steps).id===i.id&&K.last(s.steps).id===e.id&&(X.info("Cannot skip to last step from first step"),e=null),X.info("onGuideAdvanced called",{contexts:["guides"]}),(t=ef(e,t))===e&&(e=null),t){if(!nf(t))if("advanced"!==t.seenState||n)if(y.beforeAdvance.trigger(t).cancel)X.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=T(t.guideId),o=r&&r.language,a=r&&r.steps&&K.findIndex(r.steps,function(e){return t.id==e.id});if(e&&K.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),d=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(d=a+1);for(var u=a;u<d;++u){t=r.steps[u],Lf(r.id,t.id,Q(),t.seenReason,o,u!==a);var c=v();hl({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:Q()}),Kh(r.id,t.id,"advanced",c)}return hf(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=K.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&K.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=K.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||X.info("missing destination step id"),X.info("advancing guide"),Lf(s,i,Q(),p,o,n,h),X.info("update guide status"),r&&K.last(r.steps).id===i&&(l=K.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(Kh(s,i,"advanced",f,l),K.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||hl({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:Q(),destinationStepId:h,dismissCount:l}),df(r,p)&&Df(f,Gf.ADVANCED),X.info("stop guide"),El(),X.info("start guides"),xl()}else X.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else X.info("missing step. can't advance",{contexts:["guides","error"]}),El(),Zr("onGuideAdvanced: missing step")},ff=function(e,t){var n,i,r,o,a,s;X.info("onGuidePrevious called",{contexts:["guides"]}),(t=ef(e,t))?"advanced"===t.seenState?X.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):y.beforePrevious.trigger(t).cancel?X.info("Guide previous canceled during runtime in step: "+t.id):(o=T(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=K.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=mu(t),"tooltip"===t.type&&K.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):w(a,r,hf,!0),a=e&&K.isNumber(e.steps)?e.steps:1,r=K.first(o&&o.steps),a=0<=(i=i-a)?o.steps[i]:r,i=r&&r.seenReason,r=o&&o.language,o=a.id,(o=s&&e&&e.destinationStepId?e.destinationStepId:o)||X.info("missing destination step id"),X.info("advancing guide"),Lf(n,t.id,Q(),i,r,!1,o),X.info("update guide status"),a=(new Date).getTime(),Kh(t.guideId,t.id,"advanced",a),(s=K.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||hl({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:Q(),destinationStepId:o}),El(),xl())):(El(),Zr("onGuidePrevious: missing step"))},gf=function(e){var t;ee("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",Sr()+"/img/tiny-logo.png"),t=ee(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:C.TOOLTIP_ARROW_SIZE}).append(t),Hd.push(t[0]),t.appendTo(e))};function mf(e){return e&&e.attributes&&e.attributes.stayHidden}function vf(e){return s(e.triggerElementPathRule)[0]}var yf=function(e,t,n){var i;return Hl()&&(i=e.id,e=e.guideId,y.stepEligibility.trigger({stepId:i,guideId:e,eligible:t,reason:n})),t},bf=function(e){var t,n,i=K.partial(yf,e);return mf(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!b(vf(e))?i(!1,"trigger_element"):(t=mu(e),(n=e.targetElement)&&e.elementContainsRulesList&&!wf(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||wc.isBuildingBlockGuideRelativeToElement(e),e=b(t),n?e?i(e,"target_element_tooltip"):i(Go(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function If(e){var t=(ee(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function wf(e,t){for(var n=If(e),i=0;i<t.length;i++)if(!Cf(n,t[i]))return!1;return!0}function Cf(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=Ut(e);if(null==r)return!1;e=parseFloat(r),i=parseFloat(i);if(isNaN(e)||isNaN(i))return!1}else"string"===t&&(e=e.toLowerCase(),i=i.toLowerCase());return"equal"===n?e===i:"notEqual"===n?e!==i:"contains"===n?-1<String(e).indexOf(i):"notContains"===n?-1===String(e).indexOf(i):"greaterThan"===n?i<e:"lessThan"===n&&e<i}var Sf=function(e){return $h+e.id},Af=function(e){var t=e.element,n=K.first(ee("#"+Sf(e)));t&&n?b(t)||ee.hasClass(n,"mouseover")?Dt(function(){Af(e)},Al):e.hide&&(e.hide(),Vh())||(El(),xl()):t||!n||e.hide&&(e.hide(),Vh())||(El(),xl())},Tf=function(){return!1},_f=K.partial(K.get,K,"attributes.resourceCenter"),Ef=function(t){var e;Vh()&&(e=ef(),tf(e),_f(t)?(e=Hh(_f),(e=K.filter(e,function(e){return e.id!==t.id})).length&&q.dispatch("frames/hideGuides",K.pluck(e,"id"))):(Jh(),q.dispatch("frames/hideGuides")))},xf=function(e,t){return!(!e||!e.guideId||!(e=T(e.guideId)))&&(Ef(e),e.launch(t),e.isShown())},Rf=function(e,t,n,i,r,o){e=Uf({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&K.extend(e.props,{step_poll_types:o}),zf(e),y.guideNotSeen.trigger(e)};function kf(e){var t="auto";return e&&(e=(e.launchMethod||t).split("-"),!K.contains(e,t))&&e.length?K.first(e):t}var Of=function(e,t,n,i,r,o){i||(X.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),i=kf(T(e)));n=Uf({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),K.extend(n.props,o),zf(n),r=v();hl({guideId:e,guideStepId:t,time:r,state:"active",seenReason:i,visitorId:Q()}),Kh(e,t,"active",r),y.guideSeen.trigger(n)};function Nf(e,t,n,i,r){e=Uf({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});zf(e),y.guideDismissed.trigger(e)}function Mf(e,t,n,i,r,o){e=Uf({type:"guideSnoozed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r,snooze_duration:o});zf(e),y.guideSnoozed.trigger(e)}function Lf(e,t,n,i,r,o,a){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),t=Uf(e);zf(t,null,o),y.guideAdvanced.trigger(t)}function Ff(e,t,n,i,r,o){e=Uf({type:"guideTimeout",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r,guideSeenTimeoutLength:o});zf(e),y.guideTimeout.trigger(e)}function Pf(e,t,n,i,r){e=Uf({type:"guideSnoozeCanceled",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});zf(e,null,!0),y.guideSnoozeCancelled.trigger(e)}var Gf={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Df(e,t){Bf(e,t);var n={};n[t]=e,q.dispatch("frames/changeThrottlingState",n)}function Bf(e,t){K.contains(K.values(Gf),t)&&(K.isFunction(e.getTime)&&(e=e.getTime()),C[t]=e,h.write(t,e,ll),q.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Wf(e){var t=m.get("crossAppGuideStorageSuffix");return h.read(e,!1,t)}function Uf(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,visitorId:i,language:o}),r&&(a.reason=r),K.isString(a.language)||delete a.language,K.extend({guide_id:a.guideId,guide_step_id:a.stepId},K.omit(a,"type","guideId","stepId","visitorId"))),t=Dn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:fi(),browser_time:(new Date).getTime(),url:f.externalizeURL(),props:e});return y.eventCaptured.trigger(t),t}var $f=null,jf=function(e){window.clearTimeout($f),$f=Dt(Og,e)},zf=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-Zh(),Wg(),Mg.push(e),jf(t)},Zf=function(e,t){return"dismissed"===e.state?null:T(e.guideId).nextStep(e,t||Vf())},Vf=function(){return C.normalizedUrl||Yf(f.externalizeURL())},Yf=function(e){try{var t=new Si(e),n=K.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return X.error("Invalid URL provided to normalize"),e}},Hf=function(e,t){return!S(e)||new RegExp(e).test(t)},Kf=function(e,t){e=iu(e);return!!e&&(!(t=xf(K.first(e.steps),t||"api"))&&e.control&&X.info(Gh),t)},Xf=function(e,t){e=T(e);return!!e&&(!(t=xf(K.first(e.steps),t||"api"))&&e.control&&X.info(Gh),t)};function Jf(e,t){return t=parseInt(t,10),isNaN(t)||!K.isNumber(t)||!(K.isNumber(e)&&e<t)&&K.isNumber(e)?e:t}var qf=function(){El(),_l(),se.removeNotificationBubble(),cp(),Fa()},Qf;function eg(){El(),Jr(),C.segmentFlags=[],C.doNotProcess=!0,X.info("not tracking visitor due to 451 response")}function tg(e){var t;Qf&&(451===e.statusCode&&(eg(),Qf.deferred.reject(e)),K.isString(e.id)&&e.id!==Qf.id||(t=K.indexBy(C.guides,"id"),K.extend(C,e),C.guides=K.map(C.guides,function(e){return 1==K.keys(e).length&&e.id?t[e.id]:e}),Qf.deferred&&Qf.deferred.resolve(),Qf=null))}function ng(){return rm.pending||!(!Qf||!C.id||C.id===Qf.id)}var ig=function(e,t){var n=Tr(),i=K.uniqueId(),r=J.defer(),o=(Qf={id:i,deferred:r},il()||((o=rl())?(X.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):X.info("no metadata to send",{contexts:["guides","metadata"]})),Ct(t)),i={id:i,jzb:o,v:at,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=xt(t.accountId)),Hl()&&(i.debug=!0),jr(rg.endpoint(),e,i)),t=za.get();return o=n.length>fs||!K.isEmpty(t)?(delete i.jzb,n=jr("guide.json",e,i),i=K.extend({events:o},t),rg.post(n,i,K.noop)):rg.load(n,K.noop),J.all([o["catch"](function(e){return 451===e.status&&eg(),J.reject(e)}),r.promise,Lh(rg,e)]).then(function(e){e=e[2];if(Mh(e),!e.success)return J.reject()})},rg=Eu;function og(e){rg=e}function ag(){rg=Eu}function sg(e){e=K.find(e.steps,function(e){return e.pageId&&!e.regexUrlRule});return!e||(X.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function dg(t){return K.every(Dh,function(e){try{return e(t)}catch(err){return console.debug("Error in guide processor",e,t.id),!1}})}function ug(e){K.sortBy(e,cg)}function cg(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&K.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}function lg(e){return K.chain(e).map(Nu).filter(sg).filter(dg).sortBy(cg).value()}function pg(e){var n,t=K.find(e,function(e){return K.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel});return t?(n=K.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=K.findWhere(e,{id:t.id});e&&!K.get(e,"attributes.doNotResume")&&K.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}}var hg=function(){return!m.get("disableGlobalCSS")},fg;function gg(){rm.reset(),yg.reqId=null}function mg(e,t){var n=m.get("dropAnonymous");if(Xn(e)&&n)X.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),K.isFunction(t)&&t("error: guides are blocked");else if(Nh())X.info("guide events are blocked, load guides cancelled"),K.isFunction(t)&&t("error: guides are blocked");else{if(Ea(xa()))return 1;X.info("bad url: probably local file system",{contexts:["guides","error"]}),K.isFunction(t)&&t("error: invalid url")}}function vg(e,t,n){void 0===n&&(n=v());var i=[];return m.get("cacheGuides")&&!(i=n-(t.lastUncached||0)<m.get("cacheGuidesTimeout")?K.map(e.guides,function(e){return K.pick(e,"id","lastUpdatedAt")}):i).length&&(t.lastUncached=n),i}var yg=function(e,n,i,r){var o,t,a,s,d,u=J.defer(),c=!1;return e=e||C.apiKey,mg(n=n||Q(),r)?(X.info("loading guides for "+i+"...",{context:["guides"]}),i=f.externalizeURL(i),d=yg.lastVisitorId!==n,o=d?K.noop:pg(A()),t=(yg.lastVisitorId=n,_l(),q.commit("guideState/setLastGuideRequestAt",v()),{visitorId:n,accountId:fi(),url:i,oldVisitorId:ci()}),a=vg(C,yg),s=(a.length&&!d&&(t.cachedGuides=a),K.uniqueId()),d=(yg.reqId=s,ig(e,t).then(function(){var e,t;c||C.designer||(yg.reqId!==s?u.resolve():(y.deliverablesLoaded.trigger(),X.info("successfully loaded guides for "+i,{contexts:["guides"]}),C.designerEnabled&&"true"!==Fh.getItem("pendo-designer-mode")&&ih.loadPluginJs(),qf(),(e=C.lastGuideStepSeen)?(q.dispatch("guideState/receiveLastGuideStepSeen",e),e.visitorId=n,q.dispatch("guideState/updateLastGuideStepSeen",e),q.commit("guideState/setLastGuideRequestAt",v()),au(),eu(e=lg(C.guides)),t=ou(),q.dispatch("guideState/load",Wf(pl)),q.dispatch("guideState/apply"),C.latestDismissedAutoAt=Jf(C.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),q.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:C.latestDismissedAutoAt}),C.finalAdvancedAutoAt=Jf(C.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),q.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:C.finalAdvancedAutoAt}),C.latestSnoozedAutoAt=Jf(C.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),q.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:C.latestSnoozedAutoAt}),q.dispatch("healthCheck/init",e),q.dispatch("frames/changeGuideList",t),C.eventProperties=Yg(C.features),t.length?J.all([kg(),sh(Fu(C.globalJsUrl)),Pg(e),dh.initializeWatermark(e),Tg(5e3)].concat(wg(e))).then(function(){yg.reqId===s&&(q.getters["frames/isLeader"]()&&o(A()),y.guidesLoaded.trigger(),xl(),clearTimeout(fg)),K.isFunction(r)&&r(),u.resolve()},function(e){X.error("Post loadGuide request failed: ",e),y.guidesFailed.trigger(),u.reject()}):(y.guidesLoaded.trigger(),u.resolve())):X.info("lastGuideStepSeen is not set, shutting down guides")))})["catch"](function(e){y.guidesFailed.trigger(),u.reject(e)}),m.get("guideTimeout")||m.get("guides.timeout")),K.isNumber(d)&&(clearTimeout(fg),fg=Dt(function(){bg(u),c=!0},d))):u.reject(),u.promise};function bg(e){qf(),e.reject()}var Ig=[];function wg(t){return K.map(Ig,function(e){return e(t)})}function Cg(e){Ig.push(e)}function Sg(e){e=K.indexOf(Ig,e);0<=e&&Ig.splice(e,1)}function Ag(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?J.resolve():(n=J.defer(),ee(i).remove(),C.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var Tg=K.memoize(_g);function _g(t,n,e){if(!hg()||!Eg(A()))return J.resolve();n=n||v,e=e||"_pendo-hidden_";var i=ee(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(ee.getBody()),r=n(),o=J.defer();return function s(e){Dt(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=ne(e);if(e)return"none"===e.display}}function Eg(e,t){return t&&t.designer||K.any(e,function(e){return K.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}var xg="_pendo-default-css_",Rg="_pendo-css_";function kg(){var e=[];if(!hg())return J.resolve();Eg(A(),C)&&e.push(Ag(xg,Bh()));var t=((C.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(Ag(Rg,Fu(t))):ee("#"+Rg).remove(),J.all(e)}var Og=function(e){Mg&&Mg.flush(e)},Ng=function(){return Ph},Mg,Lg;function Fg(e){var t=ns(vs,ds("visitor_id"),ds("props.guide_id"),ds("props.source"),ms,ys(),Cs(e),Ss,As),n=ns(rs,as(e.cache),K.noop);return new $s(K.extend({processSilos:t,packageSilos:n},e))}var Pg=function(e){return se.initializeResourceCenter(e)},E={postMessage:K.noop,close:K.noop},Gg=E,Dg=function(){var e=K.filter(A(),function(e){return K.isFunction(e.outsideTimebox)&&e.outsideTimebox()});tu.addGuide(e)};function Bg(){return Dn.tabIdChanged(function(){var e=Dn.getTabId();q.commit("frames/setTabId",e),q.dispatch("frames/join")})}function Wg(){return Mg=Mg||Fg({cache:Ph,apiKey:function(){return C.apiKey},beacon:"guide",allowPost:!0,preferFetch:l.safari}),Lg=Lg||Fg({cache:[],apiKey:function(){return C.apiKey},beacon:"poll",allowPost:!0,preferFetch:l.safari}),function(){Mg.clear(),Lg.clear()}}function Ug(e){var e=e.blockedURI;e&&-1!==e.indexOf("/data/guide.json")&&m.get("cacheGuides")&&((e=m.getLocalConfig()).cacheGuides=!1,m.setLocalConfig(e),Wi(window,"securitypolicyviolation",Ug),om())}var $g=function(){var e,t=[],n=(t.push(Wg()),Xl.run(),t.push(Xl.stop),y.appHidden.on(function(){Og({hidden:!0})}),y.appUnloaded.on(function(){Og({unload:!0}),q.dispatch("frames/leave")}),y.metadata.on(function(e){e.data[0].storeChanged&&!il()&&rm()}),y.identify.on(function(){rm()}),y.urlChanged.on(function(){rm(f.get())}),y.guideUpdateComplete.on(function(){Dg(),Wu.processPrefetch(),ql(A(),Kd)}),y.guidesLoaded.on(function(){se.fetchAnnouncementGuidesContent(A(),q)}),y.guideListChanged.on(function(e){gp(e.data[0].guideIds)}),t.push(Ah(document,function(){f.get()===im.lastUrl&&om()})),m.get("guides.tooltip.arrowSize"));return K.isNumber(n)&&(C.TOOLTIP_ARROW_SIZE=n),Gg=Sh(q),E=ch(Gg,q),t.push(function(){return E.close()}),t.push(Bg()),q.dispatch("frames/init"),q.dispatch("frames/join"),t.push(fl()),t.push(function(){qg.cancel(),fp.cancel()}),t.push(te(window,"resize",qg)),t.push(te(window,"scroll",fp,!0)),t.push(te(window,"gestureend",Qg,!0)),t.push(te(window,"securitypolicyviolation",Ug)),t.push(em()),m.get("preferMutationObserver")&&l.MutationObserver&&(e=K.debounce(function(e){q.dispatch("guideUpdate/documentChanged")},50),t.push(function(){e.cancel()}),t.push(I(window,"animationend",e)),t.push(I(window,"transitionend",e)),t.push(I(window,"mouseover",e)),q.commit("guideUpdate/setUseObserver"),m.get("observeShadowRoots")&&q.commit("guideUpdate/setObserveShadowRoots"),t.push(function(){return q.dispatch("guideUpdate/stopObserver")})),h.registry.addLocal(Gf.ADVANCED),h.registry.addLocal(Gf.DISMISSED),h.registry.addLocal(Gf.SNOOZED),h.registry.addLocal(_h),Uu.initialize(),function(){im.reset(),qf(),gg(),K.each(t,function(e){e()}),ee("#"+xg).remove(),ee("#"+Rg).remove(),Uu.teardown()}},jg=function(){return m.get("guides.disabled",!1)||m.get("disableGuides",!1)||!$r},zg=function(){return m.get("guides.delay",!1)||m.get("delayGuides",!1)},Zg=function(e){var t=m.getLocalConfig();t.disableGuides=e,m.setLocalConfig(t)},Vg=function(e){var t=m.getLocalConfig();t.delayGuides=e,m.setLocalConfig(t)},Yg=wi(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=K.map(e[n].eventProperties,function(e){return e.selector?e:JSON&&JSON.parse&&e.rule?JSON.parse(e.rule):void 0});t.push({featureRules:i,eventPropertyRules:r,featureId:e[n].featureId})}return t}}),Hg=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Kg=function(){X.debug("adjustActiveGuideOnResize firing");var e=dm();e&&e.step&&!C.ignoreResize&&e.step.redraw()},Xg=function(){var e;-1<K.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Hg())||e.id.indexOf("pendo-video-")<0)&&Dt(function(){Kg()},150):Kg()},Jg=function(){Xg(),fp()},qg=K.debounce(Jg,50),Qg=function(e){1!==e.scale&&qg()},em=function(){for(var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],t=[],n=0;n<e.length;n++)t.push(te(document,e[n],tm));return function(){K.each(t,function(e){e()})}},tm=function(e){var t=K.get(document,"activeElement.id",""),e=K.get(e,"target.id","");K.filter([t,e],function(e){return-1<e.indexOf("pendo-video-")}).length&&(Hg()?C.ignoreResize=!0:Dt(function(){C.ignoreResize=!1},1e3))};function nm(e,t,n,i){return!(!e||!C.apiKey||jg()&&"true"!==Fh.getItem("pendo-designer-mode")||e===im.lastUrl&&t===im.lastVisitorId&&n===im.lastAccountId&&i===im.lastMetadataHash)}function im(e){var t=Q(),n=fi();nm(e=e||f.get(),t,n,Lc)&&(im.lastUrl=e,im.lastVisitorId=t,im.lastAccountId=n,im.lastMetadataHash=Lc,yg(C.apiKey,t,e)["catch"](K.noop))}im.reset=function(){K.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){im[e]=null})};var rm=function(e){$r&&(rm.reset(),rm.pending=Dt(function(){delete rm.pending,im(e)},0))};function om(){im.lastUrl=null,rm()}function am(e){return Dh.push(e),K.partial(sm,e)}function sm(e){e=Dh.indexOf(e);-1!==e&&Dh.splice(e,1)}function dm(){var e,n,t=K.find(A(),function(e){return e.isShown()});return!t||K.get(t,"attributes.resourceCenter.isModule")&&!(t=se.getResourceCenter())?null:(e=K.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:K.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function um(e){return h.registry.addLocal(vp),h.registry.addLocal(yp),K.find([K.partial(nh.launchOnToken,window.location),K.partial(bp,window),K.partial(nh.localStorageNavigation,e)],function(e){return e()}),e.enableDesignerKeyboardShortcut||!m.get("disableDesignerKeyboardShortcut")?ih.listen():function(){}}function cm(e){var t,n=K.get(e,"value","");-1!==K.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=ee("._pendo-nps-open-text-poll-question"),t=ee("._pendo-nps-open-text-poll-input")[0],K.forEach(e,function(e){"none"!==K.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}function lm(e){if(e.confirmationElementPathRule)return s(e.confirmationElementPathRule)[0]}rm.reset=function(){rm.pending&&clearTimeout(rm.pending)};var pm=function(){var n=this,o=(this.eventable=Bn.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";X.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!C.designer){var t=e.step.guideElement;switch(e.action){case o.advanceGuide:hf(e,e.step);break;case o.previousStep:ff(e,e.step);break;case o.goToStep:pf(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;cf(e,e.step,n);break;case o.dismissGuide:se.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return uf();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return se.dismissResourceCenter(t);uf(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&cm(e.srcElement),Tc((i=$u(e.step.domJson)).props.id,t),_c(i.props.id,t),ae.flexAllThings(i.props.id,t),Ac(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Tc((i=$u(e.step.domJson)).props.id,t),_c(i.props.id,t),ae.flexAllThings(i.props.id,t),Ac(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=K.find(e.params,function(e){return"reason"===e.name});Xf(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);se.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=se.findResourceCenterHomeView(qd());if(!n)return;se.attemptToPreserveIntegrationIframes(e),se.replaceResourceCenterContent(n.id,e.params);break;case o.openLink:this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),pf(e);break;case o.confirmation:this.confirmGuide(e)}var r=pm.prototype.registeredActions,r=r&&r[e.action];"function"==typeof r&&r(e)}},this.submitPoll=function(e){var t=e&&e.action,i=e.step,n=[];e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")&&(r=e.srcElement.getAttribute("data-pendo-poll-id"),e=e.srcElement.value,n.push({pollId:r,value:parseInt(e,10)}));var r=ee("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(K.map(r,function(e){var t,n=ee("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=K.find(i.guide.polls,function(e){return e.id===t}),n=n[0].value,e&&e.numericResponses&&(n=parseInt(n,10)),{pollId:t,value:n}})),i.response&&n?i.response(K.compact(n)):X.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=ee(K.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);K.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=ee(K.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=K.find(e.params,function(e){return"transition"===e.name}).value,e=K.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=K.find(e.params,function(e){return"url"===e.name}).value,e=K.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&ma()&&(e="_top");window.open(t,e)},this.goToStep=pf,this.searchGuides=function(e){var t="",n=e.srcElement.value,e=ee("#pendo-resource-center-container"),i=e.find('[id^="pendo-list-item-"]'),r=e.find('[id^="pendo-results-count-container"]'),e=e.find('[id^="pendo-no-matches-container"]'),o=[],a=!0,s=0;if(i)for(var d in i){var u;d&&i[d]&&(u=!1,ee(i[d]).text()&&(-1!==ee(i[d]).text().toLowerCase().indexOf(n.toLowerCase())?(ee(i[d]).css({display:"list-item"}),u=!(a=!1)):ee(i[d]).css({display:"none"})),K.isFunction(i[d].getAttribute)&&(t=i[d].getAttribute("data-_pendo-text-list-item-1").split(","),K.forEach(t,function(e){K.contains(o,e)||o.push(e)})),this.searchAllTerms(o,t,n)&&i[d]&&(ee(i[d]).css({display:"list-item"}),u=!(a=!1)),t="",u)&&s++}a?ee(e[0]).css({display:"block"}):ee(e[0]).css({display:"none"});{var c;r&&r.length&&(r[0].innerHTML="",n)&&(c="",0===s?(c=e[0].innerText,this.debounceAnnounceResults(r[0],c)):(e=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(c=r[0].getAttribute(e))&&(c=c.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],c))))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return K.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=lm(e);e.advance(),t?t.click():X.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=a,this.launchGuide=function(e){K.get(e,"params.2.value.doNotDismiss")||uf(e,e.step);var t=e&&e.params&&e.params[0]&&e.params[0].value,n=e&&e.params&&e.params[1]&&e.params[1].value;{var i,r;t&&n?(n=T(e.params[0].value),i=e.params[1].value,r=(r=K.find(n.steps,function(e){return e.id===i}))||n.steps[0],Ef(n),r.show("api")):t&&Xf(e.params[0].value)}},this.debounceAnnounceResults=K.debounce(function(e,t){e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation"});function a(e){return e.params.find(function(e){return"transitionDirection"===e.name})?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},hm=(pm.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&(pm.prototype.registeredActions||(pm.prototype.registeredActions={}),pm.prototype.registeredActions[e]=t)},pm.deregisterAction=function(e){e&&"string"==typeof e&&(pm.prototype.registeredActions||(pm.prototype.registeredActions={}),delete pm.prototype.registeredActions[e])},function(){var s="guideActivity",d=function(){return(new Date).getTime()-Zh()},r=K.isObject,u=K.findWhere,c=[];return{type:s,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,r(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(K.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(r(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return l(e)}(t)||function(e){return h(e)}(t)||function(e){return p(e)}(t))&&(e=function(e){var t=function(e){for(var t=0,n=c;t<n.length;t++){var i=(0,n[t])(e);if(i)return i}return dm()}(e);if(t&&(!function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)||(t=function(e){var t=ee("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=K.find(qd(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))&&t.step&&t.step.domJson){var n,i,r,e=h(e)||l(e)||p(e)||{type:e.tag,id:e.id},o=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(o)return n=e.id,o=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:lr(e.props.href),target:e.props.target}];if(e.actions!==undefined)return K.map(e.actions,function(e){switch(e.action){case"automation":var t=u(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=u(e.parameters,{name:"url"}),n=u(e.parameters,{name:"target"});return{action:e.action,url:lr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=u(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=u(e.parameters,{name:"snooze_duration"}),t=u(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}});if("pendo_task_list_item"===t.templateName&&K.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(o,e),r=o[0],i=(r=void 0===r?{}:r).action,r=r.guideId,"showGuide"===i&&r&&(n+="-"+r),Uf({type:s,visitorId:Q(),ui_element_id:n,ui_element_type:e.type,ui_element_actions:o,guideId:t.guide.id,stepId:t.step.id,duration:d(),language:t.guide.language})}}(n))&&zf(e)},registerGuideResolver:function(e){c.push(e)},removeGuideResolver:function(e){e=c.indexOf(e);-1!==e&&c.splice(e,1)}};function l(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:l(e.parentElem)}function p(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return i(e)||!r(e.parentElem)?null:p(e.parentElem)}function h(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:h(e.parentElem)}function i(e){return K.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),fm=[],gm=!1,mm={agent:{getJwtInfoCopy:za.get,treatAsAdoptPartner:Tr},agentStorage:h,analytics:{ptm:function(){return Zs}},attachEvent:I,ConfigReader:m,Events:y,EventTracer:Dn,EventRouter:pm,Extensions:{API:{addTopic:dl}},frames:{getChannel:function(){return Gg}},getAssetUrl:Ar,getEventable:function(){return Bn.call({})},GlobalRuntime:{addGlobalScript:Uu.addGlobalScript,removeGlobalScript:Uu.removeGlobalScript},GuideActivity:hm,GuideLoop:{addUpdatePhase:jl,removeUpdatePhase:zl},guides:{addProcessor:am,removeProcessor:sm,registerDisplayableGuides:su,removeDisplayableGuides:du},hosts:{SERVER:nt},NodeSerializer:yd,q:J,sessionStorage:h.getSession(),sizeElements:Cc,store:q,Tombstone:tu,transmit:{buildBaseDataUrl:jr,fetchKeepalive:Hr,sendBeacon:Kr},log:X,util:{trim:gt,base64EncodeString:xt,parseUrl:Uo},constants:{URL_MAX_LENGTH:fs}};function vm(t){K.find(fm,function(e){return e.name===t.name})?X.warn("Plugin with name ".concat(t.name," already exists. Skipping registration.")):(fm.push(t),gm&&t.initialize(C,mm))}function ym(){return K.each(fm,function(e){e.initialize(C,mm)}),gm=!0,bm}function bm(){K.each(fm,function(e){K.isFunction(e.teardown)&&e.teardown(C,mm)}),gm=!1}function Im(t){return K.map(fm,function(e){return e.validate&&!t&&e.validate(C,mm),e.name})}function wm(e){return K.extend(e.uri,K.pick(e,"name")),vm(e.uri),e}function Cm(e){return!!e.uri.initialize&&!!e.uri.teardown}ul.registerExtensionsByUse("plugin",wm,Cm);var Sm=!1,Am=function(e){var t=e.old_visitor_id,e=e.visitor_id;return Xn(t)?Kn(e)?Xn(e)?(X.info("Visitor is anonymous: "+e),!1):ei(e)?(X.info("Visitor id is the default: "+e),!1):(X.info("Re-mapping visitor identity from "+t+" to "+e),!0):(X.info("Not valid visitor id: "+e),!1):(X.info("Visitor is already identified: "+t),!1)},Tm=function(e){var t=e.old_account_id,e=e.account_id;return Kn(e)?t!==e&&(X.info("Re-mapping account identity from "+t+" to "+e),!0):(X.info("Not valid account id: "+e),!1)};function _m(){Sm||(y.identify.on(function(e){e=e.data[0];(Am(e)||Tm(e))&&(qa("identify",e),Fa())}),y.metadata.on(function(e){var t;il()||(t=(e=e.data[0]).options,e.hashChanged&&(qa("meta",t),Fa()))}),Sm=!0)}var Em=function(){var r="guideActivity",o=function(){return(new Date).getTime()-Zh()},a=K.isObject;return{type:r,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,a(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(a(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return u(e)}(t)||function(e){return s(e)}(t)||function(e){return d(e)}(t))&&(e=function(e){var t=se.getResourceCenter();if(t){var n=t.activeModule,i=u(e);if(i?(i={elementId:i.id},/^pendo-close-guide/.test(i.id)?i.actions=[{action:"dismissGuide"}]:/^pendo-left-caret/.test(i.id)&&(i.actions=[{action:"showGuide",guideId:t.id}])):i=s(e)||d(e),i)return i.guideId||(i.guideId=(n||t).id),i.stepId||(i.stepId=(n||t).steps[0].id),i.actions||(i.actions=[{action:"showGuide",guideId:i.elementId}]),i.language||(i.language=(n||t).language),Uf({type:r,visitorId:Q(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:o(),language:i.language})}}(n))&&zf(e)}};function s(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:ee("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&a(e.parentElem)?s(e.parentElem):null}function d(e){var t=e.cls.split(" ");if(-1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide"))return"pendo-resource-center-container"!==e.id&&a(e.parentElem)?d(e.parentElem):null;t=se.getResourceCenter();if(t){e=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}}return null}function u(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-left-caret/.test(e.id))?{type:e.tag,id:e.id}:"pendo-guide-container"!==e.id&&a(e.parentElem)?u(e.parentElem):null}}(),xm=function(e){return(e=e||C).doesExist(e.apiKey)};function Rm(e){e=e.events;K.each(void 0===e?[]:e,function(e,t){Tu[t]&&Tu[t](e)})}var km=0,Om="initializeImmediately",Nm=[],Mm=wi(function(e){if("complete"===document.readyState||K.get(e,Om)||m.get(Om))if(X.info("pendo.initialize called with "+JSON.stringify(e)),C.apiKey)1==km++&&X.info(["pendo.initialize only needs to be called once",Mt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},K.isEmpty(za.get())&&(t=za.getJwtOptions(e,"initialize"))&&(za.set(K.pick(e,"jwt","signingKeyName")),K.extend(e,t,{forceAnonymous:!0})),K.isString(e))return p.get(e).then(function(e){return pe(i=e.data),Mm()});q.dispatch("location/init",e.location||{}),m.setLocalConfig(e),wr(),Cr(C);var t=m.get("cookieDomain");t&&wn(t,location.host),eh.discoverKeys(e),eh.getApiKey()?(q.commit("metadata/setMetadata",{selfHosted:tl()}),e.logStackTraces&&(C.logStackTraces=e.logStackTraces),m.get("preferBroadcastChannel")&&wh.secure(!0),Nm.push(Hs()),$r&&(h.registry.addLocal(zn),h.registry.addLocal(Zn),h.registry.addLocal(Vn),h.registry.addLocal(Yc),h.registry.addLocal(Vl),C.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,Rm(e),Nm.push($g()),_m(),Nm.push(Bd()),Nm.push(ym()),Nm.push(um(e)),y.appUsage.on(hm.handler),y.appUsage.on(Em.handler),Nm.push(Pa(Sa))),Jn()||qn(),C.updateOptions(e),e.visitorId&&e.visitorId!=Qn&&C.identify(e.visitorId),Nm.push(f.watch(function(){C.pageLoad()})),$r&&y.ready.trigger(),Ks(f.get()),km++,Lm(),Gm()):X.debug("API key is not set, Pendo will not initialize.")}else V(C,"initialize",arguments)});function Lm(){window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},wh.targetOrigin())}function Fm(e){return!K.isArray(e)||K.isEmpty(e)}function Pm(e){if(!Fm(e))return K.find(e,function(e){return"initialize"===e[0]})}function Gm(i){var e;return!Fm((i=i||C)._q)&&(e=!!Pm(i._q),xm(i)||e)?(e=i._q.splice(0,i._q.length),K.reduce(e,function(e,t){var n;return K.isArray(t)&&(n=i[t.shift()],K.isFunction(n))?e.then(function(){return n.apply(i,t)}):e},J.resolve()).then(Gm)):J.resolve()}function Dm(){xm()?X.info("already running"):(window.pendo_options&&Mm(window.pendo_options),Gm())}function Bm(e,t,n){m.get("disableAutoInitialize")||(e=(e=Pm(e))&&1<e.length?e[1]:{},K.get(e,Om)||m.get(Om)?t():Nm.push(n(t)))}function Wm(){y.appHidden.trigger(),y.appUnloaded.trigger(),K.each(Nm,function(e){e()}),Ks.reset(),Nm.length=0,wh.close(),Bn.clear(y),Bn.clear(Tu),delete C.apiKey,km=0}var Um=function(e){var t,n=dm();n&&(t=n.guide.steps[n.stepIndex+1],Dt(function(){var e=s(t.elementPathRule);0!==e.length&&K.some(e,b)?hf(n.step):hf(t)},e=e||0))},$m=function(e,t){var n=dm(),i=ee(t=t||n.step.elementPathRule)[0],r=function(){hf(),w(i,e,r,!0)};I(i,e,r,!0)},jm=function(){ee("._pendo-guide_").css("display:none;");var t=Vf(),e=dm().guide.steps,n=K.filter(K.rest(e),function(e){return!!e.pageId}),n=K.indexOf(e,K.find(n,function(e){return Hf(e.regexUrlRule,t)}));X.info("startingPoint is "+n),-1==n?ee("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],X.info("found starting step to be "+n.id),hf(n))},zm=function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=K.findWhere(i,{seenState:"active"}));else{var i=dm();if(!i)return;t=i.guide,n=i.step}return(e=K.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})},Zm={getActiveGuide:dm,smartNextStep:Um,smartFirstStep:jm,advanceOn:$m,renderStepPosition:zm},x=function(){return{renderGuideFromJSON:function(e,n,t,i){var r=n.getGuide(),o=$u(e),a=K.get(r,"attributes.resourceCenter");a&&(se.revertRtlChanges(r,e.props),e=se.updatePseudoStyleSelectors(e));var s=a&&se.isFullyCustom(r),d="AnnouncementsModule"===K.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=mu(n),x.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),u="data-vertical-alignment",c="Relative to Element"===t.attr(u);c&&!a&&ee(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});u=dh.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(u)},x.buildNodeFromJSON);u&&t.append(u);var u=n&&n.attributes&&n.attributes.imgCount,l=oe(),p=K.get(r,"attributes.embedConfig",null);{var h,f;p?(f="pendo-guide-container",g=o[0],h=g.querySelector("#".concat(f)),h&&(h.id="".concat(f,"-").concat(n.id),g.id="".concat("pendo-base","-").concat(n.id)),h=p.selector,f=p.method,l=ee(h)[0],"replace"===f&&l?(l.innerHTML="",o.appendTo(l)):"prepend"===f?o.prependTo(l):o.appendTo(l)):o.appendTo(l)}(function(e,t,n){t=ee.getRootNode(t),e=ee.getRootNode(e);e!==t&&(n=ee(".pendo-style-".concat(n),e)).length&&(n.remove(),n.appendTo(t))})(oe(),o[0],n.id),Cc(o),s||d||(x.recalculateGuideWidth(n.containerId,n.guideElement),x.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||x.flexAllThings(n.containerId,n.guideElement);s||x.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":wc.attachBBAdvanceActions(n);c&&!u&&wc.positionStepForTooltip(n,e,t[0]);{var g;a&&(se.showHomeViewOrEmptyState(r),g=[],d?g=[r.attributes.resourceCenter]:x.flexAllThings(n.containerId,n.guideElement),g.length)&&K.forEach(g,function(e){e=K.get(e,"children",[]);K.forEach(e,function(e){var t;e&&(t=e.steps[0],K.isUndefined(t.attributes.imgCount))&&(t=K.get(t,"id",n.id),e=K.get(e,"id",r.id),t=ee("#pendo-g-"+t).length?t:e,x.flexAllThings("pendo-g-"+t,n.guideElement))})})}{var m;u?(m=J.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=J.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),C.designer||(K.get(n,"attributes.isAutoFocus")&&(x.autofocusStep(n,t),x.trapFocusStep(n,t),n.hiddenElements=x.addAriaHiddenOutsideGuide(o[0])),a&&(x.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(p=r.activeModule.steps[0],x.autofocusStep(p,p.guideElement)):x.autofocusStep(n,t)));return ee(".pendo-video-wrapper",o).each(function(t){ee("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),x.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,t){var n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",i={maxRetries:100,delay:50,exponentialBackoff:!1};Wt(function(){var e=ee(t).find("#pendo-guide-container");return(e=e[0]||e)&&b(e)&&ko(e)&&Oo(e)?e:null},i,function(t){Wt(function(){return!!(e=t)&&(e.focus(),e===ee.getRootNode(e).activeElement);var e},i,function(){},function(){X.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){X.warn(n+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,d,u,n,c=e[0];c&&(t=["a[href]:not([disabled])","button:not([disabled])","textarea:not([disabled])",'input[type="text"]:not([disabled])','input[type="radio"]:not([disabled])','input[type="checkbox"]:not([disabled])',"select:not([disabled])","[tabindex]","iframe"].join(", "),(o=K.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=f(e),d=t[0],u=t[1],n=function(e){var t,n,i=l(e),r=e.shiftKey;i&&(t=(i=ee.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===d||t||n)&&(h(o,s).focus(),e.preventDefault()):(t||i===u||n)&&(h(o,a).focus(),e.preventDefault()))},I(document,"keyup",n),I(document,"keydown",n),y.one("unmounted",function(){w(document,"keyup",n),w(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){var e,t,s,d,n,i,r,u=se.getResourceCenter(),c=se.getResourceCenterContainer();"dom"===u.launchMethod&&c&&(e=ee(u.attributes.activation.selector)[0])&&(t=f(ee(c)),s=t[0],d=t[1],n=function(e){var t,n,i,r=l(e),o=e.shiftKey;function a(t){return Object.values(i).findIndex(function(e){return e===t})}r&&(r=ee.getRootNode(c).activeElement,t=ee(u.attributes.activation.selector)[0])&&(n=r===s,r=r===d,i=ee(Lo),o?n?(t.focus(),e.preventDefault()):r&&p(0===(o=a(s))?i.length-1:o-1,i,e):r?p(a(t)+1,i,e):n&&p((o=a(d))>=i.length-1?0:o+1,i,e))},i=function(e){var t=l(e),n=e.shiftKey;t&&!n&&p(0,ee('[id^="pendo-g-"]').find(Lo),e)},r=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=s&&t&&p((n=ee('[id^="pendo-g-"]').find(Lo)).length-1,n,e)},I(document,"keyup",n),I(document,"keydown",n),I(e,"keydown",i),I(e,"focus",r),y.one("unmounted",function(){w(document,"keyup",n),w(document,"keydown",n),w(e,"keydown",i),w(e,"focus",r)}))},addAriaHiddenOutsideGuide:function i(e,n){void 0===n&&(n=[]);if(!e||e===bo())return n;var t=wo(e);K.each(t,function(e){var t;-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")&&"script"!==(t=e.tagName.toLowerCase())&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))});e.parentNode&&i(e.parentNode,n);return n},renderResourceCenterModule:se.renderResourceCenterModule,buildNodeFromJSON:Bc,attachImgLoadHandlers:Wc,recalculateGuideHeightOnImgLoad:Uc,buildStyleString:function(e){var n="";return K.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:zc,bindActionToNode:$c,recalculateGuideHeight:Ac,recalculateGuideWidth:Tc,adjustGuideContentWidth:_c,findDomBlockInDomJson:ju,isElementHiddenInGuide:ae.isElementHiddenInGuide,positionStepForTooltip:wc.positionStepForTooltip,flexAllThings:ae.flexAllThings,flexElement:ae.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(K.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:uc,buildNodesFromJSON:Pc,findGuideContainerJSON:$u,maintainAspectRatios:ae.maintainAspectRatios,sizeElement:Sc,sizeElements:Cc,getAllowedAttributes:Dc,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:wc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:cm,addVideoLoadListener:function(e,t){I(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function l(e){return"Tab"===e.key||9===e.keyCode}function p(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function h(e,t){var n,i;return"radio"===t.getAttribute("type")&&(n=t.getAttribute("data-pendo-poll-id"),i=K.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return n===t&&e.checked})),i||t}function f(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:K.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:K.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=x.buildNodeFromJSON(t),t=(e.prepend(t),document.createElement("div")),n=(t.setAttribute("id","pendo-start-focus-bumper-"+Date.now()),t.setAttribute("class","pendo-start-focus-bumper"),t.setAttribute("tabIndex",0),e.prepend(t),document.createElement("div"));return n.setAttribute("id","pendo-end-focus-bumper-"+Date.now()),n.setAttribute("class","pendo-end-focus-bumper"),n.setAttribute("tabIndex",0),e.append(n),[t,n]}}(),Vm,Ym;function Hm(e,t){var n="",i=e.nodeType;if(t=t||128,i===_r||i===kr)return e.nodeValue;if(!Km(e)&&(i===Er||i===xr||i===Rr)){if(!e.childNodes)return n;for(var r,o=0;o<e.childNodes.length;++o){if(t<=(n+(r=Hm(e.childNodes[o],t-n.length))).length)return n+qm(r.substring(0,t-n.length));n+=r}}return n}function Km(e){return!e.tagName||"textarea"==e.tagName.toLowerCase()}function Xm(e){return 55296<=e&&e<=56319}function Jm(e){return 56320<=e&&e<=57343}function qm(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Xm(t)||Jm(t)){if(1===e.length)return e.slice(0,-1);if(Xm(t))return e.slice(0,-1);if(Jm(t))if(!Xm(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}var Qm=100,ev=[],tv=[],nv="log-enabled",iv="active-contexts",rv=function(e){var t=h.read(nv,!0);return null!==t?"true"==t:!K.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","rc"],e)},ov=function(){var e=h.read(iv,!0);return e?e.split(","):[]},av=function(){return cv()?Ym?"logging already enabled":(h.write(nv,"true",null,!0),Ym=!0,"logging enabled"):"logging unavailable"},sv=function(){return Ym?(h.write(nv,"false",null,!0),Ym=!1,"logging disabled"):"logging already disabled"};function dv(){Vm=ov(),Ym=rv(tt),X.addEventListener("log",hv),h.registry.addLocal(nv),h.registry.addLocal(iv)}var uv=function(e,t){return K.compact([].concat(e,t))},cv=function(e){return e=e||"log","undefined"!=typeof console&&K.isFunction(console[e])},lv=function(e){return e=uv(e),0<Vm.length?0<K.intersection(Vm,e).length:!!Ym||!!Hl()},pv=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];X.info(e,{contexts:t})};function hv(e){var t;e.level!==tn.Debug&&e.level!==tn.Info||(t=e.attributes?uv(e.attributes.contexts):[],cv()&&lv(t)&&wv(e.message),mv(ev,e.message,t))}function fv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];cv("error")&&console.error.apply(console,e),mv(tv,e.join(" "))}function gv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];cv("warn")&&console.warn.apply(console,e)}var mv=function(e,t,n){K.contains(n,"debug")||(e.length==Qm&&e.shift(),e.push([t,n]))},vv=function(t){t=uv(t),K.each(K.map(K.filter(ev,function(e){return 0===t.length||0<K.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){wv(e,"[Pendo-History] ")})},yv=function(){return K.union.apply(K,K.map(ev,function(e){return e[1]}))},bv=function(){return Vm},Iv=function(e){Vm=uv(e),h.write(iv,Vm.join(","),null,!0)},wv=function(e,t){var n;cv()&&(t=t||"[Agent] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function Cv(e){X.debug(e,{contexts:["debug"]})}function Sv(){return 0<tv.length}function Av(){return[].concat(tv)}function Tv(e,t){var n;e&&K.isString(e)?(K.isObject(n=t)||(n={__err__:t}),t=f.get(),qa("track",n,t,e)):X.error("Must provide valid name string for event tracking")}pv.init=dv,pv.enableLogging=av,pv.disableLogging=sv,pv.getActiveContexts=bv,pv.setActiveContexts=Iv,pv.showLogHistory=vv,pv.getLoggedContexts=yv;var _v=function _v(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):S(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),C.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=Q(),e=(Xn(e)&&a("warn",'The current visitor is not identified and will be treated as "anonymous". Is this expected? (You might have used "VISITOR-UNIQUE-ID" as the visitor ID)',"isAnonymousVisitor"),ei(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),fi()),t=(e||a("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===e&&a("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),m.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),rl());if(K.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=K.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=K.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&K.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),K.each(K.keys(i),function(e){var t=i[e];K.isObject(t)&&!K.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):K.isArray(t)&&K.any(t,K.isObject)?a("warn",e+" contains object values. The objects will be ignored.",n+"Metadata",t):a("log",e+":",n+"Metadata",t)}),r||console.groupEnd()):"parentAccount"!==n&&a("warn","No "+n+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",n+"MetaData")}),r)return o;console.groupEnd()},Ev=function(n){var e=[{nativeType:Object.prototype,displayName:"Object | Prototype "},{nativeType:Object,displayName:"Object ",propsToCheck:["create","getOwnPropertyNames"]},{nativeType:Number.prototype,displayName:"Number | Prototype"},{nativeType:String.prototype,displayName:"String | Prototype"},{nativeType:Function.prototype,displayName:"Function | Prototype"},{nativeType:Boolean.prototype,displayName:"Boolean | Prototype"},{nativeType:Array.prototype,displayName:"Array | Prototype"},{nativeType:Date.prototype,displayName:"Date | Prototype"},{nativeType:RegExp.prototype,displayName:"RegExp | Prototype"},{nativeType:JSON,displayName:"JSON ",propsToCheck:["parse","stringify"]},{nativeType:Math,displayName:"Math "},{nativeType:Vt.prototype,displayName:"Promise | Prototype"},{nativeType:window,displayName:"Window ",propsToCheck:["alert","asap","atob","btoa","cancelAnimationFrame","clearImmediate","clearInterval","clearTimeout","close","confirm","getComputedStyle","getSelection","open","postMessage","prompt","requestAnimationFrame","scroll","scrollBy","scrollTo","setImmediate","setInterval","setTimeout","stop","XMLHttpRequest","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent"]}],r=!1,i=(K.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);K.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&(n[e].toString().includes("[native code]")||i.push(e))}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),K.each(e,function(e){var t;e.nonNativeImplementations&&(t=e.displayName.trim(),n?i.implementations.push({nativeType:t,nonNativeImplementations:e.nonNativeImplementations}):console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", ")))}),n?i:void console.groupEnd()):n?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},xv=function(e){var t=[];if(K.isNumber(window.frames.length)&&K.isFinite(window.frames.length)&&ee("iframe").length+ee("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),K.each(t,function(e){console.warn(e)}),console.groupEnd()}},Rv=function(e){var t,n=window.location.href,i=[];try{(t=Ji())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=f.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),K.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()},kv=function(e){if(Sv()){var t=Av();if(e)return t;console.group("Agent Error History"),K.each(t,function(e,t){console.log("Error History ",t,e)}),console.groupEnd()}},Ov=function(e){var t=Im(e);if(e)return t;console.group("Active Plugins"),K.each(t,function(e){return console.log(e)}),console.groupEnd()},Nv=function(e){var t={install:_v(e),plugins:Ov(e),globals:xv(e),url:Rv(e),errors:kv(e)};if(e)return t.methods=Ev(e),t;m.validate(console)},Mv={BuildingBlockGuides:x,BuildingBlockResourceCenter:se,BuildingBlockTemplates:Vu,BuildingBlockTooltips:wc,BuildingBlockSvgs:Yu};function Lv(e,t){this.state={duration:e,isStopped:!0,handle:null,cb:t,hasRun:!1,errors:[],options:{}},this.shouldJobRun=function(){return!(!this.state.hasRun&&this.state.options.skipFirstRun||this.state.isStopped)},this.doJob=function(e){if(e)try{this.state.cb(this)}catch(t){this.state.errors.push(t)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Dt(this.run,this.state.duration)},this.run=K.compose(K.bind(this.afterJobRun,this),K.bind(this.doJob,this),K.bind(this.shouldJobRun,this))}Lv.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Lv.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Fv=p.urlFor;function Pv(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(K.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw new Error("Invalid URL attribute type: "+e);if(!K.contains(i[e],t))throw new Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function Gv(e){return e instanceof Si||e instanceof HTMLAnchorElement}Pv.prototype.applyToURL=function(e){return{AllowOnlyKeys:function(e,t,n){K.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Si(fr(t,null,n,!1))},ExcludeKeys:function(e,t,n){K.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Si(fr(t,null,n,!0))},AddTo:function(e,t,n){K.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Si(Fv(t,n))},Clear:function(e,t){return e[t]="",e},Replace:function(e,t,n){return K.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Si(n):(e[t]=n,e)},ForceSecure:function(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},Pv.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Pv.fromJSON=function(e){return e instanceof Pv?e:new Pv(e.attr,e.action,e.data)};var Dv=function(){var n=function(t,n,i,r){return[new Pv("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new Pv("href","ForceSecure")]},i=function(){var e=Xi(),t=f.isElectron()?n(f.electronAppName(),f.electronResourcesPath(),f.electronUserDirectory(),f.electronUserHomeDirectory()):[];return s([].concat(t),e)},e={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:i},r=new Lv(500,function(e){!xm()||Xs(document)||Ks()}),o=function(e){if("string"==typeof e)return new Si(e);if(Gv(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},a=function(e){return e||window.location},s=function(e,t){return K.reduce(e,function(e,t){return t.applyToURL(e)},t)},t=function(e){try{var t=function(e){return n=e},n=K.reduce([e.currentSrcFn,o,t,K.partial(s,e.transforms),o,t,K.partial(s,e.internalTransforms),o],function(e,t){return t(e)},null)}catch(i){X.critical(i),n=a(n)}return n};return{state:e,actions:{init:function(e,t){e.commit("clearTransforms"),e.commit("clearInternalTransforms"),e.commit("changeUrlSource"),t.transforms&&e.dispatch("addTransforms",t.transforms),t.setUrl&&e.commit("changeUrlSource",t.setUrl)},addTransforms:function(t,e){K.each(e,function(e){t.commit("addTransform",Pv.fromJSON(e))})},addInternalTransforms:function(t,e){K.each(e,function(e){t.commit("addInternalTransform",Pv.fromJSON(e))})},removeInternalTransforms:function(t,e){K.each(e,function(e){t.commit("removeInternalTransform",Pv.fromJSON(e))})},startPolling:function(e){r.start()},stopPolling:function(e){e.state.currentSrcFn===i&&r.stop()}},mutations:{addTransform:function(e,t){e.transforms.push(t)},addInternalTransform:function(e,t){e.internalTransforms.push(t)},removeInternalTransform:function(e,t){t=K.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms:function(e){e.transforms=[]},clearInternalTransforms:function(e){e.internalTransforms=[]},changeUrlSource:function(e,t){if(t){if("string"==typeof t)var n=new Si(t),n=K.partial(K.identity,n);else if(Gv(t))n=K.partial(K.identity,t);else{if("function"!=typeof t)throw new Error("URL Source must be either a Function that returns a URL or String that is a valid URL. Or, it may be a static URL or String.");n=t}e.currentSrcFn=n,r.start(!xm())}else e.currentSrcFn=i,r.stop()}},getters:{url:t,href:function(e){return t(e).href}}}}();function Bv(e){var t;if("function"==typeof Bv[e])return t=K.toArray(arguments).slice(1),Bv[e].apply(Bv,t)}K.extend(Bv,{getHref:function(){return q.getters["location/href"]()},clearTransforms:function(){q.commit("location/clearTransforms"),Ks()},addTransforms:function(e){q.dispatch("location/addTransforms",e),Ks()},setUrl:function(e){q.commit("location/changeUrlSource",e)},useBrowserUrl:function(){q.commit("location/changeUrlSource"),Ks()}});var Wv=1e4;function Uv(){return m.get("guideSeenTimeoutLength")||Wv}var $v=function(){var i=[];return{name:"StepTimeoutMonitor",initialize:function(){this._beforeGuideShow=K.bind($v.beforeGuideShow,$v),this._stop=K.bind($v.stop,$v),y.beforeGuideShow.on(this._beforeGuideShow),y.guideSeen.on(this._stop),y.guideNotSeen.on(this._stop)},teardown:function(){$v.stop(),y.beforeGuideShow.off(this._beforeGuideShow),y.guideSeen.off(this._stop),y.guideNotSeen.off(this._stop)},beforeGuideShow:function(e){var t=e.data[0],e=e.data[1],n=t.guide;m.get("enableGuideTimeout")&&(e=-1<K.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==K.indexOf(n,t)||e)&&$v.start(t))},start:function(e){var o,t,n=i[0];n&&n===e.id||(n&&n!==e.id&&(n=i[1],K.isFunction(n))&&n(),e.shouldStartTimer()&&(o=Uv(),n=K.partial(function(e,t){var n,i,r=T(t);r&&(n=r.findStepById(e))&&!r.isShown()&&(i=n.canShowOnPage(Vf())?bf(n)?"other":"element":"page",Ff(t,e,Q(),i,r.language,o),X.info("Guide "+t+" timed out showing Step "+e),n.timeout()),$v.stop()},e.id,e.guide.id),t=Dt(n,o),i=[e.id,n,t]))},stop:function(){var e=i[2];e&&clearTimeout(e),i=[]},getGuideSeenTimeoutLength:Uv}}();function jv(){console.warn("This functionality is not supported by your subscription.")}function n(e){return $r?e:jv}function zv(e){e.getVersion=ut,e.isReady=xm,e.pageLoad=Ks,e.getVisitorId=li,e.getAccountId=fi,e.clearSession=bi,e.VERSION=at,e.LOADER=dt,e.flushNow=n(function(e){return La(!0,e)}),e.teardown=wi(Wm),e.initGuides=n($g),e.loadGuides=n(yg),e.findGuideByName=n(iu),e.hideGuides=n(Jh),e.onGuideDismissed=n(uf),e.goToStep=pf,e.onGuideAdvanced=n(hf),e.onGuidePrevious=n(ff),e.onGuideSnoozed=cf,e.startGuides=n(kl),e.stopGuides=n(Ol),e.defaultCssUrl=n(Bh()),e.getActiveGuides=A,e.getActiveGuide=dm,e.guideSeenTimeoutLength=$v.getGuideSeenTimeoutLength(),e.guidesPayload=tg,e.areGuidesDisabled=n(jg),e.setGuidesDisabled=n(Zg),e.buildNodeFromJSON=x.buildNodeFromJSON,e.flexElement=n(x.flexElement),e.GuideFactory=n(Nu),e.dom=ee,e.getText=Hm,e.attachEvent=n(I),e.detactEvent=n(w),e.frames={setFrameVisibility:Au},e.log=pv,e.enableLogging=av,e.disableLogging=sv,e.setActiveContexts=Iv,e.showLogHistory=vv,e.getLoggedContexts=yv,e.isDebuggingEnabled=K.noop,e.enableDebugging=K.noop,e.disableDebugging=K.noop,e.addDebuggingFunctions=K.noop,e.stopSendingEvents=n(Ra.lock),e.startSendingEvents=n(Ra.unlock),e.isSendingEvents=n(Qr),e.fromByteArray=u.uint8ToBase64,e.events=n(Tu),e.track=n(Tv),e.validateInstall=_v,e.validateNativeMethods=Ev,e.validateBuiltInGlobals=xv,e.validateUrl=Rv,e.validateEnvironment=Nv,e.doesExist=S,e.generate_unique_id=Yn,e.TEMP_PREFIX=$n,e.SIZE_UNIQUE_ID=jn,e.defaultLauncher=K.noop,e.toggleLauncher=K.noop,e.showLauncher=K.noop,e.hideLauncher=K.noop,e.removeLauncher=K.noop,e.identify=el,e.get_visitor_id=li,e.set_visitor_id=function(e){el(e)},e.get_account_id=fi,e.set_account_id=function(e){el(Q(),e)},e.getSerializedMetadata=ol,e.compress=Ct,e.squeezeAndCompress=Ct,e.randomElement=kt,e.randomString=Ot,e.toUTF8Array=mt,e.getNumberFromText=Ut,e._addCredits=n(gf),e.getCurrentUrl=Vf,e.getNormalizedUrl=Vf,e.testUrlForStep=n(Hf),e.showGuideByName=n(Kf),e.showGuideById=n(Xf),e.designerv2=nh,e.P2AutoLaunch=n(ih),e.BuildingBlocks=n(Mv),e.onConnectMessage=K.noop,e.buffers=Ra,e.guideDev=n(Zm),e.badgesShown=n(Kd),e.get_pendo_cookie=Tn,e.DEFAULT_EXPIRE_LEN=En,e.set_pendo_cookie=Rn,e.loadResource=Vo,e.loadWatcher=Yo,e.messageLogger=Ho,e.messageReceiver=Ko,e.messageValidator=Xo,e.MESSAGE_TYPES=na,e.messageDispatcher=oa,e.moduleRegistry=aa,e.addModule=sa,e.hasModule=n(da),e.findModuleByName=n(ua),e.modulesWaiting=ca,e.loadModules=la,e.moduleLoader=fa,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=l,e.url=f,e.location=Bv,e.Sizzle=s,e._=K,e.ajax=p,e.Zlib=_t,e.guideContent=n(Bu.guideContent),e.receiveDomStructureJson=n(Bu.receiveDomStructureJson),e.addExtension=cl}var Zv="is going away",Vv="is gone",Yv=K.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return X.info(e),e});function Hv(e,t,n){return function(){return Yv("pendo."+t,n),(e||K.noop).apply(null,arguments)}}function Kv(t){t.SHADOW_STYLE="",K.extend(t,{_showElementGuide:K.noop,flushEventCache:Hv(null,"flushEventCache",Vv),HOST:br,MAX_LENGTH:Ta,MAX_NUM_EVENTS:Aa,_createToolTip:K.noop,_get_tooltip_dimensions:K.noop,_isOldIE:n(Hv(ke,"_isOldIE",Zv)),_logMessage:Hv(Zr,"_logMessage",Zv),_sendEvent:Hv(null,"_sendEvent",Vv),_sendGuideEvent:Hv(null,"_sendGuideEvent",Vv),_stopEvents:!1,_storeInCache:Hv(null,"_storeInCache",Vv),_writeEventImgTag:Hv(null,"_writeEventImgTag",Vv),_writeImgTag:n(Hv(Yr,"_writeImgTag",Zv)),getUA:Hv(Fe,"getUA",Zv),ifDebugThen:Hv(null,"ifDebugThen",Vv),send_event:n(Hv(qa,"send_event","has changed to pendo.cache.createEvent")),wire_page:Hv(Bd,"wire_page",Zv),messageOriginTester:Hv(null,"messageOriginTester",Vv),findGuideBy:n(nu),findGuideById:n(T),findStepInGuide:n(ru),_updateGuideStepStatus:n(Kh),_addCloseButton:n(Yh),initialize:Mm,getEventCache:n(Ng),processEventCache:n(Og),isGuideShown:n(Vh),_getNextStepInMultistep:n(Zf),attachEvent:I,detachEvent:w,updateOptions:Qc,createLauncher:K.constant({}),initLauncher:K.noop,_addGuideToLauncher:K.noop,launcherToolTipDiv:null,isAnonymousVisitor:function(e){return void 0===e&&(e=t.get_visitor_id()),Xn(e)},DEFAULT_VISITOR_ID:Qn,shouldIdentityChange:K.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:In,_get_cookie:bn,get_cookie_key:An,ENV:tt,eventCache:n(wa),_getOpacityStyles:Hv(null,"_getOpacityStyles",Zv),setStyle:so,_createGuideEvent:n(Uf),seenGuide:n(Of),dismissedGuide:n(Nf),advancedGuide:n(Lf),seenTime:0,placeBadge:n(up),isBadge:n(lu),showPreview:n(Hv(Tf,"showPreview",Zv)),removeAllBadges:n(cp),tellMaster:ga,DEFAULT_TIMER_LENGTH:Al,registerMessageHandler:ia,_get_offset:n(ie),_shouldAutoDisplayGuide:K.constant(!1),removeBadge:lp,_showLightboxGuide:K.noop,_showGuide:n(xf),getElementForGuideStep:n(mu),isElementVisible:b,getTooltipDivId:n(Sf),setupWatchOnTooltip:n(Af),letters:"",charset:"",detectMaster:ma,listenToMaster:Hv(null,"listenToMaster",Vv),start:Vd,SEND_INTERVAL:Sa,stageGuideEvent:n(zf),startStagedTimer:jf,isURLValid:Ea,getURL:xa,_get_screen_dim:n(lo),_isInViewport:n(po),_getCss3Prop:oo,waitThenStartGuides:n(Tl),guidesProcessingThreadHandle:Sl,getMode:K.constant("default")})}function Xv(e){return e&&1===e.length?e[0]:K.any(e,$t)?J.all(e).then(function(e){return K.any(e)}):void 0}function Jv(){var e,t=this,n=(this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},K.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Mu(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&K.contains(this.attributes.activation.event,e)&&this.canEventActivatedGuideBeShown())},this.isContinuation=function(e){return!1},this.isGuideWidget=function(){return this.attributes&&"launcher"===this.attributes.type},this.isOnboarding=function(){return this.attributes&&!!this.attributes.isOnboarding},this.isWhatsNew=function(){var e=K.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return K.get(this,"attributes.isAnnouncement")},this.isHelpGuide=function(){return!this.isOnboarding()&&!this.isWhatsNew()&&!this.isGuideWidget()},this.nextStep=function(e){return null},this.hasLaunchMethod=function(e){return this.launchMethod&&0<=this.launchMethod.indexOf(e)},this.shouldAutoDisplay=function(){return!this.outsideTimebox()&&this.hasLaunchMethod("auto")&&K.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return Xv(K.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return K.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return K.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!hu()){var e=fu(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop)return!1;if(e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&K.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?K.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&K.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return Xv(K.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){K.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return K.all(this.steps,function(e){return e.hasBeenSeen()})},this.canBadgeBeShown=function(){var e=this.attributes.badge;return!(e&&e.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.placeBadge=function(){var e;this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()&&!this.outsideTimebox()?(e=K.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=K.first(this.steps))&&K.isFunction(e.canShowOnPage)&&e.canShowOnPage(Vf())&&up(this)):pp(this)},this.findStepById=function(t){return K.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!K.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return Nt(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?K.find(n,function(e){return Nt(e.text,t,!0)}):e)?i="tag":(n=K.map(this.steps,function(e){return e.searchFor(t)}),0<K.compact(n).length&&(i="content"))),!!i&&{guide:this,field:i}},this.shouldBeAddedToResourceCenter=function(){var e,t=this;return!(!t.steps||!t.steps.length||t.control||!t.eligibleInFrame&&(!t.steps[0].content&&!K.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Vf())||!t.canShowOnDevice()||!bf(e)||t.outsideTimebox()))},this.shouldBeAddedToLauncher=function(){var e;return!(!this.steps||!this.steps.length||(e=this.steps[0],!this.hasLaunchMethod("launcher")&&!this.isWhatsNew())||!e.canShowOnPage(Vf())||!this.canShowOnDevice()||!bf(e)||this.outsideTimebox())},"PENDO_HELPER_STEP");return this.getPositionOfStep=function(e){var t=K.reject(this.steps,function(e){return Nt(e.content,n)});return K.indexOf(t,e)+1},this.getTotalSteps=function(){return K.reject(this.steps,function(e){return Nt(e.content,n)}).length},this.getSeenSteps=function(){return K.size(K.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return K.all(this.steps,function(e){return K.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&K.any(this.steps,function(e){return K.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return J.all(K.map(this.steps,function(e){if(K.isFunction(e.fetchContent))return e.fetchContent()}))},this.canEventActivatedGuideBeShown=function(){return!(this.attributes.dom&&this.attributes.dom.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.isGuideSnoozed=function(){return K.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return K.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&K.any(this.steps,function(e){return!(t="dismissed"===e.seenState?!0:t)&&"snoozed"===e.seenState&&e.snoozeEndTime&&(new Date).getTime()>e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,K.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&v()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&v()>this.expiresAfter},this.isBeforeStartTime=function(){return!!t.showsAfter&&v()<t.showsAfter},this.outsideTimebox=function(){return t.isExpired()||t.isBeforeStartTime()},this.calculateDismissCountFromSteps=function(){var t=0;return K.forEach(this.steps,function(e){e.dismissCount&&(t+=e.dismissCount)}),t},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function qv(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){K.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var Qv=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function ey(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(K.each(this.steps,function(e){e.after("render",function(){K.each(e.elements,function(e){ee(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=K.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=K.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=K.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return K.find(this.sections,function(e){return K.contains(e,t)})},this.getSubSection=function(e,t){t=K.indexOf(e,t);return e.slice(t+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return(!t||n)&&!!this.nextStep(e)},this.nextStep=function(t){var e=null;if(this.isGuideSnoozed())return null;t=t||{};for(var n,i,r=0;r<this.steps.length;r++)if(this.steps[r].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[r];break}if("advanced"===t.state&&t.destinationStepId){e=K.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(r+1<this.steps.length){e=this.steps[r+1];break}}return e?(n=(new Date).getTime(),(i=t.time)&&432e5<n-i&&!Qv(this)?(o||(X.info("Multi-step continuation has expired",{contexts:["guides","info"]}),o=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||K.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=K.first(this.steps),n=this.nextStep(ml())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return K.first(this.steps).show(e)},this.show=function(e){var t=ml(),n=K.first(this.steps),t=this.nextStep(t)||n;return t.show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=K.last(this.steps);return!!e&&K.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return K.findWhere(e,{seenState:"active"})}),this}function ty(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,K.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(v()),5<=o.length&&((0<(t=K.last(o)-K.first(o))?(o.length-1)/(t/6e4):Infinity)>=ty.MAX_ERRORS_PER_MINUTE&&(n="Exceeded error rate limit, dropping guide.\n"+n,tu.addGuide(a),y.trigger("renderFail",a)),o.shift()),X.critical(n,{error:i}),i}}}return K.each(["canShow","placeBadge","show"],function(e){a[e]=K.wrap(a[e],t(e))}),a}function ny(){return K.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=K.wrap(this.shouldBeAddedToLauncher,function(e){return q.getters["frames/hasFrames"]()?!(!q.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!q.getters["frames/isGuideInDifferentFrame"]()(this)&&q.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=K.wrap(this.shouldBeAddedToResourceCenter,function(e){return q.getters["frames/hasFrames"]()?!(!q.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!q.getters["frames/isGuideInDifferentFrame"]()(this)&&q.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function iy(e){var t=this;return"whatsnew"===t.type||K.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=K.wrap(t.isShown,function(e){return e.apply(this,arguments)||q.getters["frames/isShownInAnotherFrame"]()(t)})),t}function ry(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=K.indexBy(o.polls,"id"),i=K.map(u.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=u.id,n=v();Lf(e,t,Q(),u.seenReason,o.language),Kh(e,t,"advanced",n),hl({guideId:e,guideStepId:t,time:n,state:"advanced"})},d=function(){var e=ee("._pendo-poll_"),t=ee("._pendo-poll-message_");t.length?(e.addClass("_pendo-poll-submitted_"),t.css("margin-top:-"+t.height()/2+"px"),n()):u.advance()},u.after("render",function(){var n=ee("._pendo-poll_")[0],e=ee("._pendo-poll-submit_",n)[0];e?u.attachEvent(e,"click",function(e){var t=ee("._pendo-poll-question_",n),t=K.map(t,function(e,t){e=ee("textarea,input:text,select,input:radio:checked",e);if(e&&e.length&&e[0].value)return{pollId:(t=i[t]).id,value:r(t,e[0].value)}});u.response(K.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=ee(Ui(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),u.response([{pollId:t.id,value:e}]),d())})}),u.after("render",function(){var i=ee("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=ee("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),u.attachEvent(i,"click",function(e){var t=ee(":radio:checked",i)[0],n=ee("._pendo-poll_");ee("label",i).removeClass(a),n.removeClass(o),t&&(ee('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),K.isFunction(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(Wg(),K.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return K.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=Uf("pollResponse",u.guideId,u.id,Q(),undefined,o.language);K.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&K.extend(i.props,{poll_type:n.attributes.type}),Lg.push(i)}),Lg.flush())}),u}ty.MAX_ERRORS_PER_MINUTE=30;var oy=function(){return{show:function(t,n){if(hu()&&K.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return i(t,n);if(!q.getters["frames/hasFrames"]()||q.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=se.getResourceCenter();if(e)return i(e.steps[0],t)}}(t,n);if($t(e))return e.then(function(){return i(t,n)}).then(function(e){return!!e||r(t,n)});e=i(t,n);if($t(e))return e.then(function(e){return!!e||r(t,n)});if(e)return!0}return r(t,n)},showLocal:i};function i(e,t){return Wu.hasContent(e)&&ku.valid(e)?(e._show(t),e.isShown()):!(Wu.hasContent(e)&&ku.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Vf()))&&(e.lock(),Wu.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&ku.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function r(t,e){var n=t.getGuide();return!(!q.getters["frames/hasFrames"]()||!q.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),q.dispatch("frames/showGuideStep",{guideId:t.guideId,stepId:t.id,reason:e}).then(function(e){return t.unlock(),e.isShown},function(){return t.unlock(),!1}).then(function(e){return e&&(clearInterval(t.timeoutTimer),delete t.timeoutTimer),e}))}}();function ay(d){var e=!1,t=!1;return this.guide=d,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new pm),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=K.indexOf(t,this),i=rl();try{var r=this.attributes.variables||{},o={step:{id:this.id,isFirst:0===n,isLast:n===t.length-1,index:n,number:n+1},guide:{id:e.id,name:e.name,publishedAt:e.publishedAt,showsAfter:e.showsAfter,percentComplete:t.length?Math.round((n+1)/t.length*100):0,stepCount:t.length},metadata:Et(i),template:r};return this.template||(this.template=K.template(this.content||"")),Fu(this.template(o).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+this.id).replace(/pendo-src="([^"]+)"/g,function(e,t){return/<%=[^>]+>/.test(t)?e:'src="'+t+'"'}))}catch(a){return this.content}},this.isLocked=function(){return e},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!K.get(this,"guide.attributes.isAnnouncement")&&!!d.canShowOnDevice()&&!this.isShown()&&!K.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Vf())&&bf(this)},this.canShowOnPage=function(e){e=Hf(this.regexUrlRule,e);return Hl()&&y.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!K.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var e,t;return!(!(C.designer||hu()||_p())&&(e=Vf(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Hf(this.regexUrlRule,e)?(tu.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),X.critical("pendo.io page rule exception",t),1):q.getters["healthCheck/isMissingPageRule"]()(this)?(tu.addGuide(d),t.error=new Error('missing regexUrlRule"'),X.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(tu.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),X.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return d.skipResourceCenterHomeView&&d.moduleIdToReplaceHomeViewWith&&d.hasEligibleNativeIntegrationModule?(t=K.find(qd(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=K.get(t,"attributes.resourceCenter.integrationProvider"),se.renderNativeIntegration(n,t)):d.continueToNativeModule?se.handleNativeIntegrationContinuation(d):(K.get(d,"attributes.resourceCenter")&&Pl(se.getResourceCenter(),Dl),d.isModule?x.renderResourceCenterModule(d,!1):(n=x.renderGuideFromJSON(e.domJson,e),K.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),se.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=C.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=ee(document.createElement("div")).attr("id",Sf(e)).addClass(Uh+" "+r),o=ee(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=ee(document.createElement("div")).addClass("_pendo-guide-container_"),s=ee(document.createElement("div")).addClass("_pendo-backdrop_");r.width(t),r.height(n),a.css({left:i,top:i}),e.isEditable&&o.attr("contenteditable","true"),o.appendTo(a),a.appendTo(r),d&&K.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){X.info("guide step teardown",{contexts:["guide","render"]}),K.each(this.handlers,function(e){w(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,K.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(K.each(this.hiddenElements,function(e){try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){X.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),Zc(this.id)},this.show=function(e){var t;if(!K.contains(["auto","continue"],e)||!q.getters["healthCheck/isRedisplay"]()(this))return(t=oy.show(this,e))&&t["catch"]&&t["catch"](K.noop),t;q.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!C.designer&&(t=(e=K.get(d,"attributes.resourceCenter"))&&se.isFullyCustom(d),n=d.activeModule?d.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=d.activeModule&&"AnnouncementsModule"===K.get(d.activeModule,"attributes.resourceCenter.moduleId"),y.beforeUpdate.trigger(o),t||r||(x.recalculateGuideWidth(n,o.guideElement),x.adjustGuideContentWidth(n,o.guideElement)),e?(se.adjustResourceCenterWidth(i),r&&d.activeModule.guidesInModule?K.forEach(d.activeModule.guidesInModule,function(e){var t;!K.isUndefined(e.steps[0].attributes.imgCount)&&0!==K.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=ee(i).find("#pendo-g-"+t)[0]?t:e.id,x.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),x.flexAllThings("pendo-g-"+t,o.guideElement))}):x.flexAllThings("pendo-resource-center-container")):x.flexAllThings(n,o.guideElement),t||x.recalculateGuideHeight(n,o.guideElement),y.updated.trigger(o))},this._show=function(e){y.beforeGuideShow.trigger(this,e),this.canShow()&&(!hu()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):y.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!mf(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],K.forEach(e.pollIds,function(t){var e=K.find(n.polls,function(e){return e.id===t});e&&e.attributes&&e.attributes.type&&i.push(e.attributes.type)}),i},this.onControlGuide=function(e){var t;hu()||(this.seenReason=e,zh(v()),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(Rf(this.guideId,this.id,Q(),e,d.language,t),K.each(d.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(t,e){void 0===e&&(e=!0);var n,i,r=this;r.overrideElement&&(ee.addClass(r.overrideElement,"triggered"),r.overrideElement.checkAriaExpanded)&&r.overrideElement.checkAriaExpanded(),hu()||(r.seenReason=t,r.seenState="active",zh(v()),n={last_updated_at:r.lastUpdatedAt},(i=this.getStepPollTypes(d,r))&&(n.step_poll_types=i),e&&Of(r.guideId,r.id,Q(),t,d.language,n),q.dispatch("guideState/updateLastGuideStepSeen",{guideId:d.id,guideStepId:r.id,time:Zh(),state:r.seenState,seenReason:t,visitorId:Q()}),K.each(d.steps,function(e){"snoozed"===e.seenState&&(e.snoozeEndTime=0,Pf(d.id,e.id,Q(),t,d.language))}),Uu.runCustomScripts(r,d)),q.dispatch("frames/guideStepShownInFrame",{guideId:d.id,stepId:r.id,isShown:r.isShown()}),r.guideElement&&r.guideElement[0]&&r.attachEvent(r.guideElement[0],"focusin",function(e){"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName||(C.ignoreResize=!0,Dt(function(){C.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),y.beforeUnmount.trigger(t),t.teardown(),K.each(t.elements,function(e){mo(e)}),y.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(ee.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),q.dispatch("frames/guideStepHiddenInFrame",{guideId:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||hf(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||uf(this)},this.isPoweredByEnabled=function(){return!0!==this.hideCredits},this.isSnoozed=function(){var e="snoozed"===this.seenState,t=!this.snoozeEndTime||(new Date).getTime()>this.snoozeEndTime;return e&&!t},this.shouldRepeat=function(){return!!this.lastSeenAt&&d.redisplay&&!d.outsideTimebox()&&!this.isSnoozed()&&v()-this.lastSeenAt>=d.redisplay.interval&&!d.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return d.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};I(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&Nt(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&wc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&uc(this)},this.getType=function(){return this.domJson?K.get(this,"attributes.calculatedType"):this.type},this}function sy(){return this.after("render",function(){Wp()}),this}function dy(){Nu.behaviors=[Zl,Jv,ku.Guide,qv,ey,ty,ny],Mu.behaviors=[Zl,ay,iy,Wu,ku.Step,ry,sy]}ay.isGuideStep=function(e){return!!e&&K.isFunction(e.render)};var uy={state:{errorCount:0,errors:{}},actions:{write:function(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(r){}e="[".concat(t,"]");t.level===tn.Critical?(i=window.pendo_options||{},fv(e),!1!==C.logStackTraces&&!1!==i.logStackTraces&&n.stack?Vr("".concat(e,"\n").concat(n.stack)):Zr(e)):t.level===tn.Error?fv(e):t.level===tn.Warn&&gv(e)}}},update:function(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError:function(e,t){var n=t.message,i=t.level,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError:function(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged:function(t){return function(e){return!!t.errors[e.hashCode()]}}}},cy=h.getSession(),ly="pendo_cd",py=function(){function e(){this.name="CloneDetection"}return e.prototype.initialize=function(){var r=this;if(K.isFunction(window.BroadcastChannel))return h.registry.addSession(ly),this.tabId=Dn.getTabId(),this.id=Ot(16),this.channel=new BroadcastChannel("pendo-clone-detection-".concat(C.apiKey)),this.channel.onmessage=function(e){var t=K.get(e,"data.type"),n=K.get(e,"data.tabId"),i=K.get(e,"data.id");if(n===r.tabId)switch(t){case"pendo-clone-test":i!==r.id&&r.isClonedSession(i)&&r.sendMessage("pendo-change-tab-id",{tabId:n,id:i});break;case"pendo-change-tab-id":i===r.id&&r.clearClonedStorage()}},this.detectClonedSession(this.id),this.teardown},e.prototype.detectClonedSession=function(e){var t=cy.getItem(ly)||"";-1===t.indexOf(e)&&(t+="-"+e),cy.setItem(ly,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()},e.prototype.isClonedSession=function(e){return this.startCloneDetectionTimer(),-1===(cy.getItem(ly)||"").indexOf(e)},e.prototype.clearCloneDetectionValue=function(){cy.removeItem(ly),this.cloneDetectionTimer=null},e.prototype.startCloneDetectionTimer=function(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Dt(this.clearCloneDetectionValue.bind(this),1e4)},e.prototype.stopCloneDetectionTimer=function(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)},e.prototype.clearClonedStorage=function(){cy.clearPendo(),Dn.setParentTabId(this.tabId),this.tabId=Dn.newTabId(),q.dispatch("frames/setTabId",this.tabId)},e.prototype.sendMessage=function(e,t){this.channel.postMessage(Kt({type:e},t))},e}(),hy=new py;function fy(e){q.dispatch("frames/setReady",{isReady:!0})}var gy=["unknown","hidden","visible"];function my(e){return"visible"===e.visibility||"unknown"===e.visibility}var vy=function(){var r={};return{actions:{init:function(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(Fn),h.registry.addSession(Pn),t=Dn.addTracerIds({}),n=_e(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),y.ready.on(fy),y.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&E.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),hy.initialize(),e.commit("setInitialized",!0))},changeGuideList:function(e,t){e=e.state,t=o(t);E.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:C.autoOrdering||[]})},receiveGuideList:function(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),yy(e.state)},join:function(e){var t,n,i,r;e.state.disabled||(El(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:o(ou())}),(r=[].concat(m.get("leaderKey"))).length||t.agentInstallType!==Se||(r=[C.apiKey]),e.dispatch("receiveFrame",{frame:K.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:n,visibility:n?"visible":"unknown",apiKey:C.apiKey,leaderKey:r},i)}))},receiveFrame:function(e,t){var n,i=e.state;if(C.designerv2.launched&&(n=Object.assign({},nh.hostConfig,{selectionOnly:!0}),E.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:K.toArray(K.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=K.filter(i.frames,function(e){return e.isTop});r.length;){var a=r.shift(),s=K.filter(o,function(e){return e.apiKey===a});if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[vp]&&e.dispatch("receiveStartPreview",t),E.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave:function(t){var e=t.state;E.postMessage({action:"frames/removeFrame",frameId:e.frameId}),K.each(e.frames,function(e){t.commit("removeFrame",e.id)}),E.close()},removeFrame:function(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),K.each(r,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete r[t])}),e.dispatch("electLeader"))},waitThenElectLeader:K.debounce(function(e){e.dispatch("electLeader")},50),electLeader:function(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=K.filter(t.frames,function(e){return e.apiKey===r});if(o.length){n=o;break}}var a=K.find(n,function(e){return e.isTop});a?e.dispatch("followLeader",{leaderId:a.id}):(a=K.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),yy(e.state),e.getters.isLeader()&&y.childFrameJoined.trigger()},followLeader:function(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&y.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep:function(t,n){var i=K.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",K.extend({frameId:e.id},n)).then(function(e){return e.error?J.reject(e.error):e.isShown?e:r()}):J.resolve({isShown:!1})}()},requestShowGuideStepInFrame:function(e,t){var n=t.frameId+"/"+Ot(32),i=J.defer();return r[n]=i,E.postMessage(K.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame:function(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=T(n.guideId))&&e.findStepById(n.stepId))?$t(e=oy.showLocal(e,n.reason))?e.then(i)["catch"](K.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame:function(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),E.postMessage(K.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame:function(e,t){var n=r[t.requestId];n&&(n.resolve(t),delete r[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown})},hideGuides:function(e,t){t=K.isArray(t)?t:[],E.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides:function(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?K.each(K.compact(K.map(t.guideIds,T)),function(e){e.hide()}):Jh(),e.commit("hideGuides"))},guideStepHiddenInFrame:function(e,t){var n=e.getters.isShownInFrame()(e.state.frameId,{id:t.stepId});e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:!1}),E.postMessage(K.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame:function(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1})},fixDoubleDisplay:function(n,i){K.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&E.postMessage(K.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame:function(e,t){e.state.frameId===t.frameId&&(t=(e=T(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen:function(e,t){E.postMessage({action:"frames/receiveLastGuideStepSeen",frameId:e.state.frameId,lastGuideStepSeen:t}),e.commit("updateLastGuideStepSeen",t),e.commit("healthCheck/updateStepState",{id:t.guideStepId,seenState:t.state},{root:!0})},receiveLastGuideStepSeen:function(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=K.get(n,"agentInstallType"))&&n!==e.state.agentInstallType&&delete t.lastGuideStepSeen.visitorId,e.dispatch("guideState/updateLastGuideStepSeen",t.lastGuideStepSeen,{root:!0}),e.dispatch("guideState/write",null,{root:!0}),t=(t=T((n=t.lastGuideStepSeen).guideId))&&t.findStepById(n.guideStepId))&&(t.seenState=n.state,t.seenReason=n.seenReason,t.lastSeenAt=n.time,n.dismissCount&&(t.dismissCount=n.dismissCount),n.snoozeEndTime&&(t.snoozeEndTime=n.snoozeEndTime),e.commit("updateLastGuideStepSeen",n),e.commit("healthCheck/updateStepState",t,{root:!0}))},changeThrottlingState:function(e,t){E.postMessage(K.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState:function(e,t){t.frameId!==e.state.frameId&&K.each(Gf,function(e){t[e]&&Bf(t[e],e)})},startPreview:function(e){E.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview:function(e){E.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview:function(e,t){E.postMessage(K.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview:function(e,t){e.dispatch("preview/start",t[vp],{root:!0}),Ip(window),om()},receiveRestartPreview:function(e){var t=Sp(A(),ml());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview:function(e,t){$p({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility:function(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=b(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility:function(e,t){var n;!K.find(gy,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),E.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility:function(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames:function(e,t){t=t.options;nh.launchInAppDesigner(t)},syncOptions:function(e,t){t.options&&E.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&qc(t.options)},syncIdentity:function(e,t){var n;(t.visitorId||t.accountId)&&(n=t.visitorId,t=t.accountId,E.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:n,accountId:t}))},receiveIdentity:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&oi(t.visitorId,t.accountId)},setReady:function(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen:function(e,t){t.frameId!==e.state.frameId&&y.guideSeen.trigger(t.guideSeen)},checkGuideEligibility:function(e,t){var n=t.guideId,i=t.stepId,r=t.currentStepIndex,o=t.sourceFrame,t=t.promiseId,n=T(n),i=n&&n.findStepById(i),a={};return n&&i?(0===r&&(r=yu(n))&&((r=K.first(s(r)))?b(r)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),K.isFunction(i.canShowOnPage)&&!i.canShowOnPage(Vf())&&(a.PAGE="mismatch"),i.elementPathRule&&((r=K.first(s(i.elementPathRule)))?b(r)?i.elementContainsRulesList&&!wf(r,i.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),i.triggerElementPathRule&&((r=K.first(s(i.triggerElementPathRule)))?b(r)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),K.get(n,"attributes.embedConfig")&&(i=K.get(n,"attributes.embedConfig.selector"),(r=K.first(s(i)))?b(r)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",t&&o&&E.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:o,resolveId:t}),a},setTabId:function(e,t){e.commit("setTabId",t)}},mutations:{addFrame:function(e,t){var n=t.id;e.frames[n]=K.extend({},e.frames[n],t)},removeFrame:function(e,t){delete e.frames[t]},setGuideList:function(e,t){var n=t.frameId;e.frames[n]=K.extend({},e.frames[n],{guides:K.indexBy(o(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown:function(e,t){var n=t.frameId,n=e.frames[n]=K.extend({},e.frames[n]);n.shown=K.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized:function(e,t){e.initialized=t},setLeaderId:function(e,t){e.leaderId=t},setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setTopId:function(e,t){e.topId=t},setAgentInstallType:function(e,t){e.agentInstallType=t},setLeadershipMode:function(e,t){e.leadershipMode!==Se&&(e.leadershipMode=t)},setFrameVisibility:function(e,t){var n=t.frameId;e.frames[n]=K.extend({},e.frames[n],{visibility:t.visibility})},setReady:function(e,t){e.isReady=t},disableFrameVisibilityCheck:function(e){e.disableFrameVisibilityCheck=!0},hideGuides:function(e){K.each(e.frames,function(n){K.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType:function(e,t){e.channelType=t},setGuidesLoaded:function(e){e.guidesLoaded=!0},setConnectFailed:function(e){e.connectFailed=!0},updateLastGuideStepSeen:function(e,t){t&&K.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=K.findWhere(e.steps,{id:t.guideStepId}))&&(e.seenState=t.state,e.lastSeenAt=t.time,e.seenReason=t.seenReason,t.dismissCount&&(e.dismissCount=t.dismissCount),t.snoozeEndTime)&&(e.snoozeEndTime=t.snoozeEndTime)})}},getters:{allFrames:function(e){return e.frames},autoOrdering:function(e){return K.reduce(e.frames,function(e,t){return e[t.apiKey]=t.autoOrdering,e},{})},leaderExists:function(e){return!!e.leaderId},isLeader:function(e){return e.leaderId===e.frameId},leaderKey:function(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower:function(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop:function(e){return e.topId===e.frameId||window==window.top},frameVisibility:function(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame:function(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame:function(i){return function(n){return K.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady:function(e){return e.isReady},isShownInAnotherFrame:function(i){return function(n){return K.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame:function(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame:function(t){return function(e){return t.frames&&t.frames[e]}},hasFrames:function(e){return 1<K.size(e.frames)},shouldBeAddedToLauncher:function(i,e){return function(n){return e.canShowRCBadge()&&K.any(i.frames,function(e,t){return t!==i.frameId&&!!my(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter:function(i,e){return function(n){return e.canShowRCBadge()&&K.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===C.apiKey&&!!my(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel:function(e){return"BroadcastChannel"===e.channelType},channelType:function(e){return e.channelType},canShowRCBadge:function(e,t){var n,i;return t.leaderKey()!==C.apiKey?(n=K.filter(e.frames,function(e){return e.apiKey===C.apiKey}),(i=K.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=K.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):K.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference:function(e){e=K.filter(e.frames,function(e){return e.leaderKey&&e.leaderKey.length});return 1===K.unique(K.map(e,function(e){return e.leaderKey.join(",")})).length?[].concat(e[0].leaderKey):[]},getMyApiKey:function(e,t){return t.getMyFrame().apiKey},getMyFrame:function(e){return e.frames[e.frameId]}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:r};function t(e){var t=K.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=K.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=K.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=K.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=K.map(e.steps,function(e){return K.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function o(e){return K.map(e,t)}}();function yy(t){var n=K.indexBy(K.filter(ou(),function(e){return!e.isFrameProxy}),"id"),e=K.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return K.toArray(K.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return K.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Nu).value(),e=K.toArray(n).concat(e).filter(dg);ug(e),Pg(e),eu(e),t.guidesLoaded&&0===K.size(K.get(t,"frames."+t.frameId+".guides",[]))&&xl()}function by(e,t){new(Lt("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}function Iy(t){var n=Element.prototype.attachShadow;Element.prototype.attachShadow=function(e){e=n.call(this,e);return this.shadowRoot&&by(this.shadowRoot,t),e},Element.prototype.attachShadow.toString=function(){return n.toString()}}function wy(t){var n,i,r;Iy(t),K.isFunction(document.createNodeIterator)&&(n=0,i=[bo()],function o(e){do{if(!(e=e||document.createNodeIterator(i.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(r=e.nextNode())&&(n++,r&&r.shadowRoot&&(by(r.shadowRoot,t),i.push(r.shadowRoot),Cy.foundShadowRoots=!0),n%5e3!=0););}while(!r&&(e=null,i.length));r&&Cy.foundShadowRoots&&Dt(function(){o(e)},50),5e3!==n||Cy.foundShadowRoots||(Cy.stoppedSearchEarly=!0)}())}var Cy={startObserver:wy,foundShadowRoots:!1,stoppedSearchEarly:!1},Sy=function(){var i;function r(){q.dispatch("guideUpdate/documentChanged")}function n(){q.dispatch("guideUpdate/handleScheduledUpdate")}return{actions:{documentChanged:function(e){var t;e.state.updateId?e.commit("setNeedsUpdate"):e.state.scheduledUpdate||(t=e.getters.now()-e.state.updateCompleteTime,t=Math.min(Math.max(0,Al-t),Al),t=Dt(n,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate:function(e){e.dispatch("stopScheduledUpdate"),xl()},stopScheduledUpdate:function(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded:function(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||Lt("MutationObserver"))(r),i=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&Cy.startObserver(r),e.commit("setObserving",!0)))},stopObserver:function(e){var t=e.getters.observer();t&&K.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver:function(e){e.useObserver=!0},setObserveShadowRoots:function(e){e.observeShadowRoots=!0},setObserving:function(e,t){e.observing=t},setNeedsUpdate:function(e){e.needsUpdate=!0},setScheduledUpdate:function(e,t){e.scheduledUpdate=t},startUpdate:function(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate:function(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now:function(){return v()},observer:function(){return i}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}}}(),Ay=function(){var i=["advanced","dismissed","snoozed"];return{actions:{init:function(t,e){K.each(e,function(e){K.each(e.steps,function(e){t.commit("updateStepState",e)})})},fixSeenStateAndLogError:function(e,t){var n,i,r=t.step,t=t.reason;e.state.exceptions[r.id]||(n=r.seenState,(i=e.state.steps[r.id])&&i.seenState&&(r.seenState=i.seenState),e.state.exceptions[r.id]=!0,e.dispatch("logRedisplayError",{id:r.id,guideId:r.guideId,reason:t,seenState:i.seenState,previousSeenState:n}))},logRedisplayError:function(e,t){Vr(['Attempted redisplay of guide="',t.guideId,'" step="',t.id,'" reason="',t.reason,'" seenState="',t.seenState,'" previousSeenState="',t.previousSeenState,'"'].join())}},mutations:{updateStepState:function(e,t){var n=v();e.steps[t.id]=K.extend({},e.steps[t.id],{pageId:t.pageId,regexUrlRule:t.regexUrlRule,seenState:t.seenState,updatedAt:n,allowedAt:n+6e4})},resetStepStatus:function(e){e.steps={}}},getters:{isRedisplay:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(v()>=t.allowedAt)&&K.contains(i,t.seenState)&&!K.contains(i,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}}}(),Ty={state:{lastFlush:v(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush:function(n){K.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),K.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush:function(e,t){e.lastFlush=t},incrementCounter:function(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter:function(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer:function(e,t){var t=void 0===t?{}:t,n=t.name,t=t.time;n&&null!=t&&(e.timers[n]=t)},resetTimer:function(e,t){delete e.timers[t]}},getters:{shouldFlush:function(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload:function(e){var t=K.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return K.extend({},t,e.timers)},now:function(){return v()}}},_y={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata:function(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount:function(e){e.account={}},reset:function(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata:function(e){return e},selfHosted:function(e){return e.selfHosted}}},Ey=h.getLocal(),xy="pendo-preview",Ry="current-guide-preview",ky={state:{preview:null,designerPreview:null},actions:{start:function(e,t){e.commit("setPreview",t),e.dispatch("write")},restart:function(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update:function(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load:function(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(xy)),i=(n.apiKey===C.apiKey&&e.commit("setPreview",n),t.getItem(Ry));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write:function(e){try{var t=e.getters.storage();e.state.preview?t.setItem(xy,JSON.stringify(e.state.preview)):t.removeItem(xy)}catch(n){}},exit:function(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview:function(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(Ry)},launchInAppDesigner:function(e,t){nh.launchInAppDesigner(t)}},mutations:{updatePreview:function(e,t){e.preview&&K.extend(e.preview,t)},setPreview:function(e,t){e.preview=t},setDesignerPreview:function(e,t){e.designerPreview=t}},getters:{isInPreviewMode:function(e){return!!e.preview},isInDesignerPreviewMode:function(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage:function(){return Ey}}},Oy=function(){var n={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null},a="top-down",s="bottom-up",d={debuggingEnabled:{type:a,defaultValue:!1},guideLoopRunning:{type:s,defaultValue:!1},stepEligibilitySet:{type:s,defaultValue:{}},identity:{type:s,defaultValue:{}},location:{type:s,defaultValue:{}}},e={init:function(e){e.commit("setFrameId",Dn.getFrameId()),e.commit("setTabId",Dn.getTabId()),e.commit("setInstallType",_e());var t=Cu()&&window.top===window;n.isTop,e.commit("setIsTop",t),e.commit("isLeader",Cu()),t?(t=Yl(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):E.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:function(n,e){n.state.frameId!==e.frameId&&K.each(d,function(e,t){e.type===a&&E.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:((e={})[t]=n.state[t],e)})})},sync:function(i,e){var r;i.state.frameId!==e.frameId&&(r=e.frameId,e=e.fields,K.each(e,function(e,t){var n;!d[t]||(n=d[t].type)===a&&i.state.isTop||n===s&&!i.state.isTop||i.commit("_sync_".concat(t),{value:e,frameId:r})}))},enableEventLogging:function(e,t){e.commit("enableEventLogging",t)},eventCaptured:function(e,t){e.state.isTop?e.commit("eventsCaptured",t):E.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t})},receiveEventCaptured:function(e,t){e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:function(e){e.commit("eventsCaptured",[])},onCspError:function(e,t){e.state.isTop?e.commit("cspError",t):E.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:function(e,t){e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility:function(e,t){var i=t.guideId,n=t.response,t=K.filter(q.state.frames.frames,function(e){return e.guides&&e.guides[i]});t.length&&(t=K.map(t,function(n){var e=K.map(n.guides[i].steps,function(e,t){return E.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i})});return J.all(e).then(function(e){return{frameId:n.id,frameVisibility:n.visibility,errors:K.map(e,function(e){return JSON.parse(e).errors})}})}),J.all(t).then(function(e){return e}).then(function(e){return n(e)})["catch"](function(e){return n({error:e})}))}},t={},u={setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setIsTop:function(e,t){e.isTop=t},isLeader:function(e,t){e.isLeader=t},setInstallType:function(e,t){e.installType=t},stepEligibilitySet:function(e,t){var n=t.stepId;e.stepEligibilitySet[n]=t},guideLoopRunning:function(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity:function(e,t){e.identity=t},location:function(e,t){e.location=t},debuggingEnabled:function(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n.debuggingEnabled!==t&&(t?(c(),l(),y.on("stepEligibility",i),y.on("guideUpdateComplete",h),y.on("guideLoopStopped",f),y.on("eventCaptured",o),y.on("identify",c),y.on("urlChanged",l),e&&(r(),y.on("guidesLoaded",r))):(y.off("stepEligibility",i),y.off("guideUpdateComplete",h),y.off("guideLoopStopped",f),y.off("eventCaptured",o),y.off("identify",c),y.off("urlChanged",l),e&&y.off("guidesLoaded",r)))},excludedGuides:function(e,t){e.excludedGuides=t},autoOrdering:function(e,t){e.autoOrdering=t},throttling:function(e,t){e.throttling=t},eventsCaptured:function(e,t){K.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging:function(e,t){e.enableEventLogging=t},cspError:function(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()}};function i(e){e=e.data[0];q.commit("debugger/stepEligibilitySet",e)}function r(e){var t=K.map(yl.sortAndFilter(A(),C.autoOrdering),function(e){return e.id});q.commit("debugger/autoOrdering",t||[]),q.commit("debugger/excludedGuides",C.excludedGuides||[]),q.commit("debugger/throttling",C.throttling||{})}function o(e){q.dispatch("debugger/eventCaptured",e.data[0])}function c(e){q.commit("debugger/identity",{visitorId:K.get(e,"data.0.visitor_id")||C.get_visitor_id(),accountId:K.get(e,"data.0.account_id")||C.get_account_id(),apiKey:C.apiKey})}function l(){q.commit("debugger/location",{href:Ji(),browserUrl:window.location.href})}function p(e){q.commit("debugger/guideLoopRunning",e)}var h=K.partial(p,!0),f=K.partial(p,!1);return K.each(d,function(e,i){var r=e.type,e=e.defaultValue,o=(n[i]=e,t[i]=function(e){return e[i]},u[i]||function(e,t){e[i]=t});u[i]=K.wrap(o,function(e,t,n){!t.isTop&&r===a||(e(t,n),t.isTop&&r===s)||E.postMessage({action:"debugger/sync",frameId:t.frameId,fields:((e={})[i]=n,e)})}),o=u["_sync_".concat(i)]||o,u["_sync_".concat(i)]=function(e,t){var n=t.value,t=t.frameId;e.frames[t]||(e.frames[t]={}),e.frames[t][i]||(e.frames[t][i]=d[i].defaultValue),o(e.frames[t],n),e.isTop||r!==a||o(e,n)}}),{state:n,actions:e,getters:t,mutations:u}}();function Ny(e){e.registerModule("debugger",Oy),e.registerModule("errorLog",uy),e.registerModule("frames",vy),e.registerModule("guideUpdate",Sy),e.registerModule("guideState",vl),e.registerModule("healthCheck",Ay),e.registerModule("location",Dv),e.registerModule("monitoring",Ty),e.registerModule("metadata",_y),e.registerModule("preview",ky)}var My=function(){var r,o,n,i="pendo-loader";return{name:"IFrameMonitor",initialize:function(e,t){r=e,o=t,function(){o.ConfigReader.get("autoFrameInstall")&&o.Events.ready.on(p);o.ConfigReader.get("frameIdentitySync")&&(o.Events.metadata.on(f),o.Events.identify.on(g),o.Events.childFrameJoined.on(a))}(),n=o.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){o.Events.ready.off(p),o.Events.metadata.off(f),o.Events.identify.off(g),o.Events.childFrameJoined.off(a)}};function a(){m()}function s(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(i)}function d(e,t){var n;s(e)||((n=o.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=r.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=i,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function u(e,t){e.pendo.iframeWaiting=!1,d(e,t)}function c(e){try{if(s(e))return}catch(i){return}var t,n=(n=o.ConfigReader.get("selfHostedAgentUrl"))||(n=r.dom("script"),t=/\/pendo(\.\w+)?\.js$/,(n=r._.find(n,function(e){return t.test(e.src)}))&&n.src);n?"complete"===e.document.readyState?d(e,n):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",r._.partial(u,e,n))):r.log("Unable to find agent url to install agent in frames","debug")}function l(){for(var e=r.dom("iframe").length,t=0;t<e;t++)c(window.frames[t]);Dt(l,250)}function p(){l()}function h(){return!n||o.store.getters["frames/isLeader"]()}function f(e){h()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function g(e){var t;m(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function m(e,t){void 0===e&&(e=Q()),void 0===t&&(t=fi()),h()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function Ly(e,n){return e.length==n.length&&K.all(e,function(e,t){return e===n[t]})}var Fy=function(){function e(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}return e.prototype.markDirty=function(){this.queue.push.apply(this.queue,this.domActivation.guides)},e.prototype.process=function(e){var t,n=this.queue.shift();if(n){e.saveContext(n);try{t=s(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),Ly(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),K.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}},e.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&X.warn("Element activated guide ("+e.id+") timeout exceeded")},e.prototype.cancel=function(){this.queue.length=0},e.prototype.isComplete=function(){return!this.queue.length},e}(),Py=function(){var n,i,a="pendoTargetId",t=[],r={};return{name:"DOMActivation",key:a,guides:t,targets:r,reset:c,init:e,attach:function(n,i,e){var t=n[a],r=t?e[t]:null;r||(t=t||"target"+K.uniqueId(),r={target:n,events:{}},e[t]=r,n[a]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,K.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=K.partial(u,K,t.guideIds),I(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:d,handler:u,activates:l,prefetch:p,initialize:function(e,t){(n=t).Events.on("deliverablesLoaded",c),t.Events.on("guideListChanged",o),t.Events.on("guidesLoaded",s),jl(i=new Fy(Py))},teardown:function(){zl(i),n.Events.off("deliverablesLoaded",c),n.Events.off("guideListChanged",o),n.Events.off("guidesLoaded",s)}};function o(){c(),e(qd())}function s(){p(qd())}function d(i,t){K.each(t[i.id],function(e){var n=e?t[e]:null;n&&(K.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],K.size(e.guideIds)<=0)&&(w(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),K.size(n.events)<=0)&&(delete n.target[a],n.target=null,delete t[e])}),delete t[i.id]}function u(e,t){var n;!e.pendoActivatedGuide&&!ee.data.get(e,"advanced")&&(n=m.get("adoptPrioritizeAdoptGuides"),t=K.compact(K.map(K.keys(t),function(e){return T(e)})),t=K.filter(t,function(e){return!(!e.steps||!e.steps.length||K.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=K(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=K.find(t,function(e){var t=K.first(e.steps);return K.get(e,"attributes.resourceCenter",!1)&&e.isShown()?se.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||xf(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function c(){K.each(t,function(e){d(e,r),e.targets=[]}),t.length=0}function l(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Vf())){var t=K.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=yu(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function e(e){K.each(e,function(e){e=l(e);e&&t.push(e)})}function p(e){m.get("disablePrefetch")||K.each(e,function(e){K.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&K.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}}(),Gy;function Dy(){return{dom:ee,placeBadge:up,showPreview:Tf,stopGuides:El,removeAllBadges:cp,_:K,sizzle:s,tellMaster:ga,tell:ga,log:pv,attachEvent:I,createLauncher:K.constant({}),removeLauncher:K.noop,addGuideToLauncher:K.noop,updateLauncherContent:K.noop,DEFAULT_TIMER_LENGTH:Al,getOffsetPosition:ie,getScreenDimensions:lo,registerMessageHandler:ia,whenLoadedCall:Vd,loadResource:Vo,loadGuideCss:kg,GuideFactory:Nu,GuideStep:Mu,extractElementTreeContext:Cd,previewGuideFromJSON:x.previewGuideFromJSON,hidePreviewedGuide:x.hidePreviewedGuide,shadowAPI:c,getTarget:Ui,pullContentsFromTargetElement:If,doesElementMatchContainsRules:wf,doesElementContentMatchRule:Cf,getGuideAttachPoint:oe}}var By=function(){(Gy=Gy||Dy()).areGuidesEnabled=!jg(),C.designer||(C.designer=Gy)},Wy=function(){C.designer&&(C.designer=null,delete C.designer)},Uy=function(){var r,o,i,a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Ia()||ia("connect",n);ia("pendo-designer-launch::launch",u),ia("pendo-preview::launch",c),e.app_name=document.title,(ma()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Ko,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Ko,!1),s(),ra("connect"),ra("pendo-designer-launch::launch"),ra("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined)},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:u,launchPreviewListener:c,sendToken:d};function n(e,t){var n,i;r.isSendingEvents()&&(n=t.origin,r.stopGuides(),r.buffers.lock(),Qo(i=t.source),r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),By(),ga(t.source,{status:"success",type:"connect"},n),ua("selection.js")&&(r.log("Designer Modules already loaded."),ga({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),Wy(),e&&ga(e,{type:"unload"},t)}function d(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function u(e,t){var n,t=t.data.token;t&&(i=t,ia("pendo-designer-launch::get-token",d),n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},r.designerv2.launchInAppDesigner(n))}function c(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==_e()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),Tr()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),Ip(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),om(),o.store.dispatch("frames/startPreview")))}}(),$y="__sg__",jy=function(){var i,r="promotedAgentMetadataConfigurations",o=[],a={},s={};return{name:"PromoteMetadata",initialize:function(e,t){if(o=(i=t).ConfigReader.get(r),s={},h.registry.addLocal($y),Jn())try{a=JSON.parse(h.read($y))||{}}catch(n){a={}}o&&o.length&&(i.Events.on("metadata",u),i.Events.on("eventCaptured",p),i.Events.on("identify",c))},teardown:function(){i.Events.off("metadata",u),i.Events.off("eventCaptured",p),i.Events.off("identify",c)},getPromotedMetadata:function(){return o},hasPromotedMetadataKind:d,setSchemaGroup:u,getSchemaGroup:e,resetSchemaGroup:t};function d(t){return K.some(o,function(e){return e.kind===t})}function e(){return s}function u(e){var t;e?(e=e.data[0].options)&&(t=e):t=rl(),s=function(r){Jn()&&(a=function(e){return K.mapObject(e,function(t,e){var n={};return Object.keys(t).forEach(function(e){n[e.replace("agent__","")]=t[e]}),n})}(a=JSON.parse(h.read($y))||{}));var o=s;K.each(["visitor","account","parentAccount"],function(e){var t=d(e),n=!K.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!K.isEmpty(a)&&K.isEmpty(za.get())&&(o[i]=l(a[i],e)),n)&&(t=l(r[e],e),K.isEmpty(t)||(o[i]=Kt(Kt({},o[i]),t)))}),Jn()&&h.write($y,JSON.stringify(o),undefined,!1,!0);return o}(t)}function c(e){e=e.data[0];K.get(e,"wasCleared")&&(h.clear($y),t())}function t(){s={}}function l(e,i){var r={};return e&&K.each(e,function(e,t){var n=t.toLowerCase();Boolean(K.find(o,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function p(e){e=e.data[0];e&&(K.isEmpty(s)&&u(),K.isEmpty(s)||("track"===e.type?e.props.__sg__=s:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=s)))}}();function zy(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}zy.prototype.add=function(){0===K.indexOf(this.guide.steps,this.step)&&!zy.shouldAttachHandler(this.guide,this.method)||lu(this.guide)&&!pu(this.guide)||this.setupElementEvent(this.element,this.method)},zy.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},zy.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=K.compose(K.bind(this.teardownElementEvent,this,e,t),K.bind(this.step.advance,this.step))),zy.attach(this.step,e,t,this.advanceFn)},zy.prototype.teardownElementEvent=function(e,t){X.info("detach onGuideAdvanced",{contexts:["guide"]}),w(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},zy.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||Py.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector},zy.attach=function(e,t,n,i){if(e){for(var r=zy.handlers=zy.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(w(t,n,s[2],!0),o.splice(K.indexOf(o,s),1),a--)}o.push([t,n,i]),w(t,n,i,!0),I(t,n,i,!0)}};var Zy=430,Vy=200,Yy=15,Hy=null,Ky=function(){return fu()?cu:uu},Xy=function(e){return"#_pendo_g_"+e.id},Jy=function(e,t){Hy=null;var n,i,r,o,e=ie(e);return 0===e.height&&0===e.width?null:(n=t.guideElement,o=t.attributes.height,i=t.attributes.width,r=t.attributes.layoutDir,n.addClass(Ky()),o=hb(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),ee("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),qy(n[0],o),n[0])},qy=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=K.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+C.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=ee("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=ee("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");K.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),d.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),d.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),ee(e).append(s).append(d)},Qy=function(e,t){t===undefined&&(t=Hd),e.element=mu(e);var n=e.element;if(!n)return X.info("No element found for step: "+e.id),null;Do(n);var i=Jy(n,e);return null===i?null:(i.id=C.getTooltipDivId(e),ee(i).appendTo(oe()),t.push(i),I(i,"mouseover",K.partial(ee.addClass,i,"mouseover")),I(i,"mouseout",K.partial(ee.removeClass,i,"mouseover")),bu(n,i),db(e),n)},eb=null,tb=function(e){var t=!K.isEqual(e,eb);return eb=e,t},nb=null,ib=function(e){var t=!K.isEqual(e,nb);return nb=e,t};function rb(){ob=nb=eb=null}var ob=null,ab=function(e){var t=!K.isEqual(e,ob);return ob=e,t},sb={top:"north",left:"east",bottom:"south",right:"west"},db=function(e){try{var t,n,i,r,o,a,s,d;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=Qu(n=n.concat(K.compact(K.flatten(K.map(t.additionalElements,function(e){return K.toArray(ee(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=qu(a=Ju(),i,o),tb(i)||ib(a)||ab(s))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),K.each(s,function(e,t){ub(sb[t],K.extend({},e,d))}))}catch(u){X.info("Failed to add BlockOut ui",{contexts:["error"]})}},ub=function(e,t){e=ee("div._pendo-guide-tt-region-block_._pendo-region-"+e+"_")[0]||cb(e);ee(e).css(t)},cb=function(e){e=ee(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");ee("body").append(e)},lb=function(e){var t=K.isEqual(e,Hy);return Hy=e,!t},pb=function(e){var t,n,i,r=ie(e.element||mu(e));db(e),lb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=hb(r,n,i,t),(i=ee(Xy(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),qy(i,n))},hb=function(e,t,n,i){var r=C.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=lo();return o.width=Math.min(n,a.width),o.height=t,o.content.width=o.width-2*r,o.content.height=o.height-2*r,o=fb(o,e,a,i=i||"auto"),o=gb(o,e,a,i),o=mb(o,e,a)},fb=function(e,t,n,i){return e.arrow.hbias=bc(t,n,i),e},gb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-Mr(),t=(r=t.left-Lr())+t.width,i<n.height/3?e.arrowPosition="top":i>2*n.height/3||"center"==e.arrow.hbias?e.arrowPosition="bottom":r<e.width&&n.width-t<e.width?e.arrowPosition="top":e.arrowPosition=e.arrow.hbias),e},mb=function(e,t,n){var i,r,o,a=e.height,s=e.width;return Qe()?et(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=ke(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-C.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=ke(9,6)?6:0,e.arrow.top+=8==d?-1:0,i=1),r=10+C.TOOLTIP_ARROW_SIZE,o=s-3*C.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==mc?(e.left=t.left+t.width/2-(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==vc?(e.left=t.left-s+t.width/2+(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-C.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==mc?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=ke(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==vc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-C.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=ke(10,6)?5:0,e.arrow.left+=7==d&&6<=Oe?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-C.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},vb=function(){return C.TOOLTIP_ARROW_SIZE},yb={width:Zy,height:Vy,arrowSize:Yy};function bb(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||C.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||C.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||mu(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=K.map(e,function(e){return new zy(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=K.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!mf(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Vf())&&bf(t)},this.after("render",function(){Qy(this,this.elements)&&(K.each(this.getTriggers(),function(e){e.add()}),wc.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=ee("._pendo-guide-container_",i),o=ie(this.element),t=hb(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),ee("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),qy(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,db(this)},this.onscroll=function(e){b(e.element)?(e.reposition(),so(e.elements[0],"display:block")):so(e.elements[0],"display:none")},this.teardownElementEvent=function(){K.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){ee("._pendo-guide-tt-region-block_").remove(),rb()})),this}var Ib=500,wb=500,Cb="_pendo-guide-lb_",Sb=function(e,t){var n=!!ee("._pendo-backdrop_")[0];return K.get(t,"overlayDiv[0]")||(t.overlayDiv=ee(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(oe())),Qe()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&ee(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},Ab=function(e){var t=e.guideElement,n=C.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass(Cb).css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),ee("._pendo-guide-container_",t).css({bottom:n,right:n}),Qe()&&t.css({position:"absolute"})},Tb=function(e,t){t===undefined&&(t=Hd),e.element=mu(e),Ab(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(Sb(n,e),e.guideElement);t.push(n[0]),n.appendTo(oe())},_b="_pendo-guide-mobile-lb_",Eb=function(e){e.guideElement.addClass(_b)},xb=function(e,t){t===undefined&&(t=Hd),e.element=mu(e),Eb(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=Sb(n,e),e=e.guideElement,i=C.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),ee("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}ee("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(oe()),t.push(e[0]),I(n[0],"touchmove",r),I(e[0],"touchmove",r)};function Rb(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||C.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||C.LB_DEFAULT_WIDTH,e.after("render",function(){(fu()?xb:Tb)(e,e.elements)}),e.reposition=function(){fu()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var kb=500,Ob="_pendo-guide-banner_";function Nb(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||kb,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=C.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(Ob).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),hu()||e.addClass("_pendo-in_"),ee("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=mu(n),n.elements.push(e[0]),e.appendTo(oe())})),n}function Mb(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(K.extend(n,{isShown:K.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=ee(document.createElement("div")).attr("id",Sf(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),K.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),K.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Co(e[0])&&(ee("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Uu.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){hu()||a()&&n.seenState!==r&&function(e){{var t,n;if(b(e,/(auto|scroll|hidden)/))return(t=_o(e))?(t=re(t),e=re(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Of(n.guideId,n.id,Q(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,K.delay(function(){n.guideElement.addClass(i+" out")},K.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var Lb="_pendo-launcher-searching_",Fb="._pendo-launcher-search-box_ input";function Pb(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){ee(Fb).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,C.disableGuideCenterContentSearch||this.before("update",$b),this.before("update",function(){t.text=Ub().join(" ");var e=ee("._pendo-launcher_");t.text?e.addClass(Lb):e.removeClass(Lb)})),this}function Gb(){var e;if(C.guideWidget)return(e=C.guideWidget.data)&&e.enableSearch}var Db=function(e){return e&&K.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")},Bb;function Wb(){return 0<Ub().length}function Ub(){var e;return Gb()&&(e=ee(Fb)[0])&&0<(e=e.value).length?(e=gt.call(e),[].concat(K.compact(e.split(" ")))):[]}function $b(e){if(!m.get("disablePrefetch"))return J.all(K.map(e,function(e){return e.fetchContent()}))}function jb(e){var t=Ub();return 0===t.length?e:(t=K.map(t,K.partial(zb,e)),K.union.apply(K,t))}function zb(e,t){return X.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||A(),t&&0!==t.length?K.chain(e).filter(Db).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return K.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var Zb=function(){var e,t=ou();Cu()?C.guideWidget&&C.guideWidget.enabled&&(e=n0(t),b0(e,!0)):(v0(),(t=i0(n0(e=Qd(t))))!==Bb&&q.dispatch("frames/changeGuideList",e),Bb=t)},Vb=330,Yb=310,Hb="launcher-closed",Kb=null,Xb=null,Jb=!1,qb="_pendo-launcher-active_",Qb=null,e0=function(){return""};function t0(e,t){e0=t}function n0(e){return jb(K.filter(e||A(),Db))}function i0(e){return Rt(K.map(e,function(e){var t=e.isWhatsNew()?[]:K.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function r0(e){var n=this,t=e.launchType||"badge",i=(K.extend(n,{show:function(){"badge"===t&&ee(n.element).css("display: ;")},hide:function(){ee(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=ee(document.createElement("div")).addClass(e.className).append(e).appendTo(oe()),e.className="",n.element=t[0])}},dispose:function(){ee.removeNode(n.element)},setActive:function(e){e?ee(n.element).addClass(qb):ee(n.element).removeClass(qb)}}),e),e=i.position||"bottom-right",r=document.createElement("img");ee(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Fu(i.launcherBadgeUrl)),r.onerror=function(e){X.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),X.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},Qe()&&(I(r,"mouseover",function(e){ee(r).addClass("_pendo-launcher-badge-active_")}),I(r,"mouseout",function(e){ee(r).removeClass("_pendo-launcher-badge-active_")}),ee(r).css({position:"absolute"})),oe().appendChild(r)}function o0(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=Ui(e),t=n();ee(e).closest(t).length&&(T0()?h.write(Hb,"yes",864e6):C.guideWidget.position(e),R0())}C.guideWidget.removeCountBadge=function(){ee("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),K.extend(this,{getLauncherTarget:function(){return ee(n())[0]},dispose:function(){w(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k0()}}),I(document,"click",t)}function a0(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:n0(e),e=i0(t)+Rt(Ub());return e!==n&&(n=e,this.updateLauncherContent(t)),g0(),0<t.length},this.updateLauncherContent=w0,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(Kb=new r0(e),e.height||Yb),n=(e.enableSearch&&(t+=Qe()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||Vb),i=(e.addWidth&&(n+=e.addWidth),this.width=n,ee(document.createElement("div")).addClass("_pendo-launcher_")),r=(Xb=i[0],ie(Kb.element)),r=hb(r,t,n),o=(i.css({width:n,height:t}),C.TOOLTIP_ARROW_SIZE),n=ee(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=I0(),o=Fu(u0(this.template(t))),t=ee(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Yh(i[0],function(){E0(),h.write(Hb,"yes",288e5)}),t.on("click",function(e){var t=ee(Ui(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=T((t=/^launcher-(.+)$/.exec(gt.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(xf(t.steps[0],"launcher"),E0(),Zd(e))}),Qe()&&(ee("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),ee("._pendo-launcher-footer_",i).css({"border-top":"1px solid #bbb"}),i.css({position:"absolute"})),i.find("[pendo-style]").each(function(){var e=this.getAttribute("pendo-style");ee(this).css(e)}),i.appendTo(oe()),K.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!ke(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),ee("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data,e=ie(e),n=hb(e,this.height,this.width),i=ee(Xb),"badge"===(r=t.launchType||"badge")?(o=t.position,K.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),K.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=K.contains([s,d],o)?"bottom":"top",n.arrow.hbias=K.contains([d,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),ee("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),mb(n,e,{width:Infinity,height:Infinity}),qy(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=R0,this}function s0(){var n,i=this;return i.data&&i.data.onboarding&&(n=i.onboarding=i.onboarding||{},i.before("update",function(e){var e=K.filter(e,Qv),t=K.filter(e,function(e){return"complete"==i.guideStatus(e)}),e=n.total=e.length,t=(n.percentComplete=0<e?Math.round(t.length/e*100):0,ee("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),i.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null}),i}function d0(){var n=this,i=ee(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");return n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=K.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(K.each(t,function(e){e.show()}),K.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),K.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,ee("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){y0()?i.appendTo(this.data.launchElement):(Kb.wrap(),i.appendTo(Kb.element))})),n;function t(e,t){var n=function(e,t){e=e.showsAfter||e.publishedAt||0;return(t.showsAfter||t.publishedAt||0)-e}(e,t);return 0===n?(t=t,e=(e=e).name.toLowerCase(),(t=t.name.toLowerCase())<e?1:e<t?-1:0):n}}function u0(e){return e=K.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function c0(e,t){var n=e&&e.data,t=K.filter(t,function(e){e=K.first(e.steps);return e&&"launcher"===e.type}),t=K.first(K.sortBy(t,function(e){return-e.lastUpdatedAt}));return t&&n&&(t=K.first(t.steps),K.extend(n,K.pick(t,"contentUrl","contentUrlCss","contentUrlJs"),t.attributes),K.defaults(n,{whatsnew:{},knowledgebase:{}}),n.id=t.guideId+t.id),e}function l0(t){var n=t&&t.data||{};return!0!==m.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Ru.verify(n).then(function(){return Bu.load(n)}).then(function(e){return n.template=e.content,K.extend(t,e)}):J.resolve()}function p0(e,t){var n=m.getLocalConfig("contentHost");return n&&(e=(e=e.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,n).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,n).replace(/^cdn\.pendo\.io$/,n)).replace(/^https?:/,"").replace(/^\/\//,""),!/\./.test(e))&&!/^localhost/.test(e)&&/^\//.test(e)?t.host+e:e}function h0(e,t){e.contentHostUrl&&(e.contentHostUrl=p0(e.contentHostUrl,location)),Qb=new o0(e);var n=a0.create(C.guideWidget);return K.isFunction(n.template)||(n.template=e.template?K.template(e.template):e0),n.render(),n.position(Qb.getLauncherTarget()),t&&n.toggle(),n}a0.create=function(e){return K.reduce(a0.behaviors,function(e,t){return t.call(e)},e)},a0.behaviors=[Zl,a0,ku.Launcher,Pb,s0,d0];var f0=function(){Xb&&(ee.removeNode(Xb),Xb=null),Qb&&(Qb.dispose(),Qb=null),Kb&&(Kb.dispose(),Kb=null)},g0=function(){(y0()||!_0()&&!Wb()?v0:m0)()},m0=function(){Kb&&Kb.show()},v0=function(){y0()||E0(),Kb&&Kb.hide()},y0=function(){return!(!C.guideWidget||!C.guideWidget.data||"element"!==C.guideWidget.data.launchType)},b0=function(e,t){if(C.guideWidget&&K.isFunction(C.guideWidget.update))return C.guideWidget.update(e,t)},I0=function(e){var t=rl(),t=K.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:Et(t)},C.guideWidget);return t.data=K.extend({},t.data),e&&(t.guides=e),t};function w0(e){var t=C.guideWidget.template||e0,e=I0(e),e=ee(document.createElement("div")).html(u0(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();ee("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){ee(e).html(n.eq(t).html())}),ee("._pendo-launcher_ ._pendo-launcher-footer_").html(t),ee("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var C0=function(e){var t=document.createElement("div"),n=(ee(t).addClass("_pendo-launcher-item_"),ee(t).attr("id","launcher-"+e.id),document.createElement("a"));return n.href="#",n.innerHTML=e.name,t.appendChild(n),t},S0=K.compose(g0,function(e,t){var n,i;Db(e)&&(n=ee("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(i=ee("#launcher-"+e.id)).length?i[0]:C0(e),i=0<i.length,K.isNumber(t)&&(i=ee("._pendo-launcher-item_"))[t]?e.id!=i[t].id&&n.insertBefore(e,i[t]):n.appendChild(e))}),A0=function(){return!!Xb&&!Jb},T0=function(){return ee(Xb).hasClass(qb)},_0=function(){return 0<ee("._pendo-launcher-item_").length},E0=function(){var e;Xb&&(e=ee(Xb))&&e.hasClass(qb)&&(e.removeClass(qb),Kb)&&Kb.setActive(!1)},x0=function(){var e;Xb&&(e=ee(Xb))&&!e.hasClass(qb)&&(e.addClass(qb),Kb)&&Kb.setActive(!0)},R0=function(){A0()&&(T0()?E0:x0)()};function k0(){ee("._pendo-launcher-whatsnew-count_").remove()}var O0=function(){try{var e=C.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};f0(),!fu()&&!n.desktop||fu()&&!n.mobile||ma()&&!n.iframe||e.enabled&&(h0(t),v0())}catch(i){X.critical("ERROR while initializing launcher",{error:i})}},N0=function(e){e.defaultLauncher=t0,e.toggleLauncher=R0,e.showLauncher=x0,e.hideLauncher=E0,e.removeLauncher=f0,e.initLauncher=O0,e.createLauncher=h0,e._addGuideToLauncher=S0,e.launcherToolTipDiv=Xb},M0=function(e){e.designer&&(e.designer.createLauncher=h0,e.designer.removeLauncher=f0,e.designer.addGuideToLauncher=S0,e.designer.updateLauncherContent=w0)},L0=function(e){e.debugging&&(e.debugging.getLauncherGuides=n0)},F0=function(){O0()},P0=function(){M0(C)},G0=function(){L0(C)},D0=function(e){return l0(c0(C.guideWidget,e))},B0=function(e,t){N0(e),t.Events.on("guidesLoaded",F0),t.Events.on("designerLaunched",P0),t.Events.on("debuggerLaunched",G0),t.GuideLoop.addUpdatePhase(Zb),Cg(D0),t.agentStorage.registry.addLocal(Hb)},W0=function(e,t){Sg(D0),t.GuideLoop.removeUpdatePhase(Zb),t.Events.off("guidesLoaded",F0),t.Events.off("designerLaunched",P0),t.Events.off("debuggerLaunched",G0)};function U0(){return-1<K.indexOf(Mu.behaviors,bb)}var $0=function(){var r,i,o,a;return mm.Extensions.API.addTopic("Launcher",{addBehavior:function(e){a0.behaviors.push(e)}}),{name:"P1Guides",initialize:function(e,t){var n;o=t,r=(i=e).dom,a=[bb,Rb,Nb,Mb,u,c,d,s],U0()||(n=K.indexOf(Mu.behaviors,ry),Mu.behaviors.splice.apply(Mu.behaviors,[n,0].concat(a)),t.Events.guideLoopStopped.on(v0),e.TOOLTIP_DEFAULT_WIDTH=yb.width,e.TOOLTIP_DEFAULT_HEIGHT=yb.height,e.TOOLTIP_ARROW_SIZE=yb.arrowSize,e._showElementGuide=Qy,e._createTooltip=Jy,e._get_tooltip_dimensions=hb,e.LB_DEFAULT_WIDTH=Ib,e.LB_DEFAULT_HEIGHT=wb,e._showLightboxGuide=Tb,B0(e,t))},teardown:function(){W0(i,o),o.Events.guideLoopStopped.off(v0),a.forEach(function(e){e=K.indexOf(Mu.behaviors,e);0<=e&&Mu.behaviors.splice(e,1)}),a=[]}};function s(){var e=this;return"tooltip"!==e.type||e.domJson||(e.checkPlacement=function(){pb(e)}),e}function d(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=vb(),n=i.guideElement;n&&(e=r("._pendo-guide-container_",n),"tooltip"==i.type||Qe()&&"lightbox"==i.type?e.css({width:i.attributes.width-2*t,height:""}):e.css({right:t,bottom:""}),i.attributes.height=e.height()+2*t,n.height(i.attributes.height),i.reposition())}),i}function u(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Yh(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||uf(t)})}),t}function c(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||e.after("render",function(){gf(e.guideElement[0])}),e}}(),j0=function(){var n,i;return{name:"Branding",initialize:function(e,t){n=e,(i=t).ConfigReader.get("isPendoFree")&&i.Events.on("guideSeen",r)},teardown:function(){i.Events.off("guideSeen",r)},addBranding:t};function r(e){t(n,e)}function t(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=-1<(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild).dataset.verticalAlignment.indexOf("Bottom"),n=""!==t.style.width,(i=document.createElement("a")).href="https://www.pendo.io/pendo-free/nps?utm_source=pendo_app&utm_medium=branded-nps&utm_campaign=free-branded-nps",i.target="_blank",(r=document.createElement("img")).setAttribute("src",Sr()+"/img/nps-branding.png"),i.appendChild(r),i.style.display="inline-block",(r=document.createElement("div")).style.lineHeight=0,r.style.padding="8px",e&&(r.style.position="absolute",r.style.bottom="100%"),n&&(r.style.paddingLeft=0),r.append(i),t.append(r))}}(),z0=function(){var r,o,n,i,a="automation",e=250,t=500,s=0,d=10;return{name:"ActionAutomation",automationQueue:void 0,initialize:function(e,t){n=t,r=(o=e)._,this.automationQueue=[],t.EventRouter.registerAction(a,e._.bind(u,this))},teardown:function(){n.EventRouter.deregisterAction(a),this.automationQueue=[]},guideActivity:u,getAutomationFromGuide:function(i,e){return r.reduce(e,function(e,t){var n=r.find(i,function(e){return e.id===t});return n?e.push(n):o.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!i)return[];var t=i.guide,n=i.step;if(!t||!n)return[];n=t.automations;if(!n||!n.length)return[];n=this.getAutomationFromGuide(n,e),e=n[n.length-1];if(this.isAutomationInQueue(e))return o.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=o.Sizzle(e,document);return e&&e[0]},getElement:function(n,i){void 0===i&&(i=d);return new Vt(function(t){return Dt(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})}.bind(this),e)}.bind(this))},getValue:function(e){return e.value},injectText:function(e,t){e.value=t;t=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),e.dispatchEvent(t),t=new InputEvent("change",{bubbles:!0});e.dispatchEvent(t)},isAutomationInQueue:function(t){return!!r.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){var e=s,n=this.automationQueue[0];"autoclick"===n.type&&(e=t);return Dt(function(){return this.getElement(n,d).then(function(e){if(e)if(e.disabled)this.automationQueue=[],o.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],o.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")}.bind(this))}.bind(this),e)},setActive:function(e){i=e}};function u(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=r.find(e.params,function(e){return"automationIds"===e.name&&r.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):o.log("no automation ids were found","debug"))}}();function Z0(e,i){return"undefined"!=typeof Proxy&&K.isFunction(i)?new Proxy(e,{get:function(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return Z0(e[t],i)}return K.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}var V0=function(){var n,l,p,h,t,i=wi(function(n){{var e;p.eventProperties&&p.eventProperties.length&&(e=function c(n){var i=h.ConfigReader.get("eventPropertyMatchParents");var e=v();var t={};var r;for(var o=0;o<p.eventProperties.length&&v()-e<50;o++){r=p.eventProperties[o];var a=p._.any(r.featureRules,function(e){try{var t=f(i,l);return t(n,e)}catch(err){return!1}});if(a)for(var s=0;s<r.eventPropertyRules.length&&v()-e<50;s++){var d=r.eventPropertyRules[s];if(!d.name)return;t[d.name]=m(d,n)}}var u=v()-e;if(50<u){if(i&&l===p._.identity&&p._.isFunction(p.getText))return p.log("switching event property collection to fast text implementation"),l=function(e){return Z0(e,function(e){return p.getText(e,128)})},c(n);g(50,r)}return t}(n.target),K.pairs(e).forEach(function(e){var t=e[0],e=e[1];n.addEventProperty(t,e)}))}}),r=wi(function(){var e={};if(n)return{};var t=h.ConfigReader.get("eventPropertyConfigurations");if(!t||p._.isEmpty(t))return{};if(e=function(e){for(var t,n=v(),i={},r=0;r<e.length&&v()-n<50;r++){if(!(t=e[r]).name)return;var o=m(t);o&&(i["_pendo_"+t.name]=o)}50<v()-n&&g(50,t);return i}(t),p._.isEmpty(e))return{};return e});return{name:"EventProperties",initialize:function(e,t){h=t,l=(p=e)._.identity,n=!1,p.getEventPropertyTarget=s,p.previewEventProperty=m,h.Events.onClickCaptured.off(o),h.Events.onClickCaptured.on(o),h.Events.ready.on(a)},teardown:function(){h.Events.onClickCaptured.off(o),h.Events.ready.off(a),h.store.dispatch("location/removeInternalTransforms",t),t=[],h.store.dispatch("location/stopPolling")},collectClickEventProperties:i,collectEventProperty:m,collectPageEventProperties:r,getEventPropertyTarget:s,addPageEventProperties:a};function f(e,n){return e?function(e,t){return 0<p.dom(n(e)).closest(t).length}:function(e,t){return p.Sizzle.matchesSelector(e,t)}}function o(e){i(e.data[0])}function a(){var e;e=h.ConfigReader.get("eventPropertyConfigurations"),t=e&&!p._.isEmpty(e)?[new Pv("search","AddTo",function(){return r()})]:[],h.store.dispatch("location/addInternalTransforms",t),0<t.length&&h.store.dispatch("location/startPolling")}function g(e,t){p.log("event property collection disabled; collection took greater than "+e+" milliseconds.");e="ERROR event property collection exceeded time limit.";t.featureId?e+="\n For feature with id: "+t.featureId:e+="\n For page event with name: "+t.name,X.critical(e),t.featureId?p.eventProperties=[]:n=!0}function m(e,t){if(e.path)return t=s(e,t),p._.get(t,e.path,undefined)}function s(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=p.Sizzle.matchesSelector(r,i)?r:p.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(err){return}r=c.getParent(r)}return n}return e?!(t=p.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}(),Y0;function H0(){return{store:q,ConfigReader:m,getState:function(){return JSON.stringify(q.state)},getEventCache:function(){return[].concat(wa)},getAllGuides:function(){return[].concat(A())},getAutoGuides:function(){return yl.sortAndFilter(A(),C.autoOrdering)},getBadgeGuides:function(){return K.filter(A(),lu)},getLauncherGuides:function(){return[]},getEventHistory:function(){return[]},getAllFrames:function(){return q.getters["frames/allFrames"]()},getChannelType:function(){return q.getters["frames/channelType"]()},isStepShownInFrame:function(e,t){return q.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:eu,getBody:ee.getBody,isMobileUserAgent:l.isMobileUserAgent,areGuidesDelayed:zg,doesElementMatchContainsRules:wf,getMetadata:rl,isStagingServer:U,AutoDisplay:yl,isLeader:Cu,Events:y}}function K0(){var e;Yl().enabled&&(q.commit("debugger/debuggingEnabled",!0),X0(),ee("#pendo-client-debugger").length||(e=m.get("agentDebuggerPluginLoader"),mm.restartDebugger?mm.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=Te(C).createScriptURL(Ar("debugger-plugin.min.js")),ee.getBody().appendChild(e)),y.debuggerLaunched.trigger()))}function X0(){Y0=Y0||H0(),C.debugging=Y0}function J0(e){var t;return Hl()?e?t:"debugging already enabled":Cu()?((t=Yl()).enabled=!0,h.write(Vl,JSON.stringify(t),null,!0),K0(),e?t:"debugging enabled"):void 0}function q0(){if(!Hl())return"debugging already disabled";q.commit("debugger/debuggingEnabled",!1);var e=Yl();return e.enabled=!1,h.write(Vl,JSON.stringify(e),null,!0),C.debugging=null,delete C.debugging,ee("#pendo-client-debugger").remove(),"debugging disabled"}K.extend(Cv,Y0);var Q0=function(e,t,n){var i;return t.getters["frames/leaderExists"]()?n.resolve():(i=n.defer(),e.on("leaderChanged",function(){i.resolve()}),i.promise)},eI=function(){var r,o;return{name:"DebuggerLauncher",initialize:function(n,e){var t=e.Events,i=e.q;o=e.store,Q0(t,o,i).then(function(){o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&K0(),ia("pendo-debugger::launch",function(e,t){e.config.apiKey!==n.apiKey||(t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),Hl())||J0(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(r=n).isDebuggingEnabled=function(e){return Hl(e=void 0===e?!1:e)},n.enableDebugging=J0,n.disableDebugging=q0,n.addDebuggingFunctions=X0},teardown:function(){ra("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),r.debugging&&r.debugging.teardown&&r.debugging.teardown();q0()}};function a(e){var t=e.blockedURI,n=e.documentURI,i=e.originalPolicy,e=e.violatedDirective;t&&-1!==t.indexOf("pendo")&&o.dispatch("debugger/onCspError",{blockedURI:t,documentURI:n,originalPolicy:i,violatedDirective:e})}}(),tI=function(){var i,a,s,d,u,c,n,l,r,o,p=0,h=[],f=100,g=4,m=500,v=["TEXTAREA","INPUT"],y=!0,b={},I="previous_page_loads",w="errorClickLogging",C=1500,S=!1;return{name:"FrustrationEvent",initialize:function(e,t){u=(o=e)._,p=0,h=[],c=[],b={},S=(i=t).ConfigReader.get(w),this.detachErrorEvent=i.attachEvent(window,"error",M,!0),this.detachDocumentEvents=function(){for(var e=qt(qt([],["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],!0),["visibilitychange","selectionchange","scroll"],!1),t=[],n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],_,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],function(){T(250)},!0));break;default:t.push(i.attachEvent(window,e[n],T,!0))}return t}(),i.Events.on("eventCaptured",F),i.agentStorage.registry.addSession(I),o.sniffer.MutationObserver&&(e=Lt("MutationObserver"),(n=new e(E)).observe(o.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",F),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect()},addErrorClickLog:k,getErrorEventTarget:N,checkErrorEvent:M,observeDOMMutation:E};function A(t){void 0===t&&(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()),(h=u.filter(h,function(e){return t-e.timestamp<=f})).length&&Dt(A,f)}function T(e){void 0===e&&(e=m),y=!1,u.each(b,function(e){clearTimeout(e)}),b={},Dt(function(){y=!0},e)}function _(){var e=document.getSelection().toString();(l||e.length)&&(T(),l=!!e.length)}function E(e){e.length&&T()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function x(e){return e&&t(e.element)}function R(e,t){var n=e.frustrationTypes,n=void 0===n?[]:n;n.includes(t)||(n.push(t),e.frustrationTypes=n)}function k(e,t){var n=t.detail,n=void 0===n?{}:n,n=(x(n)&&n.error?n.error:t).message;n&&n.length>C&&(n=n.substring(0,C)),e.errorClickLog=n}function O(e,t){var n,i,r=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),o=t.target&&!v.includes(t.target.tagName);y&&!l&&o&&!r&&(n=e,i=Dt(function(){delete b[i],R(n,"deadClick")},m),b[i]=i),9<h.length&&h.pop(),h.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Dt(A,f),u.each(c,function(e){M(e)}),a?(o=t,e.browser_time-a<=1e3&&Math.abs(s-o.x)<=30&&Math.abs(d-o.y)<=30?p++:(p=1,s=t.x,d=t.y),a=e.browser_time,4===p&&(a=null,R(e,"rageClick"))):(a=e.browser_time,s=t.x,d=t.y,p=1)}function N(e){if(t(e.target))return x(e=void 0===(e=e.detail)?{}:e)?e.element:t(document.activeElement)?document.activeElement:void 0}function M(t){var n,i,e,r=N(t);r&&((n=u.find(h,function(e){return(e.target===r||e.activeElement===r)&&t.timeStamp-e.timestamp<f}))?(e=u.find(o.buffers.events,i=function(e){return e.browser_time===n.browser_time&&"click"===e.type})||u.find(o.buffers.silos,function(e){return u.find(e,i)}))&&(R(e,"errorClick"),S)&&k(e,t):(u.contains(c,t)||c.push(t),c.length>g&&c.pop()))}function L(e){var t;t=i.sessionStorage.getItem(I),r=null!=t&&0<t.length?JSON.parse(t):[],function(e){var t,n;if(!(r.length<2))return t=r[0],n=r[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(e)&&R(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),t=r,i.sessionStorage.setItem(I,JSON.stringify(t))}function F(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&O(t,e),"load"===t.type&&L(t),"submit"!==t.type&&"change"!==t.type||T(),u.has(e,"target")&&v.includes(e.target.tagName));"focus"===t.type&&e&&T()}}(),nI=function(e){var r=e._,o=e.store;return{show:function(e){var t=r.first(this.steps),n=r.map(this.steps,function(e){return e.id}),n=r.pick(o.state.guideState.steps,n),i=null;return r.isEmpty(n)||(i=r.max(n,function(e){return e.time||0})),(this.nextStep(i)||t).show(e)},isShownInThisFrame:function(){return r.any(this.steps,function(e){return e.isRendered()||e.isLocked()})}}},iI=function(e){var n=e.pluginApi;e._;return this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),this._onShown?{onShown:function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}:null},rI=function(){var n,i,r,a,s=[],e=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:s,initialize:function(e,t){n=t,a=(i=e)._,function(e){e.getEmbeddedGuides=oI,e.getActiveEmbeddedGuides=aI}(e),r=nI({_:a,store:n.store,globalPendo:i}),n.Events.on("deliverablesLoaded",u),n.Events.on("guideLoopStopped",d),n.Events.on("guideListChanged",f),n.GuideLoop.addUpdatePhase(o),n.guides.addProcessor(c),n.GuideActivity.registerGuideResolver(h),this.removeResizeEvent=e.attachEvent(window,"resize",p)},teardown:function(){u(),n.Events.off("deliverablesLoaded",u),n.Events.off("guideLoopStopped",d),n.Events.off("guideListChanged",f),n.GuideLoop.removeUpdatePhase(o),n.guides.removeProcessor(c),n.GuideActivity.removeGuideResolver(h),this.removeResizeEvent&&this.removeResizeEvent()}};function o(){var o=i.Sizzle;a.forEach(s,function(e){var t,n=null,i=a.get(e,"attributes.embedConfig.selector"),i=a.first(o(i)),r=e.isShownInThisFrame();i&&r&&(t="#pendo-guide-container-".concat(a.get(l(e),"id")),n=a.first(o(t,i))),!r&&i&&((t=e).shouldShowSnoozedGuide()||t.shouldRepeatGuide()||a.all(t.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState}))?e.show("embed"):!r||i&&n||e.hide()})}function d(){a.forEach(s,function(e){e.isShownInThisFrame()&&e.hide()})}function u(){e=a.toArray(s),n.guides.removeDisplayableGuides("embeddedGuides"),s.length=0}function c(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(a.some(s,function(e){return e.id===t.id})||s.push(t),n.store.getters["preview/isInPreviewMode"]())}function l(e){return e?a.find(e.steps,function(e){return e.isShown()}):null}function p(){a.forEach(s,function(e){e=l(e);e&&!i.ignoreResize&&e.redraw()})}function h(e){if(s.length){var t,n="pendo-base-";if(a.isString(e.id)&&0===e.id.indexOf(n)){var i=e.id.substring(n.length);if((n=a.find(s,function(e){t=a.find(e.steps,function(e){if(e.id===i)return e});return!!t}))&&t)return{guide:n,step:t};return}else return a.isObject(e.parentElem)?h(e.parentElem):null}return null}function f(){a.each(e,function(t){var e=a.findIndex(s,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(s[e]=t)}),e.length=0,n.guides.registerDisplayableGuides("embeddedGuides",s),a.map(s,function(e){Object.assign(e,r),a.map(e.steps,function(e){var t=iI.call(e,{pluginApi:n,_:a});Object.assign(e,t)})})}}();function oI(){return rI.activeEmbeddedGuides}function aI(){return rI.activeEmbeddedGuides.filter(function(e){return e.isShown()})}var sI="sessionId",dI="sessionLastUserInteractionEvent",uI=18e5,cI=function(){function e(){this.name="SessionManager"}return e.prototype.initialize=function(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"ready",K.bind(this.ready,this)),this.api.attachEvent(this.api.Events,"eventCaptured",K.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",uI),this.api.agentStorage.registry.addLocal(sI),this.api.agentStorage.registry.addLocal(dI),this.api.store.getters["frames/isReady"]()&&this.ready()},e.prototype.teardown=function(){K.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0},e.prototype.ready=function(){this.isReady||(this.sessionId(),this.isReady=!0)},e.prototype.isExpired=function(e){var t=K.get(this._sessionInfo,"timestamp");return!!(t&&e-t>this.inactivityDuration)},e.prototype.eventCaptured=function(e){e&&e.data&&e.data.length&&(e=e.data[0],this.ready(),this.isExpired(e.browser_time)&&(this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(e.browser_time),e.sessionId=this.sessionId())},e.prototype.sessionId=function(e){var t;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionInfo||((t=this.api.agentStorage.read(sI))||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(sI,t)),this._sessionInfo=JSON.parse(t)),this._sessionInfo.sessionId},e.prototype.clearSessionInfo=function(){delete this._sessionInfo,this.api.agentStorage.clear(sI),this.sessionId()},e.prototype.storeLastInteractionEventInformation=function(e){this._sessionInfo.timestamp=e,this.api.agentStorage.write(sI,JSON.stringify(this._sessionInfo))},e}(),lI=new cI,pI=function(){function e(){this.name="SegmentFlags"}return e.prototype.initialize=function(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))},e.prototype.teardown=function(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))},e.prototype.handleReady=function(){this.ready=!0,this.requestSegmentFlags()},e.prototype.requestSegmentFlags=function(){if(this.ready){var e,t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json"),n=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t),r=this.api.agent.getJwtInfoCopy();try{n.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(r)?(delete t.jzb,n=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),e=this.pendo._.extend({events:i},r),this.postLoad(n,e)):"script"===this.pendo.LOADER?this.scriptLoad(n):this.getLoad(n)}catch(err){this.api.log.error("Failed to load segment flags",{error:err})}}},e.prototype.segmentsPayload=function(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)},e.prototype.scriptLoad=function(e){this.pendo.loadResource(e,this.pendo._.noop)},e.prototype.getLoad=function(n){return Xt(this,void 0,void 0,function(){var t;return Jt(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.get(n)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})},e.prototype.postLoad=function(n,i){return Xt(this,void 0,void 0,function(){var t;return Jt(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.postJSON(n,i)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})},e}(),hI=new pI,fI=["google","bing","yahoo","duckduckgo","baidu","yandex","aol","ask","excite","lycos","webcrawler","infoseek","dogpile","altavista","netscape","hotbot","looksmart","gigablast","teoma","alltheweb","search.com","mamma","metacrawler","ixquick","searchy","searchalot","searchengine","searchenginez","searchengineland","searchenginewatch","searchengineworld","searchenginejournal","searchengineguide","searchengineforums"],gI=new RegExp("(".concat(fI.join("|"),")"),"i"),mI=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat"],vI=new RegExp("(".concat(mI.join("|"),")"),"i"),yI=["youtube","vimeo","dailymotion","twitch","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"];function bI(e){return"self"!==e&&"direct"!==e&&null!==e.match(gI)}function II(e){return"self"!==e&&"direct"!==e&&null!==e.match(vI)}function wI(e){var t,n=e.referrer,e=e.currentHost;return n&&""!==n?(t="self",(n=new Si(n).hostname)!==e?null==n?void 0:n.toLowerCase():t):"direct"}function CI(e){var t=e.referrerValue,n=e.utm,e=e.gclid,i="Direct",r=new RegExp("^(.*cp.*|ppc|retargeting|paid.*)$"),o=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),a=(null==(a=n.medium)?void 0:a.toLowerCase())||"",s=(null==(s=n.source)?void 0:s.toLowerCase())||"",d=s&&fI.includes(s),u=s&&mI.includes(s),c=s&&yI.includes(s);if(null===a.match(o)&&null===s.match(o)||"direct"!==t){if("organic"===a&&d||bI(t))i="Organic Search";else if(e||null!=a&&a.match(r)&&d)i="Paid Search";else if("display"===a||"cpm"===a||"banner"===a||"interstitial"===a||"expandable"===a)i="Display";else if("paidsocial"===a||"paidsocial"===s||null!=a&&a.match(r)&&u)i="Paid Social";else if(-1<a.indexOf("social")||u||II(t))i="Organic Social";else if(null!=a&&a.match(r)&&c)i="Paid Social";else if("referral"===a)i="Referral";else if("affiliate"===a)i="Referral";else if("cpv"===a||"cpa"===a)i="Other Advertising";else if("sms"===s||"sms"===a)i="SMS";else if(a.endsWith("push")||-1<a.indexOf("mobile")||-1<a.indexOf("notification")||"firebase"===s)i="Mobile Push";else if(a)i="Other";else if(!n.medium&&!n.source)return"Direct"}else i="Email";return i}var SI="utm",AI=function(){function e(){this.name="WebAnalytics"}return e.prototype.initialize=function(e,t){this.pendo=e,this.api=t;var n=e._.bind,n=(this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))],this.loadParameters(t.agentStorage));n&&!e._.isEmpty(n)||(n=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(SI),this.storeParameters(n,t.agentStorage)},e.prototype.extractParameters=function(e,t){t=wI({referrer:t,currentHost:new Si(e).hostname});if("self"!==t){var e=this.api.util.parseUrl(e).query,n=e.utm_source,i=e.utm_medium,r=e.utm_campaign,o=e.utm_term,a=e.utm_content,e=e.gclid;if(this.pendo._.compact([n,i,r,o,a,e]).length)return(n={source:n,medium:i,campaign:r,term:o,content:a}).channel=CI({referrerValue:t,utm:n,gclid:e}),n}return{}},e.prototype.storeParameters=function(e,t){0<this.pendo._.size(e)&&(this.utm=e,t.write(SI,JSON.stringify(e)))},e.prototype.loadParameters=function(e){e=e.read(SI);return e?JSON.parse(e):null},e.prototype.teardown=function(){for(var e=0,t=this.subscriptions;e<t.length;e++)(0,t[e])();this.subscriptions.length=0,this.utm=null},e.prototype.addUtmToEvent=function(e){this.utm&&(e.data[0].utm=this.utm)},e.prototype.sessionChanged=function(){this.utm=null;var e=this.api.agentStorage,t=(e.clear(SI),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)},e}(),TI=new AI;function _I(){vm(My),vm(Py),vm(Uy),vm(jy),vm($0),vm(j0),vm(z0),vm(V0),vm($v),vm(eI),vm(tI),vm(rI),vm(lI),vm(hI),vm(TI)}function EI(i){zv(i),Kv(i),K.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{xm()?n.apply(this,arguments):V(i,t,arguments)}catch(e){X.critical(e)}}})}function xI(t){K.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){t[e]=function(){console.log("Pendo is currently disabled.")}})}function RI(e,t){pe(t),ct(),!N(t)&&ce(t,e,Hl())||e&&e.VERSION||(m.get("disablePendo")?xI(e):(Ny(q),wr(),dy(),Wu.reset(),q.dispatch("frames/init"),pv.init(),c.wrapSizzle(s),s.intercept(wu),EI(e),X.addEventListener("log",K.partial(q.dispatch,"errorLog/write")),_I(),Bm(e._q,Dm,Vd)))}var kI=fe(),OI=M(kI);return RI(OI,kI),OI}var TextCapture=function(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:d,isTextCapturable:function(e){var t=r.util.trim.call(e);return d()||i._.has(o,t)||i._.has(o,e)},hasWhitelist:function(){return 0<i._.size(o)},serializer:a};function a(e,t,n){return t===n&&(TextCapture.isEnabled()||!TextCapture.isEnabled()&&TextCapture.hasWhitelist())&&(t=i.getText(n,128),TextCapture.isTextCapturable(t))&&(e.txt=TextCapture.hasWhitelist()?r.util.trim.call(t):t),e}function s(e,t){var n;d()&&(n=t.data[0])&&"guideActivity"===n.type&&(t=e.getActiveGuide())&&(e=(0,e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson)(t.step.domJson,function(e){return e.props&&e.props.id&&e.props.id===n.props.ui_element_id}))&&(n.props.ui_element_text=e.content)}function d(){return!i.excludeAllText}}(),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString="({goto-".concat(goToMiddleString,"\\/})");function lookupGuideButtons(e,t){return void 0===t&&(t=[]),"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(function(e){lookupGuideButtons(e,t)}),t}function removeMarkdownSyntax(e,t,n){var i;window.pendo.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(i=e.innerHTML)?void 0:i.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax},goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script:function(r,o){var a=!1,e=initialBranchingSetup(r);!e||1<window.pendo._.size(e)||this.on("beforeAdvance",function(e){var t,n=0===r.guideElement.find("[branching] .pendo-radio:checked").length,i=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];i&&(t=window.pendo._.isNull(i.getAttribute("goToStep"))),a||n||t||(a=!0,branchingGoToStep(e,r,o))})},test:function(e){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!window.pendo._.isUndefined(e)&&window.pendo._.size(e)},designerListener:function(){var e=window.pendo.dom.getBody();function i(e,t){return'<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"\n style="margin-left: 5px;\n height:'.concat(t,"; width:").concat(t,'; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"></g>\n <g> <circle cx="4" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="17" r="2" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></circle>\n <path d="M18 7H6" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M7 7V7C8.65685 7 10 8.34315 10 10V15C10 16.1046 10.8954 17 12 17H18"\n stroke="').concat(e,'" stroke-width="2" stroke-linecap="round"\n stroke-linejoin="round"></path> </g></svg>')}new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelector);e.addedNodes.length&&t&&e.addedNodes[0].querySelector("._pendo-multi-choice-poll-select-border")&&window.pendo._.size(window.pendo.dom('._pendo-multi-choice-poll-question:contains("{branching/}")'))&&window.pendo.dom('._pendo-multi-choice-poll-question:contains("{branching/}")').each(function(e,t){window.pendo._.each(window.pendo.dom("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","")}),window.pendo.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(i("#999","20px")).attr({title:"Custom Branching Added"});var n=e.getAttribute("data-pendo-poll-id"),n=(window.pendo.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0]&&window.pendo.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0].textContent.trim(),window.pendo.dom("label[for*=".concat(n,"]")));window.pendo._.size(n)&&window.pendo._.forEach(n,function(e){var t;goToRegex.test(e.textContent)&&(t=goToRegex.exec(e.textContent)[2],guideMarkdownUtil.removeMarkdownSyntax(e,goToRegex,""),window.pendo.dom(e).append(i("#999","14px")).attr({title:"Branching to step ".concat(t)}))}),0<t&&(window.pendo.dom(e).append('<div style="text-align:lrft; font-size: 14px; color: red;\n font-style: italic; margin-top: 0px;" class="branching-wrapper"\n name="'.concat(e.dataset.pendoPollId,'">\n * Branching Error: Multiple branching polls not supported</div>')),window.pendo.dom("#".concat(e.id," #pendo-ps-branching-svg")).remove(),window.pendo.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(i("red","20px")).attr({title:"Unsupported Branching configuration"}))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function initialBranchingSetup(n){var e=n.guideElement.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return window.pendo._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id"),e=(window.pendo._.each(n.guideElement.find("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","")}),n.guideElement.find("label[for*=".concat(t,"]"))),e=(window.pendo._.forEach(e,function(e){var t,n;window.pendo._.isNull(goToRegex.exec(e.textContent))||(t=goToRegex.exec(e.textContent)[1],n=goToRegex.exec(e.textContent)[2],e.setAttribute("goToStep",n),guideMarkdownUtil.removeMarkdownSyntax(e,t,""))}),n.guideElement.find("[data-pendo-poll-id=".concat(t,"]._pendo-multi-choice-poll-select-border")));e&&e[0].setAttribute("branching","")}),e}function branchingGoToStep(e,t,n){var i=null==(i=t.guideElement.find("[branching] input.pendo-radio[data-pendo-poll-id]:checked")[0])?void 0:i.id,i=t.guideElement.find('label[for="'.concat(i,'"]'))[0],t=(null==i?void 0:i.getAttribute("goToStep"))-1;t<0||(i={destinationStepId:n.steps[t].id},window.pendo.goToStep(i),e.cancel=!0)}var containerSelector='[id^="pendo-guide-container"]',MetadataSubstitution={name:"MetadataSubstitution",script:function(e,t){var n=findSubstitutableElements();e.domJson&&findSubstitutableUrlsInJson(e.domJson,n),window.pendo._.size(n)&&(window.pendo._.each(n,function(e){processPlaceholder(e)}),updateGuideContainer("pendo-g-".concat(e.id),e.guideElement))},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t,n;e.addedNodes.length&&document.querySelector(containerSelector)&&(e=findSubstitutableElements(),t=null==(t=window.pendo.designerv2.currentlyPreviewedGuide)?void 0:t.steps[0])&&(n=t.buildingBlocks,window.pendo._.isUndefined(n)||findSubstitutableUrlsInJson(n,e),window.pendo._.size(e))&&(window.pendo._.each(e,function(e){window.pendo._.isUndefined(e)||processPlaceholder(e)}),updateGuideContainer("pendo-g-".concat(t.id),t.guideElement))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function processPlaceholder(e){for(var t=e.data,n=e.target,i=new RegExp(guideMarkdownUtil.substitutionRegex);r=matchPlaceholder(e,i);){var r=i.exec(r);substituteMetadataByTarget(t,n,getSubstitueValue(r),r)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:decodeURI(e.data[e.target])).match(t)}function getSubstitueValue(e){if(!window.pendo._.isUndefined(e[1])&&!window.pendo._.isUndefined(e[2])){var t=e[1],n=e[2],e=e[3];if(!window.pendo._.isUndefined(t)&&!window.pendo._.isUndefined(n))return window.pendo._.get(window.pendo.getSerializedMetadata(),"".concat(t,".").concat(n))||e||""}}function substituteMetadataByTarget(e,t,n,i){e[t]="href"===t||"value"===t?decodeURI(e[t]).replace(i[0],window.encodeURI(n)):e[t].replace(i[0],n)}function updateGuideContainer(e,t){window.pendo.designer&&!window.pendo._.size(window.pendo.dom("#pendo-ps-substitution-icon"))&&window.pendo.dom(containerSelector).append(substitutionIcon("#999","30px")),window.pendo.flexElement(window.pendo.dom(containerSelector)),window.pendo.BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight(e,t)}function findSubstitutableUrlsInJson(e,t){void 0===t&&(t=[]);var n=new RegExp(guideMarkdownUtil.substitutionRegex);return"url"!==e.name&&"href"!==e.name||!e.value||n.test(e.value)&&t.push({data:e,target:"value"}),e.properties&&"href_link_block"===e.id&&window.pendo._.each(e.properties,function(e){findSubstitutableUrlsInJson(e,t)}),e.views&&window.pendo._.each(e.views,function(e){findSubstitutableUrlsInJson(e,t)}),e.parameters&&window.pendo._.each(e.parameters,function(e){findSubstitutableUrlsInJson(e,t)}),e.actions&&window.pendo._.each(e.actions,function(e){findSubstitutableUrlsInJson(e,t)}),e.children&&window.pendo._.each(e.children,function(e){findSubstitutableUrlsInJson(e,t)}),t}function findSubstitutableElements(){var e=window.pendo.dom("".concat(containerSelector," *:not(.pendo-inline-ui)"));return window.pendo._.chain(e).filter(function(e){var t=new RegExp(guideMarkdownUtil.substitutionRegex);return"a"===e.localName?t.test(decodeURI(e.href))||t.test(e.textContent):"div"!==e.localName?"button"===e.localName||"label"===e.localName?t.test(e.textContent):0<e.children.length?void 0:window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link")?t.test(e.textContent):t.test(e.textContent)||t.test(decodeURI(e.href)):void 0}).map(function(e){return"a"===e.localName&&window.pendo.dom(e).hasClass("_pendo-text-link")?[{data:e,target:"href"},{data:e,target:"textContent"}]:"a"===e.localName?{data:e,target:"href"}:"button"===e.localName||window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link")?{data:e,target:"textContent"}:void 0}).flatten().value()}function substitutionIcon(e,t){return'<div title="Metadata Substitution added">\n <svg id="pendo-ps-substitution-icon" viewBox="0 0 24 24"\n preserveAspectRatio="xMidYMid meet"\n height='.concat(t," width=").concat(t,' title="Metadata Substitution"\n style="bottom:5px; right:10px; position: absolute;"\n fill="none" xmlns="http://www.w3.org/2000/svg" stroke="').concat(e,'"\n transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"\n stroke="').concat(e,'" stroke-width="0.528"></g>\n <g><path fill-rule="evenodd" clip-rule="evenodd"\n d="M5 5.5C4.17157 5.5 3.5 6.17157 3.5 7V10C3.5 10.8284\n 4.17157 11.5 5 11.5H8C8.82843 11.5 9.5 10.8284 9.5\n 10V9H17V11C17 11.2761 17.2239 11.5 17.5 11.5C17.7761\n 11.5 18 11.2761 18 11V8.5C18 8.22386 17.7761 8 17.5\n 8H9.5V7C9.5 6.17157 8.82843 5.5 8 5.5H5ZM8.5 7C8.5\n 6.72386 8.27614 6.5 8 6.5H5C4.72386 6.5 4.5 6.72386\n 4.5 7V10C4.5 10.2761 4.72386 10.5 5 10.5H8C8.27614\n 10.5 8.5 10.2761 8.5 10V7Z" fill="').concat(e,'"></path>\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M7 13C7 12.7239 6.77614 12.5 6.5 12.5C6.22386 12.5\n 6 12.7239 6 13V15.5C6 15.7761 6.22386 16 6.5\n 16H14.5V17C14.5 17.8284 15.1716 18.5 16 18.5H19C19.8284\n 18.5 20.5 17.8284 20.5 17V14C20.5 13.1716 19.8284 12.5\n 19 12.5H16C15.1716 12.5 14.5 13.1716 14.5\n 14V15H7V13ZM15.5 17C15.5 17.2761 15.7239 17.5 16\n 17.5H19C19.2761 17.5 19.5 17.2761 19.5 17V14C19.5\n 13.7239 19.2761 13.5 19 13.5H16C15.7239 13.5 15.5\n 13.7239 15.5 14V17Z" fill="').concat(e,'"></path> </g></svg></div>')}var requiredElement='<span class="_pendo-required-indicator" style="color:red; font-style:italic;" title="Question is required"> *</span>',RequiredQuestions={name:"RequiredQuestions",script:function(i,e){var t,n=[],r=null==(t=guideMarkdownUtil.lookupGuideButtons(i.domJson))?void 0:t.filter(function(e){return e.actions.find(function(e){return"submitPoll"===e.action||"submitPollAndGoToStep"===e.action})}),o=function(){var e=i.guideElement.find("[class*=-poll-question]:contains({required/})");e&&window.pendo._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id");n.push(t),window.pendo._.each(i.guideElement.find("#".concat(e.id," *, #").concat(e.id)),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","")}),i.guideElement.find("#".concat(e.id," p")).append(requiredElement)});window.pendo._.size(n)&&(0===window.pendo.dom("#_pendo-guide-required-disabled").length&&window.pendo.dom("head").append("<style type=text/css\n id=_pendo-guide-required-disabled>\n ._pendo-button:disabled, ._pendo-buttons[disabled] {\n border: 1px solid #999999 !important;\n background-color: #cccccc !important;\n color: #666666 !important;\n pointer-events: none !important;\n }\n </style>"),s(r));return e}();function a(e){var t,n;0!==e.length&&(t=!0,(t=(n=(n=[]).concat(window.pendo._.map(e,function(e){e=e.getAttribute("data-pendo-poll-id"),e=i.guideElement.find("\n [data-pendo-poll-id=".concat(e,"] textarea,\n [data-pendo-poll-id=").concat(e,"] input:text,\n [data-pendo-poll-id=").concat(e,"] select,\n [data-pendo-poll-id=").concat(e,"] input:radio:checked"));if(e&&e.length&&e[0].value)return e[0].value}))).includes(undefined)||window.pendo._.isEmpty(n)?!1:t)?r.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!1,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="")}):s(r))}function s(e){e.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!0,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="Please complete all required questions.")})}o&&(window.pendo._.forEach(o,function(e){e.classList.contains("_pendo-open-text-poll-question")&&(e=e.dataset.pendoPollId,i.attachEvent(i.guideElement.find("[data-pendo-poll-id=".concat(e,"]._pendo-open-text-poll-input"))[0],"input",function(){a(o)}))}),i.attachEvent(i.guideElement.find("#pendo-guide-container")[0],"click",function(e){e.target.classList.contains("_pendo-button")||a(o)}))},test:function(e){e=null==(e=e.guideElement)?void 0:e.find("[class*=-poll-question]:contains({required/})");return!window.pendo._.isUndefined(e)&&window.pendo._.size(e)},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(t=e.addedNodes[0].querySelectorAll("[class*=-poll-wrapper], [class*=-poll-select-border]"))&&t.forEach(function(e){var t,e=e.classList.contains("_pendo-open-text-poll-wrapper")||e.classList.contains("_pendo-number-scale-poll-wrapper")?e.getAttribute("name"):e.getAttribute("data-pendo-poll-id");(t=window.pendo.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0]?window.pendo.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0].textContent:t).includes("{required/}")&&(window.pendo._.each(window.pendo.dom("[data-pendo-poll-id=".concat(e,"]:not(.pendo-radio)")),function(e){window.pendo._.each(window.pendo.dom("#".concat(e.id,' *:not(".pendo-radio"), #').concat(e.id,':not(".pendo-radio")')),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","")})}),(0!==window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).length||0!==window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li")).length?(window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).append(requiredElement),window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li"))):window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"]"))).append(requiredElement))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script:function(i,r){var n=!1,o=!1,e=i.guideElement.find("#pendo-guide-container"),t=e.attr("aria-label"),a=skipStepRegex.exec(t)[1];function s(e,t){var n=d(r.getPositionOfStep(i),"next",e),e=d(r.getPositionOfStep(i)-2,"previous",e);return n&&"next"==t&&window.pendo.goToStep({destinationStepId:n}),e&&"previous"==t&&window.pendo.goToStep({destinationStepId:e}),"next"===t?n:e}function d(e,t,n){var i;if(!window.pendo._.isNaN(e))return(i=r.steps[e])&&!i.canShow()?"auto"!==n?r.steps[n-1]:"next"===t?d(e+1,"next",n):d(e-1,"previous",n):i}e&&e.attr({"aria-label":e.attr("aria-label").replace(skipStepRegex,"")}),this.on("beforeAdvance",function(e){var t;r.getPositionOfStep(i)===r.steps.length||window.pendo._.isUndefined(a)||(t=s(a,"next"),!n&&a&&(n=!0,window.pendo.goToStep({destinationStepId:t.id}),e.cancel=!0))}),this.on("beforePrevious",function(e){var t;window.pendo._.isUndefined(a)||(t=s(a,"previous"),!o&&a&&(o=!0,window.pendo.goToStep({destinationStepId:t.id}),e.cancel=!0))})},test:function(e){e=null==(e=e.guideElement)?void 0:e.find("#pendo-guide-container").attr("aria-label");return!window.pendo._.isUndefined(e)&&(null==e?void 0:e.includes("{skipStep"))},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(e=null==(t=e.addedNodes[0].querySelectorAll("#pendo-guide-container")[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),window.pendo.dom("#_pendoSkipIcon").length||window.pendo.dom("#pendo-guide-container").append((t="#999",'<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="'.concat(e="30px",'" height="').concat(e,'" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet" style="bottom:5px; right:10px; position: absolute;">\n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="').concat(t,'" stroke="none">\n <path d="M2185 4469 c-363 -38 -739 -186 -1034 -407 -95 -71 -273 -243 -357\n -343 -205 -246 -364 -577 -429 -897 -25 -121 -45 -288 -45 -373 l0 -49 160 0\n 160 0 0 48 c0 26 5 88 10 137 68 593 417 1103 940 1374 1100 570 2418 -137\n 2560 -1374 5 -49 10 -111 10 -137 l0 -47 -155 -3 -155 -3 235 -235 235 -236\n 235 236 235 235 -155 3 -155 3 0 48 c0 27 -5 95 -10 152 -100 989 -878 1767\n -1869 1868 -117 12 -298 12 -416 0z"/>\n <path d="M320 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M960 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M1600 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2240 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>\n </g></svg></div>\n ').trim())))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},GuideMarkdown=function(){var r,o;return{name:"GuideMarkdown",initialize:function(e,t){var n=(o=t).ConfigReader,i="guideMarkdown";n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i)&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||r.forEach(function(e){t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",a))},teardown:function(){o.Events.off("designerLaunched",a),r.forEach(function(e){o.GlobalRuntime.removeGlobalScript(e)})}};function a(){r.forEach(function(e){e.designerListener&&e.designerListener()})}}();function isObject$8(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$8,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,now$1=function(){return root$8.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$7=_root,Symbol$6=root$7.Symbol,_Symbol=Symbol$6,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:undefined;function getRawTag$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=undefined;var i=!0}catch(o){}var r=nativeObjectToString$1.call(e);return i&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$4=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$4?Symbol$4.toStringTag:undefined;function baseGetTag$6(e){return null==e?e===undefined?undefinedTag:nullTag:(symToStringTag&&symToStringTag in Object(e)?getRawTag:objectToString)(e)}var _baseGetTag=baseGetTag$6;function isObjectLike$7(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$7,baseGetTag$5=_baseGetTag,isObjectLike$6=isObjectLike_1,symbolTag$2="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$5(e)==symbolTag$2}var isSymbol_1=isSymbol$4,baseTrim=_baseTrim,isObject$7=isObject_1,isSymbol$3=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$3(e))return NAN;if(isObject$7(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=isObject$7(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$6=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT$2="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce$1(i,n,e){var r,o,a,s,d,u,c=0,l=!1,p=!1,t=!0;if("function"!=typeof i)throw new TypeError(FUNC_ERROR_TEXT$2);function h(e){var t=r,n=o;return r=o=undefined,c=e,s=i.apply(n,t)}function f(e){var t=e-u;return u===undefined||n<=t||t<0||p&&a<=e-c}function g(){var e,t=now();if(f(t))return m(t);d=setTimeout$1(g,(e=n-((t=t)-u),p?nativeMin(e,a-(t-c)):e))}function m(e){return d=undefined,t&&r?h(e):(r=o=undefined,s)}function v(){var e=now(),t=f(e);if(r=arguments,o=this,u=e,t){if(d===undefined)return c=e=u,d=setTimeout$1(g,n),l?h(e):s;if(p)return clearTimeout(d),d=setTimeout$1(g,n),h(u)}return d===undefined&&(d=setTimeout$1(g,n)),s}return n=toNumber(n)||0,isObject$6(e)&&(l=!!e.leading,p="maxWait"in e,a=p?nativeMax$1(toNumber(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){d!==undefined&&clearTimeout(d),c=0,r=u=o=d=undefined},v.flush=function(){return d===undefined?s:m(now())},v}var debounce_1=debounce$1,debounce=debounce_1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$5(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),debounce(e,t,{leading:i,maxWait:t,trailing:r})}var throttle_1=throttle,throttle$1=getDefaultExportFromCjs(throttle_1),isArray$8=Array.isArray,isArray_1=isArray$8,isArray$7=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(e,t){var n;return!isArray$7(e)&&(!("number"!=(n=typeof e)&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol$2(e))||reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$1,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){return!!isObject$4(e)&&((e=baseGetTag$4(e))==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag)}var isFunction_1=isFunction$2,isFunction$3=getDefaultExportFromCjs(isFunction_1),root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource$2(e){if(null!=e){try{return funcToString$2.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$b=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$9=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,t){return null==e?undefined:e[t]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$7(e,t){e=getValue(e,t);return baseIsNative(e)?e:undefined}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=getNative$6(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashGet$1(e){var t,n=this.__data__;return nativeCreate$2?(t=n[e])===HASH_UNDEFINED$1?undefined:t:hasOwnProperty$8.call(n,e)?n[e]:undefined}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?t[e]!==undefined:hasOwnProperty$7.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nativeCreate&&t===undefined?HASH_UNDEFINED:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype["delete"]=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var n=e.length;n--;)if(eq$1(e[n][0],t))return n;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,e=assocIndexOf$3(t,e);return!(e<0||(e==t.length-1?t.pop():splice.call(t,e,1),--this.size,0))}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,e=assocIndexOf$2(t,e);return e<0?undefined:t[e][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return-1<assocIndexOf$1(this.__data__,e)}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype["delete"]=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){e=e.__data__;return isKeyable(t)?e["string"==typeof t?"string":"hash"]:e.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){e=getMapData$3(this,e)["delete"](e);return this.size-=e?1:0,e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}MapCache$2.prototype.clear=mapCacheClear,MapCache$2.prototype["delete"]=mapCacheDelete,MapCache$2.prototype.get=mapCacheGet,MapCache$2.prototype.has=mapCacheHas,MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,MapCache$1=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(i,r){if("function"!=typeof i||null!=r&&"function"!=typeof r)throw new TypeError(FUNC_ERROR_TEXT);var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],n=o.cache;return n.has(t)?n.get(t):(e=i.apply(this,e),o.cache=n.set(t,e)||n,e)};return o.cache=new(memoize$1.Cache||MapCache$1),o}memoize$1.Cache=MapCache$1;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var e=memoize(e,function(e){return t.size===MAX_MEMOIZE_SIZE&&t.clear(),e}),t=e.cache;return e}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(rePropName,function(e,t,n,i){r.push(n?i.replace(reEscapeChar,"$1"):t||e)}),r}),_stringToPath=stringToPath$1;function arrayMap$2(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}var _arrayMap=arrayMap$2,Symbol$3=_Symbol,arrayMap$1=_arrayMap,isArray$6=isArray_1,isSymbol$1=isSymbol_1,INFINITY$1=1/0,symbolProto$1=Symbol$3?Symbol$3.prototype:undefined,symbolToString=symbolProto$1?symbolProto$1.toString:undefined;function baseToString$1(e){var t;return"string"==typeof e?e:isArray$6(e)?arrayMap$1(e,baseToString$1)+"":isSymbol$1(e)?symbolToString?symbolToString.call(e):"":"0"==(t=e+"")&&1/e==-INFINITY$1?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$2(e){return null==e?"":baseToString(e)}var toString_1=toString$2,isArray$5=isArray_1,isKey=_isKey,stringToPath=_stringToPath,toString$1=toString_1;function castPath$3(e,t){return isArray$5(e)?e:isKey(e,t)?[e]:stringToPath(toString$1(e))}var _castPath=castPath$3,isSymbol=isSymbol_1,INFINITY=1/0;function toKey$2(e){var t;return"string"==typeof e||isSymbol(e)?e:"0"==(t=e+"")&&1/e==-INFINITY?"-0":t}var _toKey=toKey$2,castPath$2=_castPath,toKey$1=_toKey;function baseGet$2(e,t){for(var n=0,i=(t=castPath$2(t,e)).length;null!=e&&n<i;)e=e[toKey$1(t[n++])];return n&&n==i?e:undefined}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get(e,t,n){e=null==e?undefined:baseGet$1(e,t);return e===undefined?n:e}var get_1=get,get$1=getDefaultExportFromCjs(get_1),toString=toString_1,idCounter=0;function uniqueId(e){var t=++idCounter;return toString(e)+t}var uniqueId_1=uniqueId,uniqueId$1=getDefaultExportFromCjs(uniqueId_1),ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,e=t["delete"](e);return this.size=t.size,e}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var n=this.__data__;if(n instanceof ListCache$1){var i=n.__data__;if(!Map$2||i.length<LARGE_ARRAY_SIZE-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(e){e=this.__data__=new ListCache(e);this.size=e.size}Stack$1.prototype.clear=stackClear,Stack$1.prototype["delete"]=stackDelete,Stack$1.prototype.get=stackGet,Stack$1.prototype.has=stackHas,Stack$1.prototype.set=stackSet;var _Stack=Stack$1;function arrayEach$2(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}var _arrayEach=arrayEach$2,getNative$4=_getNative,defineProperty$2=function(){try{var e=getNative$4(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty;function baseAssignValue$2(e,t,n){"__proto__"==t&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _baseAssignValue=baseAssignValue$2,baseAssignValue$1=_baseAssignValue,eq=eq_1,objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function assignValue$2(e,t,n){var i=e[t];hasOwnProperty$6.call(e,t)&&eq(i,n)&&(n!==undefined||t in e)||baseAssignValue$1(e,t,n)}var _assignValue=assignValue$2,assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$5(e,t,n,i){for(var r=!n,o=(n=n||{},-1),a=t.length;++o<a;){var s=t[o],d=i?i(n[s],e[s],s,n,e):undefined;d===undefined&&(d=e[s]),(r?baseAssignValue:assignValue$1)(n,s,d)}return n}var _copyObject=copyObject$5;function baseTimes$1(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var _baseTimes=baseTimes$1,baseGetTag$3=_baseGetTag,isObjectLike$5=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$5(e)&&baseGetTag$3(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$4=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$4(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse,isBufferExports=(isBuffer$2.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,t=n?n.isBuffer:undefined;e.exports=t||stubFalse_1}(isBuffer$2,isBuffer$2.exports),isBuffer$2.exports),MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(e,t){var n=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==n||"symbol"!=n&&reIsUint.test(e))&&-1<e&&e%1==0&&e<t}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$2=_baseGetTag,isLength$1=isLength_1,isObjectLike$3=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$3(e)&&isLength$1(e.length)&&!!typedArrayTags[baseGetTag$2(e)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(t){return function(e){return t(e)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}},_nodeUtilExports=(_nodeUtil.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,i=n&&n.exports===t&&_freeGlobal.process,t=function(){try{var e=n&&n.require&&n.require("util").types;return e?e:i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=t}(_nodeUtil,_nodeUtil.exports),_nodeUtil.exports),baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$4=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray_1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty;function arrayLikeKeys$2(e,t){var n,i=isArray$4(e),r=!i&&isArguments$1(e),o=!i&&!r&&isBuffer$1(e),a=!i&&!r&&!o&&isTypedArray(e),s=i||r||o||a,d=s?baseTimes(e.length,String):[],u=d.length;for(n in e)!t&&!hasOwnProperty$4.call(e,n)||s&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||isIndex(n,u))||d.push(n);return d}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$5=Object.prototype;function isPrototype$3(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$5)}var _isPrototype=isPrototype$3;function overArg$2(t,n){return function(e){return t(n(e))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function baseKeys$1(e){if(!isPrototype$2(e))return nativeKeys(e);var t,n=[];for(t in Object(e))hasOwnProperty$3.call(e,t)&&"constructor"!=t&&n.push(t);return n}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$3(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$3,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$2=isArrayLike_1;function keys$4(e){return(isArrayLike$2(e)?arrayLikeKeys$1:baseKeys)(e)}var keys_1=keys$4,copyObject$4=_copyObject,keys$3=keys_1;function baseAssign$1(e,t){return e&&copyObject$4(t,keys$3(t),e)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var _nativeKeysIn=nativeKeysIn$1,isObject$2=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeysIn$1(e){if(!isObject$2(e))return nativeKeysIn(e);var t,n=isPrototype$1(e),i=[];for(t in e)("constructor"!=t||!n&&hasOwnProperty$2.call(e,t))&&i.push(t);return i}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$1=isArrayLike_1;function keysIn$3(e){return isArrayLike$1(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var keysIn_1=keysIn$3,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(e,t){return e&&copyObject$3(t,keysIn$2(t),e)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}},_cloneBufferExports=(_cloneBuffer.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,i=n?n.allocUnsafe:undefined;e.exports=function(e,t){return t?e.slice():(t=e.length,t=i?i(t):new e.constructor(t),e.copy(t),t)}}(_cloneBuffer,_cloneBuffer.exports),_cloneBuffer.exports);function copyArray$1(e,t){var n=-1,i=e.length;for(t=t||Array(i);++n<i;)t[n]=e[n];return t}var _copyArray=copyArray$1;function arrayFilter$1(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=_arrayFilter,stubArray$1=stubArray_1,objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(t){return null==t?[]:(t=Object(t),arrayFilter(nativeGetSymbols$1(t),function(e){return propertyIsEnumerable.call(t,e)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(e,t){return copyObject$2(e,getSymbols$2(e),t)}var _copySymbols=copySymbols$1;function arrayPush$3(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var _arrayPush=arrayPush$3,overArg=_overArg,getPrototype$3=overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,arrayPush$2=_arrayPush,getPrototype$2=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush$2(t,getSymbols$1(e)),e=getPrototype$2(e);return t}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(e,t){return copyObject$1(e,getSymbolsIn$1(e),t)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$3=isArray_1;function baseGetAllKeys$2(e,t,n){t=t(e);return isArray$3(e)?t:arrayPush$1(t,n(e))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys$1(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$1=keysIn_1;function getAllKeysIn$2(e){return baseGetAllKeys(e,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$2,getNative$3=_getNative,root$4=_root,DataView$2=getNative$3(root$4,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$3=_root,Promise$2=getNative$2(root$3,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$2=_root,Set$2=getNative$1(root$2,"Set"),_Set=Set$2,getNative=_getNative,root$1=_root,WeakMap$2=getNative(root$1,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag$1=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$3=baseGetTag$1,_getTag=((DataView$1&&getTag$3(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$3(new Map$1)!=mapTag$3||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$1&&getTag$3(new Set$1)!=setTag$3||WeakMap$1&&getTag$3(new WeakMap$1)!=weakMapTag$1)&&(getTag$3=function(e){var t=baseGetTag$1(e),e=t==objectTag$2?e.constructor:undefined,e=e?toSource(e):"";if(e)switch(e){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return t}),getTag$3),objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function initCloneArray$1(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&hasOwnProperty$1.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _initCloneArray=initCloneArray$1,root=_root,Uint8Array$2=root.Uint8Array,_Uint8Array=Uint8Array$2,Uint8Array$1=_Uint8Array;function cloneArrayBuffer$3(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1(t).set(new Uint8Array$1(e)),t}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneDataView$1(e,t){t=t?cloneArrayBuffer$2(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var _cloneRegExp=cloneRegExp$1,Symbol$2=_Symbol,symbolProto=Symbol$2?Symbol$2.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;function cloneSymbol$1(e){return symbolValueOf?Object(symbolValueOf.call(e)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$1(e,t){t=t?cloneArrayBuffer$1(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray=_cloneTypedArray,boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(e,t,n){var i=e.constructor;switch(t){case arrayBufferTag$1:return cloneArrayBuffer(e);case boolTag$1:case dateTag$1:return new i(+e);case dataViewTag$1:return cloneDataView(e,n);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,n);case mapTag$2:return new i;case numberTag$1:case stringTag$1:return new i(e);case regexpTag$1:return cloneRegExp(e);case setTag$2:return new i;case symbolTag$1:return cloneSymbol(e)}}var _initCloneByTag=initCloneByTag$1,isObject$1=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function t(){}return function(e){if(!isObject$1(e))return{};if(objectCreate)return objectCreate(e);t.prototype=e;e=new t;return t.prototype=undefined,e}}(),_baseCreate=baseCreate$1,baseCreate=_baseCreate,getPrototype$1=_getPrototype,isPrototype=_isPrototype;function initCloneObject$1(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:baseCreate(getPrototype$1(e))}var _initCloneObject=initCloneObject$1,getTag$2=_getTag,isObjectLike$2=isObjectLike_1,mapTag$1="[object Map]";function baseIsMap$1(e){return isObjectLike$2(e)&&getTag$2(e)==mapTag$1}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$1=_getTag,isObjectLike$1=isObjectLike_1,setTag$1="[object Set]";function baseIsSet$1(e){return isObjectLike$1(e)&&getTag$1(e)==setTag$1}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack=_Stack,arrayEach$1=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn$1=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$2=isArray_1,isBuffer=isBufferExports,isMap=isMap_1,isObject=isObject_1,isSet=isSet_1,keys$1=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};function baseClone$1(n,i,r,e,t,o){var a,s=i&CLONE_DEEP_FLAG$1,d=i&CLONE_FLAT_FLAG$1,u=i&CLONE_SYMBOLS_FLAG$1;if((a=r?t?r(n,e,t,o):r(n):a)===undefined){if(!isObject(n))return n;e=isArray$2(n);if(e){if(a=initCloneArray(n),!s)return copyArray(n,a)}else{var c=getTag(n),l=c==funcTag||c==genTag;if(isBuffer(n))return cloneBuffer(n,s);if(c==objectTag$1||c==argsTag||l&&!t){if(a=d||l?{}:initCloneObject(n),!s)return d?copySymbolsIn(n,baseAssignIn(a,n)):copySymbols(n,baseAssign(a,n))}else{if(!cloneableTags[c])return t?n:{};a=initCloneByTag(n,c,s)}}l=(o=o||new Stack).get(n);if(l)return l;o.set(n,a),isSet(n)?n.forEach(function(e){a.add(baseClone$1(e,i,r,e,n,o))}):isMap(n)&&n.forEach(function(e,t){a.set(t,baseClone$1(e,i,r,t,n,o))});var p=e?undefined:(u?d?getAllKeysIn$1:getAllKeys:d?keysIn:keys$1)(n);arrayEach$1(p||n,function(e,t){p&&(e=n[t=e]),assignValue(a,t,baseClone$1(e,i,r,t,n,o))})}return a}cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag$1]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var _baseClone=baseClone$1;function last$1(e){var t=null==e?0:e.length;return t?e[t-1]:undefined}var last_1=last$1;function baseSlice$1(e,t,n){for(var i=-1,r=e.length,o=((n=r<n?r:n)<0&&(n+=r),r=n<(t=t<0?r<-t?0:r+t:t)?0:n-t>>>0,t>>>=0,Array(r));++i<r;)o[i]=e[i+t];return o}var _baseSlice=baseSlice$1,baseGet=_baseGet,baseSlice=_baseSlice;function parent$1(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}var _parent=parent$1,castPath$1=_castPath,last=last_1,parent=_parent,toKey=_toKey;function baseUnset$1(e,t){return t=castPath$1(t,e),null==(e=parent(e,t))||delete e[toKey(last(t))]}var _baseUnset=baseUnset$1,baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(e){return!(!isObjectLike(e)||baseGetTag(e)!=objectTag)&&(null===(e=getPrototype(e))||"function"==typeof(e=hasOwnProperty.call(e,"constructor")&&e.constructor)&&e instanceof e&&funcToString.call(e)==objectCtorString)}var isPlainObject_1=isPlainObject$1,isPlainObject=isPlainObject_1;function customOmitClone$1(e){return isPlainObject(e)?undefined:e}var _customOmitClone=customOmitClone$1,Symbol$1=_Symbol,isArguments=isArguments_1,isArray$1=isArray_1,spreadableSymbol=Symbol$1?Symbol$1.isConcatSpreadable:undefined;function isFlattenable$1(e){return isArray$1(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$1(e,t,n,i,r){var o=-1,a=e.length;for(n=n||isFlattenable,r=r||[];++o<a;){var s=e[o];0<t&&n(s)?1<t?baseFlatten$1(s,t-1,n,i,r):arrayPush(r,s):i||(r[r.length]=s)}return r}var _baseFlatten=baseFlatten$1,baseFlatten=_baseFlatten;function flatten$1(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}var flatten_1=flatten$1;function apply$1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _apply=apply$1,apply=_apply,nativeMax=Math.max;function overRest$1(o,a,s){return a=nativeMax(a===undefined?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=nativeMax(e.length-a,0),i=Array(n);++t<n;)i[t]=e[a+t];for(var t=-1,r=Array(a+1);++t<a;)r[t]=e[t];return r[a]=s(i),apply(o,this,r)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1;function identity$2(e){return e}var identity_1=identity$2,constant=constant_1,defineProperty=_defineProperty,identity$1=identity_1,baseSetToString$1=defineProperty?function(e,t){return defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity$1,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(n){var i=0,r=0;return function(){var e=nativeNow(),t=HOT_SPAN-(e-r);if(r=e,0<t){if(++i>=HOT_COUNT)return arguments[0]}else i=0;return n.apply(undefined,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$1=shortOut(baseSetToString),_setToString=setToString$1,flatten=flatten_1,overRest=_overRest,setToString=_setToString;function flatRest$1(e){return setToString(overRest(e,undefined,flatten),e+"")}var _flatRest=flatRest$1,arrayMap=_arrayMap,baseClone=_baseClone,baseUnset=_baseUnset,castPath=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest=_flatRest,getAllKeysIn=_getAllKeysIn,CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest(function(t,e){var n={};if(null!=t)for(var i=!1,r=(e=arrayMap(e,function(e){return e=castPath(e,t),i=i||1<e.length,e}),copyObject(t,getAllKeysIn(t),n),i&&(n=baseClone(n,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone)),e.length);r--;)baseUnset(n,e[r]);return n}),omit_1=omit,omit$1=getDefaultExportFromCjs(omit_1);function doesExist(e){return!(null==e)}const MESSAGE_PROMISE="promise";function Message(e,t,n){this.name=e,this.type=t,this.data=n}Message.prototype.toString=function(){return`Message.${this.type} - `+this.name};const createMessage=(e,t,n)=>{e=new Message(e,t,n);return t===MESSAGE_PROMISE&&(e.requestId=uniqueId$1()),e},fromEvent=e=>{try{var{name:t,type:n,isResponse:i,data:r,requestId:o,sender:a}=e.data||{},s=new Message(t,n,doesExist(r)?JSON.parse(r):undefined);return s.requestId=o,s.sender=a,s.destination=e.source,s.isResponse=i,s}catch(err){return!1}},serialize=e=>{var t=omit$1(e,["destination","toString","data"]);return t.data=JSON.stringify(e.data,(e,t)=>"function"==typeof t||t instanceof RegExp?t.toString?t.toString():undefined:t),t},asResponse=e=>(e.isResponse=!0,e),pipe=(...e)=>r=>{return[].concat(e).reduce((e,t,n,i)=>{e=t(e,r);return e||i.splice(n,i.length-n),e},r)},tap=n=>(e,...t)=>(n(e,...t),e);function createBaseFor$1(d){return function(e,t,n){for(var i=-1,r=Object(e),o=n(e),a=o.length;a--;){var s=o[d?a:++i];if(!1===t(r[s],s,r))break}return e}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike=isArrayLike_1;function createBaseEach$1(o,a){return function(e,t){if(null!=e){if(!isArrayLike(e))return o(e,t);for(var n=e.length,i=a?n:-1,r=Object(e);(a?i--:++i<n)&&!1!==t(r[i],i,r););}return e}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,identity=identity_1;function castFunction$1(e){return"function"==typeof e?e:identity}var _castFunction=castFunction$1,arrayEach=_arrayEach,baseEach=_baseEach,castFunction=_castFunction,isArray=isArray_1;function forEach(e,t){return(isArray(e)?arrayEach:baseEach)(e,castFunction(t))}var forEach_1=forEach,each=forEach_1,each$1=getDefaultExportFromCjs(each);const dead="dead_connection",disconnected="disconnected",connected="connected",isConnected=e=>e<1e4,isDisconnected=e=>1e4<e,isDead=e=>3e4<e,state$1={lastMessageReceivedAt:0,currentConnectionQuality:disconnected,changeCallbacks:{},evalCallbacks:{}},triggerConnectionStatusChanged=()=>{each$1(state$1.changeCallbacks,e=>{e(state$1.currentConnectionQuality)})},triggerEval=()=>{each$1(state$1.evalCallbacks,e=>{e(state$1.currentConnectionQuality)})},setConnectionStatus=e=>{e!==state$1.currentConnectionQuality&&(state$1.currentConnectionQuality=e,triggerConnectionStatusChanged())},evaluateConnectionQuality=()=>{var e;0===state$1.lastMessageReceivedAt?setConnectionStatus(disconnected):(e=Date.now()-state$1.lastMessageReceivedAt,isConnected(e)?setConnectionStatus(connected):isDisconnected(e)&&(isDead(e)?setConnectionStatus(dead):setConnectionStatus(disconnected)),triggerEval())};let stopFn;const start=(e=0)=>{const t=setInterval(evaluateConnectionQuality,100);stopFn=()=>clearInterval(t)},stop=()=>{stopFn&&stopFn(),resetMonitor()};let _listenerId=0;const onStatusEval=e=>{if(isFunction$3(e)){const t=_listenerId++;return state$1.evalCallbacks[t]=e,()=>{delete state$1.evalCallbacks[t]}}},markTime=(e=Date.now())=>{state$1.lastMessageReceivedAt=e},resetMonitor=()=>{state$1.currentConnectionQuality=disconnected,state$1.lastMessageReceivedAt=0},state={appName:undefined,connectionName:undefined,frameId:undefined,pendingRequests:{},topics:{},senderIds:{},originProvider:undefined,destinationProvider:undefined},getListener=()=>""+state.appName+state.connectionName+`(${state.frameId})`,_send=e=>{e.sender||(e.sender=getListener());var t=e.destination||state.destinationProvider(),n=serialize(e),i=getPortForSender(e.sender),r=hasSenderTriedToUpgradeToMessageChannel(e.sender);i||r?i?i.postMessage(n):t.postMessage(n,state.originProvider()):(r=new MessageChannel,addPort(r.port1,e.sender),t.postMessage(n,state.originProvider(),[r.port2]))},promise=(r,o,a=1e3)=>new Promise$4((e,t)=>{const n=createMessage(r,MESSAGE_PROMISE,o),i=setTimeout$1(()=>{t(r+" timeout"),clearPendingRequest(n),downgradeToPostMessage(n)},a);addPendingRequest(n,()=>clearTimeout(i),e,t),_send(n)}),addSenderId=e=>{state.senderIds[e]||(state.senderIds[e]={port:undefined,hasTriedToUpgradeToMessageChannel:!1})},getSenderInfo=e=>(state.senderIds[e]||addSenderId(e),state.senderIds[e]),getPortForSender=e=>getSenderInfo(e).port,hasSenderTriedToUpgradeToMessageChannel=e=>getSenderInfo(e).hasTriedToUpgradeToMessageChannel,addPendingRequest=(e,t,n,i)=>{state.pendingRequests[e.requestId]={message:e,clearTimeoutfn:t,resolve:n,reject:i}},resolveRequest=e=>{var t=state.pendingRequests[e.requestId];return t&&(t.resolve(e.data),clearPendingRequest(e)),e},clearPendingRequest=e=>{var t=e["requestId"];return state.pendingRequests[t].clearTimeoutfn(),delete state.pendingRequests[t],e},updateSubscriptions=t=>{var e=state.topics[t.name];return e&&e.forEach(e=>e(t.data)),t},PING_MSG="message::ping",sendPing=()=>{promise(PING_MSG)["catch"](()=>{console.log("message::ping timedout")})},dispatchMessage=t=>{var e;return t&&!t.isResponse&&(t.name===PING_MSG?_send(asResponse(t)):(e=state.routeHandlerLookup(t.name))?e(t,e=>{t.data=e,_send(asResponse(t))}):console.log(getListener(),"No route handler for "+t.name,t)),t},commonFns=pipe(resolveRequest,updateSubscriptions,dispatchMessage,tap(()=>{markTime()})),filterWrongOrigin=e=>("*"===state.originProvider()||e.origin===state.originProvider())&&e,filterWrongSender=e=>{var t=get$1(e,"data.sender");return!(!t||"string"!=typeof t||!t.includes(state.appName))&&e},addPort=(e,t)=>{t=getSenderInfo(t);t.port=e,t.hasTriedToUpgradeToMessageChannel=!0,t.port.onmessage=pipe(fromEvent,commonFns)},removePort=e=>{e=getSenderInfo(e);e.port=undefined,e.hasTriedToUpgradeToMessageChannel=!1},upgradeToChannel=(e,t)=>{return!getSenderInfo(e.sender).hasTriedToUpgradeToMessageChannel&&t.ports&&t.ports[0]&&addPort(t.ports[0],e.sender),e},downgradeToPostMessage=e=>{removePort(e.sender)};let _stopListening=()=>{};const stopListening=()=>{_stopListening(),_stopListening=()=>{},stop()},notConnectedListener=throttle$1(e=>{"connected"!==e&&state.usePingAutoReconnect&&sendPing()},1e3),startListening=(e,t,n,i,r,o=!1,a)=>{if(window.addEventListener){state.appName=e,state.frameId=t,state.routeHandlerLookup=n,state.usePingAutoReconnect=o,state.connectionName=a||"",state.originProvider=i||(()=>window.location.origin||"*"),state.destinationProvider=r||(()=>window.parent||window.top),start(),onStatusEval(notConnectedListener);const s=pipe(filterWrongOrigin,filterWrongSender,fromEvent,upgradeToChannel,commonFns);window.addEventListener("message",s),_stopListening=()=>window.removeEventListener("message",s)}};var VocPortal=function(){var r,p;return{name:"VocPortal",initialize:function(e,t){r=e;e=(p=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=r.attachEvent(window,"resize",h),startListening("VocPortal",e,n,function(){return"*"})},routeHandlerLookup:n,queryMessageHandler:t,resizeMessageHandler:i,teardown:function(){this.removeResizeEvent&&this.removeResizeEvent();stopListening()}};function n(e){switch(e){case"pendo-voc::query":return t;case"pendo-voc::resize":return i;default:return undefined}}function h(){var e=document.getElementById("pendo-resource-center-container"),e=r.dom(e);p.sizeElements(e)}function t(e,t){var n=r.getSerializedMetadata(),i=!!r.designer||p.store.getters["preview/isInPreviewMode"]();t({apiKey:r.apiKey,url:r.url.externalizeURL(),visitor:n.visitor,account:n.account,parentAccount:n.parentAccount,sandboxMode:i})}function i(e){try{var t,n,i,r=e.data.width,o=r.value,a=r.unit,s=r.isImportant,d=e.data.height,u=d.value,c=d.unit,l=d.isImportant;"number"==typeof o&&"number"==typeof u&&((t=["px","%","vh","vw"]).includes(a)&&t.includes(c))&&(n="".concat(o).concat(a).concat(s?" !important":""),i="".concat(u).concat(c).concat(l?" !important":""),document.getElementById("pendo-resource-center-container").appendChild(document.createElement("style")).innerHTML='#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {\n width: '.concat(n,";\n height: ").concat(i,";\n ._pendo-step-container-size {\n width: ").concat(n,";\n height: ").concat(i,";\n }\n }"),h())}catch(err){p.log.error("Error while adjusting RC module",err)}}}();function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}var Feedback=function(){var a,s,i="feedback_notification_count",d="",u="",c="",r="",o=!1,l="",p=!1,h="feedback_ping_sent",G=36e5,f={feedbackIframe:"feedback-widget_iframe",feedbackTrigger:"feedback-trigger",feedbackWidget:"feedback-widget",feedbackOverlay:"feedback-overlay",feedbackTriggerButton:"feedback-trigger-button",feedbackStyles:"pendo-feedback-styles",feedbackFrameStyles:"pendo-feedback-visible-buttons-styles"};return{name:"Feedback",initialize:function(e,t){s=t;var n={ping:I,init:F,initialized:j,loginAndRedirect:A,openFeedback:k,initializeFeedbackOnce:S,isFeedbackLoaded:U,convertPendoToFeedbackOptions:P,isUnsupportedIE:(a=e)._.partial(isUnsupportedIE,t),removeFeedbackWidget:z};return e.feedback=n,e.getFeedbackSettings=Z,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i),t.agentStorage.registry.addLocal(h),{validate:g}},teardown:function(){z(),s.Events.identify.off(m),s.Events.metadata.off(m),s.Events.ready.off(v),delete a.feedback,delete a.getFeedbackSettings},validate:g};function g(e,t){t=isFeedbackOn(t);return t&&isUnsupportedIE(e)?(console.warn("The current version of IE is not supported by Pendo Feedback"),!1):t}function t(){var e=L();p?I(P(e)):!isFeedbackOn(s)||s.ConfigReader.get("disableFeedbackAutoInit")||s.ConfigReader.get("disableFeedback",!1)||a._.isEmpty(e)||F(e,s.ConfigReader.get("feedbackSettings"))["catch"](a._.noop)}function m(e){e=a._.get(e,"data.0.visitor_id")||a._.get(e,"data.0.options.visitor.id");a.isAnonymousVisitor(e)||t()}function v(){t()}function y(){return c+"/html/widget/notLoaded.html"}function n(e){return e=e||P(L()),s.agentStorage.read(h)===b(e)}function b(e){return JSON.stringify(e)}function I(e){if(!n(e)){s.agentStorage.write(h,b(e),G);e=w(e);if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/pendo_ping",e).then(function(e){e=e.data.notifications;s.agentStorage.write(i,e),C()})["catch"](function(){s.agentStorage.clear(h)})}return s.q.resolve()}function w(e){return e=e||P(L()),{data:JSON.stringify(e)}}function C(){var e,t=a.dom("#feedback-trigger-notification");0!==t.length&&(e=s.agentStorage.read(i)||0,0<parseInt(e,10)?a._.each(t,function(e){a.dom(e).css({visibility:"visible"})}):a._.each(t,function(e){a.dom(e).css({visibility:"hidden"})}))}function S(){return p&&n()?s.q.resolve():F(L(),s.ConfigReader.get("feedbackSettings"))}function A(e){return S().then(function(){if(a._.isUndefined(e)&&(e={}),"A"===a._.get(e,"anchor.nodeName","").toUpperCase())return t=window.open(y(),Math.random().toString(36).substring(7)),_().then(function(e){t.location=e}),!1;var t;_().then(function(e){window.location.href=e})},function(){})}function T(e){var t=document.createElement("a");return t.href=e,t.host}function _(){var e=w();if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/token",e).then(function(e){var t;return t=e.data.login_url,r=T(t),e.data.login_url})}function E(){return document.getElementById(f.feedbackWidget)}function x(){return document.getElementById(f.feedbackIframe)}function R(){var e=x();return e||(W(),e=x()),e}function k(e){var t,n;$()&&(e&&e.preventDefault&&e.preventDefault(),(t=R()).src&&t.src!==y()||_().then(function(e){t.src=e+"&inWidget=true"}),(e=a.dom("#".concat(f.feedbackWidget)))&&((n=a.dom(document.createElement("div"))).attr("id","feedback-overlay"),n.css({position:"fixed",top:"0",right:"0",bottom:"0",left:"0",background:"rgba(0, 0, 0, 0.4)","z-index":"9000",opacity:"0",animation:"pendoFeedbackFadeIn 0.5s 0s 1 alternate both","-webkit-animation":"pendoFeedbackFadeIn 0.5s 0s 1 alternate both"}),n.appendTo(e.getParent())),a.dom.addClass(E(),"visible"),N("user.widget.opened"))}function O(){var e,t;e=document.getElementById(f.feedbackWidget),t=document.getElementById(f.feedbackOverlay),e&&t&&(e=document.getElementById(f.feedbackOverlay)).parentNode.removeChild(e),a.dom.removeClass(E(),"visible"),N("user.widget.closed")}function N(e){var t=w();t.event=e,a.ajax.postJSON(d+"/analytics",t)}function D(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?T(t)===r:T(t)===T(c)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":O();break;case"open-receptive":A();break;case"update-receptive-notification-count":s.agentStorage.write(i,n.count),C();break;case"handle-logout":R().src=y(),O();break;case"loaded-receptive-widget":o=!0}}},!1)}function M(e,t){var n;a.dom("#".concat(e))[0]||((n=a.dom(document.createElement("style"))).attr("id",e),n.html(t),n.appendTo(document.head))}function B(e){var t,n,i=a._.extend(e,{triggerColor:"#"+e.triggerColor,triggerPosition:e.triggerPosition.toLowerCase()}),r=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(f.feedbackIframe);t&&(t.src=y())}),function(e){e=e.triggerPosition.split("_");return{horizontalPosition:e[1],verticalPosition:e[0]}}(i));M(f.feedbackStyles,(n="left"===(n=r.horizontalPosition)?(t="@-webkit-keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-left.visible{width:100%}}"):(t="@-webkit-keyframes pendoFeedbackSlideFrom-right{from{transform:translate(-460px,0)}to{transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-right{from{opacity:0;transform:translate(460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-right.visible{width:100%;right:2%}}"),"@media only screen and (max-device-width:1112px){#feedback-widget{overflow-y:scroll}}@-webkit-keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@-webkit-keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}@keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}"+t+"@-webkit-keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@-webkit-keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}@keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}"+n+"#feedback-trigger button:focus,#feedback-trigger button:hover{box-shadow:0 -5px 20px rgba(0,0,0,.19);outline:0;background:#3e566f}")),e.customTrigger||(t=i,n=r,M("pendo-feedback-trigger-styles","\n #feedback-trigger button:hover {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n #feedback-trigger button:focus {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n "),e=function(e){var t=function(e){return"left"===e.horizontalPosition?{"transform-origin":"center left",left:"23px",animation:"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards"}:{right:"0px",animation:"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards"}}(e),e=function(e){switch(e.verticalPosition){case"top":return{top:" 10%"};case"middle":return{top:" 45%"};case"bottom":return{bottom:" 20%"}}}(e),t=a._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=a.dom(document.createElement("div"));return e.attr("id",f.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=a.dom(document.createElement("span"));return e.attr("id","feedback-trigger-notification"),e.css({"background-color":"#D85039",color:"#fff","border-radius":"50%",height:"17px",width:"17px",position:"absolute",right:"-6px",top:"-8px",visibility:"hidden","z-index":"1",animation:"pendoFeedbackPulse","animation-fill-mode":"both","animation-duration":"1s","animation-delay":"1s","animation-iteration-count":"1"}),e}(),t=function(e,t){t="left"===t.horizontalPosition?"0 0 5px 5px":"3px 3px 0 0";var t={border:"none",padding:"11px 18px 14px 18px","background-color":e.triggerColor,"border-radius":t,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},n=a.dom(document.createElement("button"));return n.attr("id",f.feedbackTriggerButton),n.css(t),n.text(e.triggerText),n}(t,n),e.append(i),e.append(t),e.appendTo(a.dom.getBody()),s.attachEvent(t[0],"click",k)),W(r.horizontalPosition)}function W(e){t="\n .buttonIs-".concat(t="left"===(t=e)?"left":"right",".visible {\n ").concat(t,": 0 !important;\n width: 470px !important;\n animation-direction: alternate-reverse !important;\n animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n -webkit-animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n z-index: 9002 !important;\n }\n "),M(f.feedbackFrameStyles,t),t=e,(e=a.dom(document.createElement("div"))).css({height:"100%",position:"fixed",right:"0",top:"0",width:"0","background-color":"#f7f7f7",transition:"animation 0.4s ease-in-out","box-shadow":"0 5px 40px rgba(0,0,0,.46)",display:"block !important","-webkit-overflow-scrolling":"touch","overflow-y":"hidden"}),e.attr("id",f.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-".concat(t));var t=e;t.append(((e=a.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",f.feedbackIframe),e.attr("src",y()),e)),t.appendTo(a.dom.getBody()),D()}function U(){return o}function L(){var e=s.ConfigReader.getLocalConfig();return a._.isObject(e)||(e={}),a._.isObject(e.visitor)||(e.visitor={}),a._.isObject(e.account)||(e.account={}),e}function $(e){e=e||L();if(!isUnsupportedIE(a)&&u&&d&&c&&l)if(a._.get(e.visitor,"id")){if(!a.isAnonymousVisitor(e.visitor.id)){if(a._.get(e.account,"id"))return 1;a.log("The current visitor is not associated with an account.")}}else a.log("Not valid visitor id")}function F(e,t){if(u=t.vendorId,d=t.apiUrl,c=t.siteUrl,l=t.productId,p)return s.q.reject();if(!$(e))return s.q.reject();var n,i,e=P(e);try{n=a.url.get(),i="fdbkDst";var r=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(r&&r.startsWith("case"))return p=!0,void _().then(function(e){window.location.href=e+"&fdbkDst="+r})}catch(o){p=!1,a.log(o,"unhandled error while checking feedback destination")}try{return p=!0,"WIDGET"===t.type&&B(t),C(),I(e)}catch(o){return p=!1,a.log(o,"unhandled error while initializing feedback"),s.q.reject(o)}}function P(e){var t,n,i=s.agent.getJwtInfoCopy();return a._.isEmpty(i)?((t={}).user=a._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),a._.extend(t.user,{allowed_products:[{id:l}]}),t.account=a._.pick(e.account,"id","name","monthly_value","is_paying","tags"),a._.extend(t,{vendor:{id:u}}),a._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"noemail+"+a.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io")),null!=t.user.full_name&&""!=t.user.full_name||(t.user.full_name=(e=t,a._.isUndefined(e.user.firstName)&&a._.isUndefined(e.user.lastName)?a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"No Name Provided"+a.randomString(32):"No Name Provided"+e.user.id:(n=[],a._.isUndefined(e.user.firstName)||n.push(e.user.firstName),a._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),a._.extend(e,{vendor:{id:u}}),a._.extend(e,{allowed_products:[{id:l}]}),e)}function j(){return p}function z(){a._.each(a._.values(f),function(e){a.dom("#"+e).remove()}),l=r=c=u=d="",p=o=!1}function Z(){return JSON.parse(JSON.stringify(s.ConfigReader.get("feedbackSettings",{})))}}(),replay=errorLogger(new SessionRecorder(record,WorkerFactory));export{Feedback,GuideMarkdown,replay as Replay,TextCapture,VocPortal,loadAgent};
4
+ function URLPolyfillFactory(n){return function URL(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory),__defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),_a,__defProp$1=Object.defineProperty,__defNormalProp$1=(e,t,n)=>t in e?__defProp$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField$1=(e,t,n)=>__defNormalProp$1(e,"symbol"!=typeof t?t+"":t,n),NodeType$2=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(NodeType$2||{});const testableAccessors$1={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods$1={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype$1={},isAngularZonePresent$1=()=>!!globalThis.Zone;function getUntaintedPrototype$1(e){if(untaintedBasePrototype$1[e])return untaintedBasePrototype$1[e];var t=globalThis[e];const n=t.prototype;var i=e in testableAccessors$1?testableAccessors$1[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in testableMethods$1?testableMethods$1[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r&&!isAngularZonePresent$1())return untaintedBasePrototype$1[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype$1[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache$1={};function getUntaintedAccessor$1(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache$1[i]?untaintedAccessorCache$1[i].call(t):(e=getUntaintedPrototype$1(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache$1[i]=e).call(t):t[n])}const untaintedMethodCache$1={};function getUntaintedMethod$1(e,t,n){var i=e+"."+String(n);return untaintedMethodCache$1[i]?untaintedMethodCache$1[i].bind(t):"function"!=typeof(e=getUntaintedPrototype$1(e)[n])?t[n]:(untaintedMethodCache$1[i]=e).bind(t)}function childNodes$1(e){return getUntaintedAccessor$1("Node",e,"childNodes")}function parentNode$1(e){return getUntaintedAccessor$1("Node",e,"parentNode")}function parentElement$1(e){return getUntaintedAccessor$1("Node",e,"parentElement")}function textContent$1(e){return getUntaintedAccessor$1("Node",e,"textContent")}function contains$1(e,t){return getUntaintedMethod$1("Node",e,"contains")(t)}function getRootNode$1(e){return getUntaintedMethod$1("Node",e,"getRootNode")()}function host$1(e){return e&&"host"in e?getUntaintedAccessor$1("ShadowRoot",e,"host"):null}function styleSheets$1(e){return e.styleSheets}function shadowRoot$1(e){return e&&"shadowRoot"in e?getUntaintedAccessor$1("Element",e,"shadowRoot"):null}function querySelector$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelector")(t)}function querySelectorAll$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelectorAll")(t)}function mutationObserverCtor$1(){return getUntaintedPrototype$1("MutationObserver").constructor}const index$1={childNodes:childNodes$1,parentNode:parentNode$1,parentElement:parentElement$1,textContent:textContent$1,contains:contains$1,getRootNode:getRootNode$1,host:host$1,styleSheets:styleSheets$1,shadowRoot:shadowRoot$1,querySelector:querySelector$1,querySelectorAll:querySelectorAll$1,mutationObserver:mutationObserverCtor$1};function isElement(e){return e.nodeType===e.ELEMENT_NODE}function isShadowRoot(e){var t=e&&"host"in e&&"mode"in e&&index$1.host(e)||null;return Boolean(t&&"shadowRoot"in t&&index$1.shadowRoot(t)===e)}function isNativeShadowDom(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function getNative$1$1(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}const nativeSetTimeout="undefined"!=typeof window?getNative$1$1("setTimeout").bind(window):global.setTimeout;function fixBrowserCompatibilityIssuesInCSS(e){return e=e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")?e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):e}function escapeImportStatement(e){var t=e["cssText"];return t.split('"').length<3?t:(t=["@import",`url(${JSON.stringify(e.href)})`],""===e.layerName?t.push("layer"):e.layerName&&t.push(`layer(${e.layerName})`),e.supportsText&&t.push(`supports(${e.supportsText})`),e.media.length&&t.push(e.media.mediaText),t.join(" ")+";")}function stringifyStylesheet(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;return!t&&e.ownerNode&&e.ownerNode.ownerDocument&&(t=e.ownerNode.ownerDocument.location.href),fixBrowserCompatibilityIssuesInCSS(Array.from(n,e=>stringifyRule(e,t)).join(""))}catch(t){return null}}function stringifyRule(t,n){if(isCSSImportRule(t)){let e;try{e=stringifyStylesheet(t.styleSheet)||escapeImportStatement(t)}catch(i){e=t.cssText}return t.styleSheet.href?absolutifyURLs(e,t.styleSheet.href):e}{let e=t.cssText;return isCSSStyleRule(t)&&(e=replaceChromeGridTemplateAreas(t),t.selectorText.includes(":"))&&(e=fixSafariColons(e)),n?absolutifyURLs(e,n):e}}function replaceChromeGridTemplateAreas(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}function fixSafariColons(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function isCSSImportRule(e){return"styleSheet"in e}function isCSSStyleRule(e){return"selectorText"in e}class Mirror{constructor(){__publicField$1(this,"idNodeMap",new Map),__publicField$1(this,"nodeMetaMap",new WeakMap)}getId(e){return e?(null==(e=this.getMeta(e))?void 0:e.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap["delete"](t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function createMirror$2(){return new Mirror}function maskInputValue({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&toLowerCase(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function toLowerCase(e){return e.toLowerCase()}const ORIGINAL_ATTRIBUTE_NAME="__rrweb_original__";function is2DCanvasBlank(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=ORIGINAL_ATTRIBUTE_NAME in r?r[ORIGINAL_ATTRIBUTE_NAME]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return!1}return!0}function getInputType(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?toLowerCase(t):null}function extractFileExtension(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}function extractOrigin(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}const URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,URL_PROTOCOL_MATCH=/^(?:[a-z+]+:)?\/\//i,URL_WWW_MATCH=/^www\..*/i,DATA_URI=/^(data:)([^,]*),(.*)/i;function absolutifyURLs(e,d){return(e||"").replace(URL_IN_CSS_REF,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(URL_PROTOCOL_MATCH.test(n)||URL_WWW_MATCH.test(n))return`url(${r}${n}${r})`;if(DATA_URI.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${extractOrigin(d)+n}${r})`;var a=d.split("/"),o=n.split("/");a.pop();for(const s of o)"."!==s&&(".."===s?a.pop():a.push(s));return`url(${r}${a.join("/")}${r})`})}let _id=1;const tagNameRegex=new RegExp("[^a-z0-9-_:]"),IGNORED_NODE=-2;function genId(){return _id++}function getValidTagName$1(e){return e instanceof HTMLFormElement?"form":(e=toLowerCase(e.tagName),tagNameRegex.test(e)?"div":e)}let canvasService,canvasCtx;const SRCSET_NOT_SPACES=/^[^ \t\n\r\u000c]+/,SRCSET_COMMAS_OR_SPACES=/^[, \t\n\r\u000c]+/;function getAbsoluteSrcsetString(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(SRCSET_COMMAS_OR_SPACES),!(o>=r.length);){let n=e(SRCSET_NOT_SPACES);if(","===n.slice(-1))n=absoluteToDoc(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=absoluteToDoc(i,n),!1);for(;;){var s=r.charAt(o);if(""===s){a.push((n+e).trim());break}if(t)")"===s&&(t=!1);else{if(","===s){o+=1,a.push((n+e).trim());break}"("===s&&(t=!0)}e+=s,o+=1}}}return a.join(", ")}const cachedDocument=new WeakMap;function absoluteToDoc(e,t){return t&&""!==t.trim()?getHref(e,t):t}function isSVGElement(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function getHref(e,t){let n=cachedDocument.get(e);if(n||(n=e.createElement("a"),cachedDocument.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function transformAttribute(e,t,n,i){return i&&("src"!==n&&("href"!==n||"use"===t&&"#"===i[0])&&("xlink:href"!==n||"#"===i[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?getAbsoluteSrcsetString(e,i):"style"===n?absolutifyURLs(i,getHref(e)):"object"===t&&"data"===n?absoluteToDoc(e,i):i:absoluteToDoc(e,i))}function ignoreAttribute(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function _isBlockedElement(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}function classMatchesRegex(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&classMatchesRegex(index$1.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&classMatchesRegex(index$1.parentNode(t),n,e)}function needMaskingText(e,t,n,i){let r;if(isElement(e)){if(r=e,"*"===n)return!0;if(!index$1.childNodes(r).length)return!1}else{if(null===index$1.parentElement(e))return!1;r=index$1.parentElement(e)}try{if("string"==typeof t){if(i){if(r.closest("."+t))return!0}else if(r.classList.contains(t))return!0}else if(classMatchesRegex(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function onceIframeLoaded(n,i,r){var o=n.contentWindow;if(o){let e=!1,t;try{t=o.document.readyState}catch(a){return}if("complete"!==t){const s=nativeSetTimeout(()=>{e||(i(),e=!0)},r);void n.addEventListener("load",()=>{clearTimeout(s),e=!0,i()})}else{r="about:blank";if((n.src===r||n.src!==r&&o.location.href!==r)&&"complete"===t)return nativeSetTimeout(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}function onceStylesheetLoaded(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=nativeSetTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}function serializeNode(e,t){var{doc:n,mirror:t,blockClass:i,blockSelector:r,needsMask:o,inlineStylesheet:a,maskInputOptions:s={},maskTextFn:d,maskInputFn:u,dataURLOptions:c={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1}=t,g=getRootId(n,t);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:NodeType$2.Document,childNodes:[],compatMode:e.compatMode}:{type:NodeType$2.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:NodeType$2.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return serializeElementNode(e,{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:a,maskInputOptions:s,maskInputFn:u,dataURLOptions:c,inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f,rootId:g,needsMask:o});case e.TEXT_NODE:return serializeTextNode(e,{doc:n,needsMask:o,maskTextFn:d,maskInputOptions:s,maskInputFn:u,rootId:g});case e.CDATA_SECTION_NODE:return{type:NodeType$2.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:NodeType$2.Comment,textContent:index$1.textContent(e)||"",rootId:g};default:return!1}}function getRootId(e,t){return!t.hasNode(e)||1===(e=t.getId(e))?void 0:e}function serializeTextNode(e,t){var n,{needsMask:i,maskTextFn:r,rootId:o,maskInputOptions:a,maskInputFn:s}=t,d=index$1.parentNode(e),u=d&&d.tagName;let c=index$1.textContent(e);var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=d.sheet)&&n.cssRules&&(c=stringifyStylesheet(d.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=absolutifyURLs(c,getHref(t.doc))}return p&&(c="SCRIPT_PLACEHOLDER"),!l&&!p&&c&&i&&(c=r?r(c,index$1.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&a.textarea&&(c=s?s(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:NodeType$2.Text,textContent:c||"",isStyle:l,rootId:o}}function serializeElementNode(t,e){const{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:s,dataURLOptions:d={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:l,newlyAddedElement:p=!1,rootId:h,needsMask:f}=e;var e=_isBlockedElement(t,i,r),g=getValidTagName$1(t);let m={};var v,y=t.attributes.length;for(let e=0;e<y;e++){var b=t.attributes[e];ignoreAttribute(g,b.name,b.value)||(m[b.name]=transformAttribute(n,g,toLowerCase(b.name),b.value))}if("link"===g&&o){var I=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=I?stringifyStylesheet(I):e)&&(delete m.rel,delete m.href,m._cssText=e)}if("style"===g&&t.sheet&&!(t.innerText||index$1.textContent(t)||"").trim().length&&(I=stringifyStylesheet(t.sheet))&&(m._cssText=I),"input"!==g&&"textarea"!==g&&"select"!==g||(I=t.value,v=t.checked,"radio"!==m.type&&"checkbox"!==m.type&&"submit"!==m.type&&"button"!==m.type&&I?m.value=maskInputValue({element:t,type:getInputType(t),tagName:g,value:I,maskInputOptions:a,maskInputFn:s,needsMask:f}):v&&(m.checked=v)),"option"===g&&(t.selected&&!a.select?m.selected=!0:delete m.selected),"dialog"===g&&t.open&&(m.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===g&&c&&("2d"===t.__context?is2DCanvasBlank(t)||(m.rr_dataURL=t.toDataURL(d.type,d.quality)):"__context"in t||(I=t.toDataURL(d.type,d.quality),(v=n.createElement("canvas")).width=t.width,v.height=t.height,I!==v.toDataURL(d.type,d.quality)&&(m.rr_dataURL=I))),"img"===g&&u){canvasService||(canvasService=n.createElement("canvas"),canvasCtx=canvasService.getContext("2d"));const S=t,A=S.currentSrc||S.getAttribute("src")||"<unknown-src>",T=S.crossOrigin,_=()=>{S.removeEventListener("load",_);try{canvasService.width=S.naturalWidth,canvasService.height=S.naturalHeight,canvasCtx.drawImage(S,0,0),m.rr_dataURL=canvasService.toDataURL(d.type,d.quality)}catch(e){if("anonymous"!==S.crossOrigin)return S.crossOrigin="anonymous",void(S.complete&&0!==S.naturalWidth?_():S.addEventListener("load",_));console.warn(`Cannot inline img src=${A}! Error: `+e)}"anonymous"===S.crossOrigin&&(T?m.crossOrigin=T:S.removeAttribute("crossorigin"))};S.complete&&0!==S.naturalWidth?_():S.addEventListener("load",_)}"audio"!==g&&"video"!==g||((v=m).rr_mediaState=t.paused?"paused":"played",v.rr_mediaCurrentTime=t.currentTime,v.rr_mediaPlaybackRate=t.playbackRate,v.rr_mediaMuted=t.muted,v.rr_mediaLoop=t.loop,v.rr_mediaVolume=t.volume),p||(t.scrollLeft&&(m.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(m.rr_scrollTop=t.scrollTop)),e&&({width:I,height:v}=t.getBoundingClientRect(),m={"class":m["class"],rr_width:I+"px",rr_height:v+"px"}),"iframe"!==g||l(m.src)||(t.contentDocument||(m.rr_src=m.src),delete m.src);let w;try{customElements.get(g)&&(w=!0)}catch(C){}return{type:NodeType$2.Element,tagName:g,attributes:m,childNodes:[],isSVG:isSVGElement(t)||void 0,needBlock:e,rootId:h,isCustom:w}}function lowerIfExists(e){return null==e?"":e.toLowerCase()}function slimDOMExcluded(e,t){if(t.comment&&e.type===NodeType$2.Comment)return!0;if(e.type===NodeType$2.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===extractFileExtension(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lowerIfExists(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(e.attributes.name)||"icon"===lowerIfExists(e.attributes.rel)||"apple-touch-icon"===lowerIfExists(e.attributes.rel)||"shortcut icon"===lowerIfExists(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&lowerIfExists(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(lowerIfExists(e.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===lowerIfExists(e.attributes.name)||"googlebot"===lowerIfExists(e.attributes.name)||"bingbot"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===lowerIfExists(e.attributes.name)||"generator"===lowerIfExists(e.attributes.name)||"framework"===lowerIfExists(e.attributes.name)||"publisher"===lowerIfExists(e.attributes.name)||"progid"===lowerIfExists(e.attributes.name)||lowerIfExists(e.attributes.property).match(/^article:/)||lowerIfExists(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===lowerIfExists(e.attributes.name)||"yandex-verification"===lowerIfExists(e.attributes.name)||"csrf-token"===lowerIfExists(e.attributes.name)||"p:domain_verify"===lowerIfExists(e.attributes.name)||"verify-v1"===lowerIfExists(e.attributes.name)||"verification"===lowerIfExists(e.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(e.attributes.name)))return!0}}return!1}function serializeNodeWithId(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,maskTextClass:a,maskTextSelector:s,skipChild:d=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f={},inlineImages:g=!1,recordCanvas:m=!1,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:S=!1}=e;let A=e["needsMask"],{preserveWhiteSpace:T=!0}=e;A||(e=void 0===A,A=needMaskingText(t,a,s,e));e=serializeNode(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:C,newlyAddedElement:S});if(!e)return console.warn(t,"not serialized"),null;let _;_=i.hasNode(t)?i.getId(t):slimDOMExcluded(e,h)||!T&&e.type===NodeType$2.Text&&!e.isStyle&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?IGNORED_NODE:genId();var E=Object.assign(e,{id:_});if(i.add(t,E),_===IGNORED_NODE)return null;v&&v(t);let x=!d;if(E.type===NodeType$2.Element&&(x=x&&!E.needBlock,delete E.needBlock,e=index$1.shadowRoot(t))&&isNativeShadowDom(e)&&(E.isShadowHost=!0),(E.type===NodeType$2.Document||E.type===NodeType$2.Element)&&x){h.headWhitespace&&E.type===NodeType$2.Element&&"head"===E.tagName&&(T=!1);var R={doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:d,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C};if(E.type!==NodeType$2.Element||"textarea"!==E.tagName||void 0===E.attributes.value)for(const N of Array.from(index$1.childNodes(t))){var k=serializeNodeWithId(N,R);k&&E.childNodes.push(k)}let e=null;if(isElement(t)&&(e=index$1.shadowRoot(t)))for(const M of Array.from(index$1.childNodes(e))){var O=serializeNodeWithId(M,R);O&&(isNativeShadowDom(e)&&(O.isShadow=!0),E.childNodes.push(O))}}e=index$1.parentNode(t);return e&&isShadowRoot(e)&&isNativeShadowDom(e)&&(E.isShadow=!0),E.type===NodeType$2.Element&&"iframe"===E.tagName&&onceIframeLoaded(t,()=>{var e=t.contentDocument;e&&y&&(e=serializeNodeWithId(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&y(t,e)},b),E.type===NodeType$2.Element&&"link"===E.tagName&&"string"==typeof E.attributes.rel&&("stylesheet"===E.attributes.rel||"preload"===E.attributes.rel&&"string"==typeof E.attributes.href&&"css"===extractFileExtension(E.attributes.href))&&onceStylesheetLoaded(t,()=>{var e;I&&(e=serializeNodeWithId(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&I(t,e)},w),E}function snapshot(e,t){var{mirror:t=new Mirror,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:s=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:c,maskInputFn:l,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I=()=>!1}=t||{};return serializeNodeWithId(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,maskTextClass:r,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:c,maskInputFn:l,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:h,inlineImages:s,recordCanvas:d,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I,newlyAddedElement:!1})}var __defProp2=Object.defineProperty,__defNormalProp2=(e,t,n)=>t in e?__defProp2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField2=(e,t,n)=>__defNormalProp2(e,"symbol"!=typeof t?t+"":t,n);function getNative$8(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}"undefined"!=typeof window?getNative$8("setTimeout").bind(window):global.setTimeout;class BaseRRNode{constructor(){__publicField2(this,"parentElement",null),__publicField2(this,"parentNode",null),__publicField2(this,"ownerDocument"),__publicField2(this,"firstChild",null),__publicField2(this,"lastChild",null),__publicField2(this,"previousSibling",null),__publicField2(this,"nextSibling",null),__publicField2(this,"ELEMENT_NODE",1),__publicField2(this,"TEXT_NODE",3),__publicField2(this,"nodeType"),__publicField2(this,"nodeName"),__publicField2(this,"RRNodeType")}get childNodes(){var e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof BaseRRNode&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const testableAccessors={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype={},isAngularZonePresent=()=>!!globalThis.Zone;function getUntaintedPrototype(e){if(untaintedBasePrototype[e])return untaintedBasePrototype[e];var t=globalThis[e];const n=t.prototype;var i=e in testableAccessors?testableAccessors[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in testableMethods?testableMethods[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r&&!isAngularZonePresent())return untaintedBasePrototype[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache={};function getUntaintedAccessor(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache[i]?untaintedAccessorCache[i].call(t):(e=getUntaintedPrototype(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache[i]=e).call(t):t[n])}const untaintedMethodCache={};function getUntaintedMethod(e,t,n){var i=e+"."+String(n);return untaintedMethodCache[i]?untaintedMethodCache[i].bind(t):"function"!=typeof(e=getUntaintedPrototype(e)[n])?t[n]:(untaintedMethodCache[i]=e).bind(t)}function childNodes(e){return getUntaintedAccessor("Node",e,"childNodes")}function parentNode(e){return getUntaintedAccessor("Node",e,"parentNode")}function parentElement(e){return getUntaintedAccessor("Node",e,"parentElement")}function textContent(e){return getUntaintedAccessor("Node",e,"textContent")}function contains(e,t){return getUntaintedMethod("Node",e,"contains")(t)}function getRootNode(e){return getUntaintedMethod("Node",e,"getRootNode")()}function host(e){return e&&"host"in e?getUntaintedAccessor("ShadowRoot",e,"host"):null}function styleSheets(e){return e.styleSheets}function shadowRoot(e){return e&&"shadowRoot"in e?getUntaintedAccessor("Element",e,"shadowRoot"):null}function querySelector(e,t){return getUntaintedAccessor("Element",e,"querySelector")(t)}function querySelectorAll(e,t){return getUntaintedAccessor("Element",e,"querySelectorAll")(t)}function mutationObserverCtor(){return getUntaintedPrototype("MutationObserver").constructor}const index={childNodes:childNodes,parentNode:parentNode,parentElement:parentElement,textContent:textContent,contains:contains,getRootNode:getRootNode,host:host,styleSheets:styleSheets,shadowRoot:shadowRoot,querySelector:querySelector,querySelectorAll:querySelectorAll,mutationObserver:mutationObserverCtor};function getWindow(e){var t=e.defaultView;return t||e}function on(e,t,n=document){var i=getWindow(n),r=getNative$1$1("addEventListener",i);const o=getNative$1$1("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}const DEPARTED_MIRROR_ACCESS_WARNING="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let _mirror={map:{},getId(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),-1},getNode(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),null},removeNodeFromMap(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)},has(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),!1},reset(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)}};function throttle$2(r,o,a={}){let s=null,d=0;return function(...e){var t=Date.now(),n=(d||!1!==a.leading||(d=t),o-(t-d));const i=this;n<=0||o<n?(s&&(clearTimeout(s),s=null),d=t,r.apply(i,e)):s||!1===a.trailing||(s=nativeSetTimeout(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function hookSetter(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){nativeSetTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>hookSetter(e,t,o||{},!0)}function patch(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.toString=function(){return r.toString()},i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(_mirror=new Proxy(_mirror,{get(e,t,n){return"map"===t&&console.error(DEPARTED_MIRROR_ACCESS_WARNING),Reflect.get(e,t,n)}}));let nowTimestamp=Date.now;function getWindowScroll(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function closestElementOfNode(e){return e?e.nodeType===e.ELEMENT_NODE?e:index.parentElement(e):null}function isBlocked(e,t,n,i){if(e){e=closestElementOfNode(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(classMatchesRegex(e,t,i))return!0}catch(r){}if(n){if(e.matches(n))return!0;if(i&&null!==e.closest(n))return!0}}}return!1}function isSerialized(e,t){return-1!==t.getId(e)}function isIgnored(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===IGNORED_NODE}function isAncestorRemoved(e,t){var n;return!isShadowRoot(e)&&(n=t.getId(e),!t.has(n)||(!(n=index.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||isAncestorRemoved(n,t)))}function legacy_isTouchEvent(e){return Boolean(e.changedTouches)}function polyfill$1(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function isSerializedIframe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function isSerializedStylesheet(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function hasShadowRoot(e){return!!e&&(e instanceof BaseRRNode&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(index.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nowTimestamp=()=>(new Date).getTime());class StyleSheetMirror{constructor(){__publicField(this,"id",1),__publicField(this,"styleIDMap",new WeakMap),__publicField(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function getShadowHost(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=index.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&index.host(index.getRootNode(e))?index.host(index.getRootNode(e)):n}function getRootShadowHost(e){let t=e;for(var n;n=getShadowHost(t);)t=n;return t}function shadowHostInDom(e){var t=e.ownerDocument;return!!t&&(e=getRootShadowHost(e),index.contains(t,e))}function inDom(e){var t=e.ownerDocument;return!!t&&(index.contains(t,e)||shadowHostInDom(e))}var EventType=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(EventType||{}),IncrementalSource=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(IncrementalSource||{}),MouseInteractions=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(MouseInteractions||{}),PointerTypes=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(PointerTypes||{}),CanvasContext=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(CanvasContext||{}),MediaInteractions=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(MediaInteractions||{});function isNodeInLinkedList(e){return"__ln"in e}class DoubleLinkedList{constructor(){__publicField(this,"length",0),__publicField(this,"head",null),__publicField(this,"tail",null),__publicField(this,"reordered",!1)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=(null==n?void 0:n.next)||null;return n}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&isNodeInLinkedList(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&isNodeInLinkedList(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,t&&(t.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),null===n.next&&(this.tail=n),this.length++}removeNode(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}needsReorder(e){return!(this.reordered||!e.value.previousSibling||!isNodeInLinkedList(e.value.previousSibling)||!e.previous||e.previous.value===e.value.previousSibling)}reorder(){if(this.reordered)return!1;let e=this.tail;for(var t=this.head;e;){var n=e.previous;if(this.removeNode(e.value),this.addNode(e.value),e===t)break;e=n}return this.reordered=!0}}const moveKey=(e,t)=>e+"@"+t;class MutationBuffer{constructor(){__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"texts",[]),__publicField(this,"attributes",[]),__publicField(this,"attributeMap",new WeakMap),__publicField(this,"removes",[]),__publicField(this,"mapRemoves",[]),__publicField(this,"movedMap",{}),__publicField(this,"addedSet",new Set),__publicField(this,"movedSet",new Set),__publicField(this,"droppedSet",new Set),__publicField(this,"removesSubTreeCache",new Set),__publicField(this,"mutationCb"),__publicField(this,"blockClass"),__publicField(this,"blockSelector"),__publicField(this,"maskTextClass"),__publicField(this,"maskTextSelector"),__publicField(this,"inlineStylesheet"),__publicField(this,"maskInputOptions"),__publicField(this,"maskTextFn"),__publicField(this,"maskInputFn"),__publicField(this,"keepIframeSrcFn"),__publicField(this,"recordCanvas"),__publicField(this,"inlineImages"),__publicField(this,"slimDOMOptions"),__publicField(this,"dataURLOptions"),__publicField(this,"doc"),__publicField(this,"mirror"),__publicField(this,"iframeManager"),__publicField(this,"stylesheetManager"),__publicField(this,"shadowDomManager"),__publicField(this,"canvasManager"),__publicField(this,"processedNodeManager"),__publicField(this,"unattachedDoc"),__publicField(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),__publicField(this,"emit",()=>{if(!this.frozen&&!this.locked){const d=[],u=new Set,c=new DoubleLinkedList,l=e=>{let t=e,n=IGNORED_NODE;for(;n===IGNORED_NODE;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var e,n,i=index.parentNode(t);if(i&&inDom(t)&&"TEXTAREA"!==i.tagName)return i=isShadowRoot(i)?this.mirror.getId(getShadowHost(t)):this.mirror.getId(i),e=l(t),-1===i||-1===e?c.addNode(t):void((n=serializeNodeWithId(t,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{isSerializedIframe(e,this.mirror)&&this.iframeManager.addIframe(e),isSerializedStylesheet(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hasShadowRoot(t)&&this.shadowDomManager.addShadowRoot(index.shadowRoot(t),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}}))&&(d.push({parentId:i,nextId:e,node:n}),u.add(n.id)))};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=index.parentNode(p);isParentRemoved(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!isAncestorInSet(this.droppedSet,h)&&!isParentRemoved(this.removesSubTreeCache,h,this.mirror)||isAncestorInSet(this.movedSet,h)?r(h):this.droppedSet.add(h);let e=null;for(;c.length;){let t=null;if(!(t=e&&(n=this.mirror.getId(index.parentNode(e.value)),i=l(e.value),-1!==n)&&-1!==i?e:t)){let e=c.tail;for(;e;){var o=e;if(e=e.previous,o){var a=this.mirror.getId(index.parentNode(o.value));if(-1===l(o.value))c.needsReorder(o)&&c.reorder()&&(e=c.tail);else{if(-1!==a){t=o;break}a=o.value,a=index.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=index.host(a);if(-1!==this.mirror.getId(a)){t=o;break}}}}}}if(!t){for(;c.head;)c.removeNode(c.head.value);break}e=t.previous,c.removeNode(t.value),r(t.value)}var s={texts:this.texts.map(e=>{var t=e.node,n=index.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{var t,n,i=e["attributes"];return"string"==typeof i.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<i.style.length)&&(t+n).split("var(").length===i.style.split("var(").length&&(i.style=e.styleDiff),{id:this.mirror.getId(e.node),attributes:i}}).filter(e=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:d};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(s))}}),__publicField(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(index.childNodes(e),e=>index.textContent(e)||"").join("")}),__publicField(this,"processMutation",i=>{if(!isIgnored(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=index.textContent(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,closestElementOfNode(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a=i.target;let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(r=getInputType(a),o=needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0),t=maskInputValue({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),isBlocked(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("IFRAME"===a.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(a.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"INPUT"===a.tagName&&"password"===(i.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!ignoreAttribute(a.tagName,e))if(n.attributes[e]=transformAttribute(this.doc,toLowerCase(a.tagName),toLowerCase(e),t),"style"===e){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(c){this.unattachedDoc=this.doc}var s=this.unattachedDoc.createElement("span");i.oldValue&&s.setAttribute("style",i.oldValue);for(const l of Array.from(a.style)){var d=a.style.getPropertyValue(l),u=a.style.getPropertyPriority(l);d!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?n.styleDiff[l]=""===u?d:[d,u]:n._unchangedStyles[l]=[d,u]}for(const p of Array.from(s.style))""===a.style.getPropertyValue(p)&&(n.styleDiff[p]=!1)}else"open"===e&&"DIALOG"===a.tagName&&(a.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":isBlocked(i.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==i.target.tagName?(i.addedNodes.forEach(e=>this.genAdds(e,i.target)),i.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=isShadowRoot(i.target)?this.mirror.getId(index.host(i.target)):this.mirror.getId(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||isIgnored(e,this.mirror,this.slimDOMOptions)||!isSerialized(e,this.mirror)||(this.addedSet.has(e)?(deepDelete(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||isAncestorRemoved(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[moveKey(t,n)]?deepDelete(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!isShadowRoot(i.target)||!isNativeShadowDom(i.target))||void 0}),processRemoves(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),__publicField(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(isIgnored(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let e=null;(e=n&&this.mirror.hasNode(n)?this.mirror.getId(n):e)&&-1!==e&&(this.movedMap[moveKey(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);isBlocked(t,this.blockClass,this.blockSelector,!1)||(index.childNodes(t).forEach(e=>this.genAdds(e)),hasShadowRoot(t)&&index.childNodes(index.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function deepDelete(t,e){t["delete"](e),index.childNodes(e).forEach(e=>deepDelete(t,e))}function processRemoves(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),index.childNodes(i).forEach(e=>n.push(e)))}}function isParentRemoved(e,t,n){return 0!==e.size&&_isParentRemoved(e,t)}function _isParentRemoved(e,t,n){t=index.parentNode(t);return!!t&&e.has(t)}function isAncestorInSet(e,t){return 0!==e.size&&_isAncestorInSet(e,t)}function _isAncestorInSet(e,t){t=index.parentNode(t);return!!t&&(!!e.has(t)||_isAncestorInSet(e,t))}let errorHandler;function registerErrorHandler(e){errorHandler=e}function unregisterErrorHandler(){errorHandler=void 0}const callbackWrapper=n=>{return errorHandler?(...e)=>{try{return n(...e)}catch(t){if(!errorHandler||!0!==errorHandler(t))throw t}}:n},mutationBuffers=[];function getEventTarget(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function initMutationObserver(e,t){var n=new MutationBuffer,e=(mutationBuffers.push(n),n.init(e),new(mutationObserverCtor())(callbackWrapper(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function initMoveObserver({mousemoveCb:n,sampling:e,doc:t,mirror:r}){if(!1===e.mousemove)return()=>{};var i="number"==typeof e.mousemove?e.mousemove:50,e="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o=[],a;const s=throttle$2(callbackWrapper(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e);e=callbackWrapper(throttle$2(callbackWrapper(e=>{var t=getEventTarget(e),{clientX:n,clientY:i}=legacy_isTouchEvent(e)?e.changedTouches[0]:e;a=a||nowTimestamp(),o.push({x:n,y:i,id:r.getId(t),timeOffset:nowTimestamp()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?IncrementalSource.Drag:e instanceof MouseEvent?IncrementalSource.MouseMove:IncrementalSource.TouchMove)}),i,{trailing:!1}));const d=[on("mousemove",e,t),on("touchmove",e,t),on("drag",e,t)];return callbackWrapper(()=>{d.forEach(e=>e())})}function initMouseInteractionObserver({mouseInteractionCb:a,doc:i,mirror:s,blockClass:d,blockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let c=null;return Object.keys(MouseInteractions).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=toLowerCase(e);o=e;var o,n=n=>{var i=getEventTarget(n);if(!isBlocked(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=PointerTypes.Mouse;break;case"touch":e=PointerTypes.Touch;break;case"pen":e=PointerTypes.Pen}e===PointerTypes.Touch?MouseInteractions[o]===MouseInteractions.MouseDown?t="TouchStart":MouseInteractions[o]===MouseInteractions.MouseUp&&(t="TouchEnd"):(e,PointerTypes.Pen)}else legacy_isTouchEvent(n)&&(e=PointerTypes.Touch);null!==e?(c=e,(t.startsWith("Touch")&&e===PointerTypes.Touch||t.startsWith("Mouse")&&e===PointerTypes.Mouse)&&(e=null)):MouseInteractions[o]===MouseInteractions.Click&&(e=c,c=null);var r,n=legacy_isTouchEvent(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,callbackWrapper(a)({type:MouseInteractions[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(MouseInteractions[e]){case MouseInteractions.MouseDown:case MouseInteractions.MouseUp:t=t.replace("mouse","pointer");break;case MouseInteractions.TouchStart:case MouseInteractions.TouchEnd:return}r.push(on(t,n,i))}),callbackWrapper(()=>{r.forEach(e=>e())})}function initScrollObserver({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return on("scroll",callbackWrapper(throttle$2(callbackWrapper(e=>{var t,n,e=getEventTarget(e);e&&!isBlocked(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=getWindowScroll(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}function initViewportResizeObserver({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return on("resize",callbackWrapper(throttle$2(callbackWrapper(()=>{var e=getWindowHeight(),t=getWindowWidth();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}const INPUT_TAGS=["INPUT","TEXTAREA","SELECT"],lastInputValueMap=new WeakMap;function initInputObserver({inputCb:i,doc:s,mirror:r,blockClass:e,blockSelector:n,ignoreClass:d,ignoreSelector:u,maskInputOptions:c,maskInputFn:l,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=getEventTarget(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?index.parentElement(i):i)&&r&&!(INPUT_TAGS.indexOf(r)<0)&&!isBlocked(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=getInputType(i)||"",a=needMaskingText(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=maskInputValue({element:i,maskInputOptions:c,tagName:r,type:o,value:e,maskInputFn:l,needsMask:a})),g(i,p?{text:e,isChecked:n,userTriggered:t}:{text:e,isChecked:n}),i.name);"radio"===o&&r&&n&&s.querySelectorAll(`input[type="radio"][name="${r}"]`).forEach(e=>{var t;e!==i&&(t=e.value,g(e,p?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))})}}function g(e,t){var n=lastInputValueMap.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(lastInputValueMap.set(e,t),n=r.getId(e),callbackWrapper(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>on(e,callbackWrapper(o),s)),v=s.defaultView;return v?(t=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),a=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]],t&&t.set&&m.push(...a.map(e=>hookSetter(e[0],e[1],{set(){callbackWrapper(o)({target:this,isTrusted:!1})}},!1,v))),callbackWrapper(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}function getNestedCSSRulePositions(e){var t,n;return e=e,t=[],hasNestedCSSRule("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n)):e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t}function getIdAndStyleId(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function initStyleSheetObserver({styleSheetRuleCb:s,mirror:d,stylesheetManager:u},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new Proxy(e,{apply:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(t,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,n=this.cssRules.length){return i.CSSStyleSheet.prototype.insertRule.apply(this,[e+` { ${t} }`,n])},i.CSSStyleSheet.prototype.deleteRule);i.CSSStyleSheet.prototype.deleteRule=new Proxy(t,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:i}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let n;i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replace:i}),e.apply(t,n)})}));let r;i.CSSStyleSheet.prototype.replaceSync&&(r=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(canMonkeyPatchNestedCSSRule("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),canMonkeyPatchNestedCSSRule("CSSSupportsRule")&&(o.CSSSupportsRule=i.CSSSupportsRule)),{});return Object.entries(o).forEach(([e,t])=>{a[e]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule},t.prototype.insertRule=new Proxy(a[e].insertRule,{apply:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...getNestedCSSRulePositions(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(a[e].deleteRule,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...getNestedCSSRulePositions(t),i]}]}),e.apply(t,n)})})}),callbackWrapper(()=>{i.CSSStyleSheet.prototype.insertRule=e,i.CSSStyleSheet.prototype.deleteRule=t,n&&(i.CSSStyleSheet.prototype.replace=n),r&&(i.CSSStyleSheet.prototype.replaceSync=r),Object.entries(o).forEach(([e,t])=>{t.prototype.insertRule=a[e].insertRule,t.prototype.deleteRule=a[e].deleteRule})})}function initAdoptedStyleSheetObserver({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(index.host(t));e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(e=null==(e=t.ownerDocument)?void 0:e.defaultView)?void 0:e.ShadowRoot;const o=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&e&&o?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var e;return null==(e=o.get)?void 0:e.call(this)},set(e){var t=null==(t=o.set)?void 0:t.call(this,e);if(null!==r&&-1!==r)try{i.adoptStyleSheets(e,r)}catch(n){}return t}}),callbackWrapper(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function initStyleDeclarationObserver({styleDeclarationCb:d,mirror:u,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new Proxy(p,{apply:callbackWrapper((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=getIdAndStyleId(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,set:{property:o,value:a,priority:s},index:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:callbackWrapper((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=getIdAndStyleId(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,remove:{property:o},index:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),callbackWrapper(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}function initMediaInteractionObserver({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=callbackWrapper(a=>throttle$2(callbackWrapper(e=>{var t,n,i,r,o,e=getEventTarget(e);e&&!isBlocked(e,d,u,!0)&&({currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}=e,s({type:a,id:c.getId(e),currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}))}),e.media||500));const i=[on("play",n(MediaInteractions.Play),t),on("pause",n(MediaInteractions.Pause),t),on("seeked",n(MediaInteractions.Seeked),t),on("volumechange",n(MediaInteractions.VolumeChange),t),on("ratechange",n(MediaInteractions.RateChange),t)];return callbackWrapper(()=>{i.forEach(e=>e())})}function initFontObserver({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;t.FontFace=function(e,t,n){var i=new o(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};e=patch(e.fonts,"add",function(e){return function(t){return nativeSetTimeout(callbackWrapper(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}});return i.push(()=>{t.FontFace=o}),i.push(e),callbackWrapper(()=>{i.forEach(e=>e())})}function initSelectionObserver(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;e=callbackWrapper(()=>{var t=d.getSelection();if(!(!t||h&&null!=t&&t.isCollapsed)){h=t.isCollapsed||!1;var n=[],i=t.rangeCount||0;for(let e=0;e<i;e++){var{startContainer:r,startOffset:o,endContainer:a,endOffset:s}=t.getRangeAt(e);isBlocked(r,c,l,!0)||isBlocked(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}});return e(),on("selectionchange",e)}function initCustomElementObserver({doc:e,customElementCb:o}){e=e.defaultView;return e&&e.customElements?patch(e.customElements,"define",function(r){return function(e,t,n){try{o({define:{name:e}})}catch(i){console.warn("Custom element callback failed for "+e)}return r.apply(this,[e,t,n])}}):()=>{}}function mergeHooks(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:a,inputCb:s,mediaInteractionCb:d,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:l,fontCb:p,selectionCb:h,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),d(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),l(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),h(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}function initObservers(e,t={}){var n=e.doc.defaultView;if(!n)return()=>{};mergeHooks(e,t);let i;e.recordDOM&&(i=initMutationObserver(e,e.doc));const r=initMoveObserver(e),o=initMouseInteractionObserver(e),a=initScrollObserver(e),s=initViewportResizeObserver(e,{win:n}),d=initInputObserver(e),u=initMediaInteractionObserver(e);let c=()=>{},l=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=initStyleSheetObserver(e,{win:n}),l=initAdoptedStyleSheetObserver(e,e.doc),p=initStyleDeclarationObserver(e,{win:n}),e.collectFonts)&&(h=initFontObserver(e));const f=initSelectionObserver(e),g=initCustomElementObserver(e),m=[];for(const v of e.plugins)m.push(v.observer(v.callback,n,v.options));return callbackWrapper(()=>{mutationBuffers.forEach(e=>e.reset()),null!=i&&i.disconnect(),r(),o(),a(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m.forEach(e=>e())})}function hasNestedCSSRule(e){return"undefined"!=typeof window[e]}function canMonkeyPatchNestedCSSRule(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class CrossOriginIframeMirror{constructor(e){__publicField(this,"iframeIdToRemoteIdMap",new WeakMap),__publicField(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class IframeManager{constructor(e){__publicField(this,"iframes",new WeakMap),__publicField(this,"crossOriginIframeMap",new WeakMap),__publicField(this,"crossOriginIframeMirror",new CrossOriginIframeMirror(genId)),__publicField(this,"crossOriginIframeStyleMirror"),__publicField(this,"crossOriginIframeRootIdMap",new WeakMap),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"wrappedEmit"),__publicField(this,"takeFullSnapshot"),__publicField(this,"loadListener"),__publicField(this,"stylesheetManager"),__publicField(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}setTakeFullSnapshot(e){this.takeFullSnapshot=e}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e),!e.contentDocument&&e.contentWindow&&e.contentWindow.postMessage({type:"rrweb",origin:window.location.origin,snapshot:!0},"*")}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(n,e){var t;switch(e.type){case EventType.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case EventType.Meta:case EventType.Load:case EventType.DomContentLoaded:return!1;case EventType.Plugin:return e;case EventType.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case EventType.IncrementalSnapshot:switch(e.data.source){case IncrementalSource.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,n);var t=this.crossOriginIframeRootIdMap.get(n);t&&this.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(e=>{this.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,n,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case IncrementalSource.Drag:case IncrementalSource.TouchMove:case IncrementalSource.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case IncrementalSource.ViewportResize:return!1;case IncrementalSource.MediaInteraction:case IncrementalSource.MouseInteraction:case IncrementalSource.Scroll:case IncrementalSource.CanvasMutation:case IncrementalSource.Input:return this.replaceIds(e.data,n,["id"]),e;case IncrementalSource.StyleSheetRule:case IncrementalSource.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case IncrementalSource.Font:return e;case IncrementalSource.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case IncrementalSource.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(e=>{this.replaceStyleIds(e,n,["styleId"])}),e}}return!1}replace(e,t,n,i){for(const r of i)!Array.isArray(t[r])&&"number"!=typeof t[r]||(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===NodeType$2.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ShadowDomManager{constructor(e){__publicField(this,"shadowDoms",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"scrollCb"),__publicField(this,"bypassOptions"),__publicField(this,"mirror"),__publicField(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(isNativeShadowDom(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=initMutationObserver({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(initScrollObserver({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),nativeSetTimeout(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(index.host(e))),this.restoreHandlers.push(initAdoptedStyleSheetObserver({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(patch(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=index.shadowRoot(this);return t&&inDom(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i$1=0;i$1<chars.length;i$1++)lookup[chars.charCodeAt(i$1)]=i$1;var encode=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=chars[t[r]>>2])+chars[(3&t[r])<<4|t[r+1]>>4])+chars[(15&t[r+1])<<2|t[r+2]>>6])+chars[63&t[r+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},n;const canvasVarMap=new Map;function variableListFor$1(e,t){let n=canvasVarMap.get(e);return n||(n=new Map,canvasVarMap.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const saveWebGLVar=(t,n,i)=>{if(t&&(isInstanceOfWebGLObject(t,n)||"object"==typeof t)){n=variableListFor$1(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};function serializeArg(e,t,n){var i;return e instanceof Array?e.map(e=>serializeArg(e,t,n)):null===e?e:e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:encode(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[serializeArg(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?(i=e["src"],{rr_type:e.constructor.name,src:i}):e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[serializeArg(e.data,t,n),e.width,e.height]}:isInstanceOfWebGLObject(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:saveWebGLVar(e,t,n)}:e}const serializeArgs=(e,t,n)=>e.map(e=>serializeArg(e,t,n)),isInstanceOfWebGLObject=(t,n)=>{var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof n[e]);return Boolean(e.find(e=>t instanceof n[e]))};function initCanvas2DMutationObserver(n,i,r,o){const e=[];var t;for(const s of Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype))try{"function"==typeof i.CanvasRenderingContext2D.prototype[s]&&(t=patch(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return isBlocked(this.canvas,r,o,!0)||nativeSetTimeout(()=>{var e=serializeArgs(t,i,this);n(this.canvas,{type:CanvasContext["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=hookSetter(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:CanvasContext["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function getNormalizedContextName(e){return"experimental-webgl"===e?"webgl":e}function initCanvasContextObserver(e,r,o,a){const t=[];try{var n=patch(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return isBlocked(this,r,o,!0)||(n=getNormalizedContextName(e),"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function patchGLPrototype(e,i,r,o,a,s){var t,n=[];for(const u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(t=patch(e,u,function(n){return function(...e){var t=n.apply(this,e);return saveWebGLVar(t,s,this),"tagName"in this.canvas&&!isBlocked(this.canvas,o,a,!0)&&(e=serializeArgs(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=hookSetter(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function initCanvasWebGLMutationObserver(e,t,n,i){const r=[];return r.push(...patchGLPrototype(t.WebGLRenderingContext.prototype,CanvasContext.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...patchGLPrototype(t.WebGL2RenderingContext.prototype,CanvasContext.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}const encodedJs="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",decodeBase64$1=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)),blob="undefined"!=typeof window&&window.Blob&&new Blob([decodeBase64$1(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(e){let t;try{var n;if(t=blob&&(window.URL||window.webkitURL).createObjectURL(blob))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n;throw""}catch(i){return new Worker("data:text/javascript;base64,"+encodedJs,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class CanvasManager{constructor(e){__publicField(this,"pendingCanvasMutations",new Map),__publicField(this,"rafStamps",{latestId:0,invokeId:null}),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"resetObservers"),__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=initCanvasContextObserver(n,i,r,!0),a=new Map,s=new WorkerWrapper,d=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:CanvasContext["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{isBlocked(e,i,r,!0)||t.push(e)}),t},p=e=>{c=(u&&e-u<d||(u=e,l().forEach(async e=>{var t,n,i=this.mirror.getId(e);a.get(i)||0!==e.width&&0!==e.height&&(a.set(i,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(t=e.getContext(e.__context))?void 0:t.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT),n=await createImageBitmap(e),s.postMessage({id:i,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};c=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=initCanvasContextObserver(e,t,n,!1),r=initCanvas2DMutationObserver(this.processMutation.bind(this),e,t,n),o=initCanvasWebGLMutationObserver(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{var n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){var n,i;this.frozen||this.locked||(i=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=i.map(e=>{const{type:t,...n}=e;return n}),i=i[0]["type"],this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations["delete"](e))}}class StylesheetManager{constructor(e){__publicField(this,"trackedLinkElements",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"adoptedStyleSheetCb"),__publicField(this,"styleMirror",new StyleSheetMirror),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(const o of e){let e;if(this.styleMirror.has(o))e=this.styleMirror.getId(o);else{e=this.styleMirror.add(o);var r=[];for(let e=0;e<o.rules.length;++e)r.push({rule:stringifyRule(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:stringifyRule(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ProcessedNodeManager{constructor(){__publicField(this,"nodeMap",new WeakMap),__publicField(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let wrappedEmit,takeFullSnapshot$1=()=>{},canvasManager,recording=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const vl=document.createElement("iframe");document.body.appendChild(vl),Array.from=(null==(_a=vl.contentWindow)?void 0:_a.Array.from)||Array.from,document.body.removeChild(vl)}}catch(err){console.debug("Unable to override Array.from",err)}const mirror=createMirror$2();function record(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:P="rr-ignore",ignoreSelector:G=null,maskTextClass:s="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:D,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:B,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:W=!0,recordCanvas:v=!1,recordCrossOriginIframes:U=!1,recordAfter:$="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:z=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:V}=e,w=(registerErrorHandler(V),!U||window.parent===window);let C=!1;if(!w)try{window.parent.document&&(C=!1)}catch(J){C=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!C)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),mirror.reset();const S=!0===D?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==t?t:{password:!0},A=!0===c||"all"===c?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===c,headMetaDescKeywords:"all"===c,headTitleMutations:"all"===c}:c||{};polyfill$1();let Y,T=0;const H=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!C?h(e):e},_=(wrappedEmit=(e,t)=>{var n;e.timestamp=nowTimestamp(),null==(n=mutationBuffers[0])||!n.isFrozen()||e.type===EventType.FullSnapshot||e.type===EventType.IncrementalSnapshot&&e.data.source===IncrementalSource.Mutation||mutationBuffers.forEach(e=>e.unfreeze()),w?null!=i&&i(H(e),t):C&&(n={type:"rrweb",event:H(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===EventType.FullSnapshot?(Y=e,T=0):e.type!==EventType.IncrementalSnapshot||e.data.source===IncrementalSource.Mutation&&e.data.isAttachIframe||(T++,t=o&&T>=o,n=r&&e.timestamp-Y.timestamp>r,(t||n)&&takeFullSnapshot$1(!0))},e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,...e}})}),K=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Scroll,...e}}),X=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CanvasMutation,...e}});const E=new StylesheetManager({mutationCb:_,adoptedStyleSheetCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.AdoptedStyleSheet,...e}})}),x=new IframeManager({mirror:mirror,mutationCb:_,stylesheetManager:E,recordCrossOriginIframes:U,wrappedEmit:wrappedEmit,takeFullSnapshot:takeFullSnapshot$1});for(const N of b||[])N.getMirror&&N.getMirror({nodeMirror:mirror,crossOriginIframeMirror:x.crossOriginIframeMirror,crossOriginIframeStyleMirror:x.crossOriginIframeStyleMirror});const R=new ProcessedNodeManager,k=(canvasManager=new CanvasManager({recordCanvas:v,mutationCb:X,win:window,blockClass:n,blockSelector:a,mirror:mirror,sampling:f.canvas,dataURLOptions:g}),new ShadowDomManager({mutationCb:_,scrollCb:K,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:S,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:A,iframeManager:x,stylesheetManager:E,canvasManager:canvasManager,keepIframeSrcFn:I,processedNodeManager:R},mirror:mirror}));takeFullSnapshot$1=(e=!1)=>{if(W){wrappedEmit({type:EventType.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}},e),E.reset(),k.init(),mutationBuffers.forEach(e=>e.lock());var t=snapshot(document,{mirror:mirror,blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:S,maskTextFn:p,maskInputFn:l,slimDOM:A,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{isSerializedIframe(e,mirror)&&x.addIframe(e),isSerializedStylesheet(e,mirror)&&E.trackLinkElement(e),hasShadowRoot(e)&&k.addShadowRoot(index.shadowRoot(e),document)},onIframeLoad:(e,t)=>{x.attachIframe(e,t),k.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{E.attachLinkElement(e,t)},keepIframeSrcFn:I});if(!t)return console.warn("Failed to snapshot the document");wrappedEmit({type:EventType.FullSnapshot,data:{node:t,initialOffset:getWindowScroll(window)}},e),mutationBuffers.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&E.adoptStyleSheets(document.adoptedStyleSheets,mirror.getId(document))}},x.setTakeFullSnapshot(takeFullSnapshot$1);try{const M=[],L=e=>{return callbackWrapper(initObservers)({mutationCb:_,mousemoveCb:(e,t)=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.ViewportResize,...e}}),inputCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Input,...e}}),mediaInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MediaInteraction,...e}}),styleSheetRuleCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleSheetRule,...e}}),styleDeclarationCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Font,...e}}),selectionCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Selection,...e}})},customElementCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CustomElement,...e}})},blockClass:n,ignoreClass:P,ignoreSelector:G,maskTextClass:s,maskTextSelector:d,maskInputOptions:S,inlineStylesheet:u,sampling:f,recordDOM:W,recordCanvas:v,inlineImages:y,userTriggeredOnInput:j,collectFonts:z,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:I,blockSelector:a,slimDOMOptions:A,dataURLOptions:g,mirror:mirror,iframeManager:x,stylesheetManager:E,shadowDomManager:k,processedNodeManager:R,canvasManager:canvasManager,ignoreCSSAttributes:Z,plugins:(null==(e=null==b?void 0:b.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>wrappedEmit({type:EventType.Plugin,data:{plugin:t.name,payload:e}})})))||[]},B)},F=(x.addLoadListener(e=>{try{M.push(L(e.contentDocument))}catch(t){console.warn(t)}}),()=>{takeFullSnapshot$1(),M.push(L(document)),recording=!0});return"interactive"===document.readyState||"complete"===document.readyState?F():(M.push(on("DOMContentLoaded",()=>{wrappedEmit({type:EventType.DomContentLoaded,data:{}}),"DOMContentLoaded"===$&&F()})),M.push(on("load",()=>{wrappedEmit({type:EventType.Load,data:{}}),"load"===$&&F()},window))),()=>{M.forEach(e=>e()),R.destroy(),recording=!1,unregisterErrorHandler()}}catch(O){console.warn(O)}}record.addCustomEvent=(e,t)=>{if(!recording)throw new Error("please add custom event after start recording");wrappedEmit({type:EventType.Custom,data:{tag:e,payload:t}})},record.freezePage=()=>{mutationBuffers.forEach(e=>e.freeze())},record.takeFullSnapshot=e=>{if(!recording)throw new Error("please take full snapshot after start recording");takeFullSnapshot$1(e)},record.mirror=mirror,!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(n=n||{});var setTimeout=safeBind(window.setTimeout,window);function safeBind(e,t){return"function"==typeof e.bind?e.bind(t):e}var setTimeout=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return safeBind(e[t],e)}(window),setTimeout$1=setTimeout,Promise$3=window.Promise,Promise$3=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=setTimeout$1;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a}),Promise$4=Promise$3,__assign=function(){return(__assign=Object.assign||function __assign(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},SessionRecorderBuffer=function(){function e(e,t){void 0===t&&(t=Infinity),this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}return e.prototype.isEmpty=function(){return 0===this.data.length},e.prototype.count=function(){return this.data.length},e.prototype.clear=function(){this.data.length=0},e.prototype.clearSequence=function(){this.sequenceNumber=0},e.prototype.push=function(e){this.data.push(e),this.checkRateLimit()},e.prototype.pack=function(e,n){var t=this.data.splice(0,this.maxCount);return e.recordingPayload=t,e.sequence=this.sequenceNumber,e.recordingPayloadCount=t.length,t.length&&(e.browserTime=t[0].timestamp),e.recordingPayloadMetadata=n.map(t,function(e){var t=n.pick(e,"type","timestamp");return e.data&&(t.data=n.pick(e.data,"source","type","x","y","id","height","width","href")),t}),this.sequenceNumber+=t.length,e},e.prototype.checkRateLimit=function(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()},e}(),MAX_BACKOFF=6,MAX_FAILURES=100,SendQueue=function(){function e(e,t){void 0===t&&(t=MAX_FAILURES),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}return e.prototype.isEmpty=function(){return this.queue.length<=0},e.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},e.prototype.start=function(){this.stopped=!1},e.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},e.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},e.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},e.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},e.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,MAX_BACKOFF))))},e.prototype.retryLater=function(e){var t=this;this.timer=setTimeout$1(function(){delete t.timer,t.next()},e)},e.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},e.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},e.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Promise$4.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Promise$4.all(i)},e}(),RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,RESOURCE_CACHING$1="resourceCaching",Transport=function(){function e(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}return e.prototype.start=function(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}},e.prototype.stop=function(){this.worker&&(this.worker.terminate(),delete this.worker)},e.prototype.send=function(e,t,n){var i,r=e.url,o=e.payload;if(0<(n=void 0===n?0:n)&&(r="".concat(r,"&rt=").concat(n)),this.worker&&!t&&o)return(i={}).promise=new Promise$4(function(e,t){i.resolve=e,i.reject=t}),this.workerResponse=i,this.worker.postMessage({url:r,payload:o,shouldCacheResources:this.isResourceCachingEnabled}),i.promise;if(!e.body){n=JSON.stringify(o);if(n.length>this.maxSize)throw(o=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",o;e.body=this.pendo.compress(n,"binary"),delete e.payload}return r="".concat(r,"&ct=").concat((new Date).getTime()),this.post(r,{keepalive:t,body:e.body})},e.prototype.post=function(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$4.resolve():Promise$4.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)},e.prototype._onMessage=function(e){e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))},e.prototype._onError=function(){this.onError&&this.onError()},e}(),ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n,i){return void 0===n&&(n=Infinity),void 0===i&&(i=0),!isElementNode(e)||n<i?-1:e.matches(t)?i:distanceToMatch(e.parentNode,t,n,i+1)}function shouldMask(e,t){var n=t.maskAllText,i=t.maskTextSelector,t=t.unmaskTextSelector;try{var r=isElementNode(e)?e:e.parentElement;if(null===r)return!1;var o=-1,a=-1;if(n){if((a=distanceToMatch(r,t))<0)return!0;o=distanceToMatch(r,i,0<=a?a:Infinity)}else{if((o=distanceToMatch(r,i))<0)return!1;a=distanceToMatch(r,t,0<=o?o:Infinity)}return 0<=o?!(0<=a)||o<=a:!(0<=a||!n)}catch(s){}return!!n}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}function SessionRecorder(e,t){this.record=e,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0,this.WorkerClass=t}SessionRecorder.FULL_SNAPSHOT=2,SessionRecorder.META=4,SessionRecorder.INCREMENTAL_SNAPSHOT=3,SessionRecorder.INCREMENTAL_SOURCE_MUTATION=0,SessionRecorder.INCREMENTAL_SOURCE_INPUT=5,SessionRecorder.SEND_INTERVAL=5e3,SessionRecorder.MAX_SEND_COUNT=2e4;var RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent";function wrapMethodWithCatch(t){return function(){try{return t.apply(this,arguments)}catch(e){this.api&&this.api.log&&this.api.log.critical("session recording error",{error:e})}}}function errorLogger(e){if("undefined"!=typeof Object&&"function"==typeof Object.getOwnPropertyNames&&e.constructor&&e.constructor.prototype)for(var t=0,n=Object.getOwnPropertyNames(e.constructor.prototype);t<n.length;t++){var i=n[t];"constructor"!==i&&(e[i]=wrapMethodWithCatch(e[i]))}return e}function decodeBase64(e,t){var n=atob(e);if(t){for(var i=new Uint8Array(n.length),r=0,o=n.length;r<o;++r)i[r]=n.charCodeAt(r);return new TextDecoder("utf-16le").decode(new Uint16Array(i.buffer))}return n}function createURL(e,t,n){t=t===undefined?null:t,e=decodeBase64(e,n!==undefined&&n),n=e.indexOf("\n",10)+1,n=e.substring(n)+(t?"//# sourceMappingURL="+t:""),e=new Blob([n],{type:"application/javascript"});return URL.createObjectURL(e)}function createBase64WorkerFactory(t,n,i){var r;return function WorkerFactory(e){return r=r||createURL(t,n,i),new Worker(r,e)}}SessionRecorder.prototype.addConfigOptions=function(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RESOURCE_CACHING,[e.sources.PENDO_CONFIG_SRC],undefined)},SessionRecorder.prototype.initialize=function(e,t){this.pendo=e,this.api=t;var n=this.pendo._.bind,i=this.api.ConfigReader,r=(this.buffer=new SessionRecorderBuffer(SessionRecorder.SEND_INTERVAL,SessionRecorder.MAX_SEND_COUNT),this.buffer.onRateLimit=n(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,e,t),this.transport.onError=n(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=n(this.onWorkerMessage,this),this.sendQueue=new SendQueue(n(this.transport.send,this.transport)),this.sendQueue.onTimeout=n(this.sendFailure,this,"SEND_TIMEOUT"),this.isNewSession=!1,this.addConfigOptions(),this.config=i.get(RECORDING_CONFIG),this.onRecordingStart=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_START))?i.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_STOP))?i.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){},i.get(RECORDING_CONFIG_ENABLED));(e._.isBoolean(r)?r:this.config.enabled)?i.get("excludeNonGuideAnalytics")?this.logStopReason("ANALYTICS_DISABLED"):(r=this.sessionIdKey="".concat(SESSION_RECORDING_ID,".").concat(e.apiKey),e.recording={start:n(this.start,this),stop:n(this.stop,this)},this.subscriptions=[t.attachEvent(t.Events,"appHidden",n(this.handleHidden,this)),t.attachEvent(t.Events,"appUnloaded",n(this.handleUnload,this)),t.attachEvent(t.Events,"identify",n(this.changeIdentity,this)),t.attachEvent(t.Events,"metadata",n(this.changeMetadata,this)),t.attachEvent(t.Events,"eventCaptured",n(this.addRecordingId,this)),t.attachEvent(t.Events,"transmit:locked",n(this.stop,this)),t.attachEvent(t.Events,"transmit:unlocked",n(this._start,this)),t.attachEvent(t.frames.getChannel(),"message",n(this._frameMessage,this))],t.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(t.attachEvent(t.Events,"ready",n(this.ready,this))),t.agentStorage.registry.addSession(r),t.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)):this.logStopReason("RECORDING_DISABLED")},SessionRecorder.prototype.teardown=function(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0,this.stop(),this.transport.stop()},SessionRecorder.prototype.ready=function(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()},SessionRecorder.prototype.changeIdentity=function(e){var t=this;this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&this.stop(),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(function(){t._start()},500))},SessionRecorder.prototype.changeMetadata=function(e){var t=this,e=e.data[0],n=e.hashChanged,e=e.options;if(this.allowStart&&n)return clearTimeout(this._changeIdentityTimer),this.visitorId=e.visitor.id,this.accountId=e.account.id,this.fetchVisitorConfig().then(function(e){e&&e.enable||!t.isRecording()?e&&e.enable&&!t.isRecording()&&t._startRecordingForVisitor(e):t.stop()})["catch"](function(e){t.api.log.critical("Failed to re-fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype.snapshot=function(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())},SessionRecorder.prototype.isRecording=function(){return null!=this.interval},SessionRecorder.prototype.recordingConfig=function(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}};return this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[]).join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes}},SessionRecorder.prototype.start=function(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()},SessionRecorder.prototype._markEvents=function(e){if(this.recordingId)for(var t=0,n=e;t<n.length;t++){var i=n[t];i.visitor_id===this.visitorId&&"identify"!==i.type&&(i.recordingId=this.recordingId,i.recordingSessionId=this.sessionId(this.recordingId))}},SessionRecorder.prototype.restartPtm=function(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e=0,t=this.pendo.buffers.silos;e<t.length;e++){var n=t[e];this._markEvents(n)}this._restartPtm(),this._restartPtm=null}},SessionRecorder.prototype._start=function(){var t=this;if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(function(e){t.allowStart&&(e&&e.enable?t._startRecordingForVisitor(e):(t.restartPtm(),t.logStopReason("VISITOR_DISABLED")))})["catch"](function(e){t.restartPtm(),t.api.log.critical("Failed to fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype._startRecordingForVisitor=function(e){var t=this;if(this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var n=this.pendo._.bind,i=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(function(){t.sendQueue.failed()||t.send()},SessionRecorder.SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:n(this.emit,this)},i)),this._refreshIds(),this.onRecordingStart()}catch(r){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}},SessionRecorder.prototype._sendIds=function(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId})},SessionRecorder.prototype._refreshIds=function(e){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})},SessionRecorder.prototype._frameMessage=function(e){e=e.data;"pendo:sr:id"===e.type?(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.restartPtm()):"pendo:sr:refresh"===e.type&&window==window.top&&this._sendIds()},SessionRecorder.prototype.clearSessionId=function(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)},SessionRecorder.prototype.sessionId=function(e){var t,n;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionId||((t=this.api.sessionStorage.getItem(this.sessionIdKey))||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(t=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):t=e,this.api.sessionStorage.setItem(this.sessionIdKey,t)),this._sessionId=t),this._sessionId},SessionRecorder.prototype.clearOldSessionId=function(){var e=this.getLastUserInteractionEventInformation();if(e){var t=e.timestamp,e=e.visitorId===this.visitorId&&e.accountId===this.accountId,t=t>Date.now()-this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);if(e&&t)return}this.clearSessionInfo(),this.isNewSession=!0},SessionRecorder.prototype.clearSessionInfo=function(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()},SessionRecorder.prototype.isUserInteraction=function(e){return e.type===SessionRecorder.INCREMENTAL_SNAPSHOT&&e.data.source>SessionRecorder.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=SessionRecorder.INCREMENTAL_SOURCE_INPUT},SessionRecorder.prototype.storeLastUserInteractionEventInformation=function(e,t,n,i){(this.isUserInteraction(e)||i)&&(this.lastUserInteractionEventInfo={timestamp:e.timestamp,visitorId:t,accountId:n},this.api.sessionStorage.setItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT,JSON.stringify(this.lastUserInteractionEventInfo)))},SessionRecorder.prototype.clearLastUserInteractionEventInformation=function(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)},SessionRecorder.prototype.getLastUserInteractionEventInformation=function(){if(this.lastUserInteractionEventInfo)return this.lastUserInteractionEventInfo;try{return this.lastUserInteractionEventInfo=JSON.parse(this.api.sessionStorage.getItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)),this.lastUserInteractionEventInfo}catch(e){return null}},SessionRecorder.prototype.emit=function(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===SessionRecorder.META,n=e.type===SessionRecorder.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=!i&&t?!0:!1,r=(this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r),this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES));i&&e.timestamp-i>r&&!n&&!t?(this.send(),this.clearSessionInfo(),this.snapshot()):(t&&this.send(),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.send({keyframe:!0})):!t&&(this.eventsSinceLastKeyFrame+=1,i=e.timestamp-this.lastKeyFrameTime,r=ONE_DAY_IN_MILLISECONDS<=i,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),r||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))},SessionRecorder.prototype.updateCurrentRecordingSize=function(e){this.currentRecordingSize+=e},SessionRecorder.prototype.onWorkerMessage=function(e){switch(e.type){case"recordingPayloadSize":var t=e.recordingPayloadSize,n=e.exceedsPayloadSizeLimit;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e.hostedResourcesEvent;n&&this.sendHostedResources(n)}},SessionRecorder.prototype.addRecordingId=function(e){this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.stop()):this._markEvents([e]))},SessionRecorder.prototype.stop=function(){this._stop&&this._stop(),this.send(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()},SessionRecorder.prototype.handleHidden=function(){this.send({hidden:!0})},SessionRecorder.prototype.handleUnload=function(){this.send({unload:!0})},SessionRecorder.prototype.buildRequestUrl=function(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return"".concat(t,"=").concat(e)}).join("&");return t.length?"".concat(e,"?").concat(t):e},SessionRecorder.prototype.sendFailure=function(e){this.stop(),this.logStopReason(e)},SessionRecorder.prototype.rateLimitExceeded=function(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")},SessionRecorder.prototype.send=function(e){var e=void 0===e?{}:e,t=e.unload,t=void 0!==t&&t,n=e.keyframe,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e;if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),n=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!n,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get()},i),i=(this.transport.usesSelfHostedWorker&&(n.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(n),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(n.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),i)),n=this.buffer.pack(n,this.pendo._);if(t||e)try{this.sendQueue.drain([{url:i,payload:n}],t)}catch(r){r.reason&&this.logStopReason(r.reason)}else this.sendQueue.push({url:i,payload:n});this.buffer.isEmpty()||this.send({unload:t})}else this.buffer.clear()},SessionRecorder.prototype.fetchVisitorConfig=function(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/recordingconf/").concat(this.pendo.apiKey),{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(function(e){return e.json()})},SessionRecorder.prototype.logStopReason=function(e,t){var n=this,i=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:__assign({reason:e},t&&{error:t})},i),t=this.pendo.compress(e),i=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(i,{body:t,keepalive:!0})["catch"](function(e){n.api.log.critical("Failed to send reason for stopping recording",{error:e})})},SessionRecorder.prototype.sendHostedResources=function(e){var t=this,n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(__assign(__assign({},e),{browserTime:(new Date).getTime()}),n),n=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(n,{body:e,keepalive:!0})["catch"](function(e){t.api.log.critical("Failed to send hosted resources for recording event",{error:e})})};var WorkerFactory=createBase64WorkerFactory("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwp2YXIgd29ya2VyX2NvZGUgPSAoZnVuY3Rpb24gKGV4cG9ydHMpIHsKICAgICd1c2Ugc3RyaWN0JzsKCiAgICB2YXIgYjY0ID0gKGZ1bmN0aW9uKCkgewoKICAgICAgICB2YXIgbG9va3VwID0gJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5LV8nLnNwbGl0KCcnKTsKCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgJ3VpbnQ4VG9CYXNlNjQnOiB1aW50OFRvQmFzZTY0CiAgICAgICAgfTsKCiAgICAgICAgZnVuY3Rpb24gdWludDhUb0Jhc2U2NCh1aW50OCkgewogICAgICAgICAgICB2YXIgaSwKICAgICAgICAgICAgICAgIGV4dHJhQnl0ZXMgPSB1aW50OC5sZW5ndGggJSAzLCAvLyBpZiB3ZSBoYXZlIDEgYnl0ZSBsZWZ0LCBwYWQgMiBieXRlcwogICAgICAgICAgICAgICAgb3V0cHV0ID0gJycsCiAgICAgICAgICAgICAgICB0ZW1wLCBsZW5ndGg7CgogICAgICAgICAgICBmdW5jdGlvbiB0cmlwbGV0VG9CYXNlNjQobnVtKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gbG9va3VwW251bSA+PiAxOCAmIDB4M0ZdICsgbG9va3VwW251bSA+PiAxMiAmIDB4M0ZdICsgbG9va3VwW251bSA+PiA2ICYgMHgzRl0gKyBsb29rdXBbbnVtICYgMHgzRl07CiAgICAgICAgICAgIH0KCiAgICAJCS8vIGdvIHRocm91Z2ggdGhlIGFycmF5IGV2ZXJ5IHRocmVlIGJ5dGVzLCB3ZSdsbCBkZWFsIHdpdGggdHJhaWxpbmcgc3R1ZmYgbGF0ZXIKICAgICAgICAgICAgZm9yIChpID0gMCwgbGVuZ3RoID0gdWludDgubGVuZ3RoIC0gZXh0cmFCeXRlczsgaSA8IGxlbmd0aDsgaSArPSAzKSB7CiAgICAgICAgICAgICAgICB0ZW1wID0gKHVpbnQ4W2ldIDw8IDE2KSArICh1aW50OFtpICsgMV0gPDwgOCkgKyAodWludDhbaSArIDJdKTsKICAgICAgICAgICAgICAgIG91dHB1dCArPSB0cmlwbGV0VG9CYXNlNjQodGVtcCk7CiAgICAgICAgICAgIH0KCiAgICAJCS8vIHBhZCB0aGUgZW5kIHdpdGggemVyb3MsIGJ1dCBtYWtlIHN1cmUgdG8gbm90IGZvcmdldCB0aGUgZXh0cmEgYnl0ZXMKICAgICAgICAgICAgLy9lc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgZGVmYXVsdC1jYXNlCiAgICAgICAgICAgIHN3aXRjaCAoZXh0cmFCeXRlcykgewogICAgICAgICAgICBjYXNlIDE6CiAgICAgICAgICAgICAgICB0ZW1wID0gdWludDhbdWludDgubGVuZ3RoIC0gMV07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMl07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwWyh0ZW1wIDw8IDQpICYgMHgzRl07CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgY2FzZSAyOgogICAgICAgICAgICAgICAgdGVtcCA9ICh1aW50OFt1aW50OC5sZW5ndGggLSAyXSA8PCA4KSArICh1aW50OFt1aW50OC5sZW5ndGggLSAxXSk7CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMTBdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA+PiA0KSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA8PCAyKSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiBvdXRwdXQ7CiAgICAgICAgfQogICAgfSkoKTsKCiAgICBmdW5jdGlvbiBnZXREZWZhdWx0RXhwb3J0RnJvbUNqcyAoeCkgewogICAgCXJldHVybiB4ICYmIHguX19lc01vZHVsZSAmJiBPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoeCwgJ2RlZmF1bHQnKSA/IHhbJ2RlZmF1bHQnXSA6IHg7CiAgICB9CgogICAgdmFyIGRlZmxhdGVfbWluID0ge2V4cG9ydHM6IHt9fTsKCiAgICAvKgogICAgICogQGxpY2Vuc2UgemxpYi5qcyAyMDEyIC0gaW1heWEgWyBodHRwczovL2dpdGh1Yi5jb20vaW1heWEvemxpYi5qcyBdIFRoZSBNSVQgTGljZW5zZQogICAgICovCgogICAgKGZ1bmN0aW9uIChtb2R1bGUpIHsKICAgIAkoZnVuY3Rpb24oKSB7dmFyIG49dm9pZCAwLHc9ITAsYWE9dGhpcztmdW5jdGlvbiBiYShmLGQpe3ZhciBjPWYuc3BsaXQoIi4iKSxlPWFhOyEoY1swXWluIGUpJiZlLmV4ZWNTY3JpcHQmJmUuZXhlY1NjcmlwdCgidmFyICIrY1swXSk7Zm9yKHZhciBiO2MubGVuZ3RoJiYoYj1jLnNoaWZ0KCkpOykhYy5sZW5ndGgmJmQhPT1uP2VbYl09ZDplPWVbYl0/ZVtiXTplW2JdPXt9O312YXIgQz0idW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50OEFycmF5JiYidW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50MTZBcnJheSYmInVuZGVmaW5lZCIhPT10eXBlb2YgVWludDMyQXJyYXk7ZnVuY3Rpb24gSyhmLGQpe3RoaXMuaW5kZXg9Im51bWJlciI9PT10eXBlb2YgZD9kOjA7dGhpcy5lPTA7dGhpcy5idWZmZXI9ZiBpbnN0YW5jZW9mKEM/VWludDhBcnJheTpBcnJheSk/ZjpuZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO2lmKDIqdGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4KXRocm93IEVycm9yKCJpbnZhbGlkIGluZGV4Iik7dGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4JiZjYSh0aGlzKTt9ZnVuY3Rpb24gY2EoZil7dmFyIGQ9Zi5idWZmZXIsYyxlPWQubGVuZ3RoLGI9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGU8PDEpO2lmKEMpYi5zZXQoZCk7ZWxzZSBmb3IoYz0wO2M8ZTsrK2MpYltjXT1kW2NdO3JldHVybiBmLmJ1ZmZlcj1ifQogICAgCUsucHJvdG90eXBlLmI9ZnVuY3Rpb24oZixkLGMpe3ZhciBlPXRoaXMuYnVmZmVyLGI9dGhpcy5pbmRleCxhPXRoaXMuZSxnPWVbYl0sbTtjJiYxPGQmJihmPTg8ZD8oTFtmJjI1NV08PDI0fExbZj4+PjgmMjU1XTw8MTZ8TFtmPj4+MTYmMjU1XTw8OHxMW2Y+Pj4yNCYyNTVdKT4+MzItZDpMW2ZdPj44LWQpO2lmKDg+ZCthKWc9Zzw8ZHxmLGErPWQ7ZWxzZSBmb3IobT0wO208ZDsrK20pZz1nPDwxfGY+PmQtbS0xJjEsOD09PSsrYSYmKGE9MCxlW2IrK109TFtnXSxnPTAsYj09PWUubGVuZ3RoJiYoZT1jYSh0aGlzKSkpO2VbYl09Zzt0aGlzLmJ1ZmZlcj1lO3RoaXMuZT1hO3RoaXMuaW5kZXg9Yjt9O0sucHJvdG90eXBlLmZpbmlzaD1mdW5jdGlvbigpe3ZhciBmPXRoaXMuYnVmZmVyLGQ9dGhpcy5pbmRleCxjOzA8dGhpcy5lJiYoZltkXTw8PTgtdGhpcy5lLGZbZF09TFtmW2RdXSxkKyspO0M/Yz1mLnN1YmFycmF5KDAsZCk6KGYubGVuZ3RoPWQsYz1mKTtyZXR1cm4gY307CiAgICAJdmFyIGRhPW5ldyAoQz9VaW50OEFycmF5OkFycmF5KSgyNTYpLE07Zm9yKE09MDsyNTY+TTsrK00pe2Zvcih2YXIgTj1NLFM9TixlYT03LE49Tj4+PjE7TjtOPj4+PTEpUzw8PTEsU3w9TiYxLC0tZWE7ZGFbTV09KFM8PGVhJjI1NSk+Pj4wO312YXIgTD1kYTtmdW5jdGlvbiBpYShmKXt0aGlzLmJ1ZmZlcj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKDIqZik7dGhpcy5sZW5ndGg9MDt9aWEucHJvdG90eXBlLmdldFBhcmVudD1mdW5jdGlvbihmKXtyZXR1cm4gMiooKGYtMikvNHwwKX07aWEucHJvdG90eXBlLnB1c2g9ZnVuY3Rpb24oZixkKXt2YXIgYyxlLGI9dGhpcy5idWZmZXIsYTtjPXRoaXMubGVuZ3RoO2JbdGhpcy5sZW5ndGgrK109ZDtmb3IoYlt0aGlzLmxlbmd0aCsrXT1mOzA8YzspaWYoZT10aGlzLmdldFBhcmVudChjKSxiW2NdPmJbZV0pYT1iW2NdLGJbY109YltlXSxiW2VdPWEsYT1iW2MrMV0sYltjKzFdPWJbZSsxXSxiW2UrMV09YSxjPWU7ZWxzZSBicmVhaztyZXR1cm4gdGhpcy5sZW5ndGh9OwogICAgCWlhLnByb3RvdHlwZS5wb3A9ZnVuY3Rpb24oKXt2YXIgZixkLGM9dGhpcy5idWZmZXIsZSxiLGE7ZD1jWzBdO2Y9Y1sxXTt0aGlzLmxlbmd0aC09MjtjWzBdPWNbdGhpcy5sZW5ndGhdO2NbMV09Y1t0aGlzLmxlbmd0aCsxXTtmb3IoYT0wOzspe2I9MiphKzI7aWYoYj49dGhpcy5sZW5ndGgpYnJlYWs7YisyPHRoaXMubGVuZ3RoJiZjW2IrMl0+Y1tiXSYmKGIrPTIpO2lmKGNbYl0+Y1thXSllPWNbYV0sY1thXT1jW2JdLGNbYl09ZSxlPWNbYSsxXSxjW2ErMV09Y1tiKzFdLGNbYisxXT1lO2Vsc2UgYnJlYWs7YT1iO31yZXR1cm4ge2luZGV4OmYsdmFsdWU6ZCxsZW5ndGg6dGhpcy5sZW5ndGh9fTtmdW5jdGlvbiBrYShmLGQpe3RoaXMuZD1sYTt0aGlzLmk9MDt0aGlzLmlucHV0PUMmJmYgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShmKTpmO3RoaXMuYz0wO2QmJihkLmxhenkmJih0aGlzLmk9ZC5sYXp5KSwibnVtYmVyIj09PXR5cGVvZiBkLmNvbXByZXNzaW9uVHlwZSYmKHRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZSksZC5vdXRwdXRCdWZmZXImJih0aGlzLmE9QyYmZC5vdXRwdXRCdWZmZXIgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShkLm91dHB1dEJ1ZmZlcik6ZC5vdXRwdXRCdWZmZXIpLCJudW1iZXIiPT09dHlwZW9mIGQub3V0cHV0SW5kZXgmJih0aGlzLmM9ZC5vdXRwdXRJbmRleCkpO3RoaXMuYXx8KHRoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpKTt9dmFyIGxhPTIsbmE9e05PTkU6MCxoOjEsZzpsYSxuOjN9LFQ9W10sVTsKICAgIAlmb3IoVT0wOzI4OD5VO1UrKylzd2l0Y2godyl7Y2FzZSAxNDM+PVU6VC5wdXNoKFtVKzQ4LDhdKTticmVhaztjYXNlIDI1NT49VTpULnB1c2goW1UtMTQ0KzQwMCw5XSk7YnJlYWs7Y2FzZSAyNzk+PVU6VC5wdXNoKFtVLTI1NiswLDddKTticmVhaztjYXNlIDI4Nz49VTpULnB1c2goW1UtMjgwKzE5Miw4XSk7YnJlYWs7ZGVmYXVsdDp0aHJvdyAiaW52YWxpZCBsaXRlcmFsOiAiK1U7fQogICAgCWthLnByb3RvdHlwZS5mPWZ1bmN0aW9uKCl7dmFyIGYsZCxjLGUsYj10aGlzLmlucHV0O3N3aXRjaCh0aGlzLmQpe2Nhc2UgMDpjPTA7Zm9yKGU9Yi5sZW5ndGg7YzxlOyl7ZD1DP2Iuc3ViYXJyYXkoYyxjKzY1NTM1KTpiLnNsaWNlKGMsYys2NTUzNSk7Yys9ZC5sZW5ndGg7dmFyIGE9ZCxnPWM9PT1lLG09bixrPW4scD1uLHQ9bix1PW4sbD10aGlzLmEsaD10aGlzLmM7aWYoQyl7Zm9yKGw9bmV3IFVpbnQ4QXJyYXkodGhpcy5hLmJ1ZmZlcik7bC5sZW5ndGg8PWgrYS5sZW5ndGgrNTspbD1uZXcgVWludDhBcnJheShsLmxlbmd0aDw8MSk7bC5zZXQodGhpcy5hKTt9bT1nPzE6MDtsW2grK109bXwwO2s9YS5sZW5ndGg7cD1+ays2NTUzNiY2NTUzNTtsW2grK109ayYyNTU7bFtoKytdPWs+Pj44JjI1NTtsW2grK109cCYyNTU7bFtoKytdPXA+Pj44JjI1NTtpZihDKWwuc2V0KGEsaCksaCs9YS5sZW5ndGgsbD1sLnN1YmFycmF5KDAsaCk7ZWxzZSB7dD0wO2Zvcih1PWEubGVuZ3RoO3Q8dTsrK3QpbFtoKytdPQogICAgCWFbdF07bC5sZW5ndGg9aDt9dGhpcy5jPWg7dGhpcy5hPWw7fWJyZWFrO2Nhc2UgMTp2YXIgcT1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpO3EuYigxLDEsdyk7cS5iKDEsMix3KTt2YXIgcz1vYSh0aGlzLGIpLHgsZmEsejt4PTA7Zm9yKGZhPXMubGVuZ3RoO3g8ZmE7eCsrKWlmKHo9c1t4XSxLLnByb3RvdHlwZS5iLmFwcGx5KHEsVFt6XSksMjU2PHopcS5iKHNbKyt4XSxzWysreF0sdykscS5iKHNbKyt4XSw1KSxxLmIoc1srK3hdLHNbKyt4XSx3KTtlbHNlIGlmKDI1Nj09PXopYnJlYWs7dGhpcy5hPXEuZmluaXNoKCk7dGhpcy5jPXRoaXMuYS5sZW5ndGg7YnJlYWs7Y2FzZSBsYTp2YXIgQj1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpLHRhLEosTyxQLFEsTGE9WzE2LDE3LDE4LDAsOCw3LDksNiwxMCw1LDExLDQsMTIsMywxMywyLDE0LDEsMTVdLFgsdWEsWSx2YSxnYSxqYT1BcnJheSgxOSksCiAgICAJd2EsUixoYSx5LHhhO3RhPWxhO0IuYigxLDEsdyk7Qi5iKHRhLDIsdyk7Sj1vYSh0aGlzLGIpO1g9cGEodGhpcy5tLDE1KTt1YT1xYShYKTtZPXBhKHRoaXMubCw3KTt2YT1xYShZKTtmb3IoTz0yODY7MjU3PE8mJjA9PT1YW08tMV07Ty0tKTtmb3IoUD0zMDsxPFAmJjA9PT1ZW1AtMV07UC0tKTt2YXIgeWE9Tyx6YT1QLEY9bmV3IChDP1VpbnQzMkFycmF5OkFycmF5KSh5YSt6YSkscixHLHYsWixFPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzE2KSxELEEsSD1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMTkpO2ZvcihyPUc9MDtyPHlhO3IrKylGW0crK109WFtyXTtmb3Iocj0wO3I8emE7cisrKUZbRysrXT1ZW3JdO2lmKCFDKXtyPTA7Zm9yKFo9SC5sZW5ndGg7cjxaOysrcilIW3JdPTA7fXI9RD0wO2ZvcihaPUYubGVuZ3RoO3I8WjtyKz1HKXtmb3IoRz0xO3IrRzxaJiZGW3IrR109PT1GW3JdOysrRyk7dj1HO2lmKDA9PT1GW3JdKWlmKDM+dilmb3IoOzA8di0tOylFW0QrK109MCwKICAgIAlIWzBdKys7ZWxzZSBmb3IoOzA8djspQT0xMzg+dj92OjEzOCxBPnYtMyYmQTx2JiYoQT12LTMpLDEwPj1BPyhFW0QrK109MTcsRVtEKytdPUEtMyxIWzE3XSsrKTooRVtEKytdPTE4LEVbRCsrXT1BLTExLEhbMThdKyspLHYtPUE7ZWxzZSBpZihFW0QrK109RltyXSxIW0Zbcl1dKyssdi0tLDM+dilmb3IoOzA8di0tOylFW0QrK109RltyXSxIW0Zbcl1dKys7ZWxzZSBmb3IoOzA8djspQT02PnY/djo2LEE+di0zJiZBPHYmJihBPXYtMyksRVtEKytdPTE2LEVbRCsrXT1BLTMsSFsxNl0rKyx2LT1BO31mPUM/RS5zdWJhcnJheSgwLEQpOkUuc2xpY2UoMCxEKTtnYT1wYShILDcpO2Zvcih5PTA7MTk+eTt5KyspamFbeV09Z2FbTGFbeV1dO2ZvcihRPTE5OzQ8USYmMD09PWphW1EtMV07US0tKTt3YT1xYShnYSk7Qi5iKE8tMjU3LDUsdyk7Qi5iKFAtMSw1LHcpO0IuYihRLTQsNCx3KTtmb3IoeT0wO3k8UTt5KyspQi5iKGphW3ldLDMsdyk7eT0wO2Zvcih4YT1mLmxlbmd0aDt5PHhhO3krKylpZihSPQogICAgCWZbeV0sQi5iKHdhW1JdLGdhW1JdLHcpLDE2PD1SKXt5Kys7c3dpdGNoKFIpe2Nhc2UgMTY6aGE9MjticmVhaztjYXNlIDE3OmhhPTM7YnJlYWs7Y2FzZSAxODpoYT03O2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29kZTogIitSO31CLmIoZlt5XSxoYSx3KTt9dmFyIEFhPVt1YSxYXSxCYT1bdmEsWV0sSSxDYSwkLG1hLERhLEVhLEZhLEdhO0RhPUFhWzBdO0VhPUFhWzFdO0ZhPUJhWzBdO0dhPUJhWzFdO0k9MDtmb3IoQ2E9Si5sZW5ndGg7STxDYTsrK0kpaWYoJD1KW0ldLEIuYihEYVskXSxFYVskXSx3KSwyNTY8JClCLmIoSlsrK0ldLEpbKytJXSx3KSxtYT1KWysrSV0sQi5iKEZhW21hXSxHYVttYV0sdyksQi5iKEpbKytJXSxKWysrSV0sdyk7ZWxzZSBpZigyNTY9PT0kKWJyZWFrO3RoaXMuYT1CLmZpbmlzaCgpO3RoaXMuYz10aGlzLmEubGVuZ3RoO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29tcHJlc3Npb24gdHlwZSI7fXJldHVybiB0aGlzLmF9OwogICAgCWZ1bmN0aW9uIHJhKGYsZCl7dGhpcy5sZW5ndGg9Zjt0aGlzLms9ZDt9CiAgICAJdmFyIHNhPWZ1bmN0aW9uKCl7ZnVuY3Rpb24gZihiKXtzd2l0Y2godyl7Y2FzZSAzPT09YjpyZXR1cm4gWzI1NyxiLTMsMF07Y2FzZSA0PT09YjpyZXR1cm4gWzI1OCxiLTQsMF07Y2FzZSA1PT09YjpyZXR1cm4gWzI1OSxiLTUsMF07Y2FzZSA2PT09YjpyZXR1cm4gWzI2MCxiLTYsMF07Y2FzZSA3PT09YjpyZXR1cm4gWzI2MSxiLTcsMF07Y2FzZSA4PT09YjpyZXR1cm4gWzI2MixiLTgsMF07Y2FzZSA5PT09YjpyZXR1cm4gWzI2MyxiLTksMF07Y2FzZSAxMD09PWI6cmV0dXJuIFsyNjQsYi0xMCwwXTtjYXNlIDEyPj1iOnJldHVybiBbMjY1LGItMTEsMV07Y2FzZSAxND49YjpyZXR1cm4gWzI2NixiLTEzLDFdO2Nhc2UgMTY+PWI6cmV0dXJuIFsyNjcsYi0xNSwxXTtjYXNlIDE4Pj1iOnJldHVybiBbMjY4LGItMTcsMV07Y2FzZSAyMj49YjpyZXR1cm4gWzI2OSxiLTE5LDJdO2Nhc2UgMjY+PWI6cmV0dXJuIFsyNzAsYi0yMywyXTtjYXNlIDMwPj1iOnJldHVybiBbMjcxLGItMjcsMl07Y2FzZSAzND49YjpyZXR1cm4gWzI3MiwKICAgIAliLTMxLDJdO2Nhc2UgNDI+PWI6cmV0dXJuIFsyNzMsYi0zNSwzXTtjYXNlIDUwPj1iOnJldHVybiBbMjc0LGItNDMsM107Y2FzZSA1OD49YjpyZXR1cm4gWzI3NSxiLTUxLDNdO2Nhc2UgNjY+PWI6cmV0dXJuIFsyNzYsYi01OSwzXTtjYXNlIDgyPj1iOnJldHVybiBbMjc3LGItNjcsNF07Y2FzZSA5OD49YjpyZXR1cm4gWzI3OCxiLTgzLDRdO2Nhc2UgMTE0Pj1iOnJldHVybiBbMjc5LGItOTksNF07Y2FzZSAxMzA+PWI6cmV0dXJuIFsyODAsYi0xMTUsNF07Y2FzZSAxNjI+PWI6cmV0dXJuIFsyODEsYi0xMzEsNV07Y2FzZSAxOTQ+PWI6cmV0dXJuIFsyODIsYi0xNjMsNV07Y2FzZSAyMjY+PWI6cmV0dXJuIFsyODMsYi0xOTUsNV07Y2FzZSAyNTc+PWI6cmV0dXJuIFsyODQsYi0yMjcsNV07Y2FzZSAyNTg9PT1iOnJldHVybiBbMjg1LGItMjU4LDBdO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgbGVuZ3RoOiAiK2I7fX12YXIgZD1bXSxjLGU7Zm9yKGM9MzsyNTg+PWM7YysrKWU9ZihjKSxkW2NdPWVbMl08PDI0fAogICAgCWVbMV08PDE2fGVbMF07cmV0dXJuIGR9KCksSGE9Qz9uZXcgVWludDMyQXJyYXkoc2EpOnNhOwogICAgCWZ1bmN0aW9uIG9hKGYsZCl7ZnVuY3Rpb24gYyhiLGMpe3ZhciBhPWIuayxkPVtdLGU9MCxmO2Y9SGFbYi5sZW5ndGhdO2RbZSsrXT1mJjY1NTM1O2RbZSsrXT1mPj4xNiYyNTU7ZFtlKytdPWY+PjI0O3ZhciBnO3N3aXRjaCh3KXtjYXNlIDE9PT1hOmc9WzAsYS0xLDBdO2JyZWFrO2Nhc2UgMj09PWE6Zz1bMSxhLTIsMF07YnJlYWs7Y2FzZSAzPT09YTpnPVsyLGEtMywwXTticmVhaztjYXNlIDQ9PT1hOmc9WzMsYS00LDBdO2JyZWFrO2Nhc2UgNj49YTpnPVs0LGEtNSwxXTticmVhaztjYXNlIDg+PWE6Zz1bNSxhLTcsMV07YnJlYWs7Y2FzZSAxMj49YTpnPVs2LGEtOSwyXTticmVhaztjYXNlIDE2Pj1hOmc9WzcsYS0xMywyXTticmVhaztjYXNlIDI0Pj1hOmc9WzgsYS0xNywzXTticmVhaztjYXNlIDMyPj1hOmc9WzksYS0yNSwzXTticmVhaztjYXNlIDQ4Pj1hOmc9WzEwLGEtMzMsNF07YnJlYWs7Y2FzZSA2ND49YTpnPVsxMSxhLTQ5LDRdO2JyZWFrO2Nhc2UgOTY+PWE6Zz1bMTIsYS0KICAgIAk2NSw1XTticmVhaztjYXNlIDEyOD49YTpnPVsxMyxhLTk3LDVdO2JyZWFrO2Nhc2UgMTkyPj1hOmc9WzE0LGEtMTI5LDZdO2JyZWFrO2Nhc2UgMjU2Pj1hOmc9WzE1LGEtMTkzLDZdO2JyZWFrO2Nhc2UgMzg0Pj1hOmc9WzE2LGEtMjU3LDddO2JyZWFrO2Nhc2UgNTEyPj1hOmc9WzE3LGEtMzg1LDddO2JyZWFrO2Nhc2UgNzY4Pj1hOmc9WzE4LGEtNTEzLDhdO2JyZWFrO2Nhc2UgMTAyND49YTpnPVsxOSxhLTc2OSw4XTticmVhaztjYXNlIDE1MzY+PWE6Zz1bMjAsYS0xMDI1LDldO2JyZWFrO2Nhc2UgMjA0OD49YTpnPVsyMSxhLTE1MzcsOV07YnJlYWs7Y2FzZSAzMDcyPj1hOmc9WzIyLGEtMjA0OSwxMF07YnJlYWs7Y2FzZSA0MDk2Pj1hOmc9WzIzLGEtMzA3MywxMF07YnJlYWs7Y2FzZSA2MTQ0Pj1hOmc9WzI0LGEtNDA5NywxMV07YnJlYWs7Y2FzZSA4MTkyPj1hOmc9WzI1LGEtNjE0NSwxMV07YnJlYWs7Y2FzZSAxMjI4OD49YTpnPVsyNixhLTgxOTMsMTJdO2JyZWFrO2Nhc2UgMTYzODQ+PQogICAgCWE6Zz1bMjcsYS0xMjI4OSwxMl07YnJlYWs7Y2FzZSAyNDU3Nj49YTpnPVsyOCxhLTE2Mzg1LDEzXTticmVhaztjYXNlIDMyNzY4Pj1hOmc9WzI5LGEtMjQ1NzcsMTNdO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgZGlzdGFuY2UiO31mPWc7ZFtlKytdPWZbMF07ZFtlKytdPWZbMV07ZFtlKytdPWZbMl07dmFyIGssbTtrPTA7Zm9yKG09ZC5sZW5ndGg7azxtOysraylsW2grK109ZFtrXTtzW2RbMF1dKys7eFtkWzNdXSsrO3E9Yi5sZW5ndGgrYy0xO3U9bnVsbDt9dmFyIGUsYixhLGcsbSxrPXt9LHAsdCx1LGw9Qz9uZXcgVWludDE2QXJyYXkoMipkLmxlbmd0aCk6W10saD0wLHE9MCxzPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMjg2KSx4PW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzApLGZhPWYuaSx6O2lmKCFDKXtmb3IoYT0wOzI4NT49YTspc1thKytdPTA7Zm9yKGE9MDsyOT49YTspeFthKytdPTA7fXNbMjU2XT0xO2U9MDtmb3IoYj1kLmxlbmd0aDtlPGI7KytlKXthPQogICAgCW09MDtmb3IoZz0zO2E8ZyYmZSthIT09YjsrK2EpbT1tPDw4fGRbZSthXTtrW21dPT09biYmKGtbbV09W10pO3A9a1ttXTtpZighKDA8cS0tKSl7Zm9yKDswPHAubGVuZ3RoJiYzMjc2ODxlLXBbMF07KXAuc2hpZnQoKTtpZihlKzM+PWIpe3UmJmModSwtMSk7YT0wO2ZvcihnPWItZTthPGc7KythKXo9ZFtlK2FdLGxbaCsrXT16LCsrc1t6XTticmVha30wPHAubGVuZ3RoPyh0PUlhKGQsZSxwKSx1P3UubGVuZ3RoPHQubGVuZ3RoPyh6PWRbZS0xXSxsW2grK109eiwrK3Nbel0sYyh0LDApKTpjKHUsLTEpOnQubGVuZ3RoPGZhP3U9dDpjKHQsMCkpOnU/Yyh1LC0xKTooej1kW2VdLGxbaCsrXT16LCsrc1t6XSk7fXAucHVzaChlKTt9bFtoKytdPTI1NjtzWzI1Nl0rKztmLm09cztmLmw9eDtyZXR1cm4gQz9sLnN1YmFycmF5KDAsaCk6bH0KICAgIAlmdW5jdGlvbiBJYShmLGQsYyl7dmFyIGUsYixhPTAsZyxtLGsscCx0PWYubGVuZ3RoO209MDtwPWMubGVuZ3RoO2E6Zm9yKDttPHA7bSsrKXtlPWNbcC1tLTFdO2c9MztpZigzPGEpe2ZvcihrPWE7MzxrO2stLSlpZihmW2Uray0xXSE9PWZbZCtrLTFdKWNvbnRpbnVlIGE7Zz1hO31mb3IoOzI1OD5nJiZkK2c8dCYmZltlK2ddPT09ZltkK2ddOykrK2c7Zz5hJiYoYj1lLGE9Zyk7aWYoMjU4PT09ZylicmVha31yZXR1cm4gbmV3IHJhKGEsZC1iKX0KICAgIAlmdW5jdGlvbiBwYShmLGQpe3ZhciBjPWYubGVuZ3RoLGU9bmV3IGlhKDU3MiksYj1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoYyksYSxnLG0sayxwO2lmKCFDKWZvcihrPTA7azxjO2srKyliW2tdPTA7Zm9yKGs9MDtrPGM7KytrKTA8ZltrXSYmZS5wdXNoKGssZltrXSk7YT1BcnJheShlLmxlbmd0aC8yKTtnPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoZS5sZW5ndGgvMik7aWYoMT09PWEubGVuZ3RoKXJldHVybiBiW2UucG9wKCkuaW5kZXhdPTEsYjtrPTA7Zm9yKHA9ZS5sZW5ndGgvMjtrPHA7KytrKWFba109ZS5wb3AoKSxnW2tdPWFba10udmFsdWU7bT1KYShnLGcubGVuZ3RoLGQpO2s9MDtmb3IocD1hLmxlbmd0aDtrPHA7KytrKWJbYVtrXS5pbmRleF09bVtrXTtyZXR1cm4gYn0KICAgIAlmdW5jdGlvbiBKYShmLGQsYyl7ZnVuY3Rpb24gZShhKXt2YXIgYj1rW2FdW3BbYV1dO2I9PT1kPyhlKGErMSksZShhKzEpKTotLWdbYl07KytwW2FdO312YXIgYj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGMpLGE9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGMpLGc9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGQpLG09QXJyYXkoYyksaz1BcnJheShjKSxwPUFycmF5KGMpLHQ9KDE8PGMpLWQsdT0xPDxjLTEsbCxoLHEscyx4O2JbYy0xXT1kO2ZvcihoPTA7aDxjOysraCl0PHU/YVtoXT0wOihhW2hdPTEsdC09dSksdDw8PTEsYltjLTItaF09KGJbYy0xLWhdLzJ8MCkrZDtiWzBdPWFbMF07bVswXT1BcnJheShiWzBdKTtrWzBdPUFycmF5KGJbMF0pO2ZvcihoPTE7aDxjOysraCliW2hdPjIqYltoLTFdK2FbaF0mJihiW2hdPTIqYltoLTFdK2FbaF0pLG1baF09QXJyYXkoYltoXSksa1toXT1BcnJheShiW2hdKTtmb3IobD0wO2w8ZDsrK2wpZ1tsXT1jO2ZvcihxPTA7cTxiW2MtMV07KytxKW1bYy0KICAgIAkxXVtxXT1mW3FdLGtbYy0xXVtxXT1xO2ZvcihsPTA7bDxjOysrbClwW2xdPTA7MT09PWFbYy0xXSYmKC0tZ1swXSwrK3BbYy0xXSk7Zm9yKGg9Yy0yOzA8PWg7LS1oKXtzPWw9MDt4PXBbaCsxXTtmb3IocT0wO3E8YltoXTtxKyspcz1tW2grMV1beF0rbVtoKzFdW3grMV0scz5mW2xdPyhtW2hdW3FdPXMsa1toXVtxXT1kLHgrPTIpOihtW2hdW3FdPWZbbF0sa1toXVtxXT1sLCsrbCk7cFtoXT0wOzE9PT1hW2hdJiZlKGgpO31yZXR1cm4gZ30KICAgIAlmdW5jdGlvbiBxYShmKXt2YXIgZD1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGYubGVuZ3RoKSxjPVtdLGU9W10sYj0wLGEsZyxtLGs7YT0wO2ZvcihnPWYubGVuZ3RoO2E8ZzthKyspY1tmW2FdXT0oY1tmW2FdXXwwKSsxO2E9MTtmb3IoZz0xNjthPD1nO2ErKyllW2FdPWIsYis9Y1thXXwwLGI8PD0xO2E9MDtmb3IoZz1mLmxlbmd0aDthPGc7YSsrKXtiPWVbZlthXV07ZVtmW2FdXSs9MTttPWRbYV09MDtmb3Ioaz1mW2FdO208azttKyspZFthXT1kW2FdPDwxfGImMSxiPj4+PTE7fXJldHVybiBkfWZ1bmN0aW9uIEthKGYsZCl7dGhpcy5pbnB1dD1mO3RoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO3RoaXMuZD1WLmc7dmFyIGM9e30sZTtpZigoZHx8IShkPXt9KSkmJiJudW1iZXIiPT09dHlwZW9mIGQuY29tcHJlc3Npb25UeXBlKXRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZTtmb3IoZSBpbiBkKWNbZV09ZFtlXTtjLm91dHB1dEJ1ZmZlcj10aGlzLmE7dGhpcy5qPW5ldyBrYSh0aGlzLmlucHV0LGMpO312YXIgVj1uYTsKICAgIAlLYS5wcm90b3R5cGUuZj1mdW5jdGlvbigpe3ZhciBmLGQsYyxlLGIsYSxnPTA7YT10aGlzLmE7c3dpdGNoKDgpe2Nhc2UgODpmPU1hdGguTE9HMkUqTWF0aC5sb2coMzI3NjgpLTg7YnJlYWs7ZGVmYXVsdDp0aHJvdyBFcnJvcigiaW52YWxpZCBjb21wcmVzc2lvbiBtZXRob2QiKTt9ZD1mPDw0fDg7YVtnKytdPWQ7c3dpdGNoKDgpe2Nhc2UgODpzd2l0Y2godGhpcy5kKXtjYXNlIFYuTk9ORTplPTA7YnJlYWs7Y2FzZSBWLmg6ZT0xO2JyZWFrO2Nhc2UgVi5nOmU9MjticmVhaztkZWZhdWx0OnRocm93IEVycm9yKCJ1bnN1cHBvcnRlZCBjb21wcmVzc2lvbiB0eXBlIik7fWJyZWFrO2RlZmF1bHQ6dGhyb3cgRXJyb3IoImludmFsaWQgY29tcHJlc3Npb24gbWV0aG9kIik7fWM9ZTw8NnwwO2FbZysrXT1jfDMxLSgyNTYqZCtjKSUzMTt2YXIgbT10aGlzLmlucHV0O2lmKCJzdHJpbmciPT09dHlwZW9mIG0pe3ZhciBrPW0uc3BsaXQoIiIpLHAsdDtwPTA7Zm9yKHQ9ay5sZW5ndGg7cDx0O3ArKylrW3BdPQogICAgCShrW3BdLmNoYXJDb2RlQXQoMCkmMjU1KT4+PjA7bT1rO31mb3IodmFyIHU9MSxsPTAsaD1tLmxlbmd0aCxxLHM9MDswPGg7KXtxPTEwMjQ8aD8xMDI0Omg7aC09cTtkbyB1Kz1tW3MrK10sbCs9dTt3aGlsZSgtLXEpO3UlPTY1NTIxO2wlPTY1NTIxO31iPShsPDwxNnx1KT4+PjA7dGhpcy5qLmM9ZzthPXRoaXMuai5mKCk7Zz1hLmxlbmd0aDtDJiYoYT1uZXcgVWludDhBcnJheShhLmJ1ZmZlciksYS5sZW5ndGg8PWcrNCYmKHRoaXMuYT1uZXcgVWludDhBcnJheShhLmxlbmd0aCs0KSx0aGlzLmEuc2V0KGEpLGE9dGhpcy5hKSxhPWEuc3ViYXJyYXkoMCxnKzQpKTthW2crK109Yj4+MjQmMjU1O2FbZysrXT1iPj4xNiYyNTU7YVtnKytdPWI+PjgmMjU1O2FbZysrXT1iJjI1NTtyZXR1cm4gYX07YmEoIlpsaWIuRGVmbGF0ZSIsS2EpO2JhKCJabGliLkRlZmxhdGUuY29tcHJlc3MiLGZ1bmN0aW9uKGYsZCl7cmV0dXJuIChuZXcgS2EoZixkKSkuZigpfSk7YmEoIlpsaWIuRGVmbGF0ZS5wcm90b3R5cGUuY29tcHJlc3MiLEthLnByb3RvdHlwZS5mKTt2YXIgTWE9e05PTkU6Vi5OT05FLEZJWEVEOlYuaCxEWU5BTUlDOlYuZ30sTmEsT2EsVyxQYTtpZihPYmplY3Qua2V5cylOYT1PYmplY3Qua2V5cyhNYSk7ZWxzZSBmb3IoT2EgaW4gTmE9W10sVz0wLE1hKU5hW1crK109T2E7Vz0wO2ZvcihQYT1OYS5sZW5ndGg7VzxQYTsrK1cpT2E9TmFbV10sYmEoIlpsaWIuRGVmbGF0ZS5Db21wcmVzc2lvblR5cGUuIitPYSxNYVtPYV0pO30pLmNhbGwobW9kdWxlLmV4cG9ydHMpOyAKICAgIH0gKGRlZmxhdGVfbWluKSk7CgogICAgdmFyIGRlZmxhdGVfbWluRXhwb3J0cyA9IGRlZmxhdGVfbWluLmV4cG9ydHM7CiAgICB2YXIgWkxpYkRlZmxhdGUgPSAvKkBfX1BVUkVfXyovZ2V0RGVmYXVsdEV4cG9ydEZyb21DanMoZGVmbGF0ZV9taW5FeHBvcnRzKTsKCiAgICBmdW5jdGlvbiB0b1VURjhBcnJheShzdHIpIHsKICAgICAgICB2YXIgdXRmOCA9IFtdOwogICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgc3RyLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIHZhciBjaGFyY29kZSA9IHN0ci5jaGFyQ29kZUF0KGkpOwogICAgICAgICAgICBpZiAoY2hhcmNvZGUgPCAweDgwKQogICAgICAgICAgICAgICAgdXRmOC5wdXNoKGNoYXJjb2RlKTsKICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweDgwMCkgewogICAgICAgICAgICAgICAgdXRmOC5wdXNoKDB4YzAgfCAoY2hhcmNvZGUgPj4gNiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweGQ4MDAgfHwgY2hhcmNvZGUgPj0gMHhlMDAwKSB7CiAgICAgICAgICAgICAgICB1dGY4LnB1c2goMHhlMCB8IChjaGFyY29kZSA+PiAxMiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICAvLyBzdXJyb2dhdGUgcGFpcgogICAgICAgICAgICAgICAgaSsrOwogICAgICAgICAgICAgICAgLy8gVVRGLTE2IGVuY29kZXMgMHgxMDAwMC0weDEwRkZGRiBieQogICAgICAgICAgICAgICAgLy8gc3VidHJhY3RpbmcgMHgxMDAwMCBhbmQgc3BsaXR0aW5nIHRoZQogICAgICAgICAgICAgICAgLy8gMjAgYml0cyBvZiAweDAtMHhGRkZGRiBpbnRvIHR3byBoYWx2ZXMKICAgICAgICAgICAgICAgIGNoYXJjb2RlID0gMHgxMDAwMCArICgoKGNoYXJjb2RlICYgMHgzZmYpIDw8IDEwKSB8CiAgICAgICAgICAgICAgICAgICAgKHN0ci5jaGFyQ29kZUF0KGkpICYgMHgzZmYpKTsKICAgICAgICAgICAgICAgIHV0ZjgucHVzaCgweGYwIHwgKGNoYXJjb2RlID4+IDE4KSwgMHg4MCB8ICgoY2hhcmNvZGUgPj4gMTIpICYgMHgzZiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHV0Zjg7CiAgICB9CgogICAgdmFyIFpsaWIgPSB7CiAgICAgICAgJ0RlZmxhdGUnOiBaTGliRGVmbGF0ZS5abGliLkRlZmxhdGUKICAgIH07CiAgICB2YXIgRW5jb2RpbmcgPSB7CiAgICAgICAgJ2Jhc2U2NFVybCc6ICdiYXNlNjR1cmwnLAogICAgICAgICdiaW5hcnknOiAnYmluYXJ5JwogICAgfTsKICAgIGZ1bmN0aW9uIGNvbXByZXNzKGpzb25fb2JqLCBlbmNvZGluZykgewogICAgICAgIGlmICghZW5jb2RpbmcpIHsKICAgICAgICAgICAgZW5jb2RpbmcgPSBFbmNvZGluZy5iYXNlNjRVcmw7CiAgICAgICAgfQogICAgICAgIC8qIC0tIFRoaXMgaXMgWkxJQiAqLwogICAgICAgIHZhciBjb21wcmVzc0RhdGEgPSB0b1VURjhBcnJheSh0eXBlb2YganNvbl9vYmogPT09ICdzdHJpbmcnID8ganNvbl9vYmogOiBKU09OLnN0cmluZ2lmeShqc29uX29iaikpOwogICAgICAgIHZhciBkZWZsYXRlID0gbmV3IFpsaWIuRGVmbGF0ZShjb21wcmVzc0RhdGEpOwogICAgICAgIHZhciBjb21wcmVzc2VkQnl0ZXMgPSBkZWZsYXRlLmNvbXByZXNzKCk7CiAgICAgICAgaWYgKGVuY29kaW5nID09PSBFbmNvZGluZy5iYXNlNjRVcmwpIHsKICAgICAgICAgICAgcmV0dXJuIGI2NC51aW50OFRvQmFzZTY0KGNvbXByZXNzZWRCeXRlcyk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICByZXR1cm4gY29tcHJlc3NlZEJ5dGVzOwogICAgICAgIH0KICAgIH0KCiAgICB2YXIgT05FX0hVTkRSRURfTUJfSU5fQllURVMgPSAxMDAgKiAxMDI0ICogMTAyNDsKICAgIGZ1bmN0aW9uIG1hdGNoSG9zdGVkUmVzb3VyY2VzKHJlY29yZGluZ0V2ZW50LCBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQpIHsKICAgICAgICB2YXIgZm9udFVSTFJlZ2V4ID0gL2h0dHBzOlwvXC9bXlxzXSs/XC4od29mZnx3b2ZmMnx0dGZ8b3RmfGVvdClcYi9nOwogICAgICAgIHZhciBob3N0ZWRSZXNvdXJjZXMgPSBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQubWF0Y2goZm9udFVSTFJlZ2V4KTsKICAgICAgICByZXR1cm4gewogICAgICAgICAgICAndHlwZSc6ICdyZWNvcmRpbmcnLAogICAgICAgICAgICAndmlzaXRvcklkJzogcmVjb3JkaW5nRXZlbnQudmlzaXRvcklkLAogICAgICAgICAgICAnYWNjb3VudElkJzogcmVjb3JkaW5nRXZlbnQuYWNjb3VudElkLAogICAgICAgICAgICAna2V5RnJhbWUnOiBmYWxzZSwKICAgICAgICAgICAgJ2xhc3RLZXlGcmFtZSc6IHJlY29yZGluZ0V2ZW50Lmxhc3RLZXlGcmFtZSwKICAgICAgICAgICAgJ3JlY29yZGluZ0lkJzogcmVjb3JkaW5nRXZlbnQucmVjb3JkaW5nSWQsCiAgICAgICAgICAgICdyZWNvcmRpbmdTZXNzaW9uSWQnOiByZWNvcmRpbmdFdmVudC5yZWNvcmRpbmdTZXNzaW9uSWQsCiAgICAgICAgICAgICd1cmwnOiByZWNvcmRpbmdFdmVudC51cmwsCiAgICAgICAgICAgICdzdWJUeXBlJzogJ2hvc3RlZFJlc291cmNlcycsCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkJzogW10sCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkTWV0YWRhdGEnOiBbXSwKICAgICAgICAgICAgJ3NlcXVlbmNlJzogMCwKICAgICAgICAgICAgJ3JlY29yZGluZ1BheWxvYWRDb3VudCc6IDAsCiAgICAgICAgICAgICdob3N0ZWRSZXNvdXJjZXMnOiBob3N0ZWRSZXNvdXJjZXMgfHwgW10KICAgICAgICB9OwogICAgfQogICAgLy8ga2VlcCBpbiBtaW5kIGNoYW5nZXMgaGVyZSBtYXkgbmVlZCBhZGRyZXNzaW5nIGluIHRoZSBleHRlbnNpb24gd29ya2VyIHByb3h5IGFzIHdlbGwKICAgIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBpZiAoZS5kYXRhLnVybCAmJiBlLmRhdGEucGF5bG9hZCkgewogICAgICAgICAgICAgICAgdmFyIF9hID0gZS5kYXRhLCB1cmwgPSBfYS51cmwsIHBheWxvYWQgPSBfYS5wYXlsb2FkLCBzaG91bGRDYWNoZVJlc291cmNlcyA9IF9hLnNob3VsZENhY2hlUmVzb3VyY2VzOwogICAgICAgICAgICAgICAgdmFyIHNlcXVlbmNlXzEgPSBwYXlsb2FkLnNlcXVlbmNlOwogICAgICAgICAgICAgICAgdmFyIHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCA9IEpTT04uc3RyaW5naWZ5KHBheWxvYWQucmVjb3JkaW5nUGF5bG9hZCk7CiAgICAgICAgICAgICAgICAvLyBjYWxjdWxhdGUgYW5kIHBvc3QgYmFjayB0aGUgcmVjb3JkaW5nIHBheWxvYWQgc2l6ZSBiZWZvcmUgdGhlIHBheWxvYWQgaXMgY29tcHJlc3NlZAogICAgICAgICAgICAgICAgdmFyIHJlY29yZGluZ1BheWxvYWRTaXplID0gbmV3IFRleHRFbmNvZGVyKCkuZW5jb2RlKHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCkubGVuZ3RoOwogICAgICAgICAgICAgICAgdmFyIGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0ID0gcmVjb3JkaW5nUGF5bG9hZFNpemUgPj0gT05FX0hVTkRSRURfTUJfSU5fQllURVM7CiAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAncmVjb3JkaW5nUGF5bG9hZFNpemUnLAogICAgICAgICAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkU2l6ZSc6IHJlY29yZGluZ1BheWxvYWRTaXplLAogICAgICAgICAgICAgICAgICAgICdleGNlZWRzUGF5bG9hZFNpemVMaW1pdCc6IGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIC8vIGRvbid0IGF0dGVtcHQgdG8gc2VuZCB0aGUgcGF5bG9hZCBpZiBpdCBleGNlZWRzIHRoZSBhbGxvd2VkIGxpbWl0CiAgICAgICAgICAgICAgICBpZiAoZXhjZWVkc1BheWxvYWRTaXplTGltaXQpCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgaWYgKHNob3VsZENhY2hlUmVzb3VyY2VzKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGhvc3RlZFJlc291cmNlc0V2ZW50ID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXMocGF5bG9hZCwgc3RyaW5naWZpZWRSZWNvcmRpbmdQYXlsb2FkKTsKICAgICAgICAgICAgICAgICAgICBpZiAoaG9zdGVkUmVzb3VyY2VzRXZlbnQuaG9zdGVkUmVzb3VyY2VzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAndHlwZSc6ICdob3N0ZWRSZXNvdXJjZXMnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2hvc3RlZFJlc291cmNlc0V2ZW50JzogaG9zdGVkUmVzb3VyY2VzRXZlbnQKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcGF5bG9hZC5yZWNvcmRpbmdTaXplID0gcmVjb3JkaW5nUGF5bG9hZFNpemU7CiAgICAgICAgICAgICAgICB2YXIgYm9keSA9IGNvbXByZXNzKHBheWxvYWQsICdiaW5hcnknKTsKICAgICAgICAgICAgICAgIC8vIHdlIHdhbnQgdG8gY2FsY3VsYXRlIGN0IChjdXJyZW50IHRpbWUpIGFzIGNsb3NlIGFzIHdlIGNhbiB0byB0aGUgYWN0dWFsIFBPU1QgcmVxdWVzdAogICAgICAgICAgICAgICAgLy8gc28gdGhhdCBpdCdzIGFzIGFjY3VyYXRlIGFzIHBvc3NpYmxlCiAgICAgICAgICAgICAgICB1cmwgPSAiIi5jb25jYXQodXJsLCAiJmN0PSIpLmNvbmNhdChuZXcgRGF0ZSgpLmdldFRpbWUoKSk7CiAgICAgICAgICAgICAgICBmZXRjaCh1cmwsIHsKICAgICAgICAgICAgICAgICAgICAnbWV0aG9kJzogJ1BPU1QnLAogICAgICAgICAgICAgICAgICAgICdib2R5JzogYm9keQogICAgICAgICAgICAgICAgfSkudGhlbihmdW5jdGlvbiAocmVzcG9uc2UpIHsKICAgICAgICAgICAgICAgICAgICBpZiAocmVzcG9uc2Uuc3RhdHVzIDwgMjAwIHx8IHJlc3BvbnNlLnN0YXR1cyA+PSAzMDApIHsKICAgICAgICAgICAgICAgICAgICAgICAgcG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogbmV3IEVycm9yKCJyZWNlaXZlZCBzdGF0dXMgY29kZSAiLmNvbmNhdChyZXNwb25zZS5zdGF0dXMsICI6ICIpLmNvbmNhdChyZXNwb25zZS5zdGF0dXNUZXh0KSksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnc3RhdHVzJzogcmVzcG9uc2Uuc3RhdHVzLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXF1ZW5jZTogc2VxdWVuY2VfMQogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KVsnY2F0Y2gnXShmdW5jdGlvbiAoZSkgewogICAgICAgICAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogZSwKICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGNhdGNoIChlKSB7CiAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICdlcnJvcic6IGUKICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfTsKCiAgICBleHBvcnRzLm1hdGNoSG9zdGVkUmVzb3VyY2VzID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXM7CgogICAgcmV0dXJuIGV4cG9ydHM7Cgp9KSh7fSk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdvcmtlci5qcy5tYXAKCg==",null,!1);function loadAgent(i){var u=function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");return{uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}}}(),Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var t={exports:{}},r=(!function(h){!function(){var s="object"==typeof window?window:{},i=!s.JS_SHA1_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node,e=(i&&(s=Bt),!s.JS_SHA1_NO_COMMON_JS&&h.exports),o="0123456789abcdef".split(""),n=[-2147483648,8388608,32768,128],d=[24,16,8,0],r=["hex","array","digest","arrayBuffer"],t=[],a=function(t){return function(e){return new l(!0).update(e)[t]()}},u=function(){var t=a("hex");(t=i?c(t):t).create=function(){return new l},t.update=function(e){return t.create().update(e)};for(var e=0;e<r.length;++e){var n=r[e];t[n]=a(n)}return t},c=function(t){var n=eval("require('crypto')"),i=eval("require('buffer').Buffer"),e=function(e){if("string"==typeof e)return n.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(e.length===undefined)return t(e);return n.createHash("sha1").update(new i(e)).digest("hex")};return e};function l(e){e?(t[0]=t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0,this.blocks=t):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}l.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===s.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<d[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<d[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<d[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<d[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<d[3&n++],a[n>>2]|=(128|t>>12&63)<<d[3&n++]),a[n>>2]|=(128|t>>6&63)<<d[3&n++]),a[n>>2]|=(128|63&t)<<d[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},l.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=n[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},l.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+a[s+4]<<0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+a[s+4]<<0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+a[s+4]<<0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+a[s+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+r<<0,this.h4=this.h4+o<<0},l.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},l.prototype.toString=l.prototype.hex,l.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},l.prototype.array=l.prototype.digest,l.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var p=u();e?h.exports=p:s.sha1=p}()}(t),t.exports),R=e(r),o,a={createScriptURL:function(e){return e},createHTML:function(e){return e}};function Te(e){return o||(o=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",a):a),e.trustedTypesPolicy=o),o}var k="stagingServerHashes",C,O={};function N(e){return e.loadAsModule}function M(e){e=N(e)?{}:window;return C=e.pendo=e.pendo||{}}function L(e){return"staging"===e.environmentName}function F(e){return!e.unminified}function P(e){return"extension"===e.installType}function G(e){return!P(e)&&!L(e)&&U(e)}function D(e,t){return!P(e)&&F(e)&&t}function B(e){void 0===e&&(e=[]);for(var t=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g,n=0;n<e.length;n++){var i=e[n];if(t.test(i.src))return i.src.replace(/\.js$/,"-staging.js")}}function W(e,t,n){e=B(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function U(e,t){if(L(e=e||he()))return!0;if(t=t||window.location,j(e))for(var n=$(t.host),i=0,r=e[k].length;i<r;++i)if(e[k][i]===n)return!0;if(z(e))for(var o=0,a=e.stagingServers.length;o<a;++o){var s=e.stagingServers[o];if((s="string"==typeof s?new RegExp("^"+s+"$"):s)instanceof RegExp&&s.test(t.host))return!0}return!1}function $(e){return u.uint8ToBase64(R.create().update(e).digest())}function j(e){return e&&e.stagingAgentUrl&&e[k]}function z(e){return e&&e.stagingAgentUrl&&e.stagingServers}var Z=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function V(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function Y(e,t){t[e]=t[e]||function(){V(t,e,arguments)}}function H(e){if(!e._q)for(var t=Z,n=0,i=t.length;n<i;++n)Y(t[n],e)}function de(e,t,n){if(G(e)){e=W(e,!0,n);if(e)return H(t),le(e,t),!0}return!1}function ue(e,t,n){if(D(e,n)){e=W(e,!1,n);if(e)return H(t),le(e,t),!0}return!1}function ce(e,t,n){return de(e,t,n)||ue(e,t,n)}function le(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=Te(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function pe(e){O=e}function he(){return O}function fe(){return void 0===i?{}:i}function ge(e){return he()[e]}var me=ve(window.setTimeout,window);function ve(e,t){return"function"==typeof e.bind?e.bind(t):e}var me=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return ve(e[t],e)}(window),Dt=me,ye={exports:{}},be=(!function(){var e;e=function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},i=Array.prototype,P=Object.prototype,G="undefined"!=typeof Symbol?Symbol.prototype:null,D=i.push,d=i.slice,l=P.toString,B=P.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),W=Array.isArray,U=Object.keys,$=Object.create,j=t&&ArrayBuffer.isView,z=isNaN,Z=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),Y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],H=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function K(e){return void 0===e}function X(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var J=r("String"),q=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=W||r("Array");function g(e,t){return null!=e&&B.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return q(e)&&z(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=H}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=Y.length,i=e.constructor,r=p(i)&&i.prototype||P,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=Y[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(U)return U(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return G.valueOf.call(e)===G.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==we||!p(e[Ie])}}var Ie="forEach",e=["clear","delete"],n=["get","has","set"],W=e.concat(Ie,n),we=e.concat(n),t=["add"].concat(e,Ie,"has"),n=a?be(W):r("Map"),e=a?be(we):r("WeakMap"),W=a?be(t):r("Set"),a=r("WeakSet");function I(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ce(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Se(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ae(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var Te=Ae(u),s=Ae(y),_e=Ae(u,!0);function Ee(e){var t;return o(e)?$?$(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function xe(e){return f(e)?e:[e]}function w(e){return b.toPath(e)}function Re(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function ke(e,t,n){e=Re(e,w(t));return K(e)?n:e}function Oe(e){return e}function C(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=w(t),function(e){return Re(e,t)}}function S(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?S(e,t,n):(o(e)&&!f(e)?C:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function A(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Fe(){}function Pe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=xe,b.iteratee=Le;var T=Date.now||function(){return(new Date).getTime()};function Ge(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},De=Ge(t),t=Ge(Ce(t)),Be=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},We=/(.)^/,Ue={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},$e=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+Ue[e]}var ze=/^\s*(\w|\$)+\s*$/;var Ze=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Ee(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var _=c(function(r,o){var a=_.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Ye=(_.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),E=ue(v);function x(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(E(s)&&(f(s)||ae(s)))if(1<t)x(s,t-1,n,i),r=i.length;else for(var d=0,u=s.length;d<u;)i[r++]=s[d++];else n||(i[r++]=s)}return i}var He=c(function(e,t){var n=(t=x(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ye(e[i],e)}return e});var Ke=c(function(e,t,n){return Dt(function(){return e.apply(null,n)},t)}),Xe=_(Ke,b,1);function Je(e){return function(){return!e.apply(this,arguments)}}function qe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=_(qe,2);function et(e,t,n){t=A(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=A(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=A(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(d.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function dt(e,t,n){t=(E(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function R(e,t,n){if(t=S(t,n),E(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function k(e,t,n){t=A(t,n);for(var i=!E(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=S(t,i,4),s=n,d=!E(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function O(e,i,t){var r=[];return i=A(i,t),R(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=A(t,n);for(var i=!E(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=A(t,n);for(var i=!E(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return E(e)||(e=I(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=w(n),r=n.slice(0,-1),n=n[n.length-1]),k(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Re(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return k(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=E(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=A(i,t),R(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):J(e)?e.match(vt):E(e)?k(e,Oe):I(e):[]}function bt(e,t,n){if(null==t||n)return(e=E(e)?e:I(e))[Pe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Pe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=A(i,e),R(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var It=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),wt=M(function(e,t,n){e[n]=t}),Ct=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),St=M(function(e,t,n){e[n?0:1].push(t)},!0);function At(e,t,n){return t in n}var Tt=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=S(i,t[1])),t=u(e)):(i=At,t=x(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),_t=c(function(e,n){var t,i=n[0];return p(i)?(i=Je(i),1<n.length&&(t=n[1])):(n=k(x(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Tt(e,i,t)});function Et(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function xt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Et(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var Rt=c(function(e,t){return t=x(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return Rt(e,t)});function Ot(e,t,n,i){X(t)||(i=n,n=t,t=!1),null!=n&&(n=A(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}return r}var Nt=c(function(e){return Ot(x(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Ft(e,t){return e._chain?b(t).chain():t}function Pt(n){return R(Se(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return D.apply(e,arguments),Ft(this,t.apply(b,e))}}),b}R(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Ft(this,e)}}),R(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Ft(this,e=null!=e?t.apply(e,arguments):e)}});var F=Pt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:X,isElement:function(e){return!(!e||1!==e.nodeType)},isString:J,isNumber:q,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&Z(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||J(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:W,isWeakSet:a,keys:y,allKeys:u,values:I,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ce,functions:Se,methods:Se,extend:Te,extendOwn:s,assign:s,defaults:_e,create:function(e,t){return e=Ee(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Te({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=w(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=A(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Fe,toPath:xe,property:Ne,propertyOf:function(t){return null==t?Fe:function(e){return ke(t,e)}},matcher:C,matches:C,times:function(e,t,n){var i=Array(Math.max(0,e));t=S(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Pe,now:T,escape:De,unescape:t,templateSettings:Be,template:function(o,e,t){e=_e({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||We).source,(e.interpolate||We).source,(e.evaluate||We).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace($e,je),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!ze.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=w(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++Ze+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:_,bind:Ye,bindAll:He,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:Ke,defer:Xe,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:T(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=T(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Dt(c,t)),d};return e.cancel=function(){clearTimeout(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=T()-o;e<n?r=Dt(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=T(),r||(r=Dt(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout(r),r=a=d=null},e},wrap:function(e,t){return _(t,e)},negate:Je,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:qe,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,C(t))},each:R,forEach:R,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Je(A(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,C(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=E(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=A(i,t),R(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=A(i,t),gt(k(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:It,indexBy:wt,countBy:Ct,partition:St,toArray:yt,size:function(e){return null==e?0:(E(e)?e:y(e)).length},pick:Tt,omit:_t,first:xt,head:xt,take:xt,initial:Et,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return x(e,t,!1)},without:kt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:Rt,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Pt,"default":b}),Gt=F.toPath;return F.mixin({toPath:function(e){return F.isString(e)?e.split("."):Gt(e)}}),F._=F},ye.exports=e()}(),ye.exports),K=e(be),Ie;function S(e){return!(null==e)}function we(e){return K.isFunction(e)||K.isRegExp(e)?e:K.isArray(e)?K.map(e,we):K.isObject(e)?K.reduce(e,function(e,t,n){return e[n]=we(t),e},{}):e}var m=function(){var i=K.all,r=K.each,o=K.filter,a=K.first,s=K.find,n=K.map,d=K.pluck,u="snippet",c="pendoconfig",l="global",p="default",h={};function e(e,t,n,i){void 0===t&&(t=[c]),e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,u]),e("allowedOriginServers"),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("apiKey",[c,u]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),e("forceAnonymous",[u,c],!1),e("identityStorageLifetime",[u,c]),e("identityStorageSuffix",[u,c]),e("ignoreHashRouting",[u,c]),e("initializeImmediately",[u,c],!1),e("installType"),e("localStorageOnly",[u,c]),e("location.pushState",[u,c],!0),e("maxCookieTTLDays",[u,c],Infinity),e("observeShadowRoots",[u,c],!1),e("pendoCore",[c],!0),e("preferBroadcastChannel",[u,c],!1),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedAgentUrl",[u,c]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[u,c],[]),e("analytics.excludeEvents",[u,c],[]),e("enableDebugEvents",[u,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[u,c],!1),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[u]),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disableGuides",[u]),e("disablePrefetch",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideTimeout",[u]),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u]),e("guides.disabled",[u]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1),e("previewModeAssetPath"),e("storage.allowKeys",[u],"*"),e("disableFeedback",[u]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[u,c]),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,u]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("forceParentDesigner",[u]),e("enableAllEmbeddedGuideEvents",[c],!1);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),S(e=K.get(t.lookup,(t=e,K.get(t,"key")||K.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new I(e.name,n,t)}function y(e,t){return t=t||K.get(e,"supportedSources",[u,c,l]),o(n(t,K.partial(v,e)),function(e){return S(e.value)})}function b(e,t,n){var i=g(e),e=new I(e,t=t||K.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&S(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function I(e,t,n){this.name=e,this.value=t,this.source=n}function w(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(d(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[u]=function(){return{lookup:Ie||window.pendo_options,name:u}},f[c]=function(){return{lookup:he(),name:c}},f[l]=function(){return{lookup:C,name:l}},I.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:w,get:function(e,t){return b(e,t).value},getLocalConfig:function(e,t){return arguments.length?b(e,t,[u]).value:we(Ie)},getHostedConfig:function(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig:function(e){Ie=e},options:function(){return d(h,"name")},sources:{SNIPPET_SRC:u,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate:function(t){t.groupCollapsed("Validate Config options"),r(w(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}(),Ce="prod",Se="extension",Ae="native";function _e(){return m.get("installType")||Ae}function Ee(e){return e===Ce?"pendo-static":xe(e)}function xe(e){var t;return e===Ce?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}function Re(e){return/native/.test(e)}var ke=function(e,t){return e=e||10,(t=!isNaN(Oe)&&(!t||Oe<t))&&d<e},d,Oe;function Ne(e){return parseInt(e,10)}var Me=function(e){return K.isString(e)?e.toLowerCase():e};function Le(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e}function Fe(){return(window.navigator||{}).userAgent}var Pe=function(e){var t=Ne((/msie (\d+)/.exec(Me(e))||[])[1]);return t=isNaN(t)?Ne((/trident\/.*; rv:(\d+)/.exec(Me(e))||[])[1]):t},d=Pe(Fe()),Ge=function(e,t){e=Ne((/trident\/(\d+)/.exec(Me(e))||[])[1]);return e=isNaN(e)&&7==t?3:e},Oe=Ge(Fe(),d),De={},Be=Ne((/android (\d+)/.exec(Me(Fe()))||[])[1]),We=/Boxee/i.test(Fe()),Ue=window.document||{},$e=Ue.documentMode,je,ze=/^(Moz|webkit|O|ms)(?=[A-Z])/,Ze=Ue.body&&Ue.body.style,Ve=!1,Ye=!1,He;if(Ze){for(var Ke in Ze)if(He=ze.exec(Ke),He){je=He[0],je=je.substr(0,1).toUpperCase()+je.substr(1);break}je=je||"WebkitOpacity"in Ze&&"webkit",Ve=!!("transition"in Ze||je+"Transition"in Ze),Ye=!!("animation"in Ze||je+"Animation"in Ze),!Be||Ve&&Ye||(Ve=K.isString(Ue.body.style.webkitTransition),Ye=K.isString(Ue.body.style.webkitAnimation))}var Xe=K.memoize(function Xe(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&K.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&K.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&K.get(n,"pushState.writable",!0)&&K.get(n,"replaceState.writable",!0),i=!(Be<4),r=_e()===Se;return!(!e||t||!n||!i||We||r)});function Je(){var e="onhashchange"in window,t=!$e||7<$e,n=_e()===Se;return!(!e||!t||n)}function qe(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Fe())}var l={supportsHistoryApi:Xe,supportsHashChange:Je,hasEvent:function(e){var t;return("input"!=e||9!=d)&&(K.isUndefined(De[e])&&(t=Ue.createElement("div"),De[e]="on"+e in t),De[e])},vendorPrefix:je,transitions:Ve,animations:Ye,android:Be,msie:d,msieDocumentMode:$e,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:K.isFunction(window.addEventListener),MutationObserver:Re(window.MutationObserver),isMinimumIEVersion:Le,isMobileUserAgent:K.memoize(qe)},Qe=function(){return!isNaN(d)&&11!=d&&"CSS1Compat"!==document.compatMode},et=function(e,t){var n,i=e.height,r=e.width;return"top"==e.arrowPosition||"bottom"==e.arrowPosition?(n=0,"top"==e.arrowPosition?(e.top=t.top+t.height,n=-1,e.arrow.top=3,d<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+C.TOOLTIP_ARROW_SIZE),e.arrow.top=i-C.TOOLTIP_ARROW_SIZE,10==d?e.arrow.top--:d<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=10+C.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*C.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-C.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-C.TOOLTIP_ARROW_SIZE),e.arrow.left=r-C.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-C.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},tt="",nt="",it="",rt="",ot="",at="2.271.0_",st="2.271.0",dt="xhr",ut=function(){return Qe()?at+"+quirksmode":at},ct=function(){tt=ge("env")||tt,nt=ge("server")||nt,it=ge("assetHost")||it,rt=ge("assetPath")||rt,ot=ge("designerEnv")||ot;var e=lt()?tt+"_ext":tt;at=st+"_"+e};function lt(){return(ge("installType")||fe().installType)===Se}function pt(){return-1!==tt.indexOf("prod")}function ht(e,t){return!/prod/.test(e)||U(t)}var ft=/^\s+|\s+$/g,gt=String.prototype.trim;function mt(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var gt=gt||function(){return this.replace(ft,"")},vt={exports:{}},yt=(!function(){var q=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===q?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,P,n=this.input;switch(this.d){case 0:for(t=0,P=n.length;t<P;){var G,D,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===P,o=q,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),G=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&G,a[s++]=G>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,D=i.length;o<D;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,B=c.length;l<B;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,W,b,I,w,U,C=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),S=ne;for(C.b(1,1,Q),C.b(S,2,Q),p=re(this,n),S=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var A,T,_,E,x,z=h,Z=f,R=new(ee?Uint32Array:Array)(z+Z),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=A=0;N<z;N++)R[A++]=m[N];for(N=0;N<Z;N++)R[A++]=v[N];if(!ee)for(N=0,_=O.length;N<_;++N)O[N]=0;for(N=E=0,_=R.length;N<_;N+=A){for(A=1;N+A<_&&R[N+A]===R[N];++A);if(T=A,0===R[N])if(T<3)for(;0<T--;)O[k[E++]=0]++;else for(;0<T;)(x=T-3<(x=T<138?T:138)&&x<T?T-3:x)<=10?(k[E++]=17,k[E++]=x-3,O[17]++):(k[E++]=18,k[E++]=x-11,O[18]++),T-=x;else if(k[E++]=R[N],O[R[N]]++,--T<3)for(;0<T--;)k[E++]=R[N],O[R[N]]++;else for(;0<T;)T-3<(x=T<6?T:6)&&x<T&&(x=T-3),k[E++]=16,k[E++]=x-3,O[16]++,T-=x}for(e=ee?k.subarray(0,E):k.slice(0,E),y=oe(O,7),w=0;w<19;w++)j[w]=y[$[w]];for(g=19;4<g&&0===j[g-1];g--);for(W=ae(y),C.b(h-257,5,Q),C.b(f-1,5,Q),C.b(g-4,4,Q),w=0;w<g;w++)C.b(j[w],3,Q);for(w=0,U=e.length;w<U;w++)if(b=e[w],C.b(W[b],y[b],Q),16<=b){switch(w++,b){case 16:I=2;break;case 17:I=3;break;case 18:I=7;break;default:throw"invalid code: "+b}C.b(e[w],I,Q)}for(var M,V,S=[S,m],L=[L,v],Y=S[0],H=S[1],K=L[0],X=L[1],F=0,J=p.length;F<J;++F)if(M=p[F],C.b(Y[M],H[M],Q),256<M)C.b(p[++F],p[++F],Q),V=p[++F],C.b(K[V],X[V],Q),C.b(p[++F],p[++F],Q);else if(256===M)break;this.a=C.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),I=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=I[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===q&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=w.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,w=l,C=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case w.NONE:t=0;break;case w.h:t=1;break;case w.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:w.NONE,FIXED:w.h,DYNAMIC:w.g});if(Object.keys)g=Object.keys(C);else for(m in g=[],v=0,C)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),C[m])}.call(vt.exports),vt.exports),bt=e(yt),It={Deflate:bt.Zlib.Deflate},wt={base64Url:"base64url",binary:"binary"};function Ct(e,t){t=t||wt.base64Url;e=mt("string"==typeof e?e:JSON.stringify(e)),e=new It.Deflate(e).compress();return t===wt.base64Url?u.uint8ToBase64(e):e}var St={exports:{}},At=(!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(St.exports),St.exports),Tt=e(At),_t={CRC32:Tt.Zlib.CRC32},Et=function(e,n){var i;return 200<=(n=n||0)?e:K.isArray(e)?K.map(e,function(e){return Et(e,n+1)}):!K.isObject(e)||K.isDate(e)||K.isRegExp(e)||K.isElement(e)?K.isString(e)?K.escape(e):e:(i={},K.each(e,function(e,t){i[t]=Et(e,n+1)}),i)},xt=function(e){e=mt(e);return u.uint8ToBase64(e)},Rt=function(e){if(void 0!==e)return e=mt(e=K.isString(e)?e:JSON.stringify(e)),_t.CRC32.calc(e,0,e.length)};function kt(e){return e[Math.floor(Math.random()*e.length)]}function Ot(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=kt(i);return n}var Nt=function(e,t,n){return!(!S(e)||!S(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function Mt(){return"undefined"!=typeof $A&&K.isFunction($A.get)&&K.isString($A.get("$Browser.formFactor"))}function Lt(e,t){void 0===t&&(t=window);var n="__symbol__";if("undefined"!=typeof Zone&&K.isFunction(Zone[n])){n=t[Zone[n](e)];if(K.isFunction(n))return n}return t[e]}function Ft(e){return K.isFunction(e.isFinite)?e.isFinite:e.Number&&K.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)}}var Pt=Ft(window);function Gt(e){return"number"==typeof e&&Pt(e)&&Math.floor(e)===e}function Wt(e,t,n,i){(t=t||{}).maxRetries=Gt(t.maxRetries)?t.maxRetries:10,t.delay=Gt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Dt(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,Wt(e,t,o,a)},t.delay):(a||function(){})()}var Ut=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function $t(e){return K.isObject(e)&&K.isFunction(e.then)}var jt=K.isFunction(window.decodeURIComponent)?window.decodeURIComponent:K.identity,zt=K.isFunction(window.encodeURIComponent)?window.encodeURIComponent:K.identity,Zt=window.Promise,Zt=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=Dt;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a}),Vt=Zt,Yt=function(e,t){return(Yt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Yt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Kt=function(){return(Kt=Object.assign||function Kt(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Xt(e,t,s,d){return new(s=s||Vt)(function(n,i){function r(e){try{a(d.next(e))}catch(t){i(t)}}function o(e){try{a(d["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((d=d.apply(e,t||[])).next())})}function Jt(n,i){var r,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},d=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return d.next=e(0),d["throw"]=e(1),d["return"]=e(2),"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function e(t){return function(e){return u([t,e])}}function u(e){if(r)throw new TypeError("Generator is already executing.");for(;s=d&&e[d=0]?0:s;)try{if(r=1,o&&(a=2&e[0]?o["return"]:e[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,e[1])).done)return a;switch(o=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,o=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))s.label=e[1];else if(6===e[0]&&s.label<a[1])s.label=a[1],a=e;else{if(!(a&&s.label<a[2])){a[2]&&s.ops.pop(),s.trys.pop();continue}s.label=a[2],s.ops.push(e)}}e=i.call(n,s)}catch(t){e=[6,t],o=0}finally{r=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}function qt(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Qt=function(){function e(){this.listeners={}}return e.prototype.addEventListener=function(e,t){var n=this.listeners[e];n||(this.listeners[e]=n=[]),K.findIndex(n,function(e){return t===e})<0&&n.push(t)},e.prototype.removeEventListener=function(e,t){var n,i=this.listeners[e];i&&0<=(n=K.findIndex(i,function(e){return t===e}))&&(i.splice(n,1),i.length||delete this.listeners[e])},e.prototype.dispatchEvent=function(t){var e=this.listeners[t.type];e&&K.each(e,function(e){e(t)})},e}(),en=function(){function e(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}return e.prototype.toString=function(){var e=this.message;return this.error&&e!==this.error.message&&(e="".concat(e,":").concat(this.error.message)),this.attributes&&(e+=": ".concat(K.map(this.attributes,function(e,t){return"".concat(t,"=").concat(e)}))),e},e.prototype.hashCode=function(){return this.toString()},e}(),tn,nn=(!function(e){e.Debug="debug",e.Info="info",e.Warn="warn",e.Error="error",e.Critical="critical"}(tn=tn||{}),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ht(t,e),t.prototype.write=function(e,t,n){this.dispatchEvent(new en(t,e,n))},t.prototype.writeError=function(e,t,n){K.isString(e)?r={message:i=e}:i=(r=e).message,n&&n.error&&(r=n.error,delete n.error);var i,r,e=new en(t,i,n);e.error=r,this.dispatchEvent(e)},t.prototype.debug=function(e,t){this.write(e,tn.Debug,t)},t.prototype.info=function(e,t){this.write(e,tn.Info,t)},t.prototype.warn=function(e,t){this.writeError(e,tn.Warn,t)},t.prototype.error=function(e,t){this.writeError(e,tn.Error,t)},t.prototype.critical=function(e,t){this.writeError(e,tn.Critical,t)},t}(Qt)),X=new nn;function rn(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var on=function(){var e=m.get("storage.allowKeys")||"*";return K.isArray(e)?K.indexBy(e):e};function an(e){var t=on();return"*"===t||t[e]}function sn(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function dn(n){K.forEach(K.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function un(e){return{getItem:sn(e,e.getItem,null),setItem:sn(e,e.setItem),removeItem:sn(e,e.removeItem),clearPendo:K.partial(dn,e)}}function cn(e){var t=K.noop,t={getItem:function(){return null},setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?un(n):t}catch(i){return t}}var ln=cn(function(){return window.localStorage}),pn=cn(function(){return window.sessionStorage}),hn={},fn,gn=!0,mn=function(){return m.get("localStorageOnly")},vn=function(){return!!m.get("disableCookies")};function yn(e){gn=e}var bn=function(e){var t=vn()||mn()?hn[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?jt(e[2]):null},In=function(e,t,n,i){var r,o;!gn||m.get("preventCookieRefresh")&&bn(e)===t||(o=xn(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+zt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",fn&&(o+=";domain="+fn),vn()||mn()?hn[e]=o:document.cookie=o)};function wn(e,t){var n,i;e?K.isString(e)&&(t=t.replace(/:\d+$/,""),e=e.replace(/^\./,""),n=new RegExp("\\."+rn(e)+"$"),i=new RegExp("^"+rn(e)+"$"),n.test(t)||i.test(t))&&(fn="."+e):fn=e}function Cn(){return fn}function Sn(e){Cn()?In(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var An=function(e,t){return"_pendo_".concat(e,".").concat(t||C.apiKey)},Tn=function(e,t){return bn(An(e,t))},_n=864e5,En=100*_n,xn=function(e){void 0===e&&(e=En);var t=m.get("maxCookieTTLDays"),t=t<Infinity?t*_n:Infinity;return Math.min(e,t)},Rn=function(e,t,n,i,r){n=n||En,In(An(e,r),t,n,i)},kn=function(){function e(){this.keys={}}return e.prototype.addLocal=function(e){this._add(e,"local")},e.prototype.addSession=function(e){this._add(e,"session")},e.prototype.hasLocal=function(e){return this._has(e,"local")},e.prototype.hasSession=function(e){return this._has(e,"session")},e.prototype._add=function(e,t){this.keys[e]||(this.keys[e]=t)},e.prototype._has=function(e,t){return this.keys[e]===t},e}(),h=function(){var i=new kn;function e(t,n){return function(e){if(an(e))return i[n](e)||X.warn("storage key ".concat(e," is not registered")),t.apply(this,arguments);X.debug("writing storage key ".concat(e," is not allowed"))}}function d(){return!vn()&&!Cn()&&u("localStorage")}var u=K.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function c(e){e.cache&&(e.cache={})}function r(e,t,n){t=t?e:An(e,n);if(d())return localStorage.removeItem(t);Sn(t)}var t=K.extend({},pn),n=(t.setItem=e(t.setItem,"hasSession"),K.extend({},ln));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){var i;return d()?(i=t?e:An(e,n),null===(i=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}(localStorage.getItem(i)))&&r(e,t,n),i):t?bn(e):Tn(e,n)},write:e(function(e,t,n,i,r,o){if(c(u),d())try{var a=i?e:An(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+xn(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void c(u)}catch(s){}if(!i)return Rn(e,t,n,r,o);In(e,t,n,r)},"hasLocal"),clear:r,registry:i,getLocal:function(){return n},getSession:function(){return t}}}(),On=function(){var e={},c=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},l=function(n,i){var r=e.defer(),o=function(n,i){Dt(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===p?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},p=1;return e.defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,K.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(p,e)},a=function(e){t(2,e)},s=function(e,t){e=l(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=c();try{e(t(u),t(a))}catch(n){t(a)(n)}},u=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(n){return void a(n)}t?d(t):o(e)},e=c();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},e}(),J;function Nn(e){var n,i=J.defer(),r=K.isArray(e)?[]:{},o=K.size(e);return o?(n=!1,K.each(e,function(e,t){J.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):J.resolve(e)}!lt()&&ht(tt,he())&&l.isMinimumIEVersion(11)?J={all:function(e){return K.isArray(e)?Vt.all.apply(Vt,arguments):Nn(e)},reject:function(){return Vt.reject.apply(Vt,arguments)},resolve:function(){return Vt.resolve.apply(Vt,arguments)},defer:function(){var n={};return n.promise=new Vt(function(e,t){n.resolve=e,n.reject=t}),n}}:(J=On,J.all=Nn,J.reject=function(e){var t=J.defer();return t.reject(e),t.promise},J.resolve=function(e){var t=J.defer();return t.resolve(e),t.promise});var Mn=h.getSession(),Ln="pendo_frameId",Fn="pendo_tabId",Pn="pendo_parentTabId";function Gn(n){var e=K.partial,t=K.extend,i=K.omit,r={data:{},getItem:function(e){return r.data[e]},setItem:function(e,t){r.data[e]=t},removeItem:function(e){r.data[e]=null,delete r.data[e]}};var o=e(u,Fn,c),a=e(u,Ln,r);function s(e,t){return(K.isFunction(t)?t():t).getItem(e)}function d(e,t,n){(K.isFunction(n)?n():n).setItem(e,t)}function u(e,t){var n=s(e,t);return n||d(e,n=Ot(16),t),n}function c(){return n=r,i=Mn,{getItem:function(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem:function(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem:function(e){n.removeItem(e),i.removeItem(e)}};var n,i}return{addTracerIds:function(e){return i(t(e,{parentTabId:s(Pn,c),tabId:o(),frameId:a()}),function(e){return e===undefined})},setParentTabId:function(e){d(Pn,e,c)},newTabId:function(){var e=Ot(16);return d(Fn,e,c),e},getTabId:o,getFrameId:a,tabIdChanged:function(t){var e;if(l.addEventListener)return n.addEventListener("storage",e=function(e){e.key===Fn&&(r.removeItem(Fn),t())}),function(){n.removeEventListener("storage",e)}}}}var Dn=Gn(window);function Bn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(K.isString(e)||K.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),K.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return K.isFunction(t)?(n=K.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=K.toArray(arguments).slice(1);return K.map(t,function(e){return e.apply(C,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return K.map(e,function(e){if(!t.cancel)return e.apply(C,[t])})},this.triggerAsync=function(){var e=K.map(this.trigger.apply(this,arguments),function(e){return!1===e?J.reject():e});return J.all(e)},this}Bn.clear=function(t){t&&K.each(K.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};var y=function(){function e(e,t){this.name=e,this.groups=t||[]}var t="debug",n="lifecycle",i="runtime",r="frames",o={DEBUG:t,FRAMES:r,LIFECYCLE:n,RUNTIME:i},a=[new e("ready",[t,n]),new e("deliverablesLoaded",[t,n]),new e("guidesFailed",[t,n]),new e("guidesLoaded",[t,n]),new e("guideListChanged",[t,n]),new e("guideSeen",[t,n]),new e("guideNotSeen",[t,n]),new e("guideAdvanced",[t,n]),new e("guideDismissed",[t,n]),new e("guideSnoozed",[t,n]),new e("beforeGuideShow",[n]),new e("beforeMount",[i]),new e("beforeAdvance",[i]),new e("beforePrevious",[i]),new e("beforeSnooze",[i]),new e("beforeDismiss",[i]),new e("beforeUnmount",[i]),new e("unmounted",[i]),new e("beforeUpdate",[i]),new e("updated",[i]),new e("guideSnoozeCancelled",[t,n]),new e("guideTimeout",[t,n]),new e("guideLoopStopped",[t,n]),new e("guideUpdateComplete",[n]),new e("designerLaunched",[t,n]),new e("debuggerLaunched",[t,n]),new e("stepEligibility",[t]),new e("identify",[t,n]),new e("metadata",[t,n]),new e("appUnloaded",[t,n]),new e("appHidden",[t,n]),new e("startPreview",[t]),new e("resourceFetchFail",[t]),new e("contentVerificationFail",[t]),new e("contentValidationFail",[t]),new e("renderFail",[t]),new e("appUsage",[n]),new e("eventCaptured",[t]),new e("error",[t,n]),new e("onClickCaptured",[t]),new e("urlChanged",[n]),new e("leaderChanged",[n,r]),new e("transmit:locked",[n]),new e("transmit:unlocked",[n]),new e("sessionChanged",[n]),new e("childFrameJoined",[r])],s=Bn.call({});function d(e,t){e={type:e,ts:v()};return S(t)&&K.isObject(t)&&(e.data=t),e}var u={debug:function(){return Dn.addTracerIds(d.apply(null,arguments))},lifecycle:d,runtime:d,frames:d};var c=s.trigger;function l(t){var e=K.findWhere(a,{name:t}),n=K.toArray(arguments).slice(1),i={};return K.each(e.groups,function(e){i.cancel||(i=u[e](t,n),c.apply(s,[e].concat(i)))}),i.cancel||(i=d(t,n),c.apply(s,[t].concat(i))),i}return s.trigger=l,K.each(K.values(o),function(e){s[e]={on:K.partial(s.on,e),one:K.partial(s.one,e),off:K.partial(s.off,e)}}),K.each(a,function(e){e=e.name,s[e]={on:K.partial(s.on,e),one:K.partial(s.one,e),off:K.partial(s.off,e),trigger:K.partial(l,e)}}),s}();function Wn(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),K.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),K.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:K.partial(t,i),subscribeAction:K.partial(t,r),registerModule:function h(n,e){K.isString(n)&&(n=[n]);var t=u(s.state,e,n);K.extend(s.getters,p(e,t,s,n));K.extend(o,c(e,t,n));K.extend(a,l(e,t,s,n));K.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return K.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):K.noop;var n,i}function d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return K.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),K.extend(i,we(t.state||{}))}function c(e,n,i){var r={};return K.each(e.mutations,function(e,t){r[d(i,t)]=K.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:d(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:d(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=d(t);i&&(i+="/");return K.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return K.each(e.actions,function(e,t){n[d(r,t)]=K.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return K.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}function Un(){return Wn()}var q=Un(),$n=(q.subscribe(function(e,t){}),"_PENDO_T_"),jn=11,zn="visitorId",Zn="oldVisitorId",Vn="accountId",Yn=function(e){return(e=void 0===e?"":e)+Ot(jn)};function Hn(e){return e&&"string"==typeof e&&0===gt.call(e).length}var Kn=function(e){return S(e)&&""!==e&&e!==ti&&"boolean"!=typeof e&&"object"!=typeof e&&!Hn(e)},Xn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,$n.length)===$n},Jn=function(){return!m.get("disablePersistence")},qn=function(e){e=e||[zn,Vn,Zn];var t=m.get("identityStorageSuffix")||C.apiKey;K.each(e,function(e){Sn(An(e,t)),h.clear(e,!1,t)})},Qn="VISITOR-UNIQUE-ID",ei=function(e){return Qn===e},ti="::",ni=function(e){return new RegExp(ti).test(e)};function ii(e){return e.old_visitor_id!==e.visitor_id}var ri=function(e){return ii(e)||e.old_account_id!==e.account_id},oi=function(e,t){var n={old_visitor_id:Q(),old_account_id:fi()};Kn(e)?(pi(e),gi(t),n.visitor_id=Q({generate:!0}),n.account_id=fi(),ri(n)&&(ii(n)&&hi(n.old_visitor_id),y.identify.trigger(n))):X.info("Invalid visitor id "+e)},ai;function si(){return Yn($n)}function di(e){C.visitorId!==e&&(Jn()&&mi(zn,e),C.visitorId=e)}function ui(){if(Kn(C.visitorId))return C.visitorId;var e=m.get("forceAnonymous");if(Jn()){var t=vi(zn);if(Kn(t)&&(!e||Xn(t)))return t}return undefined}function Q(e){void 0===e&&(e={});var t=ui();return di(t=!t&&e.generate?si():t),t}function ci(){return ai=ai===undefined&&Jn()?vi(Zn):ai}function li(){return Q()||si()}var pi=function(e){Kn(e)?di(""+e):X.info("Invalid visitor id "+e)};function hi(e){e&&mi(Zn,ai=e)}var fi=function(){var e=m.get("forceAnonymous");return Kn(C.accountId)||!Jn()||e||(e=vi(Vn),C.accountId=e),C.accountId},gi=function(e){K.isUndefined(e)?X.info("No account id provided"):Kn(e)?(C.accountId=""+e,Jn()&&mi(Vn,C.accountId)):(yi(),X.info("Invalid account id: "+e+". Account cleared"))};function mi(e,t){var n=m.get("identityStorageLifetime")||En,i=m.get("identityStorageSuffix")||C.apiKey;h.write(e,t,n,!1,!0,i)}function vi(e){var t=m.get("identityStorageSuffix"),n=t||C.apiKey,n=h.read(e,!1,n)||h.read(e,!1,C.apiKey);return t&&h.clear(e,!1,C.apiKey),n}function yi(){delete C.accountId;var e=m.getLocalConfig();delete e.account,m.setLocalConfig(e),q.commit("metadata/clearAccount"),Jn()&&h.clear(Vn)}function bi(){var e={old_visitor_id:Q({generate:!1}),old_account_id:fi(),wasCleared:!0};qn(),delete C.visitorId,delete C.accountId,Q({generate:!0}),K.extend(e,{visitor_id:Q(),account_id:fi()}),y.identify.trigger(e)}function Ii(e){e=e.data[0];return K.get(e,"wasCleared")}var wi=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||X.critical(e)}}};function Ci(n){return function Si(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var Si=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(Ci);function Ai(e){return e&&K.isFunction(e.composedPath)}function Ti(e){if(Ai(e))try{return e.composedPath()}catch(t){return e.path}return null}function _i(e){return e.shadowRoot}function Ei(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function xi(e,t){return Ei(e,t)?e.host:e.parentNode}var c=function(){function d(e){return!!e&&-1<e.indexOf(c.PSEUDO_ELEMENT)}function u(e){return K.reduce(e,function(e,t){return t.value===c.PSEUDO_SAFE?e+c.PSEUDO_ELEMENT:e+t.value},"")}return{PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Ti,getShadowRoot:_i,isElementShadowRoot:Ei,getParent:xi,isShadowSelector:d,wrapSizzle:function(i){i.intercept(function(a,e,n,i,r){var t,o;return d(e)?K.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(c.PSEUDO_REGEX,c.PSEUDO_SAFE),t=K.map(o.tokenize(t),u),K.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(c.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return d(e)?(o=s((r={baseCss:(o=(o=e).split(c.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(c.PSEUDO_ELEMENT)}).baseCss,t),K.reduce(o,function(e,t){return c.getShadowRoot(t)?e.concat(s(r.shadowCss,c.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!c.isElementShadowRoot(t)&&(d(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}}}(),Ri={exports:{}},ki=(!function(P){var e,h,I,o,G,f,D,B,w,d,u,C,S,n,A,g,i,r,m,a=window,T="sizzle"+ +new Date,c=a.document,_=0,W=0,U=O(),$=O(),j=O(),v=O(),z=function(e,t){return e===t&&(u=!0),0},Z={}.hasOwnProperty,t=[],V=t.pop,Y=t.push,E=t.push,H=t.slice,x=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",s="[\\x20\\t\\r\\n\\f]",l="(?:\\\\[\\da-fA-F]{1,6}"+s+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",X="\\["+s+"*("+l+")(?:"+s+"*([*^$|!~]?=)"+s+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+l+"))|)"+s+"*\\]",J=":("+l+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+X+")*)|.*)\\)|)",q=new RegExp(s+"+","g"),R=new RegExp("^"+s+"+|((?:^|[^\\\\])(?:\\\\.)*)"+s+"+$","g"),Q=new RegExp("^"+s+"*,"+s+"*"),ee=new RegExp("^"+s+"*([>+~]|"+s+")"+s+"*"),te=new RegExp(s+"|>"),ne=new RegExp(J),ie=new RegExp("^"+l+"$"),p={ID:new RegExp("^#("+l+")"),CLASS:new RegExp("^\\.("+l+")"),TAG:new RegExp("^("+l+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+J),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+s+"*(even|odd|(([+-]|)(\\d*)n|)"+s+"*(?:([+-]|)"+s+"*(\\d+)|))"+s+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+s+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+s+"*((?:-\\d)?\\d*)"+s+"*\\)|)(?=[^-]|$)","i")},re=/HTML$/i,oe=/^(?:input|select|textarea|button)$/i,ae=/^h\d$/i,se=/^[^{]+\{\s*\[native \w/,de=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ue=/[+~]/,y=new RegExp("\\\\[\\da-fA-F]{1,6}"+s+"?|\\\\([^\\r\\n\\f])","g"),b=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},ce=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,le=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},pe=function(){C()},he=Ie(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{E.apply(t=H.call(c.childNodes),c.childNodes),t[c.childNodes.length].nodeType}catch(F){E={apply:t.length?function(e,t){Y.apply(e,H.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function k(e,t,n,i){var r,o,a,s,d,u,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(C(t),t=t||S,A)){if(11!==l&&(s=de.exec(e)))if(r=s[1]){if(9===l){if(!(u=t.getElementById(r)))return n;if(u.id===r)return n.push(u),n}else if(c&&(u=c.getElementById(r))&&m(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return E.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return E.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&!v[e+" "]&&(!g||!g.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(te.test(e)||ee.test(e))){for((c=ue.test(e)&&ve(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(ce,le):t.setAttribute("id",a=T)),o=(d=f(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+be(d[o]);u=d.join(",")}try{return E.apply(n,c.querySelectorAll(u)),n}catch(p){v(e,!0)}finally{a===T&&t.removeAttribute("id")}}}return B(e.replace(R,"$1"),t,n,i)}function O(){var n=[];function i(e,t){return n.push(e+" ")>I.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function N(e){return e[T]=!0,e}function M(e){var t=S.createElement("fieldset");try{return!!e(t)}catch(F){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)I.attrHandle[n[i]]=t}function ge(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&he(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function L(a){return N(function(o){return o=+o,N(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in h=k.support={},G=k.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!re.test(t||e&&e.nodeName||"HTML")},C=k.setDocument=function(e){var e=e?e.ownerDocument||e:c;return e!=S&&9===e.nodeType&&e.documentElement&&(n=(S=e).documentElement,A=!G(S),c!=S&&(e=S.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",pe,!1):e.attachEvent&&e.attachEvent("onunload",pe)),h.scope=M(function(e){return n.appendChild(e).appendChild(S.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=M(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=M(function(e){return e.appendChild(S.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=!!S.getElementsByClassName,h.getById=M(function(e){return n.appendChild(e).id=T,!S.getElementsByName||!S.getElementsByName(T).length}),h.getById?(I.filter.ID=function(e){var t=e.replace(y,b);return function(e){return e.getAttribute("id")===t}},I.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&A)return(e=t.getElementById(e))?[e]:[]}):(I.filter.ID=function(e){var t=e.replace(y,b);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},I.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&A){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),I.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},I.find.CLASS=h.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&A?t.getElementsByClassName(e):h.qsa&&A?t.querySelectorAll("."+e):void 0},i=[],g=[],(h.qsa=!!S.querySelectorAll)&&(M(function(e){var t;n.appendChild(e).innerHTML=Te().createHTML("<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+s+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+s+"*(?:value|"+K+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),(t=S.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+s+"*name"+s+"*="+s+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),M(function(e){e.innerHTML=Te().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=S.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+s+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(h.matchesSelector=se.test(r=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&M(function(e){h.disconnectedMatch=r.call(e,"*"),r.call(e,"[s!='']:x"),i.push("!=",J)}),g=g.length&&new RegExp(g.join("|")),i=i.length&&new RegExp(i.join("|")),e=!!n.compareDocumentPosition,m=e||n.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},z=e?function(e,t){var n;return e===t?(u=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==S||e.ownerDocument==c&&m(c,e)?-1:t==S||t.ownerDocument==c&&m(c,t)?1:d?x(d,e)-x(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==S?-1:t==S?1:r?-1:o?1:d?x(d,e)-x(d,t):0;if(r===o)return ge(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ge(a[i],s[i]):a[i]==c?-1:s[i]==c?1:0}),S},k.matches=function(e,t){return k(e,null,null,t)},k.matchesSelector=function(e,t){if(C(e),h.matchesSelector&&A&&!v[t+" "]&&(!i||!i.test(t))&&(!g||!g.test(t)))try{var n=r.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(F){v(t,!0)}return 0<k(t,S,null,[e]).length},k.contains=function(e,t){return(e.ownerDocument||e)!=S&&C(e),m(e,t)},k.attr=function(e,t){(e.ownerDocument||e)!=S&&C(e);var n=I.attrHandle[t.toLowerCase()],n=n&&Z.call(I.attrHandle,t.toLowerCase())?n(e,t,!A):undefined;return n!==undefined?n:h.attributes||!A?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},k.escape=function(e){return(e+"").replace(ce,le)},k.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},k.uniqueSort=function(e){var t,n=[],i=0,r=0;if(u=!h.detectDuplicates,d=!h.sortStable&&e.slice(0),e.sort(z),u){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return d=null,e},o=k.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(I=k.selectors={cacheLength:50,createPseudo:N,match:p,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(y,b),e[3]=(e[3]||e[4]||e[5]||"").replace(y,b),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||k.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&k.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return p.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ne.test(n)&&(t=(t=f(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(y,b).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+s+")"+e+"("+s+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=k.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(q," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,d,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;d=u="only"===f&&!d&&"nextSibling"}return!0}if(d=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===_&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(h=s=0,d.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[_,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===_&&i[1]:h))for(;(a=++s&&a&&a[u]||(h=s=0,d.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[_,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=I.pseudos[e]||I.setFilters[e.toLowerCase()]||k.error("unsupported pseudo: "+e);return a[T]?a(o):1<a.length?(t=[e,e,"",o],I.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=x(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:N(function(e){var i=[],r=[],s=D(e.replace(R,"$1"));return s[T]?N(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:N(function(t){return function(e){return 0<k(t,e).length}}),contains:N(function(t){return t=t.replace(y,b),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:N(function(n){return ie.test(n||"")||k.error("unsupported lang: "+n),n=n.replace(y,b).toLowerCase(),function(e){var t;do{if(t=A?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=a.location&&a.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===S.activeElement&&(!S.hasFocus||S.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!I.pseudos.empty(e)},header:function(e){return ae.test(e.nodeName)},input:function(e){return oe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:L(function(){return[0]}),last:L(function(e,t){return[t-1]}),eq:L(function(e,t,n){return[n<0?n+t:n]}),even:L(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:L(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:L(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:L(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=I.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})I.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})I.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function ye(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function Ie(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=W++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var i,r,o=[_,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[T]||(e[T]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===_&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function we(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function Ce(e,t,n,i,r){for(var o,a=[],s=0,d=e.length,u=null!=t;s<d;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),u&&t.push(s));return a}function Se(h,f,g,m,v,e){return m&&!m[T]&&(m=Se(m)),v&&!v[T]&&(v=Se(v,e)),N(function(e,t,n,i){var r,o,a,s=[],d=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)k(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:Ce(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=Ce(p,d),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[d[o]]=!(l[d[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?x(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=Ce(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):E.apply(t,p)})}ye.prototype=I.filters=I.pseudos,I.setFilters=new ye,f=k.tokenize=function(e,t){var n,i,r,o,a,s,d,u=$[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=I.preFilter;a;){for(o in n&&!(i=Q.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=ee.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(R," ")}),a=a.slice(n.length)),I.filter)I.filter.hasOwnProperty(o)&&(i=p[o].exec(a))&&(!d[o]||(i=d[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?k.error(e):$(e,s).slice(0)},D=k.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=j[e+" "];if(!a){for(n=(t=t||f(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=I.relative[e[0].type],a=o||I.relative[" "],s=o?1:0,d=Ie(function(e){return e===i},a,!0),u=Ie(function(e){return-1<x(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==w)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=I.relative[e[s].type])c=[Ie(we(c),t)];else{if((t=I.filter[e[s].type].apply(null,e[s].matches))[T]){for(n=++s;n<r&&!I.relative[e[n].type];n++);return Se(1<s&&we(c),1<s&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(R,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&be(e))}c.push(t)}return we(c)}(t[n]))[T]?r:o).push(a);(a=j(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,d=0,u="0",c=e&&[],l=[],p=w,h=e||b&&I.find.TAG("*",r),f=_+=null==p?1:Math.random()||.1,g=h.length;for(r&&(w=t==S||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==S||(C(o),n=!A);s=m[a++];)if(s(o,t||S,n)){i.push(o);break}r&&(_=f)}y&&((o=!s&&o)&&d--,e)&&c.push(o)}if(d+=u,y&&u!==d){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<d)for(;u--;)c[u]||l[u]||(l[u]=V.call(i));l=Ce(l)}E.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&k.uniqueSort(i)}return r&&(_=f,w=p),c},y?N(i):i))).selector=e}return a},B=k.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&f(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&A&&I.relative[o[1].type]){if(!(t=(I.find.ID(a.matches[0].replace(y,b),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=p.needsContext.test(e)?0:o.length;r--&&(a=o[r],!I.relative[s=a.type]);)if((d=I.find[s])&&(i=d(a.matches[0].replace(y,b),ue.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&be(o))break;return E.apply(n,i),n}}return(u||D(e,c))(i,t,!A,n,!t||ue.test(e)&&ve(t.parentNode)||t),n},h.sortStable=T.split("").sort(z).join("")===T,h.detectDuplicates=!!u,C(),h.sortDetached=M(function(e){return 1&e.compareDocumentPosition(S.createElement("fieldset"))}),M(function(e){return e.innerHTML=Te().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&M(function(e){return e.innerHTML=Te().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),M(function(e){return null==e.getAttribute("disabled")})||fe(K,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Ae=a.Sizzle;k.noConflict=function(){return a.Sizzle===k&&(a.Sizzle=Ae),k},P.exports?P.exports=k:a.Sizzle=k}(Ri),Ri.exports),Oi=e(ki);function Ni(e){var n=K.extend(function(){return n.Sizzle.apply(this,arguments)},e);return n.reset=function(){n.Sizzle=e,n.matchesSelector=e.matchesSelector,n.matches=e.matches},n.intercept=function(e,t){n[t=void 0===t?"Sizzle":t]=K.wrap(n[t],e)},n.reset(),n}var s=Ni(Oi);function ee(e,t){var n,i=this;if(e&&e instanceof ee)return e;if(!(i instanceof ee))return new ee(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=K.toArray(r.childNodes)}else if(K.isString(e)){t instanceof ee&&(t=0<t.length?t[0]:null);try{n=s(e,t)}catch(o){n=[]}}else n=[e];else n=[];return K.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,i}function Mi(){this.ownerKey="_pendo_"+Ot(8)}K.extend(Mi.prototype,{cache:function(e){var t;return K.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set:function(e,t,n){e=this.cache(e);return e[t]=n,e},get:function(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove:function(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!K.isEmpty(n)||(e[this.ownerKey]=undefined)}});var Li=new Mi,Fi=1,Pi=2,Gi=3;function Di(e){return K.isNumber(e.eventPhase)&&e.eventPhase===Fi}function Bi(e){return K.isNumber(e.eventPhase)&&e.eventPhase===Pi}function te(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?Lt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),function(){Wi(e,t,n,i)}):K.noop}function Wi(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?Lt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Ui=function(e){var t=c.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},$i={add:function(t,e){var n=Li.get(t),i=(n.handle||(n.handle=function(e){$i.dispatch(t,e)}),e.id=K.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||te(t,e.type,n.handle,e.capture),i.push(e),function(){ee.event.remove(t,e.type,e.handler,e.capture)}},dispatch:function(r,o){var e,t,a;r&&(e=(Li.get(r,"captureEvents")||{})[o.type]||[],t=(Li.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Li.get(o)).ignore&&(a.handled=a.handled||{},K.each(t.slice(),function(e){var t=!!e.capture===Di(o),n=Bi(o),t=!t&&!n;if(!(Ui(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!S(e.selector)||0<ee(Ui(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){X.error(i)}}}))},remove:function(e,t,n,i){var r=Li.get(e);if(r){if(K.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=K.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Wi(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Wi(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Wi(e,t,r.handle));K.isEmpty(r.captureEvents)&&K.isEmpty(r.bubbleEvents)&&(Li.remove(e,"captureEvents"),Li.remove(e,"bubbleEvents"),Li.remove(e,"handle"))}},trigger:function(e){var t=Li.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Ui(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=c.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Di(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)$i.dispatch(o[i],e);(e=$i.clone(e)).eventPhase=Pi}for(e.eventPhase!==Pi||t.pendoStopped||($i.dispatch(n,e),(e=$i.clone(e)).eventPhase=Gi),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)$i.dispatch(o[i],e)}}else $i.dispatch(Ui(e),e)},clone:function(e){var t=K.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Li.ownerKey]),e=c.getComposedPath(e);return e&&(t.composedPath=K.constant(e)),t},$:{on:function(e,n,i,r){return K.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){K.each(e,function(e){$i.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},p=function(){function r(){return window.XMLHttpRequest||ActiveXObject}function i(e){var t=J.defer(),n=new(r())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),K.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),function i(e){var t=e.then;var n=e["catch"];e.then=function(){return i(t.apply(this,arguments))};e["catch"]=function(){return i(n.apply(this,arguments))};e.fail=e["catch"];return e}(t.promise)}function o(e,t,n){return i({method:"POST",url:e,data:t,headers:n})}return K.extend(i,{get:function(e,t){return i({method:"GET",url:e,headers:t})},post:o,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",o(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(K.isArray(t))i=t;else{if(!K.isObject(t))return e||"";i=K.keys(t)}var i=K.map(i,function(e){return K.isArray(t)?zt(e):zt(e)+"="+zt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=K.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported:function(){return void 0!==r()}})}(),ji=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},zi=function(){return window.process.resourcesPath||""},Zi=function(){return window.process.env.PWD||""},Vi=function(){return window.process.env.HOME||""},Yi=function(){return window.process.env.npm_package_name||""},Hi=function(){return m.get("annotateUrl")||Qi()||m.get("sanitizeUrl")||m.get(cr)||m.get("xhrWhitelist")},Ki=function(){return Qi()?{href:qi(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Xi=function(){return new Si(window.location.href)},Ji=function(){var e,t,n,i;return Hi()?(e=Xi(),Qi()&&(e.href=qi(e.href)),ji()?(t=f.electronResourcesPath(),n=f.electronUserDirectory(),i=f.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(f.electronUserHomeDirectory(),"").replace("file:///","")):pr(e.href)):q.getters["location/href"]()},qi=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Qi=function(){return!0===m.get("ignoreHashRouting")},er,tr=500;function nr(){return K.isUndefined(er)&&function e(){sr(),er=Dt(e,tr)}(),function(){clearTimeout(er)}}var ir=function(e){var t;try{t=Ji()}catch(n){}return t},rr=[],or=!1,ar=null;function sr(){var t=Ki().href;ar!=t&&(ar=t,K.map(rr,function(e){e(t)}))}var dr=function(e){var n,i=[],t=(X.info("Initializing Pendo URL Watcher"),m.get("location.pushState")&&l.supportsHistoryApi());return or||(t&&(n=window.history,K.each(["pushState","replaceState"],function(e){var t=n[e];n[e]=K.wrap(n[e],function(e){var t=e.apply(n,K.toArray(arguments).slice(1));return Dt(sr,0),t}),i.push(function(){n[e]=t})}),i.push(te(window,"popstate",sr))),l.supportsHashChange()&&i.push(te(window,"hashchange",sr)),!1!==t&&l.supportsHashChange()||i.push(nr()),or=!0),rr.push(e),function(){K.each(i,function(e){e()}),rr.length=0,or=!1}},ur=function(){rr=[]},cr="queryStringWhitelist";function lr(e){var t=m.get("sanitizeUrl");return K.isFunction(t)?t(e):e}function pr(e){e=e||Ki().href;var t=m.get("annotateUrl");if(t)if(K.isFunction(t))try{var n,i,r,o=t();return o&&(K.isObject(o)||K.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&K.isArray(n)||i&&(K.isArray(i)||K.isObject(i)))&&(n&&(e=fr(e,null,n,!0)),o=i||{}),p.urlFor(e,o,r)):e}catch(a){X.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else X.error("customer-provided `annotateUrl` must be of type: function");return e}function hr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function fr(e,t,n,i){e=e||ir(),t=t||hr(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=K.isArray(n)?mr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var gr=function(e,t,n){n=n||m.get(cr);return lr(fr(e,t,n=K.isFunction(n)?n():n,!1))},mr=function(e,t,n){return n&&K.contains(t,"*")?"":(e=vr(e),e=n?K.omit(e,t):K.pick(e,t),yr(e))},vr=function(e){e=e.split("&");return K.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&jt(t[1])),e},{})},yr=function(e){return K.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},f={watch:dr,get:ir,externalizeURL:gr,startPoller:nr,getWindowLocation:Ki,clear:ur,isElectron:ji,electronUserDirectory:Zi,electronAppName:Yi,electronUserHomeDirectory:Vi,electronResourcesPath:zi},br;function Ir(){var e=m.getLocalConfig("dataHost");return e||((e=m.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:nt)}function wr(){br=Ir()}function Cr(e){e.HOST=br}function Sr(){var e=m.get("contentHost")||m.get("assetHost")||it;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function Ar(e){return"".concat(Sr(),"/").concat(rt?rt+"/":"").concat(e)}function Tr(){var e=m.get("allowPartnerAnalyticsForwarding",!1)&&m.get("adoptAnalyticsForwarding",!1);return m.get("trainingPartner",!1)||e}var _r=3,Er=1,xr=9,Rr=11,kr=4;function Or(e){return e&&e.nodeType===Er}function ne(e){if(Or(e))try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(t){}}function Nr(e,t){var n;return!(!e||!K.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&K.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),K.any(n,function(e){return e&&"none"!==e}))}function Mr(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Lr(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function Fr(e){return K.isNumber(e)?e:0}function Pr(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!Dr(e)?null:e}function Gr(e){return Nr(ne(e),je)&&isNaN(d)}function Dr(e){if(e)return(e=ne(e))&&(K.contains(["relative","absolute","fixed"],e.position)||Nr(e,je))}function Br(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=Dr(t)?t:Pr(t,n),i=t?Wr(t):{top:0,left:0},e=Wr(e),i={top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height};return t?(t!==n.document.scrollingElement&&(i.top+=Fr(t.scrollTop),i.left+=Fr(t.scrollLeft)),i.top-=Fr(t.clientTop),i.left-=Fr(t.clientLeft)):(i.top+=Mr(n),i.left+=Lr(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function Wr(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}function Ur(){var e=m.get("pendoCore");return void 0===e||e}var $r=Ur(),jr=function(e,t,n){e=br+"/data/"+e+"/"+t,t=K.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function zr(){return K.compact([C.apiKey].concat(C.additionalApiKeys))}var Zr=function(e){return e+="v"+at,Yr(jr("log.gif",C.apiKey,{msg:e,version:at}))};function Vr(e){try{var t=br+"/data/errorlog?apiKey="+C.apiKey,n={error:e,version:"v"+at,visitorId:Q()},i=Hr.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):p.postJSON(t,n);return i.then(function(){X.info("successfully wrote error")},function(e){X.info("error writing error:"+e)})}catch(r){return X.info("Failed to write error to server using POST endpoint: "+r),Zr("Failed to write error to server using POST endpoint: "+r)}}function Yr(e){var t,n;return Qr()?(t=J.defer(),te(n=new Image,"load",t.resolve),te(n,"error",t.reject),n.src=e,t.promise):J.resolve()}function Hr(e,t){t=K.extend({},{method:"GET",keepalive:!0},t=void 0===t?{}:t);return fetch(e,t)}function Kr(e,t){return navigator.sendBeacon(e,t)}Hr.supported=function(){try{return K.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(err){return!1}},Kr.supported=function(){return K.isFunction(navigator.sendBeacon)};var Xr=!1,Jr=function(){var e=Qr();return Xr=!0,e&&y["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},qr=function(){var e=!Qr();return Xr=!1,e&&y["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."},Qr=function(){return!Xr&&$r},eo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(ro(e))}catch(n){return!1}},to=function(e,t){try{var n;eo(e,t)||(n=gt.call(ro(e))+" "+t,io(e,n))}catch(i){}},no=function(e,t){try{var n,i;eo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=ro(e).replace(n," "),io(e,i))}catch(r){}},io=function(e,t){K.isString(e.className)?e.className=t:e.setAttribute("class",t)},ro=function(e){try{var t=e.className;return(K.isString(t)||!S(t)?t:e.getAttribute("class"))||""}catch(n){return""}},oo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},ao={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},so=function(e,t){t=uo(t);co(e,t)},uo=function(e){if(K.isString(e)){var t,n,i,r=e.split(";");for(e={},n=0;n<r.length;n++)i=(t=r[n]).indexOf(":"),e[t.substring(0,i)]=t.substring(i+1)}return e},co=function(a,e){K.each(e,function(e,t){if(""!==(t=gt.call(t))){var n=oo(t),i=(!K.isNumber(e)||isNaN(e)||ao[n]?K.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=gt.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=gt.call(e)}catch(o){X.info("failed to set style: "+t+" with value "+e)}}})},lo=function(){return Qe()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},po=function(e){var t=lo(),n=Mr(),i=Lr();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function ho(t){return K.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function ie(e){var t;return To(e)?((t=Wr(e)).fixed=!0,ho(t)):ho(Br(e,bo()))}var fo=function(e,t){var n;"string"==typeof e?(n=ee(e),K.map(n,function(e){no(e,t)})):no(e,t)},go=function(e,t){var n;"string"==typeof e?(n=ee(e),K.map(n,function(e){to(e,t)})):to(e,t)},mo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},vo=K.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return s(e,t)}catch(n){return Zr("error using sizzle: "+n),t.getElementsByTagName(e)}}),yo=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return X.info("error interrogating body elements: "+n),Zr("error picking best body:"+n),0}},bo=function(e){e=e||document;try{var t=vo("body",e);return t&&1<t.length?(t.sort(yo),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return Zr("Error getting body element: "+n),e.body}};function Io(e,t){if(!e)return[];var n=[];if(e.childNodes)for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];1===r.nodeType&&r!==t&&n.push(r)}return n}function wo(e){return e&&e.parentNode?Io(e.parentNode,e):[]}function Co(e){if(s.contains(document,e))return!0;for(;e&&e.parentNode||c.isElementShadowRoot(e);)e=c.getParent(e);return e===document}var re=function(e){var t=bo();if(null!==e)return e===document||e===window?((t={left:window.pageXOffset||t.scrollLeft,top:window.pageYOffset||t.scrollTop,width:window.innerWidth,height:window.innerHeight}).right=t.left+t.width,t.bottom=t.top+t.height,t):((t=ie(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},So=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Ao(e){for(var t=e&&e.parentNode;t;){if(Nr(ne(t),je))return 1;t=t.parentNode}}function To(e){for(var t,n=e;n;){if(!(t=ne(n)))return;if("fixed"===t.position)return!isNaN(d)||!Ao(n);n=n.parentNode}}var _o=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Co(e))for(i=e;i;)if(c.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=ne(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=ne(r))&&!K.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Ao(i))i=Pr(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function Eo(e,t){e=ne(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?g.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?g.BOTH:t.test(e.overflowY)?g.Y:t.test(e.overflowX)?g.X:t.test(e.overflow)?g.BOTH:g.NONE}var g={X:"x",Y:"y",BOTH:"both",NONE:"none"};function xo(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Co(e)}function Ro(e){var t=document.createElement("script"),n=document.head||document.getElementsByTagName("head")[0]||document.body;t.type="text/javascript",e.src?t.src=e.src:t.text=e.text||e.textContent||e.innerHTML||"",n.appendChild(t),n.removeChild(t)}function ko(e){var e=Wr(e),t=lo();return K.extend(t,{top:0,left:0,bottom:t.height,right:t.width}),So(t,e)}function Oo(e){var t=K.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],e.nodeName),n=!!e.tabIndex,i=!e.hidden,e=!e.disabled;return(t||n)&&i&&e}function No(e){if(e){if(K.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function Mo(e,t,n){for(var i=[],r=No(document.documentElement),o=No(_o(t)),a=0;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=No(_o(o)),a++;return function(){K.each(K.compact(i),function(e){e()}),i.length=0}}var Lo=['a[href]:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])',"iframe"].join(", ");function Fo(e,t,n){var i=re(t),t=Eo(t,n);if(t!==g.BOTH||So(e,i)){if(t===g.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===g.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function Po(e){if(e){if(xo(e))return 1;var t=re(e);if(0!==t.width&&0!==t.height){var n=ne(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=ne(i=i.parentNode)}return 1}}}}function b(e,t){if(!Po(e))return!1;if(!xo(e)){for(var n=re(e),i=_o(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!Fo(n,i,t))return!1;i=_o(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Lr(),e+=Mr()),o<=0||e<=0)return!1}}return!0}function Go(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=re(e),u=_o(e,s);if(!Po(e))return!1;for(;u;){if(t=re(u),(o=Eo(u,a))!==g.NONE&&(i=n=0,o!==g.Y&&o!==g.BOTH||(d.bottom>t.bottom&&(n+=d.bottom-t.bottom,d.top-=n,d.bottom-=n),d.top<t.top&&(n-=r=t.top-d.top,d.top+=r,d.bottom+=r)),o!==g.X&&o!==g.BOTH||(d.right>t.right&&(i+=d.right-t.right,d.left-=i,d.right-=i),d.left<t.left&&(i-=r=t.left-d.left,d.left+=r,d.right+=r))),!Fo(d,u,s))return!1;u=_o(u,s)}return!0}function Do(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=bo(),d=_o(e,a);d&&d!==s;)t=re(e),n=re(d),r=i=0,t.bottom>n.bottom&&(i+=t.bottom-n.bottom,t.top-=i,t.bottom-=i),t.top<n.top&&(i-=o=n.top-t.top,t.top+=o,t.bottom+=o),t.right>n.right&&(r+=t.right-n.right,t.left-=r,t.right-=r),t.left<n.left&&(r-=o=n.left-t.left,t.left+=o,t.right+=o),K.isFunction(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=_o(d,a)}var Bo={};function Wo(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===Ir())return!0;if(t===Sr())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.jpn|\.hsbc|\.au)?\.pendo\.io$/,/^https:\/\/((adopt\.)?us1\.)?(app|via|adopt)\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu|us1|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.hsbc|\.au)?\.pendo\.io$/],n=(pt()||(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|jp-prod|hsbc|au|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-hummus|mobile-fbi|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze|armada|voc|mcfly|calypso|dap|scrum-ops|ml|helix|uat)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/,new RegExp("^https://pendo-"+tt+"-static\\.storage\\.googleapis\\.com$")])),m.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!K.contains(m.get("allowedOriginServers",[]),t)||K.any(e,function(e){return e.test(t)})}function Uo(e){var t;if(K.isString(e))return t=(t=hr(e).substring(1))&&t.length?vr(t):{},e=K.last(K.first(e.split("?")).split("/")).split("."),{filename:K.first(e),extension:e.slice(1).join("."),query:t}}function $o(e){return K.isString?e.replace(/-/g,"+").replace(/_/g,"/"):e}function jo(e,t){var n;m.get("guideValidation")&&l.sri&&(n=Uo(t),t=K.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+$o(n.query[t]),e.setAttribute("crossorigin","anonymous"))}Bo.$={findOrCreate:function(e){return 0<this.length?this:ee(e)},find:function(e){var t=ee();return t.context=this.context,this.each(function(){ee(e,this).each(function(){t[t.length++]=this})}),t},each:function(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html:function(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text:function(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){so(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass:function(e){return e=e.split(/\s+/),this.each(function(t){K.each(e,function(e){to(t,e)})})},removeClass:function(e){return e=e.split(/\s+/),this.each(function(t){K.each(e,function(e){no(t,e)})})},hasClass:function(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){K.each(e,function(e){n=n&&eo(t,e)})}),n)},toggleClass:function(e){return e=e.split(/\s+/),this.each(function(t){K.each(e,function(e){(eo(t,e)?no:to)(t,e)})})},css:function(e){return this.each(function(){so(this,e)}),this},appendTo:function(e){return ee(e).append(this),this},append:function(e){var t=this;return ee(e).each(function(){t.length&&t[0].appendChild(this),Co(this)&&K.each(s("script",this),Ro)}),t},prependTo:function(e){return ee(e).prepend(this),this},prepend:function(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],ee(e).each(function(){n?ee(this).insertBefore(n):ee(this).appendTo(t)})),this},getParent:function(){var e=ee(this)[0];if(e&&e.parentNode)return ee(e.parentNode)},insertBefore:function(e){e=ee(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),Co(document))&&K.each(s("script",this[0]),Ro)},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(e,t){return K.isObject(e)?(this.each(function(){K.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest:function(e,t){for(var n=this[0];n&&!s.matchesSelector(n,e);)if((n=xi(n))===document||t&&s.matchesSelector(n,t))return ee();return ee(n)},eq:function(e){return ee(this[e])},height:function(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width:function(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus:function(){return this.each(function(){K.isFunction(this.focus)&&this.focus()})}},K.extend(ee,{data:Li,event:$i,removeNode:mo,getClass:ro,hasClass:eo,addClass:go,removeClass:fo,getBody:bo,getComputedStyle:ne,getClientRect:re,intersectRect:So,getScrollParent:_o,isElementVisible:b,scrollIntoView:Do,getRootNode:No}),K.extend(ee.prototype,$i.$,Bo.$);var zo=function(e){var t=0===m.get("allowedOriginServers",[]).length,n=Tr();return!(!t&&!n&&ht(tt,he()))||Wo(e)},Zo=function(e){return new Si(e).origin},Vo=function(e,t,n){void 0===n&&(n=!1);try{var i,r="text/css",o="text/javascript";if(K.isString(e)&&(e={url:e}),!zo(Zo(e.url)))throw new Error;e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];if(e.type===r){var d=document.createElement("link");d.type=r,d.rel="stylesheet",d.href=e.url,jo(d,e.url),a=d}else{if(Mt())return(i=document.createElement("script")).addEventListener("load",function(){t(),mo(i)}),i.type=o,i.src=Te(C).createScriptURL(e.url),jo(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=Te(C).createScriptURL(e.url),jo(i,e.url),a=i,t=K.wrap(t,function(e,t){ee.removeNode(i),t?n&&e(t):e.apply(this,K.toArray(arguments).slice(1))})}return s.appendChild(a),Yo(a,e.url,t),a}catch(u){return{}}},Yo=function(e,t,n){var i=!1;S(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Dt(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Dt(function(){i||Zr("Failed to load "+t+" within 10 seconds")},1e4))},Ho=function(e){var t=JSON.parse(e.data),n=e.origin;X.debug(C.app_name+": Message: "+JSON.stringify(t)+" from "+n),ga(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Ko=function(e){qo(oa)(Xo(e))},Xo=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};X.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}},Jo;function qo(t){return function(e){if(e&&Wo(e.origin))return t.apply(this,arguments)}}function Qo(e){Jo=e}var ea=function(e){fa(e.moduleURL)},ta=function(e){ba(Ho)},na={disconnect:function(e){},module:ea,debug:ta},ia=function(e,t){na[e]=t},ra=function(e){delete na[e]},oa=function(e){var t;e&&(t=e.data)&&S(na[t.type])&&na[t.type](t,e)},aa={},sa=function(e){if(aa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},da=function(e){return S(aa[e])},ua=function(e){if(aa)for(var t in aa)if(0<=t.indexOf(e))return t;return null},ca=[],la=function(){var e;ca.length<1||(e=ca.shift(),da(e))||Vo(e,function(){sa(e),la()})};function pa(e){var t={"/js/lib/ckeditor/ckeditor.js":1},n=(K.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1}),(e=e.replace(/^https:\/\//,"")).substring(0,e.indexOf("/"))),e=e.substring(e.indexOf("/"));return Wo("https://"+n)&&t[e]}function ha(e){return e.replace(/^[a-zA-Z-:]*\/\//,"https://")}var fa=function(e){pa(e=ha(e))&&(ca.push(e),1<ca.length||la())},ga=function(e,t,n){var i,r=K.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Jo||va(),n="*"),t.guid=r,e&&K.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";X.info("Failed to postMessage: "+t)}return r},ma=function(){return window!=window.top},va=function(){var e=new RegExp("^"+rn(br).replace(/^https?:/,"https?:")),t=m.get("forceParentDesigner");return!pt()&&t||e.test(location.href)?window.parent:window.top},ya=function(){var e;ma()&&(e=va(),ga(e,{type:"load",url:location.toString()},"*"))},ba=function(e){var t;return S(window.addEventListener)&&K.isFunction(window.addEventListener)&&(t=qo(e),window.addEventListener("message",t,!1)),function(){S(window.removeEventListener)&&K.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Ia=K.memoize(function(){return m.get("restrictP1Access")}),wa=[],Ca=[],Sa=12e4,Aa=16,Ta=1900,_a=65536,Ea=function(e){return!(!e||""===e)},xa=function(){return f.get()},Ra={flush:K.noop,flushBy:K.noop,flushEvents:La,flushTrackEvents:La,flushSilos:La,flushTrackEventSilos:La,flushBeacons:La,flushNow:La,flushLater:Fa,flushEvery:Pa,flushStop:Ga,beacons:[],silos:[],trackEventSilos:[],lock:Jr,unlock:Ba},ka=[];function Oa(e){ka.push(e)}function Na(e){e=ka.indexOf(e);0<=e&&ka.splice(e,1)}function Ma(e,t){var n;return t=parseInt(t,10)||0,e[t]||(n=Dt(function(){e(),e[t]()},t),e[t]=function(){window.clearTimeout(n),delete e[t]})}function La(e,t){try{K.each(ka,function(e){e.flush&&e.flush(t)})}catch(n){X.critical("unhandled error while flushing event cache",{error:n})}}function Fa(e){return Ma(K.partial(La,!0),e)}function Pa(e){var t;if(e=parseInt(e,10)||0,K.isObject(Pa.intervals)||(Pa.intervals={}),!Pa.intervals[e])return t=window.setInterval(La,e),Pa.intervals[e]=function(){clearInterval(t),delete Pa.intervals[e]}}function Ga(){var e=K.values(Pa.intervals).concat([La]);K.map(e,function(e){K.isFunction(e)&&e()})}function Da(){K.each(ka,function(e){e.clear&&e.clear()}),Ga()}function Ba(){if(!Qr())return Da(),qr()}function Wa(e){e=atob(e);return Uint8Array.from(e,function(e){return e.codePointAt(0)})}function Ua(e){return K.isString(e)&&/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e)}function $a(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode(Wa(e.split(".")[1]))):JSON.parse(atob(e.split(".")[1]))}catch(t){return null}}function ja(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(X.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(X.debug(t+"The signingKeyName is supplied but missing jwt."),!1):!!Ua(e.jwt)||(X.debug(t+"The jwt is invalid."),!1):(X.debug(t+"Missing jwt and signingKeyName."),!1)}var za=function(){var t=null;return{set:function(e){t=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==t?t:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!m.get("enableSignedMetadata")&&(n=ja(e,t),m.get("requireSignedMetadata")&&!n?(X.debug("Pendo will not "+t+"."),!1):n?$a(e.jwt):void X.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}}}(),Za=6,Va=100,Ya=function(){function e(e,t){void 0===t&&(t=Va),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}return e.prototype.isEmpty=function(){return this.queue.length<=0},e.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},e.prototype.start=function(){this.stopped=!1},e.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},e.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},e.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},e.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},e.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,Za))))},e.prototype.retryLater=function(e){var t=this;this.timer=Dt(function(){delete t.timer,t.next()},e)},e.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},e.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},e.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Vt.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Vt.all(i)},e}(),Ha="_PENDO_UNNAMED_",Ka=5;function Xa(e,t,n,i,r,o){n={type:e,browser_time:v(),visitor_id:Q({generate:!0}),account_id:fi(),url:f.externalizeURL(n),props:t||{},eventProperties:r},n=Dn.addTracerIds(n);return"track"===e&&(n.track_event_name=i||Ha),y.eventCaptured.trigger(n,o),n}function Ja(){var e=m.get("dropAnonymous"),t=Xn(Q());return $r&&(!e||!t)}function qa(e,t,n,i,r,o){Ja()&&(t=Xa(e,t,n,i,r,o),Ea(t.url))&&ts(t)&&("track"===e?Vs.push(t):Zs.push(Qa(q,t)))}function Qa(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),K.isEmpty(n)||(t.ops=n)}catch(i){}return t}var es=["load","meta","identify"];function ts(e){return!m.get("freeNPSData")||K.contains(es,e.type)}function ns(){var r=K.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}var is=0;function rs(e,t){e.sequence=is++,t(e)}function os(n,e){var i=e;return function(e,t){t(i=n(i,e))}}function as(e){return os(function(e,t){return e.push(t),e},e)}function ss(e,t){return Tr()?ds("account_id")(e,t):t(e)}function ds(s){return function(e,t){if(!e.length)return t(e);for(var n=K.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==K.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function us(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function cs(e,t,n){t=n[t-1]||K.last(n);return Math.ceil(e/t)}function ls(e,t){for(var n,i=0,r=(K.isFunction(t.overhead)?t.overhead:K.constant(0))(),o=0;o<e.length;++o){if(cs(n=us(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(cs(i+n,o+1,t.compressionRatio)+r>t.upper)return o;i+=n}if(!(0<o))for(o=i=0;o<e.length;++o){if(cs(i+(n=us(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function ps(){var e=za.get();return K.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}function hs(i){return function(e,t){for(var n=ls(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=ls(e,i)}}var fs=2e3;function gs(t){return t=K.defaults(t||{},{fields:[],siloMaxLength:_a}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],X.debug("Max length exceeded for an event"),K.each(t.fields,function(e){var t=i[e];t&&t.length>fs&&(X.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,fs),delete n.JZB)})),e(n)}}function ms(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=C.squeezeAndCompress(e.slice()),e.JZB.length<=_a)||1===e.length?t(e):(n=e.length/2,ms(e.slice(0,n),t),void ms(e.slice(n),t))}function vs(e,t){Qr()&&t(e)}function ys(){return function(e,t){1===e.length&&e.JZB.length>_a?(X.debug("Couldn't write event"),Zr("Single item is: "+e.JZB.length+". Dropping."),Vr(e.JZB)):t(e)}}function bs(e){return K.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey)}function Is(e,t){return jr(t.beacon+".gif",e,K.extend({v:at,ct:v(),jzb:t.JZB},t.params,t.auth))}function ws(e,t){return jr(t.beacon+".gif",e,K.extend({v:at,ct:v(),s:t.JZB.length},t.params))}function Cs(i){return function(e,t){e.params=K.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=za.get();K.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Ss(e,t){var n=Tr(),i=K.first(e),i=K.get(i,"account_id");n&&i&&(e.params=K.extend({},e.params,{acc:xt(i)})),t(e)}function As(e,t){var n=K.first(e),n=K.get(n,"props.source");n&&(e.params=K.extend({},e.params,{source:n})),t(e)}function Ts(e){return JSON.stringify(K.extend({events:e.JZB},e.auth))}function _s(e,t){return Yr(Is(e,t))}function Es(e){return e.status<200||300<=e.status?J.reject(new Error("received status code ".concat(e.status,": ").concat(e.statusText))):J.resolve()}function xs(e,t){return Hr(Is(e,t)).then(Es)}function Rs(e,t){return fetch(ws(e,t),{method:"POST",keepalive:!0,body:Ts(t),headers:{"Content-Type":"application/json"}}).then(Es)}function ks(e,t){var n=Ts(t);return Kr(ws(e,t),n)?J.resolve():J.reject()}function Os(e,t){return p({method:"GET",url:Is(e,t)})}function Ns(e,t){return p({method:"POST",url:ws(e,t),data:Ts(t),headers:{"Content-Type":"application/json"}})}function Ms(e,t){return p({method:"GET",url:Is(e,t),sync:!0})}function Ls(e,t){return p({method:"POST",url:ws(e,t),data:Ts(t),sync:!0,headers:{"Content-Type":"application/json"}})}function Fs(n){return function(e,t){return t.JZB?t.eventLength<=Ta&&!m.get("sendEventsWithPostOnly")?(n.preferFetch&&!t.auth&&Hr.supported()?xs:t.auth?Os:_s)(e,t):n.allowPost&&t.eventLength<=_a?(Hr.supported()?Rs:Kr.supported()?ks:Ns)(e,t):J.resolve():J.resolve()}}function Ps(n){return function(e,t){if(t.JZB){if(t.eventLength<=Ta&&!m.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Hr.supported())return xs(e,t);if(l.msie<=11)return Ms(e,t)}if(t.eventLength<=_a&&n.allowPost){if(Hr.supported())return Rs(e,t);if(Kr.supported())return ks(e,t);if(l.msie<=11)return Ls(e,t)}}return J.resolve()}}function Gs(e){return ns(vs,ss,ms,gs(e.shorten),ms,ys(),Cs(e),Ss,As)}var Ds=function(){function e(e){this.queues=e}return e.prototype.isEmpty=function(){return K.all(this.queues,function(e){return e.isEmpty()})},e.prototype.stop=function(){K.each(this.queues,function(e){return e.stop()})},e.prototype.push=function(){var t=K.toArray(arguments);K.each(this.queues,function(e){return e.push.apply(e,t)})},e.prototype.drain=function(){var t=K.toArray(arguments);return J.all(K.map(this.queues,function(e){return e.drain.apply(e,t)}))},e}();function Bs(t,r,o){r=r||Fs(t),o=o||Ps(t);var e=bs(t),e=K.map(e,function(i){var e=new Ya(function(e,t,n){return n&&(e.params=K.extend({},e.params,{rt:n})),(t?o:r)(i,e)});return e.onTimeout=function(){q.commit("monitoring/incrementCounter",t.beacon+"GifFailures")},e.retryPending=!0,e});return new Ds(e)}function Ws(i){return function(e,t){var n=m.get("excludeNonGuideAnalytics");"ptm"===i&&n||t(e)}}function Us(e,t){var n=m.get("analytics.excludeEvents");0<=K.indexOf(n,e.type)||t(e)}var $s=function(){function e(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Bs(e)}return e.prototype.pause=function(e){var t=this,n=(void 0===e&&(e=1e4),K.uniqueId()),i=this.locks,r=(i[n]=1,function(){i[n]&&(clearTimeout(o),delete i[n],t.flush())}),o=Dt(r,e);return r},e.prototype.push=function(e){var t=this;this.packageSilos(e,function(e){t.silos.push(e)})},e.prototype.clear=function(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()},e.prototype.flush=function(e){var t,e=void 0===e?{}:e,n=e.unload,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e,i=this.cache,r=this.silos;0===i.length&&0===r.length&&this.sendQueue.isEmpty()||K.isEmpty(this.locks)&&(r.push(i.slice()),i.length=0,i=r.slice(),r.length=0,t=[],K.each(i,function(e){this.processSilos(e,function(e){t.push(e)})},this),n||e?this.sendQueue.drain(t,n):(r=this.sendQueue).push.apply(r,t))},e}(),js,zs,Zs,Vs;function Ys(e){var t=Gs(e),n=ns(Ws(e.beacon),Us,rs,as(e.cache),hs({overhead:ps,lower:m.get("sendEventsWithPostOnly")?_a:Ta,upper:_a,compressionRatio:[.5*Ka,.75*Ka,Ka]}));return new $s(K.extend({processSilos:t,packageSilos:n},e))}function Hs(){return js=Ra.events=wa,zs=Ra.trackEvents=Ca,Zs=Ys({cache:js,silos:Ra.silos,apiKey:zr,beacon:"ptm",allowPost:!0}),Vs=Ys({cache:zs,silos:Ra.trackEventSilos,apiKey:zr,beacon:"ptm",allowPost:!0,params:{type:"track"}}),Oa(Zs),Oa(Vs),function(){Da(),Na(Zs),Na(Vs)}}var Ks=wi(function(e){var t,n;if((e=e||f.get())&&e!==Ks.lastUrl)return Ks.lastUrl=e,n=-1,Ia()||ya(),X.debug("sending load event for url "+e),t={load_time:n="undefined"!=typeof performance&&K.isFunction(performance.getEntriesByType)&&!K.isEmpty(performance.getEntriesByType("navigation"))?(t=performance.getEntriesByType("navigation")[0]).loadEventStart-t.fetchStart:n},ma()&&(t.is_frame=!0),"*"!==(n=on())&&(t.allowed_storage_keys=K.keys(n)),qa("load",t,e),Fa(),y.urlChanged.trigger(),!0});function Xs(e){return"hidden"===e.visibilityState}Ks.reset=function(){Ks.lastUrl=null};var Js="visibilitychange",qs="pagehide",Qs="unload";function ed(e,t){var n;return t?((n=[]).push(te(document,Js,function(){Xs(document)&&e(!0,!1)})),n.push(te(window,qs,K.partial(e,!1,!0))),function(){return K.each(n,function(e){e()})}):te(window,Qs,K.partial(e,!0,!0))}function td(){this.serializers=K.toArray(arguments)}function nd(e,t){return e.tag=c.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function id(e){return S(e)?""+e:""}function rd(e,t){return e.id=id(t.id),e}function od(e,t){return e.cls=id(ee.getClass(t)),e}K.extend(td.prototype,{add:function(e){this.serializers.push(e)},remove:function(e){e=K.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize:function(n,i){return n?(i=i||n,K.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var ad=256,sd=64,dd={a:{events:["click"],attr:["href"]},button:{events:["click"],attr:["value","name"]},img:{events:["click"],attr:["src","alt"]},select:{events:["mouseup"],attr:["name","type","selectedIndex"]},textarea:{events:["mouseup"],attr:["name"]},'input[type="submit"]':{events:["click"],attr:["name","type","value"]},'input[type="button"]':{events:["click"],attr:["name","type","value"]},'input[type="radio"]':{events:["click"],attr:["name","type"]},'input[type="checkbox"]':{events:["click"],attr:["name","type"]},'input[type="password"]':{events:["click"],attr:["name","type"]},'input[type="text"]':{events:["click"],attr:["name","type"]}},ud=function(e){return e&&0===e.indexOf("data:")?(X.debug("Embedded data provided in URI."),e.substring(0,e.indexOf(","))):e+""};function cd(e,t){return e.getAttribute?e.getAttribute(t):e[t]}var ld=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?(i=e.getAttribute(t),lr(ud(i))):(i=cd(e,t),(!n||typeof i===n)&&i?K.isString(i)?gt.call(i).substring(0,ad):i:null):null};function pd(t){var e,n,i;return K.isRegExp(t)&&K.isFunction(t.test)?function(e){return t.test(e)}:K.isArray(t)?(e=K.map(K.filter(t,K.isObject),function(e){var t;return e.regexp?(t=(t=/\/([a-z]*)$/.exec(e.value))&&t[1]||"",new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),t)):new RegExp("^"+e.value+"$","i")}),function(t){return K.any(e,function(e){return e.test(t)})}):K.isObject(t)&&t.regexp?(n=(n=/\/([a-z]*)$/.exec(t.value))&&n[1]||"",i=new RegExp(t.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):K.constant(!1)}function hd(e,t,n,i){try{var r,o=K.indexBy(t),a=K.filter(K.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=sd?K.pluck(a,"nodeName"):(r=K.groupBy(e,function(e){return o[e.nodeName]?"defaults":K.isString(e.value)&&e.value.length>ad?"large":"small"}),K.pluck([].concat(K.sortBy(r.defaults,"nodeName")).concat(K.sortBy(r.small,"nodeName")).concat(K.sortBy(r.large,"nodeName")).slice(0,sd),"nodeName"))}catch(s){return X.error("Error collecting DOM Node attributes: ".concat(s)),[]}}function fd(t,n){var e=pd(m.get("htmlAttributes")),i=pd(m.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=ld(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},hd(n.attributes,dd[r]&&dd[r].attr,e,i));return K.each(r,function(e){t.attrs[e.toLowerCase()]=ld(n,e)}),t}function gd(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=K.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==Er}).indexOf(t).value()),e}function md(i,e){var r;return m.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(md),e=this.serialize(e.previousElementSibling),this.add(md),i.attrs=i.attrs||{},K.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;K.isEmpty(e)||(K.isObject(e)?K.each(e,function(e,t){e&&!K.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}function vd(){return new td(nd,rd,od,fd,gd,md)}var yd=vd(),bd=function(e){return"BODY"===e.nodeName&&e===bo()||null===e.parentNode&&!c.isElementShadowRoot(e)},Id="pendo-ignore",wd="pendo-analytics-ignore",Cd=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=yd.serialize(o,e)}while(r||!Nt(a.cls,Id)&&!Nt(a.cls,wd)||(r=!0),n.parentElem=a,n=a,(i=c.getParent(o))&&!bd(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Sd=["","left","right","middle"],Ad=function(e,t){return Sd[t]},Td=function(){return!0},_d=function(e){return e.which||e.button},Ed=function(e){return e},xd=function(e,t){return e[t]},Rd=[["button",_d,Td,Ad],["altKey",xd,Ed,Ed],["ctrlKey",xd,Ed,Ed],["metaKey",xd,Ed,Ed],["shiftKey",xd,Ed,Ed]],kd=function(e,t){for(var n=[],i=0;i<Rd.length;i++){var r=Rd[i],o=r[0],a=r[1],s=r[2],r=r[3],a=a(e,o);s(a)&&n.push(r(o,a))}return t.flags=n,t},Od={click:kd},Nd=function(e){return e.nodeType===_r?e.parentNode:e.nodeType===kr?null:e.correspondingUseElement||e},Md=function(e){try{var t,n,i,r,o,a;ee.data.get(e,"counted")||(ee.data.set(e,"counted",!0),t=Ui(e),n=e.type,i={},(r=Od[n])&&(i=r(e,i)),ee.data.get(e,"stopped")&&(i.stopped=!0),e.from&&K.isString(e.from)&&(i.from=e.from),(t=Nd(t))?(o=Cd(t),K.extend(o,i),Ks()&&f.startPoller(),o.ignore||(a=void 0,"click"===n&&(a=Ld(t)),qa(n,{target:o},undefined,undefined,a,e),y.trigger("appUsage",o,e))):X.info("Invalid HTML target",{contexts:["event","dom","processing"]}))}catch(s){X.critical("pendo.io while handling event",{error:s})}};function Ld(e){e=Fd(e),y.onClickCaptured.trigger(e),e=e.getEventProperties();if(!K.isEmpty(e))return e}function Fd(e){var n={};return{getEventProperties:function(){return n},addEventProperty:function(e,t){K.isString(e)&&!K.isUndefined(t)?n[e]=t:X.error("Failed to add click event property")},target:e}}var Pd=function(e){var t=K.map(e,function(e){return I(document,e,Md,!0)});return function(){K.each(t,function(e){e()})}},Gd=5e3,Dd=K.debounce(Md,Gd,!0),Bd=function(e){var t=[],n=(K.contains(e=e||["click","focus","submit","change"],"change")&&(e=K.without(e,"change"),t.push(function(){Dd.cancel()}),t.push(te(document,"change",Dd,!0))),m.get("interceptElementRemoval")||m.get("syntheticClicks.elementRemoval")),i=m.get("syntheticClicks.targetChanged"),n=(t.push(Wd(ee.event.trigger,l.addEventListener,n,i).teardown),t.push(Pd(e)),t.push(ed(function(e,t){t&&y.appUnloaded.trigger(),e&&y.appHidden.trigger()},m.get("preventUnloadListener"))),y.appHidden.on(function(){La(!0,{hidden:!0})}),y.appUnloaded.on(function(){La(!0,{unload:!0})}),m.get("interceptStopPropagation",!0)),i=m.get("interceptPreventDefault",!0);return n&&t.push(jd(window.Event,e)),i&&t.push(zd(window.Event,["touchend"])),function(){K.each(t,function(e){e()})}};function Wd(t,e,n,i){var r,o,a=[],s=l.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=ee.event.clone(e);return e.type="click",e.from=d,e.bubbles=!0,e},down:function(e){o=!1,e&&(r=c.cloneEvent(e),n)&&c.intercept(e)},up:function(e){o=!1,e&&r&&i&&Ui(r)!==Ui(e)&&(o=!0,t(r))},click:function(e){r=null,o&&ee.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=Ud(Ui(e));K.each(e,function(e){e=$d(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(K.each(a,function(e){e()}),a=[])},teardown:function Wm(){c.unwrap(),K.each(u,function(e){e()})}};return e&&(u.push(te(document,d,c.down,!0)),u.push(te(document,s,c.up,!0)),u.push(te(document,"click",c.click,!0))),c}function Ud(e){for(var t=[];e&&!bd(e);)t.push(e),e=e.parentNode;return t}function $d(n,i){var e=["remove","removeChild"];try{if(!n)return K.noop;K.each(e,function(e){var t=n[e];if(!t)return K.noop;n[e]=K.wrap(t,function(e){return i&&i(),e.apply(this,K.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return K.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){X.critical("ERROR in interceptRemove",{error:t})}return function(){K.each(e,function(e){if(!n[e])return K.noop;e=n[e]._pendoUnwrap;K.isFunction(e)&&e()})}}function jd(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return K.noop;var i=K.indexBy(e);K.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=K.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(ee.data.set(this,"stopped",!0),ee.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){X.critical("ERROR in interceptStopPropagation",{error:r})}return function(){K.each(t,function(e){e=n.prototype[e]._pendoUnwrap;K.isFunction(e)&&e()})}}function zd(t,e){try{if(!t||!t.prototype)return K.noop;var i=K.indexBy(e),n=t.prototype.preventDefault;if(!n)return K.noop;t.prototype.preventDefault=K.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=ee.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Fi,ee.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){X.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;K.isFunction(e)&&e()}}function I(e,t,n,i){return e&&t&&n?(i&&!l.addEventListener&&(i=!1),ee.event.add(e,{type:t,handler:n,capture:i})):K.noop}function w(e,t,n,i){e&&t&&n&&(i&&!l.addEventListener&&(i=!1),ee.event.remove(e,t,n,i))}var Zd=function(e){ee.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Vd=function(e,t){return"complete"!==(t=t||window).document.readyState?te(t,"load",e):(e(),K.noop)},Yd=[],Hd=[],Kd={},Xd={};function Jd(e){Kd=e}function A(){return Yd}function qd(){return Qd(A())}function Qd(e){return K.filter(e,function(e){return!e.isFrameProxy})}function eu(e){K.isArray(e)?(Yd=e,y.guideListChanged.trigger({guideIds:K.pluck(e,"id")})):X.info("bad guide array input to `setActiveGuides`")}var tu=function(){var n=[];return{addGuide:function(e){var t;K.isEmpty(e)||(n=n.concat(e),K.each(n,function(e){return e.hide&&e.hide()}),e=A(),(t=K.difference(e,n)).length<e.length&&(eu(t),q.dispatch("frames/changeGuideList",t)))}}}();function nu(t,n){return K.find(ou(),function(e){return K.get(e,t)===n})||null}function T(e){return nu("id",e)}function iu(e){return nu("name",e)}function ru(e,t){return e&&e.id?(e=T(e.id)).findStepById(t):null}function ou(){var e=K.values(Xd);return e.length?Yd.concat(K.flatten(e)):A()}function au(){Xd={}}function su(e,t){K.isArray(t)&&(Xd[e]=t)}function du(e){delete Xd[e]}var uu="_pendo-guide-tt_",cu="_pendo-guide-mobile-tt_",lu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},pu=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)};function hu(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function fu(){return!!(hu()&&lo().width<=320)||l.isMobileUserAgent()}function oe(){var e=oe.attachPoint;if(null==e){var t=m.get("guides.attachPoint");if(K.isString(t)){try{e=s(t)[0]}catch(n){X.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!K.isFunction(t)&&t();oe.attachPoint=e}return e||bo()}var gu=function(e){var t=Kd[e.guideId];if(t){t=t.element();if(Co(t)&&t.id==="_pendo-badge_"+e.id)return t}},mu=function(e){var t;return e?(t=e.getGuide(),t="building-block"===K.get(t,"attributes.type")||!pu(t),!e.overrideElement&&t&&(e.overrideElement=gu(e)),e.targetElement=vu(e),e.overrideElement||e.targetElement):(X.info("Can't get element for null step"),null)},vu=function(e){e=e.elementPathRule||null,e=e?s(e):[bo()];return 0===e.length?null:K.first(e)};function yu(e){var t=K.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function bu(e,t,n){var i,r,o,e=ie(e),t=ie(t),a=(e=e,a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),o=Math.max(e.top+e.height,a.top+a.height),e=Math.max(e.left+e.width,a.left+a.width),{height:Math.abs(o-i),width:Math.abs(e-r),top:i,left:r});!1!==po(a)||t.fixed||(o=Iu(a,lo(),n,Eo(bo(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function Iu(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};return r.y="top"===n?e.top:e.top+e.height-t.height,r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),K.contains([g.X,g.BOTH],i)&&(r.x=0),K.contains([g.Y,g.BOTH],i)&&(r.y=0),r}function wu(e,t,n,i,r){var o,a=K.toArray(arguments).slice(1),s=e.apply(this,a);return n||No(o=oe())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function Cu(){return q.getters["frames/isLeader"]()}function Su(){return q.getters["frames/leaderExists"]()}function Au(e){return q.dispatch("frames/updateFrameVisibility",{visibility:e})}var Tu=function(){var n=Bn.call({}),i={validateGuide:1,validateLauncher:1,validateGlobalScript:1},e={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1};return K.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){e[t]&&y[t].on(function(e){return Tu[t].apply(Tu[t],e.data)}),n[t]=function(e){return K.isFunction(e)?n.on(t,e):n[i[t]?"triggerAsync":"trigger"].apply(n,[t].concat(K.toArray(arguments)))}}),n}();function _u(e,t,n){return p.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){C.guidesPayload(e.data),n()})}var Eu={post:_u,load:function(e,t){return p.get(e).then(function(e){C.guidesPayload(e.data),t()})},endpoint:function(){return"guide.json"},usesXhr:function(){return!0}};function xu(e){e=Uo(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}var Ru=function(){var t,n,e,i,r,o={failed:{},verified:{}};return n=o,i=Vr,r=function(e){try{var t=[];return!Eu.usesXhr()&&e.domJsonpUrl?t.push(s(e,"domJsonpUrl")):Eu.usesXhr()&&e.domUrl&&t.push(a(e,"domUrl")),e.contentUrlJs?t.push(s(e,"contentUrlJs")):e.contentUrl&&t.push(s(e,"contentUrl")),J.all(t)}catch(n){throw y.contentVerificationFail.trigger(e,n),n}},e=function(e){return r(e).then(K.noop,function(e){return/verify/.test(e)&&i(e),J.reject(e)})},t=function(t){return n.failed[t.id]?J.reject():n.verified[t.id]?J.resolve():e(t).then(function(){n.verified[t.id]=!0},function(e){return n.failed[t.id]=!0,J.reject(e)})},{verify:function(e){return m.get("guideValidation")?t(e):J.resolve()},reset:function(){o.failed={},o.verified={}}};function a(e,t){var n,i=e[t];return K.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||xu(e[t]),p.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=R.create()).update(e),u.uint8ToBase64(t.digest())!==n)return J.reject('Unable to verify content at "'+i+'"')})):J.reject('unable to parse "'+i+'"')}function s(e,t){var n=e[t];return l.sri&&/[?&]sha(256|384|512)=/.test(n)?J.resolve():a(e,t)}}(),ku=function(){var o="allow",a="deny",s="pending",d={},r=function(){return 0<K.size(Tu._handlers.validateGuide)};function u(i){var r=d[i.id];return r||(r={},d[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+Rt(e),n=(r[t]||(r[t]={status:s},r.status=s),r[t].promise);return n||(n=Tu.validateGuide(e,i).then(function(){r[t].status=o,r.status=o},function(e){return r[t].status=a,r.status=a,J.reject(e)}),r[t].promise=n),n})}var c=function(e,n){var i=[];return K.each(e,function(e,t){n&&(t=n+"."+t),K.isObject(e)?K.each(c(e,t),function(e){i.push(e)}):i.push([t,e])}),i};return{state:d,Step:function(e){var n=this;function i(e){return K.filter([["content",xu(e.contentUrl)],["contentCss",xu(e.contentUrlCss)],["contentJs",xu(e.contentUrlJs)],["dom",xu(e.domUrl)],["domJsonp",xu(e.domJsonpUrl)]],function(e){return e[1]})}return this.signature=function(){var e,t;return this.domUrl?this.guide.authoredLanguage===this.language?i(this):i({contentUrl:n.contentUrl,contentUrlCss:n.contentUrlCss,contentUrlJs:n.contentUrlJs,domUrl:n.domUrl,domJsonpUrl:n.domJsonpUrl}):(e=[["content",this.content]],(t=this.attributes&&this.attributes.variables)&&(t=c(t)).length&&(t=K.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return K.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<K.size(Tu._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(r()&&i)return!1}),n.before("render",function(){var e,t;if(r())return!i&&(t="launcher-"+Rt(n.signature()),(t=d[t])!==a)&&(t!==o?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+Rt(t),Tu.validateLauncher(t).then(function(){d[e]=o},function(){d[e]=a}).then(function(){i=!1,n.render(),n.update(A())},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=c(this.data);return t.length&&(t=K.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!r())return J.resolve();try{return K.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=se.findResourceCenterModules(t,A()),t=[t].concat(n),J.all(K.map(t,u))):u(e)}catch(i){throw y.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!r()||!!(e=d[e.guideId])&&e.status===o},invalid:function(e){return!!r()&&!!(e=d[e.guideId])&&e.status===a},reset:function(){d={}}}}();function Ou(e,t){var n=K.toArray(arguments).slice(2);return K.reduce(e,function(e,t){return t.apply(e,n)},t)}function Nu(e){return K.isFunction(e.before)?e:Ou(Nu.behaviors,e)}function Mu(e,t){return Ou(Mu.behaviors,e,t)}function Lu(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",n=e.length,i=0,r=0,o="",a=0;a<n;a++)for(r=r<<8|e[a],i+=8;5<=i;)o+=t[r>>>i-5&31],i-=5;return 0<i&&(o+=t[r<<5-i&31]),o}function Fu(e){var t,n,i=m.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+Ee(tt)+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+xe(tt)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+rn(it),"g"),i)):e}function Pu(e){return m.getLocalConfig("contentHost")?JSON.parse(Fu(JSON.stringify(e))):e}function Gu(){var e=rn(m.getHostedConfig("contentHost"));if(e)return e+"*"}function Du(e){return!!(K.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props"))}Nu.behaviors=[],Mu.behaviors=[];var Bu=function(){var u={},c=K.compose(function(e){var t=Gu();return t&&!new RegExp(t).test(e)&&X.debug("Failed to verify URL: "+e+" vs "+t),e},Fu);var d=[function(e,t,n){return t="var guide = pendo.findGuideById('".concat(t,"');\nvar step = guide && guide.findStepById('").concat(n,"');"),e.replace("<% if (typeof guide !== 'undefined') { %>\nvar guide = pendo.findGuideById('<%= guide.id %>');\nvar step = guide && guide.findStepById('<%= step.id %>');\n<% } %>",t)}];return{load:function(t){try{var e=u[t.id];if(e&&e.language!==t.language&&delete u[t.id],!u[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(u[t.id]=r,Eu.usesXhr()&&t.domUrl?(r.deferred.domJson=J.defer(),p.get(c(t.domUrl)).then(function(e){r.domJson=Pu(e.data),Du(e.data)?r.deferred.domJson.resolve():(X.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){X.critical(e),y.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=J.defer(),n=Vo(c(t.domJsonpUrl),function(e){ee.removeNode(n),e&&y.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!m.get("preventCodeInjection")){r.deferred.content=J.defer();var a=Vo(c(function(e){if(Mt()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+Lu(mt(n)));if(K.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){ee.removeNode(a),e&&y.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=J.defer(),Vo({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!m.get("preventCodeInjection")){r.deferred.content=J.defer();var s=Vo(function(e,t){if(!K.isString(e))return e;var n=K.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){ee.removeNode(s),e&&y.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return J.reject("fetchedDomContent is still false");r.deferred.promise=J.all(i).then(function(){return K.omit(r,"deferred")})}return u[t.id].deferred.promise}catch(d){throw y.resourceFetchFail.trigger(t,d),d}},reset:function(){u={}},guideContent:function(e,t,n,i,r){var o,a,s;K.isString(n)&&(o=n,a=e,s=t,n=K.reduce(d,function(e,t){return t(e,a,s)},o),K.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?K.template(n):K.constant(n)),o=u[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=u[e+t])&&e.deferred.domJson&&(e.domJson=Pu(n),e.deferred.domJson.resolve())}}}(),Wu=function(){function a(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(K.extend(i,{fetchContent:function(e){void 0===e&&(e=!1);return e?a.prefetch(i):a.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=K.indexOf(n.steps,i);K.chain(n.steps).rest(t+1).first(e).each(function(e){K.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function s(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}return a.state={},a.queue=[],a.pending=function(){return K.reduce(a.state,function(e,t){return e+(t.loaded?0:1)},0)},a.reset=function(){Bu.reset(),a.state={},a.queue=[]},a.prefetch=function(e){var t;return a.hasContent(e)?K.get(a.state[s(e)],"promise"):(t=J.defer(),a.queue.push([t,e]),t.promise)},a.processPrefetch=function(e){return void 0===e&&(e=10),a.queue.length?(e=a.queue.splice(0,Math.max(e-a.pending(),0)),J.all(K.map(e,function(t){return a.fetchContent(t[1]).then(function(e){t[0].resolve(e)})["catch"](function(e){t[0].reject(e)})}))):J.resolve()},a.fetchContent=function(t){var e=s(t);if(!(i=a.state[e])){var n,i={},r=t.getGuide();if(r.control)return J.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=K.extend({id:r,language:n,guideId:t.guideId},K.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=Ru.verify(o).then(function(){return i.verified=!0,Bu.load(o)}).then(function(e){return i.loaded=!0,e}),a.state[e]=i}return i.promise.then(function(e){K.extend(t,e)})},a.hasContent=function(e){return S(e.content)||S(e.domJson)},a}(),Uu=function(){var e=y.runtime,o=[];function r(e,n,i,r){return K.filter(e,function(e){if(K.isFunction(e[r])){if(K.isFunction(e.test))try{return e.test(n,i)}catch(t){return X.critical("Error in global script test code block",{error:t}),!1}return K.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function a(e,t,n){var i=[];return"script"===(n=void 0===n?"script":n)&&K.isFunction(e.script)&&i.push(e.script),K.size(o)&&(e=r(o,e,t,n),K.each(e,function(e){i.push(e[n])})),i}function i(t,n,i){var r=i.guide;r&&K.all(a(i,r,"beforeMount"),function(e){try{return e.call(t,n),!n.cancel}catch(err){return X.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:err}),!1}})}var s=Bn.call({}),d={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function u(e){return d[e]}function t(n){this.step=n,K.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=K.first(arguments)+":"+K.get(n,"guide.id");return h[t].apply(this,[e].concat(K.rest(arguments)))}},this);var e=K.bind(function(e){this.step.id!==e.step.id?X.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=K.partial(s.off,"afterUnmounted",e),s.on("afterUnmounted",e)}return e.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,u(e.type))return-1<K.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&s.trigger(t,e),t=d[e.type].type,s[t](e.type,e),"unmounted"===e.type?s.trigger("afterUnmounted",e):"beforeMount"===e.type&&i(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}),t.prototype.on=function(e,t){var n,i;u(e)?(d[e].fromUnmount&&(t=K.once(t)),n=this.step,i=t,t=wi(t=function(e){if(e.step.id===n.id)return i(e);X.debug("called guide runtime callback on wrong step")}),s.on(e,t),this.purge=K.compose(this.purge,K.partial(s.off,e,t))):X.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){var e=m.get("guides.globalScripts");K.each(e,Uu.addGlobalScript)},teardown:function(){K.each(o,Uu.removeGlobalScript)},addGlobalScript:function(e){var t,n,i,r;t=e,(i=K.without(K.keys(t),"script","test","regex","beforeMount")).length&&(n=t.script,t.script=function(){if(K.each(i,function(e){u(e)&&this.on(e,t[e])},this),K.isFunction(n))return n.apply(this,arguments)}),r=e=t,!K.isFunction(r.script)&&!K.isFunction(r.beforeMount)||r.test&&!K.isFunction(r.test)||r.regex&&!K.isRegExp(r.regex)?X.critical("Error adding invalid GlobalScript via API"):o.push(e)},removeGlobalScript:function(e){0<=(e=K.indexOf(o,e))&&o.splice(e,1)},getContext:function(e){return new t(e)},runCustomScripts:function(n,i){K.each(a(n,i),function(e){try{var t=Uu.getContext(n);e.call(t,n,i)}catch(err){X.critical("Exception thrown running code block for: "+JSON.stringify({guideId:i.id,stepId:n.id}),{error:err})}})}}}();function $u(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?K.find(e.children,function(e){return $u(e)}):void 0}function ju(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=ju(e.children[n],t);if(i)return i}return!1}function zu(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat.apply(n,K.map(e.children,function(e){return zu(e,t)})):n}function Zu(e,t){if(t.props&&t.props.id===e)return t;if(t.children)for(var n=0;n<t.children.length;n++){var i=Zu(e,t.children[n]);if(i)return i}}var Vu=function(){return{buildNodesFromTemplate:function(e,t,n,i,r){var o=i||A(),a=r||C.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return K.reduce(e,function(e,t,n){var i=se.findResourceCenterHomeView(f),r=K.find(f,function(e){return e.id===t.id});if(C.designer)r=t,i=K.find(f,function(e){return K.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return K.each(r.children,function(e){e=T(e);e&&e.control&&e.steps[0].onControlGuide("control")}),e}var o,a,s,d=JSON.parse(JSON.stringify(p)),u=(delete d.templateChildren,d.props.id=d.props.id+"-"+n,d.props["data-pendo-module-guide-id"]=r.id,d.actions||(d.actions=[]),{action:"renderResourceCenterModule",source:d.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),u=(d.props["data-localization-direction"]&&u.parameters.push({name:"transitionDirection",type:"string",value:d.props["data-localization-direction"]}),C.designer||d.actions.push(u),K.get(i,"attributes.notificationBubble")),c=K.get(i,"attributes.notifications"),u=(u&&c&&("AnnouncementsModule"===K.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===K.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(d.props["data-pendo-notification-id"]=o,c=d,r=u,u=o,o=(i=i).attributes.notifications.individualCounts[o],c=ju(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=K.find(c.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(l=parseInt(s.props.style.width,10))&&!isNaN(l)&&(a=c.children.indexOf(s),l=l-40+"px","100%"!==s.props.style.width&&(s.props.style.width=l),(l="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(i.attributes.notifications.individualCounts[u]),props:{style:{position:"relative",top:"50%","font-weight":r["font-weight"],"font-family":r["font-family"],color:r.color}}}],props:{id:"pendo-home-view-bubble","class":"_pendo-home-view-bubble",style:Kt(Kt(Kt({position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px"},!l&&{right:"20px"}),l&&{left:"20px"}),{top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":r["background-color"],display:o?"block":"none"}),"aria-hidden":!0}},c.children.splice(a+1,0,s)),ju(d=m(d,t,d.props.id,n),function(e){e=K.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=ju(d,function(e){e=K.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=ju(d,function(e){e=K.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-".concat(n))});return u&&(u.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]="".concat(u.props.id," ").concat(l&&l.props.id)),e.concat(g(d,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,d){var e=o.templateChildren;return K.reduce(e,function(e,t,n){var i,r=f(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},C.designer||i.actions.push(r),i=m(i,t,i.props.id,n),e.concat(d(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;K.filter(r,function(e){return f(n,e)}).length?(e.children=K.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(e,t){e.templateName&&(e.templateChildren=t);if(!e.children||!e.children.length)return;for(var n=0;n<e.children.length;n++)o(e.children[n],t)}(e,r)):e.children=K.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});return se.updatePseudoStyleSelectors(e),[i(e,t,n)]}(t,n,o,a);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(s,d,u,c){var e=s.templateChildren;return K.reduce(e,function(e,t,n){var i,r,o,a=f(u,t);return a?(delete(i=JSON.parse(JSON.stringify(s))).templateChildren,i.props.id=i.props.id+"-"+n,i.props["data-pendo-show-guide-id"]=a.id,i.props["class"]+=" pendo-task-list-item",i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:a.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},C.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),ju(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=l(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=m(i,t,i.props.id,n),e.concat(c(i,d,u))):e},[])}(t,n,o,a);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,t,n,i){var r=e.templateChildren||t.getGuide().attributes.resourceCenter.children,o=0,a=0,r=(K.forEach(r,function(e){e=f(n,e);e&&(e.isComplete()?(o+=e.getTotalSteps(),a+=e.getTotalSteps()):(o+=e.getTotalSteps(),a+=e.getSeenSteps()))}),parseInt(a/o*100,10));isNaN(r)&&(r=0);r={totalPercentComplete:r+"%"};return ju(e=m(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(l,e,n,p){e=e.getGuide().attributes.resourceCenter.children,e=K.reduce(e,function(e,t){t=f(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!K.every(e,function(e){e=e.steps[0];return!!Wu.hasContent(e)}))return[];var t=se.getResourceCenter(),h=K.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return K.map(e,function(e,t){var n,i,r,o,a,s,d,u="whatsnew"===K.get(e,"attributes.type"),c=JSON.parse(JSON.stringify(l));return c.props.id=c.props.id+"-"+t,c.props["data-pendo-announcement-guide-id"]=e.id,c.props["data-pendo-announcement-send-seen-event"]=!0,u?(t=c,u=h,s=p,n=Nu(r=e),(d=n.steps[0]).render(),Uu.runCustomScripts(d,n),i="#"+(n=d.guideElement)[0].id+" h1::after { display:none; }",n[0].appendChild(document.createElement("style")).innerHTML=i,u&&((o=g(u)).props.style.top="20px"),!se.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,d),n.appendTo(i),i):(u=c,r=h,o=p,d=Nu(t=e),s=t.steps[0],Uu.runCustomScripts(s,d),d=JSON.parse(JSON.stringify(s.domJson)),u.children=[d],r&&(a=g(r),d=ju(u,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(u.props.style["padding-top"],10),d=parseInt(d.props.style["padding-top"],10),a.props.style.top=d+r+5+"px"),!se.hasAnnouncementBeenSeen(t)&&a&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(a)),delete u.templateName,(d=Zu("pendo-guide-container",u))&&(d.props.id=d.props.id+"-"+s.id),o(u,s))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():K.find(n,function(e){return e.id===t.guideId}),o=K.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=K.get(r,"currentFirstEligibleToBeSeenAt")||K.get(r,"showsAfter")||K.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=m(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:g,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return K.reduce(e,function(e,t,n){t=f(i,t);return t&&e.push(t),e},[])}};function l(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return K.isNull(n[t])||K.isUndefined(n[t])?e:n[t]})}function m(e,t,n,i){if(e.content&&(e.content=l(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?l(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)m(e.children[r],t,n,i);return e}function f(e,t){e=K.find(e,function(e){return e.id===(t.id||t)});if(C.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function g(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Kt(Kt({position:"absolute","border-radius":"5px",height:"10px",width:"10px","line-height":"0px"},t),{top:"30px","box-sizing":"content-box","background-color":e["background-color"],"z-index":"10"})}}}}(),Yu=function(){return{buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return n(t)}},createProgressCircleSvg:n};function n(e){var t,n,i,r,o,a,s;return ke(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=ee(Te(C).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.find(".pendo-progress-circle-fill"),t?o.css({border:"3px solid "+n,height:"10px",width:"10px"}):o.css({border:"3px solid "+i,height:"10px",width:"10px"}),r):100<=((t=e.svgAttributes).fillCircle.percentComplete||0)?(n=(n=t).fillCircle.stroke,(i=ee(Te(C).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",n),i):(r=(o=t).fillCircle.stroke,e=o.backgroundCircle.stroke,o=o.fillCircle.percentComplete||0,a='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+(a=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+a+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(a=ee(Te(C).createHTML(a))).find(".pendo-progress-circle-fill")[0],a.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),o<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",r),s.setAttributeNS(null,"stroke-dasharray",o+", 100")),a)}}(),Hu=function(e,t){return e<t},Ku=K.negate(Hu);function Xu(e){return{top:0,left:0,right:e.width,bottom:e.height,width:0,height:0}}function Ju(){var e=bo();return Gr(e)?re(e):((e=lo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function qu(e,t,n){var i={},r=t.top-e.top,e=t.left-e.left;return i.top=r-n.top,i.left=e-n.left,i.height=t.height+n.top+n.bottom,i.width=t.width+n.left+n.right,i.bottom=i.top+i.height,i.right=i.left+i.width,{top:{top:0,height:Math.max(i.top,0),left:i.left,width:i.width},left:{top:0,bottom:0,left:0,width:i.left},bottom:{top:i.bottom,width:i.width,bottom:0,left:i.left},right:{top:0,bottom:0,left:i.right,right:0}}}function Qu(e){var t;if(e&&e.length)return t=Gr(bo())?re:Wr,(e=K.reduce(e,function(n,e){var i;return b(e)?(i=t(e))?(K.each([["top",Hu],["right",Ku],["bottom",Ku],["left",Hu]],function(e){var t=e[0],e=e[1];n[t]&&!e(i[t],n[t])||(n[t]=i[t])}),n):void 0:n},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function ec(e,t){var n=Ju(),e=Qu(e)||Xu(n);return{viewport:n,box:e,overlays:qu(n,e,t)}}function tc(e){var t=[],n=K.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==bo()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=ee(i[r]);o&&K.each(o,function(e){t.push(e)})}catch(a){X.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var nc=null,ic=function(e){var t=!K.isEqual(e,nc);return nc=e,t},rc=null,oc=function(e){var t=!K.isEqual(e,rc);return rc=e,t},ac=null,sc=function(e){var t=!K.isEqual(e,ac);return ac=e,t},dc=function(e){return oc(e.viewport)||ic(e.box)||sc(e.overlays)};function uc(e){try{var t=ec(tc(e),K.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));dc(t)&&K.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];K.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){X.info("Failed to update BlockOut ui",{contexts:["error"]})}}function cc(e){try{var t,n,i,r;if(!pc())return t=ec(tc(e),K.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),dc(t),n={"z-index":1e4,position:"fixed"},i=[],K.each(t.overlays,function(e,t){t=lc(t,K.extend({},e,n));i.push(t)}),r=hc(i,e),e.backdrop=r[0],r}catch(o){X.info("Failed to add BlockOut ui",{contexts:["error"]})}}function lc(e,t){var n=ee("div.pendo-backdrop-region-"+e);return n.length||(n=ee(document.createElement("div")).addClass("pendo-backdrop-region-"+e)),ee(n).css(t).attr("pendo-region",e),n}function pc(){return 0<ee("._pendo-guide-backdrop_").length}function hc(e,t){var r=Zu("pendo-backdrop",t.domJson),o=(K.each(["left","right","width","height","bottom","top"],function(e){delete r.props.style[e]}),ee(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"));return K.each(r.props,function(n,i){K.each(e,function(e,t){"style"===i?e.css(r.props.style):"class"===i?e.addClass(n):"id"===i?e.attr(i,n+"-"+t):e.attr(i,n),o.append(e)})}),o}var fc="top",gc="bottom",mc="left",vc="right",yc="center";function bc(e,t,n){return n===vc||n===mc?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?yc:n<e/2?vc:mc)}function Ic(e,t,n){return n===fc||n===gc?n:(n=e.top,(t=(e=t.height)/3)<n&&n<2*t?yc:n<e/2?gc:fc)}var wc=function(){return{createBBTooltip:i,getBBTooltipDimensions:p,determineBBHorizontalBias:bc,determineTooltipPosition:a,positionBBTooltipWithBias:s,calculateToolTipPositionForTopBottom:r,calculateToolTipPositionForLeftRight:o,buildTooltipCaret:h,styleTopOrBottomCaret:u,styleLeftOrRightCaret:f,buildBorderCaret:g,determineBorderCaretColor:v,placeBBTooltip:function(e,t){var n,i,r,o,a,t=t||function(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=$u(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(i=e.element||mu(e),n=ie(i),"none"!==ne(e.elements[0]).display)&&(i=Wr(i),a=e.attributes.layoutDir,e=e.guideElement,r=ee(t).find("#pendo-guide-container"),o=r[0].style,t=ne(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},r={height:parseInt(r[0].getAttribute("data-caret-height"),10)||0,width:parseInt(r[0].getAttribute("data-caret-width"),10)||0,backgroundColor:r[0].style["background-color"],offset:10,borderColor:o.borderColor,borderWidth:parseInt(o.borderWidth,10)},o=this.getBBTooltipDimensions(n,t,r,a,i),r.height&&r.width&&(t=e.find(".pendo-tooltip-caret")[0],a=e.find(".pendo-tooltip-caret-border")[0],t&&d(t,o,r),a)&&m(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:l,attachScrollHandlers:c,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!K.isObject(e.domJson)||!(e=$u(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){i(t,e.element,e,n),e.hasBeenScrolledTo||(Do(e.element),bu(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}};function i(e,t,n,i){var r,o,a,s,d,u;if(n.guideElement)return(r=n.guideElement).addClass(fu()?cu:uu),0===(o=ie(t)).height&&0===o.width?null:(t=Wr(t),(e=ju(e,function(e){return"pendo-guide-container"===e.props.id}))?(u=n.attributes.layoutDir,d={height:i.offsetHeight,width:i.offsetWidth},a={height:parseInt(e.props["data-caret-height"],10)||0,width:parseInt(e.props["data-caret-width"],10)||0,backgroundColor:e.props.style["background-color"],offset:10},l(n),e.props.style.border&&(e=e.props.style.border.split(" "),a.borderColor=e[2],a.borderWidth=parseInt(e[0],10)),e=p(o,d,a,u,t),n&&(n.dim=e),n&&K.isFunction(n.getGuide)&&(s=n.getGuide()),d=K.get(s,"attributes.resourceCenter"),o.fixed?(r.css({position:"fixed"}),i.style.position="absolute"):n&&d||(i.style.position="absolute"),a.height&&a.width&&h(r,e,a),u="300000",i&&i.style&&i.style["z-index"]&&(u=i.style["z-index"]),r.css({"z-index":u}),d||r.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&r.css({left:e.left,top:e.top,position:o.fixed?"fixed":"absolute"}),"top"===e.layoutDir&&e.hbias===mc&&r.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),c(n,y),r[0]):void 0)}function c(e,t){e&&K.isFunction(e.attachEvent)&&(hu()&&e.element===ee.getBody()||(t=K.throttle(K.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),Mo(K.bind(e.attachEvent,e),e.targetElement,t)))}function t(t,n){var e=ee(n.elementPathRule)[0];n.attachEvent(e,t,function(e){ee.data.set(e,"advanced",!0),hf(t,n)})}function l(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?t("mouseover",e):e.attributes.advanceActions.elementClick&&t("click",e))}function p(e,t,n,i,r){var o=lo(),i=i||"auto",t={width:Math.min(t.width,o.width),height:t.height},r=(t.layoutDir=i,t.hbias=bc(e,o,i),t.vbias=Ic(e,o,i),t.layoutDir=a(t,o,r,i),s(t,e,o));return t.top=r.top,t.left=r.left,"top"===t.layoutDir?t.top-=n.height:"bottom"===t.layoutDir?t.top+=n.height:"right"===t.layoutDir?t.left+=n.height:"left"===t.layoutDir&&(t.left-=n.height),t}function a(e,t,n,i){var r,o,a,s,d,u,c;return i&&"auto"!==i?i:(i=n.top,o=(r=n.left)+n.width,a=n.top-e.height<0,s=n.top+n.height+e.height>t.height,d=n.left-e.width<0,u=n.left+n.width+e.width>t.width,!(s&&a&&d&&u)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===yc)&&(c="top"),"top"===(c=r<e.width&&t.width-o<e.width?"bottom":c)&&n.top-e.height<0&&(c="bottom"),s&&a&&(e.hbias!==yc&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function s(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?r(e,n,t,e.layoutDir,e.hbias):o(e,n,t,e.vbias)}function r(e,t,n,i,r){var o=e.height,a=e.width,s={top:null,left:null};return"bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-o),"right"===r?((i=n.left+n.width/2)+e.width>t.width&&(i-=i+e.width-t.width),s.left=i):s.left="left"===r?n.left-a+n.width/2:n.left+n.width/2-a/2,s}function o(e,t,n,i){var r=e.height,o=e.width,a={top:null,left:null};return"right"===e.layoutDir?a.left=n.left+n.width:"left"===e.layoutDir&&(a.left=Math.max(0,n.left-o)),"bottom"===i?((o=n.top+n.height/2)+e.height>t.height&&(o-=o+e.height-t.height),a.top=o):a.top="top"===i?n.top-r+n.height/2:n.top-r/2+n.height/2,a}function h(e,t,n){var i=document.createElement("div"),e=(i.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),i.style.position="absolute",i.style.zIndex=11,d(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=g(i,n,t.layoutDir),e.appendChild(i))}function d(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||u(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||f(e,t,n)}function u(e,t,n){var i,r=lo();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===mc?(i=t.width-2*n.width-n.offset-n.borderWidth,e.style.left=i+"px",t.left+=n.offset+n.width+n.borderWidth):t.hbias===vc?(e.style.left=n.offset+n.borderWidth+"px",t.left-=n.offset+n.width+n.borderWidth,t.left+t.width>r.width&&(t.left=t.left-(t.left+t.width-r.width)),t.left=Math.max(0,t.left)):e.style.left=t.width/2-n.width+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.top=i+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.bottom=r+"px",e.style.top=""),e}function f(e,t,n){var i,r=lo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===fc?(i=t.height-2*n.width-n.offset-n.borderWidth,e.style.top=i+"px",t.top+=n.offset+n.width+n.borderWidth):t.vbias===gc?(e.style.top=n.offset+n.borderWidth+"px",t.top-=n.offset+n.width+n.borderWidth,t.top+t.height>r.height&&(t.top=t.top-(t.top+t.height-r.height)),t.top=Math.max(0,t.top)):e.style.top=t.height/2-n.width+"px","left"===t.layoutDir&&(e.style["border-left"]=n.height+"px solid "+n.backgroundColor,e.style["border-right"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.right=i+"px",e.style.left=""),"right"===t.layoutDir&&(e.style["border-right"]=n.height+"px solid "+n.backgroundColor,e.style["border-left"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.left=r+"px",e.style.right=""),e}function g(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,m(i,t,n,e),i}function m(e,t,n,i){for(var r={top:"",right:"",bottom:"",left:""},o=["Top","Right","Bottom","Left"],a=0;a<o.length;a++){var s="border"+o[a]+"Width",d="border"+o[a]+"Color",u="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[d]=v(i.style[d],t.borderColor),r[u]="solid"):(r[s]="",r[d]="",r[u]="")}"top"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.bottom=parseInt(i.style.bottom,10)-t.borderWidth+"px"),"bottom"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.top=parseInt(i.style.top,10)-t.borderWidth+"px"),"right"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.left=parseInt(i.style.left,10)-t.borderWidth+"px"),"left"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.right=parseInt(i.style.right,10)-t.borderWidth+"px"),K.extend(e.style,r)}function v(e,t){return"transparent"===e?e:t}function y(e){b(e.element)?(wc.placeBBTooltip(e),ee(e.elements[0]).css({display:"block"})):ee(e.elements[0]).css({display:"none"})}}();function Cc(i){var e=i.find('[data-pendo-grow-height="true"]');if(e.length)for(var r=Object.entries(e),o=[],t=0;t<r.length;t++)!function(e){if(Number.isInteger(Number.parseInt(r[e][0],10))){var t=r[e][1];if(K.some(o,function(e){return e.parentNode===t.parentNode}))return;var e=i[0],n=t.parentNode.closest('[data-pendo-grow-height="true"]');if(n){if(!o.includes(n))return;e=n}Sc(t,e),o.push(t)}}(t)}function Sc(e,t){for(var n=0,i=e.parentNode.children,r=0;r<i.length;r++){var o,a=i[r];a!==e&&(o=ne(a),o=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10),n+=a.offsetHeight+o)}var s=t.offsetHeight,t=ne(t),t=parseInt(t.paddingTop,10)+parseInt(t.paddingBottom,10),d=ne(e),d=parseInt(d.marginTop,10)+parseInt(d.marginBottom,10),s=Math.max(s-t-n-d,0);0<s&&(e.style.height=s+"px")}function Ac(e,t){var n,i,r,o,a,s,d,u,c,e=ee("#"+e,t)[0];e&&(t=ee(e),n=ee(t.find("#pendo-guide-container")[0]),r="%"===(i=e.style.height)[i.length-1]?"%":"px",o=parseInt(i,10),a=e.getAttribute("data-pendo-static-height"),t.css({height:"auto"}),a||n.css({"max-height":"none"}),s=parseInt(ne(e).height,10),d=lo().height,u=parseInt(e.style.top,10),u=isNaN(u)?0:u,c=parseInt(e.style.bottom,10),(d=d-u-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":d+"px",overflow:"auto"}),s=d),s!==o?(t.css({height:(u=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(d<s?d:u)/2+"px"})):t.css({height:i}))}function Tc(e,t){e=ee("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=ee(e),t=ee(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(ne(e).width,10)),o=lo().width-parseInt(e.style.left||0,10)-parseInt(e.style.right||0,10);if(o<r&&(t.css({"max-width":o+"px"}),r=o),!isNaN(i))switch(e.getAttribute("data-vertical-alignment")){case"Centered":case"Top Aligned":case"Bottom Aligned":var a=r/2;parseInt(n.css("margin-left"),10)!==a&&n.css({"margin-left":"-"+a+"px"});break;case"Right Aligned":case"Top Right Aligned":case"Bottom Right Aligned":a=i-r;parseInt(n.css("margin-right"),10)!==a&&n.css({"margin-right":"-"+a+"px"})}}}}function _c(e,i){e=K.isArray(e)?e:[e],e=K.reduce(e,function(e,t){var t=ee("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]);Ec(e),K.each(e,function(e){xc(e),Rc(e)})}function Ec(e){e=K.reduce(e,function(e,t){return e.concat(K.toArray(ee(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]);e&&e.length&&kc(K.reduce(e,function(e,t){var n,t=ee(t),i=Mc(t[0]),i=i.marginLeft+i.marginRight,r=Nc(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[]))}function xc(e){e=ee("._pendo-open-text-poll-input",e);e&&e.length&&K.each(e,function(e){var t,n=ee(e),i=n.attr("data-_pendo-open-text-poll-resize-base-width"),e=(i||(i=e.style.width,n.attr("data-_pendo-open-text-poll-resize-base-width",i)),Mc(n[0])),r=e.marginLeft+e.marginRight,o=Nc(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Oc(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),kc({$blockElement:n,availableSpace:o}))})}function Rc(e){e=ee(["._pendo-video","._pendo-image"].join(","),e);e&&e.length&&K.each(e,function(e){var t=ee(e),n=Mc(t[0]),i=n.width,n=n.marginLeft+n.marginRight,r=t.attr("data-_pendo-media-resize-base-width"),e=(r||(r=e.style.width,t.attr("data-_pendo-media-resize-base-width",r)),-1!==r.indexOf("%"));if(t.hasClass("_pendo-image")){var o=e&&100<parseInt(r,10),a=t.attr("data-pendo-accessible-element");if(o||!a)return void t.css({width:i});t.css({height:"auto"})}o=Nc(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Oc(t,i,r,a),kc({$blockElement:t,availableSpace:a}))})}function kc(e){K.isArray(e)||(e=[e]),K.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=K.map(e,function(e){return Mc(e.$blockElement[0]).width});K.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Oc(e,t,n,i){var r=-1!==e[0].style.width.indexOf("%"),i=i*(parseInt(n,10)/100);(r||t<i)&&e.css({width:i<0?0:i})}function Nc(e){e=e.closest("._pendo-row");if(e){e=ne(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Mc(e){e=ne(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var ae=function(){return{calculateTotalOffsetWidth:s,center:function(e,t){for(var n=t/2,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=s(e,r);e[r].style.left=n+o+"px"}1<e.length&&(i.style.right=n+"px");t.style.left=n+"px"},createFlexContainer:function(e){var t=document.createElement("div");t.style.display="inline-block",e||(t.style.position="absolute");return t.style["vertical-align"]="top",t.setAttribute("class","pendo-mock-flexbox-element"),t},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n=[],i=0;i<e.length;i++){var r;t&&-1!==(e[i].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(r=e[i].children[0].offsetHeight+"px",e[i].style.height=r),n.push(e[i].offsetHeight)}return K.reduce(n,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var n=t,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=s(e,r);e[r].style.left=n+o+"px"}1<e.length&&(t.style.left=n+"px");i.style.right="0px"},flexStart:function(e){e[0].style.left="0px";for(var t=1;t<e.length;t++){var n=s(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return K.filter(e,t)},getPendoVisualElements:function(e){return K.filter(e,function(e){return!t(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=a(e),i=ae.getPendoInlineUIElements(e.children);if(1===n.length&&0===n[0].id.indexOf("pendo-text"))return e;for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var r=0;r<n.length;r++)d(n[r])?t.appendChild(n[r]):t.appendChild(ae.wrapElementInMockFlexboxContainer(n[r],e,t));for(var o=0;o<i.length;o++)t.appendChild(i[o]);return e.parentNode.replaceChild(t,e),t},isPendoInlineUIElement:t,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":ae.spaceBetween(e,t);break;case"space-around":ae.spaceAround(e,t);break;case"space-evenly":ae.spaceEvenly(e,t);break;case"center":ae.center(e,t);break;case"flex-start":ae.flexStart(e);break;case"flex-end":ae.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":ae.topAlignment(e);break;case"center":ae.centerAlignment(e,t);break;case"bottom":ae.bottomAlignment(e)}},spaceAround:function(e,t){for(var n=t/(2*e.length),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=s(e,r);e[r].style.left=2*n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},spaceBetween:function(e,t){for(var n=t/Math.max(e.length-1,1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=s(e,r);e[r].style.left=r*n+o+"px"}t.style.left="0px",i.style.right="0px"},spaceEvenly:function(e,t){for(var n=t/(e.length+1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=s(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=K.get(e.style,"width",""),s=ne(e).width,d=-1!==i.indexOf("_pendo-open-text-poll-wrapper")||-1!==i.indexOf("_pendo-image-wrapper")||-1!==i.indexOf("pendo-video-wrapper")||-1!==i.indexOf("_pendo-number-scale-poll-wrapper");r&&!d&&(a=(a?s:null)||ne(e.children[0]).width);(0<=i.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=i.indexOf("pendo-task-list-progress-circle"))&&(s=parseInt(ne(t).width,10),u=parseInt(ne(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(ee(t).find("._pendo-simple-text").getParent()||ee(n).find("._pendo-simple-text").getParent())[0],n=s-u,"border-box"!==K.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px");{var u;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=ae.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),u=K.get(e,"children")[0],r&&u&&-1!==(u.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||d||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:a,initializeFlexRows:function(e,t,n){var i,r=function(e){return K.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children);0!==r.length&&(i=ae.getRowWidth(e),r=ae.wrapFlexElementsInFlexRows(r,e,i),ae.formatFlexRows(r,e,t,n,i))},getRowWidth:c,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||c(t),r=ae.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=Wr(d).width,u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==K.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=ae.createFlexRow()).appendChild(d),a.push(o={row:r,rowWidthUsed:u})),o.row.appendChild(d)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||c(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),ae.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));ae.setElementHorizontalAlignment(s.row.children,u,n),ae.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:d,flexAllThings:function(e,t){e=ee("#"+e,t)[0];e&&(n(e),ae.flexElement(e))},flexElement:function(e){e=ee("[data-pendo-display-flex]",e);K.each(e,function(e){var t=ae.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");ae.initializeFlexRows(t,n,e)})},maintainAspectRatios:n};function a(e){return ee(["._pendo-button",".pendo-block-wrapper","._pendo-multi-choice-poll-select-border","._pendo-text-subTitle","._pendo-text-paragraph","._pendo-text-title","._pendo-text-custom","._pendo-close-guide","> ._pendo-simple-text","div._pendo-resource-center-module-list-item-text-container","._pendo-resource-center-right-caret",'[id^="pendo-onboarding-guide-progress-circle"]','[id^="pendo-task-list-progress-circle"]','[id^="pendo-a11y-list-item-button-block"]',"._pendo-resource-center-onboarding-module-listed-guide-link","._pendo-home-view-bubble"].join(","),e)}function t(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function s(e,t){for(var n=(e=Array.prototype.slice.call(e)).slice(0,t),i=0,r=0;r<n.length;r++)i+=n[r].offsetWidth;return i}function c(e){var t=Wr(e).width,e=ne(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function d(e){o(e);var t=re(e);if(0===t.width||0===t.height)return!0;if(!e.style||"visible"!==e.style.visibility)for(var n=e,i=e.id||"",r=0;0!==i.indexOf("pendo-g-")&&(o(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function o(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function n(e){var n="data-aspect-ratio",e=ee("["+n+"]",e);K.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}}(),Lc;function Fc(){return!C.designer&&m.get("disableGuidePseudoStyles")}function Pc(e,t,n){return e&&e.templateName?Vu.buildNodesFromTemplate(e.templateName,e,t,n,Bc):"style"===e.type&&Fc()?[]:[Bc(e,t,n)]}function Gc(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),X.info(e),new Error(e)}function Dc(n,i,r,o){var a={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,dir:!0,"for":!0,frameborder:!0,href:!0,id:!0,loading:!0,name:!0,placeholder:!0,placement:!0,rows:!0,role:!0,sandbox:!0,scoped:!0,src:!0,start:!0,style:!0,tabindex:!0,target:!0,title:!0,type:!0,value:!0},s={embed:{src:!0}},d=/^data-/,u=/^aria-/,e=K.keys(n);return K.reduce(e,function(e,t){return s[o]&&s[o][t]&&Gc(t,r,i,o),a[t]||d.test(t)||u.test(t)||Gc(t,r,i),e[t]=n[t],e},{})}function Bc(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=Dc(n.props,i.id,i.guideId,n.type);var t,r=ee(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return ee(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&wc.attachScrollHandlers(i,uc),cc(i);if(K.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||m.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==gt.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(C.designer||(n.css=jc(n.css)),(t=m.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=zc(n.css):r.text(zc(n.css))),n.svgWidgetId&&Yu.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)$c(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=T(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(K.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=No(oe()),d=s!==document,u=0;u<n.children.length;u++){var c=Pc(n.children[u],i,e);K.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):d?((t=new CSSStyleSheet).replaceSync(e[0].innerHTML),s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject.adoptedStyleSheets.push(t):s.adoptedStyleSheets=[t]):(ee.addClass(e[0],"pendo-style-".concat(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){Wc(e,i)}):Wc(r[0],i),r}function Wc(e,t){var n=e.id&&-1!==e.id.indexOf("badge"),i=!!e.getAttribute("src"),r=e.className&&0<=e.className.indexOf("bb-control"),o=e.tagName&&e.tagName.toLowerCase(),a=e.className&&0<=e.className.indexOf("_pendo-video");("img"===o&&i&&!n&&!r||"iframe"===o&&t&&!a)&&"lazy"!==e.getAttribute("loading")&&(t.attributes&&!t.attributes.imgCount?t.attributes.imgCount=1:t.attributes&&t.attributes.imgCount&&t.attributes.imgCount++,Uc(ee(e),t))}function Uc(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=$u(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&ee("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(Tc(t,i.guideElement),_c(t,i.guideElement),ae.flexAllThings(t,i.guideElement),e=i.getGuide(),K.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===K.get(e,"attributes.resourceCenter.moduleId")||(Ac(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(_c(t,i.guideElement),ae.flexAllThings(i.containerId,i.guideElement))),"tooltip"===i.attributes.calculatedType&&wc.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",ee.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=ee("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&wc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",ae.flexAllThings(i.containerId,i.guideElement)):X.info("Failed to find guideContainer for id: "+i.containerId)})}function $c(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?C.designerv2&&C.designerv2.designerActions&&C.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function jc(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)K.contains(t,e[i].selector)||n.push(e[i]);return n}function zc(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=zc(n[r].styles):K.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function Zc(t){K.each(document.head.childNodes,function(e){e&&ee.hasClass(e,"pendo-style-".concat(t))&&mo(e)})}var Vc=function(){var e=window.navigator;return((K.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Yc="meta",Hc=function(e){return void 0!==(e="object"==typeof e?Rt(e):e)&&e.toString&&(e=e.toString()),""+(K.isNumber(Lc)?Lc:vi(Yc))!==e},Kc=K.compose(JSON.parse,JSON.stringify),Xc=function(e){var t=K.extend({},e.visitor),n=K.extend({},e.account),e=K.extend({},e.parentAccount);return t.id===Qn&&(X.info("Missing visitor id."),delete t.id),Kn(n.id)&&Kn(e.id)&&(ni(n.id)?e.id=n.id.split(ti)[0]:n.id=""+e.id+ti+n.id),Kn(n.id)&&(n.id=""+n.id),Kn(t.id)?t.id=""+t.id:t.id=Q({generate:!0}),t.language=Vc(),{visitor:Kc(t),account:Kc(n),parentAccount:Kc(e),date:Jc(),version:C.VERSION}},Jc=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return e=(t=t<10?"0"+t:t)+"/"+(n=n<10?"0"+n:n)+"/"+e.getFullYear()},qc=function(e){(e=K.isObject(e=void 0===e?{}:e)?e:{}).jwt&&e.signingKeyName&&(t=za.getJwtOptions(e,"updateOptions"))&&(za.set(K.pick(e,"jwt","signingKeyName")),e=t),e=Xc(e),q.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t=K.clone(rl()),n=(m.setLocalConfig(K.extend({},m.getLocalConfig(),e)),q.commit("metadata/setMetadata",e),rl()),i=(Kn(e.visitor.id)&&(C.identify(e.visitor.id,e.account.id),e.visitor.id=Q(),e.account.id=fi()),Rt(e)),r=Hc(i);return Lc=i,r&&mi(Yc,i),{options:e,hashChanged:r,storeChanged:!K.isEqual(t,n)}},Qc=wi(function(e){e=qc(e);y.metadata.trigger(e)}),el=wi(function(e,t){K.isObject(e)?Qc(e):oi(e,t)}),tl=function(){var e=ee("script");return nl(e)&&"extension"!==_e()},nl=function(e){var t=new RegExp("/agent/static/"+C.apiKey+"/pendo\\.js$");return!K.any(e,function(e){return t.test(e.src)})},il=function(){var e=m.get("blockAgentMetadata");return e!==undefined&&e};function rl(){return q.getters["metadata/metadata"]()}function ol(){return JSON.parse(JSON.stringify(rl()))}function al(e){var t=e.data[0],n=m.getLocalConfig()||{};Ii(e)?(qn([Yc]),q.commit("metadata/reset",t)):(n.visitor=K.extend({},n.visitor,{id:t.visitor_id}),n.account=K.extend({},n.account,{id:t.account_id}),m.setLocalConfig(n),q.commit("metadata/setMetadata",n))}y.identify.on(al);var sl={Launcher:{addBehavior:K.noop},Metadata:{getMetadata:rl},Util:{documentScrollTop:Mr,documentScrollLeft:Lr,getOffsetPosition:ie},Events:y,JWT:{getJWT:za.get}};function dl(e,t){var n=sl[e]||{};K.extend(n,t),sl[e]=n}var ul={},cl=function(n){var t=[],i=[],r={};function o(t){var e;return!!K.every(["name","version","use","type","uri"],K.partial(K.has,t))&&(e=t.use,e=r[e]?r[e].validators:[],K.every(K.map(e,function(e){return e(t)})))}function a(e){var t;return"behavior"===e.use?!!e.uri(n,sl)&&(i.push(e),!0):(t=e.use,!!(t=r[t]?r[t].handler||K.identity:null)&&((e=t(e))&&i.push(e),!!e))}return n.tagExtension=function(e,t){e=n.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},n.findExtensionByTag=function(t){return K.find(i,function(e){return K.contains(e.tags,t)})},n.findExtensionByName=function(e){return K.findWhere(i,{name:e})},n.filterExtensionsByUse=function(t){return K.filter(i,function(e){return e.use===t})},n.findExtensionByNameAndProvider=function(t,n){return K.find(i,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},n.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],r[e]={handler:t,validators:n}},n.getExtensionFrames=function(){return K.reduce(i,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=K.filter(e,o)).length&&(t=function n(e){if(!e.length)return e;var t=K.filter(e,a);if(t.length)return n(K.difference(e,t));return e}(t.concat(e)))}}(ul),se=function(){return{initializeResourceCenter:function(r){if(!(f=u(r)))return J.resolve();if(q.getters["frames/isShownInAnotherFrame"]()(f.steps[0]))return J.resolve();if(se.isFullyCustom(f))return f.hasResourceCenterContent=!0,J.resolve();var e=c(f,r),t=K.reduce(e,function(e,t){return d(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(ku.validate(f).then(K.noop,function(){f.launchMethod="api"})),f.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},K.forEach(i(),function(e){var t=ul.findExtensionByNameAndProvider("chat",e),t=(t&&I(e,t),ul.findExtensionByNameAndProvider("helpcenter",e));t&&I(e,t)}),K.forEach(e,function(t){var e=t.attributes.resourceCenter,n=e.children,i=e.moduleId,e=("IframeModule"===i&&(t.hasResourceCenterContent=!0),"SandboxModule"===i&&(t.hasResourceCenterContent=!0),"IntegrationModule"===i&&(t.integrationConfig=l(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&p(e.integrationName,e.integrationProvider),K.reduce(n,function(e,t){var n=K.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(f.attributes.notifications.individualCounts[t.id]=0,K.forEach(e,function(e){F(e)||e.isControlGroup()||f.attributes.notifications.individualCounts[t.id]++}));-1<K.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&K.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),f.modules=e,f.badgeHidden=!0,J.all(t)["catch"](function(){return f=null,X.error("Failed to load one or more Resource Center modules"),J.resolve()})},findResourceCenterHomeView:u,findResourceCenterModules:c,replaceResourceCenterContent:n,renderResourceCenterModule:function(e,t){n(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){ee("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?se.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(se.showResourceCenterEmptyState(),K.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=ee("#pendo-resource-center-empty-state-container");e&&e.length&&ee(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=ul.findExtensionByNameAndProvider(e,t);return e?(n=ee(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):X.info("could not find target element for "+t+" integration"):X.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:p,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=se.getResourceCenterContainer())&&(e=ee(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=ee(e);e.css({display:"none"}),e.appendTo(oe())})},getResourceCenter:t,getResourceCenterContainer:E,getResourceCenterBadge:r,addNotificationBubbleToResourceCenterBadge:U,addNotificationBubbleToTargetElement:$,updateNotificationBubbles:function(){var e=f,t=K.get(e,"attributes.notifications");if(t){var n=O(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Z(),t.totalUnseenCount=n;else{G();var i=n!==t.totalUnseenCount;if(i||!R(s)){if("badge"===e.launchMethod){i=r();if(!i)return;U(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&K.get(e,"attributes.activation.selector")){i=ee(e.attributes.activation.selector);if(!i.length)return;$(i[0],e.attributes.notificationBubble,n),te(window,"resize",K.debounce(k,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Z,updateNotificationBubbleCount:L,updateNotificationBubbleOnHomeView:D,updateOrCreateNotificationBubble:N,hexToRgb:x,doesIntegrationExist:l,calculateTotalNotificationCount:O,updateNotificationBubblesOnHomeView:G,createNotification:j,appendNotificationBubble:z,hasAnnouncementBeenSeen:F,clearAnnouncementUnseenInterval:h,createAnnouncementUnseenInterval:m,findShownResourceCenterModule:function(){var e=se.getResourceCenterContainer();if(e){e=ee(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=K.find(qd(),function(e){return e.id===t});if(K.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:V,repositionResourceCenter:function(){var e=se.getResourceCenterContainer();{var t,n,i;e&&(i=se.findResourceCenterHomeView(qd()).steps[0],t=K.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(K.get(i,"domJson.props.style.bottom",0),10),i=parseInt(K.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=lo().height-n-i)<=t&&(e.style.height=(n-10).toString()+"px"),i=parseInt(e.style.height,10),i=isNaN(i)?0:i,t<n)&&t!==i&&(e.style.height=t.toString()+"px")}Cc(ee(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;q.getters["frames/isLeader"]()&&1<(e=K.unique(K.compact([].concat(K.toArray(ee("._pendo-resource-center-badge-container"))).concat(K.toArray(ee("._pendo-resource-center-badge-container")))))).length&&function(e){var t=re(e[0]),e=re(e[1]);return So(t,e)}(e)&&(t=ie(e[0]).width+5,n=ie(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return K.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=E();if(t){o=lo().width,r=ee(t),e=ee(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(ne(r[0]).width,10),o<i&&(i=parseInt(t.style.left,10),i=isNaN(i)?0:i,t=parseInt(t.style.right,10),t=isNaN(t)?0:t,o=o-t-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=ee('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=ee(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=ne(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),ee('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(i=ne(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(ne(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=ee(l),l=(p.css({"max-width":"none"}),ne(l)),h=parseInt(l.width,10),l=u-d-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:I,renderNativeIntegration:T,isSupportedNativeIntegration:v,handleNativeIntegrationContinuation:_,isProviderInstalled:y,adjustNotificationBubbleForResize:k,getNotificationBubbleDefaultCss:M,getModuleId:P,isIframeModule:function(e){return"IframeModule"===P(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===P(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===P(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===P(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!se.isSupportedNativeIntegration(e.integrationProvider)||se.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=u(e);if(!n)return J.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return J.resolve();if(se.isFullyCustom(n))return J.resolve();var t=c(n,e),i=[],r=K.indexBy(e,"id");return K.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=K.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),K.each(e,function(e){d(e)&&i.push(e.steps[0].fetchContent(!0))}))}),J.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=ee('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=ee('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===K.get(t,"data-localization-direction",!1),e=K.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=K.get(t,"style.left",!1),e=K.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:B,resetBadgeAriaLabel:function(){var e=se.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:W,updatePseudoStyleSelectors:Y,hideRCBadge:H};var f,e,g,s,o,a;function d(e){return e.steps&&e.steps.length&&K.isFunction(e.steps[0].fetchContent)}function u(e){var e=K.filter(e,function(e){return K.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=K.find(e,function(e){return"staged"===e.state});return t||e[0]}function c(t,e){return K.filter(e,function(e){return e&&!e.isFrameProxy&&K.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function n(t,e,n,i){if(void 0===i&&(i=!0),!g){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),E());if(e){var a=ee(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=K.find(qd(),function(e){return e.id===t}),c=(t!==f.id?(Zc(K.get(f.activeModule||f,"steps.0.id")),f.activeModule=u):(s=f.activeModule,Zc(K.get(s,"steps.0.id")),delete f.activeModule),K.get(u,"attributes.resourceCenter.integrationProvider")),l=(v(c)&&T(c),u.steps[0]),c=Y(l.domJson),c=(c.props["data-pendo-guide-id"]=u.id,Bc(c,l)),p=c[0],r=(-1===p.id.indexOf("pendo-g-")&&(p=c.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=r,a.style.transition=r,"left"===o?p.style.left=e.offsetWidth+"px":"right"===o&&(p.style.left=-1*e.offsetWidth+"px")),n&&(ee(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),ee(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?ee(p).insertBefore(r):ee(p).appendTo(e),l.guideElement=ee(e),l.elements.push(l.guideElement[0]),se.adjustResourceCenterWidth(p),"AnnouncementsModule"===P(u)&&l.guide.guidesInModule?(_c(r=K.reduce(l.guide.guidesInModule,function(e,t){var n;return K.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=ee(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),K.each(r,function(e){ae.flexAllThings(e,l.guideElement)})):ae.flexAllThings("pendo-resource-center-container"),Cc(ee(e)),p.style.left="0px",!n){g=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Dt(function(){ee(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),g=!1},200)}catch(h){throw g=!1,h}}return"AnnouncementsModule"===P(u)&&(m(),r=Vu.getGuidesInResourceCenterModule(u,qd()),(n=K.reduce(r,function(e,t){return t.steps&&t.steps.length&&Wu.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(K.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=ee(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return K.each(K.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return ee(document.createElementNS(i,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:e})},t=ee(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),ee(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),J.all(n).then(function(){var e=J.defer();return Dt(e.resolve,500),e.promise}).then(function(){f.activeModule===u&&se.renderResourceCenterModule(u,i)})),se.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function h(){window.clearInterval(e),e=null}function m(){e=e||window.setInterval(function(){var e=E();if(!e)return h();e=ee(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return h();var t=ee(e).find('ol[id^="pendo-list"]');if(!t.length)return h();var n=re(t[0]),i=ee(t).find("li");if(!i.length)return h();for(var r=e.attr("data-pendo-guide-id"),o=f.attributes.notifications.individualCounts[r],a=n.height/3,s=re(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=ee(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(re(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=K.find(qd(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),ke(10)?u.find(".pendo-unread-announcement-mini-bubble").remove():(c[0].style.visibility="hidden",c[0].style.opacity="0",c[0].style.transition="visibility 0s 2s, opacity 2s linear"),F(l)||o--,L(o,r)),l.steps[0].seenState="advanced",Of(l.id,l.steps[0].id,Q(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Lf(l.id,l.steps[0].id,Q(),"advanced",l.language)}}},500)}function l(e,t){return ul.findExtensionByNameAndProvider(e,t)}function p(e,t){e=ul.findExtensionByNameAndProvider(e,t);if(!e)return X.info(t+" integration has not been loaded into the agent");v(t)&&y(t)?f.hasEligibleNativeIntegrationModule=!0:(Co((t=e.getFrame())[0])||t.appendTo(oe()),t.css({display:"none"}))}function i(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function v(e){return!!e&&0<=i().indexOf(e)}function y(e){return!!e&&null!==(e=b(e))&&K.isFunction(window[e])}function b(e){if(!e)return null;switch(e){case"zendesk-chat":case"zendesk-messaging":case"zendesk-native-kb":return"zE";case"intercom-chat":return"Intercom";case"drift-native-chat":return"drift";default:return null}}function I(e,t){var n,i,r;e&&(y(e)?w(e,t):(e=e,t=t,"function"==typeof Object.defineProperty&&null!==(i=b(e))&&(o&&o[i]?o[i][e]||(o[i][e]={installed:!1,integrationObj:t}):((o=o||{})[i]=((n={})[e]={installed:!1,integrationObj:t},n),Object.defineProperty(window,i,{get:function(){return r},set:function(e){r=e,K.forEach(o[i],function(e,t){var n=e.integrationObj;!e.installed&&y(t)&&(e.installed=!0,w(t,n),p(n.name,t),K.forEach(f.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===n.name&&e.integrationConfig.data.provider.name===t&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0})))))}function w(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=S(i);C(n,"webWidget","hide"),C(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),C(n,"webWidget:on","close",function(){C(n,"webWidget","hide"),A()}),f.isInProgress()&&_(f.activeModule),C(n,"webWidget:on","chat:unreadMessages",function(e){L(e,"chat")});break;case"zendesk-messaging":i=t;C(i=i.data.provider.name,"messenger","hide"),C(i,"messenger:on","close",function(){A()}),C(i,"messenger:on","unreadMessages",function(e){L(e,"chat")});break;case"intercom-chat":var r=t;r=S(r),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=r?r[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:r?r[1]:"right"}),window.Intercom("onHide",function(){A()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=rl();window.drift.identify(t.visitor.id,function o(e){var t={};for(var n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{var i,r=o(e[n]);for(i in r)r[i]&&(t[n+"."+i]=r[i])}return t}(t)),window.drift.on("message",function(e){if(!f.isNativeModuleActive)return L(1,"chat")})}),window.drift.on("chatClose",function(e){L(0,"chat"),window.drift.hide(),A()})}}function C(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];try{a&&a[e]||window.zE.apply(null,n)}catch(r){a?a[e]=!0:((t={})[e]=!0,a=t)}}function S(e){e=K.get(e,"data.options.labels.position");return e=e&&e.split("-")}function A(){V(f.activeModule),delete f.activeModule,f.continueToNativeModule=!1}function T(e,t){if(e){var n=rl();if(f.isShown()&&f.hide(),a&&a[e])X.info(e+" integration failed to communicate with API, closing"),se.replaceResourceCenterContent(f.id,undefined,!0),A();else{var i=r();switch(i&&H(i,f),e){case"zendesk-messaging":C(e,"messenger","show"),C(e,"messenger","open");break;case"zendesk-native-kb":C(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),C(e,"webWidget","show"),C(e,"webWidget","open");break;case"zendesk-chat":C(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&C(e,"webWidget","prefill",{email:{value:n.visitor.email}});break;case"intercom-chat":window.Intercom("show"),n&&n.visitor&&n.visitor.email&&window.Intercom("update",{email:n.visitor.email});break;case"drift-native-chat":window.drift.api.openChat(),n&&n.visitor&&n.visitor.email&&window.drift.config({email:n.visitor.email})}L(0,"chat"),!f.activeModule&&t&&(f.activeModule=t).steps[0].onShown("launcher")}}}function _(e){e&&!e.isTopLevel&&(T(K.get(e,"attributes.resourceCenter.integrationProvider")),f.activeModule||(f.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function t(){return f}function E(){return K.get(f,"steps.0.guideElement.0")}function r(){if(f&&f.id)return Kd[f.id]}function x(e){e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function R(e){return e&&K.all(e,function(e){return Co(e&&e.length?e[0]:e)})}function k(){var e,t=se.getResourceCenter(),n=K.get(t,"attributes.notifications");n&&(n=se.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&K.get(t,"attributes.activation.selector")&&(e=ee(t.attributes.activation.selector)).length&&se.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function O(e){return K.reduce(e,function(e,t){return e+t},0)}function G(){var e,t=f;t&&(t=K.get(t,"attributes.notifications"))&&(e=E())&&ee(e).find("._pendo-resource-center-home-list").length&&K.each(t.individualCounts,function(e,t){D(e,t)})}function D(e,t){var n=se.getResourceCenterContainer();n&&(n=ee(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=ee(n[0]).find("._pendo-home-view-bubble"),n=ee(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),ee(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),ee(t[0]).css({display:"none"})))}function B(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function W(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function U(e,t,n){var i=W(n),i=e.getAttribute(i),i=(i&&(B(e),i=i.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",i)),K.get(t,"position","top-left")),r=ne(e),r=(parseInt(r.width,10)||56)/2,o=r/Math.sqrt(2),r=Math.round(r-o)-10,a=r-10,o=Math.round(2*o),r={"top-left":{top:r+"px",left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:r+"px",left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:r+o,left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:r+o,left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},a=e.attributes["data-localization-direction"]||!1,o=se.resourceCenterIgnoreRtl();N(e,t,n,r[i=a&&!o?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function $(e,t,n){var i=Br(e,e),r=Br(e,bo());N(e,t,n,{width:"28px",top:i.top-Math.min(r.top,14)+"px",left:i.left-Math.min(r.left,14)+"px",position:"absolute"},{width:"28px","font-size":"16px","text-align":"center",position:"absolute",right:"0px"})}function N(e,t,n,i,r){var o,a;R(s)?(a=(o=M(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=K.extend(a,i),o=K.extend(o,r),s.bubbleEle.css(a),s.unseenCountEle.css(o),s.unseenCountEle.text()!=""+n&&s.unseenCountEle.text(n)):(a=ee(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&z(s=j(t,n,i,r),e)}function M(e){return{defaultBubbleCss:{position:"absolute","border-radius":"20px","line-height":"0px",height:"26px","box-sizing":"content-box","background-color":e["background-color"]},defaultUnseenCountCss:{"font-weight":e["font-weight"],"font-family":e["font-family"],height:"100%",position:"relative",top:"50%",color:e.color}}}function j(e,t,n,i){var r,o=M(e),a=o.defaultBubbleCss,o=o.defaultUnseenCountCss,s=(t=t||0,ee(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),d=ee(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),a=K.extend(a,n),n=K.extend(o,i);return s.css(a),d.css(n),ke(10)||Fc()||(r=ee(document.createElement("style")).attr("id","pendo-resource-center-bubble-animation"),i="@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } } "+('.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+("rgb("+(o=x(e["background-color"])).r+", "+o.g+", "+o.b+")")+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"),r.styleSheet?r.styleSheet.cssText=i:r[0].innerHTML=i),d.text(t),{bubbleEle:s,unseenCountEle:d,styleEle:r}}function z(e,t){e.styleEle&&e.styleEle.appendTo(t),e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Z(){var n=s?s.bubbleEle:ee(".pendo-resource-center-badge-notification-bubble"),i=s?s.styleEle:ee("#pendo-resource-center-bubble-animation");n&&K.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&K.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),s=null,se.resetBadgeAriaLabel()}function L(e,t){var n=f;n&&(n=K.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,se.updateNotificationBubbles())}function F(e){return!(!K.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function V(e){var t=K.get(e,"attributes.resourceCenter.isModule",!1)?e:se.findShownResourceCenterModule();t&&(t=K.first(t.steps),uf(t));t=(K.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:se.findResourceCenterHomeView(qd())).steps[0];return uf(t)}function P(e){return K.get(e,"attributes.resourceCenter.moduleId")}function Y(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|"),n=new RegExp("#((".concat(t,")[^:]*)")),t=zu(e,function(e){return e.css&&e.css.length});return K.forEach(t,function(e){K.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function H(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Kd[t.id])}}(),ll=1e4,pl="lastStepAdvanced";function hl(e){q.dispatch("guideState/updateLastGuideStepSeen",e),q.dispatch("guideState/write"),q.dispatch("frames/changeLastGuideStepSeen",e)}function fl(){var e=[];return q.dispatch("guideState/init"),e.push(te(window,"focus",gl)),e.push(te(window,"storage",function(e){q.dispatch("guideState/storageChanged",e)})),function(){return K.each(e,function(e){e()})}}function gl(){q.dispatch("guideState/regainFocus")}function ml(){return q.state.guideState.lastGuideStepSeen}var vl={actions:{init:function(e){e.getters.storage().registry.addLocal(pl),e.commit("setScopedStorageKey",An(e.state.storageKey)),y.identify.on(function(e){Ii(e)&&qn([pl])})},load:function(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&K.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire:function(n){K.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire:function(n){var i=n.getters.now();K.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply:function(o){var a,s=K.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),K.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((!a||e.time>a.time)&&(a=e),(i=s[i])&&(t=K.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(X.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(X.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(X.info("making sure that seenReason = '"+e.reason+"' for "+n+": "+r),t.seenReason=e.seenReason),e.dismissCount!==undefined&&t.dismissCount!=e.dismissCount&&(t.dismissCount===undefined?t.dismissCount=e.dismissCount:t.dismissCount=Math.max(e.dismissCount,t.dismissCount),X.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=K.indexOf(i.steps,t),K.each(i.steps.slice(0,e),function(e){K.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",K.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen:function(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen:function(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=K.some(e.getters.guideList(),function(e){return e.id===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),C.lastGuideStepSeen=t))},updateThrottlingState:function(e,t){e.commit("setThrottlingState",t)},write:function(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(K.map(e.state.steps,function(e){return K.extend({tabId:t},e)}));X.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged:function(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(a){}e.getters.storageChangedInOtherTab()(o)&&(_l(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus:function(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(El(),xl())),n&&om()}},mutations:{expireStepState:function(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState:function(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey:function(e,t){e.scopedStorageKey=t},setLastGuideStepSeen:function(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen:function(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange:function(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt:function(e,t){e.lastGuideRequestAt=t},setThrottlingState:function(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:ll,storageKey:pl,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now:function(){return v()},storage:function(){return h},guideList:function(){return A()},tabLostFocus:function(e){return!!e.receivedStateChangeAt},isGuideRequestStale:function(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab:function(n,e,i){return function(e){var t=K.get(i,"frames.tabId");return!!e&&!!((e=K.max(K.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix:function(){return m.get("crossAppGuideStorageSuffix")},visitorId:function(){return Q()}}},yl=function(){return{canDisplay:function(e,t,n){if(n&&n.enabled&&K.isFinite(t)){t=i(t,n);if(K.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=m.get("appAutoOrdering")||[].concat(m.get("leaderKey"));{var i;n.length&&(i=q.getters["frames/autoOrdering"](),n=K.reduce(n,function(e,t){return e.concat(i[t]||[])},[]),t=K.uniq(n.concat(t)))}var r,o,n=function(e){e=K.defaults(K.groupBy(e,function(e){return s(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return K.isArray(t)&&t.length?(n=K.indexBy(e,"id"),t=K.reduce(t,i,[]),K.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(K.filter(e,a),t));return K.find(e,function(e){return e.isTraining})?(t=m.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],K.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=yl.lastDismissedTime(t),n=yl.canDisplay(v(),n,t.throttling);if((s(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:i};function a(e){return e&&/auto/.test(e.launchMethod)}function s(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||K.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function i(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return K.isNumber(n)&&Pt(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:K.isNumber(n)?(new Date).getTime():void 0}}();function bl(t){return y.guideSeen.on(function(e){var e=e.data[0].props||{};"permalink"===e.reason&&(e=t(e.guide_id))&&(e.shownFromPermalink=!0)}),{tryDisplay:function(){var e=i(window.location.href),t=this.getGuideFromUrl(e);{var n;if(t&&this.shouldShowPermalinkGuide(t))return n=this.getStepFromUrl(e,t),e.pendo_once&&(delete e.pendo_once,delete e.pendo,delete e.step,delete e.c__pendo,window.history.replaceState({},document.title,window.location.pathname+"?"+yr(e))),this.showPermalinkGuide(t,n)}},getQueryString:i,getGuideFromUrl:function(e){e=e.pendo||e.c__pendo;return e?t(e):null},getStepFromUrl:function(e,t){e=e.step;return e?function(e,t){return K.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function i(e){var t=hr(e).substring(1),t=vr(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=hr(e.substring(n+1)).substring(1),K.extend(t,vr(n))),t}}var Il=K.memoize(function(){return bl(T)});function wl(e,t){var e=K.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}var Cl=function(){function e(){this.name="autoDisplay",this.queue=[]}return e.prototype.markDirty=function(){var e;Cu()&&(this.queue.push("permalink","continuation"),(e=this.queue).push.apply(e,yl.sortAndFilter(A(),C.autoOrdering)))},e.prototype.process=function(e){if(Vh())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Il().tryDisplay(C);if("continuation"===t){var n=wl(A(),ml());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!wl(A(),ml()))return e.saveContext(t),yl.tryDisplayGuide(t,C);this.cancel()}}},e.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&X.warn("Auto display ("+e.id+") timeout exceeded")},e.prototype.cancel=function(){this.queue.length=0},e.prototype.isComplete=function(){return!this.queue.length},e}(),Sl=null,Al=500,Tl=function(e){Sl=K.delay(function(){Sl=null,xl()},e=e||Al),C.guidesProcessingThreadHandle=Sl},_l=function(){Sl&&(clearTimeout(Sl),Sl=null,C.guidesProcessingThreadHandle=Sl),q.dispatch("guideUpdate/stopScheduledUpdate")},El=function(){Jh(),$l.cancel();for(var e=0;e<Hd.length;e++){var t=Hd[e];t.parentNode.removeChild(t)}Hd.length=0,q.dispatch("guideUpdate/stopObserver"),y.guideLoopStopped.trigger()},xl=function(){if(_l(),ng())X.info("guides are loading.",{contexts:["guides","loading"]});else if(jg())X.info("guides are disabled.",{contexts:["guides","disabled"]});else if(zg())X.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!q.getters["guideState/tabLostFocus"]())try{var e=ou();e&&0!==e.length&&(q.dispatch("guideUpdate/startObserverIfNeeded"),$l.isComplete()&&$l.markDirty(),Su())&&$l.process()}catch(t){$l.cancel(),X.critical("ERROR in guide-loop",{error:t})}finally{$l.paused||Rl()}};function Rl(){$l.isComplete()?(q.state.guideUpdate.useObserver&&!q.state.guideUpdate.needsUpdate||Tl(),y.guideUpdateComplete.trigger()):Tl(50)}var kl=function(){var e=m.getLocalConfig();m.get("delayGuides")&&(delete e.delayGuides,m.setLocalConfig(e)),m.get("guides.delay")&&(delete e.guides.delay,m.setLocalConfig(e)),xl()},Ol=function(){jg()||Vg(!0),El(),qf()},Nl=function(){function e(e,t){this.dirty=!1,this.name=e,this.processFn=K.isFunction(t)?t:K.noop}return e.prototype.markDirty=function(){this.dirty=!0},e.prototype.process=function(){this.processFn(),this.dirty=!1},e.prototype.cancel=function(){this.dirty=!1},e.prototype.isComplete=function(){return!this.dirty},e}();function Ml(){var t=dm();t&&(K.each(t.steps,function(e){Ll(t.guide,e)}),t.guide.checkForHiddenGroupSteps())}function Ll(e,t){var n,i,r,o,a;t.isLocked()||q.getters["frames/isShownInAnotherFrame"]()(t)||(n=t.element,i=t.targetElement,o=t.guideElement,r=ee("."+Uh),(o=o.find("#pendo-guide-container")[0])&&o.textContent&&(o=ne(o).fontSize,t.attributes.currentTextZoomFontSize!==o)&&(t.attributes.currentTextZoomFontSize&&t.redraw(),t.attributes.currentTextZoomFontSize=o),t.elementPathRule&&i&&!s.matchesSelector(i,t.elementPathRule)?t.hide():(o=b(n),a=!0,i&&o&&t.elementContainsRulesList&&(o=a=wf(i,t.elementContainsRulesList)),n&&(o||r.hasClass("mouseover"))?t.checkPlacement():("tooltip"===t.type||"tooltip"===t.attributes.calculatedType)&&Go(n)&&a||t.hide()))}var Fl=function(){function e(){this.name="badge",this.queue=[]}return e.prototype.markDirty=function(){this.queue.push.apply(this.queue,K.filter(Qd(A()),lu))},e.prototype.process=function(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()},e.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();X.warn("Badge ("+e.id+") timeout exceeded")},e.prototype.cancel=function(){this.queue.length=0},e.prototype.isComplete=function(){return!this.queue.length},e}();function Pl(i,e){var r,o,t,n,a;se.isFullyCustom(i)||(r=!1,o=[],t=K.filter(i.modules,function(e){var t,n;return!!e&&(!!se.isIframeModule(e)||!!se.isSandboxModule(e)||(se.isIntegrationModule(e)?!!se.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=K.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=Rt(K.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:K.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=Rt(K.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,se.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=a),e(i,t,o),1===t.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=t[0].id,a=!i.activeModule&&n,e=i.activeModule&&i.activeModule.id!==t[0].id,a||e||r)&&se.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=K.find(t,function(e){return e.isContinuation(ml())}),a=K.get(n,"attributes.doNotResume"),e=K.get(n,"attributes.resourceCenter.integrationProvider"),se.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=K.find(t,function(e){return e.id===i.activeModule.id}))&&r&&se.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||se.replaceResourceCenterContent(i.id)),se.repositionResourceCenter())}function Gl(e,t){var n,i,r,o;se.isFullyCustom(e)||(n=[],o=[],(r=K.find(e.modules,function(e){return!!se.isIframeModule(e)||!!se.isSandboxModule(e)||!!se.isIntegrationModule(e)&&(!!se.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&n.push(r),r=K.flatten(K.pluck(e.modules,"guidesInModule")),o=K.filter(K.compact(r),function(e){return e.control}),!n.length&&(i=K.reduce(e.modules,function(t,n){return K.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=K.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=K.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=i[(r=K.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&n.push(r),t(e,n,o))}function Dl(e,t,n){var i,r,o=Kd[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),r=-1!==e.launchMethod.indexOf("extensionIcon"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),o&&se.hideRCBadge(o,e),K.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):(i||r)&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(o||(K.isFunction(e.placeBadge)&&e.placeBadge(),o=Kd[e.id]),o&&o.show(),e.badgeHidden=!1)}function Bl(e){var t,n;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,n=e.activeModule,t=K.get(n,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=n&&se.isSupportedNativeIntegration(t),se.isFullyCustom(e)?e.hasResourceCenterContent=!0:((e.isShown()||!q.getters["frames/isLeader"]()?Pl:Gl)(e,Dl),e.isNativeModuleActive&&(e.isShown()&&e.hide(),n=Kd[e.id])&&se.hideRCBadge(n,e),"dom"===e.launchMethod&&(se.updateNotificationBubbles(),se.adjustNotificationBubbleForResize())))}var Wl=function(){function e(e){void 0===e&&(e=50),this.startTime=-1,this.timeLimit=e,this.context=null}return e.prototype.start=function(){this.context=null,this.startTime=v()},e.prototype.isTimeExceeded=function(){return v()-this.startTime>this.timeLimit},e.prototype.saveContext=function(e){this.context=e},e.prototype.getContext=function(){return this.context},e}(),Ul=function(){function e(e){this.phases=e,this.queue=[],this.paused=!1}return e.prototype.markDirty=function(){for(var e=0,t=this.phases;e<t.length;e++)t[e].markDirty();this.queue=this.phases.slice()},e.prototype.runGuidePhase=function(){for(var e,t,n,i=this.queue[0],r=new Wl(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));$t(e)?(t=this.updateId,n=K.bind(function(){this.updateId===t&&(this.paused=!1,xl())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()},e.prototype.addPhase=function(e,t){t=t||e.name||this.phases.length,K.isFunction(e)&&(e=new Nl(t,e)),this.phases.push(e)},e.prototype.removePhase=function(t){var e=K.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)},e.prototype.timedOut=function(){return!!this.iterationStartTime&&v()-this.iterationStartTime>q.state.guideUpdate.iterationTimeLimit},e.prototype.ejectGuide=function(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=m.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&tu.addGuide(e)},e.prototype.process=function(){var e=v();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,q.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=v(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)},e.prototype.complete=function(e){q.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),q.commit("guideUpdate/completeUpdate",e),this.cancel()},e.prototype.cancel=function(){this.updateId=null,this.paused=!1;for(var e=this.queue.length=0,t=this.phases;e<t.length;e++){var n=t[e];K.isFunction(n.cancel)&&n.cancel()}},e.prototype.isComplete=function(){return!this.queue.length},e}(),$l=new Ul([new Fl,new Nl("resourceCenter",function(){Bl(se.getResourceCenter())}),new Nl("frameVisibility",function(){q.dispatch("frames/checkFrameVisibility")}),new Nl("guideShowing",Ml),new Cl]);function jl(){$l.addPhase.apply($l,arguments)}function zl(){$l.removePhase.apply($l,arguments)}function Zl(){var s={};return K.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=K.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}var Vl="debug-enabled";function Yl(){try{return JSON.parse(h.read(Vl,!0)||bn(Vl))||{}}catch(e){return{}}}function Hl(e){var t;return void 0===e&&(e=!0),t=q&&q.getters&&q.getters["debugger/debuggingEnabled"]?q.getters["debugger/debuggingEnabled"]():!0===Yl().enabled,e?t:t?"Yes":"No"}var Kl=function(){function e(e,t){this.type=t,this.identificationFn=e}return e.prototype.test=function(e){return this.identificationFn(e)},e}(),Xl=function(){var i={},e=function(e){var e=e.data,t=e[0];e[1];var n=T(t.guideId),e=(K.find(i,function(e){return e.GuideType.test(n)})||{}).handler;e&&e(n,"resourceFetchFail")};return{run:function(){y.resourceFetchFail.on(e)},stop:function(){y.resourceFetchFail.off(e)},addTypeHandler:function(e,t){K.isFunction(t)?i[e.type]={GuideType:e,handler:t}:X.error("Invalid Handler function provided for type ".concat(e.type))}}}(),Jl=(Xl.addTypeHandler(new Kl(lu,"badge"),function(e,t){tu.addGuide(e)}),"_pendo-badge_");function ql(e,t){var n;m.get("disablePrefetch")||(t=K.keys(t)).length&&(n=K.indexBy(e,"id"),K.each(t,function(e){var e=n[e];e&&(e=K.first(e.steps))&&K.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}function Ql(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function ep(i){return function(e){var t,n;return K.get(e,"props.data-localization-direction",!1)&&!i&&(t=K.get(e,"props.style.left","auto"),n=K.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}}function tp(e,t){var n=e?["he","ar"]:[];return function(e){return K.contains(n,t)&&(e.props["data-localization-direction"]=!0),e}}function np(t,n){var e,i,r=vu(n),o=!(null==(o=null==t?void 0:t.attributes)||!o.resourceCenter),a=!1;return o&&(a=null==(e=null==(e=null==t?void 0:t.attributes)?void 0:e.badge)?void 0:e.ignoreRTL),"building-block"===t.attributes.type?(e=K.reduce([tp(o,t.language),ep(a),Ql,Pu,function(e){return Bc(e,{id:n.id,guideId:t.id,isBadge:!0})}],function(e,t){return t(e)},this.domJson)[0],i=e,ee.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=Fu(this.imageUrl),i.className="_pendo-badge "+Jl,o=this.width||13,a=this.height||13,so(i,"width:"+o+"px;height:"+a+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=K.isFunction(n.getGuide)&&n.getGuide(),t=_f(e);!e.isShown()||q.getters["frames/isShownInAnotherFrame"]()(n)?xf(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=K.find(e.steps,function(e){return e.isShown()}),uf(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(K.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){ee.removeNode(i),Zc(t.id),K.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},_f(t)&&(this.toggleAriaExpanded=function(){var e=!!ee("#pendo-resource-center-container")[0],t=ee("button._pendo-resource-center-badge-container")[0]||ee('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=K.constant(n),this.target=K.constant(r),this.element=K.constant(i),this}function ip(){return"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t=this.target(),n=this.element();this.isP2Badge&&so(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&so(n,this.css),t&&t.tagName&&(e=t.tagName.toLowerCase(),/br|input|img|select|textarea/.test(e)?n.parentNode!==t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):n.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(n):"inline-left"===this.position&&t.prepend(n)))}),this}function rp(s){return this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e,t=this.element(),n=ie(this.target()),i=0,r=0,o=0;if(this.offsets&&(i=this.offsets.top||0,r=this.offsets.right||0,o=this.offsets.left||0),!K.get(s,"attributes.resourceCenter",!1)){var a="position:"+(n.fixed?"fixed":"absolute")+";top:"+(n.top+i)+"px;";switch(this.position){case"top-right":a+="left:"+(n.left+n.width-r)+"px";break;case"top-left":a+="left:"+(n.left+o)+"px"}so(t,a)}t.parentNode||(oe().appendChild(t),e=Mo(te,this.target(),fp),this.removeScrollHandlers=function(){fp.cancel(),e()})}),this}function op(){return"over"===this.position&&this.before("show",function(){var e,t=this.element(),n=ie(this.target()),i="position:absolute;top:"+n.top+"px;left:"+n.left+"px;";i+="height:"+n.height+"px;width:"+n.width+"px;",so(t,i+="background-color:transparent;"),t.parentNode||(oe().appendChild(t),e=Mo(fp,t,this.target()),this.removeScrollHandlers=function(){fp.cancel(),e()})}),this}function ap(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Zd(e)};return t.after("show",function(){n||(I(e,"click",i),n=!0)}),t.after("hide",function(){w(e,"click",i),n=!1}),t}function sp(){var t,e,n,i=this.element(),r=this.step(),o=!1;return"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(t=K.throttle(function(e){Ui(e)===i||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className))return!0;if(/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(Ui(e))||n()},50,{trailing:!1}),e=function(e){r.isShown()||xf(r,"badge"),I(document,"mousemove",t),Zd(e)},n=function(e){w(document,"mousemove",t),hu()||uf(r)},this.after("show",function(){o||(I(i,"mouseover",e),o=!0)}),this.after("hide",function(){w(i,"mouseover",e),w(document,"mousemove",t),o=!1})),this}function dp(){var e,t,n,i,s,d=this.element(),u=this.target(),r=!1;return(this.showBadgeOnlyOnElementHover||/hover/.test(this.showOnEvent))&&!hu()&&(e="inline"===this.position?"visibility:visible;":"display:inline;",t="inline"===this.position?"visibility:hidden;":"display:none;",n=K.throttle(function(e){var t,n,i,r,o,a;Ui(e)===u||Ui(e)===d||eo(d,"triggered")||(t=e.clientX,e=e.clientY,n=re(u),i=re(d),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||s()},50,{trailing:!1}),i=function(){so(d,e),I(document,"mousemove",n)},s=function(){w(document,"mousemove",n),so(d,t)},this.after("show",function(){r||(I(u,"mouseover",i),r=!0,s())}),this.after("hide",function(){r&&(w(u,"mouseover",i),r=!1),s()})),this}np.create=function(n){var i=np.findStep(n);if(i)return K.reduce(np.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},np.findStep=function(e){var t=K.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},np.behaviors=[Zl,np,ip,rp,op,ap,sp,dp];var up=function(e,t){var n,i,r=(t=t||Kd)[e.id],o=r?r.step():np.findStep(e);o&&(i=r?r.target():vu(o),(n=K.get(e,"attributes.resourceCenter"))&&!q.getters["frames/canShowRCBadge"]()?r&&K.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(se.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&wf(i,o.elementContainsRulesList)),(i=o.elementPathRule&&b(i)&&s.matchesSelector(i,o.elementPathRule)&&n)?((r=r||np.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),Hl()&&y.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),se.repositionDoubleResourceCenterBadge()))},cp=function(){K.map(Kd,lp),Jd({})},lp=function(e,t){e&&(K.isFunction(e.hide)&&e.hide(),K.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Kd[t.id]},pp=function(e){var t=Kd[e.id];t&&lp(t,e)};function hp(){K.map(Kd,function(e){e&&e.show&&e.show()})}var fp=K.throttle(hp,10);function gp(e){var n;e&&e.length&&(n=K.indexBy(e),K.each(Kd,function(e,t){n[t]||(e.hide(),delete Kd[t])}))}var mp=h.getLocal(),vp="pendo-preview",yp="current-guide-preview",_;function bp(e){return q.dispatch("preview/load"),Ip(e)}function Ip(t){var e=Zp();if(e)return Cp(t),q.dispatch("preview/start",K.extend(e)),h.clear(pl),yn(!1),Ra.lock(),og(Kp),y.startPreview.trigger(),y.leaderChanged.on(function(e){q.dispatch("preview/write"),e.oldLeaderId||om(),q.getters["frames/isLeader"]()||(ee(_).remove(),_=null,t.removeEventListener("message",Tp))}),jl(wp),!0}function wp(){return q.getters["frames/isFollower"]()||Bp(document,A(),ml()),!0}function Cp(e){if(q.getters["frames/leaderExists"]()){if(!q.getters["frames/isFollower"]()){if(_)return!0;K.isFunction(e.addEventListener)&&e.addEventListener("message",Tp),_=Rp(),bo().appendChild(_)}}else y.one("leaderChanged",K.partial(Cp,e))}function Sp(e,t,n){Jh(),q.commit("healthCheck/resetStepStatus",null,{root:!0}),Wu.reset(),om();var i=e[0],i=(i&&K.each(i.steps,function(e){e.seenState=null}),h.clear(pl),xp(null),Zp());return i&&(i=K.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),q.dispatch("preview/restart",i)),Gp(e,t)}function Ap(e){_&&_.style&&(_.style.height=e)}function Tp(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===vp+"::exit"?($p({preventWindowClose:n}),q.dispatch("frames/stopPreview",{preventWindowClose:n})):t===vp+"::restart"?(n=Sp(A(),ml(),e.data.language),q.dispatch("guideState/forceExpire"),q.dispatch("guideState/updateLastGuideStepSeen",n),q.dispatch("frames/restartPreview")):t===vp+"::resize"?Ap(e.data.height):t===vp+"::request-preview-mode-type"&&(n=Vp(),_)&&_.contentWindow&&n&&_.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:n.previewModeType||"NEW_TAB"}},location.origin))}function _p(){return q.getters["preview/isInPreviewMode"]()}function Ep(){return q.getters["preview/isInDesignerPreviewMode"]()}function xp(e){q.dispatch("preview/update",e)}function Rp(){var t=document.createElement("iframe");t.id=vp;return co(t,{border:"none",display:"block !important",height:"70px","min-height":"70px",left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100%","z-index":4e5}),t.onload=function(){m.get("inlineStyleNonce")&&(o=t.contentDocument.createElement.bind(t.contentDocument),t.contentDocument.createElement=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i,r=o.apply(void 0,qt([e],t,!1));return"style"===e&&(i=m.get("inlineStyleNonce"))&&r.setAttribute("nonce",i),r});var o,e=document.createElement("script");e.src=Wh(),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},t}function kp(){var e=Vp();return e?Ep()?(K.each(e.guide.steps,function(t){var e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),K.each(e,function(e){delete t[e]})}),e.guide.showsAfter=null,e.guide.expiresAfter=null,[e.guide]):void 0:[]}function Op(e){var t=Zp();return t?(t.isResourceCenter?Np:Fp)(e,t):e}function Np(e,t){var n=se.findResourceCenterHomeView(e),e=K.filter(e,function(e){return e.id!==n.id}),t=(Pp(n,t.stepId),K.map(e,function(e){return e.launchMethod="launcher",e}));return[n].concat(t)}function Mp(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Lp(e){e.launchMethod="api";e=e.steps[0];e&&(e.seenState="advanced")}function Fp(e,t){var n;return K.each(e,function(e){e.id===t.guideId?n=e:Lp(e)}),Mp(n),n.showsAfter=null,n.expiresAfter=null,Pp(n,t.stepId),e}function Pp(e,t){for(var n=K.find(e.steps,function(e){return e.id===t}),i=n?e.steps.indexOf(n):0,r=0;r<e.steps.length;r++)r<i?(e.steps[r].seenState="advanced",e.steps[r].seenReason="continue"):(e.steps[r].seenState=null,e.steps[r].seenReason=null)}function Gp(e,t){null==t&&(t={});var n=Zp();if(!n)return t;e=K.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Mp(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Dp(e,t){_&&_.contentWindow&&_.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Bp(e,t,n){var i,r,o,a,s,d,u;_p()&&(i=Zp())&&_&&_.contentWindow&&(t&&t.length?(_.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),r=K.find(t,function(e){return e.id===i.guideId}),o=0,a=r.steps.length,s=n||{},K.find(r.steps,function(e,t){return s.guideStepId===e.id&&("dismissed"===s.state||"active"===s.state?o=t:"advanced"===s.state&&s.destinationStepId?o=K.indexOf(r.steps,K.find(r.steps,function(e){return e.id===s.destinationStepId})):"advanced"===s.state&&t===a-1&&(o=a),!0)}),t="dismissed"===s.state,n=a-1<=o,t=t||n,n=n?a-1:o,u=(d=r.steps[n]).isShown(),_.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:nt}},location.origin),_.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:r.previewPages}},location.origin),_.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:r.name,guideAttributes:JSON.stringify(r.attributes),guideLaunchMethod:r.launchMethod,guideActivationSelector:yu(r),isAdoptGuide:r.isTraining,isResourceCenter:i.isResourceCenter,stepId:d&&d.id,currentStepIndex:n,stepCount:a,elementPathRule:d.elementPathRule,elementContainsRulesList:d.elementContainsRulesList,triggerElementPathRule:d.triggerElementPathRule,isShown:u,pageId:d.pageId,completed:t,languageOptions:K.get(i,"languageOptions",[]),currentLanguage:i.language}},location.origin),Up(d,n,_)):Dp(e,{status:404,data:"Guide not found"}))}function Wp(e){var t,n;_&&_.contentWindow&&_.style&&(t=K.first(ee('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(t=ne(t))&&(n={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===t.top?(_.style.top="auto",_.style.bottom="0px",_.contentWindow.postMessage(n,location.origin)):"0px"!==t.bottom&&_.style.top||(_.style.top="0px",_.style.bottom="auto",n.payload.isPreviewBarTop=!0,_.contentWindow.postMessage(n,location.origin)))}function Up(a,t,s){var n,e;a&&s&&s.contentWindow&&(n=a.getGuide().id,(e=K.filter(q.state.frames.frames,function(e){return"hidden"!==e.visibility&&e.guides&&e.guides[n]})).length)&&(e=K.map(e,function(e){return E.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:a.id,guideId:n,currentStepIndex:t})}),J.all(e).then(function(e){for(var t={},n=-1,i=0;i<e.length;i++){var r=JSON.parse(e[i]).errors;if(!r.GUIDE){var o=K.keys(r).length;if(!o){t={};break}-1===n?(t=r,n=o):a.regexUrlRule?!r.PAGE&&o<=n&&(t=r,n=o):o<n&&(t=r,n=o)}}s.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:t}},location.origin)})["catch"](K.noop))}function $p(e){var t=Vp(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),mp.getItem("pendo-navigation-state"));if(q.dispatch("preview/exit"),Jh({stayHidden:!0}),h.clear(pl),Ra.unlock(),ee(_).remove(),ag(),zl(wp),yn(!0),n&&i){mp.setItem(yp,JSON.stringify(K.extend(t,{isExitBackToDesigner:!0})));try{var r=JSON.parse(i),o={target:r.baseUrl,gcsBucket:r.gcsBucket,preloader:!0,DADesigner:r.isDADesigner,host:r.host,forceNativeDesigner:"web"===t.guide.appPlatform};q.dispatch("preview/launchInAppDesigner",o)}catch(err){q.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),om()}function jp(e,t){e=K.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function zp(){return q}var Zp=K.partial(jp,zp,"state.preview.preview"),Vp=K.partial(jp,zp,"state.preview.designerPreview");function Yp(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+zt(e.subscriptionId)+t+zt(e.guideId)+"/preview"}var Hp=function(e){var t;return Wo(e.origin)?(t=Yp(e))?(t={url:e.origin+t+"?url="+zt(f.externalizeURL())+"&apiKey="+C.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),p(t).then(function(e){return e.data.guide})):(X.info("Invalid guide url, exiting preview"),J.reject("invalid guide url")):(X.info("Invalid origin, exiting preview"),J.reject("invalid origin"))},Kp={load:function(e,t){return Jp(e,t)},post:function(e,t,n){return Jp(e,n)},endpoint:function(){return""},usesXhr:function(){return!0}};function Xp(n,t){var e,i;return Wo(n.origin)?(e=Yp(n))?q.getters["frames/leaderExists"]()&&n.apiKey===C.apiKey?(e="".concat(n.origin).concat(e,"?url=").concat(zt(f.externalizeURL()),"&apiKey=").concat(C.apiKey),n.childGuides&&n.childGuides.length&&(e+="&childGuides="+n.childGuides.toString()),Ep()&&(e+="&ignoreGuide=true"),e={url:e,withCredentials:!0},n.headers&&(e.headers=n.headers),i=[],p(e).then(function(e){e=e.data;return Ep()?(i=kp(),e.guide=i[0]):i=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(i=i.concat(e.children)),n.language&&n.language!==K.get(i,"[0].authoredLanguage")&&qp(i,n.language.value),n.watermarkConfig&&(e.guide.isTraining=!0),C.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},C.guideCssUrl=e.guideCssUrl,C.normalizedUrl=e.normalizedUrl,C.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Hp(t)):e}).then(function(e){e.attributes&&e.attributes.isWatermark&&i.push(e),C.guidesPayload({id:t,lastGuideStepSeen:Gp(i,C.lastGuideStepSeen),guides:Op(i)})})["catch"](function(e){return Dp(document,e),J.reject(e)})):(C.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),J.resolve()):(X.info("Invalid guide url, exiting preview"),J.reject("invalid guide url")):(X.info("Invalid origin, exiting preview"),J.reject("invalid origin"))}function Jp(e,t){var n=Zp();return!n||!Yp(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?J.reject():Xp(n,e[1]).then(t)}function qp(e,c){K.forEach(e,function(u){K.forEach(u.steps,function(e){var t=K.get(u,"translationStates."+c+".stepTranslations."+e.id,{}),n=t.domHash,i=t.domJsonpHash,r=t.translationHash,o=t.originalDomJsonHash,a=t.originalDomJsonpHash,s=t.originalBuildingBlockHash,d=t.domHash256,t=t.domJsonpHash256;e.domUrl=Qp(o,e.domUrl,".dom.json",d),e.domJsonpUrl=Qp(a,e.domJsonpUrl,".dom.jsonp",t),e.buildingBlocksUrl=Qp(s,e.buildingBlocksUrl,".buildingBlocks.json"),n&&i&&r&&(e.domUrl=e.domUrl.replace(".dom.json","-"+n+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+i+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+r+"-"+c+".buildingBlocks.json"))})})}function Qp(e,t,n,i){var r,o;if(t)return o=r=(t=t.split("/"))[t.length-1],e&&(o="".concat(e).concat(r.slice(r.indexOf(n)))),i&&-1<(e=o.indexOf("sha256="))&&(o="".concat(o.slice(0,e)).concat("sha256=").concat(i)),t[t.length-1]=o,t.join("/")}var eh=function(){var n=null,i=[],r=function(e){C.apiKey=e+="",n=e};return{getApiKey:function(){return C.apiKey},discoverKeys:function(e){var t=e.apiKey,e=e.additionalApiKeys,e=void 0===e?[]:e;n=null,i=[],t=t,(t=m.get("apiKey",t))&&r(t),t=e,t=m.get("additionalApiKeys",t),i=K.reduce(t,function(e,t){return t&&e.push(t+""),e},[]),i=[].concat(t),C.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys:function(){return C.additionalApiKeys},tamperedWith:function(){return C.apiKey!==n||C.additionalApiKeys!==i}}}(),th=h.getLocal(),nh=function(){var a=nt,n="in-app-designer",i="latest";function e(e){if(!e.ignoreLocalStorageNavigation){var t,e=th.getItem("pendo-navigation-state");if(e&&q.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(err){return}if(!t.apiKey||t.apiKey===eh.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===_e())return e=t.isDADesigner?"da-designer":"in-app-designer",e={target:t.baseUrl,preloader:!0,host:t.host,gcsBucket:t.gcsBucket||e,DADesigner:t.isDADesigner,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},nh.launchInAppDesigner(e),!0}}}return"local"===ot&&(a="https://local.pendo.io:8080"),y.leaderChanged.on(function(){e({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Ep()})}),{launchDesigner:function(e){var t,n="latest",i="designer";h("designer-styles","@keyframes pendoExtensionSlideIn{from{transform:translate3d(-300px,0,0)}to{transform:translate3d(0,0,0);}}#pendo-draggable-handle{z-index:11;line-height: 15px;text-align:center;font-size:20px;letter-spacing:1.5px;position:absolute;width:100%;height:65px;font-size:16px;background-color:transparent;color:#ABE7DB;user-select:none;cursor: move;cursor: grab;cursor: -moz-grab;cursor: -webkit-grab;}#pendo-draggable-handle:active{cursor: grabbing;cursor: -moz-grabbing;cursor: -webkit-grabbing !important;}#pendo-draggable-handle.hidden{display:none;}#pendo-draggable-handle:hover{color:#2EA2A0;}#pendo-designer-container{animation-duration:375ms;animation-name:pendoExtensionSlideIn;animation-timing-function:cubic-bezier(0.4,0.0,0.2,1); box-shadow: 0px 2px 10px rgba(0,0,0,0.15);height:100vh;width:400px;position:fixed;top:0;left:0;overflow:hidden;border-radius:3px;z-index:1000000;}#pendo-mousemove-cover{position:absolute;height:100%;width:100%;top:0;left:0;z-index:9999999999;display:none;}#pendo-designer-container.fullscreen{width:100%;opacity:0.98;}#pendo-designer-container.closed{left:-400px;}#pendo-designer-iframe{background:#3a3c45;border:0px;height:100%;left:0;z-index:10;top:0;width:100%;}"),f("designer-shims",a+"/"+i+"/"+n+"/plugin.js"),C.DESIGNER_VERSION?l(n,i):t=window.setInterval(function(){C.DESIGNER_VERSION&&(l(n,i),clearInterval(t))},100)},launchInAppDesigner:s,localStorageNavigation:e,launchOnToken:function(e){if(!g(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(jt(e)))||{}}catch(t){return{}}}(e[1]),e=d(t),n=c(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),s({target:n,host:e,preloader:!1,sidebarDesigner:!!t.sidebarDesigner}),!0}}},sendMessageToLocalStorage:function(e){var t=document.getElementById("pendo-designer-communication-iframe");t&&t.contentWindow.postMessage(e.data,nh.hostConfig.host)},isValidDesignerHost:r,isValidTarget:o,addCommunicationIframe:function(e,t){e=e||{};K.isFunction(t)||(t=K.noop);var n=c(e),e=u(e),i=(new Date).getTime(),r=(nh.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=p(r,a+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},addStylesToPage:h,hostConfig:{host:a},isDesignerFrame:g,addScriptToPage:f};function r(e){return!!e&&Wo(e)}function d(e){var e=(e=e||{}).host||a,t=r(e),e=t?e:nt;return t||X.info("Invalid host, falling back to "+nt),e}function u(e){var e=(e=e||{}).gcsBucket||n,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:n;return t||X.info("Invalid bucket, falling back to "+n),e}function o(e){return"latest"===e||"beta"===e||"via"===e||"mobile"===e||new RegExp("^[0-9]+.[0-9]+.[0-9]+(-[a-z0-9-]+[a-z0-9]+)?$").test(e)}function c(e){var e=(e=e||{}).target||e.baseFolder||i,t=o(e),e=t?e:i;return t||X.info("Invalid target, falling back to "+i),e}function s(e){if(!g(window.name)&&!C.designerLaunched)if(m.get("disableDesigner"))X.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,o,a=!1;try{a=!!window.top.pendo}catch(s){}nh.crossFrameChannel===undefined&&(nh.crossFrameChannel=E,nh.useCrossFrameChannel=!0),ma()&&a&&!e.allowChildFrame&&!e.selectionOnly?X.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):C.isReady()?(C.designerLaunchTime=(new Date).getTime(),a=d(e=e||{}),i=u(e),r=c(e),n=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+i+"/"+r+"/"+n,nh.hostConfig={gcsBucket:i,baseFolder:r,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:_e(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:eh.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),r=m.get("designerAgentPluginsLoader"),a=window.__pendoExtensions&&e.forceNativeDesigner,o=!window.__pendoExtensions&&!K.isFunction(r),(a||o)&&(nh.addScriptToPage(t,n,i),C.designerLaunched=!0),!e.forceNativeDesigner&&K.isFunction(r)&&(r(t,n,i),C.designerLaunched=!0)):X.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function l(e,t){window.postMessage({type:"connect",source:"pendo-designer-content-script",destination:"pendo-designer-agent"},location.origin);var n;document.getElementById("pendo-designer-container")||(n="pendo-designer-embedded",n+="__"+nh.windowCommunicationId,(t=p("pendo-designer-iframe",a+"/"+t+"/"+e+"/designer.html")).setAttribute("name",n),e=function(e){var t=document.createElement("div");return t.setAttribute("id","pendo-designer-container"),t.appendChild(e),t}(t),document.body.appendChild(e))}function p(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&so(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups"),i.src=t,i}function h(e,t){var n;document.getElementById(e)||((n=document.createElement("style")).setAttribute("id",e),n.type="text/css",e=document.createTextNode(t),n.appendChild(e),document.getElementsByTagName("head")[0].appendChild(n))}function f(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=Te(C).createScriptURL(t),n&&K.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function g(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}}(),ih=function(){var a={body:"pendo-launch-modal-body",closeButton:"pendo-launch-modal-close-button",container:"pendo-launch-modal",footer:"pendo-launch-modal-footer",header:"pendo-launch-modal-header",launchButton:"pendo-launch-modal-launch-button",title:"pendo-launch-modal-title",logoContainer:"pendo-launch-modal-logo-container",style:"pendo-launch-modal-style",commIframeId:"pendo-designer-communication-iframe"},s={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},d={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370},u=(d.FOOTER_HEIGHT=1.25*d.HEADER_HEIGHT,d.BODY_HEIGHT="calc(100% - "+d.HEADER_HEIGHT+"px - "+d.FOOTER_HEIGHT+"px)",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 164.12 164.12"><defs><style>.cls-1{fill:#fff;}</style></defs><title>chevron</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><polygon class="cls-1" points="82.06 0 0 82.06 82.06 82.06 82.06 164.13 164.13 82.06 164.13 0 82.06 0"/></g></g></svg>'),c={},l=(c["#"+a.closeButton+":hover"]={"background-color":s.GRAY_LIGHTER_6},c["#"+a.launchButton+":hover"]={"background-color":s.TEAL_DARKER+" !important"},{PRIMARY_FONT:"Helvetica Neue"});return{listen:function(){return K.isFunction(document.addEventListener)?(document.addEventListener("keyup",e,!1),function(){document.removeEventListener("keyup",e,!1)}):function(){}},launchOnLocalStorageToken:v,ids:a,removeElement:f,attemptToLaunch:t,loadPluginJs:function(){var t;C.designerLaunched||(t=K.once(function(e){v(e,!0)}),ba(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function e(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&t(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&t(!1,!0)}function p(e,t){var n,i,r,o={"background-color":s.WHITE,height:d.MODAL_HEIGHT+"px","min-height":d.MODAL_HEIGHT+"px",width:d.MODAL_WIDTH+"px",position:"fixed",top:d.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-d.MODAL_WIDTH/2+"px","border-radius":"4px","box-shadow":"0px 13px 28px rgba(0, 0, 0, 0.17)",overflow:"hidden","z-index":"300000","box-sizing":"border-box"},o=h("div",a.container,o);o.appendChild(((i=document.createElement("style")).setAttribute("id",a.style),i.type="text/css",r=document.createTextNode(function(e){return K.reduce(K.pairs(e),function(e,t){var n=t[0],t=t[1];return e+n+"{"+K.reduce(K.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},"")}(c)),i.appendChild(r),i)),o.appendChild((r=t,i=h("div",a.header,{"background-color":s.GRAY_PRIMARY,height:d.HEADER_HEIGHT+"px","min-height":d.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(t=h("div",a.logoContainer,{height:"38px",width:"44px","background-color":s.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=Te(C).createHTML(u),i.appendChild(t),(t=h("div",a.title,{width:"100%",display:"flex","align-items":"center","font-family":l.PRIMARY_FONT,"font-size":"18px",color:s.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=r?"VIA Designer":"Pendo Designer",i.appendChild(t),i)),o.appendChild(((r=h("div",a.body,{height:d.BODY_HEIGHT,"min-height":d.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":l.PRIMARY_FONT,"font-size":"14px","box-sizing":"border-box"})).innerText="Thanks for letting us know you're here. We're ready to try this again. Launch Designer below to begin.",r)),o.appendChild((n=e,t=h("div",a.footer,{"align-items":"center","border-top":"1px solid"+s.GRAY_LIGHTER_6,display:"flex",height:d.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":d.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(i=h("button",a.closeButton,{"border-radius":"3px",border:"none",height:d.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":l.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","margin-right":"10px","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Close",i.onclick=function(){f(a.container),f(a.commIframeId)},(r=h("button",a.launchButton,{"background-color":s.TEAL_PRIMARY,"border-radius":"3px",color:s.WHITE,border:"none",height:d.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":l.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",r.onclick=function(){v(n)},t.appendChild(i),t.appendChild(r),t)),document.body.appendChild(o)}function h(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),K.extend(e.style,n),e}function t(t,n){var i,r,o;C.designerLaunched||(o=K.once(function(e){t||!n?v(e):p(e,t),g()}),ba(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),K.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(a.commIframeId)&&m()},100))):g())}),nh.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){m(),i=window.setInterval(m,50)}))}function f(e){document.getElementById(e)&&document.getElementById(e).remove()}function g(){var e=document.querySelector("#"+a.commIframeId+'[src*="pendo"]');e&&e.remove()}function m(){var e=document.getElementById(a.commIframeId);e&&e.contentWindow&&K.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:C.visitorId},K.get(C,"designerv2.hostConfig.host",nt))}function v(e,t){var n={},e=JSON.parse(e);n.target=e.target||"latest",e.host&&(n.host=e.host),e.lookaside&&(n.lookaside=e.lookaside),t&&(n.selectionOnly=t),e.forceNativeDesigner&&(n.forceNativeDesigner=e.forceNativeDesigner),e.sidebarDesigner&&(n.sidebarDesigner=e.sidebarDesigner),f(a.container),nh.launchInAppDesigner(n)}}();function rh(e){var t=J.defer();return Vo(e,function(){t.resolve()}),t.promise}function oh(e,t){return 0<K.size(Tu._handlers.validateGlobalScript)?p.get(t).then(function(e){return Tu.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)}function ah(e,t){return t?e(t):J.resolve()}var sh=K.wrap(K.once(K.wrap(rh,oh)),ah),dh={initializeWatermark:function(e){e=K.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),dh.watermarkGuides=e,e=K.map(e,function(e){return e.fetchContent()});return J.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return K.find(dh.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return K.find(dh.watermarkGuides,function(e){return t===e.appId})}(e.appId);if(n&&n.steps){var i,n=n.steps[0];if(n&&n.domJson)return i=n.domJson,(i=t(i,n)).css({position:"absolute",left:"auto",top:e.isBottomAligned?"auto":"100%",bottom:e.isBottomAligned?"100%":"auto",right:"0"}),i}}}},uh=1e4;function ch(n,i){var r=!1,o=[];return n.addEventListener("message",function(e){d(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t){void 0===t&&(t=uh);var n=J.defer(),i=Ot(32),r=(e=K.extend(e,{promiseId:i}),Dt(function(){o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(function(e){clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,K.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=K.extend({apiKey:C.apiKey,allowMixedApiKeyFrames:m.get("allowMixedApiKeyFrames"),agentInstallType:_e()},e),n.postMessage(t),Dt(function(){d(t)},0))}function s(e){e.promiseId||(t=Ot(32),e=K.extend(e,{promiseId:t}));var t=J.defer();return o[e.promiseId]=t,a(K.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==C.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===m.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){X.critical("ERROR in cross frame channel",{error:n})}}}var lh="frames/removeFrame";function ph(e){if(!K.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}function hh(e,t){return new(K.isFunction(e.MessageChannel)?yh:bh)(e,t)}function fh(e,t,n){return new gh(e,t,n,hh(t,n))}function gh(e,t,n,i){this.init(e,t,n,i)}K.extend(gh.prototype,{init:function(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=K.bind(this._frameConnectHandler,this),this._impl.onmessage=K.bind(this._fireMessageListeners,this),this._impl.onrelay=K.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners:function(t){K.each(this._listeners,function(e){e(t)})},_controlMessageHandler:function(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===lh)&&this._topMessageHandler(e)},_topMessageHandler:function(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===lh&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop:function(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Dt(K.bind(function(){this._connected||(0===t?K.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler:function(){this._singletonMessageHandler.addEventListener(K.bind(this._controlMessageHandler,this))},_frameConnectHandler:function(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener:function(e,t){"message"===e&&this._listeners.push(t)},postMessage:function(e){this._closed||this._impl.postMessage(e)},close:function(){this._closed=!0,this._listeners.length=0,this._impl.close()}});var mh={_frameConnectHandler:function(e){K.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived:function(e){K.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage:function(e){K.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage:function(e){var t;return K.isString(e.data)?((t=K.pick(e,"type","origin","source","ports","lastEventId","target")).data=ph(e.data),t):e}};function vh(t){return t&&K.all(["addEventListener","start"],function(e){return K.isFunction(t[e])})}function yh(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function bh(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=K.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=K.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}function Ih(t,e){var n=[],i=!1;return{targetOrigin:function(){return i?location.origin:"*"},secure:function(e){i=e},addEventListener:function(e){0===n.length&&t.addEventListener("message",r),n.push(e)},removeEventListener:function(e){e=n.indexOf(e);0<=e&&n.splice(e,1),0===n.length&&t.removeEventListener("message",r)},close:function(){t.removeEventListener("message",r),n.length=0}};function r(t){i&&!e(t.origin)||K.each(n,function(e){K.isFunction(e)&&e(t)})}}K.extend(yh.prototype,mh,{connectToTop:function(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect:function(e){var t=e.ports[0];vh(t)&&((this._ports[e.data.frameId]=t).addEventListener("message",K.bind(this._relayMessage,this)),t.start(),t.postMessage({action:"pendo::connectSuccess"}),t.postMessage({action:"frames/receiveFrame",frame:q.state.frames.frames[q.state.frames.frameId],"pendo-preview":q.state.preview.preview}))},frameDisconnect:function(e){delete this._ports[e.data.frameId]},connectSuccess:function(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",K.bind(this._messageReceived,this))},broadcast:function(t){K.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage:function(e){this._port&&this._port.postMessage(e),e.action===lh&&this._window.top.postMessage(e,this._targetOrigin)},close:function(){K.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel:function(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=K.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel:function(){this._port&&K.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),K.extend(bh.prototype,mh,{connectToTop:function(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect:function(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=K.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect:function(e){delete this._frames[e.data.frameId]},connectSuccess:function(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast:function(t){var n=this._singletonMessageHandler.targetOrigin();K.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage:function(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close:function(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});var wh=Ih(window,Wo);function Ch(e,o){var a=[];return e.removeEventListener=K.wrap(e.removeEventListener,function(e,t,n){var i,r=K.toArray(arguments).slice(1);return"message"===t&&0<=(i=K.findIndex(a,function(e){return e[0]===n}))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=K.wrap(e.addEventListener,function(e,t,n){var i,r=K.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),e.postMessage=K.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,K.toArray(arguments).slice(1))}),e}function Sh(e){if(!l.addEventListener)return{addEventListener:K.noop,postMessage:K.noop,close:K.noop};var t=!!window.__pendoExtensions;if(m.get("preferBroadcastChannel")&&!t&&K.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=Ch(new BroadcastChannel("pendo"),Dn);if(t&&K.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),fh(e,window,wh)}function Ah(e,t){if("undefined"!=typeof Turbolinks){var n=Turbolinks&&Turbolinks.EVENTS&&Turbolinks.EVENTS.LOAD;if(n)return te(e,n,t)}return function(){}}var Th="eJwFwIEIAAAAwDDQd3-N1QABFQC5",_h="guides_blocked",Eh=18e5,xh=144e5,Rh="1",kh="0",Oh="Guides disabled: unreachable endpoint guide.gif";function Nh(){return h.read(_h)===Rh}function Mh(e){e.cached||(e.success?h.write(_h,kh,xh):(X.info(Oh),h.write(_h,Rh,Eh)))}function Lh(e,t){var n=h.read(_h);return n===Rh?(X.info(Oh),J.resolve({success:!1,cached:!0})):n===kh?J.resolve({success:!0,cached:!0}):(n=jr("guide.gif",t,{jzb:Th,ct:v(),v:at}),(e.usesXhr()?p.get(n):Yr(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}}))}var Fh=h.getLocal(),Ph=[],Gh="Guide was not shown because this visitor is in a control group of an active experiment for the guide",Dh=[];function Bh(){var e=m.get("guideCssAssetPath");return e||Ar("guide.css")}function Wh(){var e=m.get("previewModeAssetPath");return e||Ar("pendo.preview.min.js")}var Uh="_pendo-guide_",$h="_pendo_g_",jh=0;function zh(e){jh=e}function Zh(){return jh}var Vh=function(){return K.any(A(),function(e){return e.isShown()})},Yh=function(e,t){var n=ee("._pendo-close-guide_",e);return n.length||(n=ee(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),Qe()?9<d&&n.css({top:3}):8===d?n.css({top:9,right:2}):9===d?n.css({right:2,top:3}):9<d&&n.css({top:3}),e=ee("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},Hh=function(n){return K.reduce(A(),function(e,t){return n(t)&&e.push(t),e},[])},Kh=function(e,t,n,i,r){e=ru(T(e),t);e&&(e.seenState=n,e.lastSeenAt=i,r!==undefined)&&(e.dismissCount=r)},Xh=function(e){for(var t=new RegExp("^"+$h);e;){if(K.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function Jh(t){K.each(A(),function(e){K.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var qh=function(e){return e&&e.guideId};function Qh(e){return e&&K.isFunction(e.render)}var ef=function(e,t){var n,i;return qh(e)&&(t=e,e=null),Qh(t)?t:t?(n=T(t.guideId))&&n.findStepById(t.id):(n=K.find(A(),function(e){return e.isShown()}))?((i=e?Xh(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||Zr("findStepForGuideEvent: step with id "+i):(t=K.find(n.steps,function(e){return e.isShown()}))||Zr("findStepForGuideEvent: no step shown"),t):void 0},tf=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=mu(e);"tooltip"===e.type&&K.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):w(n,t,hf,!0)};function nf(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Vr('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var rf=function(e){var e=ee("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},of=function(e){e=K.get(e,"attributes.activation.selector",""),e=s(e);e.length<1||e[0].focus()},af=function(){var e=se.getResourceCenterBadge();e?e.element().focus():(e=se.getResourceCenter(),of(e))},sf=function(e){if(!C.designer&&e&&"building-block"===K.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=K.get(e,"launchMethod","").split("-"),r=K.contains(i,"dom"),o=K.contains(i,"badge"),i=_f(e);if(K.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&rf(t);break;case"dom":r&&of(e);break;case"launcher":af();break;default:return}}};function df(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var uf=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=ef(e,t))&&t.id?nf(t)||("dismissed"===t.seenState?X.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(X.info("onGuideDismissed called",{contexts:["guides"]}),y.beforeDismiss.trigger(t).cancel?X.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(tf(t),e=t.id,n=T(s=t.guideId),i=(i=K.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=K.get(t,"dismissCount",0)+1,Nf(s,e,Q(),i,o),o=v(),Kh(s,e,"dismissed",o,r),(a=K.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||hl({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:Q(),dismissCount:r}),df(n,i)&&Df(o,Gf.DISMISSED),t.hide(),sf(a),Vh()||(El(),xl())))):El()},cf=function(e,t,n){var i,r,o,a,s,d,u;X.info("onGuideSnoozed called",{contexts:["guides"]}),(t=ef(e,t))?"snoozed"===t.seenState?X.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):y.beforeSnooze.trigger(t).cancel?X.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,X.info("no snooze duration provided, defaulting to 1 day")),nf(t)||(tf(t),e=t.id,i=t.guideId,r=Q(),a=(o=T(i))&&o.language,s=(s=K.first(o&&o.steps))&&s.seenReason,d=v(),X.info("snoozing guide for "+n+" ms"),t.snoozeEndTime=u=d+n,Mf(i,e,r,s,a,n),Kh(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||hl({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:Q(),snoozeEndTime:u}),df(o,s)&&Df(d,Gf.SNOOZED),t.hide(),sf(o),Vh())||(El(),xl())):(X.info("missing step. can't snooze",{contexts:["guides","error"]}),El(),Zr("onGuideSnoozed: missing step"))},lf=function(){var e=dm();e&&K.each(e.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=mu(e);"tooltip"===e.type&&K.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):w(n,t,hf,!0)})},pf=function(e){var t,n,i,r=(r=e&&e.step)||ef(e);r?(i=e&&e.params,i=K.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?X.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=T(r.guideId),(n=K.find(i.steps,function(e){return e.id===t}))?(n=K.indexOf(i.steps,n),i=K.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?hf(e,r,!1):ff(e,r)):X.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):X.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):X.info("[goToStep] missing current step",{contexts:["guides","error"]})},hf=function(e,t,n){if(lf(),1===arguments.length&&qh(e)&&(s=nu(e.guideId),i=ef(),s)&&i&&K.first(s.steps).id===i.id&&K.last(s.steps).id===e.id&&(X.info("Cannot skip to last step from first step"),e=null),X.info("onGuideAdvanced called",{contexts:["guides"]}),(t=ef(e,t))===e&&(e=null),t){if(!nf(t))if("advanced"!==t.seenState||n)if(y.beforeAdvance.trigger(t).cancel)X.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=T(t.guideId),o=r&&r.language,a=r&&r.steps&&K.findIndex(r.steps,function(e){return t.id==e.id});if(e&&K.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),d=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(d=a+1);for(var u=a;u<d;++u){t=r.steps[u],Lf(r.id,t.id,Q(),t.seenReason,o,u!==a);var c=v();hl({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:Q()}),Kh(r.id,t.id,"advanced",c)}return hf(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=K.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&K.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=K.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||X.info("missing destination step id"),X.info("advancing guide"),Lf(s,i,Q(),p,o,n,h),X.info("update guide status"),r&&K.last(r.steps).id===i&&(l=K.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(Kh(s,i,"advanced",f,l),K.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||hl({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:Q(),destinationStepId:h,dismissCount:l}),df(r,p)&&Df(f,Gf.ADVANCED),X.info("stop guide"),El(),X.info("start guides"),xl()}else X.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else X.info("missing step. can't advance",{contexts:["guides","error"]}),El(),Zr("onGuideAdvanced: missing step")},ff=function(e,t){var n,i,r,o,a,s;X.info("onGuidePrevious called",{contexts:["guides"]}),(t=ef(e,t))?"advanced"===t.seenState?X.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):y.beforePrevious.trigger(t).cancel?X.info("Guide previous canceled during runtime in step: "+t.id):(o=T(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=K.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=mu(t),"tooltip"===t.type&&K.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):w(a,r,hf,!0),a=e&&K.isNumber(e.steps)?e.steps:1,r=K.first(o&&o.steps),a=0<=(i=i-a)?o.steps[i]:r,i=r&&r.seenReason,r=o&&o.language,o=a.id,(o=s&&e&&e.destinationStepId?e.destinationStepId:o)||X.info("missing destination step id"),X.info("advancing guide"),Lf(n,t.id,Q(),i,r,!1,o),X.info("update guide status"),a=(new Date).getTime(),Kh(t.guideId,t.id,"advanced",a),(s=K.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||hl({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:Q(),destinationStepId:o}),El(),xl())):(El(),Zr("onGuidePrevious: missing step"))},gf=function(e){var t;ee("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",Sr()+"/img/tiny-logo.png"),t=ee(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:C.TOOLTIP_ARROW_SIZE}).append(t),Hd.push(t[0]),t.appendTo(e))};function mf(e){return e&&e.attributes&&e.attributes.stayHidden}function vf(e){return s(e.triggerElementPathRule)[0]}var yf=function(e,t,n){var i;return Hl()&&(i=e.id,e=e.guideId,y.stepEligibility.trigger({stepId:i,guideId:e,eligible:t,reason:n})),t},bf=function(e){var t,n,i=K.partial(yf,e);return mf(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!b(vf(e))?i(!1,"trigger_element"):(t=mu(e),(n=e.targetElement)&&e.elementContainsRulesList&&!wf(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||wc.isBuildingBlockGuideRelativeToElement(e),e=b(t),n?e?i(e,"target_element_tooltip"):i(Go(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function If(e){var t=(ee(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function wf(e,t){for(var n=If(e),i=0;i<t.length;i++)if(!Cf(n,t[i]))return!1;return!0}function Cf(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=Ut(e);if(null==r)return!1;e=parseFloat(r),i=parseFloat(i);if(isNaN(e)||isNaN(i))return!1}else"string"===t&&(e=e.toLowerCase(),i=i.toLowerCase());return"equal"===n?e===i:"notEqual"===n?e!==i:"contains"===n?-1<String(e).indexOf(i):"notContains"===n?-1===String(e).indexOf(i):"greaterThan"===n?i<e:"lessThan"===n&&e<i}var Sf=function(e){return $h+e.id},Af=function(e){var t=e.element,n=K.first(ee("#"+Sf(e)));t&&n?b(t)||ee.hasClass(n,"mouseover")?Dt(function(){Af(e)},Al):e.hide&&(e.hide(),Vh())||(El(),xl()):t||!n||e.hide&&(e.hide(),Vh())||(El(),xl())},Tf=function(){return!1},_f=K.partial(K.get,K,"attributes.resourceCenter"),Ef=function(t){var e;Vh()&&(e=ef(),tf(e),_f(t)?(e=Hh(_f),(e=K.filter(e,function(e){return e.id!==t.id})).length&&q.dispatch("frames/hideGuides",K.pluck(e,"id"))):(Jh(),q.dispatch("frames/hideGuides")))},xf=function(e,t){return!(!e||!e.guideId||!(e=T(e.guideId)))&&(Ef(e),e.launch(t),e.isShown())},Rf=function(e,t,n,i,r,o){e=Uf({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&K.extend(e.props,{step_poll_types:o}),zf(e),y.guideNotSeen.trigger(e)};function kf(e){var t="auto";return e&&(e=(e.launchMethod||t).split("-"),!K.contains(e,t))&&e.length?K.first(e):t}var Of=function(e,t,n,i,r,o){i||(X.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),i=kf(T(e)));n=Uf({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),K.extend(n.props,o),zf(n),r=v();hl({guideId:e,guideStepId:t,time:r,state:"active",seenReason:i,visitorId:Q()}),Kh(e,t,"active",r),y.guideSeen.trigger(n)};function Nf(e,t,n,i,r){e=Uf({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});zf(e),y.guideDismissed.trigger(e)}function Mf(e,t,n,i,r,o){e=Uf({type:"guideSnoozed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r,snooze_duration:o});zf(e),y.guideSnoozed.trigger(e)}function Lf(e,t,n,i,r,o,a){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),t=Uf(e);zf(t,null,o),y.guideAdvanced.trigger(t)}function Ff(e,t,n,i,r,o){e=Uf({type:"guideTimeout",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r,guideSeenTimeoutLength:o});zf(e),y.guideTimeout.trigger(e)}function Pf(e,t,n,i,r){e=Uf({type:"guideSnoozeCanceled",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});zf(e,null,!0),y.guideSnoozeCancelled.trigger(e)}var Gf={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Df(e,t){Bf(e,t);var n={};n[t]=e,q.dispatch("frames/changeThrottlingState",n)}function Bf(e,t){K.contains(K.values(Gf),t)&&(K.isFunction(e.getTime)&&(e=e.getTime()),C[t]=e,h.write(t,e,ll),q.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Wf(e){var t=m.get("crossAppGuideStorageSuffix");return h.read(e,!1,t)}function Uf(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,visitorId:i,language:o}),r&&(a.reason=r),K.isString(a.language)||delete a.language,K.extend({guide_id:a.guideId,guide_step_id:a.stepId},K.omit(a,"type","guideId","stepId","visitorId"))),t=Dn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:fi(),browser_time:(new Date).getTime(),url:f.externalizeURL(),props:e});return y.eventCaptured.trigger(t),t}var $f=null,jf=function(e){window.clearTimeout($f),$f=Dt(Og,e)},zf=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-Zh(),Wg(),Mg.push(e),jf(t)},Zf=function(e,t){return"dismissed"===e.state?null:T(e.guideId).nextStep(e,t||Vf())},Vf=function(){return C.normalizedUrl||Yf(f.externalizeURL())},Yf=function(e){try{var t=new Si(e),n=K.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return X.error("Invalid URL provided to normalize"),e}},Hf=function(e,t){return!S(e)||new RegExp(e).test(t)},Kf=function(e,t){e=iu(e);return!!e&&(!(t=xf(K.first(e.steps),t||"api"))&&e.control&&X.info(Gh),t)},Xf=function(e,t){e=T(e);return!!e&&(!(t=xf(K.first(e.steps),t||"api"))&&e.control&&X.info(Gh),t)};function Jf(e,t){return t=parseInt(t,10),isNaN(t)||!K.isNumber(t)||!(K.isNumber(e)&&e<t)&&K.isNumber(e)?e:t}var qf=function(){El(),_l(),se.removeNotificationBubble(),cp(),Fa()},Qf;function eg(){El(),Jr(),C.segmentFlags=[],C.doNotProcess=!0,X.info("not tracking visitor due to 451 response")}function tg(e){var t;Qf&&(451===e.statusCode&&(eg(),Qf.deferred.reject(e)),K.isString(e.id)&&e.id!==Qf.id||(t=K.indexBy(C.guides,"id"),K.extend(C,e),C.guides=K.map(C.guides,function(e){return 1==K.keys(e).length&&e.id?t[e.id]:e}),Qf.deferred&&Qf.deferred.resolve(),Qf=null))}function ng(){return rm.pending||!(!Qf||!C.id||C.id===Qf.id)}var ig=function(e,t){var n=Tr(),i=K.uniqueId(),r=J.defer(),o=(Qf={id:i,deferred:r},il()||((o=rl())?(X.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):X.info("no metadata to send",{contexts:["guides","metadata"]})),Ct(t)),i={id:i,jzb:o,v:at,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=xt(t.accountId)),Hl()&&(i.debug=!0),jr(rg.endpoint(),e,i)),t=za.get();return o=n.length>fs||!K.isEmpty(t)?(delete i.jzb,n=jr("guide.json",e,i),i=K.extend({events:o},t),rg.post(n,i,K.noop)):rg.load(n,K.noop),J.all([o["catch"](function(e){return 451===e.status&&eg(),J.reject(e)}),r.promise,Lh(rg,e)]).then(function(e){e=e[2];if(Mh(e),!e.success)return J.reject()})},rg=Eu;function og(e){rg=e}function ag(){rg=Eu}function sg(e){e=K.find(e.steps,function(e){return e.pageId&&!e.regexUrlRule});return!e||(X.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function dg(t){return K.every(Dh,function(e){try{return e(t)}catch(err){return console.debug("Error in guide processor",e,t.id),!1}})}function ug(e){K.sortBy(e,cg)}function cg(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&K.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}function lg(e){return K.chain(e).map(Nu).filter(sg).filter(dg).sortBy(cg).value()}function pg(e){var n,t=K.find(e,function(e){return K.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel});return t?(n=K.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=K.findWhere(e,{id:t.id});e&&!K.get(e,"attributes.doNotResume")&&K.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}}var hg=function(){return!m.get("disableGlobalCSS")},fg;function gg(){rm.reset(),yg.reqId=null}function mg(e,t){var n=m.get("dropAnonymous");if(Xn(e)&&n)X.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),K.isFunction(t)&&t("error: guides are blocked");else if(Nh())X.info("guide events are blocked, load guides cancelled"),K.isFunction(t)&&t("error: guides are blocked");else{if(Ea(xa()))return 1;X.info("bad url: probably local file system",{contexts:["guides","error"]}),K.isFunction(t)&&t("error: invalid url")}}function vg(e,t,n){void 0===n&&(n=v());var i=[];return m.get("cacheGuides")&&!(i=n-(t.lastUncached||0)<m.get("cacheGuidesTimeout")?K.map(e.guides,function(e){return K.pick(e,"id","lastUpdatedAt")}):i).length&&(t.lastUncached=n),i}var yg=function(e,n,i,r){var o,t,a,s,d,u=J.defer(),c=!1;return e=e||C.apiKey,mg(n=n||Q(),r)?(X.info("loading guides for "+i+"...",{context:["guides"]}),i=f.externalizeURL(i),d=yg.lastVisitorId!==n,o=d?K.noop:pg(A()),t=(yg.lastVisitorId=n,_l(),q.commit("guideState/setLastGuideRequestAt",v()),{visitorId:n,accountId:fi(),url:i,oldVisitorId:ci()}),a=vg(C,yg),s=(a.length&&!d&&(t.cachedGuides=a),K.uniqueId()),d=(yg.reqId=s,ig(e,t).then(function(){var e,t;c||C.designer||(yg.reqId!==s?u.resolve():(y.deliverablesLoaded.trigger(),X.info("successfully loaded guides for "+i,{contexts:["guides"]}),C.designerEnabled&&"true"!==Fh.getItem("pendo-designer-mode")&&ih.loadPluginJs(),qf(),(e=C.lastGuideStepSeen)?(q.dispatch("guideState/receiveLastGuideStepSeen",e),e.visitorId=n,q.dispatch("guideState/updateLastGuideStepSeen",e),q.commit("guideState/setLastGuideRequestAt",v()),au(),eu(e=lg(C.guides)),t=ou(),q.dispatch("guideState/load",Wf(pl)),q.dispatch("guideState/apply"),C.latestDismissedAutoAt=Jf(C.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),q.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:C.latestDismissedAutoAt}),C.finalAdvancedAutoAt=Jf(C.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),q.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:C.finalAdvancedAutoAt}),C.latestSnoozedAutoAt=Jf(C.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),q.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:C.latestSnoozedAutoAt}),q.dispatch("healthCheck/init",e),q.dispatch("frames/changeGuideList",t),C.eventProperties=Yg(C.features),t.length?J.all([kg(),sh(Fu(C.globalJsUrl)),Pg(e),dh.initializeWatermark(e),Tg(5e3)].concat(wg(e))).then(function(){yg.reqId===s&&(q.getters["frames/isLeader"]()&&o(A()),y.guidesLoaded.trigger(),xl(),clearTimeout(fg)),K.isFunction(r)&&r(),u.resolve()},function(e){X.error("Post loadGuide request failed: ",e),y.guidesFailed.trigger(),u.reject()}):(y.guidesLoaded.trigger(),u.resolve())):X.info("lastGuideStepSeen is not set, shutting down guides")))})["catch"](function(e){y.guidesFailed.trigger(),u.reject(e)}),m.get("guideTimeout")||m.get("guides.timeout")),K.isNumber(d)&&(clearTimeout(fg),fg=Dt(function(){bg(u),c=!0},d))):u.reject(),u.promise};function bg(e){qf(),e.reject()}var Ig=[];function wg(t){return K.map(Ig,function(e){return e(t)})}function Cg(e){Ig.push(e)}function Sg(e){e=K.indexOf(Ig,e);0<=e&&Ig.splice(e,1)}function Ag(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?J.resolve():(n=J.defer(),ee(i).remove(),C.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var Tg=K.memoize(_g);function _g(t,n,e){if(!hg()||!Eg(A()))return J.resolve();n=n||v,e=e||"_pendo-hidden_";var i=ee(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(ee.getBody()),r=n(),o=J.defer();return function s(e){Dt(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=ne(e);if(e)return"none"===e.display}}function Eg(e,t){return t&&t.designer||K.any(e,function(e){return K.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}var xg="_pendo-default-css_",Rg="_pendo-css_";function kg(){var e=[];if(!hg())return J.resolve();Eg(A(),C)&&e.push(Ag(xg,Bh()));var t=((C.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(Ag(Rg,Fu(t))):ee("#"+Rg).remove(),J.all(e)}var Og=function(e){Mg&&Mg.flush(e)},Ng=function(){return Ph},Mg,Lg;function Fg(e){var t=ns(vs,ds("visitor_id"),ds("props.guide_id"),ds("props.source"),ms,ys(),Cs(e),Ss,As),n=ns(rs,as(e.cache),K.noop);return new $s(K.extend({processSilos:t,packageSilos:n},e))}var Pg=function(e){return se.initializeResourceCenter(e)},E={postMessage:K.noop,close:K.noop},Gg=E,Dg=function(){var e=K.filter(A(),function(e){return K.isFunction(e.outsideTimebox)&&e.outsideTimebox()});tu.addGuide(e)};function Bg(){return Dn.tabIdChanged(function(){var e=Dn.getTabId();q.commit("frames/setTabId",e),q.dispatch("frames/join")})}function Wg(){return Mg=Mg||Fg({cache:Ph,apiKey:function(){return C.apiKey},beacon:"guide",allowPost:!0,preferFetch:l.safari}),Lg=Lg||Fg({cache:[],apiKey:function(){return C.apiKey},beacon:"poll",allowPost:!0,preferFetch:l.safari}),function(){Mg.clear(),Lg.clear()}}function Ug(e){var e=e.blockedURI;e&&-1!==e.indexOf("/data/guide.json")&&m.get("cacheGuides")&&((e=m.getLocalConfig()).cacheGuides=!1,m.setLocalConfig(e),Wi(window,"securitypolicyviolation",Ug),om())}var $g=function(){var e,t=[],n=(t.push(Wg()),Xl.run(),t.push(Xl.stop),y.appHidden.on(function(){Og({hidden:!0})}),y.appUnloaded.on(function(){Og({unload:!0}),q.dispatch("frames/leave")}),y.metadata.on(function(e){e.data[0].storeChanged&&!il()&&rm()}),y.identify.on(function(){rm()}),y.urlChanged.on(function(){rm(f.get())}),y.guideUpdateComplete.on(function(){Dg(),Wu.processPrefetch(),ql(A(),Kd)}),y.guidesLoaded.on(function(){se.fetchAnnouncementGuidesContent(A(),q)}),y.guideListChanged.on(function(e){gp(e.data[0].guideIds)}),t.push(Ah(document,function(){f.get()===im.lastUrl&&om()})),m.get("guides.tooltip.arrowSize"));return K.isNumber(n)&&(C.TOOLTIP_ARROW_SIZE=n),Gg=Sh(q),E=ch(Gg,q),t.push(function(){return E.close()}),t.push(Bg()),q.dispatch("frames/init"),q.dispatch("frames/join"),t.push(fl()),t.push(function(){qg.cancel(),fp.cancel()}),t.push(te(window,"resize",qg)),t.push(te(window,"scroll",fp,!0)),t.push(te(window,"gestureend",Qg,!0)),t.push(te(window,"securitypolicyviolation",Ug)),t.push(em()),m.get("preferMutationObserver")&&l.MutationObserver&&(e=K.debounce(function(e){q.dispatch("guideUpdate/documentChanged")},50),t.push(function(){e.cancel()}),t.push(I(window,"animationend",e)),t.push(I(window,"transitionend",e)),t.push(I(window,"mouseover",e)),q.commit("guideUpdate/setUseObserver"),m.get("observeShadowRoots")&&q.commit("guideUpdate/setObserveShadowRoots"),t.push(function(){return q.dispatch("guideUpdate/stopObserver")})),h.registry.addLocal(Gf.ADVANCED),h.registry.addLocal(Gf.DISMISSED),h.registry.addLocal(Gf.SNOOZED),h.registry.addLocal(_h),Uu.initialize(),function(){im.reset(),qf(),gg(),K.each(t,function(e){e()}),ee("#"+xg).remove(),ee("#"+Rg).remove(),Uu.teardown()}},jg=function(){return m.get("guides.disabled",!1)||m.get("disableGuides",!1)||!$r},zg=function(){return m.get("guides.delay",!1)||m.get("delayGuides",!1)},Zg=function(e){var t=m.getLocalConfig();t.disableGuides=e,m.setLocalConfig(t)},Vg=function(e){var t=m.getLocalConfig();t.delayGuides=e,m.setLocalConfig(t)},Yg=wi(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=K.map(e[n].eventProperties,function(e){return e.selector?e:JSON&&JSON.parse&&e.rule?JSON.parse(e.rule):void 0});t.push({featureRules:i,eventPropertyRules:r,featureId:e[n].featureId})}return t}}),Hg=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Kg=function(){X.debug("adjustActiveGuideOnResize firing");var e=dm();e&&e.step&&!C.ignoreResize&&e.step.redraw()},Xg=function(){var e;-1<K.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Hg())||e.id.indexOf("pendo-video-")<0)&&Dt(function(){Kg()},150):Kg()},Jg=function(){Xg(),fp()},qg=K.debounce(Jg,50),Qg=function(e){1!==e.scale&&qg()},em=function(){for(var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],t=[],n=0;n<e.length;n++)t.push(te(document,e[n],tm));return function(){K.each(t,function(e){e()})}},tm=function(e){var t=K.get(document,"activeElement.id",""),e=K.get(e,"target.id","");K.filter([t,e],function(e){return-1<e.indexOf("pendo-video-")}).length&&(Hg()?C.ignoreResize=!0:Dt(function(){C.ignoreResize=!1},1e3))};function nm(e,t,n,i){return!(!e||!C.apiKey||jg()&&"true"!==Fh.getItem("pendo-designer-mode")||e===im.lastUrl&&t===im.lastVisitorId&&n===im.lastAccountId&&i===im.lastMetadataHash)}function im(e){var t=Q(),n=fi();nm(e=e||f.get(),t,n,Lc)&&(im.lastUrl=e,im.lastVisitorId=t,im.lastAccountId=n,im.lastMetadataHash=Lc,yg(C.apiKey,t,e)["catch"](K.noop))}im.reset=function(){K.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){im[e]=null})};var rm=function(e){$r&&(rm.reset(),rm.pending=Dt(function(){delete rm.pending,im(e)},0))};function om(){im.lastUrl=null,rm()}function am(e){return Dh.push(e),K.partial(sm,e)}function sm(e){e=Dh.indexOf(e);-1!==e&&Dh.splice(e,1)}function dm(){var e,n,t=K.find(A(),function(e){return e.isShown()});return!t||K.get(t,"attributes.resourceCenter.isModule")&&!(t=se.getResourceCenter())?null:(e=K.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:K.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function um(e){return h.registry.addLocal(vp),h.registry.addLocal(yp),K.find([K.partial(nh.launchOnToken,window.location),K.partial(bp,window),K.partial(nh.localStorageNavigation,e)],function(e){return e()}),e.enableDesignerKeyboardShortcut||!m.get("disableDesignerKeyboardShortcut")?ih.listen():function(){}}function cm(e){var t,n=K.get(e,"value","");-1!==K.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=ee("._pendo-nps-open-text-poll-question"),t=ee("._pendo-nps-open-text-poll-input")[0],K.forEach(e,function(e){"none"!==K.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}function lm(e){if(e.confirmationElementPathRule)return s(e.confirmationElementPathRule)[0]}rm.reset=function(){rm.pending&&clearTimeout(rm.pending)};var pm=function(){var n=this,o=(this.eventable=Bn.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";X.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!C.designer){var t=e.step.guideElement;switch(e.action){case o.advanceGuide:hf(e,e.step);break;case o.previousStep:ff(e,e.step);break;case o.goToStep:pf(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;cf(e,e.step,n);break;case o.dismissGuide:se.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return uf();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return se.dismissResourceCenter(t);uf(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&cm(e.srcElement),Tc((i=$u(e.step.domJson)).props.id,t),_c(i.props.id,t),ae.flexAllThings(i.props.id,t),Ac(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Tc((i=$u(e.step.domJson)).props.id,t),_c(i.props.id,t),ae.flexAllThings(i.props.id,t),Ac(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=K.find(e.params,function(e){return"reason"===e.name});Xf(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);se.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=se.findResourceCenterHomeView(qd());if(!n)return;se.attemptToPreserveIntegrationIframes(e),se.replaceResourceCenterContent(n.id,e.params);break;case o.openLink:this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),pf(e);break;case o.confirmation:this.confirmGuide(e)}var r=pm.prototype.registeredActions,r=r&&r[e.action];"function"==typeof r&&r(e)}},this.submitPoll=function(e){var t=e&&e.action,i=e.step,n=[];e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")&&(r=e.srcElement.getAttribute("data-pendo-poll-id"),e=e.srcElement.value,n.push({pollId:r,value:parseInt(e,10)}));var r=ee("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(K.map(r,function(e){var t,n=ee("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=K.find(i.guide.polls,function(e){return e.id===t}),n=n[0].value,e&&e.numericResponses&&(n=parseInt(n,10)),{pollId:t,value:n}})),i.response&&n?i.response(K.compact(n)):X.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=ee(K.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);K.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=ee(K.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=K.find(e.params,function(e){return"transition"===e.name}).value,e=K.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=K.find(e.params,function(e){return"url"===e.name}).value,e=K.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&ma()&&(e="_top");window.open(t,e)},this.goToStep=pf,this.searchGuides=function(e){var t="",n=e.srcElement.value,e=ee("#pendo-resource-center-container"),i=e.find('[id^="pendo-list-item-"]'),r=e.find('[id^="pendo-results-count-container"]'),e=e.find('[id^="pendo-no-matches-container"]'),o=[],a=!0,s=0;if(i)for(var d in i){var u;d&&i[d]&&(u=!1,ee(i[d]).text()&&(-1!==ee(i[d]).text().toLowerCase().indexOf(n.toLowerCase())?(ee(i[d]).css({display:"list-item"}),u=!(a=!1)):ee(i[d]).css({display:"none"})),K.isFunction(i[d].getAttribute)&&(t=i[d].getAttribute("data-_pendo-text-list-item-1").split(","),K.forEach(t,function(e){K.contains(o,e)||o.push(e)})),this.searchAllTerms(o,t,n)&&i[d]&&(ee(i[d]).css({display:"list-item"}),u=!(a=!1)),t="",u)&&s++}a?ee(e[0]).css({display:"block"}):ee(e[0]).css({display:"none"});{var c;r&&r.length&&(r[0].innerHTML="",n)&&(c="",0===s?(c=e[0].innerText,this.debounceAnnounceResults(r[0],c)):(e=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(c=r[0].getAttribute(e))&&(c=c.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],c))))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return K.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=lm(e);e.advance(),t?t.click():X.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=a,this.launchGuide=function(e){K.get(e,"params.2.value.doNotDismiss")||uf(e,e.step);var t=e&&e.params&&e.params[0]&&e.params[0].value,n=e&&e.params&&e.params[1]&&e.params[1].value;{var i,r;t&&n?(n=T(e.params[0].value),i=e.params[1].value,r=(r=K.find(n.steps,function(e){return e.id===i}))||n.steps[0],Ef(n),r.show("api")):t&&Xf(e.params[0].value)}},this.debounceAnnounceResults=K.debounce(function(e,t){e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation"});function a(e){return e.params.find(function(e){return"transitionDirection"===e.name})?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},hm=(pm.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&(pm.prototype.registeredActions||(pm.prototype.registeredActions={}),pm.prototype.registeredActions[e]=t)},pm.deregisterAction=function(e){e&&"string"==typeof e&&(pm.prototype.registeredActions||(pm.prototype.registeredActions={}),delete pm.prototype.registeredActions[e])},function(){var s="guideActivity",d=function(){return(new Date).getTime()-Zh()},r=K.isObject,u=K.findWhere,c=[];return{type:s,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,r(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(K.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(r(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return l(e)}(t)||function(e){return h(e)}(t)||function(e){return p(e)}(t))&&(e=function(e){var t=function(e){for(var t=0,n=c;t<n.length;t++){var i=(0,n[t])(e);if(i)return i}return dm()}(e);if(t&&(!function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)||(t=function(e){var t=ee("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=K.find(qd(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))&&t.step&&t.step.domJson){var n,i,r,e=h(e)||l(e)||p(e)||{type:e.tag,id:e.id},o=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(o)return n=e.id,o=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:lr(e.props.href),target:e.props.target}];if(e.actions!==undefined)return K.map(e.actions,function(e){switch(e.action){case"automation":var t=u(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=u(e.parameters,{name:"url"}),n=u(e.parameters,{name:"target"});return{action:e.action,url:lr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=u(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=u(e.parameters,{name:"snooze_duration"}),t=u(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}});if("pendo_task_list_item"===t.templateName&&K.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(o,e),r=o[0],i=(r=void 0===r?{}:r).action,r=r.guideId,"showGuide"===i&&r&&(n+="-"+r),Uf({type:s,visitorId:Q(),ui_element_id:n,ui_element_type:e.type,ui_element_actions:o,guideId:t.guide.id,stepId:t.step.id,duration:d(),language:t.guide.language})}}(n))&&zf(e)},registerGuideResolver:function(e){c.push(e)},removeGuideResolver:function(e){e=c.indexOf(e);-1!==e&&c.splice(e,1)}};function l(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:l(e.parentElem)}function p(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return i(e)||!r(e.parentElem)?null:p(e.parentElem)}function h(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:h(e.parentElem)}function i(e){return K.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),fm=[],gm=!1,mm={agent:{getJwtInfoCopy:za.get,treatAsAdoptPartner:Tr},agentStorage:h,analytics:{ptm:function(){return Zs}},attachEvent:I,ConfigReader:m,Events:y,EventTracer:Dn,EventRouter:pm,Extensions:{API:{addTopic:dl}},frames:{getChannel:function(){return Gg}},getAssetUrl:Ar,getEventable:function(){return Bn.call({})},GlobalRuntime:{addGlobalScript:Uu.addGlobalScript,removeGlobalScript:Uu.removeGlobalScript},GuideActivity:hm,GuideLoop:{addUpdatePhase:jl,removeUpdatePhase:zl},guides:{addProcessor:am,removeProcessor:sm,registerDisplayableGuides:su,removeDisplayableGuides:du},hosts:{SERVER:nt},NodeSerializer:yd,q:J,sessionStorage:h.getSession(),sizeElements:Cc,store:q,Tombstone:tu,transmit:{buildBaseDataUrl:jr,fetchKeepalive:Hr,sendBeacon:Kr},log:X,util:{trim:gt,base64EncodeString:xt,parseUrl:Uo},constants:{URL_MAX_LENGTH:fs}};function vm(t){K.find(fm,function(e){return e.name===t.name})?X.warn("Plugin with name ".concat(t.name," already exists. Skipping registration.")):(fm.push(t),gm&&t.initialize(C,mm))}function ym(){return K.each(fm,function(e){e.initialize(C,mm)}),gm=!0,bm}function bm(){K.each(fm,function(e){K.isFunction(e.teardown)&&e.teardown(C,mm)}),gm=!1}function Im(t){return K.map(fm,function(e){return e.validate&&!t&&e.validate(C,mm),e.name})}function wm(e){return K.extend(e.uri,K.pick(e,"name")),vm(e.uri),e}function Cm(e){return!!e.uri.initialize&&!!e.uri.teardown}ul.registerExtensionsByUse("plugin",wm,Cm);var Sm=!1,Am=function(e){var t=e.old_visitor_id,e=e.visitor_id;return Xn(t)?Kn(e)?Xn(e)?(X.info("Visitor is anonymous: "+e),!1):ei(e)?(X.info("Visitor id is the default: "+e),!1):(X.info("Re-mapping visitor identity from "+t+" to "+e),!0):(X.info("Not valid visitor id: "+e),!1):(X.info("Visitor is already identified: "+t),!1)},Tm=function(e){var t=e.old_account_id,e=e.account_id;return Kn(e)?t!==e&&(X.info("Re-mapping account identity from "+t+" to "+e),!0):(X.info("Not valid account id: "+e),!1)};function _m(){Sm||(y.identify.on(function(e){e=e.data[0];(Am(e)||Tm(e))&&(qa("identify",e),Fa())}),y.metadata.on(function(e){var t;il()||(t=(e=e.data[0]).options,e.hashChanged&&(qa("meta",t),Fa()))}),Sm=!0)}var Em=function(){var r="guideActivity",o=function(){return(new Date).getTime()-Zh()},a=K.isObject;return{type:r,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,a(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(a(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return u(e)}(t)||function(e){return s(e)}(t)||function(e){return d(e)}(t))&&(e=function(e){var t=se.getResourceCenter();if(t){var n=t.activeModule,i=u(e);if(i?(i={elementId:i.id},/^pendo-close-guide/.test(i.id)?i.actions=[{action:"dismissGuide"}]:/^pendo-left-caret/.test(i.id)&&(i.actions=[{action:"showGuide",guideId:t.id}])):i=s(e)||d(e),i)return i.guideId||(i.guideId=(n||t).id),i.stepId||(i.stepId=(n||t).steps[0].id),i.actions||(i.actions=[{action:"showGuide",guideId:i.elementId}]),i.language||(i.language=(n||t).language),Uf({type:r,visitorId:Q(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:o(),language:i.language})}}(n))&&zf(e)}};function s(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:ee("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&a(e.parentElem)?s(e.parentElem):null}function d(e){var t=e.cls.split(" ");if(-1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide"))return"pendo-resource-center-container"!==e.id&&a(e.parentElem)?d(e.parentElem):null;t=se.getResourceCenter();if(t){e=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}}return null}function u(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-left-caret/.test(e.id))?{type:e.tag,id:e.id}:"pendo-guide-container"!==e.id&&a(e.parentElem)?u(e.parentElem):null}}(),xm=function(e){return(e=e||C).doesExist(e.apiKey)};function Rm(e){e=e.events;K.each(void 0===e?[]:e,function(e,t){Tu[t]&&Tu[t](e)})}var km=0,Om="initializeImmediately",Nm=[],Mm=wi(function(e){if("complete"===document.readyState||K.get(e,Om)||m.get(Om))if(X.info("pendo.initialize called with "+JSON.stringify(e)),C.apiKey)1==km++&&X.info(["pendo.initialize only needs to be called once",Mt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},K.isEmpty(za.get())&&(t=za.getJwtOptions(e,"initialize"))&&(za.set(K.pick(e,"jwt","signingKeyName")),K.extend(e,t,{forceAnonymous:!0})),K.isString(e))return p.get(e).then(function(e){return pe(i=e.data),Mm()});q.dispatch("location/init",e.location||{}),m.setLocalConfig(e),wr(),Cr(C);var t=m.get("cookieDomain");t&&wn(t,location.host),eh.discoverKeys(e),eh.getApiKey()?(q.commit("metadata/setMetadata",{selfHosted:tl()}),e.logStackTraces&&(C.logStackTraces=e.logStackTraces),m.get("preferBroadcastChannel")&&wh.secure(!0),Nm.push(Hs()),$r&&(h.registry.addLocal(zn),h.registry.addLocal(Zn),h.registry.addLocal(Vn),h.registry.addLocal(Yc),h.registry.addLocal(Vl),C.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,Rm(e),Nm.push($g()),_m(),Nm.push(Bd()),Nm.push(ym()),Nm.push(um(e)),y.appUsage.on(hm.handler),y.appUsage.on(Em.handler),Nm.push(Pa(Sa))),Jn()||qn(),C.updateOptions(e),e.visitorId&&e.visitorId!=Qn&&C.identify(e.visitorId),Nm.push(f.watch(function(){C.pageLoad()})),$r&&y.ready.trigger(),Ks(f.get()),km++,Lm(),Gm()):X.debug("API key is not set, Pendo will not initialize.")}else V(C,"initialize",arguments)});function Lm(){window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},wh.targetOrigin())}function Fm(e){return!K.isArray(e)||K.isEmpty(e)}function Pm(e){if(!Fm(e))return K.find(e,function(e){return"initialize"===e[0]})}function Gm(i){var e;return!Fm((i=i||C)._q)&&(e=!!Pm(i._q),xm(i)||e)?(e=i._q.splice(0,i._q.length),K.reduce(e,function(e,t){var n;return K.isArray(t)&&(n=i[t.shift()],K.isFunction(n))?e.then(function(){return n.apply(i,t)}):e},J.resolve()).then(Gm)):J.resolve()}function Dm(){xm()?X.info("already running"):(window.pendo_options&&Mm(window.pendo_options),Gm())}function Bm(e,t,n){m.get("disableAutoInitialize")||(e=(e=Pm(e))&&1<e.length?e[1]:{},K.get(e,Om)||m.get(Om)?t():Nm.push(n(t)))}function Wm(){y.appHidden.trigger(),y.appUnloaded.trigger(),K.each(Nm,function(e){e()}),Ks.reset(),Nm.length=0,wh.close(),Bn.clear(y),Bn.clear(Tu),delete C.apiKey,km=0}var Um=function(e){var t,n=dm();n&&(t=n.guide.steps[n.stepIndex+1],Dt(function(){var e=s(t.elementPathRule);0!==e.length&&K.some(e,b)?hf(n.step):hf(t)},e=e||0))},$m=function(e,t){var n=dm(),i=ee(t=t||n.step.elementPathRule)[0],r=function(){hf(),w(i,e,r,!0)};I(i,e,r,!0)},jm=function(){ee("._pendo-guide_").css("display:none;");var t=Vf(),e=dm().guide.steps,n=K.filter(K.rest(e),function(e){return!!e.pageId}),n=K.indexOf(e,K.find(n,function(e){return Hf(e.regexUrlRule,t)}));X.info("startingPoint is "+n),-1==n?ee("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],X.info("found starting step to be "+n.id),hf(n))},zm=function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=K.findWhere(i,{seenState:"active"}));else{var i=dm();if(!i)return;t=i.guide,n=i.step}return(e=K.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})},Zm={getActiveGuide:dm,smartNextStep:Um,smartFirstStep:jm,advanceOn:$m,renderStepPosition:zm},x=function(){return{renderGuideFromJSON:function(e,n,t,i){var r=n.getGuide(),o=$u(e),a=K.get(r,"attributes.resourceCenter");a&&(se.revertRtlChanges(r,e.props),e=se.updatePseudoStyleSelectors(e));var s=a&&se.isFullyCustom(r),d="AnnouncementsModule"===K.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=mu(n),x.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),u="data-vertical-alignment",c="Relative to Element"===t.attr(u);c&&!a&&ee(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});u=dh.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(u)},x.buildNodeFromJSON);u&&t.append(u);var u=n&&n.attributes&&n.attributes.imgCount,l=oe(),p=K.get(r,"attributes.embedConfig",null);{var h,f;p?(f="pendo-guide-container",g=o[0],h=g.querySelector("#".concat(f)),h&&(h.id="".concat(f,"-").concat(n.id),g.id="".concat("pendo-base","-").concat(n.id)),h=p.selector,f=p.method,l=ee(h)[0],"replace"===f&&l?(l.innerHTML="",o.appendTo(l)):"prepend"===f?o.prependTo(l):o.appendTo(l)):o.appendTo(l)}(function(e,t,n){t=ee.getRootNode(t),e=ee.getRootNode(e);e!==t&&(n=ee(".pendo-style-".concat(n),e)).length&&(n.remove(),n.appendTo(t))})(oe(),o[0],n.id),Cc(o),s||d||(x.recalculateGuideWidth(n.containerId,n.guideElement),x.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||x.flexAllThings(n.containerId,n.guideElement);s||x.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":wc.attachBBAdvanceActions(n);c&&!u&&wc.positionStepForTooltip(n,e,t[0]);{var g;a&&(se.showHomeViewOrEmptyState(r),g=[],d?g=[r.attributes.resourceCenter]:x.flexAllThings(n.containerId,n.guideElement),g.length)&&K.forEach(g,function(e){e=K.get(e,"children",[]);K.forEach(e,function(e){var t;e&&(t=e.steps[0],K.isUndefined(t.attributes.imgCount))&&(t=K.get(t,"id",n.id),e=K.get(e,"id",r.id),t=ee("#pendo-g-"+t).length?t:e,x.flexAllThings("pendo-g-"+t,n.guideElement))})})}{var m;u?(m=J.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=J.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),C.designer||(K.get(n,"attributes.isAutoFocus")&&(x.autofocusStep(n,t),x.trapFocusStep(n,t),n.hiddenElements=x.addAriaHiddenOutsideGuide(o[0])),a&&(x.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(p=r.activeModule.steps[0],x.autofocusStep(p,p.guideElement)):x.autofocusStep(n,t)));return ee(".pendo-video-wrapper",o).each(function(t){ee("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),x.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,t){var n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",i={maxRetries:100,delay:50,exponentialBackoff:!1};Wt(function(){var e=ee(t).find("#pendo-guide-container");return(e=e[0]||e)&&b(e)&&ko(e)&&Oo(e)?e:null},i,function(t){Wt(function(){return!!(e=t)&&(e.focus(),e===ee.getRootNode(e).activeElement);var e},i,function(){},function(){X.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){X.warn(n+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,d,u,n,c=e[0];c&&(t=["a[href]:not([disabled])","button:not([disabled])","textarea:not([disabled])",'input[type="text"]:not([disabled])','input[type="radio"]:not([disabled])','input[type="checkbox"]:not([disabled])',"select:not([disabled])","[tabindex]","iframe"].join(", "),(o=K.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=f(e),d=t[0],u=t[1],n=function(e){var t,n,i=l(e),r=e.shiftKey;i&&(t=(i=ee.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===d||t||n)&&(h(o,s).focus(),e.preventDefault()):(t||i===u||n)&&(h(o,a).focus(),e.preventDefault()))},I(document,"keyup",n),I(document,"keydown",n),y.one("unmounted",function(){w(document,"keyup",n),w(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){var e,t,s,d,n,i,r,u=se.getResourceCenter(),c=se.getResourceCenterContainer();"dom"===u.launchMethod&&c&&(e=ee(u.attributes.activation.selector)[0])&&(t=f(ee(c)),s=t[0],d=t[1],n=function(e){var t,n,i,r=l(e),o=e.shiftKey;function a(t){return Object.values(i).findIndex(function(e){return e===t})}r&&(r=ee.getRootNode(c).activeElement,t=ee(u.attributes.activation.selector)[0])&&(n=r===s,r=r===d,i=ee(Lo),o?n?(t.focus(),e.preventDefault()):r&&p(0===(o=a(s))?i.length-1:o-1,i,e):r?p(a(t)+1,i,e):n&&p((o=a(d))>=i.length-1?0:o+1,i,e))},i=function(e){var t=l(e),n=e.shiftKey;t&&!n&&p(0,ee('[id^="pendo-g-"]').find(Lo),e)},r=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=s&&t&&p((n=ee('[id^="pendo-g-"]').find(Lo)).length-1,n,e)},I(document,"keyup",n),I(document,"keydown",n),I(e,"keydown",i),I(e,"focus",r),y.one("unmounted",function(){w(document,"keyup",n),w(document,"keydown",n),w(e,"keydown",i),w(e,"focus",r)}))},addAriaHiddenOutsideGuide:function i(e,n){void 0===n&&(n=[]);if(!e||e===bo())return n;var t=wo(e);K.each(t,function(e){var t;-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")&&"script"!==(t=e.tagName.toLowerCase())&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))});e.parentNode&&i(e.parentNode,n);return n},renderResourceCenterModule:se.renderResourceCenterModule,buildNodeFromJSON:Bc,attachImgLoadHandlers:Wc,recalculateGuideHeightOnImgLoad:Uc,buildStyleString:function(e){var n="";return K.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:zc,bindActionToNode:$c,recalculateGuideHeight:Ac,recalculateGuideWidth:Tc,adjustGuideContentWidth:_c,findDomBlockInDomJson:ju,isElementHiddenInGuide:ae.isElementHiddenInGuide,positionStepForTooltip:wc.positionStepForTooltip,flexAllThings:ae.flexAllThings,flexElement:ae.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(K.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:uc,buildNodesFromJSON:Pc,findGuideContainerJSON:$u,maintainAspectRatios:ae.maintainAspectRatios,sizeElement:Sc,sizeElements:Cc,getAllowedAttributes:Dc,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:wc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:cm,addVideoLoadListener:function(e,t){I(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function l(e){return"Tab"===e.key||9===e.keyCode}function p(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function h(e,t){var n,i;return"radio"===t.getAttribute("type")&&(n=t.getAttribute("data-pendo-poll-id"),i=K.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return n===t&&e.checked})),i||t}function f(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:K.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:K.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=x.buildNodeFromJSON(t),t=(e.prepend(t),document.createElement("div")),n=(t.setAttribute("id","pendo-start-focus-bumper-"+Date.now()),t.setAttribute("class","pendo-start-focus-bumper"),t.setAttribute("tabIndex",0),e.prepend(t),document.createElement("div"));return n.setAttribute("id","pendo-end-focus-bumper-"+Date.now()),n.setAttribute("class","pendo-end-focus-bumper"),n.setAttribute("tabIndex",0),e.append(n),[t,n]}}(),Vm,Ym;function Hm(e,t){var n="",i=e.nodeType;if(t=t||128,i===_r||i===kr)return e.nodeValue;if(!Km(e)&&(i===Er||i===xr||i===Rr)){if(!e.childNodes)return n;for(var r,o=0;o<e.childNodes.length;++o){if(t<=(n+(r=Hm(e.childNodes[o],t-n.length))).length)return n+qm(r.substring(0,t-n.length));n+=r}}return n}function Km(e){return!e.tagName||"textarea"==e.tagName.toLowerCase()}function Xm(e){return 55296<=e&&e<=56319}function Jm(e){return 56320<=e&&e<=57343}function qm(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Xm(t)||Jm(t)){if(1===e.length)return e.slice(0,-1);if(Xm(t))return e.slice(0,-1);if(Jm(t))if(!Xm(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}var Qm=100,ev=[],tv=[],nv="log-enabled",iv="active-contexts",rv=function(e){var t=h.read(nv,!0);return null!==t?"true"==t:!K.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","rc"],e)},ov=function(){var e=h.read(iv,!0);return e?e.split(","):[]},av=function(){return cv()?Ym?"logging already enabled":(h.write(nv,"true",null,!0),Ym=!0,"logging enabled"):"logging unavailable"},sv=function(){return Ym?(h.write(nv,"false",null,!0),Ym=!1,"logging disabled"):"logging already disabled"};function dv(){Vm=ov(),Ym=rv(tt),X.addEventListener("log",hv),h.registry.addLocal(nv),h.registry.addLocal(iv)}var uv=function(e,t){return K.compact([].concat(e,t))},cv=function(e){return e=e||"log","undefined"!=typeof console&&K.isFunction(console[e])},lv=function(e){return e=uv(e),0<Vm.length?0<K.intersection(Vm,e).length:!!Ym||!!Hl()},pv=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];X.info(e,{contexts:t})};function hv(e){var t;e.level!==tn.Debug&&e.level!==tn.Info||(t=e.attributes?uv(e.attributes.contexts):[],cv()&&lv(t)&&wv(e.message),mv(ev,e.message,t))}function fv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];cv("error")&&console.error.apply(console,e),mv(tv,e.join(" "))}function gv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];cv("warn")&&console.warn.apply(console,e)}var mv=function(e,t,n){K.contains(n,"debug")||(e.length==Qm&&e.shift(),e.push([t,n]))},vv=function(t){t=uv(t),K.each(K.map(K.filter(ev,function(e){return 0===t.length||0<K.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){wv(e,"[Pendo-History] ")})},yv=function(){return K.union.apply(K,K.map(ev,function(e){return e[1]}))},bv=function(){return Vm},Iv=function(e){Vm=uv(e),h.write(iv,Vm.join(","),null,!0)},wv=function(e,t){var n;cv()&&(t=t||"[Agent] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function Cv(e){X.debug(e,{contexts:["debug"]})}function Sv(){return 0<tv.length}function Av(){return[].concat(tv)}function Tv(e,t){var n;e&&K.isString(e)?(K.isObject(n=t)||(n={__err__:t}),t=f.get(),qa("track",n,t,e)):X.error("Must provide valid name string for event tracking")}pv.init=dv,pv.enableLogging=av,pv.disableLogging=sv,pv.getActiveContexts=bv,pv.setActiveContexts=Iv,pv.showLogHistory=vv,pv.getLoggedContexts=yv;var _v=function _v(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):S(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),C.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=Q(),e=(Xn(e)&&a("warn",'The current visitor is not identified and will be treated as "anonymous". Is this expected? (You might have used "VISITOR-UNIQUE-ID" as the visitor ID)',"isAnonymousVisitor"),ei(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),fi()),t=(e||a("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===e&&a("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),m.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),rl());if(K.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=K.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=K.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&K.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),K.each(K.keys(i),function(e){var t=i[e];K.isObject(t)&&!K.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):K.isArray(t)&&K.any(t,K.isObject)?a("warn",e+" contains object values. The objects will be ignored.",n+"Metadata",t):a("log",e+":",n+"Metadata",t)}),r||console.groupEnd()):"parentAccount"!==n&&a("warn","No "+n+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",n+"MetaData")}),r)return o;console.groupEnd()},Ev=function(n){var e=[{nativeType:Object.prototype,displayName:"Object | Prototype "},{nativeType:Object,displayName:"Object ",propsToCheck:["create","getOwnPropertyNames"]},{nativeType:Number.prototype,displayName:"Number | Prototype"},{nativeType:String.prototype,displayName:"String | Prototype"},{nativeType:Function.prototype,displayName:"Function | Prototype"},{nativeType:Boolean.prototype,displayName:"Boolean | Prototype"},{nativeType:Array.prototype,displayName:"Array | Prototype"},{nativeType:Date.prototype,displayName:"Date | Prototype"},{nativeType:RegExp.prototype,displayName:"RegExp | Prototype"},{nativeType:JSON,displayName:"JSON ",propsToCheck:["parse","stringify"]},{nativeType:Math,displayName:"Math "},{nativeType:Vt.prototype,displayName:"Promise | Prototype"},{nativeType:window,displayName:"Window ",propsToCheck:["alert","asap","atob","btoa","cancelAnimationFrame","clearImmediate","clearInterval","clearTimeout","close","confirm","getComputedStyle","getSelection","open","postMessage","prompt","requestAnimationFrame","scroll","scrollBy","scrollTo","setImmediate","setInterval","setTimeout","stop","XMLHttpRequest","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent"]}],r=!1,i=(K.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);K.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&(n[e].toString().includes("[native code]")||i.push(e))}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),K.each(e,function(e){var t;e.nonNativeImplementations&&(t=e.displayName.trim(),n?i.implementations.push({nativeType:t,nonNativeImplementations:e.nonNativeImplementations}):console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", ")))}),n?i:void console.groupEnd()):n?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},xv=function(e){var t=[];if(K.isNumber(window.frames.length)&&K.isFinite(window.frames.length)&&ee("iframe").length+ee("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),K.each(t,function(e){console.warn(e)}),console.groupEnd()}},Rv=function(e){var t,n=window.location.href,i=[];try{(t=Ji())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=f.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),K.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()},kv=function(e){if(Sv()){var t=Av();if(e)return t;console.group("Agent Error History"),K.each(t,function(e,t){console.log("Error History ",t,e)}),console.groupEnd()}},Ov=function(e){var t=Im(e);if(e)return t;console.group("Active Plugins"),K.each(t,function(e){return console.log(e)}),console.groupEnd()},Nv=function(e){var t={install:_v(e),plugins:Ov(e),globals:xv(e),url:Rv(e),errors:kv(e)};if(e)return t.methods=Ev(e),t;m.validate(console)},Mv={BuildingBlockGuides:x,BuildingBlockResourceCenter:se,BuildingBlockTemplates:Vu,BuildingBlockTooltips:wc,BuildingBlockSvgs:Yu};function Lv(e,t){this.state={duration:e,isStopped:!0,handle:null,cb:t,hasRun:!1,errors:[],options:{}},this.shouldJobRun=function(){return!(!this.state.hasRun&&this.state.options.skipFirstRun||this.state.isStopped)},this.doJob=function(e){if(e)try{this.state.cb(this)}catch(t){this.state.errors.push(t)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Dt(this.run,this.state.duration)},this.run=K.compose(K.bind(this.afterJobRun,this),K.bind(this.doJob,this),K.bind(this.shouldJobRun,this))}Lv.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Lv.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Fv=p.urlFor;function Pv(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(K.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw new Error("Invalid URL attribute type: "+e);if(!K.contains(i[e],t))throw new Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function Gv(e){return e instanceof Si||e instanceof HTMLAnchorElement}Pv.prototype.applyToURL=function(e){return{AllowOnlyKeys:function(e,t,n){K.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Si(fr(t,null,n,!1))},ExcludeKeys:function(e,t,n){K.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Si(fr(t,null,n,!0))},AddTo:function(e,t,n){K.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Si(Fv(t,n))},Clear:function(e,t){return e[t]="",e},Replace:function(e,t,n){return K.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Si(n):(e[t]=n,e)},ForceSecure:function(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},Pv.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Pv.fromJSON=function(e){return e instanceof Pv?e:new Pv(e.attr,e.action,e.data)};var Dv=function(){var n=function(t,n,i,r){return[new Pv("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new Pv("href","ForceSecure")]},i=function(){var e=Xi(),t=f.isElectron()?n(f.electronAppName(),f.electronResourcesPath(),f.electronUserDirectory(),f.electronUserHomeDirectory()):[];return s([].concat(t),e)},e={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:i},r=new Lv(500,function(e){!xm()||Xs(document)||Ks()}),o=function(e){if("string"==typeof e)return new Si(e);if(Gv(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},a=function(e){return e||window.location},s=function(e,t){return K.reduce(e,function(e,t){return t.applyToURL(e)},t)},t=function(e){try{var t=function(e){return n=e},n=K.reduce([e.currentSrcFn,o,t,K.partial(s,e.transforms),o,t,K.partial(s,e.internalTransforms),o],function(e,t){return t(e)},null)}catch(i){X.critical(i),n=a(n)}return n};return{state:e,actions:{init:function(e,t){e.commit("clearTransforms"),e.commit("clearInternalTransforms"),e.commit("changeUrlSource"),t.transforms&&e.dispatch("addTransforms",t.transforms),t.setUrl&&e.commit("changeUrlSource",t.setUrl)},addTransforms:function(t,e){K.each(e,function(e){t.commit("addTransform",Pv.fromJSON(e))})},addInternalTransforms:function(t,e){K.each(e,function(e){t.commit("addInternalTransform",Pv.fromJSON(e))})},removeInternalTransforms:function(t,e){K.each(e,function(e){t.commit("removeInternalTransform",Pv.fromJSON(e))})},startPolling:function(e){r.start()},stopPolling:function(e){e.state.currentSrcFn===i&&r.stop()}},mutations:{addTransform:function(e,t){e.transforms.push(t)},addInternalTransform:function(e,t){e.internalTransforms.push(t)},removeInternalTransform:function(e,t){t=K.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms:function(e){e.transforms=[]},clearInternalTransforms:function(e){e.internalTransforms=[]},changeUrlSource:function(e,t){if(t){if("string"==typeof t)var n=new Si(t),n=K.partial(K.identity,n);else if(Gv(t))n=K.partial(K.identity,t);else{if("function"!=typeof t)throw new Error("URL Source must be either a Function that returns a URL or String that is a valid URL. Or, it may be a static URL or String.");n=t}e.currentSrcFn=n,r.start(!xm())}else e.currentSrcFn=i,r.stop()}},getters:{url:t,href:function(e){return t(e).href}}}}();function Bv(e){var t;if("function"==typeof Bv[e])return t=K.toArray(arguments).slice(1),Bv[e].apply(Bv,t)}K.extend(Bv,{getHref:function(){return q.getters["location/href"]()},clearTransforms:function(){q.commit("location/clearTransforms"),Ks()},addTransforms:function(e){q.dispatch("location/addTransforms",e),Ks()},setUrl:function(e){q.commit("location/changeUrlSource",e)},useBrowserUrl:function(){q.commit("location/changeUrlSource"),Ks()}});var Wv=1e4;function Uv(){return m.get("guideSeenTimeoutLength")||Wv}var $v=function(){var i=[];return{name:"StepTimeoutMonitor",initialize:function(){this._beforeGuideShow=K.bind($v.beforeGuideShow,$v),this._stop=K.bind($v.stop,$v),y.beforeGuideShow.on(this._beforeGuideShow),y.guideSeen.on(this._stop),y.guideNotSeen.on(this._stop)},teardown:function(){$v.stop(),y.beforeGuideShow.off(this._beforeGuideShow),y.guideSeen.off(this._stop),y.guideNotSeen.off(this._stop)},beforeGuideShow:function(e){var t=e.data[0],e=e.data[1],n=t.guide;m.get("enableGuideTimeout")&&(e=-1<K.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==K.indexOf(n,t)||e)&&$v.start(t))},start:function(e){var o,t,n=i[0];n&&n===e.id||(n&&n!==e.id&&(n=i[1],K.isFunction(n))&&n(),e.shouldStartTimer()&&(o=Uv(),n=K.partial(function(e,t){var n,i,r=T(t);r&&(n=r.findStepById(e))&&!r.isShown()&&(i=n.canShowOnPage(Vf())?bf(n)?"other":"element":"page",Ff(t,e,Q(),i,r.language,o),X.info("Guide "+t+" timed out showing Step "+e),n.timeout()),$v.stop()},e.id,e.guide.id),t=Dt(n,o),i=[e.id,n,t]))},stop:function(){var e=i[2];e&&clearTimeout(e),i=[]},getGuideSeenTimeoutLength:Uv}}();function jv(){console.warn("This functionality is not supported by your subscription.")}function n(e){return $r?e:jv}function zv(e){e.getVersion=ut,e.isReady=xm,e.pageLoad=Ks,e.getVisitorId=li,e.getAccountId=fi,e.clearSession=bi,e.VERSION=at,e.LOADER=dt,e.flushNow=n(function(e){return La(!0,e)}),e.teardown=wi(Wm),e.initGuides=n($g),e.loadGuides=n(yg),e.findGuideByName=n(iu),e.hideGuides=n(Jh),e.onGuideDismissed=n(uf),e.goToStep=pf,e.onGuideAdvanced=n(hf),e.onGuidePrevious=n(ff),e.onGuideSnoozed=cf,e.startGuides=n(kl),e.stopGuides=n(Ol),e.defaultCssUrl=n(Bh()),e.getActiveGuides=A,e.getActiveGuide=dm,e.guideSeenTimeoutLength=$v.getGuideSeenTimeoutLength(),e.guidesPayload=tg,e.areGuidesDisabled=n(jg),e.setGuidesDisabled=n(Zg),e.buildNodeFromJSON=x.buildNodeFromJSON,e.flexElement=n(x.flexElement),e.GuideFactory=n(Nu),e.dom=ee,e.getText=Hm,e.attachEvent=n(I),e.detactEvent=n(w),e.frames={setFrameVisibility:Au},e.log=pv,e.enableLogging=av,e.disableLogging=sv,e.setActiveContexts=Iv,e.showLogHistory=vv,e.getLoggedContexts=yv,e.isDebuggingEnabled=K.noop,e.enableDebugging=K.noop,e.disableDebugging=K.noop,e.addDebuggingFunctions=K.noop,e.stopSendingEvents=n(Ra.lock),e.startSendingEvents=n(Ra.unlock),e.isSendingEvents=n(Qr),e.fromByteArray=u.uint8ToBase64,e.events=n(Tu),e.track=n(Tv),e.validateInstall=_v,e.validateNativeMethods=Ev,e.validateBuiltInGlobals=xv,e.validateUrl=Rv,e.validateEnvironment=Nv,e.doesExist=S,e.generate_unique_id=Yn,e.TEMP_PREFIX=$n,e.SIZE_UNIQUE_ID=jn,e.defaultLauncher=K.noop,e.toggleLauncher=K.noop,e.showLauncher=K.noop,e.hideLauncher=K.noop,e.removeLauncher=K.noop,e.identify=el,e.get_visitor_id=li,e.set_visitor_id=function(e){el(e)},e.get_account_id=fi,e.set_account_id=function(e){el(Q(),e)},e.getSerializedMetadata=ol,e.compress=Ct,e.squeezeAndCompress=Ct,e.randomElement=kt,e.randomString=Ot,e.toUTF8Array=mt,e.getNumberFromText=Ut,e._addCredits=n(gf),e.getCurrentUrl=Vf,e.getNormalizedUrl=Vf,e.testUrlForStep=n(Hf),e.showGuideByName=n(Kf),e.showGuideById=n(Xf),e.designerv2=nh,e.P2AutoLaunch=n(ih),e.BuildingBlocks=n(Mv),e.onConnectMessage=K.noop,e.buffers=Ra,e.guideDev=n(Zm),e.badgesShown=n(Kd),e.get_pendo_cookie=Tn,e.DEFAULT_EXPIRE_LEN=En,e.set_pendo_cookie=Rn,e.loadResource=Vo,e.loadWatcher=Yo,e.messageLogger=Ho,e.messageReceiver=Ko,e.messageValidator=Xo,e.MESSAGE_TYPES=na,e.messageDispatcher=oa,e.moduleRegistry=aa,e.addModule=sa,e.hasModule=n(da),e.findModuleByName=n(ua),e.modulesWaiting=ca,e.loadModules=la,e.moduleLoader=fa,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=l,e.url=f,e.location=Bv,e.Sizzle=s,e._=K,e.ajax=p,e.Zlib=_t,e.guideContent=n(Bu.guideContent),e.receiveDomStructureJson=n(Bu.receiveDomStructureJson),e.addExtension=cl}var Zv="is going away",Vv="is gone",Yv=K.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return X.info(e),e});function Hv(e,t,n){return function(){return Yv("pendo."+t,n),(e||K.noop).apply(null,arguments)}}function Kv(t){t.SHADOW_STYLE="",K.extend(t,{_showElementGuide:K.noop,flushEventCache:Hv(null,"flushEventCache",Vv),HOST:br,MAX_LENGTH:Ta,MAX_NUM_EVENTS:Aa,_createToolTip:K.noop,_get_tooltip_dimensions:K.noop,_isOldIE:n(Hv(ke,"_isOldIE",Zv)),_logMessage:Hv(Zr,"_logMessage",Zv),_sendEvent:Hv(null,"_sendEvent",Vv),_sendGuideEvent:Hv(null,"_sendGuideEvent",Vv),_stopEvents:!1,_storeInCache:Hv(null,"_storeInCache",Vv),_writeEventImgTag:Hv(null,"_writeEventImgTag",Vv),_writeImgTag:n(Hv(Yr,"_writeImgTag",Zv)),getUA:Hv(Fe,"getUA",Zv),ifDebugThen:Hv(null,"ifDebugThen",Vv),send_event:n(Hv(qa,"send_event","has changed to pendo.cache.createEvent")),wire_page:Hv(Bd,"wire_page",Zv),messageOriginTester:Hv(null,"messageOriginTester",Vv),findGuideBy:n(nu),findGuideById:n(T),findStepInGuide:n(ru),_updateGuideStepStatus:n(Kh),_addCloseButton:n(Yh),initialize:Mm,getEventCache:n(Ng),processEventCache:n(Og),isGuideShown:n(Vh),_getNextStepInMultistep:n(Zf),attachEvent:I,detachEvent:w,updateOptions:Qc,createLauncher:K.constant({}),initLauncher:K.noop,_addGuideToLauncher:K.noop,launcherToolTipDiv:null,isAnonymousVisitor:function(e){return void 0===e&&(e=t.get_visitor_id()),Xn(e)},DEFAULT_VISITOR_ID:Qn,shouldIdentityChange:K.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:In,_get_cookie:bn,get_cookie_key:An,ENV:tt,eventCache:n(wa),_getOpacityStyles:Hv(null,"_getOpacityStyles",Zv),setStyle:so,_createGuideEvent:n(Uf),seenGuide:n(Of),dismissedGuide:n(Nf),advancedGuide:n(Lf),seenTime:0,placeBadge:n(up),isBadge:n(lu),showPreview:n(Hv(Tf,"showPreview",Zv)),removeAllBadges:n(cp),tellMaster:ga,DEFAULT_TIMER_LENGTH:Al,registerMessageHandler:ia,_get_offset:n(ie),_shouldAutoDisplayGuide:K.constant(!1),removeBadge:lp,_showLightboxGuide:K.noop,_showGuide:n(xf),getElementForGuideStep:n(mu),isElementVisible:b,getTooltipDivId:n(Sf),setupWatchOnTooltip:n(Af),letters:"",charset:"",detectMaster:ma,listenToMaster:Hv(null,"listenToMaster",Vv),start:Vd,SEND_INTERVAL:Sa,stageGuideEvent:n(zf),startStagedTimer:jf,isURLValid:Ea,getURL:xa,_get_screen_dim:n(lo),_isInViewport:n(po),_getCss3Prop:oo,waitThenStartGuides:n(Tl),guidesProcessingThreadHandle:Sl,getMode:K.constant("default")})}function Xv(e){return e&&1===e.length?e[0]:K.any(e,$t)?J.all(e).then(function(e){return K.any(e)}):void 0}function Jv(){var e,t=this,n=(this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},K.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Mu(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&K.contains(this.attributes.activation.event,e)&&this.canEventActivatedGuideBeShown())},this.isContinuation=function(e){return!1},this.isGuideWidget=function(){return this.attributes&&"launcher"===this.attributes.type},this.isOnboarding=function(){return this.attributes&&!!this.attributes.isOnboarding},this.isWhatsNew=function(){var e=K.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return K.get(this,"attributes.isAnnouncement")},this.isHelpGuide=function(){return!this.isOnboarding()&&!this.isWhatsNew()&&!this.isGuideWidget()},this.nextStep=function(e){return null},this.hasLaunchMethod=function(e){return this.launchMethod&&0<=this.launchMethod.indexOf(e)},this.shouldAutoDisplay=function(){return!this.outsideTimebox()&&this.hasLaunchMethod("auto")&&K.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return Xv(K.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return K.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return K.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!hu()){var e=fu(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop)return!1;if(e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&K.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?K.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&K.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return Xv(K.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){K.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return K.all(this.steps,function(e){return e.hasBeenSeen()})},this.canBadgeBeShown=function(){var e=this.attributes.badge;return!(e&&e.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.placeBadge=function(){var e;this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()&&!this.outsideTimebox()?(e=K.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=K.first(this.steps))&&K.isFunction(e.canShowOnPage)&&e.canShowOnPage(Vf())&&up(this)):pp(this)},this.findStepById=function(t){return K.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!K.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return Nt(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?K.find(n,function(e){return Nt(e.text,t,!0)}):e)?i="tag":(n=K.map(this.steps,function(e){return e.searchFor(t)}),0<K.compact(n).length&&(i="content"))),!!i&&{guide:this,field:i}},this.shouldBeAddedToResourceCenter=function(){var e,t=this;return!(!t.steps||!t.steps.length||t.control||!t.eligibleInFrame&&(!t.steps[0].content&&!K.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Vf())||!t.canShowOnDevice()||!bf(e)||t.outsideTimebox()))},this.shouldBeAddedToLauncher=function(){var e;return!(!this.steps||!this.steps.length||(e=this.steps[0],!this.hasLaunchMethod("launcher")&&!this.isWhatsNew())||!e.canShowOnPage(Vf())||!this.canShowOnDevice()||!bf(e)||this.outsideTimebox())},"PENDO_HELPER_STEP");return this.getPositionOfStep=function(e){var t=K.reject(this.steps,function(e){return Nt(e.content,n)});return K.indexOf(t,e)+1},this.getTotalSteps=function(){return K.reject(this.steps,function(e){return Nt(e.content,n)}).length},this.getSeenSteps=function(){return K.size(K.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return K.all(this.steps,function(e){return K.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&K.any(this.steps,function(e){return K.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return J.all(K.map(this.steps,function(e){if(K.isFunction(e.fetchContent))return e.fetchContent()}))},this.canEventActivatedGuideBeShown=function(){return!(this.attributes.dom&&this.attributes.dom.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.isGuideSnoozed=function(){return K.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return K.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&K.any(this.steps,function(e){return!(t="dismissed"===e.seenState?!0:t)&&"snoozed"===e.seenState&&e.snoozeEndTime&&(new Date).getTime()>e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,K.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&v()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&v()>this.expiresAfter},this.isBeforeStartTime=function(){return!!t.showsAfter&&v()<t.showsAfter},this.outsideTimebox=function(){return t.isExpired()||t.isBeforeStartTime()},this.calculateDismissCountFromSteps=function(){var t=0;return K.forEach(this.steps,function(e){e.dismissCount&&(t+=e.dismissCount)}),t},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function qv(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){K.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var Qv=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function ey(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(K.each(this.steps,function(e){e.after("render",function(){K.each(e.elements,function(e){ee(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=K.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=K.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=K.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return K.find(this.sections,function(e){return K.contains(e,t)})},this.getSubSection=function(e,t){t=K.indexOf(e,t);return e.slice(t+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return(!t||n)&&!!this.nextStep(e)},this.nextStep=function(t){var e=null;if(this.isGuideSnoozed())return null;t=t||{};for(var n,i,r=0;r<this.steps.length;r++)if(this.steps[r].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[r];break}if("advanced"===t.state&&t.destinationStepId){e=K.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(r+1<this.steps.length){e=this.steps[r+1];break}}return e?(n=(new Date).getTime(),(i=t.time)&&432e5<n-i&&!Qv(this)?(o||(X.info("Multi-step continuation has expired",{contexts:["guides","info"]}),o=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||K.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=K.first(this.steps),n=this.nextStep(ml())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return K.first(this.steps).show(e)},this.show=function(e){var t=ml(),n=K.first(this.steps),t=this.nextStep(t)||n;return t.show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=K.last(this.steps);return!!e&&K.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return K.findWhere(e,{seenState:"active"})}),this}function ty(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,K.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(v()),5<=o.length&&((0<(t=K.last(o)-K.first(o))?(o.length-1)/(t/6e4):Infinity)>=ty.MAX_ERRORS_PER_MINUTE&&(n="Exceeded error rate limit, dropping guide.\n"+n,tu.addGuide(a),y.trigger("renderFail",a)),o.shift()),X.critical(n,{error:i}),i}}}return K.each(["canShow","placeBadge","show"],function(e){a[e]=K.wrap(a[e],t(e))}),a}function ny(){return K.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=K.wrap(this.shouldBeAddedToLauncher,function(e){return q.getters["frames/hasFrames"]()?!(!q.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!q.getters["frames/isGuideInDifferentFrame"]()(this)&&q.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=K.wrap(this.shouldBeAddedToResourceCenter,function(e){return q.getters["frames/hasFrames"]()?!(!q.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!q.getters["frames/isGuideInDifferentFrame"]()(this)&&q.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function iy(e){var t=this;return"whatsnew"===t.type||K.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=K.wrap(t.isShown,function(e){return e.apply(this,arguments)||q.getters["frames/isShownInAnotherFrame"]()(t)})),t}function ry(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=K.indexBy(o.polls,"id"),i=K.map(u.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=u.id,n=v();Lf(e,t,Q(),u.seenReason,o.language),Kh(e,t,"advanced",n),hl({guideId:e,guideStepId:t,time:n,state:"advanced"})},d=function(){var e=ee("._pendo-poll_"),t=ee("._pendo-poll-message_");t.length?(e.addClass("_pendo-poll-submitted_"),t.css("margin-top:-"+t.height()/2+"px"),n()):u.advance()},u.after("render",function(){var n=ee("._pendo-poll_")[0],e=ee("._pendo-poll-submit_",n)[0];e?u.attachEvent(e,"click",function(e){var t=ee("._pendo-poll-question_",n),t=K.map(t,function(e,t){e=ee("textarea,input:text,select,input:radio:checked",e);if(e&&e.length&&e[0].value)return{pollId:(t=i[t]).id,value:r(t,e[0].value)}});u.response(K.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=ee(Ui(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),u.response([{pollId:t.id,value:e}]),d())})}),u.after("render",function(){var i=ee("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=ee("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),u.attachEvent(i,"click",function(e){var t=ee(":radio:checked",i)[0],n=ee("._pendo-poll_");ee("label",i).removeClass(a),n.removeClass(o),t&&(ee('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),K.isFunction(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(Wg(),K.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return K.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=Uf("pollResponse",u.guideId,u.id,Q(),undefined,o.language);K.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&K.extend(i.props,{poll_type:n.attributes.type}),Lg.push(i)}),Lg.flush())}),u}ty.MAX_ERRORS_PER_MINUTE=30;var oy=function(){return{show:function(t,n){if(hu()&&K.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return i(t,n);if(!q.getters["frames/hasFrames"]()||q.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=se.getResourceCenter();if(e)return i(e.steps[0],t)}}(t,n);if($t(e))return e.then(function(){return i(t,n)}).then(function(e){return!!e||r(t,n)});e=i(t,n);if($t(e))return e.then(function(e){return!!e||r(t,n)});if(e)return!0}return r(t,n)},showLocal:i};function i(e,t){return Wu.hasContent(e)&&ku.valid(e)?(e._show(t),e.isShown()):!(Wu.hasContent(e)&&ku.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Vf()))&&(e.lock(),Wu.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&ku.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function r(t,e){var n=t.getGuide();return!(!q.getters["frames/hasFrames"]()||!q.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),q.dispatch("frames/showGuideStep",{guideId:t.guideId,stepId:t.id,reason:e}).then(function(e){return t.unlock(),e.isShown},function(){return t.unlock(),!1}).then(function(e){return e&&(clearInterval(t.timeoutTimer),delete t.timeoutTimer),e}))}}();function ay(d){var e=!1,t=!1;return this.guide=d,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new pm),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=K.indexOf(t,this),i=rl();try{var r=this.attributes.variables||{},o={step:{id:this.id,isFirst:0===n,isLast:n===t.length-1,index:n,number:n+1},guide:{id:e.id,name:e.name,publishedAt:e.publishedAt,showsAfter:e.showsAfter,percentComplete:t.length?Math.round((n+1)/t.length*100):0,stepCount:t.length},metadata:Et(i),template:r};return this.template||(this.template=K.template(this.content||"")),Fu(this.template(o).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+this.id).replace(/pendo-src="([^"]+)"/g,function(e,t){return/<%=[^>]+>/.test(t)?e:'src="'+t+'"'}))}catch(a){return this.content}},this.isLocked=function(){return e},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!K.get(this,"guide.attributes.isAnnouncement")&&!!d.canShowOnDevice()&&!this.isShown()&&!K.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Vf())&&bf(this)},this.canShowOnPage=function(e){e=Hf(this.regexUrlRule,e);return Hl()&&y.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!K.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var e,t;return!(!(C.designer||hu()||_p())&&(e=Vf(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Hf(this.regexUrlRule,e)?(tu.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),X.critical("pendo.io page rule exception",t),1):q.getters["healthCheck/isMissingPageRule"]()(this)?(tu.addGuide(d),t.error=new Error('missing regexUrlRule"'),X.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(tu.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),X.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return d.skipResourceCenterHomeView&&d.moduleIdToReplaceHomeViewWith&&d.hasEligibleNativeIntegrationModule?(t=K.find(qd(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=K.get(t,"attributes.resourceCenter.integrationProvider"),se.renderNativeIntegration(n,t)):d.continueToNativeModule?se.handleNativeIntegrationContinuation(d):(K.get(d,"attributes.resourceCenter")&&Pl(se.getResourceCenter(),Dl),d.isModule?x.renderResourceCenterModule(d,!1):(n=x.renderGuideFromJSON(e.domJson,e),K.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),se.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=C.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=ee(document.createElement("div")).attr("id",Sf(e)).addClass(Uh+" "+r),o=ee(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=ee(document.createElement("div")).addClass("_pendo-guide-container_"),s=ee(document.createElement("div")).addClass("_pendo-backdrop_");r.width(t),r.height(n),a.css({left:i,top:i}),e.isEditable&&o.attr("contenteditable","true"),o.appendTo(a),a.appendTo(r),d&&K.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){X.info("guide step teardown",{contexts:["guide","render"]}),K.each(this.handlers,function(e){w(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,K.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(K.each(this.hiddenElements,function(e){try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){X.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),Zc(this.id)},this.show=function(e){var t;if(!K.contains(["auto","continue"],e)||!q.getters["healthCheck/isRedisplay"]()(this))return(t=oy.show(this,e))&&t["catch"]&&t["catch"](K.noop),t;q.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!C.designer&&(t=(e=K.get(d,"attributes.resourceCenter"))&&se.isFullyCustom(d),n=d.activeModule?d.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=d.activeModule&&"AnnouncementsModule"===K.get(d.activeModule,"attributes.resourceCenter.moduleId"),y.beforeUpdate.trigger(o),t||r||(x.recalculateGuideWidth(n,o.guideElement),x.adjustGuideContentWidth(n,o.guideElement)),e?(se.adjustResourceCenterWidth(i),r&&d.activeModule.guidesInModule?K.forEach(d.activeModule.guidesInModule,function(e){var t;!K.isUndefined(e.steps[0].attributes.imgCount)&&0!==K.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=ee(i).find("#pendo-g-"+t)[0]?t:e.id,x.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),x.flexAllThings("pendo-g-"+t,o.guideElement))}):x.flexAllThings("pendo-resource-center-container")):x.flexAllThings(n,o.guideElement),t||x.recalculateGuideHeight(n,o.guideElement),y.updated.trigger(o))},this._show=function(e){y.beforeGuideShow.trigger(this,e),this.canShow()&&(!hu()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):y.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!mf(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],K.forEach(e.pollIds,function(t){var e=K.find(n.polls,function(e){return e.id===t});e&&e.attributes&&e.attributes.type&&i.push(e.attributes.type)}),i},this.onControlGuide=function(e){var t;hu()||(this.seenReason=e,zh(v()),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(Rf(this.guideId,this.id,Q(),e,d.language,t),K.each(d.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(t,e){void 0===e&&(e=!0);var n,i,r=this;r.overrideElement&&(ee.addClass(r.overrideElement,"triggered"),r.overrideElement.checkAriaExpanded)&&r.overrideElement.checkAriaExpanded(),hu()||(r.seenReason=t,r.seenState="active",zh(v()),n={last_updated_at:r.lastUpdatedAt},(i=this.getStepPollTypes(d,r))&&(n.step_poll_types=i),e&&Of(r.guideId,r.id,Q(),t,d.language,n),q.dispatch("guideState/updateLastGuideStepSeen",{guideId:d.id,guideStepId:r.id,time:Zh(),state:r.seenState,seenReason:t,visitorId:Q()}),K.each(d.steps,function(e){"snoozed"===e.seenState&&(e.snoozeEndTime=0,Pf(d.id,e.id,Q(),t,d.language))}),Uu.runCustomScripts(r,d)),q.dispatch("frames/guideStepShownInFrame",{guideId:d.id,stepId:r.id,isShown:r.isShown()}),r.guideElement&&r.guideElement[0]&&r.attachEvent(r.guideElement[0],"focusin",function(e){"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName||(C.ignoreResize=!0,Dt(function(){C.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),y.beforeUnmount.trigger(t),t.teardown(),K.each(t.elements,function(e){mo(e)}),y.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(ee.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),q.dispatch("frames/guideStepHiddenInFrame",{guideId:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||hf(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||uf(this)},this.isPoweredByEnabled=function(){return!0!==this.hideCredits},this.isSnoozed=function(){var e="snoozed"===this.seenState,t=!this.snoozeEndTime||(new Date).getTime()>this.snoozeEndTime;return e&&!t},this.shouldRepeat=function(){return!!this.lastSeenAt&&d.redisplay&&!d.outsideTimebox()&&!this.isSnoozed()&&v()-this.lastSeenAt>=d.redisplay.interval&&!d.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return d.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};I(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&Nt(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&wc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&uc(this)},this.getType=function(){return this.domJson?K.get(this,"attributes.calculatedType"):this.type},this}function sy(){return this.after("render",function(){Wp()}),this}function dy(){Nu.behaviors=[Zl,Jv,ku.Guide,qv,ey,ty,ny],Mu.behaviors=[Zl,ay,iy,Wu,ku.Step,ry,sy]}ay.isGuideStep=function(e){return!!e&&K.isFunction(e.render)};var uy={state:{errorCount:0,errors:{}},actions:{write:function(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(r){}e="[".concat(t,"]");t.level===tn.Critical?(i=window.pendo_options||{},fv(e),!1!==C.logStackTraces&&!1!==i.logStackTraces&&n.stack?Vr("".concat(e,"\n").concat(n.stack)):Zr(e)):t.level===tn.Error?fv(e):t.level===tn.Warn&&gv(e)}}},update:function(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError:function(e,t){var n=t.message,i=t.level,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError:function(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged:function(t){return function(e){return!!t.errors[e.hashCode()]}}}},cy=h.getSession(),ly="pendo_cd",py=function(){function e(){this.name="CloneDetection"}return e.prototype.initialize=function(){var r=this;if(K.isFunction(window.BroadcastChannel))return h.registry.addSession(ly),this.tabId=Dn.getTabId(),this.id=Ot(16),this.channel=new BroadcastChannel("pendo-clone-detection-".concat(C.apiKey)),this.channel.onmessage=function(e){var t=K.get(e,"data.type"),n=K.get(e,"data.tabId"),i=K.get(e,"data.id");if(n===r.tabId)switch(t){case"pendo-clone-test":i!==r.id&&r.isClonedSession(i)&&r.sendMessage("pendo-change-tab-id",{tabId:n,id:i});break;case"pendo-change-tab-id":i===r.id&&r.clearClonedStorage()}},this.detectClonedSession(this.id),this.teardown},e.prototype.detectClonedSession=function(e){var t=cy.getItem(ly)||"";-1===t.indexOf(e)&&(t+="-"+e),cy.setItem(ly,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()},e.prototype.isClonedSession=function(e){return this.startCloneDetectionTimer(),-1===(cy.getItem(ly)||"").indexOf(e)},e.prototype.clearCloneDetectionValue=function(){cy.removeItem(ly),this.cloneDetectionTimer=null},e.prototype.startCloneDetectionTimer=function(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Dt(this.clearCloneDetectionValue.bind(this),1e4)},e.prototype.stopCloneDetectionTimer=function(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)},e.prototype.clearClonedStorage=function(){cy.clearPendo(),Dn.setParentTabId(this.tabId),this.tabId=Dn.newTabId(),q.dispatch("frames/setTabId",this.tabId)},e.prototype.sendMessage=function(e,t){this.channel.postMessage(Kt({type:e},t))},e}(),hy=new py;function fy(e){q.dispatch("frames/setReady",{isReady:!0})}var gy=["unknown","hidden","visible"];function my(e){return"visible"===e.visibility||"unknown"===e.visibility}var vy=function(){var r={};return{actions:{init:function(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(Fn),h.registry.addSession(Pn),t=Dn.addTracerIds({}),n=_e(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),y.ready.on(fy),y.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&E.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),hy.initialize(),e.commit("setInitialized",!0))},changeGuideList:function(e,t){e=e.state,t=o(t);E.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:C.autoOrdering||[]})},receiveGuideList:function(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),yy(e.state)},join:function(e){var t,n,i,r;e.state.disabled||(El(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:o(ou())}),(r=[].concat(m.get("leaderKey"))).length||t.agentInstallType!==Se||(r=[C.apiKey]),e.dispatch("receiveFrame",{frame:K.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:n,visibility:n?"visible":"unknown",apiKey:C.apiKey,leaderKey:r},i)}))},receiveFrame:function(e,t){var n,i=e.state;if(C.designerv2.launched&&(n=Object.assign({},nh.hostConfig,{selectionOnly:!0}),E.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:K.toArray(K.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=K.filter(i.frames,function(e){return e.isTop});r.length;){var a=r.shift(),s=K.filter(o,function(e){return e.apiKey===a});if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[vp]&&e.dispatch("receiveStartPreview",t),E.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave:function(t){var e=t.state;E.postMessage({action:"frames/removeFrame",frameId:e.frameId}),K.each(e.frames,function(e){t.commit("removeFrame",e.id)}),E.close()},removeFrame:function(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),K.each(r,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete r[t])}),e.dispatch("electLeader"))},waitThenElectLeader:K.debounce(function(e){e.dispatch("electLeader")},50),electLeader:function(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=K.filter(t.frames,function(e){return e.apiKey===r});if(o.length){n=o;break}}var a=K.find(n,function(e){return e.isTop});a?e.dispatch("followLeader",{leaderId:a.id}):(a=K.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),yy(e.state),e.getters.isLeader()&&y.childFrameJoined.trigger()},followLeader:function(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&y.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep:function(t,n){var i=K.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",K.extend({frameId:e.id},n)).then(function(e){return e.error?J.reject(e.error):e.isShown?e:r()}):J.resolve({isShown:!1})}()},requestShowGuideStepInFrame:function(e,t){var n=t.frameId+"/"+Ot(32),i=J.defer();return r[n]=i,E.postMessage(K.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame:function(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=T(n.guideId))&&e.findStepById(n.stepId))?$t(e=oy.showLocal(e,n.reason))?e.then(i)["catch"](K.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame:function(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),E.postMessage(K.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame:function(e,t){var n=r[t.requestId];n&&(n.resolve(t),delete r[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown})},hideGuides:function(e,t){t=K.isArray(t)?t:[],E.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides:function(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?K.each(K.compact(K.map(t.guideIds,T)),function(e){e.hide()}):Jh(),e.commit("hideGuides"))},guideStepHiddenInFrame:function(e,t){var n=e.getters.isShownInFrame()(e.state.frameId,{id:t.stepId});e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:!1}),E.postMessage(K.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame:function(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1})},fixDoubleDisplay:function(n,i){K.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&E.postMessage(K.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame:function(e,t){e.state.frameId===t.frameId&&(t=(e=T(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen:function(e,t){E.postMessage({action:"frames/receiveLastGuideStepSeen",frameId:e.state.frameId,lastGuideStepSeen:t}),e.commit("updateLastGuideStepSeen",t),e.commit("healthCheck/updateStepState",{id:t.guideStepId,seenState:t.state},{root:!0})},receiveLastGuideStepSeen:function(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=K.get(n,"agentInstallType"))&&n!==e.state.agentInstallType&&delete t.lastGuideStepSeen.visitorId,e.dispatch("guideState/updateLastGuideStepSeen",t.lastGuideStepSeen,{root:!0}),e.dispatch("guideState/write",null,{root:!0}),t=(t=T((n=t.lastGuideStepSeen).guideId))&&t.findStepById(n.guideStepId))&&(t.seenState=n.state,t.seenReason=n.seenReason,t.lastSeenAt=n.time,n.dismissCount&&(t.dismissCount=n.dismissCount),n.snoozeEndTime&&(t.snoozeEndTime=n.snoozeEndTime),e.commit("updateLastGuideStepSeen",n),e.commit("healthCheck/updateStepState",t,{root:!0}))},changeThrottlingState:function(e,t){E.postMessage(K.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState:function(e,t){t.frameId!==e.state.frameId&&K.each(Gf,function(e){t[e]&&Bf(t[e],e)})},startPreview:function(e){E.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview:function(e){E.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview:function(e,t){E.postMessage(K.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview:function(e,t){e.dispatch("preview/start",t[vp],{root:!0}),Ip(window),om()},receiveRestartPreview:function(e){var t=Sp(A(),ml());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview:function(e,t){$p({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility:function(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=b(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility:function(e,t){var n;!K.find(gy,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),E.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility:function(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames:function(e,t){t=t.options;nh.launchInAppDesigner(t)},syncOptions:function(e,t){t.options&&E.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&qc(t.options)},syncIdentity:function(e,t){var n;(t.visitorId||t.accountId)&&(n=t.visitorId,t=t.accountId,E.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:n,accountId:t}))},receiveIdentity:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&oi(t.visitorId,t.accountId)},setReady:function(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen:function(e,t){t.frameId!==e.state.frameId&&y.guideSeen.trigger(t.guideSeen)},checkGuideEligibility:function(e,t){var n=t.guideId,i=t.stepId,r=t.currentStepIndex,o=t.sourceFrame,t=t.promiseId,n=T(n),i=n&&n.findStepById(i),a={};return n&&i?(0===r&&(r=yu(n))&&((r=K.first(s(r)))?b(r)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),K.isFunction(i.canShowOnPage)&&!i.canShowOnPage(Vf())&&(a.PAGE="mismatch"),i.elementPathRule&&((r=K.first(s(i.elementPathRule)))?b(r)?i.elementContainsRulesList&&!wf(r,i.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),i.triggerElementPathRule&&((r=K.first(s(i.triggerElementPathRule)))?b(r)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),K.get(n,"attributes.embedConfig")&&(i=K.get(n,"attributes.embedConfig.selector"),(r=K.first(s(i)))?b(r)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",t&&o&&E.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:o,resolveId:t}),a},setTabId:function(e,t){e.commit("setTabId",t)}},mutations:{addFrame:function(e,t){var n=t.id;e.frames[n]=K.extend({},e.frames[n],t)},removeFrame:function(e,t){delete e.frames[t]},setGuideList:function(e,t){var n=t.frameId;e.frames[n]=K.extend({},e.frames[n],{guides:K.indexBy(o(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown:function(e,t){var n=t.frameId,n=e.frames[n]=K.extend({},e.frames[n]);n.shown=K.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized:function(e,t){e.initialized=t},setLeaderId:function(e,t){e.leaderId=t},setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setTopId:function(e,t){e.topId=t},setAgentInstallType:function(e,t){e.agentInstallType=t},setLeadershipMode:function(e,t){e.leadershipMode!==Se&&(e.leadershipMode=t)},setFrameVisibility:function(e,t){var n=t.frameId;e.frames[n]=K.extend({},e.frames[n],{visibility:t.visibility})},setReady:function(e,t){e.isReady=t},disableFrameVisibilityCheck:function(e){e.disableFrameVisibilityCheck=!0},hideGuides:function(e){K.each(e.frames,function(n){K.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType:function(e,t){e.channelType=t},setGuidesLoaded:function(e){e.guidesLoaded=!0},setConnectFailed:function(e){e.connectFailed=!0},updateLastGuideStepSeen:function(e,t){t&&K.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=K.findWhere(e.steps,{id:t.guideStepId}))&&(e.seenState=t.state,e.lastSeenAt=t.time,e.seenReason=t.seenReason,t.dismissCount&&(e.dismissCount=t.dismissCount),t.snoozeEndTime)&&(e.snoozeEndTime=t.snoozeEndTime)})}},getters:{allFrames:function(e){return e.frames},autoOrdering:function(e){return K.reduce(e.frames,function(e,t){return e[t.apiKey]=t.autoOrdering,e},{})},leaderExists:function(e){return!!e.leaderId},isLeader:function(e){return e.leaderId===e.frameId},leaderKey:function(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower:function(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop:function(e){return e.topId===e.frameId||window==window.top},frameVisibility:function(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame:function(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame:function(i){return function(n){return K.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady:function(e){return e.isReady},isShownInAnotherFrame:function(i){return function(n){return K.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame:function(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame:function(t){return function(e){return t.frames&&t.frames[e]}},hasFrames:function(e){return 1<K.size(e.frames)},shouldBeAddedToLauncher:function(i,e){return function(n){return e.canShowRCBadge()&&K.any(i.frames,function(e,t){return t!==i.frameId&&!!my(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter:function(i,e){return function(n){return e.canShowRCBadge()&&K.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===C.apiKey&&!!my(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel:function(e){return"BroadcastChannel"===e.channelType},channelType:function(e){return e.channelType},canShowRCBadge:function(e,t){var n,i;return t.leaderKey()!==C.apiKey?(n=K.filter(e.frames,function(e){return e.apiKey===C.apiKey}),(i=K.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=K.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):K.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference:function(e){e=K.filter(e.frames,function(e){return e.leaderKey&&e.leaderKey.length});return 1===K.unique(K.map(e,function(e){return e.leaderKey.join(",")})).length?[].concat(e[0].leaderKey):[]},getMyApiKey:function(e,t){return t.getMyFrame().apiKey},getMyFrame:function(e){return e.frames[e.frameId]}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:r};function t(e){var t=K.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=K.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=K.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=K.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=K.map(e.steps,function(e){return K.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function o(e){return K.map(e,t)}}();function yy(t){var n=K.indexBy(K.filter(ou(),function(e){return!e.isFrameProxy}),"id"),e=K.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return K.toArray(K.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return K.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Nu).value(),e=K.toArray(n).concat(e).filter(dg);ug(e),Pg(e),eu(e),t.guidesLoaded&&0===K.size(K.get(t,"frames."+t.frameId+".guides",[]))&&xl()}function by(e,t){new(Lt("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}function Iy(t){var n=Element.prototype.attachShadow;Element.prototype.attachShadow=function(e){e=n.call(this,e);return this.shadowRoot&&by(this.shadowRoot,t),e},Element.prototype.attachShadow.toString=function(){return n.toString()}}function wy(t){var n,i,r;Iy(t),K.isFunction(document.createNodeIterator)&&(n=0,i=[bo()],function o(e){do{if(!(e=e||document.createNodeIterator(i.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(r=e.nextNode())&&(n++,r&&r.shadowRoot&&(by(r.shadowRoot,t),i.push(r.shadowRoot),Cy.foundShadowRoots=!0),n%5e3!=0););}while(!r&&(e=null,i.length));r&&Cy.foundShadowRoots&&Dt(function(){o(e)},50),5e3!==n||Cy.foundShadowRoots||(Cy.stoppedSearchEarly=!0)}())}var Cy={startObserver:wy,foundShadowRoots:!1,stoppedSearchEarly:!1},Sy=function(){var i;function r(){q.dispatch("guideUpdate/documentChanged")}function n(){q.dispatch("guideUpdate/handleScheduledUpdate")}return{actions:{documentChanged:function(e){var t;e.state.updateId?e.commit("setNeedsUpdate"):e.state.scheduledUpdate||(t=e.getters.now()-e.state.updateCompleteTime,t=Math.min(Math.max(0,Al-t),Al),t=Dt(n,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate:function(e){e.dispatch("stopScheduledUpdate"),xl()},stopScheduledUpdate:function(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded:function(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||Lt("MutationObserver"))(r),i=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&Cy.startObserver(r),e.commit("setObserving",!0)))},stopObserver:function(e){var t=e.getters.observer();t&&K.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver:function(e){e.useObserver=!0},setObserveShadowRoots:function(e){e.observeShadowRoots=!0},setObserving:function(e,t){e.observing=t},setNeedsUpdate:function(e){e.needsUpdate=!0},setScheduledUpdate:function(e,t){e.scheduledUpdate=t},startUpdate:function(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate:function(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now:function(){return v()},observer:function(){return i}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}}}(),Ay=function(){var i=["advanced","dismissed","snoozed"];return{actions:{init:function(t,e){K.each(e,function(e){K.each(e.steps,function(e){t.commit("updateStepState",e)})})},fixSeenStateAndLogError:function(e,t){var n,i,r=t.step,t=t.reason;e.state.exceptions[r.id]||(n=r.seenState,(i=e.state.steps[r.id])&&i.seenState&&(r.seenState=i.seenState),e.state.exceptions[r.id]=!0,e.dispatch("logRedisplayError",{id:r.id,guideId:r.guideId,reason:t,seenState:i.seenState,previousSeenState:n}))},logRedisplayError:function(e,t){Vr(['Attempted redisplay of guide="',t.guideId,'" step="',t.id,'" reason="',t.reason,'" seenState="',t.seenState,'" previousSeenState="',t.previousSeenState,'"'].join())}},mutations:{updateStepState:function(e,t){var n=v();e.steps[t.id]=K.extend({},e.steps[t.id],{pageId:t.pageId,regexUrlRule:t.regexUrlRule,seenState:t.seenState,updatedAt:n,allowedAt:n+6e4})},resetStepStatus:function(e){e.steps={}}},getters:{isRedisplay:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(v()>=t.allowedAt)&&K.contains(i,t.seenState)&&!K.contains(i,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}}}(),Ty={state:{lastFlush:v(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush:function(n){K.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),K.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush:function(e,t){e.lastFlush=t},incrementCounter:function(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter:function(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer:function(e,t){var t=void 0===t?{}:t,n=t.name,t=t.time;n&&null!=t&&(e.timers[n]=t)},resetTimer:function(e,t){delete e.timers[t]}},getters:{shouldFlush:function(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload:function(e){var t=K.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return K.extend({},t,e.timers)},now:function(){return v()}}},_y={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata:function(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount:function(e){e.account={}},reset:function(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata:function(e){return e},selfHosted:function(e){return e.selfHosted}}},Ey=h.getLocal(),xy="pendo-preview",Ry="current-guide-preview",ky={state:{preview:null,designerPreview:null},actions:{start:function(e,t){e.commit("setPreview",t),e.dispatch("write")},restart:function(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update:function(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load:function(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(xy)),i=(n.apiKey===C.apiKey&&e.commit("setPreview",n),t.getItem(Ry));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write:function(e){try{var t=e.getters.storage();e.state.preview?t.setItem(xy,JSON.stringify(e.state.preview)):t.removeItem(xy)}catch(n){}},exit:function(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview:function(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(Ry)},launchInAppDesigner:function(e,t){nh.launchInAppDesigner(t)}},mutations:{updatePreview:function(e,t){e.preview&&K.extend(e.preview,t)},setPreview:function(e,t){e.preview=t},setDesignerPreview:function(e,t){e.designerPreview=t}},getters:{isInPreviewMode:function(e){return!!e.preview},isInDesignerPreviewMode:function(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage:function(){return Ey}}},Oy=function(){var n={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null},a="top-down",s="bottom-up",d={debuggingEnabled:{type:a,defaultValue:!1},guideLoopRunning:{type:s,defaultValue:!1},stepEligibilitySet:{type:s,defaultValue:{}},identity:{type:s,defaultValue:{}},location:{type:s,defaultValue:{}}},e={init:function(e){e.commit("setFrameId",Dn.getFrameId()),e.commit("setTabId",Dn.getTabId()),e.commit("setInstallType",_e());var t=Cu()&&window.top===window;n.isTop,e.commit("setIsTop",t),e.commit("isLeader",Cu()),t?(t=Yl(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):E.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:function(n,e){n.state.frameId!==e.frameId&&K.each(d,function(e,t){e.type===a&&E.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:((e={})[t]=n.state[t],e)})})},sync:function(i,e){var r;i.state.frameId!==e.frameId&&(r=e.frameId,e=e.fields,K.each(e,function(e,t){var n;!d[t]||(n=d[t].type)===a&&i.state.isTop||n===s&&!i.state.isTop||i.commit("_sync_".concat(t),{value:e,frameId:r})}))},enableEventLogging:function(e,t){e.commit("enableEventLogging",t)},eventCaptured:function(e,t){e.state.isTop?e.commit("eventsCaptured",t):E.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t})},receiveEventCaptured:function(e,t){e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:function(e){e.commit("eventsCaptured",[])},onCspError:function(e,t){e.state.isTop?e.commit("cspError",t):E.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:function(e,t){e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility:function(e,t){var i=t.guideId,n=t.response,t=K.filter(q.state.frames.frames,function(e){return e.guides&&e.guides[i]});t.length&&(t=K.map(t,function(n){var e=K.map(n.guides[i].steps,function(e,t){return E.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i})});return J.all(e).then(function(e){return{frameId:n.id,frameVisibility:n.visibility,errors:K.map(e,function(e){return JSON.parse(e).errors})}})}),J.all(t).then(function(e){return e}).then(function(e){return n(e)})["catch"](function(e){return n({error:e})}))}},t={},u={setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setIsTop:function(e,t){e.isTop=t},isLeader:function(e,t){e.isLeader=t},setInstallType:function(e,t){e.installType=t},stepEligibilitySet:function(e,t){var n=t.stepId;e.stepEligibilitySet[n]=t},guideLoopRunning:function(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity:function(e,t){e.identity=t},location:function(e,t){e.location=t},debuggingEnabled:function(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n.debuggingEnabled!==t&&(t?(c(),l(),y.on("stepEligibility",i),y.on("guideUpdateComplete",h),y.on("guideLoopStopped",f),y.on("eventCaptured",o),y.on("identify",c),y.on("urlChanged",l),e&&(r(),y.on("guidesLoaded",r))):(y.off("stepEligibility",i),y.off("guideUpdateComplete",h),y.off("guideLoopStopped",f),y.off("eventCaptured",o),y.off("identify",c),y.off("urlChanged",l),e&&y.off("guidesLoaded",r)))},excludedGuides:function(e,t){e.excludedGuides=t},autoOrdering:function(e,t){e.autoOrdering=t},throttling:function(e,t){e.throttling=t},eventsCaptured:function(e,t){K.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging:function(e,t){e.enableEventLogging=t},cspError:function(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()}};function i(e){e=e.data[0];q.commit("debugger/stepEligibilitySet",e)}function r(e){var t=K.map(yl.sortAndFilter(A(),C.autoOrdering),function(e){return e.id});q.commit("debugger/autoOrdering",t||[]),q.commit("debugger/excludedGuides",C.excludedGuides||[]),q.commit("debugger/throttling",C.throttling||{})}function o(e){q.dispatch("debugger/eventCaptured",e.data[0])}function c(e){q.commit("debugger/identity",{visitorId:K.get(e,"data.0.visitor_id")||C.get_visitor_id(),accountId:K.get(e,"data.0.account_id")||C.get_account_id(),apiKey:C.apiKey})}function l(){q.commit("debugger/location",{href:Ji(),browserUrl:window.location.href})}function p(e){q.commit("debugger/guideLoopRunning",e)}var h=K.partial(p,!0),f=K.partial(p,!1);return K.each(d,function(e,i){var r=e.type,e=e.defaultValue,o=(n[i]=e,t[i]=function(e){return e[i]},u[i]||function(e,t){e[i]=t});u[i]=K.wrap(o,function(e,t,n){!t.isTop&&r===a||(e(t,n),t.isTop&&r===s)||E.postMessage({action:"debugger/sync",frameId:t.frameId,fields:((e={})[i]=n,e)})}),o=u["_sync_".concat(i)]||o,u["_sync_".concat(i)]=function(e,t){var n=t.value,t=t.frameId;e.frames[t]||(e.frames[t]={}),e.frames[t][i]||(e.frames[t][i]=d[i].defaultValue),o(e.frames[t],n),e.isTop||r!==a||o(e,n)}}),{state:n,actions:e,getters:t,mutations:u}}();function Ny(e){e.registerModule("debugger",Oy),e.registerModule("errorLog",uy),e.registerModule("frames",vy),e.registerModule("guideUpdate",Sy),e.registerModule("guideState",vl),e.registerModule("healthCheck",Ay),e.registerModule("location",Dv),e.registerModule("monitoring",Ty),e.registerModule("metadata",_y),e.registerModule("preview",ky)}var My=function(){var r,o,n,i="pendo-loader";return{name:"IFrameMonitor",initialize:function(e,t){r=e,o=t,function(){o.ConfigReader.get("autoFrameInstall")&&o.Events.ready.on(p);o.ConfigReader.get("frameIdentitySync")&&(o.Events.metadata.on(f),o.Events.identify.on(g),o.Events.childFrameJoined.on(a))}(),n=o.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){o.Events.ready.off(p),o.Events.metadata.off(f),o.Events.identify.off(g),o.Events.childFrameJoined.off(a)}};function a(){m()}function s(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(i)}function d(e,t){var n;s(e)||((n=o.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=r.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=i,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function u(e,t){e.pendo.iframeWaiting=!1,d(e,t)}function c(e){try{if(s(e))return}catch(i){return}var t,n=(n=o.ConfigReader.get("selfHostedAgentUrl"))||(n=r.dom("script"),t=/\/pendo(\.\w+)?\.js$/,(n=r._.find(n,function(e){return t.test(e.src)}))&&n.src);n?"complete"===e.document.readyState?d(e,n):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",r._.partial(u,e,n))):r.log("Unable to find agent url to install agent in frames","debug")}function l(){for(var e=r.dom("iframe").length,t=0;t<e;t++)c(window.frames[t]);Dt(l,250)}function p(){l()}function h(){return!n||o.store.getters["frames/isLeader"]()}function f(e){h()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function g(e){var t;m(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function m(e,t){void 0===e&&(e=Q()),void 0===t&&(t=fi()),h()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function Ly(e,n){return e.length==n.length&&K.all(e,function(e,t){return e===n[t]})}var Fy=function(){function e(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}return e.prototype.markDirty=function(){this.queue.push.apply(this.queue,this.domActivation.guides)},e.prototype.process=function(e){var t,n=this.queue.shift();if(n){e.saveContext(n);try{t=s(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),Ly(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),K.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}},e.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&X.warn("Element activated guide ("+e.id+") timeout exceeded")},e.prototype.cancel=function(){this.queue.length=0},e.prototype.isComplete=function(){return!this.queue.length},e}(),Py=function(){var n,i,a="pendoTargetId",t=[],r={};return{name:"DOMActivation",key:a,guides:t,targets:r,reset:c,init:e,attach:function(n,i,e){var t=n[a],r=t?e[t]:null;r||(t=t||"target"+K.uniqueId(),r={target:n,events:{}},e[t]=r,n[a]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,K.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=K.partial(u,K,t.guideIds),I(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:d,handler:u,activates:l,prefetch:p,initialize:function(e,t){(n=t).Events.on("deliverablesLoaded",c),t.Events.on("guideListChanged",o),t.Events.on("guidesLoaded",s),jl(i=new Fy(Py))},teardown:function(){zl(i),n.Events.off("deliverablesLoaded",c),n.Events.off("guideListChanged",o),n.Events.off("guidesLoaded",s)}};function o(){c(),e(qd())}function s(){p(qd())}function d(i,t){K.each(t[i.id],function(e){var n=e?t[e]:null;n&&(K.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],K.size(e.guideIds)<=0)&&(w(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),K.size(n.events)<=0)&&(delete n.target[a],n.target=null,delete t[e])}),delete t[i.id]}function u(e,t){var n;!e.pendoActivatedGuide&&!ee.data.get(e,"advanced")&&(n=m.get("adoptPrioritizeAdoptGuides"),t=K.compact(K.map(K.keys(t),function(e){return T(e)})),t=K.filter(t,function(e){return!(!e.steps||!e.steps.length||K.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=K(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=K.find(t,function(e){var t=K.first(e.steps);return K.get(e,"attributes.resourceCenter",!1)&&e.isShown()?se.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||xf(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function c(){K.each(t,function(e){d(e,r),e.targets=[]}),t.length=0}function l(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Vf())){var t=K.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=yu(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function e(e){K.each(e,function(e){e=l(e);e&&t.push(e)})}function p(e){m.get("disablePrefetch")||K.each(e,function(e){K.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&K.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}}(),Gy;function Dy(){return{dom:ee,placeBadge:up,showPreview:Tf,stopGuides:El,removeAllBadges:cp,_:K,sizzle:s,tellMaster:ga,tell:ga,log:pv,attachEvent:I,createLauncher:K.constant({}),removeLauncher:K.noop,addGuideToLauncher:K.noop,updateLauncherContent:K.noop,DEFAULT_TIMER_LENGTH:Al,getOffsetPosition:ie,getScreenDimensions:lo,registerMessageHandler:ia,whenLoadedCall:Vd,loadResource:Vo,loadGuideCss:kg,GuideFactory:Nu,GuideStep:Mu,extractElementTreeContext:Cd,previewGuideFromJSON:x.previewGuideFromJSON,hidePreviewedGuide:x.hidePreviewedGuide,shadowAPI:c,getTarget:Ui,pullContentsFromTargetElement:If,doesElementMatchContainsRules:wf,doesElementContentMatchRule:Cf,getGuideAttachPoint:oe}}var By=function(){(Gy=Gy||Dy()).areGuidesEnabled=!jg(),C.designer||(C.designer=Gy)},Wy=function(){C.designer&&(C.designer=null,delete C.designer)},Uy=function(){var r,o,i,a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Ia()||ia("connect",n);ia("pendo-designer-launch::launch",u),ia("pendo-preview::launch",c),e.app_name=document.title,(ma()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Ko,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Ko,!1),s(),ra("connect"),ra("pendo-designer-launch::launch"),ra("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined)},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:u,launchPreviewListener:c,sendToken:d};function n(e,t){var n,i;r.isSendingEvents()&&(n=t.origin,r.stopGuides(),r.buffers.lock(),Qo(i=t.source),r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),By(),ga(t.source,{status:"success",type:"connect"},n),ua("selection.js")&&(r.log("Designer Modules already loaded."),ga({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),Wy(),e&&ga(e,{type:"unload"},t)}function d(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function u(e,t){var n,t=t.data.token;t&&(i=t,ia("pendo-designer-launch::get-token",d),n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},r.designerv2.launchInAppDesigner(n))}function c(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==_e()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),Tr()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),Ip(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),om(),o.store.dispatch("frames/startPreview")))}}(),$y="__sg__",jy=function(){var i,r="promotedAgentMetadataConfigurations",o=[],a={},s={};return{name:"PromoteMetadata",initialize:function(e,t){if(o=(i=t).ConfigReader.get(r),s={},h.registry.addLocal($y),Jn())try{a=JSON.parse(h.read($y))||{}}catch(n){a={}}o&&o.length&&(i.Events.on("metadata",u),i.Events.on("eventCaptured",p),i.Events.on("identify",c))},teardown:function(){i.Events.off("metadata",u),i.Events.off("eventCaptured",p),i.Events.off("identify",c)},getPromotedMetadata:function(){return o},hasPromotedMetadataKind:d,setSchemaGroup:u,getSchemaGroup:e,resetSchemaGroup:t};function d(t){return K.some(o,function(e){return e.kind===t})}function e(){return s}function u(e){var t;e?(e=e.data[0].options)&&(t=e):t=rl(),s=function(r){Jn()&&(a=function(e){return K.mapObject(e,function(t,e){var n={};return Object.keys(t).forEach(function(e){n[e.replace("agent__","")]=t[e]}),n})}(a=JSON.parse(h.read($y))||{}));var o=s;K.each(["visitor","account","parentAccount"],function(e){var t=d(e),n=!K.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!K.isEmpty(a)&&K.isEmpty(za.get())&&(o[i]=l(a[i],e)),n)&&(t=l(r[e],e),K.isEmpty(t)||(o[i]=Kt(Kt({},o[i]),t)))}),Jn()&&h.write($y,JSON.stringify(o),undefined,!1,!0);return o}(t)}function c(e){e=e.data[0];K.get(e,"wasCleared")&&(h.clear($y),t())}function t(){s={}}function l(e,i){var r={};return e&&K.each(e,function(e,t){var n=t.toLowerCase();Boolean(K.find(o,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function p(e){e=e.data[0];e&&(K.isEmpty(s)&&u(),K.isEmpty(s)||("track"===e.type?e.props.__sg__=s:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=s)))}}();function zy(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}zy.prototype.add=function(){0===K.indexOf(this.guide.steps,this.step)&&!zy.shouldAttachHandler(this.guide,this.method)||lu(this.guide)&&!pu(this.guide)||this.setupElementEvent(this.element,this.method)},zy.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},zy.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=K.compose(K.bind(this.teardownElementEvent,this,e,t),K.bind(this.step.advance,this.step))),zy.attach(this.step,e,t,this.advanceFn)},zy.prototype.teardownElementEvent=function(e,t){X.info("detach onGuideAdvanced",{contexts:["guide"]}),w(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},zy.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||Py.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector},zy.attach=function(e,t,n,i){if(e){for(var r=zy.handlers=zy.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(w(t,n,s[2],!0),o.splice(K.indexOf(o,s),1),a--)}o.push([t,n,i]),w(t,n,i,!0),I(t,n,i,!0)}};var Zy=430,Vy=200,Yy=15,Hy=null,Ky=function(){return fu()?cu:uu},Xy=function(e){return"#_pendo_g_"+e.id},Jy=function(e,t){Hy=null;var n,i,r,o,e=ie(e);return 0===e.height&&0===e.width?null:(n=t.guideElement,o=t.attributes.height,i=t.attributes.width,r=t.attributes.layoutDir,n.addClass(Ky()),o=hb(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),ee("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),qy(n[0],o),n[0])},qy=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=K.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+C.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=ee("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=ee("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");K.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),d.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),d.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),ee(e).append(s).append(d)},Qy=function(e,t){t===undefined&&(t=Hd),e.element=mu(e);var n=e.element;if(!n)return X.info("No element found for step: "+e.id),null;Do(n);var i=Jy(n,e);return null===i?null:(i.id=C.getTooltipDivId(e),ee(i).appendTo(oe()),t.push(i),I(i,"mouseover",K.partial(ee.addClass,i,"mouseover")),I(i,"mouseout",K.partial(ee.removeClass,i,"mouseover")),bu(n,i),db(e),n)},eb=null,tb=function(e){var t=!K.isEqual(e,eb);return eb=e,t},nb=null,ib=function(e){var t=!K.isEqual(e,nb);return nb=e,t};function rb(){ob=nb=eb=null}var ob=null,ab=function(e){var t=!K.isEqual(e,ob);return ob=e,t},sb={top:"north",left:"east",bottom:"south",right:"west"},db=function(e){try{var t,n,i,r,o,a,s,d;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=Qu(n=n.concat(K.compact(K.flatten(K.map(t.additionalElements,function(e){return K.toArray(ee(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=qu(a=Ju(),i,o),tb(i)||ib(a)||ab(s))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),K.each(s,function(e,t){ub(sb[t],K.extend({},e,d))}))}catch(u){X.info("Failed to add BlockOut ui",{contexts:["error"]})}},ub=function(e,t){e=ee("div._pendo-guide-tt-region-block_._pendo-region-"+e+"_")[0]||cb(e);ee(e).css(t)},cb=function(e){e=ee(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");ee("body").append(e)},lb=function(e){var t=K.isEqual(e,Hy);return Hy=e,!t},pb=function(e){var t,n,i,r=ie(e.element||mu(e));db(e),lb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=hb(r,n,i,t),(i=ee(Xy(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),qy(i,n))},hb=function(e,t,n,i){var r=C.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=lo();return o.width=Math.min(n,a.width),o.height=t,o.content.width=o.width-2*r,o.content.height=o.height-2*r,o=fb(o,e,a,i=i||"auto"),o=gb(o,e,a,i),o=mb(o,e,a)},fb=function(e,t,n,i){return e.arrow.hbias=bc(t,n,i),e},gb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-Mr(),t=(r=t.left-Lr())+t.width,i<n.height/3?e.arrowPosition="top":i>2*n.height/3||"center"==e.arrow.hbias?e.arrowPosition="bottom":r<e.width&&n.width-t<e.width?e.arrowPosition="top":e.arrowPosition=e.arrow.hbias),e},mb=function(e,t,n){var i,r,o,a=e.height,s=e.width;return Qe()?et(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=ke(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-C.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=ke(9,6)?6:0,e.arrow.top+=8==d?-1:0,i=1),r=10+C.TOOLTIP_ARROW_SIZE,o=s-3*C.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==mc?(e.left=t.left+t.width/2-(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==vc?(e.left=t.left-s+t.width/2+(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-C.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==mc?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=ke(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==vc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-C.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=ke(10,6)?5:0,e.arrow.left+=7==d&&6<=Oe?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-C.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},vb=function(){return C.TOOLTIP_ARROW_SIZE},yb={width:Zy,height:Vy,arrowSize:Yy};function bb(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||C.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||C.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||mu(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=K.map(e,function(e){return new zy(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=K.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!mf(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Vf())&&bf(t)},this.after("render",function(){Qy(this,this.elements)&&(K.each(this.getTriggers(),function(e){e.add()}),wc.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=ee("._pendo-guide-container_",i),o=ie(this.element),t=hb(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),ee("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),qy(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,db(this)},this.onscroll=function(e){b(e.element)?(e.reposition(),so(e.elements[0],"display:block")):so(e.elements[0],"display:none")},this.teardownElementEvent=function(){K.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){ee("._pendo-guide-tt-region-block_").remove(),rb()})),this}var Ib=500,wb=500,Cb="_pendo-guide-lb_",Sb=function(e,t){var n=!!ee("._pendo-backdrop_")[0];return K.get(t,"overlayDiv[0]")||(t.overlayDiv=ee(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(oe())),Qe()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&ee(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},Ab=function(e){var t=e.guideElement,n=C.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass(Cb).css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),ee("._pendo-guide-container_",t).css({bottom:n,right:n}),Qe()&&t.css({position:"absolute"})},Tb=function(e,t){t===undefined&&(t=Hd),e.element=mu(e),Ab(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(Sb(n,e),e.guideElement);t.push(n[0]),n.appendTo(oe())},_b="_pendo-guide-mobile-lb_",Eb=function(e){e.guideElement.addClass(_b)},xb=function(e,t){t===undefined&&(t=Hd),e.element=mu(e),Eb(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=Sb(n,e),e=e.guideElement,i=C.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),ee("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}ee("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(oe()),t.push(e[0]),I(n[0],"touchmove",r),I(e[0],"touchmove",r)};function Rb(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||C.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||C.LB_DEFAULT_WIDTH,e.after("render",function(){(fu()?xb:Tb)(e,e.elements)}),e.reposition=function(){fu()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var kb=500,Ob="_pendo-guide-banner_";function Nb(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||kb,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=C.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(Ob).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),hu()||e.addClass("_pendo-in_"),ee("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=mu(n),n.elements.push(e[0]),e.appendTo(oe())})),n}function Mb(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(K.extend(n,{isShown:K.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=ee(document.createElement("div")).attr("id",Sf(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),K.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),K.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Co(e[0])&&(ee("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Uu.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){hu()||a()&&n.seenState!==r&&function(e){{var t,n;if(b(e,/(auto|scroll|hidden)/))return(t=_o(e))?(t=re(t),e=re(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Of(n.guideId,n.id,Q(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,K.delay(function(){n.guideElement.addClass(i+" out")},K.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var Lb="_pendo-launcher-searching_",Fb="._pendo-launcher-search-box_ input";function Pb(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){ee(Fb).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,C.disableGuideCenterContentSearch||this.before("update",$b),this.before("update",function(){t.text=Ub().join(" ");var e=ee("._pendo-launcher_");t.text?e.addClass(Lb):e.removeClass(Lb)})),this}function Gb(){var e;if(C.guideWidget)return(e=C.guideWidget.data)&&e.enableSearch}var Db=function(e){return e&&K.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")},Bb;function Wb(){return 0<Ub().length}function Ub(){var e;return Gb()&&(e=ee(Fb)[0])&&0<(e=e.value).length?(e=gt.call(e),[].concat(K.compact(e.split(" ")))):[]}function $b(e){if(!m.get("disablePrefetch"))return J.all(K.map(e,function(e){return e.fetchContent()}))}function jb(e){var t=Ub();return 0===t.length?e:(t=K.map(t,K.partial(zb,e)),K.union.apply(K,t))}function zb(e,t){return X.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||A(),t&&0!==t.length?K.chain(e).filter(Db).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return K.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var Zb=function(){var e,t=ou();Cu()?C.guideWidget&&C.guideWidget.enabled&&(e=n0(t),b0(e,!0)):(v0(),(t=i0(n0(e=Qd(t))))!==Bb&&q.dispatch("frames/changeGuideList",e),Bb=t)},Vb=330,Yb=310,Hb="launcher-closed",Kb=null,Xb=null,Jb=!1,qb="_pendo-launcher-active_",Qb=null,e0=function(){return""};function t0(e,t){e0=t}function n0(e){return jb(K.filter(e||A(),Db))}function i0(e){return Rt(K.map(e,function(e){var t=e.isWhatsNew()?[]:K.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function r0(e){var n=this,t=e.launchType||"badge",i=(K.extend(n,{show:function(){"badge"===t&&ee(n.element).css("display: ;")},hide:function(){ee(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=ee(document.createElement("div")).addClass(e.className).append(e).appendTo(oe()),e.className="",n.element=t[0])}},dispose:function(){ee.removeNode(n.element)},setActive:function(e){e?ee(n.element).addClass(qb):ee(n.element).removeClass(qb)}}),e),e=i.position||"bottom-right",r=document.createElement("img");ee(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Fu(i.launcherBadgeUrl)),r.onerror=function(e){X.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),X.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},Qe()&&(I(r,"mouseover",function(e){ee(r).addClass("_pendo-launcher-badge-active_")}),I(r,"mouseout",function(e){ee(r).removeClass("_pendo-launcher-badge-active_")}),ee(r).css({position:"absolute"})),oe().appendChild(r)}function o0(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=Ui(e),t=n();ee(e).closest(t).length&&(T0()?h.write(Hb,"yes",864e6):C.guideWidget.position(e),R0())}C.guideWidget.removeCountBadge=function(){ee("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),K.extend(this,{getLauncherTarget:function(){return ee(n())[0]},dispose:function(){w(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k0()}}),I(document,"click",t)}function a0(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:n0(e),e=i0(t)+Rt(Ub());return e!==n&&(n=e,this.updateLauncherContent(t)),g0(),0<t.length},this.updateLauncherContent=w0,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(Kb=new r0(e),e.height||Yb),n=(e.enableSearch&&(t+=Qe()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||Vb),i=(e.addWidth&&(n+=e.addWidth),this.width=n,ee(document.createElement("div")).addClass("_pendo-launcher_")),r=(Xb=i[0],ie(Kb.element)),r=hb(r,t,n),o=(i.css({width:n,height:t}),C.TOOLTIP_ARROW_SIZE),n=ee(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=I0(),o=Fu(u0(this.template(t))),t=ee(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Yh(i[0],function(){E0(),h.write(Hb,"yes",288e5)}),t.on("click",function(e){var t=ee(Ui(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=T((t=/^launcher-(.+)$/.exec(gt.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(xf(t.steps[0],"launcher"),E0(),Zd(e))}),Qe()&&(ee("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),ee("._pendo-launcher-footer_",i).css({"border-top":"1px solid #bbb"}),i.css({position:"absolute"})),i.find("[pendo-style]").each(function(){var e=this.getAttribute("pendo-style");ee(this).css(e)}),i.appendTo(oe()),K.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!ke(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),ee("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data,e=ie(e),n=hb(e,this.height,this.width),i=ee(Xb),"badge"===(r=t.launchType||"badge")?(o=t.position,K.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),K.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=K.contains([s,d],o)?"bottom":"top",n.arrow.hbias=K.contains([d,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),ee("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),mb(n,e,{width:Infinity,height:Infinity}),qy(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=R0,this}function s0(){var n,i=this;return i.data&&i.data.onboarding&&(n=i.onboarding=i.onboarding||{},i.before("update",function(e){var e=K.filter(e,Qv),t=K.filter(e,function(e){return"complete"==i.guideStatus(e)}),e=n.total=e.length,t=(n.percentComplete=0<e?Math.round(t.length/e*100):0,ee("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),i.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null}),i}function d0(){var n=this,i=ee(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");return n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=K.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(K.each(t,function(e){e.show()}),K.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),K.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,ee("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){y0()?i.appendTo(this.data.launchElement):(Kb.wrap(),i.appendTo(Kb.element))})),n;function t(e,t){var n=function(e,t){e=e.showsAfter||e.publishedAt||0;return(t.showsAfter||t.publishedAt||0)-e}(e,t);return 0===n?(t=t,e=(e=e).name.toLowerCase(),(t=t.name.toLowerCase())<e?1:e<t?-1:0):n}}function u0(e){return e=K.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function c0(e,t){var n=e&&e.data,t=K.filter(t,function(e){e=K.first(e.steps);return e&&"launcher"===e.type}),t=K.first(K.sortBy(t,function(e){return-e.lastUpdatedAt}));return t&&n&&(t=K.first(t.steps),K.extend(n,K.pick(t,"contentUrl","contentUrlCss","contentUrlJs"),t.attributes),K.defaults(n,{whatsnew:{},knowledgebase:{}}),n.id=t.guideId+t.id),e}function l0(t){var n=t&&t.data||{};return!0!==m.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Ru.verify(n).then(function(){return Bu.load(n)}).then(function(e){return n.template=e.content,K.extend(t,e)}):J.resolve()}function p0(e,t){var n=m.getLocalConfig("contentHost");return n&&(e=(e=e.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,n).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,n).replace(/^cdn\.pendo\.io$/,n)).replace(/^https?:/,"").replace(/^\/\//,""),!/\./.test(e))&&!/^localhost/.test(e)&&/^\//.test(e)?t.host+e:e}function h0(e,t){e.contentHostUrl&&(e.contentHostUrl=p0(e.contentHostUrl,location)),Qb=new o0(e);var n=a0.create(C.guideWidget);return K.isFunction(n.template)||(n.template=e.template?K.template(e.template):e0),n.render(),n.position(Qb.getLauncherTarget()),t&&n.toggle(),n}a0.create=function(e){return K.reduce(a0.behaviors,function(e,t){return t.call(e)},e)},a0.behaviors=[Zl,a0,ku.Launcher,Pb,s0,d0];var f0=function(){Xb&&(ee.removeNode(Xb),Xb=null),Qb&&(Qb.dispose(),Qb=null),Kb&&(Kb.dispose(),Kb=null)},g0=function(){(y0()||!_0()&&!Wb()?v0:m0)()},m0=function(){Kb&&Kb.show()},v0=function(){y0()||E0(),Kb&&Kb.hide()},y0=function(){return!(!C.guideWidget||!C.guideWidget.data||"element"!==C.guideWidget.data.launchType)},b0=function(e,t){if(C.guideWidget&&K.isFunction(C.guideWidget.update))return C.guideWidget.update(e,t)},I0=function(e){var t=rl(),t=K.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:Et(t)},C.guideWidget);return t.data=K.extend({},t.data),e&&(t.guides=e),t};function w0(e){var t=C.guideWidget.template||e0,e=I0(e),e=ee(document.createElement("div")).html(u0(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();ee("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){ee(e).html(n.eq(t).html())}),ee("._pendo-launcher_ ._pendo-launcher-footer_").html(t),ee("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var C0=function(e){var t=document.createElement("div"),n=(ee(t).addClass("_pendo-launcher-item_"),ee(t).attr("id","launcher-"+e.id),document.createElement("a"));return n.href="#",n.innerHTML=e.name,t.appendChild(n),t},S0=K.compose(g0,function(e,t){var n,i;Db(e)&&(n=ee("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(i=ee("#launcher-"+e.id)).length?i[0]:C0(e),i=0<i.length,K.isNumber(t)&&(i=ee("._pendo-launcher-item_"))[t]?e.id!=i[t].id&&n.insertBefore(e,i[t]):n.appendChild(e))}),A0=function(){return!!Xb&&!Jb},T0=function(){return ee(Xb).hasClass(qb)},_0=function(){return 0<ee("._pendo-launcher-item_").length},E0=function(){var e;Xb&&(e=ee(Xb))&&e.hasClass(qb)&&(e.removeClass(qb),Kb)&&Kb.setActive(!1)},x0=function(){var e;Xb&&(e=ee(Xb))&&!e.hasClass(qb)&&(e.addClass(qb),Kb)&&Kb.setActive(!0)},R0=function(){A0()&&(T0()?E0:x0)()};function k0(){ee("._pendo-launcher-whatsnew-count_").remove()}var O0=function(){try{var e=C.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};f0(),!fu()&&!n.desktop||fu()&&!n.mobile||ma()&&!n.iframe||e.enabled&&(h0(t),v0())}catch(i){X.critical("ERROR while initializing launcher",{error:i})}},N0=function(e){e.defaultLauncher=t0,e.toggleLauncher=R0,e.showLauncher=x0,e.hideLauncher=E0,e.removeLauncher=f0,e.initLauncher=O0,e.createLauncher=h0,e._addGuideToLauncher=S0,e.launcherToolTipDiv=Xb},M0=function(e){e.designer&&(e.designer.createLauncher=h0,e.designer.removeLauncher=f0,e.designer.addGuideToLauncher=S0,e.designer.updateLauncherContent=w0)},L0=function(e){e.debugging&&(e.debugging.getLauncherGuides=n0)},F0=function(){O0()},P0=function(){M0(C)},G0=function(){L0(C)},D0=function(e){return l0(c0(C.guideWidget,e))},B0=function(e,t){N0(e),t.Events.on("guidesLoaded",F0),t.Events.on("designerLaunched",P0),t.Events.on("debuggerLaunched",G0),t.GuideLoop.addUpdatePhase(Zb),Cg(D0),t.agentStorage.registry.addLocal(Hb)},W0=function(e,t){Sg(D0),t.GuideLoop.removeUpdatePhase(Zb),t.Events.off("guidesLoaded",F0),t.Events.off("designerLaunched",P0),t.Events.off("debuggerLaunched",G0)};function U0(){return-1<K.indexOf(Mu.behaviors,bb)}var $0=function(){var r,i,o,a;return mm.Extensions.API.addTopic("Launcher",{addBehavior:function(e){a0.behaviors.push(e)}}),{name:"P1Guides",initialize:function(e,t){var n;o=t,r=(i=e).dom,a=[bb,Rb,Nb,Mb,u,c,d,s],U0()||(n=K.indexOf(Mu.behaviors,ry),Mu.behaviors.splice.apply(Mu.behaviors,[n,0].concat(a)),t.Events.guideLoopStopped.on(v0),e.TOOLTIP_DEFAULT_WIDTH=yb.width,e.TOOLTIP_DEFAULT_HEIGHT=yb.height,e.TOOLTIP_ARROW_SIZE=yb.arrowSize,e._showElementGuide=Qy,e._createTooltip=Jy,e._get_tooltip_dimensions=hb,e.LB_DEFAULT_WIDTH=Ib,e.LB_DEFAULT_HEIGHT=wb,e._showLightboxGuide=Tb,B0(e,t))},teardown:function(){W0(i,o),o.Events.guideLoopStopped.off(v0),a.forEach(function(e){e=K.indexOf(Mu.behaviors,e);0<=e&&Mu.behaviors.splice(e,1)}),a=[]}};function s(){var e=this;return"tooltip"!==e.type||e.domJson||(e.checkPlacement=function(){pb(e)}),e}function d(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=vb(),n=i.guideElement;n&&(e=r("._pendo-guide-container_",n),"tooltip"==i.type||Qe()&&"lightbox"==i.type?e.css({width:i.attributes.width-2*t,height:""}):e.css({right:t,bottom:""}),i.attributes.height=e.height()+2*t,n.height(i.attributes.height),i.reposition())}),i}function u(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Yh(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||uf(t)})}),t}function c(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||e.after("render",function(){gf(e.guideElement[0])}),e}}(),j0=function(){var n,i;return{name:"Branding",initialize:function(e,t){n=e,(i=t).ConfigReader.get("isPendoFree")&&i.Events.on("guideSeen",r)},teardown:function(){i.Events.off("guideSeen",r)},addBranding:t};function r(e){t(n,e)}function t(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=-1<(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild).dataset.verticalAlignment.indexOf("Bottom"),n=""!==t.style.width,(i=document.createElement("a")).href="https://www.pendo.io/pendo-free/nps?utm_source=pendo_app&utm_medium=branded-nps&utm_campaign=free-branded-nps",i.target="_blank",(r=document.createElement("img")).setAttribute("src",Sr()+"/img/nps-branding.png"),i.appendChild(r),i.style.display="inline-block",(r=document.createElement("div")).style.lineHeight=0,r.style.padding="8px",e&&(r.style.position="absolute",r.style.bottom="100%"),n&&(r.style.paddingLeft=0),r.append(i),t.append(r))}}(),z0=function(){var r,o,n,i,a="automation",e=250,t=500,s=0,d=10;return{name:"ActionAutomation",automationQueue:void 0,initialize:function(e,t){n=t,r=(o=e)._,this.automationQueue=[],t.EventRouter.registerAction(a,e._.bind(u,this))},teardown:function(){n.EventRouter.deregisterAction(a),this.automationQueue=[]},guideActivity:u,getAutomationFromGuide:function(i,e){return r.reduce(e,function(e,t){var n=r.find(i,function(e){return e.id===t});return n?e.push(n):o.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!i)return[];var t=i.guide,n=i.step;if(!t||!n)return[];n=t.automations;if(!n||!n.length)return[];n=this.getAutomationFromGuide(n,e),e=n[n.length-1];if(this.isAutomationInQueue(e))return o.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=o.Sizzle(e,document);return e&&e[0]},getElement:function(n,i){void 0===i&&(i=d);return new Vt(function(t){return Dt(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})}.bind(this),e)}.bind(this))},getValue:function(e){return e.value},injectText:function(e,t){"INPUT"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"));"TEXTAREA"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"));n&&"function"==typeof n.set&&n.set.call(e,t);e.value=t;var n=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t=(n.simulated=!0,e.dispatchEvent(n),new InputEvent("change",{bubbles:!0}));t.simulated=!0,e.dispatchEvent(t)},isAutomationInQueue:function(t){return!!r.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){var e=s,n=this.automationQueue[0];"autoclick"===n.type&&(e=t);return Dt(function(){return this.getElement(n,d).then(function(e){if(e)if(e.disabled)this.automationQueue=[],o.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],o.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")}.bind(this))}.bind(this),e)},setActive:function(e){i=e}};function u(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=r.find(e.params,function(e){return"automationIds"===e.name&&r.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):o.log("no automation ids were found","debug"))}}();function Z0(e,i){return"undefined"!=typeof Proxy&&K.isFunction(i)?new Proxy(e,{get:function(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return Z0(e[t],i)}return K.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}var V0=function(){var n,l,p,h,t,i=wi(function(n){{var e;p.eventProperties&&p.eventProperties.length&&(e=function c(n){var i=h.ConfigReader.get("eventPropertyMatchParents");var e=v();var t={};var r;for(var o=0;o<p.eventProperties.length&&v()-e<50;o++){r=p.eventProperties[o];var a=p._.any(r.featureRules,function(e){try{var t=f(i,l);return t(n,e)}catch(err){return!1}});if(a)for(var s=0;s<r.eventPropertyRules.length&&v()-e<50;s++){var d=r.eventPropertyRules[s];if(!d.name)return;t[d.name]=m(d,n)}}var u=v()-e;if(50<u){if(i&&l===p._.identity&&p._.isFunction(p.getText))return p.log("switching event property collection to fast text implementation"),l=function(e){return Z0(e,function(e){return p.getText(e,128)})},c(n);g(50,r)}return t}(n.target),K.pairs(e).forEach(function(e){var t=e[0],e=e[1];n.addEventProperty(t,e)}))}}),r=wi(function(){var e={};if(n)return{};var t=h.ConfigReader.get("eventPropertyConfigurations");if(!t||p._.isEmpty(t))return{};if(e=function(e){for(var t,n=v(),i={},r=0;r<e.length&&v()-n<50;r++){if(!(t=e[r]).name)return;var o=m(t);o&&(i["_pendo_"+t.name]=o)}50<v()-n&&g(50,t);return i}(t),p._.isEmpty(e))return{};return e});return{name:"EventProperties",initialize:function(e,t){h=t,l=(p=e)._.identity,n=!1,p.getEventPropertyTarget=s,p.previewEventProperty=m,h.Events.onClickCaptured.off(o),h.Events.onClickCaptured.on(o),h.Events.ready.on(a)},teardown:function(){h.Events.onClickCaptured.off(o),h.Events.ready.off(a),h.store.dispatch("location/removeInternalTransforms",t),t=[],h.store.dispatch("location/stopPolling")},collectClickEventProperties:i,collectEventProperty:m,collectPageEventProperties:r,getEventPropertyTarget:s,addPageEventProperties:a};function f(e,n){return e?function(e,t){return 0<p.dom(n(e)).closest(t).length}:function(e,t){return p.Sizzle.matchesSelector(e,t)}}function o(e){i(e.data[0])}function a(){var e;e=h.ConfigReader.get("eventPropertyConfigurations"),t=e&&!p._.isEmpty(e)?[new Pv("search","AddTo",function(){return r()})]:[],h.store.dispatch("location/addInternalTransforms",t),0<t.length&&h.store.dispatch("location/startPolling")}function g(e,t){p.log("event property collection disabled; collection took greater than "+e+" milliseconds.");e="ERROR event property collection exceeded time limit.";t.featureId?e+="\n For feature with id: "+t.featureId:e+="\n For page event with name: "+t.name,X.critical(e),t.featureId?p.eventProperties=[]:n=!0}function m(e,t){if(e.path)return t=s(e,t),p._.get(t,e.path,undefined)}function s(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=p.Sizzle.matchesSelector(r,i)?r:p.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(err){return}r=c.getParent(r)}return n}return e?!(t=p.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}(),Y0;function H0(){return{store:q,ConfigReader:m,getState:function(){return JSON.stringify(q.state)},getEventCache:function(){return[].concat(wa)},getAllGuides:function(){return[].concat(A())},getAutoGuides:function(){return yl.sortAndFilter(A(),C.autoOrdering)},getBadgeGuides:function(){return K.filter(A(),lu)},getLauncherGuides:function(){return[]},getEventHistory:function(){return[]},getAllFrames:function(){return q.getters["frames/allFrames"]()},getChannelType:function(){return q.getters["frames/channelType"]()},isStepShownInFrame:function(e,t){return q.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:eu,getBody:ee.getBody,isMobileUserAgent:l.isMobileUserAgent,areGuidesDelayed:zg,doesElementMatchContainsRules:wf,getMetadata:rl,isStagingServer:U,AutoDisplay:yl,isLeader:Cu,Events:y}}function K0(){var e;Yl().enabled&&(q.commit("debugger/debuggingEnabled",!0),X0(),ee("#pendo-client-debugger").length||(e=m.get("agentDebuggerPluginLoader"),mm.restartDebugger?mm.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=Te(C).createScriptURL(Ar("debugger-plugin.min.js")),ee.getBody().appendChild(e)),y.debuggerLaunched.trigger()))}function X0(){Y0=Y0||H0(),C.debugging=Y0}function J0(e){var t;return Hl()?e?t:"debugging already enabled":Cu()?((t=Yl()).enabled=!0,h.write(Vl,JSON.stringify(t),null,!0),K0(),e?t:"debugging enabled"):void 0}function q0(){if(!Hl())return"debugging already disabled";q.commit("debugger/debuggingEnabled",!1);var e=Yl();return e.enabled=!1,h.write(Vl,JSON.stringify(e),null,!0),C.debugging=null,delete C.debugging,ee("#pendo-client-debugger").remove(),"debugging disabled"}K.extend(Cv,Y0);var Q0=function(e,t,n){var i;return t.getters["frames/leaderExists"]()?n.resolve():(i=n.defer(),e.on("leaderChanged",function(){i.resolve()}),i.promise)},eI=function(){var r,o;return{name:"DebuggerLauncher",initialize:function(n,e){var t=e.Events,i=e.q;o=e.store,Q0(t,o,i).then(function(){o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&K0(),ia("pendo-debugger::launch",function(e,t){e.config.apiKey!==n.apiKey||(t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),Hl())||J0(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(r=n).isDebuggingEnabled=function(e){return Hl(e=void 0===e?!1:e)},n.enableDebugging=J0,n.disableDebugging=q0,n.addDebuggingFunctions=X0},teardown:function(){ra("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),r.debugging&&r.debugging.teardown&&r.debugging.teardown();q0()}};function a(e){var t=e.blockedURI,n=e.documentURI,i=e.originalPolicy,e=e.violatedDirective;t&&-1!==t.indexOf("pendo")&&o.dispatch("debugger/onCspError",{blockedURI:t,documentURI:n,originalPolicy:i,violatedDirective:e})}}(),tI=function(){var i,a,s,d,u,c,n,l,r,o,p=0,h=[],f=100,g=4,m=500,v=["TEXTAREA","INPUT"],y=!0,b={},I="previous_page_loads",w="errorClickLogging",C=1500,S=!1;return{name:"FrustrationEvent",initialize:function(e,t){u=(o=e)._,p=0,h=[],c=[],b={},S=(i=t).ConfigReader.get(w),this.detachErrorEvent=i.attachEvent(window,"error",M,!0),this.detachDocumentEvents=function(){for(var e=qt(qt([],["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],!0),["visibilitychange","selectionchange","scroll"],!1),t=[],n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],_,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],function(){T(250)},!0));break;default:t.push(i.attachEvent(window,e[n],T,!0))}return t}(),i.Events.on("eventCaptured",F),i.agentStorage.registry.addSession(I),o.sniffer.MutationObserver&&(e=Lt("MutationObserver"),(n=new e(E)).observe(o.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",F),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect()},addErrorClickLog:k,getErrorEventTarget:N,checkErrorEvent:M,observeDOMMutation:E};function A(t){void 0===t&&(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()),(h=u.filter(h,function(e){return t-e.timestamp<=f})).length&&Dt(A,f)}function T(e){void 0===e&&(e=m),y=!1,u.each(b,function(e){clearTimeout(e)}),b={},Dt(function(){y=!0},e)}function _(){var e=document.getSelection().toString();(l||e.length)&&(T(),l=!!e.length)}function E(e){e.length&&T()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function x(e){return e&&t(e.element)}function R(e,t){var n=e.frustrationTypes,n=void 0===n?[]:n;n.includes(t)||(n.push(t),e.frustrationTypes=n)}function k(e,t){var n=t.detail,n=void 0===n?{}:n,n=(x(n)&&n.error?n.error:t).message;n&&n.length>C&&(n=n.substring(0,C)),e.errorClickLog=n}function O(e,t){var n,i,r=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),o=t.target&&!v.includes(t.target.tagName);y&&!l&&o&&!r&&(n=e,i=Dt(function(){delete b[i],R(n,"deadClick")},m),b[i]=i),9<h.length&&h.pop(),h.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Dt(A,f),u.each(c,function(e){M(e)}),a?(o=t,e.browser_time-a<=1e3&&Math.abs(s-o.x)<=30&&Math.abs(d-o.y)<=30?p++:(p=1,s=t.x,d=t.y),a=e.browser_time,4===p&&(a=null,R(e,"rageClick"))):(a=e.browser_time,s=t.x,d=t.y,p=1)}function N(e){if(t(e.target))return x(e=void 0===(e=e.detail)?{}:e)?e.element:t(document.activeElement)?document.activeElement:void 0}function M(t){var n,i,e,r=N(t);r&&((n=u.find(h,function(e){return(e.target===r||e.activeElement===r)&&t.timeStamp-e.timestamp<f}))?(e=u.find(o.buffers.events,i=function(e){return e.browser_time===n.browser_time&&"click"===e.type})||u.find(o.buffers.silos,function(e){return u.find(e,i)}))&&(R(e,"errorClick"),S)&&k(e,t):(u.contains(c,t)||c.push(t),c.length>g&&c.pop()))}function L(e){var t;null!=(t=i.sessionStorage.getItem(I))&&0<t.length&&(t=JSON.parse(t)),r=u.isArray(t)?t:[],function(e){var t,n;if(!(r.length<2))return t=r[0],n=r[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(e)&&R(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),t=r,i.sessionStorage.setItem(I,JSON.stringify(t))}function F(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&O(t,e),"load"===t.type&&L(t),"submit"!==t.type&&"change"!==t.type||T(),u.has(e,"target")&&v.includes(e.target.tagName));"focus"===t.type&&e&&T()}}(),nI=function(e){var r=e._,o=e.store;return{show:function(e){var t=r.first(this.steps),n=r.map(this.steps,function(e){return e.id}),n=r.pick(o.state.guideState.steps,n),i=null;return r.isEmpty(n)||(i=r.max(n,function(e){return e.time||0})),(this.nextStep(i)||t).show(e)},isShownInThisFrame:function(){return r.any(this.steps,function(e){return e.isRendered()||e.isLocked()})}}},iI=function(e){var n=e.pluginApi;e._;return this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),this._onShown?{onShown:function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}:null},rI=function(){var n,i,r,a,s=[],e=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:s,initialize:function(e,t){n=t,a=(i=e)._,function(e){e.getEmbeddedGuides=oI,e.getActiveEmbeddedGuides=aI}(e),r=nI({_:a,store:n.store,globalPendo:i}),n.Events.on("deliverablesLoaded",u),n.Events.on("guideLoopStopped",d),n.Events.on("guideListChanged",f),n.GuideLoop.addUpdatePhase(o),n.guides.addProcessor(c),n.GuideActivity.registerGuideResolver(h),this.removeResizeEvent=e.attachEvent(window,"resize",p)},teardown:function(){u(),n.Events.off("deliverablesLoaded",u),n.Events.off("guideLoopStopped",d),n.Events.off("guideListChanged",f),n.GuideLoop.removeUpdatePhase(o),n.guides.removeProcessor(c),n.GuideActivity.removeGuideResolver(h),this.removeResizeEvent&&this.removeResizeEvent()}};function o(){var o=i.Sizzle;a.forEach(s,function(e){var t,n=null,i=a.get(e,"attributes.embedConfig.selector"),i=a.first(o(i)),r=e.isShownInThisFrame();i&&r&&(t="#pendo-guide-container-".concat(a.get(l(e),"id")),n=a.first(o(t,i))),!r&&i&&((t=e).shouldShowSnoozedGuide()||t.shouldRepeatGuide()||a.all(t.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState}))?e.show("embed"):!r||i&&n||e.hide()})}function d(){a.forEach(s,function(e){e.isShownInThisFrame()&&e.hide()})}function u(){e=a.toArray(s),n.guides.removeDisplayableGuides("embeddedGuides"),s.length=0}function c(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(a.some(s,function(e){return e.id===t.id})||s.push(t),n.store.getters["preview/isInPreviewMode"]())}function l(e){return e?a.find(e.steps,function(e){return e.isShown()}):null}function p(){a.forEach(s,function(e){e=l(e);e&&!i.ignoreResize&&e.redraw()})}function h(e){if(s.length){var t,n="pendo-base-";if(a.isString(e.id)&&0===e.id.indexOf(n)){var i=e.id.substring(n.length);if((n=a.find(s,function(e){t=a.find(e.steps,function(e){if(e.id===i)return e});return!!t}))&&t)return{guide:n,step:t};return}else return a.isObject(e.parentElem)?h(e.parentElem):null}return null}function f(){a.each(e,function(t){var e=a.findIndex(s,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(s[e]=t)}),e.length=0,n.guides.registerDisplayableGuides("embeddedGuides",s),a.map(s,function(e){Object.assign(e,r),a.map(e.steps,function(e){var t=iI.call(e,{pluginApi:n,_:a});Object.assign(e,t)})})}}();function oI(){return rI.activeEmbeddedGuides}function aI(){return rI.activeEmbeddedGuides.filter(function(e){return e.isShown()})}var sI="sessionId",dI="sessionLastUserInteractionEvent",uI=18e5,cI=function(){function e(){this.name="SessionManager"}return e.prototype.initialize=function(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"ready",K.bind(this.ready,this)),this.api.attachEvent(this.api.Events,"eventCaptured",K.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",uI),this.api.agentStorage.registry.addLocal(sI),this.api.agentStorage.registry.addLocal(dI),this.api.store.getters["frames/isReady"]()&&this.ready()},e.prototype.teardown=function(){K.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0},e.prototype.ready=function(){this.isReady||(this.sessionId(),this.isReady=!0)},e.prototype.isExpired=function(e){var t=K.get(this._sessionInfo,"timestamp");return!!(t&&e-t>this.inactivityDuration)},e.prototype.eventCaptured=function(e){e&&e.data&&e.data.length&&(e=e.data[0],this.ready(),this.isExpired(e.browser_time)&&(this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(e.browser_time),e.sessionId=this.sessionId())},e.prototype.sessionId=function(e){var t;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionInfo||((t=this.api.agentStorage.read(sI))||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(sI,t)),this._sessionInfo=JSON.parse(t)),this._sessionInfo.sessionId},e.prototype.clearSessionInfo=function(){delete this._sessionInfo,this.api.agentStorage.clear(sI),this.sessionId()},e.prototype.storeLastInteractionEventInformation=function(e){this._sessionInfo.timestamp=e,this.api.agentStorage.write(sI,JSON.stringify(this._sessionInfo))},e}(),lI=new cI,pI=function(){function e(){this.name="SegmentFlags"}return e.prototype.initialize=function(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))},e.prototype.teardown=function(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))},e.prototype.handleReady=function(){this.ready=!0,this.requestSegmentFlags()},e.prototype.requestSegmentFlags=function(){if(this.ready){var e,t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json"),n=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t),r=this.api.agent.getJwtInfoCopy();try{n.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(r)?(delete t.jzb,n=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),e=this.pendo._.extend({events:i},r),this.postLoad(n,e)):"script"===this.pendo.LOADER?this.scriptLoad(n):this.getLoad(n)}catch(err){this.api.log.error("Failed to load segment flags",{error:err})}}},e.prototype.segmentsPayload=function(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)},e.prototype.scriptLoad=function(e){this.pendo.loadResource(e,this.pendo._.noop)},e.prototype.getLoad=function(n){return Xt(this,void 0,void 0,function(){var t;return Jt(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.get(n)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})},e.prototype.postLoad=function(n,i){return Xt(this,void 0,void 0,function(){var t;return Jt(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.postJSON(n,i)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})},e}(),hI=new pI,fI=["google","bing","yahoo","duckduckgo","baidu","yandex","aol","ask","excite","lycos","webcrawler","infoseek","dogpile","altavista","netscape","hotbot","looksmart","gigablast","teoma","alltheweb","search.com","mamma","metacrawler","ixquick","searchy","searchalot","searchengine","searchenginez","searchengineland","searchenginewatch","searchengineworld","searchenginejournal","searchengineguide","searchengineforums"],gI=new RegExp("(".concat(fI.join("|"),")"),"i"),mI=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat"],vI=new RegExp("(".concat(mI.join("|"),")"),"i"),yI=["youtube","vimeo","dailymotion","twitch","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"];function bI(e){return"self"!==e&&"direct"!==e&&null!==e.match(gI)}function II(e){return"self"!==e&&"direct"!==e&&null!==e.match(vI)}function wI(e){var t,n=e.referrer,e=e.currentHost;return n&&""!==n?(t="self",(n=new Si(n).hostname)!==e?null==n?void 0:n.toLowerCase():t):"direct"}function CI(e){var t=e.referrerValue,n=e.utm,e=e.gclid,i="Direct",r=new RegExp("^(.*cp.*|ppc|retargeting|paid.*)$"),o=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),a=(null==(a=n.medium)?void 0:a.toLowerCase())||"",s=(null==(s=n.source)?void 0:s.toLowerCase())||"",d=s&&fI.includes(s),u=s&&mI.includes(s),c=s&&yI.includes(s);if(null===a.match(o)&&null===s.match(o)||"direct"!==t){if("organic"===a&&d||bI(t))i="Organic Search";else if(e||null!=a&&a.match(r)&&d)i="Paid Search";else if("display"===a||"cpm"===a||"banner"===a||"interstitial"===a||"expandable"===a)i="Display";else if("paidsocial"===a||"paidsocial"===s||null!=a&&a.match(r)&&u)i="Paid Social";else if(-1<a.indexOf("social")||u||II(t))i="Organic Social";else if(null!=a&&a.match(r)&&c)i="Paid Social";else if("referral"===a)i="Referral";else if("affiliate"===a)i="Referral";else if("cpv"===a||"cpa"===a)i="Other Advertising";else if("sms"===s||"sms"===a)i="SMS";else if(a.endsWith("push")||-1<a.indexOf("mobile")||-1<a.indexOf("notification")||"firebase"===s)i="Mobile Push";else if(a)i="Other";else if(!n.medium&&!n.source)return"Direct"}else i="Email";return i}var SI="utm",AI=function(){function e(){this.name="WebAnalytics"}return e.prototype.initialize=function(e,t){this.pendo=e,this.api=t;var n=e._.bind,n=(this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))],this.loadParameters(t.agentStorage));n&&!e._.isEmpty(n)||(n=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(SI),this.storeParameters(n,t.agentStorage)},e.prototype.extractParameters=function(e,t){t=wI({referrer:t,currentHost:new Si(e).hostname});if("self"!==t){var e=this.api.util.parseUrl(e).query,n=e.utm_source,i=e.utm_medium,r=e.utm_campaign,o=e.utm_term,a=e.utm_content,e=e.gclid;if(this.pendo._.compact([n,i,r,o,a,e]).length)return(n={source:n,medium:i,campaign:r,term:o,content:a}).channel=CI({referrerValue:t,utm:n,gclid:e}),n}return{}},e.prototype.storeParameters=function(e,t){0<this.pendo._.size(e)&&(this.utm=e,t.write(SI,JSON.stringify(e)))},e.prototype.loadParameters=function(e){e=e.read(SI);return e?JSON.parse(e):null},e.prototype.teardown=function(){for(var e=0,t=this.subscriptions;e<t.length;e++)(0,t[e])();this.subscriptions.length=0,this.utm=null},e.prototype.addUtmToEvent=function(e){this.utm&&(e.data[0].utm=this.utm)},e.prototype.sessionChanged=function(){this.utm=null;var e=this.api.agentStorage,t=(e.clear(SI),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)},e}(),TI=new AI;function _I(){vm(My),vm(Py),vm(Uy),vm(jy),vm($0),vm(j0),vm(z0),vm(V0),vm($v),vm(eI),vm(tI),vm(rI),vm(lI),vm(hI),vm(TI)}function EI(i){zv(i),Kv(i),K.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{xm()?n.apply(this,arguments):V(i,t,arguments)}catch(e){X.critical(e)}}})}function xI(t){K.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){t[e]=function(){console.log("Pendo is currently disabled.")}})}function RI(e,t){pe(t),ct(),!N(t)&&ce(t,e,Hl())||e&&e.VERSION||(m.get("disablePendo")?xI(e):(Ny(q),wr(),dy(),Wu.reset(),q.dispatch("frames/init"),pv.init(),c.wrapSizzle(s),s.intercept(wu),EI(e),X.addEventListener("log",K.partial(q.dispatch,"errorLog/write")),_I(),Bm(e._q,Dm,Vd)))}var kI=fe(),OI=M(kI);return RI(OI,kI),OI}var TextCapture=function(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:d,isTextCapturable:function(e){var t=r.util.trim.call(e);return d()||i._.has(o,t)||i._.has(o,e)},hasWhitelist:function(){return 0<i._.size(o)},serializer:a};function a(e,t,n){return t===n&&(TextCapture.isEnabled()||!TextCapture.isEnabled()&&TextCapture.hasWhitelist())&&(t=i.getText(n,128),TextCapture.isTextCapturable(t))&&(e.txt=TextCapture.hasWhitelist()?r.util.trim.call(t):t),e}function s(e,t){var n;d()&&(n=t.data[0])&&"guideActivity"===n.type&&(t=e.getActiveGuide())&&(e=(0,e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson)(t.step.domJson,function(e){return e.props&&e.props.id&&e.props.id===n.props.ui_element_id}))&&(n.props.ui_element_text=e.content)}function d(){return!i.excludeAllText}}(),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString="({goto-".concat(goToMiddleString,"\\/})");function lookupGuideButtons(e,t){return void 0===t&&(t=[]),"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(function(e){lookupGuideButtons(e,t)}),t}function removeMarkdownSyntax(e,t,n){var i;window.pendo.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(i=e.innerHTML)?void 0:i.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax},goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script:function(r,o){var a=!1,e=initialBranchingSetup(r);!e||1<window.pendo._.size(e)||this.on("beforeAdvance",function(e){var t,n=0===r.guideElement.find("[branching] .pendo-radio:checked").length,i=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];i&&(t=window.pendo._.isNull(i.getAttribute("goToStep"))),a||n||t||(a=!0,branchingGoToStep(e,r,o))})},test:function(e){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!window.pendo._.isUndefined(e)&&window.pendo._.size(e)},designerListener:function(){var e=window.pendo.dom.getBody();function i(e,t){return'<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"\n style="margin-left: 5px;\n height:'.concat(t,"; width:").concat(t,'; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"></g>\n <g> <circle cx="4" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="17" r="2" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></circle>\n <path d="M18 7H6" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M7 7V7C8.65685 7 10 8.34315 10 10V15C10 16.1046 10.8954 17 12 17H18"\n stroke="').concat(e,'" stroke-width="2" stroke-linecap="round"\n stroke-linejoin="round"></path> </g></svg>')}new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelector);e.addedNodes.length&&t&&e.addedNodes[0].querySelector("._pendo-multi-choice-poll-select-border")&&window.pendo._.size(window.pendo.dom('._pendo-multi-choice-poll-question:contains("{branching/}")'))&&window.pendo.dom('._pendo-multi-choice-poll-question:contains("{branching/}")').each(function(e,t){window.pendo._.each(window.pendo.dom("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","")}),window.pendo.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(i("#999","20px")).attr({title:"Custom Branching Added"});var n=e.getAttribute("data-pendo-poll-id"),n=(window.pendo.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0]&&window.pendo.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0].textContent.trim(),window.pendo.dom("label[for*=".concat(n,"]")));window.pendo._.size(n)&&window.pendo._.forEach(n,function(e){var t;goToRegex.test(e.textContent)&&(t=goToRegex.exec(e.textContent)[2],guideMarkdownUtil.removeMarkdownSyntax(e,goToRegex,""),window.pendo.dom(e).append(i("#999","14px")).attr({title:"Branching to step ".concat(t)}))}),0<t&&(window.pendo.dom(e).append('<div style="text-align:lrft; font-size: 14px; color: red;\n font-style: italic; margin-top: 0px;" class="branching-wrapper"\n name="'.concat(e.dataset.pendoPollId,'">\n * Branching Error: Multiple branching polls not supported</div>')),window.pendo.dom("#".concat(e.id," #pendo-ps-branching-svg")).remove(),window.pendo.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(i("red","20px")).attr({title:"Unsupported Branching configuration"}))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function initialBranchingSetup(n){var e=n.guideElement.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return window.pendo._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id"),e=(window.pendo._.each(n.guideElement.find("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","")}),n.guideElement.find("label[for*=".concat(t,"]"))),e=(window.pendo._.forEach(e,function(e){var t,n;window.pendo._.isNull(goToRegex.exec(e.textContent))||(t=goToRegex.exec(e.textContent)[1],n=goToRegex.exec(e.textContent)[2],e.setAttribute("goToStep",n),guideMarkdownUtil.removeMarkdownSyntax(e,t,""))}),n.guideElement.find("[data-pendo-poll-id=".concat(t,"]._pendo-multi-choice-poll-select-border")));e&&e[0].setAttribute("branching","")}),e}function branchingGoToStep(e,t,n){var i=null==(i=t.guideElement.find("[branching] input.pendo-radio[data-pendo-poll-id]:checked")[0])?void 0:i.id,i=t.guideElement.find('label[for="'.concat(i,'"]'))[0],t=(null==i?void 0:i.getAttribute("goToStep"))-1;t<0||(i={destinationStepId:n.steps[t].id},window.pendo.goToStep(i),e.cancel=!0)}var containerSelector='[id^="pendo-guide-container"]',MetadataSubstitution={name:"MetadataSubstitution",script:function(e,t){var n=findSubstitutableElements();e.domJson&&findSubstitutableUrlsInJson(e.domJson,n),window.pendo._.size(n)&&(window.pendo._.each(n,function(e){processPlaceholder(e)}),updateGuideContainer("pendo-g-".concat(e.id),e.guideElement))},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t,n;e.addedNodes.length&&document.querySelector(containerSelector)&&(e=findSubstitutableElements(),t=null==(t=window.pendo.designerv2.currentlyPreviewedGuide)?void 0:t.steps[0])&&(n=t.buildingBlocks,window.pendo._.isUndefined(n)||findSubstitutableUrlsInJson(n,e),window.pendo._.size(e))&&(window.pendo._.each(e,function(e){window.pendo._.isUndefined(e)||processPlaceholder(e)}),updateGuideContainer("pendo-g-".concat(t.id),t.guideElement))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function processPlaceholder(e){for(var t=e.data,n=e.target,i=new RegExp(guideMarkdownUtil.substitutionRegex);r=matchPlaceholder(e,i);){var r=i.exec(r);substituteMetadataByTarget(t,n,getSubstitueValue(r),r)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:decodeURI(e.data[e.target])).match(t)}function getSubstitueValue(e){if(!window.pendo._.isUndefined(e[1])&&!window.pendo._.isUndefined(e[2])){var t=e[1],n=e[2],e=e[3];if(!window.pendo._.isUndefined(t)&&!window.pendo._.isUndefined(n))return window.pendo._.get(window.pendo.getSerializedMetadata(),"".concat(t,".").concat(n))||e||""}}function substituteMetadataByTarget(e,t,n,i){e[t]="href"===t||"value"===t?decodeURI(e[t]).replace(i[0],window.encodeURI(n)):e[t].replace(i[0],n)}function updateGuideContainer(e,t){window.pendo.designer&&!window.pendo._.size(window.pendo.dom("#pendo-ps-substitution-icon"))&&window.pendo.dom(containerSelector).append(substitutionIcon("#999","30px")),window.pendo.flexElement(window.pendo.dom(containerSelector)),window.pendo.BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight(e,t)}function findSubstitutableUrlsInJson(e,t){void 0===t&&(t=[]);var n=new RegExp(guideMarkdownUtil.substitutionRegex);return"url"!==e.name&&"href"!==e.name||!e.value||n.test(e.value)&&t.push({data:e,target:"value"}),e.properties&&"href_link_block"===e.id&&window.pendo._.each(e.properties,function(e){findSubstitutableUrlsInJson(e,t)}),e.views&&window.pendo._.each(e.views,function(e){findSubstitutableUrlsInJson(e,t)}),e.parameters&&window.pendo._.each(e.parameters,function(e){findSubstitutableUrlsInJson(e,t)}),e.actions&&window.pendo._.each(e.actions,function(e){findSubstitutableUrlsInJson(e,t)}),e.children&&window.pendo._.each(e.children,function(e){findSubstitutableUrlsInJson(e,t)}),t}function findSubstitutableElements(){var e=window.pendo.dom("".concat(containerSelector," *:not(.pendo-inline-ui)"));return window.pendo._.chain(e).filter(function(e){var t=new RegExp(guideMarkdownUtil.substitutionRegex);return"a"===e.localName?t.test(decodeURI(e.href))||t.test(e.textContent):"div"!==e.localName?"button"===e.localName||"label"===e.localName?t.test(e.textContent):0<e.children.length?void 0:window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link")?t.test(e.textContent):t.test(e.textContent)||t.test(decodeURI(e.href)):void 0}).map(function(e){return"a"===e.localName&&window.pendo.dom(e).hasClass("_pendo-text-link")?[{data:e,target:"href"},{data:e,target:"textContent"}]:"a"===e.localName?{data:e,target:"href"}:"button"===e.localName||window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link")?{data:e,target:"textContent"}:void 0}).flatten().value()}function substitutionIcon(e,t){return'<div title="Metadata Substitution added">\n <svg id="pendo-ps-substitution-icon" viewBox="0 0 24 24"\n preserveAspectRatio="xMidYMid meet"\n height='.concat(t," width=").concat(t,' title="Metadata Substitution"\n style="bottom:5px; right:10px; position: absolute;"\n fill="none" xmlns="http://www.w3.org/2000/svg" stroke="').concat(e,'"\n transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"\n stroke="').concat(e,'" stroke-width="0.528"></g>\n <g><path fill-rule="evenodd" clip-rule="evenodd"\n d="M5 5.5C4.17157 5.5 3.5 6.17157 3.5 7V10C3.5 10.8284\n 4.17157 11.5 5 11.5H8C8.82843 11.5 9.5 10.8284 9.5\n 10V9H17V11C17 11.2761 17.2239 11.5 17.5 11.5C17.7761\n 11.5 18 11.2761 18 11V8.5C18 8.22386 17.7761 8 17.5\n 8H9.5V7C9.5 6.17157 8.82843 5.5 8 5.5H5ZM8.5 7C8.5\n 6.72386 8.27614 6.5 8 6.5H5C4.72386 6.5 4.5 6.72386\n 4.5 7V10C4.5 10.2761 4.72386 10.5 5 10.5H8C8.27614\n 10.5 8.5 10.2761 8.5 10V7Z" fill="').concat(e,'"></path>\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M7 13C7 12.7239 6.77614 12.5 6.5 12.5C6.22386 12.5\n 6 12.7239 6 13V15.5C6 15.7761 6.22386 16 6.5\n 16H14.5V17C14.5 17.8284 15.1716 18.5 16 18.5H19C19.8284\n 18.5 20.5 17.8284 20.5 17V14C20.5 13.1716 19.8284 12.5\n 19 12.5H16C15.1716 12.5 14.5 13.1716 14.5\n 14V15H7V13ZM15.5 17C15.5 17.2761 15.7239 17.5 16\n 17.5H19C19.2761 17.5 19.5 17.2761 19.5 17V14C19.5\n 13.7239 19.2761 13.5 19 13.5H16C15.7239 13.5 15.5\n 13.7239 15.5 14V17Z" fill="').concat(e,'"></path> </g></svg></div>')}var requiredElement='<span class="_pendo-required-indicator" style="color:red; font-style:italic;" title="Question is required"> *</span>',RequiredQuestions={name:"RequiredQuestions",script:function(i,e){var t,n=[],r=null==(t=guideMarkdownUtil.lookupGuideButtons(i.domJson))?void 0:t.filter(function(e){return e.actions.find(function(e){return"submitPoll"===e.action||"submitPollAndGoToStep"===e.action})}),o=function(){var e=i.guideElement.find("[class*=-poll-question]:contains({required/})");e&&window.pendo._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id");n.push(t),window.pendo._.each(i.guideElement.find("#".concat(e.id," *, #").concat(e.id)),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","")}),i.guideElement.find("#".concat(e.id," p")).append(requiredElement)});window.pendo._.size(n)&&(0===window.pendo.dom("#_pendo-guide-required-disabled").length&&window.pendo.dom("head").append("<style type=text/css\n id=_pendo-guide-required-disabled>\n ._pendo-button:disabled, ._pendo-buttons[disabled] {\n border: 1px solid #999999 !important;\n background-color: #cccccc !important;\n color: #666666 !important;\n pointer-events: none !important;\n }\n </style>"),s(r));return e}();function a(e){var t,n;0!==e.length&&(t=!0,(t=(n=(n=[]).concat(window.pendo._.map(e,function(e){e=e.getAttribute("data-pendo-poll-id"),e=i.guideElement.find("\n [data-pendo-poll-id=".concat(e,"] textarea,\n [data-pendo-poll-id=").concat(e,"] input:text,\n [data-pendo-poll-id=").concat(e,"] select,\n [data-pendo-poll-id=").concat(e,"] input:radio:checked"));if(e&&e.length&&e[0].value)return e[0].value}))).includes(undefined)||window.pendo._.isEmpty(n)?!1:t)?r.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!1,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="")}):s(r))}function s(e){e.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!0,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="Please complete all required questions.")})}o&&(window.pendo._.forEach(o,function(e){e.classList.contains("_pendo-open-text-poll-question")&&(e=e.dataset.pendoPollId,i.attachEvent(i.guideElement.find("[data-pendo-poll-id=".concat(e,"]._pendo-open-text-poll-input"))[0],"input",function(){a(o)}))}),i.attachEvent(i.guideElement.find("#pendo-guide-container")[0],"click",function(e){e.target.classList.contains("_pendo-button")||a(o)}))},test:function(e){e=null==(e=e.guideElement)?void 0:e.find("[class*=-poll-question]:contains({required/})");return!window.pendo._.isUndefined(e)&&window.pendo._.size(e)},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(t=e.addedNodes[0].querySelectorAll("[class*=-poll-wrapper], [class*=-poll-select-border]"))&&t.forEach(function(e){var t,e=e.classList.contains("_pendo-open-text-poll-wrapper")||e.classList.contains("_pendo-number-scale-poll-wrapper")?e.getAttribute("name"):e.getAttribute("data-pendo-poll-id");(t=window.pendo.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0]?window.pendo.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0].textContent:t).includes("{required/}")&&(window.pendo._.each(window.pendo.dom("[data-pendo-poll-id=".concat(e,"]:not(.pendo-radio)")),function(e){window.pendo._.each(window.pendo.dom("#".concat(e.id,' *:not(".pendo-radio"), #').concat(e.id,':not(".pendo-radio")')),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","")})}),(0!==window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).length||0!==window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li")).length?(window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).append(requiredElement),window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li"))):window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"]"))).append(requiredElement))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script:function(i,r){var n=!1,o=!1,e=i.guideElement.find("#pendo-guide-container"),t=e.attr("aria-label"),a=skipStepRegex.exec(t)[1];function s(e,t){var n=d(r.getPositionOfStep(i),"next",e),e=d(r.getPositionOfStep(i)-2,"previous",e);return n&&"next"==t&&window.pendo.goToStep({destinationStepId:n}),e&&"previous"==t&&window.pendo.goToStep({destinationStepId:e}),"next"===t?n:e}function d(e,t,n){var i;if(!window.pendo._.isNaN(e))return(i=r.steps[e])&&!i.canShow()?"auto"!==n?r.steps[n-1]:"next"===t?d(e+1,"next",n):d(e-1,"previous",n):i}e&&e.attr({"aria-label":e.attr("aria-label").replace(skipStepRegex,"")}),this.on("beforeAdvance",function(e){var t;r.getPositionOfStep(i)===r.steps.length||window.pendo._.isUndefined(a)||(t=s(a,"next"),!n&&a&&(n=!0,window.pendo.goToStep({destinationStepId:t.id}),e.cancel=!0))}),this.on("beforePrevious",function(e){var t;window.pendo._.isUndefined(a)||(t=s(a,"previous"),!o&&a&&(o=!0,window.pendo.goToStep({destinationStepId:t.id}),e.cancel=!0))})},test:function(e){e=null==(e=e.guideElement)?void 0:e.find("#pendo-guide-container").attr("aria-label");return!window.pendo._.isUndefined(e)&&(null==e?void 0:e.includes("{skipStep"))},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(e=null==(t=e.addedNodes[0].querySelectorAll("#pendo-guide-container")[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),window.pendo.dom("#_pendoSkipIcon").length||window.pendo.dom("#pendo-guide-container").append((t="#999",'<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="'.concat(e="30px",'" height="').concat(e,'" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet" style="bottom:5px; right:10px; position: absolute;">\n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="').concat(t,'" stroke="none">\n <path d="M2185 4469 c-363 -38 -739 -186 -1034 -407 -95 -71 -273 -243 -357\n -343 -205 -246 -364 -577 -429 -897 -25 -121 -45 -288 -45 -373 l0 -49 160 0\n 160 0 0 48 c0 26 5 88 10 137 68 593 417 1103 940 1374 1100 570 2418 -137\n 2560 -1374 5 -49 10 -111 10 -137 l0 -47 -155 -3 -155 -3 235 -235 235 -236\n 235 236 235 235 -155 3 -155 3 0 48 c0 27 -5 95 -10 152 -100 989 -878 1767\n -1869 1868 -117 12 -298 12 -416 0z"/>\n <path d="M320 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M960 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M1600 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2240 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>\n </g></svg></div>\n ').trim())))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},GuideMarkdown=function(){var r,o;return{name:"GuideMarkdown",initialize:function(e,t){var n=(o=t).ConfigReader,i="guideMarkdown";n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i)&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||r.forEach(function(e){t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",a))},teardown:function(){o.Events.off("designerLaunched",a),r.forEach(function(e){o.GlobalRuntime.removeGlobalScript(e)})}};function a(){r.forEach(function(e){e.designerListener&&e.designerListener()})}}();function isObject$8(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$8,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,now$1=function(){return root$8.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$7=_root,Symbol$6=root$7.Symbol,_Symbol=Symbol$6,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:undefined;function getRawTag$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=undefined;var i=!0}catch(o){}var r=nativeObjectToString$1.call(e);return i&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$4=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$4?Symbol$4.toStringTag:undefined;function baseGetTag$6(e){return null==e?e===undefined?undefinedTag:nullTag:(symToStringTag&&symToStringTag in Object(e)?getRawTag:objectToString)(e)}var _baseGetTag=baseGetTag$6;function isObjectLike$7(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$7,baseGetTag$5=_baseGetTag,isObjectLike$6=isObjectLike_1,symbolTag$2="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$5(e)==symbolTag$2}var isSymbol_1=isSymbol$4,baseTrim=_baseTrim,isObject$7=isObject_1,isSymbol$3=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$3(e))return NAN;if(isObject$7(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=isObject$7(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$6=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT$2="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce$1(i,n,e){var r,o,a,s,d,u,c=0,l=!1,p=!1,t=!0;if("function"!=typeof i)throw new TypeError(FUNC_ERROR_TEXT$2);function h(e){var t=r,n=o;return r=o=undefined,c=e,s=i.apply(n,t)}function f(e){var t=e-u;return u===undefined||n<=t||t<0||p&&a<=e-c}function g(){var e,t=now();if(f(t))return m(t);d=setTimeout$1(g,(e=n-((t=t)-u),p?nativeMin(e,a-(t-c)):e))}function m(e){return d=undefined,t&&r?h(e):(r=o=undefined,s)}function v(){var e=now(),t=f(e);if(r=arguments,o=this,u=e,t){if(d===undefined)return c=e=u,d=setTimeout$1(g,n),l?h(e):s;if(p)return clearTimeout(d),d=setTimeout$1(g,n),h(u)}return d===undefined&&(d=setTimeout$1(g,n)),s}return n=toNumber(n)||0,isObject$6(e)&&(l=!!e.leading,p="maxWait"in e,a=p?nativeMax$1(toNumber(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){d!==undefined&&clearTimeout(d),c=0,r=u=o=d=undefined},v.flush=function(){return d===undefined?s:m(now())},v}var debounce_1=debounce$1,debounce=debounce_1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$5(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),debounce(e,t,{leading:i,maxWait:t,trailing:r})}var throttle_1=throttle,throttle$1=getDefaultExportFromCjs(throttle_1),isArray$8=Array.isArray,isArray_1=isArray$8,isArray$7=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(e,t){var n;return!isArray$7(e)&&(!("number"!=(n=typeof e)&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol$2(e))||reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$1,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){return!!isObject$4(e)&&((e=baseGetTag$4(e))==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag)}var isFunction_1=isFunction$2,isFunction$3=getDefaultExportFromCjs(isFunction_1),root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource$2(e){if(null!=e){try{return funcToString$2.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$b=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$9=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,t){return null==e?undefined:e[t]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$7(e,t){e=getValue(e,t);return baseIsNative(e)?e:undefined}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=getNative$6(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashGet$1(e){var t,n=this.__data__;return nativeCreate$2?(t=n[e])===HASH_UNDEFINED$1?undefined:t:hasOwnProperty$8.call(n,e)?n[e]:undefined}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?t[e]!==undefined:hasOwnProperty$7.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nativeCreate&&t===undefined?HASH_UNDEFINED:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype["delete"]=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var n=e.length;n--;)if(eq$1(e[n][0],t))return n;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,e=assocIndexOf$3(t,e);return!(e<0||(e==t.length-1?t.pop():splice.call(t,e,1),--this.size,0))}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,e=assocIndexOf$2(t,e);return e<0?undefined:t[e][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return-1<assocIndexOf$1(this.__data__,e)}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype["delete"]=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){e=e.__data__;return isKeyable(t)?e["string"==typeof t?"string":"hash"]:e.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){e=getMapData$3(this,e)["delete"](e);return this.size-=e?1:0,e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}MapCache$2.prototype.clear=mapCacheClear,MapCache$2.prototype["delete"]=mapCacheDelete,MapCache$2.prototype.get=mapCacheGet,MapCache$2.prototype.has=mapCacheHas,MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,MapCache$1=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(i,r){if("function"!=typeof i||null!=r&&"function"!=typeof r)throw new TypeError(FUNC_ERROR_TEXT);var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],n=o.cache;return n.has(t)?n.get(t):(e=i.apply(this,e),o.cache=n.set(t,e)||n,e)};return o.cache=new(memoize$1.Cache||MapCache$1),o}memoize$1.Cache=MapCache$1;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var e=memoize(e,function(e){return t.size===MAX_MEMOIZE_SIZE&&t.clear(),e}),t=e.cache;return e}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(rePropName,function(e,t,n,i){r.push(n?i.replace(reEscapeChar,"$1"):t||e)}),r}),_stringToPath=stringToPath$1;function arrayMap$2(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}var _arrayMap=arrayMap$2,Symbol$3=_Symbol,arrayMap$1=_arrayMap,isArray$6=isArray_1,isSymbol$1=isSymbol_1,INFINITY$1=1/0,symbolProto$1=Symbol$3?Symbol$3.prototype:undefined,symbolToString=symbolProto$1?symbolProto$1.toString:undefined;function baseToString$1(e){var t;return"string"==typeof e?e:isArray$6(e)?arrayMap$1(e,baseToString$1)+"":isSymbol$1(e)?symbolToString?symbolToString.call(e):"":"0"==(t=e+"")&&1/e==-INFINITY$1?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$2(e){return null==e?"":baseToString(e)}var toString_1=toString$2,isArray$5=isArray_1,isKey=_isKey,stringToPath=_stringToPath,toString$1=toString_1;function castPath$3(e,t){return isArray$5(e)?e:isKey(e,t)?[e]:stringToPath(toString$1(e))}var _castPath=castPath$3,isSymbol=isSymbol_1,INFINITY=1/0;function toKey$2(e){var t;return"string"==typeof e||isSymbol(e)?e:"0"==(t=e+"")&&1/e==-INFINITY?"-0":t}var _toKey=toKey$2,castPath$2=_castPath,toKey$1=_toKey;function baseGet$2(e,t){for(var n=0,i=(t=castPath$2(t,e)).length;null!=e&&n<i;)e=e[toKey$1(t[n++])];return n&&n==i?e:undefined}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get(e,t,n){e=null==e?undefined:baseGet$1(e,t);return e===undefined?n:e}var get_1=get,get$1=getDefaultExportFromCjs(get_1),toString=toString_1,idCounter=0;function uniqueId(e){var t=++idCounter;return toString(e)+t}var uniqueId_1=uniqueId,uniqueId$1=getDefaultExportFromCjs(uniqueId_1),ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,e=t["delete"](e);return this.size=t.size,e}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var n=this.__data__;if(n instanceof ListCache$1){var i=n.__data__;if(!Map$2||i.length<LARGE_ARRAY_SIZE-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(e){e=this.__data__=new ListCache(e);this.size=e.size}Stack$1.prototype.clear=stackClear,Stack$1.prototype["delete"]=stackDelete,Stack$1.prototype.get=stackGet,Stack$1.prototype.has=stackHas,Stack$1.prototype.set=stackSet;var _Stack=Stack$1;function arrayEach$2(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}var _arrayEach=arrayEach$2,getNative$4=_getNative,defineProperty$2=function(){try{var e=getNative$4(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty;function baseAssignValue$2(e,t,n){"__proto__"==t&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _baseAssignValue=baseAssignValue$2,baseAssignValue$1=_baseAssignValue,eq=eq_1,objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function assignValue$2(e,t,n){var i=e[t];hasOwnProperty$6.call(e,t)&&eq(i,n)&&(n!==undefined||t in e)||baseAssignValue$1(e,t,n)}var _assignValue=assignValue$2,assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$5(e,t,n,i){for(var r=!n,o=(n=n||{},-1),a=t.length;++o<a;){var s=t[o],d=i?i(n[s],e[s],s,n,e):undefined;d===undefined&&(d=e[s]),(r?baseAssignValue:assignValue$1)(n,s,d)}return n}var _copyObject=copyObject$5;function baseTimes$1(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var _baseTimes=baseTimes$1,baseGetTag$3=_baseGetTag,isObjectLike$5=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$5(e)&&baseGetTag$3(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$4=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$4(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse,isBufferExports=(isBuffer$2.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,t=n?n.isBuffer:undefined;e.exports=t||stubFalse_1}(isBuffer$2,isBuffer$2.exports),isBuffer$2.exports),MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(e,t){var n=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==n||"symbol"!=n&&reIsUint.test(e))&&-1<e&&e%1==0&&e<t}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$2=_baseGetTag,isLength$1=isLength_1,isObjectLike$3=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$3(e)&&isLength$1(e.length)&&!!typedArrayTags[baseGetTag$2(e)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(t){return function(e){return t(e)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}},_nodeUtilExports=(_nodeUtil.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,i=n&&n.exports===t&&_freeGlobal.process,t=function(){try{var e=n&&n.require&&n.require("util").types;return e?e:i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=t}(_nodeUtil,_nodeUtil.exports),_nodeUtil.exports),baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$4=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray_1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty;function arrayLikeKeys$2(e,t){var n,i=isArray$4(e),r=!i&&isArguments$1(e),o=!i&&!r&&isBuffer$1(e),a=!i&&!r&&!o&&isTypedArray(e),s=i||r||o||a,d=s?baseTimes(e.length,String):[],u=d.length;for(n in e)!t&&!hasOwnProperty$4.call(e,n)||s&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||isIndex(n,u))||d.push(n);return d}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$5=Object.prototype;function isPrototype$3(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$5)}var _isPrototype=isPrototype$3;function overArg$2(t,n){return function(e){return t(n(e))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function baseKeys$1(e){if(!isPrototype$2(e))return nativeKeys(e);var t,n=[];for(t in Object(e))hasOwnProperty$3.call(e,t)&&"constructor"!=t&&n.push(t);return n}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$3(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$3,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$2=isArrayLike_1;function keys$4(e){return(isArrayLike$2(e)?arrayLikeKeys$1:baseKeys)(e)}var keys_1=keys$4,copyObject$4=_copyObject,keys$3=keys_1;function baseAssign$1(e,t){return e&&copyObject$4(t,keys$3(t),e)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var _nativeKeysIn=nativeKeysIn$1,isObject$2=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeysIn$1(e){if(!isObject$2(e))return nativeKeysIn(e);var t,n=isPrototype$1(e),i=[];for(t in e)("constructor"!=t||!n&&hasOwnProperty$2.call(e,t))&&i.push(t);return i}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$1=isArrayLike_1;function keysIn$3(e){return isArrayLike$1(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var keysIn_1=keysIn$3,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(e,t){return e&&copyObject$3(t,keysIn$2(t),e)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}},_cloneBufferExports=(_cloneBuffer.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,i=n?n.allocUnsafe:undefined;e.exports=function(e,t){return t?e.slice():(t=e.length,t=i?i(t):new e.constructor(t),e.copy(t),t)}}(_cloneBuffer,_cloneBuffer.exports),_cloneBuffer.exports);function copyArray$1(e,t){var n=-1,i=e.length;for(t=t||Array(i);++n<i;)t[n]=e[n];return t}var _copyArray=copyArray$1;function arrayFilter$1(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=_arrayFilter,stubArray$1=stubArray_1,objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(t){return null==t?[]:(t=Object(t),arrayFilter(nativeGetSymbols$1(t),function(e){return propertyIsEnumerable.call(t,e)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(e,t){return copyObject$2(e,getSymbols$2(e),t)}var _copySymbols=copySymbols$1;function arrayPush$3(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var _arrayPush=arrayPush$3,overArg=_overArg,getPrototype$3=overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,arrayPush$2=_arrayPush,getPrototype$2=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush$2(t,getSymbols$1(e)),e=getPrototype$2(e);return t}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(e,t){return copyObject$1(e,getSymbolsIn$1(e),t)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$3=isArray_1;function baseGetAllKeys$2(e,t,n){t=t(e);return isArray$3(e)?t:arrayPush$1(t,n(e))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys$1(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$1=keysIn_1;function getAllKeysIn$2(e){return baseGetAllKeys(e,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$2,getNative$3=_getNative,root$4=_root,DataView$2=getNative$3(root$4,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$3=_root,Promise$2=getNative$2(root$3,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$2=_root,Set$2=getNative$1(root$2,"Set"),_Set=Set$2,getNative=_getNative,root$1=_root,WeakMap$2=getNative(root$1,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag$1=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$3=baseGetTag$1,_getTag=((DataView$1&&getTag$3(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$3(new Map$1)!=mapTag$3||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$1&&getTag$3(new Set$1)!=setTag$3||WeakMap$1&&getTag$3(new WeakMap$1)!=weakMapTag$1)&&(getTag$3=function(e){var t=baseGetTag$1(e),e=t==objectTag$2?e.constructor:undefined,e=e?toSource(e):"";if(e)switch(e){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return t}),getTag$3),objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function initCloneArray$1(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&hasOwnProperty$1.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _initCloneArray=initCloneArray$1,root=_root,Uint8Array$2=root.Uint8Array,_Uint8Array=Uint8Array$2,Uint8Array$1=_Uint8Array;function cloneArrayBuffer$3(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1(t).set(new Uint8Array$1(e)),t}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneDataView$1(e,t){t=t?cloneArrayBuffer$2(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var _cloneRegExp=cloneRegExp$1,Symbol$2=_Symbol,symbolProto=Symbol$2?Symbol$2.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;function cloneSymbol$1(e){return symbolValueOf?Object(symbolValueOf.call(e)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$1(e,t){t=t?cloneArrayBuffer$1(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray=_cloneTypedArray,boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(e,t,n){var i=e.constructor;switch(t){case arrayBufferTag$1:return cloneArrayBuffer(e);case boolTag$1:case dateTag$1:return new i(+e);case dataViewTag$1:return cloneDataView(e,n);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,n);case mapTag$2:return new i;case numberTag$1:case stringTag$1:return new i(e);case regexpTag$1:return cloneRegExp(e);case setTag$2:return new i;case symbolTag$1:return cloneSymbol(e)}}var _initCloneByTag=initCloneByTag$1,isObject$1=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function t(){}return function(e){if(!isObject$1(e))return{};if(objectCreate)return objectCreate(e);t.prototype=e;e=new t;return t.prototype=undefined,e}}(),_baseCreate=baseCreate$1,baseCreate=_baseCreate,getPrototype$1=_getPrototype,isPrototype=_isPrototype;function initCloneObject$1(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:baseCreate(getPrototype$1(e))}var _initCloneObject=initCloneObject$1,getTag$2=_getTag,isObjectLike$2=isObjectLike_1,mapTag$1="[object Map]";function baseIsMap$1(e){return isObjectLike$2(e)&&getTag$2(e)==mapTag$1}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$1=_getTag,isObjectLike$1=isObjectLike_1,setTag$1="[object Set]";function baseIsSet$1(e){return isObjectLike$1(e)&&getTag$1(e)==setTag$1}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack=_Stack,arrayEach$1=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn$1=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$2=isArray_1,isBuffer=isBufferExports,isMap=isMap_1,isObject=isObject_1,isSet=isSet_1,keys$1=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};function baseClone$1(n,i,r,e,t,o){var a,s=i&CLONE_DEEP_FLAG$1,d=i&CLONE_FLAT_FLAG$1,u=i&CLONE_SYMBOLS_FLAG$1;if((a=r?t?r(n,e,t,o):r(n):a)===undefined){if(!isObject(n))return n;e=isArray$2(n);if(e){if(a=initCloneArray(n),!s)return copyArray(n,a)}else{var c=getTag(n),l=c==funcTag||c==genTag;if(isBuffer(n))return cloneBuffer(n,s);if(c==objectTag$1||c==argsTag||l&&!t){if(a=d||l?{}:initCloneObject(n),!s)return d?copySymbolsIn(n,baseAssignIn(a,n)):copySymbols(n,baseAssign(a,n))}else{if(!cloneableTags[c])return t?n:{};a=initCloneByTag(n,c,s)}}l=(o=o||new Stack).get(n);if(l)return l;o.set(n,a),isSet(n)?n.forEach(function(e){a.add(baseClone$1(e,i,r,e,n,o))}):isMap(n)&&n.forEach(function(e,t){a.set(t,baseClone$1(e,i,r,t,n,o))});var p=e?undefined:(u?d?getAllKeysIn$1:getAllKeys:d?keysIn:keys$1)(n);arrayEach$1(p||n,function(e,t){p&&(e=n[t=e]),assignValue(a,t,baseClone$1(e,i,r,t,n,o))})}return a}cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag$1]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var _baseClone=baseClone$1;function last$1(e){var t=null==e?0:e.length;return t?e[t-1]:undefined}var last_1=last$1;function baseSlice$1(e,t,n){for(var i=-1,r=e.length,o=((n=r<n?r:n)<0&&(n+=r),r=n<(t=t<0?r<-t?0:r+t:t)?0:n-t>>>0,t>>>=0,Array(r));++i<r;)o[i]=e[i+t];return o}var _baseSlice=baseSlice$1,baseGet=_baseGet,baseSlice=_baseSlice;function parent$1(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}var _parent=parent$1,castPath$1=_castPath,last=last_1,parent=_parent,toKey=_toKey;function baseUnset$1(e,t){return t=castPath$1(t,e),null==(e=parent(e,t))||delete e[toKey(last(t))]}var _baseUnset=baseUnset$1,baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(e){return!(!isObjectLike(e)||baseGetTag(e)!=objectTag)&&(null===(e=getPrototype(e))||"function"==typeof(e=hasOwnProperty.call(e,"constructor")&&e.constructor)&&e instanceof e&&funcToString.call(e)==objectCtorString)}var isPlainObject_1=isPlainObject$1,isPlainObject=isPlainObject_1;function customOmitClone$1(e){return isPlainObject(e)?undefined:e}var _customOmitClone=customOmitClone$1,Symbol$1=_Symbol,isArguments=isArguments_1,isArray$1=isArray_1,spreadableSymbol=Symbol$1?Symbol$1.isConcatSpreadable:undefined;function isFlattenable$1(e){return isArray$1(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$1(e,t,n,i,r){var o=-1,a=e.length;for(n=n||isFlattenable,r=r||[];++o<a;){var s=e[o];0<t&&n(s)?1<t?baseFlatten$1(s,t-1,n,i,r):arrayPush(r,s):i||(r[r.length]=s)}return r}var _baseFlatten=baseFlatten$1,baseFlatten=_baseFlatten;function flatten$1(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}var flatten_1=flatten$1;function apply$1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _apply=apply$1,apply=_apply,nativeMax=Math.max;function overRest$1(o,a,s){return a=nativeMax(a===undefined?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=nativeMax(e.length-a,0),i=Array(n);++t<n;)i[t]=e[a+t];for(var t=-1,r=Array(a+1);++t<a;)r[t]=e[t];return r[a]=s(i),apply(o,this,r)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1;function identity$2(e){return e}var identity_1=identity$2,constant=constant_1,defineProperty=_defineProperty,identity$1=identity_1,baseSetToString$1=defineProperty?function(e,t){return defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity$1,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(n){var i=0,r=0;return function(){var e=nativeNow(),t=HOT_SPAN-(e-r);if(r=e,0<t){if(++i>=HOT_COUNT)return arguments[0]}else i=0;return n.apply(undefined,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$1=shortOut(baseSetToString),_setToString=setToString$1,flatten=flatten_1,overRest=_overRest,setToString=_setToString;function flatRest$1(e){return setToString(overRest(e,undefined,flatten),e+"")}var _flatRest=flatRest$1,arrayMap=_arrayMap,baseClone=_baseClone,baseUnset=_baseUnset,castPath=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest=_flatRest,getAllKeysIn=_getAllKeysIn,CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest(function(t,e){var n={};if(null!=t)for(var i=!1,r=(e=arrayMap(e,function(e){return e=castPath(e,t),i=i||1<e.length,e}),copyObject(t,getAllKeysIn(t),n),i&&(n=baseClone(n,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone)),e.length);r--;)baseUnset(n,e[r]);return n}),omit_1=omit,omit$1=getDefaultExportFromCjs(omit_1);function doesExist(e){return!(null==e)}const MESSAGE_PROMISE="promise";function Message(e,t,n){this.name=e,this.type=t,this.data=n}Message.prototype.toString=function(){return`Message.${this.type} - `+this.name};const createMessage=(e,t,n)=>{e=new Message(e,t,n);return t===MESSAGE_PROMISE&&(e.requestId=uniqueId$1()),e},fromEvent=e=>{try{var{name:t,type:n,isResponse:i,data:r,requestId:o,sender:a}=e.data||{},s=new Message(t,n,doesExist(r)?JSON.parse(r):undefined);return s.requestId=o,s.sender=a,s.destination=e.source,s.isResponse=i,s}catch(err){return!1}},serialize=e=>{var t=omit$1(e,["destination","toString","data"]);return t.data=JSON.stringify(e.data,(e,t)=>"function"==typeof t||t instanceof RegExp?t.toString?t.toString():undefined:t),t},asResponse=e=>(e.isResponse=!0,e),pipe=(...e)=>r=>{return[].concat(e).reduce((e,t,n,i)=>{e=t(e,r);return e||i.splice(n,i.length-n),e},r)},tap=n=>(e,...t)=>(n(e,...t),e);function createBaseFor$1(d){return function(e,t,n){for(var i=-1,r=Object(e),o=n(e),a=o.length;a--;){var s=o[d?a:++i];if(!1===t(r[s],s,r))break}return e}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike=isArrayLike_1;function createBaseEach$1(o,a){return function(e,t){if(null!=e){if(!isArrayLike(e))return o(e,t);for(var n=e.length,i=a?n:-1,r=Object(e);(a?i--:++i<n)&&!1!==t(r[i],i,r););}return e}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,identity=identity_1;function castFunction$1(e){return"function"==typeof e?e:identity}var _castFunction=castFunction$1,arrayEach=_arrayEach,baseEach=_baseEach,castFunction=_castFunction,isArray=isArray_1;function forEach(e,t){return(isArray(e)?arrayEach:baseEach)(e,castFunction(t))}var forEach_1=forEach,each=forEach_1,each$1=getDefaultExportFromCjs(each);const dead="dead_connection",disconnected="disconnected",connected="connected",isConnected=e=>e<1e4,isDisconnected=e=>1e4<e,isDead=e=>3e4<e,state$1={lastMessageReceivedAt:0,currentConnectionQuality:disconnected,changeCallbacks:{},evalCallbacks:{}},triggerConnectionStatusChanged=()=>{each$1(state$1.changeCallbacks,e=>{e(state$1.currentConnectionQuality)})},triggerEval=()=>{each$1(state$1.evalCallbacks,e=>{e(state$1.currentConnectionQuality)})},setConnectionStatus=e=>{e!==state$1.currentConnectionQuality&&(state$1.currentConnectionQuality=e,triggerConnectionStatusChanged())},evaluateConnectionQuality=()=>{var e;0===state$1.lastMessageReceivedAt?setConnectionStatus(disconnected):(e=Date.now()-state$1.lastMessageReceivedAt,isConnected(e)?setConnectionStatus(connected):isDisconnected(e)&&(isDead(e)?setConnectionStatus(dead):setConnectionStatus(disconnected)),triggerEval())};let stopFn;const start=(e=0)=>{const t=setInterval(evaluateConnectionQuality,100);stopFn=()=>clearInterval(t)},stop=()=>{stopFn&&stopFn(),resetMonitor()};let _listenerId=0;const onStatusEval=e=>{if(isFunction$3(e)){const t=_listenerId++;return state$1.evalCallbacks[t]=e,()=>{delete state$1.evalCallbacks[t]}}},markTime=(e=Date.now())=>{state$1.lastMessageReceivedAt=e},resetMonitor=()=>{state$1.currentConnectionQuality=disconnected,state$1.lastMessageReceivedAt=0},state={appName:undefined,connectionName:undefined,frameId:undefined,pendingRequests:{},topics:{},senderIds:{},originProvider:undefined,destinationProvider:undefined},getListener=()=>""+state.appName+state.connectionName+`(${state.frameId})`,_send=e=>{e.sender||(e.sender=getListener());var t=e.destination||state.destinationProvider(),n=serialize(e),i=getPortForSender(e.sender),r=hasSenderTriedToUpgradeToMessageChannel(e.sender);i||r?i?i.postMessage(n):t.postMessage(n,state.originProvider()):(r=new MessageChannel,addPort(r.port1,e.sender),t.postMessage(n,state.originProvider(),[r.port2]))},promise=(r,o,a=1e3)=>new Promise$4((e,t)=>{const n=createMessage(r,MESSAGE_PROMISE,o),i=setTimeout$1(()=>{t(r+" timeout"),clearPendingRequest(n),downgradeToPostMessage(n)},a);addPendingRequest(n,()=>clearTimeout(i),e,t),_send(n)}),addSenderId=e=>{state.senderIds[e]||(state.senderIds[e]={port:undefined,hasTriedToUpgradeToMessageChannel:!1})},getSenderInfo=e=>(state.senderIds[e]||addSenderId(e),state.senderIds[e]),getPortForSender=e=>getSenderInfo(e).port,hasSenderTriedToUpgradeToMessageChannel=e=>getSenderInfo(e).hasTriedToUpgradeToMessageChannel,addPendingRequest=(e,t,n,i)=>{state.pendingRequests[e.requestId]={message:e,clearTimeoutfn:t,resolve:n,reject:i}},resolveRequest=e=>{var t=state.pendingRequests[e.requestId];return t&&(t.resolve(e.data),clearPendingRequest(e)),e},clearPendingRequest=e=>{var t=e["requestId"];return state.pendingRequests[t].clearTimeoutfn(),delete state.pendingRequests[t],e},updateSubscriptions=t=>{var e=state.topics[t.name];return e&&e.forEach(e=>e(t.data)),t},PING_MSG="message::ping",sendPing=()=>{promise(PING_MSG)["catch"](()=>{console.log("message::ping timedout")})},dispatchMessage=t=>{var e;return t&&!t.isResponse&&(t.name===PING_MSG?_send(asResponse(t)):(e=state.routeHandlerLookup(t.name))?e(t,e=>{t.data=e,_send(asResponse(t))}):console.log(getListener(),"No route handler for "+t.name,t)),t},commonFns=pipe(resolveRequest,updateSubscriptions,dispatchMessage,tap(()=>{markTime()})),filterWrongOrigin=e=>("*"===state.originProvider()||e.origin===state.originProvider())&&e,filterWrongSender=e=>{var t=get$1(e,"data.sender");return!(!t||"string"!=typeof t||!t.includes(state.appName))&&e},addPort=(e,t)=>{t=getSenderInfo(t);t.port=e,t.hasTriedToUpgradeToMessageChannel=!0,t.port.onmessage=pipe(fromEvent,commonFns)},removePort=e=>{e=getSenderInfo(e);e.port=undefined,e.hasTriedToUpgradeToMessageChannel=!1},upgradeToChannel=(e,t)=>{return!getSenderInfo(e.sender).hasTriedToUpgradeToMessageChannel&&t.ports&&t.ports[0]&&addPort(t.ports[0],e.sender),e},downgradeToPostMessage=e=>{removePort(e.sender)};let _stopListening=()=>{};const stopListening=()=>{_stopListening(),_stopListening=()=>{},stop()},notConnectedListener=throttle$1(e=>{"connected"!==e&&state.usePingAutoReconnect&&sendPing()},1e3),startListening=(e,t,n,i,r,o=!1,a)=>{if(window.addEventListener){state.appName=e,state.frameId=t,state.routeHandlerLookup=n,state.usePingAutoReconnect=o,state.connectionName=a||"",state.originProvider=i||(()=>window.location.origin||"*"),state.destinationProvider=r||(()=>window.parent||window.top),start(),onStatusEval(notConnectedListener);const s=pipe(filterWrongOrigin,filterWrongSender,fromEvent,upgradeToChannel,commonFns);window.addEventListener("message",s),_stopListening=()=>window.removeEventListener("message",s)}};var VocPortal=function(){var r,p;return{name:"VocPortal",initialize:function(e,t){r=e;e=(p=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=r.attachEvent(window,"resize",h),startListening("VocPortal",e,n,function(){return"*"})},routeHandlerLookup:n,queryMessageHandler:t,resizeMessageHandler:i,teardown:function(){this.removeResizeEvent&&this.removeResizeEvent();stopListening()}};function n(e){switch(e){case"pendo-voc::query":return t;case"pendo-voc::resize":return i;default:return undefined}}function h(){var e=document.getElementById("pendo-resource-center-container"),e=r.dom(e);p.sizeElements(e)}function t(e,t){var n=r.getSerializedMetadata(),i=!!r.designer||p.store.getters["preview/isInPreviewMode"]();t({apiKey:r.apiKey,url:r.url.externalizeURL(),visitor:n.visitor,account:n.account,parentAccount:n.parentAccount,sandboxMode:i})}function i(e){try{var t,n,i,r=e.data.width,o=r.value,a=r.unit,s=r.isImportant,d=e.data.height,u=d.value,c=d.unit,l=d.isImportant;"number"==typeof o&&"number"==typeof u&&((t=["px","%","vh","vw"]).includes(a)&&t.includes(c))&&(n="".concat(o).concat(a).concat(s?" !important":""),i="".concat(u).concat(c).concat(l?" !important":""),document.getElementById("pendo-resource-center-container").appendChild(document.createElement("style")).innerHTML='#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {\n width: '.concat(n,";\n height: ").concat(i,";\n ._pendo-step-container-size {\n width: ").concat(n,";\n height: ").concat(i,";\n }\n }"),h())}catch(err){p.log.error("Error while adjusting RC module",err)}}}();function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}var Feedback=function(){var a,s,i="feedback_notification_count",d="",u="",c="",r="",o=!1,l="",p=!1,h="feedback_ping_sent",G=36e5,f={feedbackIframe:"feedback-widget_iframe",feedbackTrigger:"feedback-trigger",feedbackWidget:"feedback-widget",feedbackOverlay:"feedback-overlay",feedbackTriggerButton:"feedback-trigger-button",feedbackStyles:"pendo-feedback-styles",feedbackFrameStyles:"pendo-feedback-visible-buttons-styles"};return{name:"Feedback",initialize:function(e,t){s=t;var n={ping:I,init:F,initialized:j,loginAndRedirect:A,openFeedback:k,initializeFeedbackOnce:S,isFeedbackLoaded:U,convertPendoToFeedbackOptions:P,isUnsupportedIE:(a=e)._.partial(isUnsupportedIE,t),removeFeedbackWidget:z};return e.feedback=n,e.getFeedbackSettings=Z,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i),t.agentStorage.registry.addLocal(h),{validate:g}},teardown:function(){z(),s.Events.identify.off(m),s.Events.metadata.off(m),s.Events.ready.off(v),delete a.feedback,delete a.getFeedbackSettings},validate:g};function g(e,t){t=isFeedbackOn(t);return t&&isUnsupportedIE(e)?(console.warn("The current version of IE is not supported by Pendo Feedback"),!1):t}function t(){var e=L();p?I(P(e)):!isFeedbackOn(s)||s.ConfigReader.get("disableFeedbackAutoInit")||s.ConfigReader.get("disableFeedback",!1)||a._.isEmpty(e)||F(e,s.ConfigReader.get("feedbackSettings"))["catch"](a._.noop)}function m(e){e=a._.get(e,"data.0.visitor_id")||a._.get(e,"data.0.options.visitor.id");a.isAnonymousVisitor(e)||t()}function v(){t()}function y(){return c+"/html/widget/notLoaded.html"}function n(e){return e=e||P(L()),s.agentStorage.read(h)===b(e)}function b(e){return JSON.stringify(e)}function I(e){if(!n(e)){s.agentStorage.write(h,b(e),G);e=w(e);if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/pendo_ping",e).then(function(e){e=e.data.notifications;s.agentStorage.write(i,e),C()})["catch"](function(){s.agentStorage.clear(h)})}return s.q.resolve()}function w(e){return e=e||P(L()),{data:JSON.stringify(e)}}function C(){var e,t=a.dom("#feedback-trigger-notification");0!==t.length&&(e=s.agentStorage.read(i)||0,0<parseInt(e,10)?a._.each(t,function(e){a.dom(e).css({visibility:"visible"})}):a._.each(t,function(e){a.dom(e).css({visibility:"hidden"})}))}function S(){return p&&n()?s.q.resolve():F(L(),s.ConfigReader.get("feedbackSettings"))}function A(e){return S().then(function(){if(a._.isUndefined(e)&&(e={}),"A"===a._.get(e,"anchor.nodeName","").toUpperCase())return t=window.open(y(),Math.random().toString(36).substring(7)),_().then(function(e){t.location=e}),!1;var t;_().then(function(e){window.location.href=e})},function(){})}function T(e){var t=document.createElement("a");return t.href=e,t.host}function _(){var e=w();if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/token",e).then(function(e){var t;return t=e.data.login_url,r=T(t),e.data.login_url})}function E(){return document.getElementById(f.feedbackWidget)}function x(){return document.getElementById(f.feedbackIframe)}function R(){var e=x();return e||(W(),e=x()),e}function k(e){var t,n;$()&&(e&&e.preventDefault&&e.preventDefault(),(t=R()).src&&t.src!==y()||_().then(function(e){t.src=e+"&inWidget=true"}),(e=a.dom("#".concat(f.feedbackWidget)))&&((n=a.dom(document.createElement("div"))).attr("id","feedback-overlay"),n.css({position:"fixed",top:"0",right:"0",bottom:"0",left:"0",background:"rgba(0, 0, 0, 0.4)","z-index":"9000",opacity:"0",animation:"pendoFeedbackFadeIn 0.5s 0s 1 alternate both","-webkit-animation":"pendoFeedbackFadeIn 0.5s 0s 1 alternate both"}),n.appendTo(e.getParent())),a.dom.addClass(E(),"visible"),N("user.widget.opened"))}function O(){var e,t;e=document.getElementById(f.feedbackWidget),t=document.getElementById(f.feedbackOverlay),e&&t&&(e=document.getElementById(f.feedbackOverlay)).parentNode.removeChild(e),a.dom.removeClass(E(),"visible"),N("user.widget.closed")}function N(e){var t=w();t.event=e,a.ajax.postJSON(d+"/analytics",t)}function D(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?T(t)===r:T(t)===T(c)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":O();break;case"open-receptive":A();break;case"update-receptive-notification-count":s.agentStorage.write(i,n.count),C();break;case"handle-logout":R().src=y(),O();break;case"loaded-receptive-widget":o=!0}}},!1)}function M(e,t){var n;a.dom("#".concat(e))[0]||((n=a.dom(document.createElement("style"))).attr("id",e),n.html(t),n.appendTo(document.head))}function B(e){var t,n,i=a._.extend(e,{triggerColor:"#"+e.triggerColor,triggerPosition:e.triggerPosition.toLowerCase()}),r=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(f.feedbackIframe);t&&(t.src=y())}),function(e){e=e.triggerPosition.split("_");return{horizontalPosition:e[1],verticalPosition:e[0]}}(i));M(f.feedbackStyles,(n="left"===(n=r.horizontalPosition)?(t="@-webkit-keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-left.visible{width:100%}}"):(t="@-webkit-keyframes pendoFeedbackSlideFrom-right{from{transform:translate(-460px,0)}to{transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-right{from{opacity:0;transform:translate(460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-right.visible{width:100%;right:2%}}"),"@media only screen and (max-device-width:1112px){#feedback-widget{overflow-y:scroll}}@-webkit-keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@-webkit-keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}@keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}"+t+"@-webkit-keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@-webkit-keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}@keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}"+n+"#feedback-trigger button:focus,#feedback-trigger button:hover{box-shadow:0 -5px 20px rgba(0,0,0,.19);outline:0;background:#3e566f}")),e.customTrigger||(t=i,n=r,M("pendo-feedback-trigger-styles","\n #feedback-trigger button:hover {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n #feedback-trigger button:focus {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n "),e=function(e){var t=function(e){return"left"===e.horizontalPosition?{"transform-origin":"center left",left:"23px",animation:"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards"}:{right:"0px",animation:"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards"}}(e),e=function(e){switch(e.verticalPosition){case"top":return{top:" 10%"};case"middle":return{top:" 45%"};case"bottom":return{bottom:" 20%"}}}(e),t=a._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=a.dom(document.createElement("div"));return e.attr("id",f.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=a.dom(document.createElement("span"));return e.attr("id","feedback-trigger-notification"),e.css({"background-color":"#D85039",color:"#fff","border-radius":"50%",height:"17px",width:"17px",position:"absolute",right:"-6px",top:"-8px",visibility:"hidden","z-index":"1",animation:"pendoFeedbackPulse","animation-fill-mode":"both","animation-duration":"1s","animation-delay":"1s","animation-iteration-count":"1"}),e}(),t=function(e,t){t="left"===t.horizontalPosition?"0 0 5px 5px":"3px 3px 0 0";var t={border:"none",padding:"11px 18px 14px 18px","background-color":e.triggerColor,"border-radius":t,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},n=a.dom(document.createElement("button"));return n.attr("id",f.feedbackTriggerButton),n.css(t),n.text(e.triggerText),n}(t,n),e.append(i),e.append(t),e.appendTo(a.dom.getBody()),s.attachEvent(t[0],"click",k)),W(r.horizontalPosition)}function W(e){t="\n .buttonIs-".concat(t="left"===(t=e)?"left":"right",".visible {\n ").concat(t,": 0 !important;\n width: 470px !important;\n animation-direction: alternate-reverse !important;\n animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n -webkit-animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n z-index: 9002 !important;\n }\n "),M(f.feedbackFrameStyles,t),t=e,(e=a.dom(document.createElement("div"))).css({height:"100%",position:"fixed",right:"0",top:"0",width:"0","background-color":"#f7f7f7",transition:"animation 0.4s ease-in-out","box-shadow":"0 5px 40px rgba(0,0,0,.46)",display:"block !important","-webkit-overflow-scrolling":"touch","overflow-y":"hidden"}),e.attr("id",f.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-".concat(t));var t=e;t.append(((e=a.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",f.feedbackIframe),e.attr("src",y()),e)),t.appendTo(a.dom.getBody()),D()}function U(){return o}function L(){var e=s.ConfigReader.getLocalConfig();return a._.isObject(e)||(e={}),a._.isObject(e.visitor)||(e.visitor={}),a._.isObject(e.account)||(e.account={}),e}function $(e){e=e||L();if(!isUnsupportedIE(a)&&u&&d&&c&&l)if(a._.get(e.visitor,"id")){if(!a.isAnonymousVisitor(e.visitor.id)){if(a._.get(e.account,"id"))return 1;a.log("The current visitor is not associated with an account.")}}else a.log("Not valid visitor id")}function F(e,t){if(u=t.vendorId,d=t.apiUrl,c=t.siteUrl,l=t.productId,p)return s.q.reject();if(!$(e))return s.q.reject();var n,i,e=P(e);try{n=a.url.get(),i="fdbkDst";var r=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(r&&r.startsWith("case"))return p=!0,void _().then(function(e){window.location.href=e+"&fdbkDst="+r})}catch(o){p=!1,a.log(o,"unhandled error while checking feedback destination")}try{return p=!0,"WIDGET"===t.type&&B(t),C(),I(e)}catch(o){return p=!1,a.log(o,"unhandled error while initializing feedback"),s.q.reject(o)}}function P(e){var t,n,i=s.agent.getJwtInfoCopy();return a._.isEmpty(i)?((t={}).user=a._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),a._.extend(t.user,{allowed_products:[{id:l}]}),t.account=a._.pick(e.account,"id","name","monthly_value","is_paying","tags"),a._.extend(t,{vendor:{id:u}}),a._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"noemail+"+a.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io")),null!=t.user.full_name&&""!=t.user.full_name||(t.user.full_name=(e=t,a._.isUndefined(e.user.firstName)&&a._.isUndefined(e.user.lastName)?a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"No Name Provided"+a.randomString(32):"No Name Provided"+e.user.id:(n=[],a._.isUndefined(e.user.firstName)||n.push(e.user.firstName),a._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),a._.extend(e,{vendor:{id:u}}),a._.extend(e,{allowed_products:[{id:l}]}),e)}function j(){return p}function z(){a._.each(a._.values(f),function(e){a.dom("#"+e).remove()}),l=r=c=u=d="",p=o=!1}function Z(){return JSON.parse(JSON.stringify(s.ConfigReader.get("feedbackSettings",{})))}}(),replay=errorLogger(new SessionRecorder(record,WorkerFactory));export{Feedback,GuideMarkdown,replay as Replay,TextCapture,VocPortal,loadAgent};