-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblacklist-agent.js
executable file
·58 lines (52 loc) · 365 KB
/
blacklist-agent.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Pendo Agent Wrapper
// Environment: production
// Agent Version: 2.59.1
// Installed: 2020-07-21T20:31:48Z
(function (PendoConfig) {
!function(window,document,undefined){function shouldLoadStagingAgent(e){if(hasHashedStagingServers(e))for(var t=getHash(location.host),n=0,i=e[STAGING_SERVER_HASHES].length;i>n;++n){var o=e[STAGING_SERVER_HASHES][n];if(o===t)return!0}if(hasStagingServerConfig(e))for(var r=0,a=e.stagingServers.length;a>r;++r){var s=e.stagingServers[r];if("string"==typeof s&&(s=new RegExp("^"+s+"$")),s instanceof RegExp&&s.test(location.host))return!0}return!1}function getHash(e){return b64.uint8ToBase64(sha1.create().update(e).digest())}function hasHashedStagingServers(e){return e&&e.stagingAgentUrl&&e[STAGING_SERVER_HASHES]}function hasStagingServerConfig(e){return e&&e.stagingAgentUrl&&e.stagingServers}function enqueueCall(e,t){var n=window.pendo=window.pendo||{},i=n._q=n._q||[],o="initialize"===e?"unshift":"push";i[o]([].concat.apply([e],t))}function captureCall(e,t){t[e]=t[e]||function(){enqueueCall(e,arguments)}}function loadStagingAgent(e){if(shouldLoadStagingAgent(e)){var t=window.pendo=window.pendo||{};if(!t._q){var n,i,o=METHODS_TO_CAPTURE;for(n=0,i=o.length;i>n;++n)captureCall(o[n],t)}return includeScript(e.stagingAgentUrl),!0}return!1}function includeScript(e){var t="script",n=document.createElement(t);n.async=!0,n.src=e;var i=document.getElementsByTagName(t)[0];i.parentNode.insertBefore(n,i)}function getPendoConfigValue(e){return"undefined"!=typeof PendoConfig?PendoConfig[e]:void 0}var sha1=function(module){return function(){"use strict";function Sha1(e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):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}var root="object"==typeof window?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS&&(root=global);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&define.amd,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(e){return function(t){return new Sha1(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Sha1},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(e.length===undefined)return method(e);return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")};return nodeMethod};Sha1.prototype.update=function(e){if(!this.finalized){var t="string"!=typeof e;t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));for(var n,i,o=0,r=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),t)for(i=this.start;r>o&&64>i;++o)a[i>>2]|=e[o]<<SHIFT[3&i++];else for(i=this.start;r>o&&64>i;++o)n=e.charCodeAt(o),128>n?a[i>>2]|=n<<SHIFT[3&i++]:2048>n?(a[i>>2]|=(192|n>>6)<<SHIFT[3&i++],a[i>>2]|=(128|63&n)<<SHIFT[3&i++]):55296>n||n>=57344?(a[i>>2]|=(224|n>>12)<<SHIFT[3&i++],a[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++],a[i>>2]|=(128|63&n)<<SHIFT[3&i++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++o)),a[i>>2]|=(240|n>>18)<<SHIFT[3&i++],a[i>>2]|=(128|n>>12&63)<<SHIFT[3&i++],a[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++],a[i>>2]|=(128|63&n)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=a[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(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()}},Sha1.prototype.hash=function(){var e,t,n,i=this.h0,o=this.h1,r=this.h2,a=this.h3,s=this.h4,d=this.blocks;for(t=16;80>t;++t)n=d[t-3]^d[t-8]^d[t-14]^d[t-16],d[t]=n<<1|n>>>31;for(t=0;20>t;t+=5)e=o&r|~o&a,n=i<<5|i>>>27,s=n+e+s+1518500249+d[t]<<0,o=o<<30|o>>>2,e=i&o|~i&r,n=s<<5|s>>>27,a=n+e+a+1518500249+d[t+1]<<0,i=i<<30|i>>>2,e=s&i|~s&o,n=a<<5|a>>>27,r=n+e+r+1518500249+d[t+2]<<0,s=s<<30|s>>>2,e=a&s|~a&i,n=r<<5|r>>>27,o=n+e+o+1518500249+d[t+3]<<0,a=a<<30|a>>>2,e=r&a|~r&s,n=o<<5|o>>>27,i=n+e+i+1518500249+d[t+4]<<0,r=r<<30|r>>>2;for(;40>t;t+=5)e=o^r^a,n=i<<5|i>>>27,s=n+e+s+1859775393+d[t]<<0,o=o<<30|o>>>2,e=i^o^r,n=s<<5|s>>>27,a=n+e+a+1859775393+d[t+1]<<0,i=i<<30|i>>>2,e=s^i^o,n=a<<5|a>>>27,r=n+e+r+1859775393+d[t+2]<<0,s=s<<30|s>>>2,e=a^s^i,n=r<<5|r>>>27,o=n+e+o+1859775393+d[t+3]<<0,a=a<<30|a>>>2,e=r^a^s,n=o<<5|o>>>27,i=n+e+i+1859775393+d[t+4]<<0,r=r<<30|r>>>2;for(;60>t;t+=5)e=o&r|o&a|r&a,n=i<<5|i>>>27,s=n+e+s-1894007588+d[t]<<0,o=o<<30|o>>>2,e=i&o|i&r|o&r,n=s<<5|s>>>27,a=n+e+a-1894007588+d[t+1]<<0,i=i<<30|i>>>2,e=s&i|s&o|i&o,n=a<<5|a>>>27,r=n+e+r-1894007588+d[t+2]<<0,s=s<<30|s>>>2,e=a&s|a&i|s&i,n=r<<5|r>>>27,o=n+e+o-1894007588+d[t+3]<<0,a=a<<30|a>>>2,e=r&a|r&s|a&s,n=o<<5|o>>>27,i=n+e+i-1894007588+d[t+4]<<0,r=r<<30|r>>>2;for(;80>t;t+=5)e=o^r^a,n=i<<5|i>>>27,s=n+e+s-899497514+d[t]<<0,o=o<<30|o>>>2,e=i^o^r,n=s<<5|s>>>27,a=n+e+a-899497514+d[t+1]<<0,i=i<<30|i>>>2,e=s^i^o,n=a<<5|a>>>27,r=n+e+r-899497514+d[t+2]<<0,s=s<<30|s>>>2,e=a^s^i,n=r<<5|r>>>27,o=n+e+o-899497514+d[t+3]<<0,a=a<<30|a>>>2,e=r^a^s,n=o<<5|o>>>27,i=n+e+i-899497514+d[t+4]<<0,r=r<<30|r>>>2;this.h0=this.h0+i<<0,this.h1=this.h1+o<<0,this.h2=this.h2+r<<0,this.h3=this.h3+a<<0,this.h4=this.h4+s<<0},Sha1.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,o=this.h4;return HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,o=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,o>>24&255,o>>16&255,o>>8&255,255&o]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.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 exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&define(function(){return exports}))}(),module.exports}({exports:{}}),b64=function(){"use strict";function e(e){function n(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[63&e]}var i,o,r,a=e.length%3,s="";for(i=0,r=e.length-a;r>i;i+=3)o=(e[i]<<16)+(e[i+1]<<8)+e[i+2],s+=n(o);switch(a){case 1:o=e[e.length-1],s+=t[o>>2],s+=t[o<<4&63];break;case 2:o=(e[e.length-2]<<8)+e[e.length-1],s+=t[o>>10],s+=t[o>>4&63],s+=t[o<<2&63]}return s}var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");return{uint8ToBase64:e}}(),STAGING_SERVER_HASHES="stagingServerHashes",METHODS_TO_CAPTURE=["initialize","identify","updateOptions","pageLoad","track"];"undefined"!=typeof PendoConfig&&loadStagingAgent(PendoConfig)||(!function(){"use strict";function Eventable(){var e=this._handlers={};return this.on=function(t,n){if(_.isString(t)||_.isFunction(n)){var i=e[t];i||(i=e[t]=[]),_.indexOf(i,n)<0&&i.push(n)}return 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.off=function(t,n){var i=e[t];if(_.isFunction(n)){var o=_.indexOf(i,n);i&&o>=0&&i.splice(o,1)}else i&&n===undefined&&(i.length=0);return this},this.trigger=function(t){var n=e[t],i=_.toArray(arguments).slice(1),o=_.map(n,function(e){var t=e.apply(pendo,i);return t===!1?q.reject():t});return q.all(o)},this}function backupObjectState(e,t){var n={};return t||(t=_.keys(e)),_.each(t,function(t){var i=e[t];_.isArray(i)?n[t]=i.slice():_.isFunction(i)||(n[t]=i)}),function(){_.each(n,function(t,n){e[n]=t})}}function getNow(){return(new Date).getTime()}function isSfdcLightning(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function createStatefulIterator(e){function t(t,n){if(!n)return t;for(var i=0,o=t.length;o>i;++i)if(e(t[i],i)===n)return t.slice(i+1).concat(t.slice(0,i+1));return t}function n(n,i){if(n&&n.length){n=t(n,this.lastKey);for(var o=0;o<n.length;++o)if(i(n[o],o))return void(this.lastKey=e(n[o],o));this.lastKey=null}}function i(){this.lastKey=null}return _.isFunction(e)||(e=function(e,t){return t}),{lastKey:null,eachUntil:n,reset:i}}function throttleIterator(e,t){return t.eachUntil=_.wrap(t.eachUntil,function(t,n,i){var o=getNow();return t.call(this,n,function(){return i.apply(this,arguments)||Math.abs(getNow()-o)>=e})}),t}function getHashFromContentUrl(e){if(_.isString(e)){var t=_.last(e.split("/"));return _.first(t.split("."))}}function get(e,t,n){if(_.isString(t)){if(doesExist(e)&&doesExist(e[t]))return e[t];for(var i=t.split("."),o=0,r=i.length;r>o;++o){if(!doesExist(e))return n;e=e[i[o]]}return doesExist(e)?e:n}return n}function getZoneSafeMethod(e){var t="__symbol__";if("undefined"!=typeof Zone&&_.isFunction(Zone[t])){var n=window[Zone[t](e)];if(_.isFunction(n))return n}return window[e]}function documentScrollTop(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop||getBody().scrollTop)-(e.clientTop||0)}function documentScrollLeft(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft||getBody().scrollLeft)-(e.clientLeft||0)}function bodyOffset(){var e=getBody();if(e){var t=getComputedStyle_safe(e);if(t&&("relative"===t.position||"absolute"===t.position||hasCssTransform(t))){var n=e.getBoundingClientRect();return{top:n.top+documentScrollTop(),left:n.left+documentScrollLeft()}}}return{top:0,left:0}}function positionFixedActsLikePositionAbsolute(){return hasCssTransform(getComputedStyle_safe(getBody()))&&isNaN(msie)}function hasCssTransform(e){if(e&&_.isFunction(e.getPropertyValue)){var t=[e.getPropertyValue("transform")];return"undefined"!=typeof vendorPrefix&&_.isString(vendorPrefix)&&t.push(e.getPropertyValue("-"+vendorPrefix.toLowerCase()+"-transform")),_.any(t,function(e){return e&&"none"!==e})}return!1}function applyBodyOffset(e){var t=bodyOffset();return e.left-=t.left,e.top-=t.top,_.isNumber(e.right)&&(e.right-=t.left),_.isNumber(e.bottom)&&(e.bottom-=t.top),e}function roundOffsetPosition(e){return _.each(["left","top","width","height"],function(t){e[t]=Math.round(e[t])}),e}function getOffsetPosition(e){var t,n,i;if(!e)return{width:0,height:0};if(t={width:_.isNumber(e.offsetWidth)?e.offsetWidth:0,height:_.isNumber(e.offsetHeight)?e.offsetHeight:0},n=0,i=0,e.getBoundingClientRect){var o;try{o=e.getBoundingClientRect()}catch(r){return{width:0,height:0}}return t.top=o.top,t.left=o.left,t.width=Math.max(t.width,_.isNumber(o.width)?o.width:0),t.height=Math.max(t.height,_.isNumber(o.height)?o.height:0),isPositionFixed(e)?t.fixed=!0:(t.top+=documentScrollTop(),t.left+=documentScrollLeft(),t=applyBodyOffset(t)),roundOffsetPosition(t)}for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return t.top=i,t.left=n,roundOffsetPosition(t)}function isInDocument(e){return Sizzle.contains(document,e)}function hasParentWithCssTransform(e){for(var t,n=e&&e.parentNode;n;){if(t=getComputedStyle_safe(n),hasCssTransform(t))return!0;n=n.parentNode}return!1}function isPositionFixed(e){for(var t,n=e;n;){if(t=getComputedStyle_safe(n),!t)return!1;if("fixed"===t.position)return isNaN(msie)?!hasParentWithCssTransform(n):!0;n=n.parentNode}return!1}function getOverflowDirection(e,t){var n=getComputedStyle_safe(e);return t=t||/(auto|scroll|hidden)/,n?t.test(n.overflowY)&&t.test(n.overflowX)?OverflowDirection.BOTH:t.test(n.overflowY)?OverflowDirection.Y:t.test(n.overflowX)?OverflowDirection.X:t.test(n.overflow)?OverflowDirection.BOTH:OverflowDirection.NONE:OverflowDirection.NONE}function isVisibleInScrollParent(e,t,n){var i=getClientRect(t),o=getOverflowDirection(t,n);if(o===OverflowDirection.BOTH&&!intersectRect(e,i))return!1;if(o===OverflowDirection.Y){if(e.top>=i.bottom)return!1;if(e.bottom<=i.top)return!1}if(o===OverflowDirection.X){if(e.left>=i.right)return!1;if(e.right<=i.left)return!1}return!0}function isBodyElement(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()}function isElementVisibleInBody(e){if(!e)return!1;if(isBodyElement(e))return!0;var t=getClientRect(e);if(0===t.width||0===t.height)return!1;var n=getComputedStyle_safe(e);if(n&&"hidden"===n.visibility)return!1;for(var i=e;i&&n;){if("none"===n.display)return!1;if(Number(n.opacity)<=0)return!1;i=i.parentNode,n=getComputedStyle_safe(i)}return!0}function isElementVisible(e,t){if(!isElementVisibleInBody(e))return!1;if(isBodyElement(e))return!0;var n=getClientRect(e);t=t||/hidden/;for(var i=getScrollParent(e,t),o=null,r=getBody();i&&i!==r&&i!==document&&i!==o;){if(!isVisibleInScrollParent(n,i,t))return!1;o=i,i=getScrollParent(i,t)}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),s=a.right,d=a.bottom;if(n.fixed||(s+=documentScrollLeft(),d+=documentScrollTop()),0>=s||0>=d)return!1}return!0}function scrollIntoView(e){var t,n,i,o,r,a,s=/(auto|scroll)/,d=getBody();if(!isElementVisible(e,s))for(n=getScrollParent(e,s);n&&n!==d;)t=getClientRect(e),i=getClientRect(n),o=0,r=0,t.bottom>i.bottom&&(o+=t.bottom-i.bottom,t.top-=o,t.bottom-=o),t.top<i.top&&(a=i.top-t.top,o-=a,t.top+=a,t.bottom+=a),t.right>i.right&&(r+=t.right-i.right,t.left-=r,t.right-=r),t.left<i.left&&(a=i.left-t.left,r-=a,t.left+=a,t.right+=a),n.scrollTop+=o,n.scrollLeft+=r,n=getScrollParent(n,s)}function evalScript(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 dom(e,t){var n,i,o=this;if(e&&e instanceof dom)return e;if(!(o instanceof dom))return new dom(e,t);if(e)if(e.nodeType)n=[e];else if(i=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(i[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else _.isString(e)?(t instanceof dom&&(t=t.length>0?t[0]:null),n=Sizzle(e,t)):n=[e];else n=[];return _.each(n,function(e,t){o[t]=e}),o.context=t,o.length=n.length,o}function isStringWhiteSpace(e){return e&&"string"==typeof e&&0===trim.call(e).length}function setCookieDomain(e,t){if(!e)return void(cookieDomain=e);if(_.isString(e)){t=t.replace(/:\d+$/,""),e=e.replace(/^\./,"");var n=new RegExp("\\."+e.replace(/\./g,"\\.")+"$"),i=new RegExp("^"+e.replace(/\./g,"\\.")+"$");(n.test(t)||i.test(t))&&(cookieDomain="."+e)}}function getPendoCore(){var e=getPendoConfigValue("pendoCore");return"undefined"==typeof e?!0:e}function shouldInitializeFeedback(e){return isFeedbackOn&&!isDisableFeedbackAutoInitOn&&!isAnonymousVisitor(e)}function doesExist(e){return!("undefined"==typeof e||null===e)}function shouldReloadGuides(e,t){return e&&pendo.apiKey?areGuidesDisabled()&&"true"!==pendoLocalStorage.getItem("pendo-designer-mode")?!1:e!==reloadGuides.lastUrl||t!==reloadGuides.lastVisitorId:!1}function reloadGuides(e){var t=pendo.get_visitor_id();e=e||pendo.url.get(),shouldReloadGuides(e,t)&&(reloadGuides.lastUrl=e,reloadGuides.lastVisitorId=t,pendo.loadGuides(pendo.apiKey,t,e))}function forceGuideReload(){reloadGuides.lastUrl=null,queueGuideReload()}function getApiKey(e){var t=getPendoConfigValue("apiKey");return t?t:e.apiKey?e.apiKey:void 0}function getAdditionalApiKeys(e){var t,n=getPendoConfigValue("additionalApiKeys");return t=n?n:e.additionalApiKeys?e.additionalApiKeys:[],t&&!_.isArray(t)&&(t=[t]),t}function registerEventHandlers(e){_.each(e.events,function(e,t){pendo.events[t]&&pendo.events[t](e)})}function launchDesignerOrPreview(e){_.find([_.partial(pendo.designerv2.launchOnToken,window.location),_.partial(startPreviewMode,window)],function(e){return e()}),(e.enableDesignerKeyboardShortcut||!getPendoConfigValue("disableDesignerKeyboardShortcut"))&&pendo.P2AutoLaunch.listen()}function localStorageNavigation(e){if(!e.ignoreLocalStorageNavigation){var t=pendoLocalStorage.getItem("pendo-navigation-state");if(t)try{var n=JSON.parse(t),i={lookaside:n.baseUrl,preloader:!0,host:n.host};pendo.designerv2.launchInAppDesigner(i)}catch(o){}}}function flushCallQueue(){if(_.isArray(pendo._q)&&!_.isEmpty(pendo._q)){var e=pendo._q.splice(0,pendo._q.length),t=_.reduce(e,function(e,t){if(!_.isArray(t))return e;var n=pendo[t.shift()];return _.isFunction(n)?e.then(function(){return n.apply(pendo,t)}):e},q.resolve());return t.then(flushCallQueue)}}function getDataHost(){var e=getPendoConfigValue("dataHost");return e?"https://"+e:getOption("dataHost","https://app.pendo.io")}function getAllApiKeys(){return _.compact([pendo.apiKey].concat(pendo.additionalApiKeys))}function writeEvent(e,t){var n=(new Date).getTime();return writeBeacon(t,{v:VERSION,ct:n,jzb:e})}function writeBeacon(e,t){var n=getJwtInfoCopy(),i=buildBaseDataUrl(e+".gif",pendo.apiKey,t);if("log"!==e&&!_.isEmpty(n)){var o=JSON.stringify({events:t.jzb,jwt:n.jwt,signingKeyName:n.signingKeyName});return i=buildBaseDataUrl(e+".gif",pendo.apiKey,_.omit(t,"jzb")),void pendo.ajax({method:"POST",url:i,data:o,headers:{"Content-Type":"application/json"}})}return writeImgTag(i)}function writeErrorPOST(e){try{var t=HOST+"/data/errorlog?apiKey="+pendo.apiKey;getPendoConfigValue("blockLogRemoteAddress")&&(t+="&log=0");var n=pendo.ajax.postJSON(t,{error:e,version:"v"+VERSION,visitorId:pendo.get_visitor_id()});return n.then(function(){pendo.log("successfully wrote error")},function(e){pendo.log("error writing error:"+e)})}catch(i){return log("Failed to write error to server using POST endpoint: "+i),writeMessage("Failed to write error to server using POST endpoint: "+i)}}function writeImgTag(e){if(!isUnlocked())return q.resolve();if(isInPreviewMode())return q.resolve();var t=q.defer(),n=new Image;return n.onload=function(){t.resolve()},n.onerror=function(){t.reject()},n.src=e,t.promise}function fetchKeepalive(e){fetch(e,{method:"GET",keepalive:!0})}function sendBeacon(e,t){navigator.sendBeacon(e,new Blob([JSON.stringify(t)],{type:"text/plain"}))}function callLater(e,t){if(t=parseInt(t,10)||0,e[t])return e[t];var n=window.setTimeout(function(){e(),e[t]()},t);return e[t]=function(){window.clearTimeout(n),delete e[t]}}function flushNow(e,t){try{eventQueue.flush(t),trackEventQueue.flush(t)}catch(n){writeException(n,"unhandled error while flushing event cache")}}function flushLater(e){return callLater(_.partial(flushNow,!0),e)}function flushEvery(e){if(e=parseInt(e,10)||0,_.isObject(flushEvery.intervals)||(flushEvery.intervals={}),!flushEvery.intervals[e]){var t=window.setInterval(flushNow,e);return flushEvery.intervals[e]=function(){clearInterval(t),delete flushEvery.intervals[e]}}}function flushStop(){var e=_.values(flushEvery.intervals).concat([flushNow]);_.map(e,function(e){pendo._.isFunction(e)&&e()})}function buffersClearAll(){eventQueue.clear(),trackEventQueue.clear(),xhrEventQueue.clear(),flushStop()}function eventCreate(e,t,n,i,o){var r={type:e,browser_time:getNow(),visitor_id:pendo.get_visitor_id(),account_id:pendo.get_account_id(),url:pendo.url.externalizeURL(n),props:t};return r=EventTracer.addTracerIds(r),"track"===e?r.track_event_name=i||defaultTrackName:"click"===e&&o&&(r.eventProperties=o),r}function collectEvent(e,t,n,i,o){if(pendoCore){var r=eventCreate(e,t,n,i,o);if(isURLValid(r.url)&&eventIsWhitelisted(r))return"track"===e?void trackEventQueue.push(r):void eventQueue.push(r)}}function eventIsWhitelisted(e){return getPendoConfigValue("freeNPSData")?pendo._.contains(WHITELIST_FREE_NPS,e.type):!0}function pipeline(){var e=_.toArray(arguments);return function(t,n){var i=e.concat([n]);!function o(e,t){e<i.length&&i[e](t,function(t){o(e+1,t)})}(0,t)}}function reducer(e,t){var n=t;return function(t,i){n=e(n,t),i(n)}}function siloReducer(e){return reducer(function(e,t){return e.push(t),e},e)}function eventAddBytes(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function filterSiloCapacity(e,t){for(var n,i=0,o=0;o<e.length;++o){var r=eventAddBytes(e[o]).bytes;i+r>SILO_MAX_BYTES&&(n=o),i+=r}if(0===n&&1===e.length&&(n=1),n){var a=e.slice(0,n),s=e.slice(n);e.length=0,e.push.apply(e,s),t(a)}}function filterSiloLength(e,t){if(e.length>MAX_NUM_EVENTS){var n=e.slice();e.length=0,t(n)}}function shortenFields(e){return e=_.defaults(e||{},{fields:["url"],fieldMaxLength:URL_MAX_LENGTH,siloMaxLength:ENCODED_EVENT_MAX_POST_LENGTH}),function(t,n){if(1===t.length&&t.JZB.length>e.siloMaxLength){var i=t[0];debug("Max length exceeded for an event"),_.each(e.fields,function(n){var o=i[n];o&&o.length>e.fieldMaxLength&&(debug("shortening "+n+" and retrying"),i[n]=limitURLSize(e.fieldMaxLength,o),delete t.JZB)})}n(t)}}function compressSilo(e,t){if(0!==e.length){if(e.JZB)return t(e);if(e.JZB=pendo.squeezeAndCompress(e.slice()),e.JZB.length<=ENCODED_EVENT_MAX_LENGTH)return t(e);if(1===e.length)return t(e);var n=e.length/2;compressSilo(e.slice(0,n),t),compressSilo(e.slice(n),t)}}function filterAnalyticsDisabled(e,t){isUnlocked()&&(isInPreviewMode()||t(e))}function errorLogger(e,t){1===e.length&&e.JZB.length>ENCODED_EVENT_MAX_LENGTH?(debug("Couldn't write event"),writeMessage("Single item is: "+e.JZB.length+". Dropping."),writeErrorPOST(e.JZB)):writeErrorPOST("Failed to write silo: "+e.JZB)}function getApiKeysFromOptions(e){return _.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey)}function buildGetRequestUrls(e,t){return _.map(getApiKeysFromOptions(e),function(n){return buildBaseDataUrl(e.beacon+".gif",n,_.extend({v:VERSION,ct:getNow(),jzb:t},e.params))})}function buildPostRequestUrls(e,t){return _.map(getApiKeysFromOptions(e),function(n){return buildBaseDataUrl(e.beacon+".gif",n,_.extend({v:VERSION,ct:getNow(),s:t.length},e.params))})}function defaultSendEvent(e){return function(t,n){var i=t.JZB;if(!i)return n(t);var o=getJwtInfoCopy(),r=i.length;return _.isEmpty(o)||(r+=o.jwt.length+o.signingKeyName.length),r>ENCODED_EVENT_MAX_POST_LENGTH?n(t):ENCODED_EVENT_MAX_LENGTH>=r?void(_.isEmpty(o)?_.each(buildGetRequestUrls(e,i),writeImgTag):(e.params=_.extend({},e.params,o),_.each(buildGetRequestUrls(e,i),function(e){pendo.ajax({method:"GET",url:e})}))):e.allowPost?void(sendBeacon.supported()?_.each(buildPostRequestUrls(e,i),function(e){var t=_.extend({events:i},o);sendBeacon(e,t)}):_.each(buildPostRequestUrls(e,i),function(e){var t=_.extend({events:i},o),n={"Content-Type":"application/json"};pendo.ajax({method:"POST",url:e,data:JSON.stringify(t),headers:n})})):void n(t)}}function reliableSendEventForUnload(e){return function(t,n){var i=t.JZB;if(!i)return n(t);var o=getJwtInfoCopy(),r=i.length;return _.isEmpty(o)||(r+=o.jwt.length+o.signingKeyName.length),i.length>ENCODED_EVENT_MAX_POST_LENGTH?n(t):ENCODED_EVENT_MAX_LENGTH>=r?void(_.isEmpty(o)?_.each(buildGetRequestUrls(e,i),writeImgTag):(e.params=_.extend({},e.params,o),_.each(buildGetRequestUrls(e,i),function(e){pendo.ajax({method:"GET",url:e,sync:!0})}))):e.allowPost?void(sendBeacon.supported()?_.each(buildPostRequestUrls(e,i),function(e){var t=_.extend({events:i},o);sendBeacon(e,t)}):_.each(buildPostRequestUrls(e,i),function(e){var t=_.extend({events:i},o),n={"Content-Type":"application/json"};pendo.ajax({method:"POST",url:e,data:JSON.stringify(t),sync:!0,headers:n})})):void n(t)}}function createSendQueue(e,t){return pipeline(filterAnalyticsDisabled,compressSilo,shortenFields(e.shorten),compressSilo,t(e),errorLogger)}function createEventQueue(e){var t=e.cache,n=e.silos,i=createSendQueue(e,defaultSendEvent),o=createSendQueue(e,reliableSendEventForUnload),r=pipeline(siloReducer(t),filterSiloCapacity,function(e){n.push(e)});return{push:function(e){r(e,_.noop)},clear:function(){t.length=0,n.length=0},flush:function(e){if(0!==t.length||0!==n.length){n.push(t.slice()),t.length=0;var r=n.slice();n.length=0;var a=(e||{}).guaranteed?o:i;_.each(r,function(e){a(e,_.noop)})}}}}function getHtmlAttributeTester(e){if(_.isRegExp(e))return e;if(_.isArray(e)){var t=_.map(_.filter(e,_.isObject),function(e){if(e.regexp){var t=/\/([a-z]*)$/.exec(e.value),n=t&&t[1]||"";return new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n)}return new RegExp("^"+e.value+"$","i")});return{test:function(e){return _.any(t,function(t){return t.test(e)})}}}return{test:function(){return!1}}}function isHighSurrogate(e){return e>=55296&&56319>=e}function isLowSurrogate(e){return e>=56320&&57343>=e}function trimSurrogate(e){if(e.length<1)return e;var t=e.slice(-1).charCodeAt(0);if(!isHighSurrogate(t)&&!isLowSurrogate(t))return e;if(1===e.length)return e.slice(0,-1);if(isHighSurrogate(t))return e.slice(0,-1);if(isLowSurrogate(t)){var n=e.slice(-2).charCodeAt(0);if(!isHighSurrogate(n))return e.slice(0,-1)}return e}function getText(e,t){var n,i="",o=e.nodeType;if(o===nodeTypeEnum.TEXT_ELEMENT||o===nodeTypeEnum.CDATA_SECTION_NODE)return e.nodeValue;if(!isElemBlacklisted(e)&&(o===nodeTypeEnum.ELEMENT_NODE||o===nodeTypeEnum.DOCUMENT_NODE||o===nodeTypeEnum.DOCUMENT_FRAGMENT_NODE))for(e=e.firstChild;e;e=e.nextSibling){if(n=getText(e,t-i.length),(i+n).length>=t)return i+trimSurrogate(n.substring(0,t-i.length));i+=n}return i}function collectEventPropertiesForTarget(e){if(pendo.eventProperties&&pendo.eventProperties.length&&e){for(var t=getNow(),n=50,i={},o=undefined,r=0;r<pendo.eventProperties.length&&getNow()-t<n;r++){o=pendo.eventProperties[r];var a=_.any(o.featureRules,function(t){try{return pendo.Sizzle.matchesSelector(e,t)}catch(n){return!1}});if(a)for(var s=0;s<o.eventPropertyRules.length&&getNow()-t<n;s++){var d=o.eventPropertyRules[s];if(!d.name)return;i[d.name]=collectEventProperty(d,e)}}if(i.collection_overhead_in_ms=getNow()-t,i.collection_overhead_in_ms>n){pendo.log("event property collection disabled; collection took greater than "+n+" milliseconds.");var u="ERROR event property collection exceeded time limit.";o&&(u+="\n For feature with id: "+o.featureId),writeException({},u),pendo.eventProperties=[]}return i}}function collectEventProperty(e,t){if(e.path){var n=getEventPropertyTarget(e,t);return get(n,e.path,undefined)}}function getEventPropertyTarget(e,t){var n=e.source||e.selector;return n?nearestTargeter(n,t):window}function nearestTargeter(e,t){for(var n,i=t;!n&&i;){try{if(n=pendo.Sizzle(e,i)[0],n&&("password"===n.type||"hidden"===n.type))return}catch(o){return}i=shadowAPI.getParent(i)}return n}function pint(e){return parseInt(e,10)}function isString(e){return"string"==typeof e}function isUndefined(e){return"undefined"==typeof e}function startPoller(e,t){!function n(){pendo._.map(pollFns,function(e){e()}),pollTimeout=t(n,e)}()}function fireUrlChange(){var e=url();lastBrowserUrl!=e&&(lastBrowserUrl=e,pendo._.map(urlChangeListeners,function(e){e(url())}))}function sanitizeUrl(e){return originalOptions&&originalOptions.sanitizeUrl&&_.isFunction(originalOptions.sanitizeUrl)?originalOptions.sanitizeUrl(e):e}function annotateUrl(e){e=e||getWindowLocation().href;var t=getOption("annotateUrl");if(t){if(_.isFunction(t)){var n=t();return pendo.ajax.urlFor(e,n)}log("customer-provided `annotateUrl` must be of type: function")}return e}function parseQueryString(e){if(!e)return"";var t=e.indexOf("?");if(0>t)return"";var n=e.indexOf("#");return 0>n?e.substring(t):t>n?"":e.substring(t,n)}function getTrustedOriginPattern(e){return new RegExp("^("+_.chain(e).unique().map(function(e){return e.replace(/\./g,"\\.").replace(/^https?:/,"https?:")}).value().join("|")+")$")}function isTrustedOrigin2(e){if(!e)return!0;if(e===window.location.origin)return!0;var t=[/^https:\/\/(app|via|adopt)(\.eu|\.us)?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu)\.appspot\.com$/];_.contains(["prod","prod-eu"],ENV)||(t=t.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/]));var n=getPendoConfigValue("adoptHost");if(n){var i="https://"+n;if(e===i)return!0}return _.any(t,function(t){return t.test(e)})}function messageOriginTester2(e){return function(t){return t&&isTrustedOrigin2(t.origin)?e.apply(this,arguments):void 0}}function Wrappable(){var e={},t=function(e,t,n){return function(){var i,o,r=_.toArray(arguments);for(i=0,o=t.length;o>i;++i)if(t[i].apply(this,r)===!1)return;var a=e.apply(this,r);for(i=0,o=n.length;o>i&&n[i].apply(this,r)!==!1;++i);return a}};return _.each(["after","before"],function(n){this[n]=function(i,o){if(this[i]){var r=e[i];r||(r=e[i]={before:[],after:[]},this[i]=t(this[i],r.before,r.after)),r[n].push(o)}}},this),this}function filterPendoAgentXhrRequests(e,t){var n=HOST.replace(/\./g,"\\.").replace(/\//g,"\\/"),i=new RegExp("^"+n+"\\/data\\/"),o=get(e,"request_url","");i.test(o)||t(e)}function createXhrEventQueue(e){var t=e.cache,n=createSendQueue(e,defaultSendEvent),i=createSendQueue(e,reliableSendEventForUnload),o=pipeline(filterPendoAgentXhrRequests,siloReducer(t),filterSiloLength,n);return{push:function(e){o(e,_.noop)},clear:function(){t.length=0},flush:function(e){if(0!==t.length){var o=t.slice();t.length=0;var r=(e||{}).guaranteed?i:n;r(o,_.noop)}}}}function RemoteFrameGuide(){return this.shouldBeAddedToLauncher=_.wrap(this.shouldBeAddedToLauncher,function(e){return _.any(FrameController.getState(this),function(e){return e.shouldBeAddedToLauncher})||e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=_.wrap(this.shouldBeAddedToResourceCenter,function(e){return _.any(FrameController.getState(this),function(e){return e.shouldBeAddedToResourceCenter})||e.apply(this,arguments)}),this}function RemoteFrameStep(e){function t(e){i.lock(),FrameController.show(i,e).then(n,n)}function n(){i.unlock()}var i=this;return"whatsnew"===i.type?i:(i.isShown=function(e){return function(){return e.apply(this,arguments)||FrameController.isShownInAnotherFrame(i)}}(i.isShown),i.before("show",function(n){return FrameController.hasFrames()&&!FrameController.isInThisFrame(e)?(t(n),!1):void 0}),i.after("show",function(n){!i.isShown()&&FrameController.hasFrames()&&FrameController.isInAnotherFrame(e)&&t(n),i.isShown()&&FrameController.shown(i)}),i.after("hide",function(e){n(),e&&e.onlyThisFrame||FrameController.hide(i,e)}),i)}function Tooltip(e){if("tooltip"===this.type){var t=this;t.attributes.height=t.attributes.height||pendo.TOOLTIP_DEFAULT_HEIGHT,
t.attributes.width=t.attributes.width||pendo.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.getGuide(),i=t.element||getElementForGuideStep(t);if(!i&&e)return[];var o=t.advanceMethod||"",r=o.split(",");if(this.triggers=_.map(r,function(e){return new AdvanceTrigger(i,e,t)}),!e&&n&&n.isMultiStep&¤tMode==OBM){var a=n.findSectionForStep(t),s=n.getSubSection(a,t);this.triggers=this.triggers.concat(_.flatten(_.map(s,function(e){return e.getTriggers?e.getTriggers(!0):[]})))}return this.triggers},this.removeTrigger=function(e){this.triggers=_.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return isDismissedUntilReload(t)?!1:!t.isShown()&&t.canShowOnPage(pendo.getCurrentUrl())&&canTooltipStepBeShown(t)},this.after("render",function(){var e=this;if(showTooltipGuide(e,e.elements)){var t=e.element;_.each(e.getTriggers(),function(e){e.add()});for(var n=/(auto|scroll)/,i=getScrollParent(t,n),o=getBody();i&&i!==o;)e.attachEvent(i,"scroll",_.throttle(_.bind(e.onscroll,e,i,n),10)),i=getScrollParent(i,n)}}),this.reposition=function(){var e=this,t=e.attributes.width,n=e.attributes.height,i=e.attributes.layoutDir,o=e.guideElement,r=dom("._pendo-guide-container_",o),a=getOffsetPosition(e.element),s=getTooltipDimensions(a,n,t,i);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(s.arrowPosition).addClass("_pendo-guide-container-"+s.arrowPosition+"_"),dom("._pendo-guide-arrow_,._pendo-guide-arrow-border_",o).remove(),buildAndAppendArrow(o,s),o.css({top:s.top,left:s.left,height:s.height,width:s.width,position:a.fixed?"fixed":""}),e.dim=s},this.onscroll=function(e,t){var n=this,i=getClientRect(n.element),o=n.dim;isVisibleInScrollParent(i,e,t)?(o=getTooltipDimensions(i,n.attributes.height,n.attributes.width,o.arrowPosition),setStyle(n.elements[0],"display:block;top:"+o.top+"px;left:"+o.left+"px"),n.dim=o):setStyle(n.elements[0],"display:none")},this.teardownElementEvent=function(){_.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){dom("._pendo-guide-tt-region-block_").remove(),lastBlockBox=null,lastBodySize=null,lastScreenCoords=null})}return this}function Lightbox(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||pendo.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||pendo.LB_DEFAULT_WIDTH,e.after("render",function(){isMobileUserAgent()?showMobileLightboxGuide(e,e.elements):showLightboxGuide(e,e.elements)}),e.reposition=function(){isMobileUserAgent()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}function Banner(){var e=this;return"banner"===e.type&&(e.attributes.height=e.attributes.height||BANNER_DEFAULT_HEIGHT,e.attributes.position=e.attributes.position||"top",e.after("render",function(){var t=e.guideElement,n=pendo.TOOLTIP_ARROW_SIZE;t.css({width:""}).addClass(BANNER_CSS_NAME).addClass("_pendo-guide-banner-"+e.attributes.position+"_"),isPreviewing()||t.addClass("_pendo-in_"),dom("._pendo-guide-container_",t).css({bottom:n,right:n}),e.element=getElementForGuideStep(e),e.elements.push(t[0]),t.appendTo(getGuideAttachPoint())})),e}function WhatsNew(e){function t(){return!!s.guideElement}function n(){var t=s.guideElement;t&&!isInDocument(t[0])&&(dom("._pendo-launcher_ #launcher-"+s.guideId).html("").append(t),_.isFunction(s.script)&&s.script(s,e))}function i(){var e=s.guideElement,t=s.attributes.height;e&&e.html()||(e=dom("<div>").attr("id",getStepDivId(s)).addClass("_pendo-guide-whatsnew_").html(s.getContent()),_.isNumber(t)&&!s.attributes.autoHeight&&e.height(t),s.seenState===l&&e.addClass(u),s.guideElement=e)}function o(){isPreviewing()||t()&&s.seenState!==l&&r(s.guideElement[0])&&(seenGuide(s.guideId,s.id,pendo.get_visitor_id(),d,e.language),s.seenState=l,_.delay(function(){s.guideElement.addClass(u+" out")},_.isNumber(s.attributes.seenDelay)?s.attributes.seenDelay:c))}function r(e){if(isElementVisible(e,/(auto|scroll|hidden)/)){var t=getScrollParent(e),n=getClientRect(t),i=getClientRect(e),o=n.top+Math.floor(n.height/3);return i.bottom<=n.bottom||i.top<=o}}function a(){}var s=this,d="whatsnew",u="_pendo-guide-whatsnew-seen_",l="active",c=1e3;return s.type===d&&(_.extend(s,{isShown:_.constant(!1),launch:a,onShown:a,render:i,seen:o}),_.extend(e,{addToLauncher:n,isReady:t}),s.after("show",o)),s}function Poll(e){var t=this;if(t.pollIds&&t.pollIds.length){var n,i="_pendo-poll-selected_",o=_.indexBy(e.polls,"id"),r=_.map(t.pollIds,function(e){return o[e]}),a=function(e,t){return e&&t!==undefined?e.numericResponses?parseInt(t,10):t:void 0},s=function(){var n=e.id,i=t.id;advancedGuide(n,i,pendo.get_visitor_id(),t.seenReason,e.language),_updateGuideStepStatus(n,i,"advanced"),lastGuideStepSeen={guideId:n,guideStepId:i,time:(new Date).getTime(),state:"advanced"},writeLastStepSeenCache(lastGuideStepSeen)},d=function(){var e=dom("._pendo-poll_"),n=dom("._pendo-poll-message_");n.length?(e.addClass("_pendo-poll-submitted_"),n.css("margin-top:-"+n.height()/2+"px"),s()):t.advance()},u=function(e,t){return t&&t.polls&&t.polls.length?_.find(t.polls,function(t){return t.id===e}):void 0};t.after("render",function(){var e=Sizzle("._pendo-poll_")[0],n=Sizzle("._pendo-poll-submit_",e)[0];n?t.attachEvent(n,"click",function(n){var i=Sizzle("._pendo-poll-question_",e),o=_.map(i,function(e,t){var n=Sizzle("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value){var i=r[t];return{pollId:i.id,value:a(i,n[0].value)}}});t.response(_.compact(o)),d()}):t.attachEvent(e,"click",function(e){var n=dom(getTarget(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");if(n.length){var i=r[0],o=a(i,n.attr("data-pendo-poll-value")||n.attr("value"));t.response([{pollId:i.id,value:o}]),d()}})}),t.after("render",function(){var e=Sizzle("._pendo-poll_ ._pendo-poll-npsrating_")[0],n=dom("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";e&&(n.css({display:"none"}),t.attachEvent(e,"click",function(r){var a=Sizzle(":radio:checked",e)[0],s=dom("._pendo-poll_");dom("label",e).removeClass(i),s.removeClass(o),a&&(dom('label[for="'+a.id+'"]').addClass(i),s.addClass(o),n.css({display:""})),_.isFunction(t.resize)&&t.resize()}))}),t.after("show",function(){n=(new Date).getTime()}),t.response=function(i,o){if(i&&i.length){var r=_.map(i,function(i,o){var r=u(i.pollId,e),a=createGuideEvent("pollResponse",t.guideId,t.id,pendo.get_visitor_id(),undefined,e.language);return _.extend(a.props,{poll_id:i.pollId,poll_response:i.value,duration:(new Date).getTime()-n}),r&&r.attributes&&r.attributes.type&&_.extend(a.props,{poll_type:r.attributes.type}),a});writeBeacon("poll",_.extend({ct:(new Date).getTime(),v:VERSION,jzb:pendo.squeezeAndCompress(r)},o))}}}return t}function GuideStep(e){var t=!1,n=!1;return this.guide=e,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},this.getGuide=function(){return this.guide},this.getContent=function(){var e=this,t=this.getGuide(),n=t&&t.steps||[],i=_.indexOf(n,e),o=getMetadata();_.isObject(o)||(o=prepareOptions());try{var r=e.attributes.variables||{},a={step:{id:e.id,isFirst:0===i,isLast:i===n.length-1,index:i,number:i+1},guide:{id:t.id,name:t.name,publishedAt:t.publishedAt,showsAfter:t.showsAfter,percentComplete:n.length?Math.round((i+1)/n.length*100):0,stepCount:n.length},metadata:escapeStringsInObject(o),template:r};return e.template||(e.template=_.template(e.content||"")),replaceWithContentHost(e.template(a).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+e.id).replace(/pendo-src="([^"]+)"/g,function(e,t){return/<%=[^>]+>/.test(t)?e:'src="'+t+'"'}))}catch(s){return e.content}},this.isLocked=function(){return t},this.lock=function(){t=!0},this.unlock=function(){t=!1},this.isTimedOut=function(){return n},this.timeout=function(){n=!0},this.isShown=function(){return this.elements.length>0||this.isLocked()},this.canShow=function(){var e=this,t=null;if(get(e,"guide.attributes.isAnnouncement"))return!1;if(e.domJson&&(t=BuildingBlockGuides.findGuideContainerJSON(e.domJson)),t){var n="Relative to Element"===t.props["data-vertical-alignment"];if(n){if(isDismissedUntilReload(e))return!1;if(!e.hasBeenScrolledTo)return!e.isShown()&&e.canShowOnPage(pendo.getCurrentUrl())&&canTooltipStepBeShown(e)}}return!e.isShown()&&e.canShowOnPage(pendo.getCurrentUrl())&&canStepBeRendered(e)},this.canShowOnPage=function(e){return pendo.testUrlForStep(this.regexUrlRule,e)},this.shouldAutoDisplay=function(){return!_.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e=this;e.shouldAutoDisplay()&&e.show("auto")},this.render=function(){var t=this;if(t.domJson)return t.eventRouter=new EventRouter,BuildingBlockGuides.renderGuideFromJSON(t.domJson,t);var n=t.attributes.width,i=t.attributes.height,o=pendo.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+e.id+"_",a=dom("<div>").attr("id",getStepDivId(t)).addClass(GUIDE_CSS_NAME+" "+r),s=dom("<div/>").addClass("_pendo-guide-content_").html(t.getContent()),d=dom("<div/>").addClass("_pendo-guide-container_"),u=dom("<div/>").addClass("_pendo-backdrop_");a.width(n),a.height(i),d.css({left:o,top:o}),t.isEditable&&s.attr("contenteditable","true"),s.appendTo(d),d.appendTo(a),e&&_.isFunction(e.isOnboarding)&&e.isOnboarding()&&a.addClass("_pendo-onboarding_"),t.overlayDiv=u,t.guideElement=a},this.teardown=function(){log("guide step teardown","guide","render"),_.each(this.handlers,function(e){detachEvent(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,clearInterval(this.timeoutTimer),delete this.timeoutTimer,this.handlers.length=0,this.attributes.imgCount=0},this.show=function(t){var n=this;if(!e.canShowOnDevice()||!n.canShow()){if(!getPendoConfigValue("enableGuideTimeout")&&!getOption("enableGuideTimeout"))return;if("active"===n.seenState)return;if(!isWalkthrough(e)||1===e.steps.length||this.isTimedOut())return;var i=e&&e.steps;if(!i)return;var o=_.indexOf(i,n);if(0===o)return;return void(n.shouldStartTimer()&&n.beginTimeoutTimer())}n.render(),n.isShown()&&n.onShown(t)},this.shouldStartTimer=function(){return e.canShowOnDevice()&&!e.attributes.isAnnouncement&&!isDismissedUntilReload(this)},this.getStepPollTypes=function(e,t){if(t.pollIds&&t.pollIds.length){var n=[];return _.forEach(t.pollIds,function(t){var i=_.find(e.polls,function(e){return e.id===t});i&&i.attributes&&i.attributes.type&&n.push(i.attributes.type)}),n}},this.onShown=function(t){var n=this;if(n.overrideElement&&dom.addClass(n.overrideElement,"triggered"),!isPreviewing()){n.seenReason=t,n.seenState="active",seenTime=(new Date).getTime();var i=this.getStepPollTypes(e,n);seenGuide(n.guideId,n.id,pendo.get_visitor_id(),t,e.language,i),_.isFunction(n.script)&&n.script(n,e)}},this.hide=function(e){var t=this;t.teardown(),_.each(t.elements,function(e){e.parentNode.removeChild(e)}),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&dom.removeClass(t.overrideElement,"triggered")},this.advance=function(){"advanced"!==this.seenState&&pendo.onGuideAdvanced(this)},this.dismiss=function(){"dismissed"!==this.seenState&&pendo.onGuideDismissed(this)},this.isPoweredByEnabled=function(){return this.hideCredits!==!0},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};attachEvent(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return e.length<3?!1:strContains(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.beginTimeoutTimer=function(){var e=getGuideSeenTimeoutLength(),t=_.bind(function(){var t,n=this.getGuide();t=this.canShowOnPage(pendo.getCurrentUrl())?canTooltipStepBeShown(this)&&canStepBeRendered(this)?"other":"element":"page",timeoutGuide(n.id,this.id,pendo.get_visitor_id(),t,n.language,e),pendo.log("Guide Timed Out"),this.timeout(),delete this.timeoutTimer},this);this.timeoutTimer||(this.timeoutTimer=setTimeout(function(){t()},e))},this}function AutoHeight(){var e=this;if(e.attributes&&e.attributes.autoHeight){var t=function(){return"tooltip"==e.type||isBrowserInQuirksmode()&&"lightbox"==e.type};e.after("render",function(){e.resize(),e.attachEvent(e.guideElement[0],"load",function(){e.resize()})}),e.resize=function(){var n=pendo.TOOLTIP_ARROW_SIZE,i=e.guideElement,o=dom("._pendo-guide-container_",i);t()?o.css({width:e.attributes.width-2*n,height:""}):o.css({right:n,bottom:""}),e.attributes.height=o.height()+2*n,i.height(e.attributes.height),e.reposition()}}return e}function CloseButton(e){var t=this;return t.domJson||t.domJsonpUrl?t:(t.after("render",function(){addCloseButton(t.guideElement[0],function(){(!e.isOnboarding()||confirm("Are you sure you want to stop this tutorial?"))&&pendo.onGuideDismissed(t)})}),t)}function Credits(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||e.after("render",function(){pendo._addCredits(e.guideElement[0])}),e}function PreviewMode(){var e=this;return e.after("render",function(){adjustPreviewBarPosition()}),e}function WalkthroughGuide(){if(this.isMultiStep||this.isModule||this.isTopLevel){_.each(this.steps,function(e){e.after("render",function(){_.each(e.elements,function(e){dom(e).addClass("_pendo-guide-walkthrough_")})})});var e=function(e,t){if(!e)return!0;var n=_.last(e);return n.attributes.isRequired!=t.attributes.isRequired&&n.attributes.isRequired?!0:!1},t=null;this.sections=_.reduce(this.steps,function(n,i){return e(t,i)?(n.push(t),t=[i]):t.push(i),n},[]),this.sections=_.compact(this.sections.concat([t])),this.findSectionForStep=function(e){return _.find(this.sections,function(t){return _.contains(t,e)})},this.getSubSection=function(e,t){var n=_.indexOf(e,t);return e.slice(n+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return t?n&&!!this.nextStep(e):!!this.nextStep(e)};var n=432e5;this.nextStep=function(e){var t=null,i=this;e=e||{};for(var o=0;o<i.steps.length;o++)if(i.steps[o].id===e.guideStepId){if("dismissed"===e.state)break;if("active"===e.state){t=i.steps[o];break}if(o+1<i.steps.length){t=i.steps[o+1];break}}if(t){var r=(new Date).getTime(),a=e.time;return a&&r-a>n&&!isOB(i)?(log("Multi-step continuation has expired","guides","info"),null):t}return null},this.shouldAutoDisplay=function(){var e=this,t=e.nextStep(lastGuideStepSeen)||_.first(e.steps);return e.hasLaunchMethod("auto")&&t&&t.shouldAutoDisplay()},this.autoDisplay=function(){var e=this;if(e.shouldAutoDisplay()){var t=e.nextStep(lastGuideStepSeen)||_.first(e.steps);t.autoDisplay()}},this.launch=function(e){var t=_.first(this.steps);t.show(e)},this.show=function(e){var t=this,n=t.nextStep(lastGuideStepSeen)||_.first(t.steps);n.show(e)},this.isComplete=function(){var e=["advanced","dismissed"],t=_.last(this.steps);return t?_.contains(e,t.seenState):!1},this.activeStep=function(){var e=[].concat(this.steps).reverse();return _.findWhere(e,{seenState:"active"})}}return this}function GroupGuide(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){_.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}function GuideErrorThrottle(){function e(e){var n=[];return function(i){try{return i.apply(t,_.toArray(arguments).slice(1))}catch(o){var r=5,a="ERROR in guide "+e+' (ID="'+t.id+'")';if(n.push(getNow()),n.length>=r){var s=_.last(n)-_.first(n),d=s>0?(n.length-1)/(s/6e4):1/0;d>=GuideErrorThrottle.MAX_ERRORS_PER_MINUTE&&(a="Exceeded error rate limit, dropping guide.\n"+a,Tombstone.addGuide(t),Events.trigger("renderFail",t)),n.shift()}throw writeException(o,a),o}}}var t=this;return _.each(["canShow","placeBadge","show"],function(n){t[n]=_.wrap(t[n],e(n))}),t}function Guide(){if(this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type)if("all"==this.attributes.device.type)this.attributes.device={desktop:!0,mobile:!0};else{var e=this.attributes.device.type;this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0}else this.attributes.device=this.attributes.device||{};_.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),GuideStep.create(e,this)},this),this.isActivatedByEvent=function(e){var t=this;return!!(t.hasLaunchMethod("dom")&&t.attributes&&t.attributes.activation&&_.contains(t.attributes.activation.event,e)&&this.canEventActivatedGuideBeShown())},this.isContinuation=function(e){return!1},this.isGuideWidget=function(){var e=this;return e.attributes&&"launcher"===e.attributes.type},this.isOnboarding=function(){var e=this;return e.attributes&&!!e.attributes.isOnboarding},this.isWhatsNew=function(){var e=_.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return 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&&this.launchMethod.indexOf(e)>=0},this.shouldAutoDisplay=function(){var e=this;return e.hasLaunchMethod("auto")&&_.any(e.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){var e=this;e.shouldAutoDisplay()&&_.each(e.steps,function(e){e.autoDisplay()})},this.isShown=function(){return _.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){var e=this;if(!isPreviewing()){var t=isMobileUserAgent(),n=!t,i=e.attributes&&e.attributes.device||{};if(n&&i.desktop===!1)return!1;if(t&&i.mobile!==!0)return!1}return!0},this.canShow=function(){var e=this;return e.canShowOnDevice()&&_.any(e.steps,function(e){return e.canShow()})},this.launch=function(e){var t=this;t.show(e),t.isShown()&&_.each(t.steps,function(e){e.seenState="active"})},this.show=function(e){var t=this;_.each(t.steps,function(t){t.show(e)})},this.checkForHiddenGroupSteps=function(){},this.hide=function(e){var t=this;_.each(t.steps,function(t){t.hide(e)})},this.hasBeenSeen=function(){var e=this;return _.all(e.steps,function(e){return e.hasBeenSeen()})},this.canBadgeBeShown=function(){var e=this.attributes.badge;return e&&e.isOnlyShowOnce&&this.hasBeenSeen()?!1:!0},this.placeBadge=function(){if(this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()){var e=_.first(this.steps);e&&_.isFunction(e.fetchContent)&&e.fetchContent(),e&&_.isFunction(e.canShowOnPage)&&e.canShowOnPage(pendo.getCurrentUrl())&&placeBadge(this)}else removeBadgeForGuide(this)},this.findStepById=function(e){return _.find(this.steps,function(t){return t.id===e})},this.isPoweredByEnabled=function(){return!!_.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(e){var t=this,n=null;if(strContains(this.name,e,!0))n="name";else{var i=[],o=!1;if(this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords&&(i=this.attributes.launcher.keywords),i.length>0&&(o=_.find(i,function(t){return strContains(t.text,e,!0)})),o)n="tag";else{var r=_.map(this.steps,function(t){return t.searchFor(e)}),a=_.compact(r).length>0;a&&(n="content")}}return n?{guide:t,field:n}:!1},this.shouldBeAddedToResourceCenter=function(){var e=this;if(!e.steps||!e.steps.length)return!1;if(e.eligibleInFrame)return!0;var t=e.steps[0];return(e.hasLaunchMethod("launcher")||e.isWhatsNew())&&t.canShowOnPage(pendo.getCurrentUrl())&&e.canShowOnDevice()&&canStepBeRendered(t)?!0:!1},this.shouldBeAddedToLauncher=function(){var e=this;if(!e.steps||!e.steps.length)return!1;var t=e.steps[0];return(e.hasLaunchMethod("launcher")||e.isWhatsNew())&&t.canShowOnPage(pendo.getCurrentUrl())&&e.canShowOnDevice()&&canStepBeRendered(t)?!0:!1};var t="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var n=this,i=_.reject(n.steps,function(e){return strContains(e.content,t)});return _.indexOf(i,e)+1},this.getTotalSteps=function(){var e=this,n=_.reject(e.steps,function(e){return strContains(e.content,t)});return n.length},this.getSeenSteps=function(){return _.size(_.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var e=["advanced","dismissed"];return _.all(this.steps,function(t){return _.contains(e,t.seenState)})},this.isInProgress=function(){var e=["active","advanced","dismissed"];return!this.isComplete()&&_.any(this.steps,function(t){return _.contains(e,t.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return q.all(_.map(this.steps,function(e){return _.isFunction(e.fetchContent)?e.fetchContent():void 0}))},this.canEventActivatedGuideBeShown=function(){var e=this;return e.attributes.dom&&e.attributes.dom.isOnlyShowOnce&&e.steps[0].hasBeenSeen()?!1:!0},this}function GuideFactory(e){return Guide.create(e)}function AdvanceTrigger(e,t,n){this.element=e,"element"==t?this.method="click":"hover"==t?this.method="mouseover":this.method=t,this.step=n,this.guide=n.getGuide()}function loadGlobalScript(e){var t=q.defer();return pendo.loadResource(e,function(){t.resolve()}),t.promise}function validateGlobalScript(e,t){return _.size(pendo.events._handlers.validateGlobalScript)>0?pendo.ajax.get(t).then(function(e){return pendo.events.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)}function ignoreEmptyGlobalScript(e,t){return t?e(t):q.resolve()}function getAssetHost(){var e=getPendoConfigValue("contentHost"),t=getProtocol()+"//";return e?t+e:getOption("contentHost",t+"cdn.pendo.io")}function getDefaultCssUrl(){var e=getAssetHost();return/local\.pendo\.io/.test(e)?e+"/dist/guide.css":e+"/agent/releases/2.59.1/guide.css"}function replaceWithContentHost(e){var t=getOption("contentHost");return t?e.replace(/(https:)?\/\/pendo-static-\d+\.storage\.googleapis\.com/g,t).replace(/(https:)?\/\/pendo-\w+-static\.storage\.googleapis\.com/g,t).replace(/(https:)?\/\/cdn\.pendo\.io/g,t):e}function getActiveGuides(){return activeGuides}function setActiveGuides(e){return _.isArray(e)?(activeGuides=e,void Events.guideListChanged.trigger()):void log("bad guide array iput to `setActiveGuides`")}function getGuideSeenTimeoutLength(){return getPendoConfigValue("guideSeenTimeoutLength")||DEFAULT_GUIDE_SEEN_TIMEOUT_LENGTH}function hideGuides(e){_.each(getActiveGuides(),function(t){_.isFunction(t.isShown)&&t.isShown()&&t.hide(e)})}function isDismissedUntilReload(e){return e&&e.attributes&&e.attributes.stayHidden}function dismissedGuide(e,t,n,i,o){var r=createGuideEvent({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:o});stageGuideEvent(r)}function snoozedGuide(e,t,n,i,o,r){var a=createGuideEvent({type:"guideSnoozed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:o,snooze_duration:r});stageGuideEvent(a)}function advancedGuide(e,t,n,i,o,r){var a=createGuideEvent({type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:o});stageGuideEvent(a,null,r)}function timeoutGuide(e,t,n,i,o,r){var a=createGuideEvent({type:"guideTimeout",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:o,guideSeenTimeoutLength:r});stageGuideEvent(a)}function writeLatestDismissedAutoAtCache(e){_.isFunction(e.getTime)&&(e=e.getTime()),pendo.latestDismissedAutoAt=e,agentStorage.write("latestDismissedAutoAt",e,1e4)}function writeFinalAdvancedAutoAtCache(e){_.isFunction(e.getTime)&&(e=e.getTime()),pendo.finalAdvancedAutoAt=e,agentStorage.write("finalAdvancedAutoAt",e,1e4)}function createGuideEvent(e,t,n,i,o,r){var a=e;"object"!=typeof a&&(a={type:e,guideId:t,stepId:n,visitorId:i,language:r}),o&&(a.reason=o),_.isString(a.language)||delete a.language;var s=_.extend({guide_id:a.guideId,guide_step_id:a.stepId},_.omit(a,"type","guideId","stepId","visitorId"));return EventTracer.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:pendo.get_account_id(),browser_time:(new Date).getTime(),url:pendo.url.externalizeURL(),props:s})}function applyTimerCache(e,t){return t=parseInt(t,10),isNaN(t)||!_.isNumber(t)?e:_.isNumber(e)&&t>e?t:_.isNumber(e)?e:t}function postLoadGuideJs(e,t,n){return pendo.ajax.postJSON(e,t).then(function(e){_.extend(pendo,e.data),n()})}function sortGuidesByPriority(e){return _.each(e,function(e,t){e.attributes||(e.attributes={}),(isNaN(e.attributes.priority)||!_.isNumber(e.attributes.priority))&&(e.attributes.priority=t)}),e.sort(function(e,t){return t.attributes.priority-e.attributes.priority}),e}function saveGuideShownState(e){var t=_.find(e,function(e){return _.isFunction(e.isShown)&&e.isShown()});if(!t)return function(){};var n=_.chain(t.steps).filter(function(e){return e.isShown()}).indexBy("id").value();return function(e){var i=_.findWhere(e,{id:t.id});i&&(get(i,"attributes.doNotResume")||_.each(i.steps,function(e){var t=n[e.id];t&&(e.seenState&&"active"!==e.seenState||e.show(t.seenReason))}))}}function loadExternalCss(e,t){var n=document.getElementById(e);if(n&&n.href&&n.href.indexOf(t)>=0)return q.resolve();var i=q.defer();dom(n).remove();var o=pendo.loadResource(t,function(){i.resolve()});return o.id=e,i.promise}function waitForGlobalCssToLoad(e,t,n){function i(n){setTimeout(function(){o(r[0])?(r.remove(),s.resolve()):t()-a>e?(r.remove(),s.reject()):i(100)},n)}function o(e){var t=getComputedStyle_safe(e);if(t)return"none"===t.display}if(!shouldLoadGlobalCSS())return q.resolve();t=t||getNow,n=n||"_pendo-hidden_";var r=dom("<div>").addClass(n).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(getGuideAttachPoint()),a=t(),s=q.defer();return i(0),s.promise}function loadGuideCss(){var e=[];if(!shouldLoadGlobalCSS())return q.resolve();e.push(loadExternalCss("_pendo-default-css_",getDefaultCssUrl()));var t=pendo.guideWidget||{},n=t.data||{},i=n.guideCssUrl,o="_pendo-css_";return i?e.push(loadExternalCss(o,replaceWithContentHost(i))):dom("#"+o).remove(),q.all(e)}function prefetchDomActivatedGuideContent(e){_.each(e,function(e){_.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent()})}function getGuideAttachPoint(){var e=getGuideAttachPoint.attachPoint;if(null==e){var t=getOption("guides.attachPoint");if(t){try{e=Sizzle(t)[0]}catch(n){log('Error finding guide attach point "'+t+'"')}e||(e=document.createElement("div"))}else e=!1;getGuideAttachPoint.attachPoint=e}return e||getBody()}function startPreviewMode(e){if(!detectMaster()){var t=findUrlPreviewConfig(e.location.search)||findStoredPreviewConfig(pendoLocalStorage);if(t){var n=document.getElementById(pendoPreview);return n?!0:(pendoLocalStorage&&_.isFunction(pendoLocalStorage.setItem)&&pendoLocalStorage.setItem(pendoPreview,JSON.stringify(_.extend(t,{apiKey:pendo.apiKey}))),_.isFunction(e.addEventListener)&&e.addEventListener("message",previewMessageHandler),getBody().appendChild(createPreviewBar()),!0)}}}function launchPreviewListener(e){e&&e.data&&e.data.type===pendoPreview+"::launch"&&(pendoLocalStorage.setItem(pendoPreview,JSON.stringify(_.extend({apiKey:pendo.apiKey,origin:e.origin},e.data.config))),startPreviewMode(window)&&(e.source.postMessage({type:pendoPreview+"::ready",apiKey:pendo.apiKey,accountId:pendo.accountId},"*"),forceGuideReload(),FrameController.startPreview()))}function restartPreview(e,t,n){hideGuides();var i=t[0],o=i.steps[0];return o.seenState=null,preparePreviewLastGuideStepSeen(e,t,n)}function resizePreview(e){var t=document.getElementById(pendoPreview);t&&(t.style.height=e)}function previewMessageHandler(e){var t=e.data.type;t===pendoPreview+"::exit"?(exitPreviewMode(),FrameController.stopPreview()):t===pendoPreview+"::restart"?(lastGuideStepSeen=restartPreview(pendoLocalStorage,activeGuides,lastGuideStepSeen),FrameController.restartPreview()):t===pendoPreview+"::resize"&&resizePreview(e.data.height)}function isInPreviewMode(){try{return!!findStoredPreviewConfig(pendoLocalStorage)}catch(e){return!1}}function setPreviewState(e,t){var n=findStoredPreviewConfig(t);n&&(n.state=e,t&&_.isFunction(t.setItem)&&t.setItem(pendoPreview,JSON.stringify(n)))}function getPreviewState(e){var t=findStoredPreviewConfig(e);if(t)return t.state}function createPreviewBar(){var e=document.createElement("iframe");e.id=pendoPreview,e.src="about:blank",_.extend(e.style,{position:"fixed",top:0,left:0,right:0,width:"100%",height:"60px",border:"none","z-index":4e5});var t=e.getAttribute("style")+" display: block !important; visibility: visible !important";return e.setAttribute("style",t),e.onload=function(){var t=document.createElement("script");t.src=getAssetHost()+"/agent/releases/2.59.1/pendo.preview.min.js",e.contentDocument.body.appendChild(t)},e}function preparePreviewGuide(e,t){var n=findStoredPreviewConfig(pendoLocalStorage);if(!n)return t;var i=_.map(_.filter(t,function(e){return e.id===n.guideId}),function(e){return _.each(e.steps,function(e){e.seenState=e.id===n.stepId?null:"advanced"}),e.launchMethod=getPreviewLaunchMethod(e.launchMethod),e});return i}function getPreviewLaunchMethod(e){return/badge/.test(e)&&/auto/.test(e)?"auto-badge":/badge/.test(e)?"badge":/dom/.test(e)?"dom":"auto"}function preparePreviewLastGuideStepSeen(e,t,n){var i=findStoredPreviewConfig(e);if(!i)return n;var o=_.findWhere(t,{id:i.guideId});return o?/auto/.test(o.launchMethod)||i.stepId!==o.steps[0].id?{guideId:i.guideId,guideStepId:i.stepId,state:"active"}:{}:n}function updatePreview(e,t,n){var i=e.getElementById(pendoPreview);if(i&&i.contentWindow){if(!t||!t.length)return void i.contentWindow.postMessage({action:"preview/setError",payload:{error:"guideNotFound"}},"*");var o=t[0],r=0,a=o.steps.length,s=n||{};_.find(o.steps,function(e,t){return s.guideStepId!==e.id?!1:(r="dismissed"===s.state?a:"active"===s.state?t+1:t+2,!0)});var d=o.steps[r-1],u="dismissed"===s.state||r>a;i.contentWindow.postMessage({action:"preview/updateGuideName",payload:{guideName:o.name}},"*"),i.contentWindow.postMessage({action:"preview/updateGuideProgress",payload:{stepId:d&&d.id,currentStep:Math.max(1,Math.min(r,a)),stepCount:a,completed:u}},"*"),checkForGuidePreviewError(d,u,i)}}function adjustPreviewBarPosition(){var e=document.getElementById(pendoPreview);if(e){var t=_.first(Sizzle('[id^="pendo-g-"]'));if(t){var n=getComputedStyle_safe(t);n&&("0px"===n.top?(e.style.top="auto",e.style.bottom="0px"):"0px"!==n.bottom&&e.style.top||(e.style.top="0px",e.style.bottom="auto"))}}}function checkForGuidePreviewError(e,t,n){if(e){if(isGuideShown()||t)return void n.contentWindow.postMessage({action:"preview/clearError"},"*");if(_.isFunction(e.canShowOnPage)&&!e.canShowOnPage(pendo.getCurrentUrl()))return void n.contentWindow.postMessage({action:"preview/setError",payload:{error:"pageMismatch"}},"*");if(e.elementPathRule){var i=_.first(pendo.Sizzle(e.elementPathRule));if(!i)return void n.contentWindow.postMessage({action:"preview/setError",payload:{error:"elementNotFound"}},"*");if(!isElementVisible(i))return void n.contentWindow.postMessage({action:"preview/setError",payload:{error:"elementNotVisible"}},"*")}}}function exitPreviewMode(){pendoLocalStorage&&_.isFunction(pendoLocalStorage.removeItem)&&pendoLocalStorage.removeItem(pendoPreview),buffersClearAll(),dom("#"+pendoPreview).remove(),forceGuideReload(),window.close()}function parsePreviewToken(e){try{return JSON.parse(atob(decodeURIComponent(e)))}catch(t){}}function findUrlPreviewConfig(e){var t=_.map(e.replace(/^\?/,"").split("&"),function(e){return e.split("=")}),n=_.find(t,function(e){return e[0]===pendoPreview});return n?parsePreviewToken(n[1]):void 0}function findStoredPreviewConfig(e){try{var t=JSON.parse(e.getItem(pendoPreview));if(t.apiKey===pendo.apiKey)return t}catch(n){}}function previewGuideRequest(e){return pendo.ajax({url:e.origin+e.guideUrl+"?url="+encodeURIComponent(pendo.url.get()),withCredentials:!0}).then(function(e){return pendo.guides=[e.data.guide],pendo.guideWidget={
enabled:!1,data:{guideCssUrl:e.data.guideCssUrl}},pendo.guideCssUrl=e.data.guideCssUrl,pendo.normalizedUrl=e.normalizedUrl,e})}function previewGuideLoaderWrapper(e,t){return{buildUrl:e.buildUrl,load:function(n,i){var o=findStoredPreviewConfig(t);return o&&o.guideUrl?previewGuideRequest(o).then(i):e.load(n,i)}}}function launchDesignerListener(e){if(e&&e.data&&e.data.token&&e.data.type===pendoDesignerLaunchKey+"::launch"){var t=e.data.token,n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest"};pendo.designerv2.launchInAppDesigner(n)}}function clearMode(){setMode(FrameController.isConnectedToMaster?FrameController.SLAVE_MODE:"default")}function guideShowingProc(){var e=getActiveGuide();_.each(e.steps,function(t){stepShowingProc(e.guide,t)}),e.guide.checkForHiddenGroupSteps()}function stepShowingProc(e,t){if(!t.isLocked()&&!FrameController.isShownInAnotherFrame(t)){var n=t.element,i=dom("."+GUIDE_CSS_NAME);if(n&&(isElementVisible(n)||i.hasClass("mouseover"))){if("tooltip"==t.type&&placeTooltip(t),t.domJson){if("tooltip"===t.attributes.calculatedType){var o=BuildingBlockGuides.findGuideContainerJSON(t.domJson),r=dom("#"+o.props.id);pendo.BuildingBlocks.BuildingBlockTooltips.placeBBTooltip(t,r[0])}t.attributes.blockOutUI&&t.attributes.blockOutUI.enabled&&pendo.BuildingBlocks.BuildingBlockGuides.updateBackdrop(t)}}else("tooltip"!==t.type&&"tooltip"!==t.attributes.calculatedType||!wouldBeVisibleAfterAutoScroll(n))&&t.hide()}}function resourceCenterProc(e){if(e){e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith;var t=!1,n=e.attributes&&e.attributes.resourceCenter&&e.attributes.resourceCenter.moduleId&&"FullyCustomModule"===e.attributes.resourceCenter.moduleId;if(n)return e.hasResourceCenterContent=!0,!0;var i=_.filter(e.modules,function(n){if(!n)return!1;var i=n.attributes.resourceCenter,o=i.moduleId;if(("SandboxModule"===o||"IntegrationModule"===o)&&n.hasResourceCenterContent)return!0;var r=_.filter(n.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?(e.ineligibleForRC=!1,!0):(e.ineligibleForRC=!0,!1)}),a=r.length;if(n.hasResourceCenterContent=!!a,e.activeModule&&n.id===e.activeModule.id){var s=crc32(_.map(r,function(e){var t=e.isAnnouncement()||e.isWhatsNew(),n=t?null:_.pluck(e.steps,"seenState");return{id:e.id,seenState:n}}));n.eligibleGuidesInModuleHash&&s!==n.eligibleGuidesInModuleHash&&(t=!0),n.eligibleGuidesInModuleHash=s}return a}),o=!1;if(!e.activeModule){var r=crc32(_.map(i,function(e){return{id:e.id}}));e.eligibleModulesHash&&e.eligibleModulesHash!==r&&(o=!0,BuildingBlockResourceCenter.replaceResourceCenterContent(e.id,undefined,!0)),e.eligibleModulesHash=r}var a=pendo.badgesShown[e.id];if(!i||!i.length){var s=-1!==e.launchMethod.indexOf("badge"),d=-1!==e.launchMethod.indexOf("dom");e.hasResourceCenterContent=!1,s?(e.isShown()&&e.hide(),a&&a.hide(),e.badgeHidden=!0,delete e.activeModule):d&&(e.showEmptyState=!0)}if(e.badgeHidden&&e.hasResourceCenterContent&&(a&&a.show(),e.badgeHidden=!1),1===i.length){e.skipResourceCenterHomeView=!0,e.moduleIdToReplaceHomeViewWith=i[0].id;var u=!e.activeModule&&o,l=e.activeModule&&e.activeModule.id!==i[0].id;(u||l||t)&&BuildingBlockResourceCenter.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,undefined,!0)}var c;e.activeModule&&(c=_.find(i,function(t){return t.id===e.activeModule.id}),c&&t&&BuildingBlockResourceCenter.replaceResourceCenterContent(e.activeModule.id,undefined,!0),c||BuildingBlockResourceCenter.replaceResourceCenterContent(e.id)),"dom"===e.launchMethod&&BuildingBlockResourceCenter.updateNotificationBubbles()}}function Badge(e,t){var n,i=getElementForBadge(t);if("building-block"===e.attributes.type){var o=pendo.buildNodeFromJSON(this.domJson)[0];n=o.parentNode.removeChild(o),-1===n.className.indexOf("_pendo-badge_")&&(n.className+=" _pendo-badge_"),this.isP2Badge=!0}else{n=document.createElement("img"),n.src=replaceWithContentHost(this.imageUrl),n.className="_pendo-badge "+BADGE_CSS_NAME;var r=this.width||13,a=this.height||13,s="width:"+r+"px;height:"+a+"px;";setStyle(n,s)}return n.id="_pendo-badge_"+t.id,this.activate=function(){var e=_.isFunction(t.getGuide)&&t.getGuide(),n=e&&e.attributes&&e.attributes.resourceCenter;if(e.isShown())if(n)t.eventRouter.eventable.trigger("pendoEvent",{step:t,action:"dismissGuide"});else{var i=_.find(e.steps,function(e){return e.isShown()});pendo.onGuideDismissed(i)}else showGuide(t,"badge")},this.show=function(){},this.hide=function(){n&&n.parentNode&&n.parentNode.removeChild(n)},this.step=_.constant(t),this.target=_.constant(i),this.element=_.constant(n),this}function InlinePosition(){return"inline"===this.position&&this.before("show",function(){var e=this.target(),t=this.element();if(this.isP2Badge&&setStyle(t,"display:inline-block;vertical-align:text-bottom;"),this.css&&setStyle(t,this.css),e&&e.tagName){var n=e.tagName.toLowerCase();if(/br|input|img|select|textarea/.test(n)){if(t.parentNode===e.parentNode)return;e.parentNode.insertBefore(t,e.nextSibling)}else t.parentNode!==e&&e.appendChild(t)}}),this}function AbsolutePosition(){return this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=getOffsetPosition(this.target()),n=0,i=0,o=0;this.offsets&&(n=this.offsets.top||0,i=this.offsets.right||0,o=this.offsets.left||0);var r="position:"+(t.fixed?"fixed":"absolute")+";top:"+(t.top+n)+"px;";switch(this.position){case"top-right":r+="left:"+(t.left+t.width-i)+"px";break;case"top-left":r+="left:"+(t.left+o)+"px"}setStyle(e,r),e.parentNode||getGuideAttachPoint().appendChild(e)}),this}function ClickActivation(){var e=this,t=e.element(),n=!1,i=function(t){e.activate(),stopEvent(t)};return e.after("show",function(){n||(attachEvent(t,"click",i),n=!0)}),e.after("hide",function(){detachEvent(t,"click",i),n=!1}),e}function HoverActivation(){var e=this,t=e.element(),n=e.step(),i=!1;if("yes"===e.useHover||e.showGuideOnBadgeHover){var o=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},r=_.throttle(function(e){getTarget(e)===t||o(getTarget(e))||s()},50,{trailing:!1}),a=function(e){n.isShown()||showGuide(n,"badge"),attachEvent(document,"mousemove",r),stopEvent(e)},s=function(e){detachEvent(document,"mousemove",r),isPreviewing()||pendo.onGuideDismissed(n)};e.after("show",function(){i||(attachEvent(t,"mouseover",a),i=!0)}),e.after("hide",function(){detachEvent(t,"mouseover",a),detachEvent(document,"mousemove",r),i=!1})}return e}function ShowOnHover(){var e=this,t=e.element(),n=e.target(),i=!1,o=e.showBadgeOnlyOnElementHover||/hover/.test(e.showOnEvent);if(o&&!isPreviewing()){var r="inline"===e.position?"visibility:visible;":"display:inline;",a="inline"===e.position?"visibility:hidden;":"display:none;",s=function(e,i){var o=getClientRect(n),r=getClientRect(t),a={left:Math.min(o.left,r.left),top:Math.min(o.top,r.top),right:Math.max(o.right,r.right),bottom:Math.max(o.bottom,r.bottom)},s=i+document.documentElement.scrollTop;return e>=a.left&&e<=a.right&&s>=a.top&&s<=a.bottom},d=_.throttle(function(e){getTarget(e)===n||getTarget(e)===t||_hasClass(t,"triggered")||s(e.clientX,e.clientY)||l()},50,{trailing:!1}),u=function(){setStyle(t,r),attachEvent(document,"mousemove",d)},l=function(){detachEvent(document,"mousemove",d),setStyle(t,a)};e.after("show",function(){i||(attachEvent(n,"mouseover",u),i=!0,l())}),e.after("hide",function(){i&&(detachEvent(n,"mouseover",u),i=!1),l()})}return e}function canTooltipStepBeShown(e){return canStepBeRendered(e)||wouldBeVisibleAfterAutoScroll(getElementForGuideStep(e))}function scrollToTooltip(e,t,n){var i=getOffsetPosition(e),o=getOffsetPosition(t),r=function(e,t){var n=Math.min(e.top,t.top),i=Math.min(e.left,t.left),o=Math.max(e.top+e.height,t.top+t.height),r=Math.max(e.left+e.width,t.left+t.width);return{height:Math.abs(o-n),width:Math.abs(r-i),top:n,left:i}}(i,o);if(_isInViewport(r)===!1&&!o.fixed){var a,s,d=getScreenDimensions();switch(n){case"top":a=r.top,s=r.left+r.width-d.width;break;case"bottom":a=r.top+r.height-d.height,s=r.left+r.width-d.width;break;default:a=r.top+r.height-d.height,s=r.left+r.width-d.width}a=0>a?0:a,s=0>s?0:s,window.scrollTo(s,a)}}function computeBlockOutOverlayPositions(e,t,n){var i={},o=t.top-e.top,r=t.left-e.left;i.top=o-n,i.left=r-n,i.height=t.height+2*n,i.width=t.width+2*n;var a={left:0,top:0};return positionFixedActsLikePositionAbsolute()&&(a=bodyOffset(),i.left+=documentScrollLeft(),i.top+=documentScrollTop()),i.bottom=i.top+i.height,i.right=i.left+i.width,{north:{height:Math.max(i.top,0),left:-a.left,top:-a.top,right:0},east:{top:i.top-a.top,bottom:0,right:0,left:i.right-a.left},south:{top:i.bottom-a.top,width:Math.max(i.right,0),bottom:0,left:-a.left},west:{top:i.top-a.top,height:Math.max(i.height,0),left:-a.left,width:Math.max(i.left,0)}}}function computeBlockOutBoundingBox(e){var t=_.reduce(e,function(e,t){if(!isElementVisible(t))return e;var n=getClientRect(t);return e.fixed=e.fixed&&n.fixed,_.each([["top",isLessThan],["right",isGreaterThan],["bottom",isGreaterThan],["left",isLessThan]],function(t){var i=t[0],o=t[1];(!e[i]||o(n[i],e[i]))&&(e[i]=n[i])}),e},{fixed:!0});t.height=t.bottom-t.top,t.width=t.right-t.left;var n=bodyOffset();return t.fixed||(t.left+=n.left,t.right+=n.left,t.top+=n.top,t.bottom+=n.top),t.fixed=!!t.fixed,t}function wouldBeVisibleAfterAutoScroll(e){var t,n,i,o,r,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=getBody(),u=getClientRect(e),l=getScrollParent(e,s);if(!isElementVisibleInBody(e))return!1;for(;l&&l!==d;){if(t=getClientRect(l),r=getOverflowDirection(l,a),r!==OverflowDirection.NONE&&(n=0,i=0,(r===OverflowDirection.Y||r===OverflowDirection.BOTH)&&(u.bottom>t.bottom&&(n+=u.bottom-t.bottom,u.top-=n,u.bottom-=n),u.top<t.top&&(o=t.top-u.top,n-=o,u.top+=o,u.bottom+=o)),(r===OverflowDirection.X||r===OverflowDirection.BOTH)&&(u.right>t.right&&(i+=u.right-t.right,u.left-=i,u.right-=i),u.left<t.left&&(o=t.left-u.left,i-=o,u.left+=o,u.right+=o))),!isVisibleInScrollParent(u,l,s))return!1;l=getScrollParent(l,s)}return!0}function LauncherSearch(){function e(e){return i.text?(e||"").replace(new RegExp(i.text,"gi"),"<strong>$&</strong>"):e}function t(){dom(SEARCHBOX_CSS_SELECTOR).each(function(){this.value=""})}var n=this,i={text:"",highlight:e,clear:t};return n.data&&n.data.enableSearch&&n.data.enableSearch&&(n.data.search=i,pendo.disableGuideCenterContentSearch||n.before("update",prefetchGuideContentForSearch),n.before("update",function(){i.text=getLauncherSearchText().join(" ");var e=dom("._pendo-launcher_");i.text?e.addClass(LAUNCHER_SEARCHING_CLASS):e.removeClass(LAUNCHER_SEARCHING_CLASS)})),n}function isSearchEnabled(){if(!pendo.guideWidget)return!1;var e=pendo.guideWidget.data;return!!e&&!!e.enableSearch}function launcherHasActiveSearch(){return getLauncherSearchText().length>0}function getLauncherSearchText(){if(!isSearchEnabled())return[];var e=dom(SEARCHBOX_CSS_SELECTOR)[0];if(!e)return[];var t=e.value;return t.length>0?(t=trim.call(t),[].concat(_.compact(t.split(" ")))):[]}function prefetchGuideContentForSearch(e){return q.all(_.map(e,function(e){return e.fetchContent()}))}function applySearch(e){var t=getLauncherSearchText();if(0===t.length)return e;var n=_.map(t,_.partial(doSearch,e));return n=_.union.apply(_,n)}function doSearch(e,t){function n(e){return e.searchFor(t)}function i(e){var t=["tag","name","content"];return _.indexOf(t,e.field)}return log("doing search on "+t,"launcher","search","guides"),e=e||getActiveGuides(),t&&0!==t.length?_.chain(e).filter(isLauncher).map(n).compact().sortBy(i).pluck("guide").value():e}function getLauncherGuideList(e){var t=_.filter(e||getActiveGuides(),isLauncher);return applySearch(t)}function computeLauncherHash(e){return crc32(_.map(e,function(e){var t=e.isWhatsNew()?[]:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function LauncherBadge(e){function t(e){var t=e.position||"bottom-right",n=document.createElement("img");s.element=n,dom(n).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+t+"_"),e.launcherBadgeUrl&&(n.src=replaceWithContentHost(e.launcherBadgeUrl)),n.onerror=function(t){pendo.log("[Agent] Error! Unable to load guide center image "+e.launcherBadgeUrl),writeException({imgSrc:e.launcherBadgeUrl},"ERROR in when attempting to render guide center badge image")},isBrowserInQuirksmode()&&(attachEvent(n,"mouseover",function(e){dom(n).addClass("_pendo-launcher-badge-active_")}),attachEvent(n,"mouseout",function(e){dom(n).removeClass("_pendo-launcher-badge-active_")}),dom(n).css({position:"absolute"})),getGuideAttachPoint().appendChild(n)}function n(){"badge"===d&&dom(s.element).css("display: ;")}function i(){dom(s.element).css("display: none;")}function o(){var e=s.element;if(e&&/^img$/i.test(e.nodeName)){var t=dom("<div>").addClass(e.className).append(e).appendTo(getGuideAttachPoint());e.className="",s.element=t[0]}}function r(){dom.removeNode(s.element)}function a(e){e?dom(s.element).addClass(launcherActiveClass):dom(s.element).removeClass(launcherActiveClass)}var s=this,d=e.launchType?e.launchType:"badge";_.extend(s,{show:n,hide:i,wrap:o,dispose:r,setActive:a}),t(e)}function LauncherElement(e){function t(){return dom(n())[0]}function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function i(e){attachEvent(document,"click",o)}function o(e){var t=getTarget(e),i=n(),o=dom(t).closest(i);o.length&&(isLauncherVisible()?agentStorage.write("launcher-closed","yes",864e6):pendo.guideWidget.position(t),toggleLauncher())}function r(){detachEvent(document,"click",o),e&&e.whatsnew&&e.whatsnew.enabled&&removeCountBadge()}var a=this;pendo.guideWidget.removeCountBadge=function(){dom("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),_.extend(a,{getLauncherTarget:t,dispose:r}),i(e)}function Launcher(){var e,t="bottom-right",n="bottom-left",i="top-left",o="top-right";return this.update=function(t,n){var i;i=n?t:getLauncherGuideList(t);var o=computeLauncherHash(i)+crc32(getLauncherSearchText());return o!==e&&(e=o,this.updateLauncherContent(i)),showHideLauncher(),i.length>0},this.updateLauncherContent=updateLauncherContent,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{};launcherBadge=new LauncherBadge(e);var t=e.height||LAUNCHER_DEFAULT_HEIGHT;e.enableSearch&&(t+=isBrowserInQuirksmode()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t;var n=e.width||LAUNCHER_DEFAULT_WIDTH;e.addWidth&&(n+=e.addWidth),this.width=n;var i=dom("<div>").addClass("_pendo-launcher_");launcherTooltipDiv=i[0];var o=getOffsetPosition(launcherBadge.element),r=getTooltipDimensions(o,t,n);i.css({width:n,height:t});var a=pendo.TOOLTIP_ARROW_SIZE,s=dom("<div/>").addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:a,left:a,width:n-2*a,height:t-2*a}).appendTo(i),d=getLauncherContext(),u=replaceWithContentHost(replaceInlineStyles(this.template(d))),l=dom("<div/>").addClass("_pendo-guide-content_").html(u).appendTo(s);if(e.addUISection&&e.addUISection(i[0]),pendo._addCloseButton(i[0],function(){toggleLauncher(),agentStorage.write("launcher-closed","yes",288e5)}),l.on("click",function(e){var t=dom(getTarget(e)).closest("._pendo-launcher-item_");if(t&&t.length){var n=/^launcher-(.+)$/.exec(trim.call(t.attr("id"))),i=n&&n[1],o=findGuideById(i);o&&!o.isWhatsNew()&&(showGuide(o.steps[0],"launcher"),toggleLauncher(),stopEvent(e))}}),isBrowserInQuirksmode()&&(dom("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),dom("._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");dom(this).css(e)}),i.appendTo(getGuideAttachPoint()),_.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!isOldIE(9,6)){var c=e.autoHeight.offset||100;i.css({height:"calc(100% - "+c+"px)",maxHeight:e.height,minHeight:e.height/2}),dom("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"})}},this.position=function(e){if(e){var r=this.data,a=getOffsetPosition(e),s=getTooltipDimensions(a,this.height,this.width),d=dom(launcherTooltipDiv),u=r.launchType?r.launchType:"badge";if("badge"===u){var l=r.position,c=[t,n,i,o];_.indexOf(c,r.position)<0&&(l=t),_.each(c,function(e){d.removeClass("_pendo-launcher-"+e+"_")}),d.addClass("_pendo-launcher-"+l+"_"),s.arrow=s.arrow||{},s.arrowPosition=_.contains([t,n],l)?"bottom":"top",s.arrow.hbias=_.contains([n,i],l)?"left":"right",s.arrow.floating=!1}else"element"===u&&d.css({top:s.top,left:s.left,height:s.height,width:s.width,position:a.fixed?"fixed":"absolute"});dom("._pendo-guide-arrow_,._pendo-guide-arrow-border_",d).remove(),buildArrowDimensions(s,a,{width:1/0,height:1/0}),buildAndAppendArrow(d[0],s),d.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(s.arrowPosition)}},this.toggle=toggleLauncher,this}function Onboarding(){var e=this;if(e.data&&e.data.onboarding){var t=e.onboarding=e.onboarding||{};e.before("update",function(n){var i=_.filter(n,isOB),o=_.filter(i,function(t){return"complete"==e.guideStatus(t)}),r=t.total=i.length;t.percentComplete=r>0?Math.round(o.length/r*100):0;var a=dom("._pendo-launcher_,._pendo-launcher-badge_");r?(a.addClass("onboarding"),a.addClass("_pendo-launcher-onboarding_")):(a.removeClass("onboarding"),a.removeClass("_pendo-launcher-onboarding_"))}),e.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null}}return e}function WhatsNewList(){function e(e,i){var o=t(e,i);return 0===o?n(e,i):o}function t(e,t){var n=e.showsAfter||e.publishedAt||0,i=t.showsAfter||t.publishedAt||0;return i-n}function n(e,t){var n=e.name.toLowerCase(),i=t.name.toLowerCase();return n>i?1:i>n?-1:0}var i=this,o=dom("<div>").addClass("_pendo-launcher-whatsnew-count_");return i.data&&i.data.whatsnew&&i.data.whatsnew.enabled&&(i.before("updateLauncherContent",function(t){var n=_.filter(t,function(e){return e.isWhatsNew()});n.sort(e),i.data.whatsnew.total=n.length,i.data.whatsnew.guides=n}),i.after("update",function(e){var t=i.data.whatsnew.guides;_.each(t,function(e){e.show()}),_.find(t,function(e){return e.isReady()?void e.addToLauncher():!0});var n=_.filter(t,function(e){return"active"!==e.steps[0].seenState}).length;n!==i.data.whatsnew.unseenCount&&(o.html(n).css({display:n?"":"none"}),i.data.whatsnew.unseenCount=n,dom("span._pendo-launcher-whatsnew-count_").text(i.data.whatsnew.unseenCount))}),i.after("render",function(){isLauncherOnElement()?o.appendTo(this.data.launchElement):(launcherBadge.wrap(),o.appendTo(launcherBadge.element))})),i}function replaceInlineStyles(e){return _.isString(e)&&(e=e.replace(/\s+(style)=/gi," pendo-style=")),e}function upgradeLauncher(e,t){var n=e&&e.data,i=_.find(t,function(e){var t=_.first(e.steps);return t&&"launcher"===t.type});if(i&&n){var o=_.first(i.steps);n.id=o.guideId+o.id,_.extend(n,_.pick(o,"contentUrl","contentUrlCss","contentUrlJs"),o.attributes)}return e}function loadLauncherContent(e){var t=e&&e.data||{};return getPendoConfigValue("preventCodeInjection")===!0?q.resolve():t.contentUrlJs||t.contentUrl?ContentVerifier.verify(t).then(function(){return ContentLoader.load(t)}).then(function(n){return t.template=n.content,_.extend(e,n)}):q.resolve()}function fixContentHostUrl(e,t){var n=getOption("contentHost");return n?(e=e.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,n).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,n).replace(/^cdn\.pendo\.io$/,n),e=e.replace(/^https?:/,"").replace(/^\/\//,""),/\./.test(e)||/^localhost/.test(e)?e:/^\//.test(e)?t.host+e:e):e}function createLauncher(e,t){if(!isPreventLauncher){e.contentHostUrl&&(e.contentHostUrl=fixContentHostUrl(e.contentHostUrl,location)),launcherElement=new LauncherElement(e);var n=Launcher.create(pendo.guideWidget);return _.isFunction(n.template)||(n.template=e.template?_.template(e.template):defaultLauncherTemplate),n.render(),n.position(launcherElement.getLauncherTarget()),t&&n.toggle(),n}}function updateLauncherContent(e){var t=pendo.guideWidget,n=t.template||defaultLauncherTemplate,i=getLauncherContext(e),o=dom("<div>").html(replaceInlineStyles(n(i))),r=o.find("._pendo-launcher-guide-listing_"),a=o.find("._pendo-launcher-footer_").html(),s=o.find("._pendo-launcher-search-results_").html();dom("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){dom(e).html(r.eq(t).html())}),dom("._pendo-launcher_ ._pendo-launcher-footer_").html(a),dom("._pendo-launcher_ ._pendo-launcher-search-results_").html(s)}function removeCountBadge(){dom("._pendo-launcher-whatsnew-count_").remove()}function base32Encode(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",n=e.length,i=0,o=0,r="",a=0;n>a;a++)for(o=o<<8|e[a],i+=8;i>=5;)r+=t[o>>>i-5&31],i-=5;return i>0&&(r+=t[o<<5-i&31]),r}function deprecateFn(e,t,n){return function(){return memoizedWarnDep(t,n),(e||_.noop).apply(null,arguments)}}function isDebuggingEnabled(e){e=e||!1;var t="true"===agentStorage.read("debug-enabled",!0);return e?t:t?"Yes":"No"}function startDebuggingModuleIfEnabled(){isDebuggingEnabled(!0)&&!detectMaster()&&(addDebuggingFunctions(),pendo.loadResource(getAssetHost()+"/debugger/pendo-client-debugger.js",function(){log("Debug module loaded")}))}function addDebuggingFunctions(){pendo.debugging=debugging}function enableDebugging(e){return isDebuggingEnabled(!0)?e?debugging:"debugging already enabled":(agentStorage.write("debug-enabled","true",null,!0),startDebuggingModuleIfEnabled(),e?debugging:"debugging enabled")}function disableDebugging(){return isDebuggingEnabled(!0)?(agentStorage.write("debug-enabled","false",null,!0),pendo.debugging=null,delete pendo.debugging,"debugging disabled"):"debugging already disabled"}function debug(e){log(e,"debug")}function patchJSONstringify(){var e=JSON.stringify;JSON.stringify=function(t,n,i){var o=Array.prototype.toJSON;delete Array.prototype.toJSON;var r=e(t,n,i);return Array.prototype.toJSON=o,r}}function isPrototypeOlderThan(e){return"undefined"!=typeof Prototype&&parseFloat(Prototype.Version.substr(0,3))<e&&"undefined"!=typeof Array.prototype.toJSON}function track(e,t){var n=pendo.url.get();collectEvent("track",t,n,e)}function disableUnusedMethodsPendoCoreOff(e){_.each(e,function(e){pendo[e]&&(pendo[e]=function(){console.warn("This functionality is not supported by your subscription.")})})}function autoInitialize(){return isReady()?void pendo.log("already running"):(window.pendo_options&&initialize(window.pendo_options),flushCallQueue(),void flushEvery(SEND_INTERVAL))}if(!window.pendo||!window.pendo.VERSION){var UNDERSCORE_EXT={};(function(){var e=UNDERSCORE_EXT,t=e._,n=Array.prototype,i=Object.prototype,o=Function.prototype,r=n.push,a=n.slice,s=n.concat,d=i.toString,u=i.hasOwnProperty,l=Array.isArray,c=Object.keys,p=o.bind,f=function(e){return e instanceof f?e:this instanceof f?void(this._wrapped=e):new f(e)};e._=f,f.VERSION="1.7.0-pendo";var h=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)};case 4:return function(n,i,o,r){return e.call(t,n,i,o,r)}}return function(){return e.apply(t,arguments)}};f.iteratee=function(e,t,n){return null==e?f.identity:f.isFunction(e)?h(e,t,n):f.isObject(e)?f.matches(e):f.property(e)},f.each=f.forEach=function(e,t,n){if(null==e)return e;t=h(t,n);var i,o=e.length;if(o===+o)for(i=0;o>i;i++)t(e[i],i,e);else{var r=f.keys(e);for(i=0,o=r.length;o>i;i++)t(e[r[i]],r[i],e)}return e},f.map=f.collect=function(e,t,n){if(null==e)return[];t=f.iteratee(t,n);for(var i,o=e.length!==+e.length&&f.keys(e),r=(o||e).length,a=Array(r),s=0;r>s;s++)i=o?o[s]:s,a[s]=t(e[i],i,e);return a};var g="Reduce of empty array with no initial value";f.reduce=f.foldl=f.inject=function(e,t,n,i){null==e&&(e=[]),t=h(t,i,4);var o,r=e.length!==+e.length&&f.keys(e),a=(r||e).length,s=0;if(arguments.length<3){if(!a)throw new TypeError(g);n=e[r?r[s++]:s++]}for(;a>s;s++)o=r?r[s]:s,n=t(n,e[o],o,e);return n},f.reduceRight=f.foldr=function(e,t,n,i){null==e&&(e=[]),t=h(t,i,4);var o,r=e.length!==+e.length&&f.keys(e),a=(r||e).length;if(arguments.length<3){if(!a)throw new TypeError(g);n=e[r?r[--a]:--a]}for(;a--;)o=r?r[a]:a,n=t(n,e[o],o,e);return n},f.find=f.detect=function(e,t,n){var i;return t=f.iteratee(t,n),f.some(e,function(e,n,o){return t(e,n,o)?(i=e,!0):void 0}),i},f.filter=f.select=function(e,t,n){var i=[];return null==e?i:(t=f.iteratee(t,n),f.each(e,function(e,n,o){t(e,n,o)&&i.push(e)}),i)},f.reject=function(e,t,n){return f.filter(e,f.negate(f.iteratee(t)),n)},f.every=f.all=function(e,t,n){if(null==e)return!0;t=f.iteratee(t,n);var i,o,r=e.length!==+e.length&&f.keys(e),a=(r||e).length;for(i=0;a>i;i++)if(o=r?r[i]:i,!t(e[o],o,e))return!1;return!0},f.some=f.any=function(e,t,n){if(null==e)return!1;t=f.iteratee(t,n);var i,o,r=e.length!==+e.length&&f.keys(e),a=(r||e).length;for(i=0;a>i;i++)if(o=r?r[i]:i,t(e[o],o,e))return!0;return!1},f.contains=f.include=function(e,t){return null==e?!1:(e.length!==+e.length&&(e=f.values(e)),f.indexOf(e,t)>=0)},f.invoke=function(e,t){var n=a.call(arguments,2),i=f.isFunction(t);return f.map(e,function(e){return(i?t:e[t]).apply(e,n)})},f.pluck=function(e,t){return f.map(e,f.property(t))},f.where=function(e,t){return f.filter(e,f.matches(t))},f.findWhere=function(e,t){return f.find(e,f.matches(t))},f.max=function(e,t,n){var i,o,r=-(1/0),a=-(1/0);if(null==t&&null!=e){e=e.length===+e.length?e:f.values(e);for(var s=0,d=e.length;d>s;s++)i=e[s],i>r&&(r=i)}else t=f.iteratee(t,n),f.each(e,function(e,n,i){o=t(e,n,i),(o>a||o===-(1/0)&&r===-(1/0))&&(r=e,a=o)});return r},f.min=function(e,t,n){var i,o,r=1/0,a=1/0;if(null==t&&null!=e){e=e.length===+e.length?e:f.values(e);for(var s=0,d=e.length;d>s;s++)i=e[s],r>i&&(r=i)}else t=f.iteratee(t,n),f.each(e,function(e,n,i){o=t(e,n,i),(a>o||o===1/0&&r===1/0)&&(r=e,a=o)});return r},f.shuffle=function(e){for(var t,n=e&&e.length===+e.length?e:f.values(e),i=n.length,o=Array(i),r=0;i>r;r++)t=f.random(0,r),t!==r&&(o[r]=o[t]),o[t]=n[r];return o},f.sample=function(e,t,n){return null==t||n?(e.length!==+e.length&&(e=f.values(e)),e[f.random(e.length-1)]):f.shuffle(e).slice(0,Math.max(0,t))},f.sortBy=function(e,t,n){return t=f.iteratee(t,n),f.pluck(f.map(e,function(e,n,i){return{value:e,index:n,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return e.index-t.index}),"value")};var v=function(e){return function(t,n,i){var o={};return n=f.iteratee(n,i),f.each(t,function(i,r){var a=n(i,r,t);e(o,i,a)}),o}};f.groupBy=v(function(e,t,n){f.has(e,n)?e[n].push(t):e[n]=[t]}),f.indexBy=v(function(e,t,n){e[n]=t}),f.countBy=v(function(e,t,n){f.has(e,n)?e[n]++:e[n]=1}),f.sortedIndex=function(e,t,n,i){n=f.iteratee(n,i,1);for(var o=n(t),r=0,a=e.length;a>r;){var s=r+a>>>1;n(e[s])<o?r=s+1:a=s}return r},f.toArray=function(e){return e?f.isArray(e)?a.call(e):e.length===+e.length?f.map(e,f.identity):f.values(e):[]},f.size=function(e){return null==e?0:e.length===+e.length?e.length:f.keys(e).length},f.partition=function(e,t,n){t=f.iteratee(t,n);var i=[],o=[];return f.each(e,function(e,n,r){(t(e,n,r)?i:o).push(e)}),[i,o]},f.first=f.head=f.take=function(e,t,n){return null==e?void 0:null==t||n?e[0]:0>t?[]:a.call(e,0,t)},f.initial=function(e,t,n){return a.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},f.last=function(e,t,n){return null==e?void 0:null==t||n?e[e.length-1]:a.call(e,Math.max(e.length-t,0))},f.rest=f.tail=f.drop=function(e,t,n){return a.call(e,null==t||n?1:t)},f.compact=function(e){return f.filter(e,f.identity)};var m=function(e,t,n,i){if(t&&f.every(e,f.isArray))return s.apply(i,e);for(var o=0,a=e.length;a>o;o++){var d=e[o];f.isArray(d)||f.isArguments(d)?t?r.apply(i,d):m(d,t,n,i):n||i.push(d)}return i};f.flatten=function(e,t){return m(e,t,!1,[])},f.without=function(e){return f.difference(e,a.call(arguments,1))},f.uniq=f.unique=function(e,t,n,i){if(null==e)return[];f.isBoolean(t)||(i=n,n=t,t=!1),null!=n&&(n=f.iteratee(n,i));for(var o=[],r=[],a=0,s=e.length;s>a;a++){var d=e[a];if(t)a&&r===d||o.push(d),r=d;else if(n){var u=n(d,a,e);f.indexOf(r,u)<0&&(r.push(u),o.push(d))}else f.indexOf(o,d)<0&&o.push(d)}return o},f.union=function(){return f.uniq(m(arguments,!0,!0,[]))},f.intersection=function(e){if(null==e)return[];for(var t=[],n=arguments.length,i=0,o=e.length;o>i;i++){var r=e[i];if(!f.contains(t,r)){for(var a=1;n>a&&f.contains(arguments[a],r);a++);a===n&&t.push(r)}}return t},f.difference=function(e){var t=m(a.call(arguments,1),!0,!0,[]);return f.filter(e,function(e){return!f.contains(t,e)})},f.zip=function(e){if(null==e)return[];for(var t=f.max(arguments,"length").length,n=Array(t),i=0;t>i;i++)n[i]=f.pluck(arguments,i);return n},f.object=function(e,t){if(null==e)return{};for(var n={},i=0,o=e.length;o>i;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},f.indexOf=function(e,t,n){if(null==e)return-1;var i=0,o=e.length;if(n){if("number"!=typeof n)return i=f.sortedIndex(e,t),e[i]===t?i:-1;i=0>n?Math.max(0,o+n):n}for(;o>i;i++)if(e[i]===t)return i;return-1},f.lastIndexOf=function(e,t,n){if(null==e)return-1;var i=e.length;for("number"==typeof n&&(i=0>n?i+n+1:Math.min(i,n+1));--i>=0;)if(e[i]===t)return i;return-1},f.range=function(e,t,n){arguments.length<=1&&(t=e||0,e=0),n=n||1;for(var i=Math.max(Math.ceil((t-e)/n),0),o=Array(i),r=0;i>r;r++,e+=n)o[r]=e;return o};var b=function(){};f.bind=function(e,t){var n,i;if(p&&e.bind===p)return p.apply(e,a.call(arguments,1));if(!f.isFunction(e))throw new TypeError("Bind must be called on a function");return n=a.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,n.concat(a.call(arguments)));b.prototype=e.prototype;var o=new b;b.prototype=null;var r=e.apply(o,n.concat(a.call(arguments)));return f.isObject(r)?r:o}},f.partial=function(e){var t=a.call(arguments,1);return function(){for(var n=0,i=t.slice(),o=0,r=i.length;r>o;o++)i[o]===f&&(i[o]=arguments[n++]);for(;n<arguments.length;)i.push(arguments[n++]);return e.apply(this,i)}},f.bindAll=function(e){var t,n,i=arguments.length;if(1>=i)throw new Error("bindAll must be passed function names");for(t=1;i>t;t++)n=arguments[t],e[n]=f.bind(e[n],e);return e},f.memoize=function(e,t){var n=function(i){var o=n.cache,r=t?t.apply(this,arguments):i;return f.has(o,r)||(o[r]=e.apply(this,arguments)),o[r]};return n.cache={},n},f.delay=function(e,t){var n=a.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},f.defer=function(e){return f.delay.apply(f,[e,1].concat(a.call(arguments,1)))},f.throttle=function(e,t,n){var i,o,r,a=null,s=0;n||(n={});var d=function(){s=n.leading===!1?0:f.now(),a=null,r=e.apply(i,o),a||(i=o=null)};return function(){var u=f.now();s||n.leading!==!1||(s=u);var l=t-(u-s);return i=this,o=arguments,0>=l||l>t?(clearTimeout(a),a=null,s=u,r=e.apply(i,o),a||(i=o=null)):a||n.trailing===!1||(a=setTimeout(d,l)),r}},f.debounce=function(e,t,n){var i,o,r,a,s,d=function(){var u=f.now()-a;t>u&&u>0?i=setTimeout(d,t-u):(i=null,n||(s=e.apply(r,o),i||(r=o=null)))};return function(){r=this,o=arguments,a=f.now();var u=n&&!i;return i||(i=setTimeout(d,t)),u&&(s=e.apply(r,o),r=o=null),s}},f.wrap=function(e,t){return f.partial(t,e)},f.negate=function(e){return function(){return!e.apply(this,arguments)}},f.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}},f.after=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}},f.before=function(e,t){var n;return function(){return--e>0?n=t.apply(this,arguments):t=null,
n}},f.once=f.partial(f.before,2),f.keys=function(e){if(!f.isObject(e))return[];if(c)return c(e);var t=[];for(var n in e)f.has(e,n)&&t.push(n);return t},f.values=function(e){for(var t=f.keys(e),n=t.length,i=Array(n),o=0;n>o;o++)i[o]=e[t[o]];return i},f.pairs=function(e){for(var t=f.keys(e),n=t.length,i=Array(n),o=0;n>o;o++)i[o]=[t[o],e[t[o]]];return i},f.invert=function(e){for(var t={},n=f.keys(e),i=0,o=n.length;o>i;i++)t[e[n[i]]]=n[i];return t},f.functions=f.methods=function(e){var t=[];for(var n in e)f.isFunction(e[n])&&t.push(n);return t.sort()},f.extend=function(e){if(!f.isObject(e))return e;for(var t,n,i=1,o=arguments.length;o>i;i++){t=arguments[i];for(n in t)u.call(t,n)&&(e[n]=t[n])}return e},f.pick=function(e,t,n){var i,o={};if(null==e)return o;if(f.isFunction(t)){t=h(t,n);for(i in e){var r=e[i];t(r,i,e)&&(o[i]=r)}}else{var d=s.apply([],a.call(arguments,1));e=new Object(e);for(var u=0,l=d.length;l>u;u++)i=d[u],i in e&&(o[i]=e[i])}return o},f.omit=function(e,t,n){if(f.isFunction(t))t=f.negate(t);else{var i=f.map(s.apply([],a.call(arguments,1)),String);t=function(e,t){return!f.contains(i,t)}}return f.pick(e,t,n)},f.defaults=function(e){if(!f.isObject(e))return e;for(var t=1,n=arguments.length;n>t;t++){var i=arguments[t];for(var o in i)void 0===e[o]&&(e[o]=i[o])}return e},f.clone=function(e){return f.isObject(e)?f.isArray(e)?e.slice():f.extend({},e):e},f.tap=function(e,t){return t(e),e};var y=function(e,t,n,i){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;e instanceof f&&(e=e._wrapped),t instanceof f&&(t=t._wrapped);var o=d.call(e);if(o!==d.call(t))return!1;switch(o){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}if("object"!=typeof e||"object"!=typeof t)return!1;for(var r=n.length;r--;)if(n[r]===e)return i[r]===t;var a=e.constructor,s=t.constructor;if(a!==s&&"constructor"in e&&"constructor"in t&&!(f.isFunction(a)&&a instanceof a&&f.isFunction(s)&&s instanceof s))return!1;n.push(e),i.push(t);var u,l;if("[object Array]"===o){if(u=e.length,l=u===t.length)for(;u--&&(l=y(e[u],t[u],n,i)););}else{var c,p=f.keys(e);if(u=p.length,l=f.keys(t).length===u)for(;u--&&(c=p[u],l=f.has(t,c)&&y(e[c],t[c],n,i)););}return n.pop(),i.pop(),l};f.isEqual=function(e,t){return y(e,t,[],[])},f.isEmpty=function(e){if(null==e)return!0;if(f.isArray(e)||f.isString(e)||f.isArguments(e))return 0===e.length;for(var t in e)if(f.has(e,t))return!1;return!0},f.isElement=function(e){return!(!e||1!==e.nodeType)},f.isArray=l||function(e){return"[object Array]"===d.call(e)},f.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},f.each(["Arguments","Function","String","Number","Date","RegExp"],function(e){f["is"+e]=function(t){return d.call(t)==="[object "+e+"]"}}),f.isArguments(arguments)||(f.isArguments=function(e){return f.has(e,"callee")}),"function"!=typeof/./&&(f.isFunction=function(e){return"function"==typeof e||!1}),f.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},f.isNaN=function(e){return f.isNumber(e)&&e!==+e},f.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===d.call(e)},f.isNull=function(e){return null===e},f.isUndefined=function(e){return void 0===e},f.has=function(e,t){return null!=e&&u.call(e,t)},f.noConflict=function(){return e._=t,this},f.identity=function(e){return e},f.constant=function(e){return function(){return e}},f.noop=function(){},f.property=function(e){return function(t){return t[e]}},f.matches=function(e){var t=f.pairs(e),n=t.length;return function(e){if(null==e)return!n;e=new Object(e);for(var i=0;n>i;i++){var o=t[i],r=o[0];if(o[1]!==e[r]||!(r in e))return!1}return!0}},f.times=function(e,t,n){var i=Array(Math.max(0,e));t=h(t,n,1);for(var o=0;e>o;o++)i[o]=t(o);return i},f.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},f.now=Date.now||function(){return(new Date).getTime()};var _={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},w=f.invert(_),S=function(e){var t=function(t){return e[t]},n="(?:"+f.keys(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}};f.escape=S(_),f.unescape=S(w),f.result=function(e,t){if(null==e)return void 0;var n=e[t];return f.isFunction(n)?e[t]():n};var E=0;f.uniqueId=function(e){var t=++E+"";return e?e+t:t},f.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var C=/(.)^/,T={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},x=/\\|'|\r|\n|\u2028|\u2029/g,I=function(e){return"\\"+T[e]};f.template=function(e,t,n){!t&&n&&(t=n),t=f.defaults({},t,f.templateSettings);var i=RegExp([(t.escape||C).source,(t.interpolate||C).source,(t.evaluate||C).source].join("|")+"|$","g"),o=0,r="__p+='";e.replace(i,function(t,n,i,a,s){return r+=e.slice(o,s).replace(x,I),o=s+t.length,n?r+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?r+="'+\n((__t=("+i+"))==null?'':__t)+\n'":a&&(r+="';\n"+a+"\n__p+='"),t}),r+="';\n",t.variable||(r="with(obj||{}){\n"+r+"}\n"),r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{var a=new Function(t.variable||"obj","_",r)}catch(s){throw s.source=r,s}var d=function(e){return a.call(this,e,f)},u=t.variable||"obj";return d.source="function("+u+"){\n"+r+"}",d},f.chain=function(e){var t=f(e);return t._chain=!0,t};var A=function(e){return this._chain?f(e).chain():e};f.mixin=function(e){f.each(f.functions(e),function(t){var n=f[t]=e[t];f.prototype[t]=function(){var e=[this._wrapped];return r.apply(e,arguments),A.call(this,n.apply(f,e))}})},f.mixin(f),f.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=n[e];f.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],A.call(this,n)}}),f.each(["concat","join","slice"],function(e){var t=n[e];f.prototype[e]=function(){return A.call(this,t.apply(this._wrapped,arguments))}}),f.prototype.value=function(){return this._wrapped}}).call({});var SIZZLE_EXT={};!function(e){function t(e,t,n,i){var o,r,a,s,d,u,l,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!i&&(B(t),t=t||N,P)){if(11!==h&&(d=ye.exec(e)))if(o=d[1]){if(9===h){if(!(a=t.getElementById(o)))return n;if(a.id===o)return n.push(a),n}else if(p&&(a=p.getElementById(o))&&M(t,a)&&a.id===o)return n.push(a),n}else{if(d[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((o=d[3])&&S.getElementsByClassName&&t.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(o)),n}if(S.qsa&&!q[e+" "]&&(!R||!R.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(l=e,p=t,1===h&&(ce.test(e)||le.test(e))){for(p=_e.test(e)&&c(t.parentNode)||t,p===t&&S.scope||((s=t.getAttribute("id"))?s=s.replace(Ee,Ce):t.setAttribute("id",s=H)),u=x(e),r=u.length;r--;)u[r]=(s?"#"+s:":scope")+" "+f(u[r]);l=u.join(",")}try{return Q.apply(n,p.querySelectorAll(l)),n}catch(g){q(e,!0)}finally{s===H&&t.removeAttribute("id")}}}return A(e.replace(de,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>E.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[H]=!0,e}function o(e){var t=N.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var n=e.split("|"),i=n.length;i--;)E.attrHandle[n[i]]=t}function a(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 s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function d(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&xe(t)===e:t.disabled===e:"label"in t?t.disabled===e:!1}}function l(e){return i(function(t){return t=+t,i(function(n,i){for(var o,r=e([],n.length,t),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function p(){}function f(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function h(e,t,n){var i=t.dir,o=t.next,r=o||i,a=n&&"parentNode"===r,s=W++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,d){var u,l,c,p=[z,s];if(d){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,d))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(c=t[H]||(t[H]={}),l=c[t.uniqueID]||(c[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=l[r])&&u[0]===z&&u[1]===s)return p[2]=u[2];if(l[r]=p,p[2]=e(t,n,d))return!0}return!1}}function g(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function v(e,n,i){for(var o=0,r=n.length;r>o;o++)t(e,n[o],i);return i}function m(e,t,n,i,o){for(var r,a=[],s=0,d=e.length,u=null!=t;d>s;s++)(r=e[s])&&(!n||n(r,i,o))&&(a.push(r),u&&t.push(s));return a}function b(e,t,n,o,r,a){return o&&!o[H]&&(o=b(o)),r&&!r[H]&&(r=b(r,a)),i(function(i,a,s,d){var u,l,c,p=[],f=[],h=a.length,g=i||v(t||"*",s.nodeType?[s]:s,[]),b=!e||!i&&t?g:m(g,p,e,s,d),y=n?r||(i?e:h||o)?[]:a:b;if(n&&n(b,y,s,d),o)for(u=m(y,f),o(u,[],s,d),l=u.length;l--;)(c=u[l])&&(y[f[l]]=!(b[f[l]]=c));if(i){if(r||e){if(r){for(u=[],l=y.length;l--;)(c=y[l])&&u.push(b[l]=c);r(null,y=[],u,d)}for(l=y.length;l--;)(c=y[l])&&(u=r?te(i,c):p[l])>-1&&(i[u]=!(a[u]=c))}}else y=m(y===a?y.splice(h,y.length):y),r?r(null,a,y,d):Q.apply(a,y)})}function y(e){for(var t,n,i,o=e.length,r=E.relative[e[0].type],a=r||E.relative[" "],s=r?1:0,d=h(function(e){return e===t},a,!0),u=h(function(e){return te(t,e)>-1},a,!0),l=[function(e,n,i){var o=!r&&(i||n!==O)||((t=n).nodeType?d(e,n,i):u(e,n,i));return t=null,o}];o>s;s++)if(n=E.relative[e[s].type])l=[h(g(l),n)];else{if(n=E.filter[e[s].type].apply(null,e[s].matches),n[H]){for(i=++s;o>i&&!E.relative[e[i].type];i++);return b(s>1&&g(l),s>1&&f(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(de,"$1"),n,i>s&&y(e.slice(s,i)),o>i&&y(e=e.slice(i)),o>i&&f(e))}l.push(n)}return g(l)}function _(e,n){var o=n.length>0,r=e.length>0,a=function(i,a,s,d,u){var l,c,p,f=0,h="0",g=i&&[],v=[],b=O,y=i||r&&E.find.TAG("*",u),_=z+=null==b?1:Math.random()||.1,w=y.length;for(u&&(O=a==N||a||u);h!==w&&null!=(l=y[h]);h++){if(r&&l){for(c=0,a||l.ownerDocument==N||(B(l),s=!P);p=e[c++];)if(p(l,a||N,s)){d.push(l);break}u&&(z=_)}o&&((l=!p&&l)&&f--,i&&g.push(l))}if(f+=h,o&&h!==f){for(c=0;p=n[c++];)p(g,v,a,s);if(i){if(f>0)for(;h--;)g[h]||v[h]||(v[h]=Y.call(d));v=m(v)}Q.apply(d,v),u&&!i&&v.length>0&&f+n.length>1&&t.uniqueSort(d)}return u&&(z=_,O=b),g};return o?i(a):a}var w,S,E,C,T,x,I,A,O,k,G,B,N,L,P,R,D,F,M,H="sizzle"+1*new Date,U=e.document,z=0,W=0,V=n(),j=n(),J=n(),q=n(),X=function(e,t){return e===t&&(G=!0),0},K={}.hasOwnProperty,Z=[],Y=Z.pop,$=Z.push,Q=Z.push,ee=Z.slice,te=function(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",oe="(?:\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+",re="\\["+ie+"*("+oe+")(?:"+ie+"*([*^$|!~]?=)"+ie+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+oe+"))|)"+ie+"*\\]",ae=":("+oe+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",se=new RegExp(ie+"+","g"),de=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),ue=new RegExp("^"+ie+"*,"+ie+"*"),le=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),ce=new RegExp(ie+"|>"),pe=new RegExp(ae),fe=new RegExp("^"+oe+"$"),he={ID:new RegExp("^#("+oe+")"),CLASS:new RegExp("^\\.("+oe+")"),TAG:new RegExp("^("+oe+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},ge=/HTML$/i,ve=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,be={test:function(e){return"undefined"!=typeof ShadyDOM&&"function"==typeof e?!0:/^[^{]+\{\s*\[native \w/.test(e)}},ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_e=/[+~]/,we=new RegExp("\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\([^\\r\\n\\f])","g"),Se=function(e,t){var n="0x"+e.slice(1)-65536;return t?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},Ee=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ce=function(e,t){return t?"\x00"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Te=function(){B()},xe=h(function(e){return e.disabled===!0&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Q.apply(Z=ee.call(U.childNodes),U.childNodes),Z[U.childNodes.length].nodeType}catch(Ie){Q={apply:Z.length?function(e,t){$.apply(e,ee.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}S=t.support={},T=t.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!ge.test(t||n&&n.nodeName||"HTML")},B=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:U;return i!=N&&9===i.nodeType&&i.documentElement?(N=i,L=N.documentElement,P=!T(N),U!=N&&(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),S.scope=o(function(e){return L.appendChild(e).appendChild(N.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),S.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),S.getElementsByTagName=o(function(e){return e.appendChild(N.createComment("")),!e.getElementsByTagName("*").length}),S.getElementsByClassName=be.test(N.getElementsByClassName),S.getById=o(function(e){return L.appendChild(e).id=H,!N.getElementsByName||!N.getElementsByName(H).length}),S.getById?(E.filter.ID=function(e){var t=e.replace(we,Se);return function(e){return e.getAttribute("id")===t}},E.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}}):(E.filter.ID=function(e){var t=e.replace(we,Se);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},E.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n,i,o,r=t.getElementById(e);if(r){if(n=r.getAttributeNode("id"),n&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if(n=r.getAttributeNode("id"),n&&n.value===e)return[r]}return[]}}),E.find.TAG=S.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):S.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},E.find.CLASS=S.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&P?t.getElementsByClassName(e):void 0},D=[],R=[],(S.qsa=be.test(N.querySelectorAll))&&(o(function(e){var t;L.appendChild(e).innerHTML="<a id='"+H+"'></a><select id='"+H+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+ie+"*(?:value|"+ne+")"),e.querySelectorAll("[id~="+H+"-]").length||R.push("~="),t=N.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||R.push("\\["+ie+"*name"+ie+"*="+ie+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+H+"+*").length||R.push(".#.+[+~]"),e.querySelectorAll("\\\f"),R.push("[\\r\\n\\f]")}),o(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=N.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+ie+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),L.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(S.matchesSelector=be.test(F=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&o(function(e){S.disconnectedMatch=F.call(e,"*"),F.call(e,"[s!='']:x"),D.push("!=",ae)}),R=R.length&&new RegExp(R.join("|")),D=D.length&&new RegExp(D.join("|")),t=be.test(L.compareDocumentPosition),M=t||be.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=t?function(e,t){if(e===t)return G=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!S.sortDetached&&t.compareDocumentPosition(e)===n?e==N||e.ownerDocument==U&&M(U,e)?-1:t==N||t.ownerDocument==U&&M(U,t)?1:k?te(k,e)-te(k,t):0:4&n?-1:1)}:function(e,t){if(e===t)return G=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,s=[e],d=[t];if(!o||!r)return e==N?-1:t==N?1:o?-1:r?1:k?te(k,e)-te(k,t):0;if(o===r)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)d.unshift(n);for(;s[i]===d[i];)i++;return i?a(s[i],d[i]):s[i]==U?-1:d[i]==U?1:0},N):N},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if(B(e),S.matchesSelector&&P&&!q[n+" "]&&(!D||!D.test(n))&&(!R||!R.test(n)))try{var i=F.call(e,n);if(i||S.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(o){q(n,!0)}return t(n,N,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!=N&&B(e),M(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!=N&&B(e);var n=E.attrHandle[t.toLowerCase()],i=n&&K.call(E.attrHandle,t.toLowerCase())?n(e,t,!P):undefined;return i!==undefined?i:S.attributes||!P?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.escape=function(e){return(e+"").replace(Ee,Ce)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,o=0;if(G=!S.detectDuplicates,k=!S.sortStable&&e.slice(0),e.sort(X),G){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return k=null,e},C=t.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=C(t);return n},E=t.selectors={cacheLength:50,createPseudo:i,match:he,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(we,Se),e[3]=(e[3]||e[4]||e[5]||"").replace(we,Se),"~="===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]||t.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]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pe.test(n)&&(t=x(n,!0))&&(t=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(we,Se).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=V[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&V(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(o){var r=t.attr(o,e);return null==r?"!="===n:n?(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(se," ")+" ").indexOf(i)>-1:"|="===n?r===i||r.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,d){var u,l,c,p,f,h,g=r!==a?"nextSibling":"previousSibling",v=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!d&&!s,y=!1;if(v){if(r){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===m:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&b){for(p=v,c=p[H]||(p[H]={}),l=c[p.uniqueID]||(c[p.uniqueID]={}),u=l[e]||[],f=u[0]===z&&u[1],y=f&&u[2],p=f&&v.childNodes[f];p=++f&&p&&p[g]||(y=f=0)||h.pop();)if(1===p.nodeType&&++y&&p===t){l[e]=[z,f,y];break}}else if(b&&(p=t,c=p[H]||(p[H]={}),l=c[p.uniqueID]||(c[p.uniqueID]={}),u=l[e]||[],f=u[0]===z&&u[1],y=f),y===!1)for(;(p=++f&&p&&p[g]||(y=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==m:1!==p.nodeType)||!++y||(b&&(c=p[H]||(p[H]={}),l=c[p.uniqueID]||(c[p.uniqueID]={}),l[e]=[z,y]),p!==t)););return y-=o,y===i||y%i===0&&y/i>=0}}},PSEUDO:function(e,n){var o,r=E.pseudos[e]||E.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[H]?r(n):r.length>1?(o=[e,e,"",n],E.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,o=r(e,n),a=o.length;a--;)i=te(e,o[a]),e[i]=!(t[i]=o[a])}):function(e){return r(e,0,o)}):r}},pseudos:{not:i(function(e){var t=[],n=[],o=I(e.replace(de,"$1"));return o[H]?i(function(e,t,n,i){for(var r,a=o(e,null,i,[]),s=e.length;s--;)(r=a[s])&&(e[s]=!(t[s]=r))}):function(e,i,r){return t[0]=e,o(t,null,r,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return e=e.replace(we,Se),function(t){return(t.textContent||C(t)).indexOf(e)>-1}}),lang:i(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,Se).toLowerCase(),function(t){var n;do if(n=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:u(!1),disabled:u(!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,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!E.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return ve.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var i=0>n?n+t:n>t?t:n;--i>=0;)e.push(i);return e}),gt:l(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}},E.pseudos.nth=E.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})E.pseudos[w]=s(w);for(w in{submit:!0,reset:!0})E.pseudos[w]=d(w);p.prototype=E.filters=E.pseudos,E.setFilters=new p,x=t.tokenize=function(e,n){var i,o,r,a,s,d,u,l=j[e+" "];if(l)return n?0:l.slice(0);for(s=e,d=[],u=E.preFilter;s;){(!i||(o=ue.exec(s)))&&(o&&(s=s.slice(o[0].length)||s),d.push(r=[])),i=!1,(o=le.exec(s))&&(i=o.shift(),r.push({value:i,type:o[0].replace(de," ")}),s=s.slice(i.length));for(a in E.filter)!(o=he[a].exec(s))||u[a]&&!(o=u[a](o))||(i=o.shift(),r.push({value:i,type:a,matches:o}),s=s.slice(i.length));if(!i)break}return n?s.length:s?t.error(e):j(e,d).slice(0)},I=t.compile=function(e,t){var n,i=[],o=[],r=J[e+" "];if(!r){for(t||(t=x(e)),n=t.length;n--;)r=y(t[n]),r[H]?i.push(r):o.push(r);r=J(e,_(o,i)),r.selector=e}return r},A=t.select=function(e,t,n,i){var o,r,a,s,d,u="function"==typeof e&&e,l=!i&&x(e=u.selector||e);if(n=n||[],1===l.length){if(r=l[0]=l[0].slice(0),r.length>2&&"ID"===(a=r[0]).type&&9===t.nodeType&&P&&E.relative[r[1].type]){if(t=(E.find.ID(a.matches[0].replace(we,Se),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=he.needsContext.test(e)?0:r.length;o--&&(a=r[o],!E.relative[s=a.type]);)if((d=E.find[s])&&(i=d(a.matches[0].replace(we,Se),_e.test(r[0].type)&&c(t.parentNode)||t))){if(r.splice(o,1),e=i.length&&f(r),!e)return Q.apply(n,i),n;break}}return(u||I(e,l))(i,t,!P,n,!t||_e.test(e)&&c(t.parentNode)||t),n},S.sortStable=H.split("").sort(X).join("")===H,S.detectDuplicates=!!G,B(),S.sortDetached=o(function(e){return 1&e.compareDocumentPosition(N.createElement("fieldset"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||r("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),S.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||r("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||r(ne,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),SIZZLE_EXT.Sizzle=t}(window);var _slice=Array.prototype.slice;try{_slice.call(document.documentElement)}catch(e){Array.prototype.slice=function(e,t){if(t="undefined"!=typeof t?t:this.length,"[object Array]"===Object.prototype.toString.call(this))return _slice.call(this,e,t);var n,i,o=[],r=this.length,a=e||0;a=a>=0?a:r+a;var s=t?t:r;if(0>t&&(s=r+t),i=s-a,i>0)if(o=new Array(i),this.charAt)for(n=0;i>n;n++)o[n]=this.charAt(a+n);else for(n=0;i>n;n++)o[n]=this[a+n];return o}}String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")});var shadowAPI=function(){function e(e){return e?e.indexOf(shadowAPI.PSEUDO_ELEMENT)>-1:!1}function t(e){var t=e.split(shadowAPI.PSEUDO_ELEMENT),n=t.splice(0,1)[0],i=t.join(shadowAPI.PSEUDO_ELEMENT);return{baseCss:n,shadowCss:i}}function n(e){return _.isFunction(e.composedPath)}return{PSEUDO_ELEMENT:"::shadow",getComposedPath:function(e){return n(e)?e.composedPath():null},getShadowRoot:function(e){return e.shadowRoot},isElementShadowRoot:function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot&&e.host},isShadowSelector:e,getParent:function(e){return shadowAPI.isElementShadowRoot(e)?e.host:e.parentNode},wrapSizzle:function(n){var i=_.extend(function o(i,r,a,s){if(e(i)&&!_.isFunction(document.documentElement.attachShadow))return n(i.replace(new RegExp(shadowAPI.PSEUDO_ELEMENT,"g"),""),r,a,s);if(e(i)){var d=t(i),u=o(d.baseCss,r);return _.reduce(u,function(e,t){return shadowAPI.getShadowRoot(t)?e.concat(o(d.shadowCss,shadowAPI.getShadowRoot(t),a,s)):e},[])}return n(i,r,a,s)},n);return i.matchesSelector=_.wrap(i.matchesSelector,function(t,n,o){return shadowAPI.isElementShadowRoot(n)?!1:e(o)?i(o,document,null,[n]).length>0:t(n,o)}),i}}}(),pendo=window.pendo=window.pendo||{},_=pendo._=UNDERSCORE_EXT._,Sizzle=pendo.Sizzle=shadowAPI.wrapSizzle(SIZZLE_EXT.Sizzle),Zlib=pendo.Zlib={},ENV="prod",VERSION=pendo.VERSION="2.59.1_prod",getUA=function(){return navigator.userAgent},getVersion=function(){return isBrowserInQuirksmode()?VERSION+"+quirksmode":VERSION},ConfigReader=function(){function e(e){return f(w,{name:e})||{name:e}}function t(e){return get(e,"supportedSources",[v,m,b])}function n(e,t){if(t){var n=t(),i=get(n.lookup,e.name);return doesExist(i)?i:undefined}}function i(e){return l(h(t(e),function(t){var i=n(e,S[t]);return new a(e.name,i,t)}),function(e){return doesExist(e.value)})}function o(t,n){var o=e(t);n=n||get(o,"defaultValue",null);var r=new a(t,n,y),s=i(o);return o.useAnySource&&doesExist(n)?p(s,function(e){return e.value!=n})||r:c(s)||r}function r(t){var n=e(t),o=l(i(n),function(e){return e.source!==y});return o.length<2?[]:d(g(o,"value"),function(e){return e===o[0].value})?[]:o}function a(e,t,n){this.name=e,this.value=t,this.source=n}function s(){var e=[];return u(w,function(t){e.push({name:t.name,active:o(t.name),conflicts:r(t.name)})}),e}var d=_.all,u=_.each,l=_.filter,c=_.first,p=_.find,f=_.findWhere,h=_.map,g=_.pluck,v="snippet",m="pendoconfig",b="global",y="default",w=[{name:"preventCodeInjection",defaultValue:!1,supportedSources:[v,m,b]},{name:"pendoCore",defaultValue:!0,supportedSources:[m]},{name:"apiKey",supportedSources:[v,m]},{name:"additionalApiKeys",supportedSources:[v,m]},{name:"enableDesignerKeyboardShortcut",supportedSources:[v]},{name:"disableDesignerKeyboardShortcut",defaultValue:!1,supportedSources:[m]},{name:"pendoFeedback",defaultValue:!1,supportedSources:[m]},{name:"disableFeedbackAutoInit",supportedSources:[m]},{name:"cookieDomain",supportedSources:[v,m]},{name:"feedbackSettings",supportedSources:[m]},{name:"htmlAttributes",supportedSources:[m]},{name:"htmlAttributeBlacklist",supportedSources:[m]},{name:"xhrTimings",supportedSources:[m]},{name:"localStorageOnly",supportedSources:[v,m]},{name:"disableCookies",supportedSources:[v,m]},{name:"freeNPSData",supportedSources:[m]},{name:"feedbackSettings",supportedSources:[m]},{name:"contentHost",supportedSources:[v]},{name:"guideSeenTimeoutLength",supportedSources:[m],defaultValue:1e4},{name:"disableGlobalCSS",supportedSources:[v,m],defaultValue:!1},{name:"disablePersistence",supportedSources:[m,v]},{name:"enableSignedMetadata",supportedSources:[m],defaultValue:!1},{name:"requireSignedMetadata",supportedSources:[m],defaultValue:!1},{name:"guideValidation",supportedSources:[v,m],defaultValue:!1},{name:"enableGuideTimeout",supportedSources:[v,m],defaultValue:!1},{name:"blockAgentMetadata",supportedSources:[m],defaultValue:!1},{name:"adoptHost",supportedSources:[m]},{name:"allowedText",supportedSources:[v,m],defaultValue:[]},{name:"excludeAllText",supportedSources:[m,v],defaultValue:!1,useAnySource:!0},{name:"dataHost",supportedSources:[v]},{name:"blockLogRemoteAddress",supportedSources:[m]},{name:"ignoreHashRouting",supportedSources:[m,v]},{name:"xhrWhitelist",supportedSources:[m]}],S={};return S[v]=function(){return{lookup:originalOptions||window.pendo_options,name:v}},S[m]=function(){var e="undefined"!=typeof PendoConfig?PendoConfig:{};return{lookup:e,name:m}},S[b]=function(){return{lookup:pendo,name:b}},a.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:s,get:function(e,t){var n=o(e,t);return n.value},options:g(w,"name"),validate:function(e){e.group("Validate Config options"),u(s(),function(t){e.log(String(t.active)),t.conflicts.length>0&&(e.warn("Multiple sources found with values for "+t.name),u(t.conflicts,function(t){e.warn(String(t))}))}),e.groupEnd()}}}(),pendoLocalStorage=function(){var e=_.noop,t={getItem:e,setItem:e,removeItem:e};try{var n=window.localStorage;return n?n:t}catch(i){return t}}(),q=function(){var e={},t=function(){var e=!1;return function(t){return function(){
e||(e=!0,t.apply(null,arguments))}}},n=function(e){var t=e&&e.then;return"object"==typeof e&&"function"==typeof t?function(){return t.apply(e,arguments)}:void 0},i=function(t,n){var i=e.defer(),o=function(e,t){setTimeout(function(){var n;try{n=e(t)}catch(o){return void i.reject(o)}n===i.promise?i.reject(new TypeError("Cannot resolve promise with itself")):i.resolve(n)},1)},a=function(e){t&&t.call?o(t,e):i.resolve(e)},s=function(e){n&&n.call?o(n,e):i.reject(e)};return{promise:i.promise,handle:function(e,t){e===r?a(t):s(t)}}},o=0,r=1,a=2;return e.defer=function(){var e,s=o,d=[],u=function(t,n){s=t,e=n,_.each(d,function(t){t.handle(s,e)}),d=null},l=function(e){u(r,e)},c=function(e){u(a,e)},p=function(t,n){var r=i(t,n);return s===o?d.push(r):r.handle(s,e),r.promise},f=function(e){var n=t();try{e(n(h),n(c))}catch(i){n(c)(i)}},h=function(e){var t;try{t=n(e)}catch(i){return void c(i)}t?f(t):l(e)},g=t();return{resolve:g(h),reject:g(c),promise:{then:p,fail:function(e){return p(null,e)}}}},e}();q.all=function(e){var t=q.defer(),n=_.isArray(e)?[]:{},i=_.size(e);if(!i)return q.resolve(e);var o=!1;return _.each(e,function(e,r){q.resolve(e).then(function(e){n[r]=e,0!==--i||o||t.resolve(n)},function(e){o||(o=!0,t.reject(e))})}),t.promise},q.reject=function(e){var t=q.defer();return t.reject(e),t.promise},q.resolve=function(e){var t=q.defer();return t.resolve(e),t.promise};var makeSafe=function(e,t){return t=!!t,function(){try{return e.apply(this,arguments)}catch(n){t||writeException(n)}}};pendo.events=function(){var e=Eventable.call({});return _.each(["ready","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){e[t]=function(n){return _.isFunction(n)?e.on(t,n):e.trigger.apply(e,[t].concat(_.toArray(arguments)))}}),e}();var Events=function(){function e(e,t){this.name=e,this.groups=t||[]}function t(e,t){var n={type:e};return doesExist(t)&&_.isObject(t)&&(n.data=t),n}function n(e){s[e]={on:_.partial(s.on,e),one:_.partial(s.one,e),off:_.partial(s.off,e)}}function i(e){var n=_.findWhere(a,{name:e}),i=_.toArray(arguments).slice(1);_.each(n.groups,function(t){var n=d[t](e,i);u.apply(s,[t].concat(n))});var o=t(e,i);return u.apply(s,[e].concat(o))}function o(e){var t=e.name;s[t]={on:_.partial(s.on,t),one:_.partial(s.one,t),off:_.partial(s.off,t),trigger:_.partial(i,t)}}var r={DEBUG:"debug",LIFECYCLE:"lifecycle"},a=[new e("guideListChanged",[r.DEBUG,r.LIFECYCLE]),new e("appUnloaded",[r.DEBUG,r.LIFECYCLE]),new e("resourceFetchFail",[r.DEBUG]),new e("contentVerificationFail",[r.DEBUG]),new e("contentValidationFail",[r.DEBUG]),new e("renderFail",[r.DEBUG]),new e("appUsage",[r.LIFECYCLE])],s=Eventable.call({}),d={debug:function(){return EventTracer.addTracerIds(t.apply(null,arguments))},lifecycle:t},u=s.trigger;return s.trigger=i,_.each(_.values(r),n),_.each(a,o),s}(),rtrim=/^\s+|\s+$/g,trim=String.prototype.trim;trim||(trim=function(){return this.replace(rtrim,"")});var whenLoadedCall=function(e){"complete"===document.readyState?e():attachEvent(window,"load",e)},escapeStringsInObject=function(e,t){if(t||(t=0),t>=200)return e;if(_.isArray(e))return _.map(e,function(e){return escapeStringsInObject(e,t+1)});if(!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e))return _.isString(e)?_.escape(e):e;var n={};return _.each(e,function(e,i){n[i]=escapeStringsInObject(e,t+1)}),n};pendo.compress=function(e){var t=pendo.toUTF8Array(JSON.stringify(e)),n=new Zlib.Deflate(t),i=n.compress(),o=pendo.fromByteArray(i);return o};var crc32=function(e){if("undefined"!=typeof e){_.isString(e)||(e=JSON.stringify(e));var t=pendo.toUTF8Array(e);return Zlib.CRC32.calc(t,0,t.length)}};pendo.squeezeAndCompress=function(e){var t=pendo.compress(e);return t},pendo.letters="abcdefghijklmnopqrstuvwxyz",pendo.charset=pendo.letters+pendo.letters.toUpperCase()+"1234567890",pendo.randomElement=function(e){return e[Math.floor(Math.random()*e.length)]},pendo.randomString=function(e){for(var t="",n=pendo.charset.split(""),i=0;e>i;i++)t+=pendo.randomElement(n);return t},pendo.toUTF8Array=function(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);128>i?t.push(i):2048>i?t.push(192|i>>6,128|63&i):55296>i||i>=57344?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 strContains=function(e,t,n){return pendo.doesExist(e)&&pendo.doesExist(t)?(n&&(e=e.toLowerCase(),t=t.toLowerCase()),e.indexOf(t)>-1):!1},EventTracer=function(){function e(e,t){t.clear(e)}function t(e,t){try{var i=t.getItem(e);return i||(i=n(16),t.setItem(e,i)),i}catch(o){log("Unable to access storage: "+o)}}var n=pendo.randomString,i=_.partial,o=_.compose,r=_.extend,a=_.omit,s="pendo_sessionId",d="pendo_frameId",u="pendo_tabId",l={data:{},getItem:function(e){return l.data[e]},setItem:function(e,t){l.data[e]=t},clear:function(e){l.data[e]=null,delete l.data[e]}},c=i(t,u,sessionStorage),p=i(t,d,l),f=i(t,s,l);return Events.on("guideListChanged",o(f,i(e,s,l))),{addTracerIds:function(e){return a(r(e,{tabId:c(),frameId:p(),sessionId:l.getItem(s)}),function(e){return e===undefined})}}}(),_hasClass=function(e,t){try{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");return n.test(_getClass(e))}catch(i){return!1}},_addClass=function(e,t){try{if(!_hasClass(e,t)){var n=trim.call(_getClass(e))+" "+t;_setClass(e,n)}}catch(i){}},_removeClass=function(e,t){try{if(_hasClass(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=_getClass(e).replace(n," ");_setClass(e,i)}}catch(o){}},_setClass=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},_getClass=function(e){try{var t=e.className;return t=_.isString(t)||!pendo.doesExist(t)?t:e.getAttribute("class"),t||""}catch(n){return""}},_getCss3Prop=function(e){function t(e){return e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()})}var n=t(e),i=n.substr(0,1);return n=i.toLowerCase()+n.substr(1)},cssNumber={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},setStyle=function(e,t){if(_.isString(t)){var n,i,o,r,a=t.split(";");for(t={},o=0;o<a.length;o++)n=a[o],r=n.indexOf(":"),i=n.substring(0,r),t[i]=n.substring(r+1)}_.each(t,function(t,n){if(n=_getCss3Prop(trim.call(n)),""!==n){!_.isNumber(t)||isNaN(t)||cssNumber[n]?_.isString(t)||(t=""+t):t=""+t+"px";try{e.style[n]=trim.call(t)}catch(i){log("failed to set style: "+n+" with value "+t)}}})},getScreenDimensions=function(){if(isBrowserInQuirksmode())return{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0};var e=window.innerWidth||document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}},_isInViewport=function(e){var t=getScreenDimensions(),n=documentScrollTop(),i=documentScrollLeft();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width},removeClass=function(e,t){if("string"==typeof e){var n=dom(e);_.map(n,function(e){_removeClass(e,t)})}else _removeClass(e,t)},addClass=function(e,t){if("string"==typeof e){var n=dom(e);_.map(n,function(e){_addClass(e,t)})}else _addClass(e,t)},removeNode=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},getElements=_.compose(function(e){return Array.prototype.slice.call(e)},function(e){try{return Sizzle(e)}catch(t){return writeMessage("error using sizzle: "+t),document.getElementsByTagName(e)}}),pickBestBODY=function(e,t){try{var n=t.children.length+t.offsetHeight+t.offsetWidth,i=e.children.length+e.offsetHeight+e.offsetWidth;return n-i}catch(o){return log("error interrogating body elements: "+o),writeMessage("error picking best body:"+o),0}},getBody=function(){try{var e=getElements("body");return e&&e.length>1?(e.sort(pickBestBODY),e[0]||document.body):document.body&&document.body.tagName&&"body"!==document.body.tagName.toLowerCase()?document.documentElement:document.body}catch(t){return writeMessage("Error getting body element: "+t),document.body}},checkIfElementNode=function(e){var t="undefined"!=typeof Node&&"undefined"!=typeof Node.ELEMENT_NODE,n=t?Node.ELEMENT_NODE:1;return e&&e.nodeType===n},getComputedStyle_safe=makeSafe(function(e){return checkIfElementNode(e)?window.getComputedStyle?getComputedStyle(e):e.currentStyle?e.currentStyle:void 0:void 0},!0),getClientRect=function(e){var t=getBody();if(null!==e){if(e===t||e===document||e===window){var n={left:window.pageXOffset||t.scrollLeft,top:window.pageYOffset||t.scrollTop,width:window.innerWidth,height:window.innerHeight};return n.right=n.left+n.width,n.bottom=n.top+n.height,n}var i=getOffsetPosition(e);return i.right=i.left+i.width,i.bottom=i.top+i.height,i}},intersectRect=function(e,t){return e.top>=t.bottom?!1:e.bottom<=t.top?!1:e.left>=t.right?!1:e.right<=t.left?!1:!0},getScrollParent=function(e,t){t=t||/(auto|scroll|hidden)/;var n,i,o,r=getBody();if(e===r||!isInDocument(e))return null;for(i=e;i&&i!=r;){if(n=getComputedStyle_safe(i),!n)return null;if(o=n.position,i!==e&&t.test(n.overflow+n.overflowY+n.overflowX))return i;if("absolute"===o||"fixed"===o&&hasParentWithCssTransform(i))i=i.offsetParent;else{if("fixed"===o)return null;i=i.parentNode}}return r},OverflowDirection={X:"x",Y:"y",BOTH:"both",NONE:"none"};_.extend(dom.prototype,{findOrCreate:function(e){return this.length>0?this:dom(e)},find:function(e){var t=dom();return t.context=this.context,this.each(function(){dom(e,this).each(function(){t[t.length++]=this})}),t},each:function(e){for(var t=this,n=0,i=t.length;i>n;++n)e.call(t[n],t[n],n);return t},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(){return setStyle(this,{"white-space":"pre-wrap"}),t?void(this.innerText=e):void(this.textContent=e)})},addClass:function(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){_addClass(t,e)})})},removeClass:function(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){_removeClass(t,e)})})},hasClass:function(e){e=e.split(/\s+/);var t=!0;return 0===this.length?!1:(this.each(function(n){_.each(e,function(e){t=t&&_hasClass(n,e)})}),t)},toggleClass:function(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){_hasClass(t,e)?_removeClass(t,e):_addClass(t,e)})})},css:function(e){return this.each(function(){setStyle(this,e)}),this},appendTo:function(e){return dom(e).append(this),this},append:function(e){var t=this;return dom(e).each(function(){t.length&&t[0].appendChild(this),isInDocument(this)&&_.each(Sizzle("script",this),evalScript)}),t},prependTo:function(e){return dom(e).prepend(this),this},prepend:function(e){var t=this;if(t.length){var n=t[0],i=n.childNodes[0];dom(e).each(function(){i?dom(this).insertBefore(i):dom(this).appendTo(n)})}return t},getParent:function(){var e=dom(this)[0];return e&&e.parentNode?dom(e.parentNode):void 0},insertBefore:function(e){var t=dom(e)[0];t&&t.parentNode&&(t.parentNode.insertBefore(this[0],t),isInDocument(document,this)&&_.each(Sizzle("script",this),evalScript))},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(e,t){return t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):this.length>0?this[0].getAttribute(e):void 0},on:function(e,t,n,i){_.isFunction(t)&&(i=n,n=t,t=null);var o=function(e){pendo.doesExist(t)?pendo.dom(getTarget(e)).closest(t).length>0&&n.apply(this,arguments):n.apply(this,arguments)};return e=e.split(" "),this.each(function(t){_.each(e,function(e){attachEvent(t,e,o,i)})}),this},closest:function(e){for(var t=this[0];t&&!Sizzle.matchesSelector(t,e);)if(t=t.parentNode,t===document)return dom();return dom(t)},eq:function(e){return dom(this[e])},height:function(e){return this.length?e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this):void 0},width:function(e){return this.length?e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this):void 0},focus:function(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}),_.extend(dom,{removeNode:removeNode,getClass:_getClass,hasClass:_hasClass,addClass:addClass,removeClass:removeClass,getBody:getBody,getComputedStyle:getComputedStyle_safe,getClientRect:getClientRect,intersectRect:intersectRect,getScrollParent:getScrollParent,isElementVisible:isElementVisible,scrollIntoView:scrollIntoView});var isValidId=function(e){return doesExist(e)&&""!==e&&e!==SUBACCOUNT_DELIMITER&&"boolean"!=typeof e&&"object"!=typeof e&&!isStringWhiteSpace(e)},isAnonymousVisitor=function(e){return e&&"number"!=typeof e?e.substring(0,pendo.TEMP_PREFIX.length)===pendo.TEMP_PREFIX:!1},shouldPersist=function(){var e=originalOptions||window.pendo_options||{};return!(getPendoConfigValue("disablePersistence")||e.disablePersistence)},removeIdentificationCookies=function(e){e=e||pendo.apiKey,document.cookie="_pendo_visitorId."+e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT",document.cookie="_pendo_accountId."+e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT",agentStorage.clear("visitorId"),agentStorage.clear("accountId")},DEFAULT_VISITOR_ID="VISITOR-UNIQUE-ID",isDefaultVisitor=function(e){return DEFAULT_VISITOR_ID===e},SUBACCOUNT_DELIMITER="::",isSubaccount=function(e){return new RegExp(SUBACCOUNT_DELIMITER).test(e)},shouldIdentityChange=function(e,t){return isAnonymousVisitor(e)?isValidId(t)?isAnonymousVisitor(t)?(pendo.log("visitor is anonymous: "+t),!1):isDefaultVisitor(t)?(pendo.log("visitor id is the default: "+t),!1):(pendo.log("Re-mapping identity from "+e+" to "+t),!0):(pendo.log("Not valid visitor id: "+t),!1):(pendo.log("Not change an old, non-anonymous visitor id: "+e),!1)};pendo.identify=makeSafe(function(e,t){var n="object"==typeof e,i=null,o={};if(o.old_visitor_id=pendo.get_visitor_id(),n&&(i=e,i.visitor=i.visitor||{},i.account=i.account||{},i.parentAccount=i.parentAccount||{},e=i.visitor.id,t=i.account.id,t&&!isSubaccount(t)&&i.parentAccount.id&&(t=""+i.parentAccount.id+SUBACCOUNT_DELIMITER+t),updateOptions(i)),!isValidId(e))return void pendo.log("Invalid visitor id "+e);if(pendo.set_visitor_id(e),isValidId(t)?pendo.set_account_id(t):(t=pendo.get_account_id(),isValidId(t)||(agentStorage.clear("accountId"),t=null)),shouldIdentityChange(o.old_visitor_id,e)){if(shouldInitializeFeedback(e)){var r=getPendoConfigValue("feedbackSettings"),a=JSON.parse(JSON.stringify(i));pendo.feedback.init(a,r)}o.visitor_id=e,o.account_id=t,collectEvent("identify",o),flushLater()}o.old_visitor_id!==e&&queueGuideReload()}),pendo.get_visitor_id=function(){var e,t=pendo.visitorId;return isValidId(t)||(shouldPersist()?(e=agentStorage.read("visitorId"),isValidId(e)||(e=pendo.generate_unique_id(pendo.TEMP_PREFIX),agentStorage.write("visitorId",e))):e=pendo.generate_unique_id(pendo.TEMP_PREFIX),pendo.visitorId=e),pendo.visitorId},pendo.set_visitor_id=function(e){pendo.visitorId=""+e,shouldPersist()&&agentStorage.write("visitorId",pendo.visitorId,pendo.DEFAULT_EXPIRE_LEN,!1,!0)},pendo.get_account_id=function(){if(!isValidId(pendo.accountId)&&shouldPersist()){var e=agentStorage.read("accountId");pendo.accountId=e}return pendo.accountId},pendo.set_account_id=function(e){pendo.accountId=""+e,isValidId(e)&&shouldPersist()&&agentStorage.write("accountId",pendo.accountId,null,!1,!0)};var inMemoryCookies={},cookieDomain,allowLocalStorageOnly=function(){return ConfigReader.get("localStorageOnly")},storageIsDisabled=function(){var e=getJwtInfoCopy();return ConfigReader.get("disableCookies")||!!e.jwt&&!!e.signingKeyName},getCookie=function(e){var t;t=storageIsDisabled()||allowLocalStorageOnly()?inMemoryCookies[e]:document.cookie;var n;return(n=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?decodeURIComponent(n[2]):null},setCookie=function(e,t,n,i){if(!isInPreviewMode()){var o=new Date;o.setTime(o.getTime()+n);var r=e+"="+encodeURIComponent(t)+(n?";expires="+o.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict";cookieDomain&&(r+=";domain="+cookieDomain),storageIsDisabled()||allowLocalStorageOnly()?inMemoryCookies[e]=r:document.cookie=r}},getPendoCookieKey=function(e){return"_pendo_"+e+"."+pendo.apiKey};pendo.get_pendo_cookie=function(e){return getCookie(getPendoCookieKey(e))},pendo.DEFAULT_EXPIRE_LEN=864e7,pendo.set_pendo_cookie=function(e,t,n,i){n=n||pendo.DEFAULT_EXPIRE_LEN,setCookie(getPendoCookieKey(e),t,n,i)};var agentStorage=function(){function e(){return storageIsDisabled()?!1:t()?!1:d("localStorage")}function t(){return!!cookieDomain}function n(e){e.cache&&(e.cache={})}function i(t,n){if(e()){var i=n?t:getPendoCookieKey(t),r=o(localStorage.getItem(i));return null===r&&s(t),r}return n?getCookie(t):pendo.get_pendo_cookie(t)}function o(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)}catch(n){return e}}function r(t,i,o,r,s){if(n(d),e())try{var u=r?t:getPendoCookieKey(t);return localStorage.setItem(u,a(i,o)),void n(d)}catch(l){log("Error trying to write to Localstorage: "+l)}return r?void setCookie(t,i,o,s):pendo.set_pendo_cookie(t,i,o,s)}function a(e,t){if(!t)return e;var n=(new Date).getTime()+t;return JSON.stringify({ttl:n,value:e})}function s(t,n){var i=n?t:getPendoCookieKey(t);return e()?localStorage.removeItem(i):void(document.cookie=i+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;")}var d=_.memoize(function(e){var t;try{t=window[e];var 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}});return{read:i,write:r,clear:s}}();!function(e,t){e.ajax=t()}(pendo,function(){function e(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}function t(t){var n=q.defer(),i=window.XMLHttpRequest||ActiveXObject,o=new i("MSXML2.XMLHTTP.3.0");return o.open(t.method||"GET",t.url,!t.sync),_.each(t.headers,function(e,t){o.setRequestHeader(t.toLowerCase(),e)}),o.onreadystatechange=function(){if(4===o.readyState){var t=e(o);o.status>=200&&o.status<300?n.resolve(t):n.reject(t)}},t.withCredentials&&(o.withCredentials=!0),t.data?o.send(t.data):o.send(),n.promise}function n(e,n){return t({method:"GET",url:e,headers:n})}function i(e,n,i){return t({method:"POST",url:e,data:n,headers:i})}function o(e,t,n){return n||(n={}),n["content-type"]="application/json",t=JSON.stringify(t),i(e,t,n)}function r(e,t){var n;if(_.isArray(t))n=t;else{if(!_.isObject(t))return e?e:"";n=_.keys(t)}var i=_.map(n,function(e){return _.isArray(t)?encodeURIComponent(e):encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&"),o=e.split("#",2),r=o[0],a=o[1];return[encodeURI(r),i?(_.contains(e,"?")?"&":"?")+i:"",a?"#"+a:""].join("")}return _.extend(t,{get:n,post:i,postJSON:o,urlFor:r})}),pendo.SIZE_UNIQUE_ID=11;var pendoCore=getPendoCore();pendo.generate_unique_id=function(e){return e+pendo.randomString(pendo.SIZE_UNIQUE_ID)},pendo.TEMP_PREFIX="_PENDO_T_",pendo.doesExist=doesExist;var pageLoad=makeSafe(function(e){if(e=e||pendo.url.get(),e&&e!==pageLoad.lastUrl){pageLoad.lastUrl=e;var t=-1;announceAgentLoaded(),debug("sending load event for url "+e),"undefined"!=typeof performance&&"undefined"!=typeof performance.timing&&(t=performance.timing.loadEventStart-performance.timing.fetchStart),collectEvent("load",{load_time:t},e),queueGuideReload(e),flushLater()}}),queueGuideReload=function(e){pendoCore&&(queueGuideReload.pending&&clearTimeout(queueGuideReload.pending),queueGuideReload.pending=setTimeout(function(){delete queueGuideReload.pending,reloadGuides(e)},0))},initializeCounter=0,originalOptions=null,isFeedbackOn=getPendoConfigValue("pendoFeedback"),isDisableFeedbackAutoInitOn=getPendoConfigValue("disableFeedbackAutoInit"),initialize=makeSafe(function(e){if("complete"!==document.readyState)return void enqueueCall("initialize",arguments);if(pendo.apiKey)return void(1===initializeCounter++&&log(["pendo.initialize only needs to be called once",isSfdcLightning()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join("")));if(EventErrorLogger.run(),e||(e={}),_.isEmpty(getJwtInfoCopy())){var t=JWT.getJwtOptions(e,"initialize");if(t)return setJwtInfo(_.pick(e,"jwt","signingKeyName")),initialize(t)}if(_.isString(e))return pendo.ajax.get(e).then(function(e){return initialize(PendoConfig=e.data)});originalOptions=e,setUpdatedOptions(e),pendo.HOST=HOST=getDataHost();var n=getOption("cookieDomain")||getPendoConfigValue("cookieDomain");if(n&&setCookieDomain(n,location.host),pendo.apiKey=getApiKey(e),pendo.additionalApiKeys=getAdditionalApiKeys(e),!pendo.apiKey&&pendo.additionalApiKeys&&pendo.additionalApiKeys.length&&(pendo.apiKey=pendo.additionalApiKeys[0]),!pendo.apiKey)return void debug("API key is not set, Pendo will not initialize.");pendo.apiKey=""+pendo.apiKey;for(var i=0;i<pendo.additionalApiKeys.length;i++)pendo.additionalApiKeys[i]=""+pendo.additionalApiKeys[i];if(TextCapture.initialize(),e.logStackTraces&&(pendo.logStackTraces=e.logStackTraces),pendoCore&&(pendo.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,registerEventHandlers(e),listenToMaster(),initGuides(),wirePage(),startDebuggingModuleIfEnabled(),launchDesignerOrPreview(e)),shouldPersist()||removeIdentificationCookies(),e.usePendoAgentAPI!==!0&&pendo.updateOptions(e),e.visitorId&&e.visitorId!=DEFAULT_VISITOR_ID)pendo.identify(e.visitorId);else if(e.visitor&&e.visitor.id&&e.visitor.id!=DEFAULT_VISITOR_ID){var o=null;e.account&&e.account.id&&(o=e.account.id),pendo.identify(e.visitor.id,o)}pendo.url.watch(pendo.pageLoad),pageLoad(pendo.url.get()),localStorageNavigation(e),pendoCore&&pendo.events.ready();var r=pendo.get_visitor_id();if(shouldInitializeFeedback(r)){var a=getPendoConfigValue("feedbackSettings");pendo.feedback.init(getOptionsCopy(),a)}initializeCounter++}),isReady=function(){return pendo.doesExist(pendo.apiKey)},getOption=function(e,t){return get(originalOptions,e,t)},updatedOptions=null,setUpdatedOptions=function(e){updatedOptions=JSON.parse(JSON.stringify(e||{}))},getOptionsCopy=function(){return JSON.parse(JSON.stringify(updatedOptions||originalOptions||{}))},jwtInfo=null,setJwtInfo=function(e){jwtInfo=JSON.parse(JSON.stringify(e||{}))},getJwtInfoCopy=function(){return null!==jwtInfo?jwtInfo:{}};pendo.validateInstall=function(){if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";console.group("Pendo Install Validation"),pendo.apiKey||console.error("No Pendo API key configured.");var e=pendo.get_visitor_id();isAnonymousVisitor(e)&&console.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)'),isDefaultVisitor(e)&&console.error("The current visitor ID matches the example visitor ID from the Pendo installation instructions.");var t=pendo.get_account_id();t||console.warn("The current visitor is not associated with an account. Is this expected?"),"ACCOUNT-UNIQUE-ID"===t&&console.error("The current account ID matches the example account ID from the Pendo installation instructions."),isFeedbackOn&&Feedback.isUnsupportedIE()&&console.warn("The current version of IE is not supported by Pendo Feedback");var n=getMetadata();_.each(["visitor","account","parentAccount"],function(e){var t=n&&n[e],i=_.chain(t).keys().value();i.length>0?(console.group(e+" metadata (does this look right?):"),_.each(t,function(e,t){_.isObject(e)&&!_.isArray(e)?console.warn(t+" is an object and will be ignored.",e):_.isArray(e)&&_.any(e,_.isObject)?console.warn(t+" contains object values. The objects will be ignored.",e):console.log(t+":",e)}),console.groupEnd()):"parentAccount"!==e&&console.warn("No "+e+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html")}),console.groupEnd()},pendo.validateNativeMethods=function(){var e,t=[{nativeType:Object.prototype,displayName:"Object "},{nativeType:Number.prototype,displayName:"Number "},{nativeType:String.prototype,displayName:"String "},{nativeType:Function.prototype,displayName:"Function"},{nativeType:Boolean.prototype,displayName:"Boolean "},{nativeType:Array.prototype,displayName:"Array "},{nativeType:Date.prototype,displayName:"Date "},{nativeType:RegExp.prototype,displayName:"RegExp "},{nativeType:JSON,displayName:"JSON ",propsToCheck:["parse","stringify"]},{nativeType:Math,displayName:"Math "},{nativeType:Promise.prototype,displayName:"Promise "},{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"]}];return _.each(t,function(t){var n=t.nativeType,i=[],o=t.propsToCheck||Object.getOwnPropertyNames(n);_.each(o,function(e){try{if(e&&n[e]&&"function"==typeof n[e]){var t=n[e].toString().includes("[native code]");t||i.push(e)}}catch(o){}}),i.length&&(t.nonNativeImplementations=i,e=!0)}),console.group("Native javascript method check:"),e?(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"),_.each(t,function(e){if(e.nonNativeImplementations){var t=e.displayName;console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", "))}}),void console.groupEnd()):(console.log("Environment uses native javascript implementations"),console.groupEnd())},pendo.validateEnvironment=function(){pendo.validateInstall(),pendo.validateNativeMethods(),ConfigReader.validate(console)};var HOST=getDataHost(),buildBaseDataUrl=function(e,t,n){getPendoConfigValue("blockLogRemoteAddress")&&(n.log=0);var i=HOST+"/data/"+e+"/"+t,o=_.map(n,function(e,t){return t+"="+e});return o.length>0&&(i+="?"+o.join("&")),i},writeGuideEvent=function(e){var t=(new Date).getTime(),n=pendo.squeezeAndCompress([e]);writeBeacon("guide",{ct:t,jzb:n,v:VERSION})},writeMessage=function(e){e+="v"+VERSION,writeBeacon("log",{msg:e,version:VERSION})},writeException=function(e,t){if(e&&(!e||!e.logged)){t||(t="pendo.io unhandled exception");try{e.logged=!0}catch(n){}var i="["+t+": "+e.message+"]";log(i);var o=window.pendo_options||{};e.stack&&pendo.logStackTraces!==!1&&o.logStackTraces!==!1?writeErrorPOST(i+"\n"+e.stack):writeMessage(i)}};fetchKeepalive.supported=function(){return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")},sendBeacon.supported=function(){return"undefined"!=typeof Blob&&_.isFunction(navigator.sendBeacon)};var locked=!1,lockEvents=function(){return locked=!0,"Pendo Agent locked. No more events will be written."},unlockEvents=function(){return buffersClearAll(),locked=!1,"Pendo Agent unlocked. Events will be written."},isUnlocked=function(){return!locked&&pendoCore},eventCache=[],trackEventCache=[],SEND_INTERVAL=12e4,MAX_NUM_EVENTS=16,URL_MAX_LENGTH=2e3,ENCODED_EVENT_MAX_LENGTH=1900,ENCODED_EVENT_MAX_POST_LENGTH=65536,limitURLSize=function(e,t){return t=t||getURL(),t.substring(0,e)},isURLValid=function(e){return!(!e||""===e)},getURL=function(){return pendo.url.get()};pendo.buffers={flush:_.noop,flushBy:_.noop,flushEvents:flushNow,flushTrackEvents:flushNow,flushSilos:flushNow,flushTrackEventSilos:flushNow,flushBeacons:flushNow,flushNow:flushNow,flushLater:flushLater,flushEvery:flushEvery,flushStop:flushStop,beacons:[],silos:[],trackEventSilos:[]};var defaultTrackName="_PENDO_UNNAMED_",SILO_AVG_COMPRESSION_RATIO=5,SILO_MAX_BYTES=ENCODED_EVENT_MAX_LENGTH*SILO_AVG_COMPRESSION_RATIO,events=pendo.buffers.events=eventCache,trackEvents=pendo.buffers.trackEvents=trackEventCache,eventQueue=createEventQueue({cache:events,silos:pendo.buffers.silos,apiKey:getAllApiKeys,beacon:"ptm",allowPost:!0}),trackEventQueue=createEventQueue({cache:trackEvents,silos:pendo.buffers.trackEventSilos,apiKey:getAllApiKeys,beacon:"ptm",allowPost:!0,params:{type:"track"}}),WHITELIST_FREE_NPS=["load","meta","identify"],GuideActivity=function(){function e(e){return e&&"click"===e.type}function t(e){return"pendo-base"==e.id?!0:s(e.parentElem)?t(e.parentElem):!1}function n(e){return d(e.tag)&&"button"==e.tag.toLowerCase()}function i(i,o){return s(i)&&e(o)&&t(i)&&n(i)&&(/^pendo-button/.test(i.id)||/^pendo-close-guide/.test(i.id))}function o(e){var t=getActiveGuide();return{ui_element_id:e.id,ui_element_type:e.tag,guide_id:t.guide.id,guide_step_id:t.step.id,duration:a(),language:t.guide.language}}var r="GuideActivity",a=function(){return(new Date).getTime()-seenTime},s=_.isObject,d=_.isString;return{type:r,handler:function(e){var t=e.data[0],n=e.data[1];if(i(t,n)){var a=o(t);collectEvent(r,a)}}}}();Events.appUsage.on(GuideActivity.handler);var evt_map={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"]}},handleEmbeddedData=function(e){return e&&0===e.indexOf("data:")?(debug("Embedded data provided in URI."),e.substring(0,e.indexOf(","))):e+""},extractAttribute=function(e,t,n){if(!e||!e.nodeName)return null;var i=e.nodeName.toLowerCase();if("img"==i&&"src"==t||"a"==i&&"href"==t){var o=e.getAttribute(t);return sanitizeUrl(handleEmbeddedData(o))}var r;return r=e.getAttribute?e.getAttribute(t):e[t],n&&typeof r!==n?null:r?r:null},asString=function(e){return pendo.doesExist(e)?""+e:""},nodeTypeEnum={TEXT_ELEMENT:3,ELEMENT_NODE:1,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11,CDATA_SECTION_NODE:4},extractElementContext=function(e){var t={};if(!e)return t;t.tag=shadowAPI.isElementShadowRoot(e)?"#shadow-root":e.nodeName||"",t.id=asString(e.id),t.cls=asString(dom.getClass(e)),t.title=extractAttribute(e,"title","string");var n=(t.tag||"").toLowerCase();"input"===n&&(n+='[type="'+e.type+'"]'),t.attrs={},evt_map[n]&&_.each(evt_map[n].attr,function(n){var i=extractAttribute(e,n);pendo.doesExist(i)&&(t.attrs[n]=i)});var i=getHtmlAttributeTester(getPendoConfigValue("htmlAttributes"));_.isFunction(i.test)&&_.each(e.attributes,function(n){var o=n.nodeName;i.test(o)&&(t.attrs[o.toLowerCase()]=extractAttribute(e,o))});var o=getHtmlAttributeTester(getPendoConfigValue("htmlAttributeBlacklist"));if(_.isFunction(o.test)&&(_.each(t.attrs,function(e,n){o.test(n)&&delete t.attrs[n]}),o.test("title")&&delete t.title),e.parentNode&&e.parentNode.childNodes){var r=_.chain(e.parentNode.childNodes);t.myIndex=r.indexOf(e).value(),t.childIndex=r.filter(function(e){return e.nodeType==nodeTypeEnum.ELEMENT_NODE}).indexOf(e).value()}return t},isNodeTheRoot=function(e){return"BODY"===e.nodeName||null===e.parentNode&&!shadowAPI.isElementShadowRoot(e)},extractElementTreeContext=function(e){var t,n={},i=n,o=e;if(!e)return n;do{t=o;var r=extractElementContext(t);i.parentElem=r,i=r,o=shadowAPI.getParent(t)}while(o&&!isNodeTheRoot(t));if(TextCapture.isEnabled()||!TextCapture.isEnabled()&&TextCapture.hasWhitelist()){
var a=getText(e,128);TextCapture.isTextCapturable(a)&&(n.parentElem.txt=a)}return!TextCapture.isEnabled()&&n.parentElem.value&&(n.parentElem.value=null),n.parentElem},buttonNumMap=["","left","right","middle"],buttonLookup=function(e,t){return buttonNumMap[t]},retTrue=function(){return!0},getButtonType=function(e){return e.which||e.button},identity=function(e){return e},propGet=function(e,t){return e[t]},COMMON_CLICK_ATTRS=[["button",getButtonType,retTrue,buttonLookup],["altKey",propGet,identity,identity],["ctrlKey",propGet,identity,identity],["metaKey",propGet,identity,identity],["shiftKey",propGet,identity,identity]],determineClickFlags=function(e,t){for(var n=[],i=0;i<COMMON_CLICK_ATTRS.length;i++){var o=COMMON_CLICK_ATTRS[i],r=o[0],a=o[1],s=o[2],d=o[3],u=a(e,r);s(u)&&n.push(d(r,u))}return t.flags=n,t},evtHandlerExtFn={click:determineClickFlags},getTarget=function(e){var t=shadowAPI.getComposedPath(e);return t&&t.length>0?t[0]:e.target||e.srcElement},isElemBlacklisted=function(e){return!e.tagName||"textarea"==e.tagName.toLowerCase()},getValidTarget=function(e){return e.nodeType===nodeTypeEnum.TEXT_ELEMENT?e.parentNode:e.nodeType===nodeTypeEnum.CDATA_SECTION_NODE?null:e.correspondingUseElement?e.correspondingUseElement:e},handle_event=function(e){try{var t=getTarget(e),n=e.type,i={},o=evtHandlerExtFn[n];if(o&&(i=o(e,i)),t=getValidTarget(t),!t)return void log("Invalid HTML target","event","dom","processing");var r=extractElementTreeContext(t);if(_.extend(r,i),pageLoad(),"click"===n){var a=collectEventProperties(t);collectEvent(n,{target:r},undefined,undefined,a)}else collectEvent(n,{target:r});Events.trigger("appUsage",r,e)}catch(s){writeException(s,"pendo.io while handling event")}},collectEventProperties=makeSafe(collectEventPropertiesForTarget),listenForEvents=function(e){_.each(e,function(e){attachEvent(document,e,handle_event,!0)})},DEBOUNCE_INTERVAL_CHANGE=5e3,handle_change_event=_.debounce(handle_event,DEBOUNCE_INTERVAL_CHANGE,!0),wirePage=function(e){e=e||["click","focus","submit","change"],_.contains(e,"change")&&(e=_.reject(e,function(e){return"change"===e}),attachEvent(document,"change",handle_change_event,!0)),listenForEvents(e),getPendoConfigValue("xhrTimings")&&openXhrIntercept(),attachEvent(window,"unload",function(){flushNow(!0,{guaranteed:!0}),Events.appUnloaded.trigger()}),wireTurbolinks()},wireTurbolinks=function(){if("undefined"!=typeof Turbolinks){var e=Turbolinks&&Turbolinks.EVENTS&&Turbolinks.EVENTS.LOAD;e&&attachEvent(document,e,function(){pendo.url.get()===reloadGuides.lastUrl&&(delete reloadGuides.lastUrl,queueGuideReload())})}},attachEvent=function(e,t,n,i){e&&t&&n&&(e!==window||"error"!==t)&&(i||(i=!1),e.addEventListener?e.addEventListener(t,n,i):e.attachEvent("on"+t,n))},detachEvent=function(e,t,n,i){e&&t&&n&&(i||(i=!1),e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent("on"+t,n))},stopEvent=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},getDefaultLogOverride=function(e){var t=agentStorage.read("log-enabled",!0);return null!==t?"true"==t:!_.contains(["prod","prod-eu","rc"],e)},getDefaultActiveContexts=function(){var e=agentStorage.read("active-contexts",!0);return e?e.split(","):[]},enableLogging=function(){return canWeLog()?logOverride?"logging already enabled":(agentStorage.write("log-enabled","true",null,!0),logOverride=!0,"logging enabled"):"logging unavailable"},disableLogging=function(){return logOverride?(agentStorage.write("log-enabled","false",null,!0),logOverride=!1,"logging disabled"):"logging already disabled"},activeContexts=getDefaultActiveContexts(),logOverride=getDefaultLogOverride(ENV),createContexts=function(e,t){return _.compact([].concat(e,t))},canWeLog=function(){return"undefined"!=typeof console&&console.log!==undefined},shouldWeLog=function(e){return e=createContexts(e),activeContexts.length>0?_.intersection(activeContexts,e).length>0:!!logOverride||!!pendo.isDebuggingEnabled(!0)},log=function(e,t){t=createContexts(t,_.tail(arguments,2)),canWeLog()&&(shouldWeLog(t)&&doConsoleLog(e),addToLogHistory(e,t))},MAX_HISTORY=100,logHistory=[],addToLogHistory=function(e,t){_.contains(t,"debug")||(logHistory.length==MAX_HISTORY&&logHistory.shift(),logHistory.push([e,t]))},showLogHistory=function(e){e=createContexts(e),_.each(_.map(_.filter(logHistory,function(t){return 0===e.length||_.intersection(e,t[1]).length>0}),function(e){return e[0]}),function(e){doConsoleLog(e,"[Pendo-History] ")})},getLoggedContexts=function(){return _.union.apply(_,_.map(logHistory,function(e){return e[1]}))},getActiveContexts=function(){return activeContexts},setActiveContexts=function(e){activeContexts=createContexts(e),agentStorage.write("active-contexts",activeContexts.join(","),null,!0)},doConsoleLog=function(e,t){if(canWeLog())if(t=t||"[Agent] ",e&&e.length){var n=e.length>1e3?e.length-1e3:0;n&&(t+="..."),console.log(t+e.substring(n))}else console.log(t+e)};log.enableLogging=enableLogging,log.disableLogging=disableLogging,log.getActiveContexts=getActiveContexts,log.setActiveContexts=setActiveContexts,log.showLogHistory=showLogHistory,log.getLoggedContexts=getLoggedContexts;var isOldIE=function(e,t){return e=e||10,t=isNaN(trident)?!1:t?t>trident:!0,t&&e>msie},msie,trident,lowercase=function(e){return isString(e)?e.toLowerCase():e},determineMSIE=function(e){var t=pint((/msie (\d+)/.exec(lowercase(e))||[])[1]);return isNaN(t)&&(t=pint((/trident\/.*; rv:(\d+)/.exec(lowercase(e))||[])[1])),t};msie=determineMSIE(navigator.userAgent);var determineTrident=function(e,t){var n=pint((/trident\/(\d+)/.exec(lowercase(e))||[])[1]);return isNaN(n)&&7==t&&(n=3),n};trident=determineTrident(navigator.userAgent,msie);var eventSupport={},android=pint((/android (\d+)/.exec(lowercase((window.navigator||{}).userAgent))||[])[1]),boxee=/Boxee/i.test((window.navigator||{}).userAgent),pdocument=window.document||{},documentMode=pdocument.documentMode,vendorPrefix,vendorRegex=/^(Moz|webkit|O|ms)(?=[A-Z])/,bodyStyle=pdocument.body&&pdocument.body.style,transitions=!1,animations=!1,match;if(bodyStyle){for(var prop in bodyStyle)if(match=vendorRegex.exec(prop)){vendorPrefix=match[0],vendorPrefix=vendorPrefix.substr(0,1).toUpperCase()+vendorPrefix.substr(1);break}vendorPrefix||(vendorPrefix="WebkitOpacity"in bodyStyle&&"webkit"),transitions=!!("transition"in bodyStyle||vendorPrefix+"Transition"in bodyStyle),animations=!!("animation"in bodyStyle||vendorPrefix+"Animation"in bodyStyle),!android||transitions&&animations||(transitions=isString(pdocument.body.style.webkitTransition),animations=isString(pdocument.body.style.webkitAnimation))}pendo._.extend(pendo,{sniffer:{history:!(!window.history||!window.history.pushState||4>android||boxee),hashchange:"onhashchange"in window&&(!documentMode||documentMode>7),hasEvent:function(e){if("input"==e&&9==msie)return!1;if(isUndefined(eventSupport[e])){var t=pdocument.createElement("div");eventSupport[e]="on"+e in t}return eventSupport[e]},vendorPrefix:vendorPrefix,transitions:transitions,animations:animations,android:android,msie:msie,msieDocumentMode:documentMode}});var pSetTimeout=window.setTimeout,decodeURIComponent=_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity,encodeURIComponent=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity,isElectron=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},getWindowLocation=function(){var e=window.location;return shouldIgnoreHashRouting()&&(e={href:getHrefWithoutHash(e.href),origin:e.origin}),e},electronResourcesPath=function(){return window.process.resourcesPath||""},electronUserDirectory=function(){return window.process.env.PWD||""},electronUserHomeDirectory=function(){return window.process.env.HOME||""},electronAppName=function(){return window.process.env.npm_package_name||""},getHref=function(){var e=pendo.url.getWindowLocation();if(pendo.url.isElectron()){var t=pendo.url.electronResourcesPath(),n=pendo.url.electronUserDirectory(),i=pendo.url.electronAppName(),o="https://"+e.href.replace(t,i);return o=o.replace(e.origin+n,i),o=o.replace(pendo.url.electronUserHomeDirectory(),""),o=o.replace("file:///","")}return annotateUrl(e.href)},getHrefWithoutHash=function(e){return e.match(/(.+?)(?:#|$)/)[1]},shouldIgnoreHashRouting=function(){var e=originalOptions||window.pendo_options||{};return(getPendoConfigValue("ignoreHashRouting")||e.ignoreHashRouting)===!0},pollFns=[],pollTimeout,addPollFn=function(e){return isUndefined(pollTimeout)&&startPoller(100,pSetTimeout),pollFns.push(e),e},url=function(e){var t;try{t=getHref()}catch(n){}return t},urlChangeListeners=[],urlChangeInit=!1,onUrlChange=function(e){if(log("Initializing Pendo URL Watcher"),!urlChangeInit){var t=pendo.sniffer;if(t.history){var n=window.history;_.each(["pushState","replaceState"],function(e){n[e]=_.wrap(n[e],function(e){var t=e.apply(n,_.toArray(arguments).slice(1));return getZoneSafeMethod("setTimeout")(fireUrlChange,0),t})}),attachEvent(window,"popstate",fireUrlChange)}t.hashchange&&attachEvent(window,"hashchange",fireUrlChange),t.history&&t.hashchange||addPollFn(fireUrlChange),urlChangeInit=!0}return urlChangeListeners.push(e),e},clearList=function(){urlChangeListeners=[]},getProtocol=function(){return document&&document.location&&"http:"===document.location.protocol?"http:":"https:"},URL_WHITELIST_KEY="queryStringWhitelist",externalizeURL=function(e,t,n){e=e||url(),t=t||parseQueryString(e).substring(1);var i,o;i=e.indexOf(t),o=i+t.length;var r=e.substring(0,i),a=e.substring(o),s=n||getOption(URL_WHITELIST_KEY);_.isFunction(s)&&(s=s()),_.isArray(s)&&(t=whitelistQueryStringParams(t,s)),t.length||"?"!==r.charAt(r.length-1)||(r=r.substr(0,r.length-1));var d=r+t+a;return d=sanitizeUrl(d)},whitelistQueryStringParams=function(e,t){var n=queryStringToObject(e);return n=_.pick(n,t),objectToQueryString(n)},queryStringToObject=function(e){var t=e.split("&");return _.reduce(t,function(e,t){return t=t.split("="),e[t[0]]=t[1],e},{})},objectToQueryString=function(e){return _.reduce(e,function(e,t,n){return e?e+"&"+n+"="+t:e+n+"="+t},"")};pendo._.extend(pendo,{url:{watch:onUrlChange,get:url,externalizeURL:externalizeURL,getWindowLocation:getWindowLocation,clear:clearList,isElectron:isElectron,electronUserDirectory:electronUserDirectory,electronAppName:electronAppName,electronUserHomeDirectory:electronUserHomeDirectory,electronResourcesPath:electronResourcesPath}});var lastBrowserUrl=getHref(),lastSavedOptions=null,metadataHash,getLocale=function(){var e=window.navigator;return((pendo._.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},OPTIONS_HASH_KEY_NAME="meta",haveOptionsChanged=function(e){"object"==typeof e&&(e=crc32(e)),"undefined"!=typeof e&&e.toString&&(e=e.toString());var t=_.isNumber(metadataHash)?metadataHash:agentStorage.read(OPTIONS_HASH_KEY_NAME);return""+t!==e?!0:!1},isScalar=function(e){return _.any(["Number","Boolean","Date","String","Null","NaN","Undefined"],function(t){return _["is"+t](e)})},cleanupMetadata=function(e){var t={};return _.each(e,function(e,n){isScalar(e)?t[n]=e:_.isArray(e)&&(t[n]=_.filter(e,isScalar))}),t},prepareOptions=function(e){return _.isObject(e)||(e={}),_.isObject(e.visitor)||(e.visitor={}),_.isObject(e.account)||(e.account={}),_.isObject(e.parentAccount)||(e.parentAccount={}),e.visitor.id===DEFAULT_VISITOR_ID&&(pendo.log("Missing visitor id."),delete e.visitor.id),isValidId(e.account.id)&&isValidId(e.parentAccount.id)&&(isSubaccount(e.account.id)?e.parentAccount.id=e.account.id.split(SUBACCOUNT_DELIMITER)[0]:e.account.id=""+e.parentAccount.id+SUBACCOUNT_DELIMITER+e.account.id),isValidId(e.account.id)&&(pendo.set_account_id(e.account.id),e.account.id=pendo.get_account_id()),isValidId(e.visitor.id)&&pendo.identify(e.visitor.id,e.account.id),e.visitor.id=pendo.get_visitor_id(),e.visitor.language=getLocale(),{visitor:e.visitor,account:cleanupMetadata(e.account),parentAccount:e.parentAccount,date:getDateForOptions(),version:pendo.VERSION}},getDateForOptions=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1,i=e.getFullYear();return 10>t&&(t="0"+t),10>n&&(n="0"+n),e=t+"/"+n+"/"+i},validateOptions=function(e){return e&&pendo._.keys(e).length>0},updateOptions=makeSafe(function(e){if(validateOptions(e)){if(e.jwt&&e.signingKeyName){var t=JWT.getJwtOptions(e,"updateOptions");t&&(setJwtInfo(_.pick(e,"jwt","signingKeyName")),e=t)}e=prepareOptions(e),setUpdatedOptions(e),getMetadata=function(){return e},pendo.getSerializedMetadata=function(){return JSON.parse(JSON.stringify(e))};var n=crc32(e),i=isMetadataBlocked();haveOptionsChanged(n)&&!i&&(agentStorage.write(OPTIONS_HASH_KEY_NAME,n),lastSavedOptions=e,metadataHash=n,collectEvent("meta",e),flushLater(),queueGuideReload())}}),isMetadataBlocked=function(){var e=getPendoConfigValue("blockAgentMetadata");return e!==undefined?e:!1},getMetadata=function(){};pendo.loadResource=function(e,t){try{var n,i="text/css",o="text/javascript";_.isString(e)&&(e={url:e}),e.type=e.type||/\.css/.test(e.url)?i:o;var r=null,a=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];if(e.type===i){var s=document.createElement("link");s.type=i,s.rel="stylesheet",s.href=e.url,r=s}else{if(isSfdcLightning())return n=document.createElement("script"),n.addEventListener("load",function(){t(),removeNode(n)}),n.type=o,n.src=e.url,document.body.appendChild(n),{};n=document.createElement("script"),n.type=o,n.async=!0,n.src=e.url,r=n}return a.appendChild(r),pendo.loadWatcher(r,e.url,t),r}catch(d){return{}}},pendo.loadWatcher=function(e,t,n){var i=!1;if(pendo.doesExist(n)&&(e.onload=function(){i!==!0&&(i=!0,n(null,t))},e.onerror=function(){pendo.tellMaster({status:"error",msg:"Failed to load script",scriptURL:t})},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())){var o=500;setTimeout(function(){if(!i){var e=new Image;e.onload=e.onerror=function(){i!==!0&&(i=!0,n(null,t))},e.src=t}},o),setTimeout(function(){i||writeMessage("Failed to load "+t+" within 10 seconds")},1e4)}},pendo.messageLogger=function(e){var t=JSON.parse(e.data),n=e.origin;debug(pendo.app_name+": Message: "+JSON.stringify(t)+" from "+n),pendo.tellMaster(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},pendo.messageReceiver=function(e){try{pendo.messageDispatcher(pendo.messageOriginTester(pendo.messageValidator(e)))}catch(t){if(!/"type":"frame:/.test(e.data)){var n="Error receiving msg: "+JSON.stringify(e.data)+", Exception: "+t;pendo.log(n)}}},pendo.messageValidator=function(e){var t=e.data,n=e.origin,i=e.source;if(t=JSON.parse(t),!t.type||"string"!=typeof t.type)throw new Error("Invalid Message: Missing 'type' in data format");return{data:t,origin:n,source:i}};var trustedOrigin=getTrustedOriginPattern([HOST,"https://demo.pendo-dev.com","https://app.pendo.io","https?://([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|"+ENV+").appspot.com"]);pendo.messageOriginTester=function(e){if(trustedOrigin.test(e.origin))return e;throw new Error("Received message from untrusted origin "+e.origin)};var designerWindow;pendo.onConnectMessage=function(e,t){isUnlocked()&&(stopGuides(),lockEvents(),pendo.designerv2.hostConfig||FrameController.stop(),designerWindow=t.source,window.onbeforeunload=function(){unlockEvents(),removeDesignerFunctionality(),pendo.tellMaster(t.source,{type:"unload"},"*")},_.isFunction(detachGuideEventHandlers)&&detachGuideEventHandlers(),addDesignerFunctionality(),pendo.tellMaster(t.source,{status:"success",type:"connect"},"*"),pendo.findModuleByName("selection.js")&&(pendo.log("Designer Modules already loaded."),pendo.tellMaster({type:"ready"})))};var onModuleMessage=function(e){pendo.moduleLoader(e.moduleURL)},onEnableDebug=function(e){addSafeWindowMessageListener(pendo.messageLogger)};pendo.MESSAGE_TYPES={connect:pendo.onConnectMessage,disconnect:function(e){},module:onModuleMessage,debug:onEnableDebug};var registerMessageHandler=function(e,t){pendo.tellMaster({type:"msg-type-available","msg-type":e}),pendo.MESSAGE_TYPES[e]=t};pendo.messageDispatcher=function(e){var t=e.data;pendo.doesExist(pendo.MESSAGE_TYPES[t.type])&&pendo.MESSAGE_TYPES[t.type](t,e)},pendo.moduleRegistry={},pendo.addModule=function(e){if(pendo.moduleRegistry[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},pendo.hasModule=function(e){return pendo.doesExist(pendo.moduleRegistry[e])},pendo.findModuleByName=function(e){if(!pendo.moduleRegistry)return null;var t=function(e,t){return e.indexOf(t)>=0};for(var n in pendo.moduleRegistry)if(t(n,e))return n;return null},pendo.modulesWaiting=[],pendo.loadModules=function(){if(!(pendo.modulesWaiting.length<1)){var e=pendo.modulesWaiting.shift();pendo.hasModule(e)||pendo.loadResource(e,function(){pendo.addModule(e),pendo.loadModules()})}},pendo.moduleLoader=function(e){pendo.modulesWaiting.push(e),pendo.modulesWaiting.length>1||pendo.loadModules()};var tellMaster=function(e,t,n){var i=_.uniqueId("pendo-");try{if("undefined"==typeof t&&"undefined"==typeof n&&(t=e,e=designerWindow||getDesignerWindow(),n="*"),t.guid=i,e&&_.isFunction(e.postMessage)){var o=JSON.stringify(t);e.postMessage(o,n)}}catch(r){var a=r&&r.message||"";log("Failed to postMessage: "+a)}return i},detectMaster=function(){return window!=window.top},getDesignerWindow=function(){var e=new RegExp("^"+HOST.replace(/^https?:/,"https?:"));return e.test(location.href)?window.parent:window.top},announceAgentLoaded=function(){if(detectMaster()){var e=getDesignerWindow();pendo.tellMaster(e,{type:"load",url:location.toString()},"*")}},listenToMaster=function(){pendo.app_name=document.title,detectMaster()&&(pendo.log(pendo.app_name+": listening to messages"),pendo.doesExist(window.addEventListener)&&window.addEventListener("message",pendo.messageReceiver,!1)),window.opener&&pendo.doesExist(window.addEventListener)&&(addSafeWindowMessageListener(launchPreviewListener),addSafeWindowMessageListener(launchDesignerListener),window.opener.postMessage({type:"pendo::ready"},"*"))},addSafeWindowMessageListener=function(e){pendo.doesExist(window.addEventListener)&&_.isFunction(window.addEventListener)&&window.addEventListener("message",messageOriginTester2(e),!1)},isBrowserInQuirksmode=function(){return isNaN(msie)?!1:11==msie?!1:"CSS1Compat"!==document.compatMode},buildArrowDimensionsQM=function(e,t){var n=e.height,i=e.width;if("top"==e.arrowPosition||"bottom"==e.arrowPosition){var o=10,r=0;return"top"==e.arrowPosition?(e.top=t.top+t.height,r=-1,e.arrow.top=3,9>=msie&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(n+pendo.TOOLTIP_ARROW_SIZE),e.arrow.top=n-pendo.TOOLTIP_ARROW_SIZE,10==msie?e.arrow.top--:9>=msie&&(e.arrow.top+=4),r=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(o+2*pendo.TOOLTIP_ARROW_SIZE),e.arrow.left=o+pendo.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-i+t.width/2+(o+2*pendo.TOOLTIP_ARROW_SIZE),e.arrow.left=i-3*pendo.TOOLTIP_ARROW_SIZE-o):(e.left=t.left+t.width/2-i/2,e.arrow.left=i/2-pendo.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+r,e.arrow.border.left=e.arrow.left,e}return"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-i-pendo.TOOLTIP_ARROW_SIZE),e.arrow.left=i-pendo.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-n/2,e.arrow.top=n/2-pendo.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top,e},xhrEventCache=[],xhrEventQueue=createXhrEventQueue({cache:xhrEventCache,apiKey:function(){return pendo.apiKey},beacon:"xhr",shorten:{fields:["request_url","browser_url"],siloMaxLength:ENCODED_EVENT_MAX_LENGTH}}),openXhrIntercept=function(){attachEvent(window,"unload",function(){flushXhrNow({guaranteed:!0})}),function(e){XMLHttpRequest.prototype.open=function(t,n,i,o,r){var a={};this.addEventListener("readystatechange",function(){var e=arguments[0].target||arguments[0].srcElement||arguments[0].currentTarget;modifyXhrData(a,this.readyState,n,t,e)},!1),e.apply(this,arguments)}}(XMLHttpRequest.prototype.open)},modifyXhrData=function(e,t,n,i,o){if(1===t){var r=pendo.get_visitor_id();e.visitor_id=r;var a=pendo.get_account_id();e.account_id=a,e.browser_url=getScrubbedXhrUrl(pendo.url.getWindowLocation().href),e.browser_time=(new Date).getTime(),e.request_method=i,e.type="xhr"}else 4===t&&(e.request_url=getScrubbedXhrUrl(o.responseURL),e.response_status=o.status,e.duration=(new Date).getTime()-e.browser_time,xhrEventQueue.push(e))},getScrubbedXhrUrl=function(e){var t=e?e.indexOf("?"):-1,n=-1===t?"":e.slice(t+1,e.length);return externalizeURL(e,n,getPendoConfigValue("xhrWhitelist"))},flushXhrNow=function(e){try{xhrEventQueue.flush(e)}catch(t){writeException(t,"error while flushing xhr cache")}},TextCapture=function(){function e(){pendo.excludeAllText=ConfigReader.get(r);var e=ConfigReader.get(o);a=u(e,function(e,t){return d(t)?(e[t]=!0,e):e},{})}function t(){return!pendo.excludeAllText}function n(e){var n=trim.call(e);return t()||s(a,n)||s(a,e)}function i(){return l(a)>0}var o="allowedText",r="excludeAllText",a={},s=_.has,d=_.isString,u=_.reduce,l=_.size;return{initialize:e,isEnabled:t,isTextCapturable:n,hasWhitelist:i}}(),EventErrorLogger=function(){function e(e){(getOption("enableDebugEvents")||getPendoConfigValue("enableDebugEvents"))&&t(Events.debug,e)}function t(e,t){s=[],e.on(function(e){r(e)}),d=setInterval(o,t||5e3),attachEvent(window,"unload",o)}function n(){clearInterval(d)}function i(){detachEvent(window,"unload",o)}function o(){if(0!==s.length){var e=s;s=[],writeErrorPOST("["+e.join(",")+"]")}}function r(e){var t=JSON.stringify(e);s.push(t)}function a(){n(),i()}var s,d;return{run:e,stop:a}}(),AutoDisplay=function(){function e(){p.reset()}function t(e){return e&&/auto/.test(e.launchMethod)}function n(e){return e.attributes&&e.attributes.overrideAutoThrottling}function i(e){return _.defaults(_.groupBy(e,function(e){return n(e)?"override":"auto"}),{override:[],auto:[]})}function o(e,t){function n(e,t){return i[t]?(e.push(i[t]),delete i[t],e):e}if(!_.isArray(t)||!t.length)return e;var i=_.indexBy(e,"id"),o=_.reduce(t,n,[]);return _.chain(e).pluck("id").reduce(n,o).value()}function r(e,n){return i(o(_.filter(e,t),n))}function a(e){return Math.max(e.latestDismissedAutoAt||-(1/0),e.finalAdvancedAutoAt||-(1/0))}function s(e,t){var n=new Date(Math.max(e,0));return n.setHours(0,0,0,0),n.setDate(n.getDate()+t),n.getTime()}function d(e,t){var n=t.interval,i=(t.unit||"").toLowerCase();if(_.isNumber(n)&&isFinite(e)){if("minute"===i)return 6e4*n+e+1;if("hour"===i)return 36e5*n+e+1;if("day"===i)return s(e,n)}else if(_.isNumber(n))return(new Date).getTime()}function u(e,t,n){if(n&&n.enabled){var i=d(t,n);if(_.isNumber(i)&&!isNaN(i))return e>=i}return!0}function l(e){var t;return p.eachUntil(e,function(e){return e.shouldAutoDisplay()&&e.autoDisplay(),e.isShown()?(t=e,!0):void 0}),t}function c(e,t){var n=AutoDisplay.lastDismissedTime(t),i=AutoDisplay.sortAndFilter(e,t.autoOrdering),o=AutoDisplay.display(i.override);return!o&&AutoDisplay.canDisplay(getNow(),n,t.throttling)&&(o=AutoDisplay.display(i.auto)),o}var p=throttleIterator(50,createStatefulIterator(function(e){return e.id}));return{reset:e,canDisplay:u,display:l,lastDismissedTime:a,sortAndFilter:r,tryDisplay:c,getNextAutoDisplayTime:d,iterator:p}}(),Permalink=function(){function e(e){var t=e.url.get(),n={};t.replace(new RegExp("([^?=&]+)(=([^&#]*))?","g"),function(e,t,i,o){n[t]=o});var i=n.pendo;return i?e.findGuideById(i):null}function t(e,t){t.showGuideById(e.id),e.shownFromPermalink=!0}function n(e){return!e.shownFromPermalink}function i(e){var t=Permalink.getGuideFromUrl(e);return t&&Permalink.shouldShowPermalinkGuide(t)?(Permalink.showPermalinkGuide(t,e),!0):!1}return{tryDisplay:i,getGuideFromUrl:e,showPermalinkGuide:t,shouldShowPermalinkGuide:n}}(),ContentLoader=function(e){function t(t){try{var n=a[t.id];if(n&&n.language!==t.language&&delete a[t.id],!a[t.id]){var i=[],o={deferred:{},language:t.language},s=!1;if(a[t.id]=o,GuideLoader.usesXhr()&&t.domUrl)o.deferred.domJson=q.defer(),e.ajax.get(replaceWithContentHost(t.domUrl)).then(function(e){o.domJson=e.data,o.deferred.domJson.resolve()}),i.push(o.deferred.domJson.promise),s=!0;else if(t.domJsonpUrl){o.deferred.domJson=q.defer();var d=e.loadResource(replaceWithContentHost(t.domJsonpUrl),function(){dom.removeNode(d)});i.push(o.deferred.domJson.promise),s=!0}if(t.contentUrlJs&&!getPendoConfigValue("preventCodeInjection")){o.deferred.content=q.defer();var u=e.loadResource(replaceWithContentHost(r(t.contentUrlJs)),function(){dom.removeNode(u)});i.push(o.deferred.content.promise),t.contentUrlCss&&(o.deferred.css=q.defer(),e.loadResource({url:replaceWithContentHost(t.contentUrlCss),type:"text/css"},function(){o.deferred.css.resolve()}),i.push(o.deferred.css.promise))}else if(t.contentUrl&&!getPendoConfigValue("preventCodeInjection")){o.deferred.content=q.defer();var l=e.loadResource(replaceWithContentHost(t.contentUrl)+".js",function(){dom.removeNode(l)});i.push(o.deferred.content.promise)}else if(!s)return q.reject();o.deferred.promise=q.all(i).then(function(){return _.omit(o,"deferred")})}return a[t.id].deferred.promise}catch(c){throw Events.resourceFetchFail.trigger(t,c),c}}function n(){a={}}function i(e,t,n,i,o){if(_.isString(n)){_.isFunction(i)||(i=_.template(n));var r=a[e+t];r&&r.deferred.content&&(r.content=n,r.template=i,r.script=o,r.deferred.content.resolve())}}function o(e,t,n){var i=a[e+t];i&&i.deferred.domJson&&(i.domJson=n,i.deferred.domJson.resolve())}function r(t){if(isSfdcLightning()){var n=t.replace(/^https?:\/\/[^\/]+\/guide-content\//,"").split("/"),i=n[0],o=$A.get("$Resource.pendoGuide"+base32Encode(e.toUTF8Array(i)));if(_.isString(o))return o+"/"+n.join("/")}return t}e.guideContent=i,e.receiveDomStructureJson=o;var a={};return{load:t,reset:n}}(pendo),ContentVerifier=function(){function e(e){try{var t=[];return!GuideLoader.usesXhr()&&e.domJsonpUrl?t.push(o(e,"domJsonpUrl")):GuideLoader.usesXhr()&&e.domUrl&&t.push(o(e,"domUrl")),e.contentUrlJs?t.push(o(e,"contentUrlJs")):e.contentUrl&&t.push(o(e,"contentUrl")),q.all(t)}catch(n){throw Events.contentVerificatonFail.trigger(e,n),n}}function t(e){var t="guideValidation";return function(n){return getPendoConfigValue(t)||getOption(t)?e(n):q.resolve()}}function n(e,t){return function(n){return e.failed[n.id]?q.reject():e.verified[n.id]?q.resolve():t(n).then(function(){e.verified[n.id]=!0},function(t){return e.failed[n.id]=!0,q.reject(t)})}}function i(e,t){return function(n){return t(n).then(_.noop,function(t){return/verify/.test(t)&&e(t),q.reject(t)})}}function o(e,t){var n=e[t];if(!_.isString(n))return q.reject('unable to parse "'+n+'"');var i=r(e,t);return pendo.ajax.get(n).then(function(e){return a(e.data)!==i?q.reject('Unable to verify content at "'+n+'"'):void 0})}function r(e,t){var n={domUrl:"domHash",domJsonpUrl:"domJsonpHash"},i=n[t];return e[i]||getHashFromContentUrl(e[t])}function a(e){"object"==typeof e&&(e=JSON.stringify(e));var t=sha1.create();return t.update(e),pendo.fromByteArray(t.digest())}function s(){d.failed={},d.verified={}}var d={failed:{},verified:{}};return{verify:t(n(d,i(writeErrorPOST,e))),reset:s}}(),BANNER_DEFAULT_HEIGHT=500,BANNER_CSS_NAME="_pendo-guide-banner_",ContentValidation=function(){function e(e){return get(e,"attributes.resourceCenter.isTopLevel",!1)}function t(e){var t=BuildingBlockResourceCenter.findResourceCenterModules(e,activeGuides),i=[e].concat(t);return q.all(_.map(i,n))}function n(e){return a=e.id,e.fetchContent().then(function(){var t=JSON.stringify(e.signature()),n=e.id+"-"+crc32(t);return pendo.events.validateGuide(t,e).then(function(){a=null,l[n]=d},function(e){return a=null,l[n]=u,q.reject(e)})})}function i(e){function t(e,t){var n=get(e,"guide.translationStates."+e.language+".stepTranslations."+e.id);return{contentUrl:e.contentUrl,contentUrlCss:e.contentUrlCss,contentUrlJs:e.contentUrlJs,domUrl:e.domUrl,domJsonpUrl:e.domJsonpUrl,domHash:n&&n.domHash,domJsonpHash:n&&n.domJsonpHash}}function n(e){return _.filter([["content",getHashFromContentUrl(e.contentUrl)],["contentCss",getHashFromContentUrl(e.contentUrlCss)],["contentJs",getHashFromContentUrl(e.contentUrlJs)],["dom",get(e,"domHash",getHashFromContentUrl(e.domUrl))],["domJsonp",get(e,"domJsonpHash",getHashFromContentUrl(e.domJsonpUrl))]],function(e){return e[1]})}var i=this;return i.before("hide",function(){s=!0}),i.before("show",function(t){if(p()){if(s=!1,a)return i.guideId!==a||_.contains(c,i)||c.push(i),!1;var n=h(e);if(n===u)return!1;if(n!==d){c.push(i);var o=function(){_.each(c,function(e){e.unlock()}),c.length=0,setTimeout(startGuides,0)};return i.lock(),f(e).then(function(){_.each(c,function(e){e.unlock(),s||(e.show(t),i.isShown()||i.hide())}),o()},o),!1}}}),this.signature=function(){if(this.domUrl){if(this.guide.authoredLanguage===this.language)return n(this);var e=t(i);return n(e)}var o=[["content",this.content]],r=this.attributes&&this.attributes.variables;if(r){var a=g(r);a.length&&(a=_.sortBy(a,function(e){return e[0]}),o.push(["variables",a]))}return o},i}function o(){return this.signature=function(){return _.map(this.steps,function(e){return e.signature()})},this}function r(){var e=this,t=!1,n=function(){return _.size(pendo.events._handlers.validateLauncher)>0&&e.data.template},i=function(){var t=JSON.stringify(e.signature()),n="launcher-"+crc32(t);return pendo.events.validateLauncher(t).then(function(){l[n]=d},function(){l[n]=u})},o=function(){var t="launcher-"+crc32(e.signature());return l[t]};return e.before("update",function(){return n()&&t?!1:void 0}),e.before("render",function(){if(n()){if(t)return!1;var r=o();if(r===u)return!1;if(r!==d)return t=!0,i().then(function(){t=!1,e.render(),e.update(getActiveGuides())},function(){t=!1}),!1}}),e.signature=function(){var e=[],t=g(this.data);return t.length&&(t=_.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},e}var a,s,d="allow",u="deny",l={},c=[],p=function(){return _.size(pendo.events._handlers.validateGuide)>0},f=function(i){try{return e(i)?t(i):n(i)}catch(o){throw Events.contentValidationFail.trigger(i,o),o}},h=function(e){var t=e.id+"-"+crc32(e.signature());return l[t]},g=function(e,t){var n=[];return _.each(e,function(e,i){var o=i;t&&(o=t+"."+o),_.isObject(e)?_.each(g(e,o),function(e){n.push(e)}):n.push([o,e])}),n};return{Step:i,Guide:o,Launcher:r,validate:f,reset:function(){l={},a=null,c.length=0}}}(),AsyncContent=function(){function e(e){function t(){a=!0}function n(e){return o(d),a=!1,pendo.doesExist(s.content)||pendo.doesExist(s.domJson)?void 0:(s.lock(),s.fetchContent().then(function(){if(s.unlock(),!a){var t=_.isFunction(s.getGuide)&&s.getGuide();if(t&&t.attributes&&t.attributes.doNotResume)return s.hide();s.show(e),s.isShown()||s.hide()}},function(){s.unlock()}),!1)}function i(){if(!r){var e,t,n,i=s.getGuide();i&&i.language&&(e=i.language,e!==i.authoredLanguage&&(t=get(i,"translationStates."+e+".stepTranslations."+s.id+".domHash"),n=get(i,"translationStates."+e+".stepTranslations."+s.id+".domJsonpHash")));var o=s.guideId+s.id,a=_.extend({id:o,language:e,domHash:t,domJsonpHash:n},_.pick(s,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl"));r=ContentVerifier.verify(a).then(function(){return ContentLoader.load(a)}).then(function(e){_.extend(s,e)})}return r}function o(t){var n=_.indexOf(e.steps,s);_.chain(e.steps).rest(n+1).first(t).each(function(e){e.fetchContent()}).value()}var r,a,s=this,d=3;return(s.contentUrl||s.domJsonpUrl)&&(_.extend(s,{fetchContent:i}),s.before("hide",t),s.before("show",n)),s}return e.reset=function(){ContentLoader.reset()},e.reset(),e}();GuideStep.create=function(e,t){return _.reduce(GuideStep.behaviors,function(e,n){return n.call(e,t)},e)},GuideStep.isGuideStep=function(e){return!!e&&_.isFunction(e.render);
},GuideStep.behaviors=[Wrappable,GuideStep,RemoteFrameStep,AsyncContent,ContentValidation.Step,CloseButton,Credits,Tooltip,Lightbox,Banner,WhatsNew,Poll,AutoHeight,PreviewMode],GuideErrorThrottle.MAX_ERRORS_PER_MINUTE=30,Guide.create=function(e){return _.reduce(Guide.behaviors,function(e,t){return t.call(e)},e)},Guide.behaviors=[Wrappable,Guide,ContentValidation.Guide,GroupGuide,WalkthroughGuide,GuideErrorThrottle,RemoteFrameGuide],AdvanceTrigger.prototype.add=function(){(0!==_.indexOf(this.guide.steps,this.step)||AdvanceTrigger.shouldAttachHandler(this.guide,this.method))&&(!isBadge(this.guide)||isWalkthrough(this.guide))&&this.setupElementEvent(this.element,this.method)},AdvanceTrigger.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},AdvanceTrigger.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=_.compose(_.bind(this.teardownElementEvent,this,e,t),_.bind(this.step.advance,this.step))),AdvanceTrigger.attach(this.step,e,t,this.advanceFn)},AdvanceTrigger.prototype.teardownElementEvent=function(e,t){log("detach onGuideAdvanced","guide"),detachEvent(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},AdvanceTrigger.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||DOMActivation.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector},AdvanceTrigger.attach=function(e,t,n,i){if(e){for(var o=AdvanceTrigger.handlers=AdvanceTrigger.handlers||{},r=o[e.id]=o[e.id]||[],a=0;a<r.length;++a){var s=r[a];t===s[0]&&n===s[1]&&(detachEvent(t,n,s[2],!0),r.splice(_.indexOf(r,s),1),a--)}r.push([t,n,i]),detachEvent(t,n,i,!0),attachEvent(t,n,i,!0)}};var loadGlobalScriptOnce=_.wrap(_.once(_.wrap(loadGlobalScript,validateGlobalScript)),ignoreEmptyGlobalScript),EventRouter=function(){function e(e){var n;if(!e.ignore)switch(e.action){case"advanceGuide":pendo.onGuideAdvanced(e,e.step);break;case"previousStep":pendo.onGuidePrevious(e,e.step);break;case"goToStep":this.goToStep(e);break;case"submitPoll":this.submitPoll(e);break;case"guideSnoozed":var i=e&&e.params&&e.params[0]&&e.params[0].snooze_duration;onGuideSnoozed(e,e.step,i);break;case"dismissGuide":BuildingBlockResourceCenter.attemptToPreserveIntegrationIframes(e),t(e);break;case"showElements":this.setElementDisplay(e,"block"),n=BuildingBlockGuides.findGuideContainerJSON(e.step.domJson),BuildingBlockGuides.recalculateGuideHeight(n.props.id),BuildingBlockGuides.flexAllThings(n.props.id);break;case"hideElements":this.setElementDisplay(e,"none"),n=BuildingBlockGuides.findGuideContainerJSON(e.step.domJson),BuildingBlockGuides.recalculateGuideHeight(n.props.id),BuildingBlockGuides.flexAllThings(n.props.id);break;case"slideElement":this.setElementAnimation(e);break;case"showGuide":pendo.showGuideById(e.params[0].value);break;case"launchGuide":if(!window.pendo.designer){pendo.onGuideDismissed(e,e.step);var o=e&&e.params&&e.params[0]&&e.params[0].value;o&&pendo.showGuideById(e.params[0].value)}break;case"renderResourceCenterModule":BuildingBlockResourceCenter.replaceResourceCenterContent(e.params[0].value);break;case"returnToResourceCenterHome":var r=BuildingBlockResourceCenter.findResourceCenterHomeView(pendo.guides);if(!r)return;BuildingBlockResourceCenter.attemptToPreserveIntegrationIframes(e),BuildingBlockResourceCenter.replaceResourceCenterContent(r.id,e.params);break;case"openFeedback":Feedback.openFeedback(e);break;case"openLink":!window.pendo.designer&&this.openLink(e);break;case"searchGuides":this.searchGuides(e)}}function t(e){if(!e||!e.step)return pendo.onGuideDismissed();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter){pendo.onGuideDismissed(e,e.step);var n=BuildingBlockResourceCenter.findResourceCenterHomeView(pendo.guides);if(e.step.id===n.steps[0].id)return;return e.step=n.steps[0],pendo.onGuideDismissed(e,e.step)}pendo.onGuideDismissed(e,e.step)}function n(e){var t=e.step,n=[];if(e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")){var i=e.srcElement.getAttribute("data-pendo-poll-id"),o=e.srcElement.value;n.push({pollId:i,value:parseInt(o,10)})}var r=Sizzle("[data-pendo-poll-id]",t.guideElement[0]);n=n.concat(_.map(r,function(e){var n=Sizzle("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value){var i=e.getAttribute("data-pendo-poll-id"),o=_.find(t.guide.polls,function(e){return e.id===i}),r=n[0].value;return o&&o.numericResponses&&(r=parseInt(r,10)),{pollId:i,value:r}}})),t.response&&n?t.response(_.compact(n)):pendo.log("[Agent] Error! Trying to submit a poll response but step does not have response function!"),t.advance()}function i(e,t){var n=e.step,i=_.find(e.params,function(e){return"selectors"===e.name}).value,o=dom(i,n.guideElement[0]);_.each(o,function(e){e.style.display=t})}function o(e){var t=_.find(e.params,function(e){return"selector"===e.name}).value,n=dom(t,e.step.guideElement[0])[0],i=_.find(e.params,function(e){return"transition"===e.name}).value,o=_.find(e.params,function(e){return"left"===e.name}).value;n.style.transition=i,n.style.left=o}function r(e){var t=_.find(e.params,function(e){return"url"===e.name}).value,n=_.find(e.params,function(e){return"target"===e.name}).value;window.open(t,n)}function a(e,t,n){return t?t.some(function(t){return _.contains(e,t)&&t===n}):!1}function s(e){var t="",n=e.srcElement.value,i=pendo.Sizzle("#pendo-resource-center-container")[0],o=pendo.dom(i).find('[id^="pendo-list-item-"]'),r=pendo.dom(i).find('[id^="pendo-no-matches-container"]'),a=[],s=_.find(e.params,function(e){return"searchTextInfo"===e.name});pendo.dom(r[0].childNodes[0]).text(s.value);var d=!0;if(o)for(var u in o)if(u&&o[u]){pendo.dom(o[u]).text()&&(-1!==pendo.dom(o[u]).text().toLowerCase().indexOf(n.toLowerCase())?(pendo.dom(o[u]).css({display:"list-item"}),d=!1):pendo.dom(o[u]).css({display:"none"})),_.isFunction(o[u].getAttribute)&&(t=o[u].getAttribute("data-_pendo-text-list-item-1").split(","),t.forEach(function(e){_.contains(a,e)||a.push(e)}));var l=this.searchAllTerms(a,t,n);l&&o[u]&&(pendo.dom(o[u]).css({display:"list-item"}),d=!1),t=""}d?pendo.dom(r[0]).css({display:"block"}):pendo.dom(r[0]).css({display:"none"})}function d(e){var t=e.step,n=_.find(e.params,function(e){return"goToStepId"===e.name}),i=n&&n.value;if(!i)return void pendo.log("[Agent] Error! Trying to handle a goToStep action but event has no goToStepId param!");if(i===t.id)return void pendo.log("[Agent] Error! Trying to handle a goToStep action but goToStepId matches current step!");var o=pendo.findGuideById(t.guideId),r=_.find(o.steps,function(e){return e.id===i});if(!r)return void pendo.log("[Agent] Error! Trying to handle a goToStep action but guide has no step matching provided goToStepId param!");var a=_.indexOf(o.steps,r),s=_.indexOf(o.steps,t);e.steps=Math.abs(a-s),a>s?pendo.onGuideAdvanced(e,t):pendo.onGuidePrevious(e,t)}var u=this;return this.eventable=Eventable.call({}),this.eventable.on("pendoEvent",function(e){try{u.eventHandler(e)}catch(t){var n=e&&e.action||"NO ACTION DEFINED";writeException(t,"Error in Action "+n)}}),this.eventHandler=e,this.submitPoll=n,this.setElementDisplay=i,this.setElementAnimation=o,this.openLink=r,this.goToStep=d,this.searchGuides=s,this.searchAllTerms=a,this},DOMActivation=function(){function e(e,t,i){var o=e[l],r=o?i[o]:null;r||(o=o||"target"+_.uniqueId(),r={target:e,events:{}},i[o]=r,e[l]=o);var a=i[t.id]||[];a.push(o),i[t.id]=a,_.each(t.events,function(i){var o=r.events[i];o||(o={guideIds:{}},o.fn=_.partial(n,_,o.guideIds),attachEvent(e,i,o.fn),r.events[i]=o),o.guideIds[t.id]=1})}function t(e,t){_.each(t[e.id],function(n){var i=n?t[n]:null;i&&(_.each(i.events,function(t,n){t&&t.guideIds&&(delete t.guideIds[e.id],_.size(t.guideIds)<=0&&(detachEvent(i.target,n,t.fn),delete i.events[n]))}),_.size(i.events)<=0&&(delete i.target[l],i.target=null,delete t[n]))}),delete t[e.id]}function n(e,t){if(!e.pendoActivatedGuide){var n=_.compact(_.map(_.keys(t),function(e){return pendo.findGuideById(e)}));n=_.filter(n,function(e){return e.steps&&e.steps.length?get(e,"attributes.dom.isOnlyShowOnce")?!e.steps[0].hasBeenSeen():!0:!1}),n=_.sortBy(n,function(e){return"staged"===e.state?0:1});var i=_.find(n,function(e){var t=_.first(e.steps);return t.isShown()?!0:showGuide(t,"dom")});i&&(e.pendoActivatedGuide=i.id)}}function i(){_.each(p,function(e){t(e,f),e.targets=[]}),p.length=0,u=null}function o(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")){var t=get(e,"attributes.activation.event",[]);if(t&&t.length){var n=r(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function r(e){var t=get(e,"attributes.activation.selector");return t?t:e.steps[0].elementPathRule}function a(e){u||(_.each(e,function(e){var t=o(e);t&&p.push(t)}),u=throttleIterator(50,createStatefulIterator()))}function s(e,t){return e.length!=t.length?!1:_.all(e,function(e,n){return e===t[n]})}function d(n,i){a(n),u.eachUntil(p,function(n){var i=Sizzle(n.selector);i.length>c&&(i.length=c),s(i,n.targets)||(n.targets=i,t(n,f),_.each(i,function(t){e(t,n,f)}))})}var u,l="pendoTargetId",c=50,p=[],f={};return{key:l,guides:p,targets:f,reset:i,init:a,update:d,attach:e,detach:t,handler:n,activates:o}}(),ScriptGuideLoader={load:function(e,t){return q.resolve(pendo.loadResource(e,t))},buildUrl:function(e,t){return buildBaseDataUrl("guide.js",e,t)},usesXhr:function(){return!1}},GuideLoader=ScriptGuideLoader,guideEvtCache=[],activeElements=[],detachGuideEventHandlers,activeGuides=[],Tombstone=function(){var e=[];return{addGuide:function(t){return e.push(t),setActiveGuides(_.difference(getActiveGuides(),e)),e}}}(),DEFAULT_GUIDE_SEEN_TIMEOUT_LENGTH=1e4,GUIDE_CSS_NAME="_pendo-guide_",GUIDE_ID_PREFIX="_pendo_g_",lastGuideStepSeen=null,seenTime=0,isGuideShown=function(){return _.any(getActiveGuides(),function(e){return e.isShown()})},addCloseButton=function(e,t){var n=dom("._pendo-close-guide_",e);if(n.length)return n[0];n=dom("<button>").attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").html("×"),isBrowserInQuirksmode()?msie>9&&n.css({top:3}):8===msie?n.css({top:9,right:2}):9===msie?n.css({right:2,top:3}):msie>9&&n.css({top:3});var i=dom("._pendo-guide-container_",e)[0]||e;return n.appendTo(i),n[0].onclick=function(){t()},n[0]},findGuideBy=function(e,t){for(var n=getActiveGuides(),i=0;i<n.length;i++)if(n[i][e]===t)return n[i];return null},findGuideById=function(e){return pendo.findGuideBy("id",e)},findGuideByName=function(e){return pendo.findGuideBy("name",e)},findStepInGuide=function(e,t){return e&&e.id?(e=findGuideById(e.id),e.findStepById(t)):null},_updateGuideStepStatus=function(e,t,n){var i=pendo.findStepInGuide(findGuideById(e),t);i&&(i.seenState=n)},getStepIdFromElement=function(e){for(var t=new RegExp("^"+GUIDE_ID_PREFIX);e;){if(_.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null},findStepForGuideEvent=function(e,t){if(e&&e.guideId&&(t=e,e=null),GuideStep.isGuideStep(t))return t;if(t){var n=findGuideById(t.guideId);return n&&n.findStepById(t.id)}var i=_.find(getActiveGuides(),function(e){return e.isShown()});if(i){var o;return e&&(o=getStepIdFromElement(e.target||e.srcElement||e)),o?(t=i.findStepById(o),t||writeMessage("findStepForGuideEvent: step with id "+o)):(t=_.find(i.steps,function(e){return e.isShown()}),t||writeMessage("findStepForGuideEvent: no step shown")),t}},removeGuideEventListeners=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=pendo.getElementForGuideStep(e);"tooltip"===e.type&&_.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):detachEvent(n,t,onGuideAdvanced,!0)},onGuideDismissed=function(e,t){var n=null;if(e&&e instanceof Object&&e.until&&(n=e.until),t=findStepForGuideEvent(e,t),!t||!t.id)return void stopGuides();if(!t.isLocked()){if(n)return void t.hide({stayHidden:!0});removeGuideEventListeners(t);var i=t.id,o=t.guideId,r=findGuideById(o),a=_.first(r&&r.steps),s=a&&a.seenReason,d=r&&r.language;dismissedGuide(o,i,pendo.get_visitor_id(),s,d);var u=getNow();_updateGuideStepStatus(o,i,"dismissed");var l=_.isFunction(t.getGuide)&&t.getGuide(),c=l&&l.attributes&&l.attributes.doNotResume;c||(lastGuideStepSeen={guideId:o,guideStepId:i,time:u,state:"dismissed",seenReason:s,visitorId:pendo.get_visitor_id()}),writeLastStepSeenCache(lastGuideStepSeen),"auto"===s&&writeLatestDismissedAutoAtCache(u),t.hide(),isGuideShown()||(stopGuides(),startGuides())}},onGuideSnoozed=function(e,t,n){if(log("onGuideSnoozed called","guides"),t=findStepForGuideEvent(e,t),!t)return log("missing step. can't snooze",["guides","error"]),stopGuides(),void writeMessage("onGuideSnoozed: missing step");if(n||(n=864e5,log("no snooze duration provided, defaulting to 1 day")),!t.isLocked()){removeGuideEventListeners(t);var i=t.id,o=t.guideId,r=pendo.get_visitor_id(),a=findGuideById(o),s=a&&a.language,d=_.first(a&&a.steps),u=d&&d.seenReason,l=getNow();log("snoozing guide for "+n+" ms"),snoozedGuide(o,i,r,u,s,n),_updateGuideStepStatus(o,i,"snoozed");var c=a&&a.attributes&&a.attributes.doNotResume;c||(lastGuideStepSeen={guideId:o,guideStepId:i,time:l,state:"snoozed",seenReason:u,visitorId:pendo.get_visitor_id()}),writeLastStepSeenCache(lastGuideStepSeen),t.hide(),isGuideShown()||(stopGuides(),startGuides())}},cleanupActiveGuide=function(){var e=getActiveGuide();e&&_.each(e.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=pendo.getElementForGuideStep(e);"tooltip"===e.type&&_.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):detachEvent(n,t,onGuideAdvanced,!0)})},onGuideAdvanced=function(e,t,n){if(cleanupActiveGuide(),log("onGuideAdvanced called","guides"),t=findStepForGuideEvent(e,t),!t)return log("missing step. can't advance",["guides","error"]),stopGuides(),void writeMessage("onGuideAdvanced: missing step");if(!t.isLocked()){var i=findGuideById(t.guideId),o=i&&i.language;if(e&&_.isNumber(e.steps)&&e.steps>1){var r=e.steps-1,a=_.indexOf(i.steps,t),s=a+r;s>=i.steps.length&&(s=i.steps.length-1);var d=s;e.skip===!0&&(d=a+1);for(var u=a;d>u;++u)t=i.steps[u],advancedGuide(i.id,t.id,pendo.get_visitor_id(),t.seenReason,o,u!==a),_updateGuideStepStatus(i.id,t.id,"advanced");return onGuideAdvanced(i.steps[s],t,!0)}var l=t.id,c=t.guideId,p=_.first(i&&i.steps),f=p&&p.seenReason;log("advancing guide"),advancedGuide(c,l,pendo.get_visitor_id(),f,o,n),log("update guide status"),_updateGuideStepStatus(c,l,"advanced");var h=(new Date).getTime(),g=_.isFunction(t.getGuide)&&t.getGuide(),v=g&&g.attributes&&g.attributes.doNotResume;v||(lastGuideStepSeen={guideId:c,guideStepId:l,time:h,state:"advanced",seenReason:f,visitorId:pendo.get_visitor_id()}),writeLastStepSeenCache(lastGuideStepSeen),p&&"auto"===p.seenReason&&writeFinalAdvancedAutoAtCache(h),log("stop guide"),stopGuides(),log("start guides"),startGuides()}},onGuidePrevious=function(e,t){if(t=findStepForGuideEvent(e,t),!t)return stopGuides(),void writeMessage("onGuidePrevious: missing step");var n=t.guideId,i=findGuideById(n),o=_.indexOf(i.steps,t);if(0!==o){var r="element"==t.advanceMethod?"click":"mouseover",a=pendo.getElementForGuideStep(t);"tooltip"===t.type&&_.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):detachEvent(a,r,onGuideAdvanced,!0);var s=e&&_.isNumber(e.steps)?e.steps:1,d=i.steps[o-s];_updateGuideStepStatus(t.guideId,t.id,"active"),_updateGuideStepStatus(d.guideId,d.id,"active");var u=_.isFunction(t.getGuide)&&t.getGuide(),l=u&&u.attributes&&u.attributes.doNotResume;l||(lastGuideStepSeen={guideId:d.guideId,guideStepId:d.id,time:(new Date).getTime(),state:"active",visitorId:pendo.get_visitor_id()}),writeLastStepSeenCache(lastGuideStepSeen),stopGuides(),startGuides()}};pendo._addCredits=function(e){if(!dom("._pendo-credits_",e).length){var t=dom("<div>").addClass("_pendo-credits_").html('<img src="'+getAssetHost()+'/img/tiny-logo.png" />').css({bottom:0,right:pendo.TOOLTIP_ARROW_SIZE});activeElements.push(t[0]),t.appendTo(e)}};var getElementForGuideStep=function(e){if(!e)return log("Can't get element for null step"),null;var t=e.getGuide();return!e.overrideElement&&(t&&t.attributes&&"building-block"===t.attributes.type||!isWalkthrough(t))&&(e.overrideElement=findBadgeForStep(e)),e.overrideElement?e.overrideElement:getElementForTargeting(e)},getElementForTargeting=function(e){try{var t,n=e.elementPathRule||null;return t=n?Sizzle(n):[getBody()],0===t.length?null:_.first(t)}catch(i){log("Invalid selector expression")}},canStepBeRendered=function(e){if(isDismissedUntilReload(e))return!1;if(!e.elementPathRule&&("lightbox"===e.type||"whatsnew"===e.type))return!0;var t=getElementForGuideStep(e);return isElementVisible(t)},getStepDivId=function(e){return GUIDE_ID_PREFIX+e.id},setupWatchOnElement=function(e){var t=e.element,n=_.first(Sizzle("#"+getStepDivId(e)));if(t&&n){var i=isElementVisible(t);if(i||dom.hasClass(n,"mouseover"))return void setTimeout(function(){setupWatchOnElement(e)},DEFAULT_TIMER_LENGTH);e.hide?(e.hide(),isGuideShown()||(stopGuides(),startGuides())):(stopGuides(),startGuides())}else!t&&n&&(e.hide?(e.hide(),isGuideShown()||(stopGuides(),startGuides())):(stopGuides(),startGuides()))},showPreview=function(){return!1},findBadgeForStep=function(e){return _.first(Sizzle("#_pendo-badge_"+e.id))},showGuide=function(e,t){if(!e||!e.guideId)return!1;var n=findGuideById(e.guideId);if(!n)return!1;if(isGuideShown()){var i=findStepForGuideEvent();removeGuideEventListeners(i);var o=n&&n.attributes&&n.attributes.resourceCenter;o||hideGuides()}return n.launch(t),n.isShown()},seenGuide=function(e,t,n,i,o,r){var a=createGuideEvent({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:o});r&&_.extend(a.props,{step_poll_types:r}),stageGuideEvent(a),writeLastStepSeenCache({guideId:e,guideStepId:t,time:getNow(),state:"active",seenReason:i,visitorId:pendo.get_visitor_id()})},writeLastStepSeenCache=function(e){var t=JSON.stringify(e),n=1e4;log("writing "+t+" to a cookie named lastStepAdvanced for "+n),agentStorage.write("lastStepAdvanced",t,n),setPreviewState(e,pendoLocalStorage)},stagedEventsTimer=null,startStagedTimer=function(e){window.clearTimeout(stagedEventsTimer),stagedEventsTimer=window.setTimeout(processGuideEventCache,e)},stageGuideEvent=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-seenTime,guideEvtCache.push(e),startStagedTimer(t)},getNextStepInMultistep=function(e,t){if("dismissed"===e.state)return null;var n=findGuideById(e.guideId);return n.nextStep(e,t||pendo.getCurrentUrl())},shouldAutoDisplayGuide=function(e,t){var n=findGuideById(e&&e.id);return n?n.shouldAutoDisplay(t):!1};pendo.getCurrentUrl=function(){return pendo.normalizedUrl||pendo.url.get()};var isBadge=function(e){return e&&e.launchMethod&&e.launchMethod.indexOf("badge")>=0},isWalkthrough=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)};pendo.testUrlForStep=function(e,t){if(!pendo.doesExist(e))return!0;var n=new RegExp(e),i=null,o=t.indexOf("?");if(-1==o)i=t;else{var r=t.substr(0,o),a=t.substr(o+1),s=a.split("&");i=r+"?"+s.sort().join("&")}return n.test(i)},pendo.showGuideByName=function(e){var t=pendo.findGuideByName(e);return t?showGuide(_.first(t.steps)):!1},pendo.showGuideById=function(e){if(FrameController.isConnectedToMaster)return FrameController.showGuideById(e);var t=pendo.findGuideById(e);return t?showGuide(_.first(t.steps)):!1};var applyLastAdvancedCache=function(e){var t=agentStorage.read("lastStepAdvanced")||JSON.stringify(getPreviewState(pendoLocalStorage));if(!t)return e;var n=JSON.parse(t);if(!n)return e;if(n.visitorId&&n.visitorId!==pendo.get_visitor_id())return e;log("applying cookie to guide list "+t),n[0]&&(n={guideId:n[0],guideStepId:n[1],state:"advanced",time:(new Date).getTime()});var i=n.guideId,o=n.guideStepId,r=findGuideById(i);if(r){var a=_.first(r.steps);a&&n.seenReason&&(a.seenReason=n.seenReason);var s=pendo.findStepInGuide(r,o);if(s){s.seenState!=n.state&&(log("making sure that seenState = '"+n.state+"' for lastStepAdvanced: "+o),s.seenState=n.state);var d=r.steps.indexOf(s);_.each(r.steps.slice(0,d),function(e){_.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})}}return log("updating lastGuideStepSeen so that the state matches our local value for "+o),_.extend(e,n)},isMobileUserAgent=function(){return isPreviewing()&&getScreenDimensions().width<=320?!0:/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(getUA())},isPreviewing=function(){return"undefined"!=typeof selmo&&!!selmo.isPreviewing},resetPendoUI=function(){stopGuides(),clearLoopTimer(),removeAllBadges(),DOMActivation.reset(),hideLauncher(),flushLater()},resetPendoContent=function(){pendo.guides&&(activeGuides.length=0,pendo.guides.length=0,all_ob_guides.length=0),clearMode()},loadGuideJs=function(){var e,t;return function(n,i,o){var r=_.uniqueId();if(e=r,!isMetadataBlocked()){var a=getMetadata();a?(log("sending metadata: "+JSON.stringify(a),["guides","metadata"]),i.metadata=a):log("no metadata to send",["guides","metadata"])}var s=pendo.compress(i),d={jzb:s,v:VERSION,ct:(new Date).getTime()};isDebuggingEnabled(!0)&&(d.debug=!0);var u=previewGuideLoaderWrapper(GuideLoader,pendoLocalStorage),l=u.buildUrl(n,d),c=1e3;l.length>c&&(debug("Max length exceeded for a guide.js request"),i.url=limitURLSize(c,i.url),s=pendo.compress(i),l=u.buildUrl(n,{jzb:s,v:VERSION,ct:(new Date).getTime()}));var p,f=function(){r===e?(o.apply(this,arguments),t=backupObjectState(pendo,["guides","normalizedUrl","lastGuideStepSeen","guideWidget","throttling","autoOrdering","olark","globalJsUrl","segmentFlags","latestDismissedAutoAt","finalAdvancedAutoAt"])):_.isFunction(t)&&t()},h=getJwtInfoCopy();if(l.length>URL_MAX_LENGTH||!_.isEmpty(h)){l=buildBaseDataUrl("guide.json",n,{v:VERSION,ct:(new Date).getTime()});var g=_.extend({events:s},h);p=postLoadGuideJs(l,g,f)}else p=u.load(l,f);return p.fail(function(e){return 451===e.status&&(pendo.stopGuides(),pendo.stopSendingEvents(),log("not tracking visitor due to 451 response")),q.reject(e)})}}(),shouldLoadGlobalCSS=function(){var e=getOption("disableGlobalCSS");return _.isBoolean(e)?!e:!getPendoConfigValue("disableGlobalCSS",!1)},loadGuides=function(e,t,n,i){var o,r=q.defer(),a=!1;log("loading guides for "+n+"...","guides"),e=e||pendo.apiKey,t=t||pendo.get_visitor_id(),n=pendo.url.externalizeURL(n);var s=loadGuides.lastVisitorId===t?saveGuideShownState(activeGuides):_.noop;if(loadGuides.lastVisitorId=t,resetPendoUI(),resetPendoContent(),!isURLValid(getURL()))return log("bad url: probably local file system","guides","error"),_.isFunction(i)&&i("error: invalid url"),r.reject(),r.promise;var d={visitorId:t,accountId:pendo.get_account_id(),url:n};FrameController.loadingGuideList(),loadGuideJs(e,d,function(){!a&&isUnlocked()&&(pendo.events.deliverablesLoaded(),log("successfully loaded guides for "+n,"guides"),window.pendo.designerEnabled&&"true"!==pendoLocalStorage.getItem("pendo-designer-mode")&&pendo.P2AutoLaunch.attemptToLaunch(),resetPendoUI(),lastGuideStepSeen=preparePreviewLastGuideStepSeen(pendoLocalStorage,pendo.guides,pendo.lastGuideStepSeen),activeGuides=_.map(pendo.guides,GuideFactory),activeGuides=preparePreviewGuide(window,activeGuides),activeGuides=sortGuidesByPriority(activeGuides),setActiveGuides(activeGuides),lastGuideStepSeen.visitorId=t,lastGuideStepSeen=applyLastAdvancedCache(lastGuideStepSeen),pendo.latestDismissedAutoAt=applyTimerCache(pendo.latestDismissedAutoAt,agentStorage.read("latestDismissedAutoAt")),pendo.finalAdvancedAutoAt=applyTimerCache(pendo.finalAdvancedAutoAt,agentStorage.read("finalAdvancedAutoAt")),FrameController.updateGuideList(activeGuides),pendo.eventProperties=createEventPropertiesFromFeatures(pendo.features),activeGuides.length?q.all([loadGuideCss(),loadGlobalScriptOnce(replaceWithContentHost(pendo.globalJsUrl)),loadLauncherContent(upgradeLauncher(pendo.guideWidget,activeGuides)),initializeResourceCenter(pendo.guides),BuildingBlockWatermark.initializeWatermark(pendo.guides),waitForGlobalCssToLoad(5e3)]).then(function(){initLauncher(),s(activeGuides),prefetchDomActivatedGuideContent(activeGuides),pendo.events.guidesLoaded(),startGuides(),clearTimeout(o),_.isFunction(i)&&i(),r.resolve()},function(){pendo.events.guidesFailed(),r.reject()}):(pendo.events.guidesLoaded(),r.resolve()))});var u=getOption("guideTimeout")||getOption("guides.timeout");return _.isNumber(u)&&(o=setTimeout(function(){a=!0,r.reject()},u)),r.promise},processGuideEventCache=function(){var e=[].concat(guideEvtCache);guideEvtCache=[],e.length>0&&_.map(e,writeGuideEvent)},getGuideEventCache=function(){return guideEvtCache},initializeResourceCenter=function(e){return pendo.BuildingBlocks.BuildingBlockResourceCenter.initializeResourceCenter(e)},initGuides=function(){guideEvtCache=[],attachEvent(window,"unload",processGuideEventCache);var e=getOption("guides.tooltip.arrowSize");_.isNumber(e)&&(pendo.TOOLTIP_ARROW_SIZE=e),FrameController.init()},areGuidesDisabled=function(){return getOption("guides.disabled",!1)||getOption("disableGuides",!1)||!pendoCore},areGuidesDelayed=function(){return getOption("guides.delay",!1)||getOption("delayGuides",!1)},setGuidesDisabled=function(e){originalOptions.disableGuides=e},createEventPropertiesFromFeatures=makeSafe(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,o=_.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:o,featureId:e[n].featureId})}return t}}),pendoPreview="pendo-preview",pendoDesignerLaunchKey="pendo-designer-launch";pendo.guidesProcessingThreadHandle=null;var DEFAULT_TIMER_LENGTH=500,waitThenLoop=function(e){e=e||DEFAULT_TIMER_LENGTH,pendo.guidesProcessingThreadHandle=_.delay(function(){pendo.guidesProcessingThreadHandle=null,startGuides()},e)},clearLoopTimer=function(){pendo.guidesProcessingThreadHandle&&(clearTimeout(pendo.guidesProcessingThreadHandle),pendo.guidesProcessingThreadHandle=null)},stopGuides=function(){AutoDisplay.reset(),hideGuides();for(var e=0;e<activeElements.length;e++){var t=activeElements[e];t.parentNode.removeChild(t)}activeElements.length=0},currentMode="default",modeProcMap={},registerMode=function(e,t){modeProcMap[e]=t},setMode=function(e){return e&&"default"!=e?modeProcMap[e]?void(currentMode=e):void alert("Bad Mode: "+e):void(currentMode="default")},getMode=function(){return currentMode};pendo.getMode=getMode;var startGuides=function(){if(clearLoopTimer(),areGuidesDisabled())return void log("guides are disabled.","guides","disabled");if(areGuidesDelayed())return void log("guides are delayed.","guides","delayed");try{var e=getActiveGuides();if(!e||0===e.length)return;getLoopProc()(e)}catch(t){writeException(t,"ERROR in guide-loop")}finally{waitThenLoop()}},manuallyStartGuides=function(){getOption("delayGuides")&&delete originalOptions.delayGuides,getOption("guides.delay")&&delete originalOptions.guides.delay,startGuides()},getLoopProc=function(){return modeProcMap[currentMode]?modeProcMap[currentMode]:defaultLoopProc},defaultLoopProc=function(e){placeBadgesProc(e),DOMActivation.update(e),launcherProc(e),resourceCenterProc(BuildingBlockResourceCenter.getResourceCenter()),FrameController.updateFrameVisibility(),isGuideShown()?guideShowingProc():noGuideShowingProc(e),updatePreview(document,e,lastGuideStepSeen)},badgeIterator=throttleIterator(50,createStatefulIterator(function(e){return e.id})),placeBadgesProc=function(e){var t=_.filter(e,isBadge);badgeIterator.eachUntil(t,function(e){e.placeBadge()})},launcherProc=function(e){var t=getLauncherGuideList(e);updateLauncher(t,!0)},noGuideShowingProc=function(e){if(!Permalink.tryDisplay(pendo)){var t=_.find(e,function(e){return e.isContinuation(lastGuideStepSeen)}),n=t&&t.attributes&&t.attributes.doNotResume;return t&&!n?void t.show("continue"):void AutoDisplay.tryDisplay(e,pendo)}},CrossFrame=function(){function e(e){var t=u[e.responseId];t&&(delete u[e.responseId],t.resolve(e))}function t(){u||(u={},l=i(p,e))}function n(e,t){return function(n){try{var i=r(n);i&&i.apiKey===pendo.apiKey&&i.type===e&&t.call(this,i)}catch(o){writeException(o)}}}function i(e,t){var i=n(e,t);return _.isFunction(window.addEventListener)&&window.addEventListener("message",i,!1),_.partial(o,i)}function o(e){_.isFunction(window.removeEventListener)&&window.removeEventListener("message",e,!1)}function r(e){try{var t=JSON.parse(e.data);return t.window=function(){return e.source},t.reply=function(n){s(e.source,_.extend({type:p,responseId:t.guid},n))},t}catch(n){}}function a(){_.isFunction(l)&&l(),u=null}function s(e,t){return tellMaster(e,_.extend({apiKey:pendo.apiKey,frameId:c},t),"*")}function d(e,n,i){t();var o,r=s(e,n),a=q.defer();return u[r]=a,_.isNumber(i)&&(o=setTimeout(function(){u&&delete u[r],a.reject()},i)),a.promise.then(function(){clearTimeout(o)}),a.promise}var u,l,c=pendo.randomString(32),p="frame:reply";return{post:s,request:d,subscribe:i,stop:a}}(),FrameController=function(){function e(){_.each(ue,function(e,t){CrossFrame.post(e.window(),{type:ie,"pendo-preview":pendoLocalStorage.getItem(pendoPreview)})})}function t(){_.each(ue,function(e,t){CrossFrame.post(e.window(),{type:oe,"pendo-preview":pendoLocalStorage.getItem(pendoPreview)})})}function n(){_.each(ue,function(e,t){CrossFrame.post(e.window(),{type:re})})}function i(e){pendoLocalStorage.setItem(pendoPreview,e[pendoPreview]),forceGuideReload()}function o(e){pendoLocalStorage.setItem(pendoPreview,e[pendoPreview]),lastGuideStepSeen=t(pendoLocalStorage,activeGuides,lastGuideStepSeen)}function r(){exitPreviewMode()}function a(){CrossFrame.subscribe(ae,s),detectMaster()?(p(),y(),attachEvent(window,"unload",b),le.startPreview=CrossFrame.subscribe(ie,i),le.restartPreview=CrossFrame.subscribe(oe,o),le.stopPreview=CrossFrame.subscribe(re,r)):(ce=!0,le.load=CrossFrame.subscribe(Z,E),le.unload=CrossFrame.subscribe(Y,C),le.guideList=CrossFrame.subscribe($,A),le.guideShown=CrossFrame.subscribe(ee,k),le.guideHidden=CrossFrame.subscribe(te,B),le.showGuide=CrossFrame.subscribe(Q,R))}function s(e){dom('[data-layout="badgeResourceCenter"]').remove(),ce=!1}function d(){var e=Sizzle("iframe, frame");_.each(e,function(e){var t=e.contentWindow;CrossFrame.post(t,{type:ae})})}function u(){return ce}function l(e){return _.any(ue,function(t){return t.shown&&t.shown[e.id]})}function c(){var e=0,t=window;for(e;10>e&&t.parent!==t;e++)t=t.parent;return e}function p(){function e(){CrossFrame.request(window.top,{type:Z},n).then(T,t)}function t(){clearMode(),n=Math.min(n+n,1e3),i++<5?e():ce=!0}var n=100,i=0;e()}function f(){return!_.isEmpty(ue)}function h(e){return _.chain(ue).filter(function(e){return e&&e.state}).filter(function(t){return t.state[e.id]}).filter(function(e){return"hidden"!==e.visibility}).map(function(t){return t.state[e.id]}).value()}function g(){_.each(le,function(e){e()}),clearMode(),ue={},le={},se={},de={},FrameController.isConnectedToMaster=!1}function v(e){return!!se[e.id]}function m(e){return!!de[e.id]}function b(){CrossFrame.post(window.top,{type:Y})}function y(){registerMode(X,S),setMode(X)}function w(e){placeBadgesProc(e),DOMActivation.update(e),isGuideShown()&&guideShowingProc();var t=getLauncherGuideList(e),n=computeLauncherHash(t);pendo.doesExist(pe)&&n!==pe&&x(e),pe=n}function S(){}function E(e){ue[e.frameId]=ue[e.frameId]||{},ue[e.frameId].window=e.window,ue[e.frameId].depth=e.frameDepth,ue[e.frameId].shown={},e.reply({isDesignerActive:!!pendo.designer,parentHostConfig:pendo.designerv2.hostConfig,"pendo-preview":pendoLocalStorage.getItem(pendoPreview)})}function C(e){A({frameId:e.frameId,guide:[]}),delete ue[e.frameId]}function T(e){if(ce=!1,le.showGuide=CrossFrame.subscribe(Q,F),le.hideGuides=CrossFrame.subscribe(ne,N),stopGuides(),registerMode(K,w),setMode(K),FrameController.isConnectedToMaster=!0,e&&e.isDesignerActive){var t=e.parentHostConfig;return delete t.frameId,delete t.preloader,pendo.designerv2.launchSelectionModeFromMessage({data:{destination:"pendo-designer-agent",
type:"addSelectionCode",options:t}})}return e&&e[pendoPreview]?void i(e):void x(getActiveGuides())}function x(e){var t=U(e);CrossFrame.post(window.top,{type:$,lastGuideStepSeen:pendo.lastGuideStepSeen,guides:t,state:_.chain(e).filter(H).map(z).value()})}function I(){se={}}function A(e){var t=e.frameId;ue[t]=ue[t]||{},ue[t].window=ue[t].window||e.window,ue[t].shown=ue[t].shown||{},ue[t].lastGuideStepSeen=e.lastGuideStepSeen,_.each(ue[t].guides,function(e,t){de[t]&&!--de[t]&&delete de[t]}),ue[t].guides=_.indexBy(U(e.guides),"id"),ue[t].state=_.indexBy(e.state,"id"),_.each(ue[t].guides,function(e,t){de[t]||(de[t]=0),de[t]++}),W()}function O(e){e&&detectMaster()&&CrossFrame.post(window.top,{type:ee,guideId:e.guideId,stepId:e.id})}function k(e){_.each(ue,function(t,n){n!==e.frameId&&CrossFrame.post(t.window(),{type:ne,guideId:e.guideId,stepId:e.stepId})}),_.each(getActiveGuides(),function(t){if(t.isShown()){var n=t.findStepById(e.stepId);n?n.hide({onlyThisFrame:!0}):t.hide()}});var t=ue[e.frameId]=ue[e.frameId]||{};t.shown=t.shown||{},t.shown[e.stepId]=!0}function G(e,t){detectMaster()?CrossFrame.post(window.top,{type:te,guideId:e.guideId,stepId:e.id,lastGuideStepSeen:lastGuideStepSeen,options:t}):_.each(ue,function(n){CrossFrame.post(n.window(),{type:ne,guideId:e.guideId,stepId:e.id,lastGuideStepSeen:lastGuideStepSeen,options:_.extend({onlyThisFrame:!0},t)}),n.shown=n.shown||{},n.shown[e.id]=!1})}function B(e){var t=pendo.findGuideById(e.guideId),n=t&&t.findStepById(e.stepId);n&&n.hide(_.extend({},{onlyThisFrame:!0},e.options)),L(e.lastGuideStepSeen);var i=ue[e.frameId];i&&(i.shown=i.shown||{},i.shown[e.stepId]=!1),startGuides()}function N(e){if(L(e.lastGuideStepSeen),e.guideId&&e.stepId){var t=pendo.findGuideById(e.guideId),n=t&&t.findStepById(e.stepId);n&&n.hide(e.options)}else hideGuides(e.options)}function L(e){e&&(e.time<=lastGuideStepSeen.time||e.state&&e.visitorId===pendo.get_visitor_id()&&(lastGuideStepSeen||(lastGuideStepSeen={}),_.extend(lastGuideStepSeen,e),_updateGuideStepStatus(lastGuideStepSeen.guideId,lastGuideStepSeen.guideStepId,lastGuideStepSeen.state),writeLastStepSeenCache(lastGuideStepSeen)))}function P(e,t){return FrameController.isConnectedToMaster?(CrossFrame.post(window.top,{type:Q,guideId:e,reason:t}),!0):!1}function R(e){pendo.showGuideById(e.guideId)}function D(e,t){function n(){var o=i.shift();return o?CrossFrame.request(o.window(),{type:Q,stepId:e.id,guideId:e.guideId,reason:t}).then(function(e){return e.error?q.reject(e.error):e.isShown?e:n()}):q.resolve({isShown:!1})}var i=_.chain(ue).filter(function(t){return t.guides&&t.guides[e.guideId]}).filter(function(e){return"hidden"!==e.visibility}).value();return n().then(function(t){var n=ue[t.frameId];return t.isShown&&n&&(n.shown[e.id]=!0),t})}function F(e){var t=findGuideById(e.guideId),n=t&&t.findStepById(e.stepId);n?(n.show(e.reason),e.reply({isShown:n.isShown()})):e.reply({isShown:!1})}function M(e){var t=_.pick(e,"id","name","launchMethod","isMultiStep","steps","attributes");return t.eligibleInFrame=e.shouldBeAddedToResourceCenter,t.steps=_.map(e.steps,function(e){return _.pick(e,"attributes","advanceMethod","id","guideId","elementPathRule","regexUrlRule","type","seenReason","seenState")}),t}function H(e){return e.steps&&e.steps.length&&"launcher"!==e.steps[0].type}function U(e){return _.chain(e).filter(H).map(M).value()}function z(e){return{id:e.id,shouldBeAddedToLauncher:e.shouldBeAddedToLauncher(),shouldBeAddedToResourceCenter:e.shouldBeAddedToResourceCenter()}}function W(){for(var e=getActiveGuides(),t=0;t<e.length;++t){var n=e[t].id;de[n]||se[n]||e.splice(t--,1)}j(ue);var i=_.chain(ue).map(function(e){return _.toArray(e.guides)}).flatten(!0).unique("id").map(GuideFactory).value();_.each(i,function(t){var n=_.find(e,function(e){return e.id===t.id});return n?void 0:void e.push(t)}),sortGuidesByPriority(e),initializeResourceCenter(activeGuides),setActiveGuides(e),0===se.length&&startGuides()}function V(e){se=_.chain(e).pluck("id").indexBy().value(),se.length=e.length,detectMaster()?x(e):W()}function j(e){var t=_.reduce(e,function(e,t){var n=get(e,"time",0),i=get(t,"lastGuideStepSeen.time",0),o=get(t,"lastGuideStepSeen.visitorId");return o!==pendo.get_visitor_id()?e:get(t,"lastGuideStepSeen.state")&&i>n?t.lastGuideStepSeen:e},null),n=get(lastGuideStepSeen,"time",0),i=get(t,"time",0);i>n&&(lastGuideStepSeen=t)}function J(){var e=Sizzle("iframe");_.each(ue,function(t){var n=_.find(e,function(e){return e.contentWindow==t.window()}),i=isElementVisible(n)?"visible":n?"hidden":"unknown";"visible"===t.visibility&&"hidden"===i&&CrossFrame.post(t.window(),{type:ne}),t.visibility=i})}var X="paused",K="slave",Z="frame:load",Y="frame:unload",$="frame:guidelist",Q="frame:showguide",ee="frame:guideshown",te="frame:guidehidden",ne="frame:hideguide",ie="frame:startpreview",oe="frame:restartpreview",re="frame:stoppreview",ae="frame:parentloaded",se={},de={},ue={},le={},ce=!1;return{init:a,stop:g,isInThisFrame:v,isInAnotherFrame:m,show:D,showGuideById:P,shown:O,hide:G,loadingGuideList:I,updateGuideList:V,getState:h,getFrameDepth:c,hasFrames:f,updateFrameVisibility:J,isShownInAnotherFrame:l,isEligibleToPlaceRcBadge:u,hideRcBadgeFromInnerFrame:d,startPreview:e,restartPreview:t,stopPreview:n,SLAVE_MODE:K};var pe}(),OBM="onboarding",all_ob_guides=[],completedGuidesSet=[],addCompletedGuides=function(e){e=[].concat(e),completedGuidesSet=_.union(completedGuidesSet,e)},wasGuideAlreadyCompleted=function(e){return _.contains(completedGuidesSet,e)},shouldSwitchToOBM=function(e){return!1},startOBM=function(){resetPendoUI(),removeLauncher();var e=pendo.guideWidget;e&&(e.hidePoweredBy=!0,e.data&&(e.data.enableSearch=!1));var t=_.extend({addHeight:70,addWidth:-10,addUISection:buildOBProgressUI},pendo.guideWidget.data);createLauncher(t,!1),dom(launcherBadge.element).addClass("onboarding"),dom(launcherTooltipDiv).addClass("onboarding setup"),autoShowLauncherList(getGuideStats()),setMode(OBM)},autoShowLauncherList=function(e){e.percentComplete>0||"yes"==agentStorage.read("launcher-closed")},buildOBProgressUI=function(e){var t=["<div class='_pendo-launcher-onboarding-progress_'>","<div class='_pendo-progress-area-inner_'>","<label class='percentComplete'></label><label>% Complete</label>","<div class='_pendo-progress-bar-outer_'>","<div class='_pendo-progress-bar-inner_'></div>","</div>","</div>","</div>"].join("");dom("._pendo-launcher-footer_",e).append(dom(t))},updateProgressUI=function(e){dom("._pendo-progress-area-inner_ label.percentComplete").html(e.percentComplete),dom("._pendo-progress-bar-inner_").css("width: "+e.percentComplete+"%")},isOB=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding},isOBAndCanShow=function(e){return isOB(e)&&isLauncher(e)},isComplete=function(e){if(wasGuideAlreadyCompleted(e))return!0;var t=_.last(e.steps);return e.steps.length>1&&"lightbox"==t.type&&(t=_.last(e.steps,2)[0]),"advanced"==t.seenState||"dismissed"==t.seenState},isSkipped=function(e){return!1},isInProgress=function(e){var t=_.pluck(e.steps,"seenState"),n=_.any(t,function(e){return"active"==e});return n?!0:2==_.size(_.uniq(t))},isNotStarted=function(e){return _.any(_.initial(_.pluck(e.steps,"seenState")),function(e){return"dismissed"==e})?!0:_.all(_.pluck(e.steps,"seenState"),function(e){return"undefined"==typeof e})},getGuideStats=function(e){e=e||all_ob_guides;var t=_.filter(e,isComplete),n=_.filter(_.without.apply(_,[e].concat(t)),isSkipped),i=_.filter(_.without.apply(_,[e].concat(t,n)),isInProgress),o=_.filter(_.without.apply(_,[e].concat(t,n,i)),isNotStarted),r={total:e.length,isCompleted:e.length==t.length+n.length,percentComplete:Math.round((t.length+n.length)/e.length*100),completed:t,skipped:n,inProgress:i,notStarted:o};return r},updateOnboardingState=function(){var e=getGuideStats(),t=dom(launcherTooltipDiv);t.removeClass("setup"),e.isCompleted?t.addClass("complete"):t.removeClass("complete")},isOnboardingCompleted=function(){var e=dom(launcherTooltipDiv);return e.hasClass("complete")},ob_proc=function(e){var t=_.filter(e,isOBAndCanShow),n=getGuideStats();addCompletedGuides(n.completed),updateProgressUI(n),updateLauncherOnboardingContent(t),updateLauncher=function(){return!0},defaultLoopProc(e),dom(launcherTooltipDiv).hasClass("setup")||isOnboardingCompleted()||!n.isCompleted||(updateOnboardingState(),onboardingHasCompleted())};registerMode(OBM,ob_proc);var updateLauncherOnboardingContent=function(e){var t=Sizzle("._pendo-launcher_ ._pendo-launcher-guide-listing_");return t.length?(t=t[0],_.map(e,function(e){addLauncherItem(t,e)}),e.length):(log("missing luancher body","launcher","guides"),!1)},pickStatusToUse=function(e,t){return"complete"==e?"complete":t},handleGuideStatusChanges=function(e,t,n){n!=t&&"complete"==n&&guideHasCompleted(e),n!=t&&"skipped"==n&&guideWasSkipped(e)},guideWasSkipped=function(e){guideDone(e)},guideHasCompleted=function(e){guideDone(e)},guideDone=function(e){expandLauncherList()},addLauncherItem=function(e,t){var n,i=getOnboardingState(t),o=Sizzle("#launcher-"+t.id);if(o.length){n=o[0];var r=getOnboardingClass(n),a=pickStatusToUse(r,i);if(r!=a){var s=dom(n);s.removeClass(makeOBClass("bad")),s.removeClass(makeOBClass(r)),s.addClass(makeOBClass(a))}handleGuideStatusChanges(t,r,i)}else n=buildLauncherItem(t),dom(n).addClass(makeOBClass(i)),e.appendChild(n);return addItemState(t,i,n),n},addItemState=function(e,t,n){var i,o=Sizzle("._pendo-launcher-item-status_",n);o.length?i=o[0]:(i=dom("<div class='_pendo-launcher-item-status_'></div>")[0],n.appendChild(i));var r;r="skipped"==t?"Task Skipped":"in-progress"==t?"Task in Progress ("+renderStepPosition(null,e)+")":"",dom(i).html(r)},makeOBClass=function(e){return"_pendo-onboarding-status-"+e+"_"},getOnboardingState=function(e){return isComplete(e)?"complete":isSkipped(e)?"skipped":isInProgress(e)?"in-progress":isNotStarted(e)?"not-started":"bad"},getOnboardingClass=function(e){var t=["complete","skipped","in-progress","not-started"];return e?_.find(t,function(t){return dom(e).hasClass(makeOBClass(t))}):null},getActiveGuide=function(){var e,t,n,i=_.find(getActiveGuides(),function(e){return e.isShown()});return i?(e=_.find(i.steps,function(e,t){return n=t,e.isShown()}),t=_.filter(i.steps,function(e,t){return e.isShown()}),{guide:i,steps:t,step:e,stepIndex:n}):null},smartNextStep=function(e){var t=getActiveGuide();if(t){var n=t.guide.steps[t.stepIndex+1],i=function(){var e=Sizzle(n.elementPathRule);0!==e.length&&pendo._.some(e,isElementVisible)?pendo.onGuideAdvanced(t.step):pendo.onGuideAdvanced(n)};e=e||0,setTimeout(i,e)}},advanceOn=function(e,t){var n=getActiveGuide();t=t||n.step.elementPathRule;var i=Sizzle(t)[0],o=function(){pendo.onGuideAdvanced(),detachEvent(i,e,o,!0)};attachEvent(i,e,o,!0)},smartFirstStep=function(){dom("._pendo-guide_").css("display:none;");var e=pendo.getCurrentUrl(),t=getActiveGuide(),n=t.guide.steps,i=_.filter(_.rest(n),function(e){return!!e.pageId}),o=_.indexOf(n,_.find(i,function(t){return pendo.testUrlForStep(t.regexUrlRule,e)}));if(log("startingPoint is "+o),-1==o)return void dom("._pendo-guide_").css("display:block;");var r=n[Math.max(0,o-1)];pendo.log("found starting step to be "+r.id),pendo.onGuideAdvanced(r)},renderStepPosition=function(e,t,n){if(t){if(!n){var i=[].concat(t.steps).reverse();n=_.findWhere(i,{seenState:"active"})}}else{var o=getActiveGuide();if(!o)return;t=o.guide,n=o.step}e=e||"Step <%= currPos %> of <%= total %>",e=_.template(e);var r={currPos:t.getPositionOfStep(n),total:t.getTotalSteps()};return e(r)};pendo.guideDev={getActiveGuide:getActiveGuide,smartNextStep:smartNextStep,smartFirstStep:smartFirstStep,advanceOn:advanceOn,renderStepPosition:renderStepPosition},pendo.badgesShown={};var BADGE_CSS_NAME="_pendo-badge_",getElementForBadge=getElementForTargeting;Badge.create=function(e){var t=Badge.findStep(e);return t?_.reduce(Badge.behaviors,function(n,i){return i.call(n,e,t)},e.attributes.badge):void 0},Badge.findStep=function(e){var t=_.find(e.steps,function(e){return!!e.elementPathRule});return t&&e.attributes&&e.attributes.badge?t:void 0},Badge.behaviors=[Wrappable,Badge,InlinePosition,AbsolutePosition,ClickActivation,HoverActivation,ShowOnHover];var placeBadge=function(e,t){t=t||pendo.badgesShown;var n=t[e.id],i=n?n.step():Badge.findStep(e);if(i){var o=n?n.target():getElementForBadge(i),r=get(e,"attributes.resourceCenter");(!r||FrameController.isEligibleToPlaceRcBadge())&&(!r||e.hasResourceCenterContent)&&(BuildingBlockResourceCenter.updateNotificationBubbles(),i.elementPathRule&&pendo.isElementVisible(o)&&pendo.Sizzle.matchesSelector(o,i.elementPathRule)?(n||(n=Badge.create(e)),!detectMaster()&&r&&t[e.id]&&FrameController.hideRcBadgeFromInnerFrame(),n.show(),t[e.id]=n):n&&(i.isShown()||(i.overrideElement=undefined,t[e.id]=undefined,n.hide())))}},removeAllBadges=function(){_.map(pendo.badgesShown,removeBadge),pendo.badgesShown={}},removeBadge=function(e){e&&_.isFunction(e.hide)&&e.hide()},removeBadgeForGuide=function(e){var t=pendo.badgesShown[e.id];t&&removeBadge(t)},adjustBadgesForResize=function(e){debug("adjustBadgesForResize firing"),_.map(pendo.badgesShown,function(e){e&&e.show()})};attachEvent(window,"resize",_.debounce(adjustBadgesForResize,50)),pendo.TOOLTIP_DEFAULT_WIDTH=430,pendo.TOOLTIP_DEFAULT_HEIGHT=200,pendo.TOOLTIP_ARROW_SIZE=15;var TOOLTIP_CSS_NAME="_pendo-guide-tt_",MOBILE_TOOLTIP_CSS_NAME="_pendo-guide-mobile-tt_",lastElementPos=null,buildTooltipCSSName=function(){return isMobileUserAgent()?MOBILE_TOOLTIP_CSS_NAME:TOOLTIP_CSS_NAME},buildTooltipCSSSelector=function(e){return"#_pendo_g_"+e.id},createTooltipGuide=function(e,t){lastElementPos=null;var n=getOffsetPosition(e);if(0===n.height&&0===n.width)return null;var i=t.guideElement,o=t.attributes.height,r=t.attributes.width,a=t.attributes.layoutDir;i.addClass(buildTooltipCSSName());var s=getTooltipDimensions(n,o,r,a);return t&&(t.dim=s),i.css({width:s.width,height:s.height,left:s.left,top:s.top}),n.fixed&&i.css({position:"fixed"}),dom("._pendo-guide-container_",i).addClass(s.arrowPosition).css({top:s.content.top,left:s.content.left,width:s.content.width,height:s.content.height}),buildAndAppendArrow(i[0],s),i[0]},buildAndAppendArrow=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",o=i+"border-",r=t.arrowPosition,a=_.chain(n).filter(function(e){return e!==r}).map(function(e){return"border-"+e+"-width:"+pendo.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=dom("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=dom("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");_.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),d.removeClass(o+e+"_").removeClass(e)}),s.addClass(i+r+"_").addClass(r).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),d.addClass(o+r+"_").addClass(r).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),dom(e).append(s).append(d)},showTooltipGuide=function(e,t){if(!canTooltipStepBeShown(e))return null;t===undefined&&(t=activeElements),e.element=getElementForGuideStep(e);var n=e.element;if(!n)return log("No element found for step: "+e.id),null;scrollIntoView(n);var i=createTooltipGuide(n,e);return null===i?null:(i.id=pendo.getTooltipDivId(e),addCloseButton(i,function(){var t=e.getGuide();(!t.isOnboarding()||confirm("Are you sure you want to stop this tutorial?"))&&pendo.onGuideDismissed(e)}),e.hideCredits||pendo._addCredits(i),dom(i).appendTo(getGuideAttachPoint()),t.push(i),attachEvent(i,"mouseover",pendo._.partial(dom.addClass,i,"mouseover")),attachEvent(i,"mouseout",pendo._.partial(dom.removeClass,i,"mouseover")),scrollToTooltip(n,i),addBlockOutUI(e),n)},isLessThan=function(e,t){return t>e},isGreaterThan=_.negate(isLessThan),lastBlockBox=null,hasBlockBoxChanged=function(e){var t=!_.isEqual(e,lastBlockBox);return lastBlockBox=e,t},lastBodySize=null,hasBodyDimensionsChanged=function(e){var t=!_.isEqual(e,lastBodySize);return lastBodySize=e,t},lastScreenCoords=null,haveScreenCoordsChanged=function(e){var t=!_.isEqual(e,lastScreenCoords);return lastScreenCoords=e,t},addBlockOutUI=function(e){try{if(!e.attributes||!e.attributes.blockOutUI||!e.attributes.blockOutUI.enabled)return;var t=e.attributes.blockOutUI,n=[];n.push(e.element),n=n.concat(_.compact(_.flatten(_.map([].concat(t.additionalElements),function(e){return Sizzle(e)}))));var i=computeBlockOutBoundingBox(n),o=t.padding||0,r=getClientRect(getBody());i.fixed&&(r.top=0,r.bottom=r.height,r.left=0,r.right=r.width);var a=computeBlockOutOverlayPositions(r,i,o);if(!hasBlockBoxChanged(i)&&!hasBodyDimensionsChanged(r)&&!haveScreenCoordsChanged(a))return;var s={"z-index":t.zindex||1e4,position:"fixed"};t.bgColor&&(s["background-color"]=t.bgColor),t.opacity&&(s.opacity=t.opacity);var d=dom("body");_.each(a,function(e,t){d.append(buildBackdropDiv(t,_.extend({},e,s)))})}catch(u){log("Failed to add BlockOut ui","error")}},buildBackdropDiv=function(e,t){var n=dom("div._pendo-guide-tt-region-block_._pendo-region-"+e+"_");return n=n.length>0?n[0]:dom('<div class="_pendo-guide-tt-region-block_ _pendo-region-'+e+'_"></div>'),dom(n).css(t),n},checkPlacementChanged=function(e){var t=_.isEqual(e,lastElementPos);return lastElementPos=e,!t},placeTooltip=function(e){var t=getElementForGuideStep(e),n=getOffsetPosition(t);if(addBlockOutUI(e),checkPlacementChanged(n)){var i=e.attributes.height,o=e.attributes.width,r=e.attributes.layoutDir,a=getTooltipDimensions(n,i,o,r),s=dom(buildTooltipCSSSelector(e));s.css({top:a.top,left:a.left,position:n.fixed?"fixed":""}),buildAndAppendArrow(s,a)}},getTooltipDimensions=function(e,t,n,i){var o=pendo.TOOLTIP_ARROW_SIZE,r={arrow:{border:{}},content:{top:o,left:o}},a=pendo._get_screen_dim();return r.width=Math.min(n,a.width),r.height=t,r.content.width=r.width-2*o,r.content.height=r.height-2*o,i||(i="auto"),r=determineHorizontalBias(r,e,a,i),r=determineArrowPosition(r,e,a,i),r=buildArrowDimensions(r,e,a)},determineHorizontalBias=function(e,t,n,i){if("right"==i||"left"==i)return pendo.log("Setting layout position to "+i),e.arrow.hbias=i,e;var o=n.width/3,r=[o,2*o];return r[0]<t.left&&t.left<r[1]?e.arrow.hbias="center":t.left<n.width/2?e.arrow.hbias="left":e.arrow.hbias="right",e},determineArrowPosition=function(e,t,n,i){if(i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),!e.arrowPosition){var o=t.top-documentScrollTop(),r=t.left-documentScrollLeft(),a=r+t.width;o<n.height/3?e.arrowPosition="top":o>2*n.height/3||"center"==e.arrow.hbias?e.arrowPosition="bottom":r<e.width&&n.width-a<e.width?e.arrowPosition="top":e.arrowPosition=e.arrow.hbias}return e},buildArrowDimensions=function(e,t,n){var i=e.height,o=e.width;if(isBrowserInQuirksmode())return buildArrowDimensionsQM(e,t,n);if("top"==e.arrowPosition||"bottom"==e.arrowPosition){var r=10,a=0;"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=isOldIE(9,6)?6:2,a=-1):"bottom"==e.arrowPosition&&(e.top=t.top-i,e.arrow.top=i-pendo.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=isOldIE(9,6)?6:0,e.arrow.top+=8==msie?-1:0,a=1);var s=r+pendo.TOOLTIP_ARROW_SIZE,d=o-3*pendo.TOOLTIP_ARROW_SIZE-r;if("left"==e.arrow.hbias?(e.left=t.left+t.width/2-(r+2*pendo.TOOLTIP_ARROW_SIZE),e.arrow.left=s):"right"==e.arrow.hbias?(e.left=t.left-o+t.width/2+(r+2*pendo.TOOLTIP_ARROW_SIZE),e.arrow.left=d):(e.left=t.left+t.width/2-o/2,e.arrow.left=o/2-pendo.TOOLTIP_ARROW_SIZE),e.arrow.floating!==!1){var u=e.left+o-n.width;u-=Math.max(0,e.arrow.left+u-d),u>0&&(e.left-=u,e.arrow.left+=u);var l=-e.left;l-=Math.max(0,s-(e.arrow.left-l)),l>0&&(e.left+=l,e.arrow.left-=l)}return e.arrow.border.top=e.arrow.top+a,e.arrow.border.left=e.arrow.left,e}return"left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=isOldIE(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-o),e.arrow.left=o-pendo.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=isOldIE(10,6)?5:0,e.arrow.left+=7==msie&&trident>=6?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-i/2+t.height/2,e.arrow.top=i/2-pendo.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top,e};pendo.LB_DEFAULT_WIDTH=500,pendo.LB_DEFAULT_HEIGHT=500;var LIGHTBOX_CSS_NAME="_pendo-guide-lb_",canLightboxStepBeShown=function(e){return canStepBeRendered(e)},addOverlay=function(e,t){var n=!!pendo.dom("._pendo-backdrop_")[0];return get(t,"overlayDiv[0]")||(t.overlayDiv=dom("<div/>").addClass("_pendo-backdrop_")),n===!1&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(getGuideAttachPoint())),isBrowserInQuirksmode()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&dom(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},renderLightboxGuide=function(e){var t=e.guideElement,n=pendo.TOOLTIP_ARROW_SIZE,i=e.attributes.height,o=e.attributes.width,r=Math.floor(o/2),a=Math.floor(i/2);t.addClass(LIGHTBOX_CSS_NAME).css({top:"50%",left:"50%","margin-top":-a,"margin-left":-r}),dom("._pendo-guide-container_",t).css({bottom:n,right:n}),isBrowserInQuirksmode()&&t.css({position:"absolute"})},showLightboxGuide=function(e,t){if(!canLightboxStepBeShown(e))return null;t===undefined&&(t=activeElements),e.element=getElementForGuideStep(e),renderLightboxGuide(e);var n=e.getGuide()?e.getGuide().isOnboarding():!1;addOverlay(n,e);var i=e.guideElement;t.push(i[0]),i.appendTo(getGuideAttachPoint())},MOBILE_LIGHTBOX_CSS_NAME="_pendo-guide-mobile-lb_",renderMobileLightboxGuide=function(e){var t=e.guideElement;t.addClass(MOBILE_LIGHTBOX_CSS_NAME)},showMobileLightboxGuide=function(e,t){function n(e){e.preventDefault()}if(!canLightboxStepBeShown(e))return null;t===undefined&&(t=activeElements),e.element=getElementForGuideStep(e),renderMobileLightboxGuide(e);var i=e.getGuide()?e.getGuide().isOnboarding():!1,o=addOverlay(i,e),r=e.guideElement,a=pendo.TOOLTIP_ARROW_SIZE;r.css({width:"",height:""});var s=dom("._pendo-guide-container_",r).css({bottom:a,right:a});dom("._pendo-close-guide_",r).remove().prependTo(s),r.appendTo(getGuideAttachPoint()),t.push(r[0]),attachEvent(o[0],"touchmove",n),attachEvent(r[0],"touchmove",n)},LAUNCHER_SEARCHING_CLASS="_pendo-launcher-searching_",SEARCHBOX_CSS_NAME="_pendo-launcher-search-box_",SEARCHBOX_CSS_SELECTOR="."+SEARCHBOX_CSS_NAME+" input",LAUNCHER_DEFAULT_WIDTH=330,LAUNCHER_DEFAULT_HEIGHT=310,launcherBadge=null,launcherTooltipDiv=null,isPreventLauncher=!1,launcherHash=null,launcherActiveClass="_pendo-launcher-active_",launcherElement=null,defaultLauncherTemplate=function(){return""};pendo.defaultLauncher=function(e,t){defaultLauncherTemplate=t},Launcher.create=function(e){return _.reduce(Launcher.behaviors,function(e,t){return t.call(e)},e)},Launcher.behaviors=[Wrappable,Launcher,ContentValidation.Launcher,LauncherSearch,Onboarding,WhatsNewList];var removeLauncher=function(){launcherTooltipDiv&&(dom.removeNode(launcherTooltipDiv),launcherTooltipDiv=null),launcherElement&&(launcherElement.dispose(),launcherElement=null),launcherBadge&&(launcherBadge.dispose(),launcherBadge=null)},showHideLauncher=function(){isLauncherOnElement()||!doesLauncherHaveGuides()&&!launcherHasActiveSearch()?hideLauncher():showLauncher()},showLauncher=function(){launcherBadge&&launcherBadge.show()},hideLauncher=function(){isLauncherOnElement()||collapseLauncherList(),launcherBadge&&launcherBadge.hide()},isLauncher=function(e){return e&&_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&e.launchMethod.indexOf("launcher")>=0},isLauncherOnElement=function(){return pendo.guideWidget&&pendo.guideWidget.data&&"element"===pendo.guideWidget.data.launchType?!0:!1},updateLauncher=function(e,t){return pendo.guideWidget&&_.isFunction(pendo.guideWidget.update)?pendo.guideWidget.update(e,t):void 0},getLauncherContext=function(e){var t=getMetadata();_.isObject(t)||(t=prepareOptions());var n=_.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:escapeStringsInObject(t)},pendo.guideWidget);return n.data=_.extend({},n.data),e&&(n.guides=e),n},buildLauncherItem=function(e){var t=document.createElement("div");dom(t).addClass("_pendo-launcher-item_"),dom(t).attr("id","launcher-"+e.id);var n=document.createElement("a");return n.href="#",n.innerHTML=e.name,t.appendChild(n),t},addGuideToLauncher=_.compose(showHideLauncher,function(e,t){if(isLauncher(e)){var n=Sizzle("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0];if(n){var i,o=Sizzle("#launcher-"+e.id);if(i=o.length?o[0]:buildLauncherItem(e),o=o.length>0,_.isNumber(t)){var r=Sizzle("._pendo-launcher-item_");r[t]?i.id!=r[t].id&&n.insertBefore(i,r[t]):n.appendChild(i)}else n.appendChild(i)}}}),isLauncherAvailable=function(){return!!launcherTooltipDiv&&!isPreventLauncher},isLauncherVisible=function(){var e=dom(launcherTooltipDiv);return e.hasClass(launcherActiveClass)},doesLauncherHaveGuides=function(){return Sizzle("._pendo-launcher-item_").length>0},collapseLauncherList=function(){var e=dom(launcherTooltipDiv);e.hasClass(launcherActiveClass)&&(e.removeClass(launcherActiveClass),launcherBadge&&launcherBadge.setActive(!1))},expandLauncherList=function(){var e=dom(launcherTooltipDiv);e.hasClass(launcherActiveClass)||(e.addClass(launcherActiveClass),launcherBadge&&launcherBadge.setActive(!0))},toggleLauncher=function(){isLauncherAvailable()&&(isLauncherVisible()?collapseLauncherList():expandLauncherList())},initLauncher=function(){try{var e=pendo.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};if(removeLauncher(),!isMobileUserAgent()&&!n.desktop)return;if(isMobileUserAgent()&&!n.mobile)return;if(detectMaster()&&!n.iframe)return;e.enabled&&(createLauncher(t),hideLauncher(),shouldSwitchToOBM()&&startOBM())}catch(i){writeException(i,"ERROR while initializing launcher")}},JWT=function(){function e(e){try{return JSON.parse(atob(e.split(".")[1]))}catch(t){return null}}function t(e){return _.isString(e)?/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e):!1}function n(e,n){return n=n?n+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(debug(n+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(debug(n+"The signingKeyName is supplied but missing jwt."),!1):t(e.jwt)?!0:(debug(n+"The jwt is invalid."),!1):(debug(n+"Missing jwt and signingKeyName."),!1)}function i(t,i){if(i=i||"",!getPendoConfigValue("enableSignedMetadata"))return!1;var o=n(t,i);return getPendoConfigValue("requireSignedMetadata")&&!o?(debug("Pendo will not "+i+"."),!1):o?e(t.jwt):void debug("JWT is enabled but not being used, falling back to unsigned metadata.")}return{getJwtOptions:i}}();(function(){function e(e,t){var n=e.split("."),i=h;!(n[0]in i)&&i.execScript&&i.execScript("var "+n[0]);for(var o;n.length&&(o=n.shift());)n.length||t===p?i=i[o]?i[o]:i[o]={}:i[o]=t}function t(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(g?Uint8Array:Array)?e:new(g?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&n(this)}function n(e){var t,n=e.buffer,i=n.length,o=new(g?Uint8Array:Array)(i<<1);if(g)o.set(n);else for(t=0;i>t;++t)o[t]=n[t];return e.buffer=o}function i(e){this.buffer=new(g?Uint16Array:Array)(2*e),this.length=0}function o(e,t){this.d=E,this.i=0,this.input=g&&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=g&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex&&(this.c=t.outputIndex)),this.a||(this.a=new(g?Uint8Array:Array)(32768))}function r(e,t){this.length=e,this.k=t}function a(e,t){function n(e,t){var n,i=e.k,o=[],r=0;n=I[e.length],o[r++]=65535&n,o[r++]=n>>16&255,o[r++]=n>>24;var a;switch(f){case 1===i:a=[0,i-1,0];break;case 2===i:a=[1,i-2,0];break;case 3===i:a=[2,i-3,0];break;case 4===i:a=[3,i-4,0];break;case 6>=i:a=[4,i-5,1];break;case 8>=i:a=[5,i-7,1];break;case 12>=i:a=[6,i-9,2];break;case 16>=i:a=[7,i-13,2];break;case 24>=i:a=[8,i-17,3];break;case 32>=i:a=[9,i-25,3];break;case 48>=i:a=[10,i-33,4];break;case 64>=i:a=[11,i-49,4];break;case 96>=i:a=[12,i-65,5];break;case 128>=i:a=[13,i-97,5];break;case 192>=i:a=[14,i-129,6];break;case 256>=i:a=[15,i-193,6];break;case 384>=i:a=[16,i-257,7];break;case 512>=i:a=[17,i-385,7];break;case 768>=i:a=[18,i-513,8];break;case 1024>=i:a=[19,i-769,8];break;case 1536>=i:a=[20,i-1025,9];break;case 2048>=i:a=[21,i-1537,9];break;case 3072>=i:a=[22,i-2049,10];break;case 4096>=i:a=[23,i-3073,10];break;case 6144>=i:a=[24,i-4097,11];break;case 8192>=i:a=[25,i-6145,11];break;case 12288>=i:a=[26,i-8193,12];break;case 16384>=i:a=[27,i-12289,12];break;case 24576>=i:a=[28,i-16385,13];break;case 32768>=i:a=[29,i-24577,13];break;default:throw"invalid distance"}n=a,o[r++]=n[0],o[r++]=n[1],o[r++]=n[2];var s,d;for(s=0,d=o.length;d>s;++s)m[b++]=o[s];_[o[0]]++,w[o[3]]++,y=e.length+t-1,c=null}var i,o,r,a,d,u,l,c,h,v={},m=g?new Uint16Array(2*t.length):[],b=0,y=0,_=new(g?Uint32Array:Array)(286),w=new(g?Uint32Array:Array)(30),S=e.i;if(!g){for(r=0;285>=r;)_[r++]=0;for(r=0;29>=r;)w[r++]=0}for(_[256]=1,i=0,o=t.length;o>i;++i){for(r=d=0,a=3;a>r&&i+r!==o;++r)d=d<<8|t[i+r];if(v[d]===p&&(v[d]=[]),u=v[d],!(0<y--)){for(;0<u.length&&32768<i-u[0];)u.shift();if(i+3>=o){for(c&&n(c,-1),r=0,a=o-i;a>r;++r)h=t[i+r],m[b++]=h,++_[h];break}0<u.length?(l=s(t,i,u),c?c.length<l.length?(h=t[i-1],m[b++]=h,++_[h],n(l,0)):n(c,-1):l.length<S?c=l:n(l,0)):c?n(c,-1):(h=t[i],m[b++]=h,++_[h])}u.push(i)}return m[b++]=256,_[256]++,e.m=_,e.l=w,g?m.subarray(0,b):m}function s(e,t,n){var i,o,a,s,d,u,l=0,c=e.length;s=0,u=n.length;e:for(;u>s;s++){if(i=n[u-s-1],a=3,l>3){for(d=l;d>3;d--)if(e[i+d-1]!==e[t+d-1])continue e;a=l}for(;258>a&&c>t+a&&e[i+a]===e[t+a];)++a;if(a>l&&(o=i,l=a),258===a)break}return new r(l,t-o)}function d(e,t){var n,o,r,a,s,d=e.length,l=new i(572),c=new(g?Uint8Array:Array)(d);if(!g)for(a=0;d>a;a++)c[a]=0;for(a=0;d>a;++a)0<e[a]&&l.push(a,e[a]);if(n=Array(l.length/2),o=new(g?Uint32Array:Array)(l.length/2),1===n.length)return c[l.pop().index]=1,c;for(a=0,s=l.length/2;s>a;++a)n[a]=l.pop(),o[a]=n[a].value;for(r=u(o,o.length,t),a=0,s=n.length;s>a;++a)c[n[a].index]=r[a];return c}function u(e,t,n){function i(e){var n=f[e][h[e]];n===t?(i(e+1),i(e+1)):--c[n],++h[e]}var o,r,a,s,d,u=new(g?Uint16Array:Array)(n),l=new(g?Uint8Array:Array)(n),c=new(g?Uint8Array:Array)(t),p=Array(n),f=Array(n),h=Array(n),v=(1<<n)-t,m=1<<n-1;for(u[n-1]=t,r=0;n>r;++r)m>v?l[r]=0:(l[r]=1,v-=m),v<<=1,u[n-2-r]=(u[n-1-r]/2|0)+t;for(u[0]=l[0],p[0]=Array(u[0]),f[0]=Array(u[0]),r=1;n>r;++r)u[r]>2*u[r-1]+l[r]&&(u[r]=2*u[r-1]+l[r]),p[r]=Array(u[r]),f[r]=Array(u[r]);for(o=0;t>o;++o)c[o]=n;for(a=0;a<u[n-1];++a)p[n-1][a]=e[a],f[n-1][a]=a;for(o=0;n>o;++o)h[o]=0;for(1===l[n-1]&&(--c[0],++h[n-1]),r=n-2;r>=0;--r){for(s=o=0,d=h[r+1],a=0;a<u[r];a++)s=p[r+1][d]+p[r+1][d+1],s>e[o]?(p[r][a]=s,f[r][a]=t,d+=2):(p[r][a]=e[o],f[r][a]=o,++o);h[r]=0,1===l[r]&&i(r)}return c}function l(e){var t,n,i,o,r=new(g?Uint16Array:Array)(e.length),a=[],s=[],d=0;for(t=0,n=e.length;n>t;t++)a[e[t]]=(0|a[e[t]])+1;for(t=1,n=16;n>=t;t++)s[t]=d,d+=0|a[t],d<<=1;for(t=0,n=e.length;n>t;t++)for(d=s[e[t]],s[e[t]]+=1,i=r[t]=0,o=e[t];o>i;i++)r[t]=r[t]<<1|1&d,d>>>=1;return r}function c(e,t){this.input=e,this.a=new(g?Uint8Array:Array)(32768),this.d=A.g;var n,i={};!t&&(t={})||"number"!=typeof t.compressionType||(this.d=t.compressionType);for(n in t)i[n]=t[n];i.outputBuffer=this.a,this.j=new o(this.input,i)}var p=void 0,f=!0,h=this,g="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;t.prototype.b=function(e,t,i){var o,r=this.buffer,a=this.index,s=this.e,d=r[a];if(i&&t>1&&(e=t>8?(w[255&e]<<24|w[e>>>8&255]<<16|w[e>>>16&255]<<8|w[e>>>24&255])>>32-t:w[e]>>8-t),8>t+s)d=d<<t|e,s+=t;else for(o=0;t>o;++o)d=d<<1|e>>t-o-1&1,8===++s&&(s=0,r[a++]=w[d],d=0,a===r.length&&(r=n(this)));r[a]=d,this.buffer=r,this.e=s,this.index=a},t.prototype.finish=function(){var e,t=this.buffer,n=this.index;return 0<this.e&&(t[n]<<=8-this.e,t[n]=w[t[n]],n++),g?e=t.subarray(0,n):(t.length=n,e=t),e};var v,m=new(g?Uint8Array:Array)(256);
for(v=0;256>v;++v){for(var b=v,y=b,_=7,b=b>>>1;b;b>>>=1)y<<=1,y|=1&b,--_;m[v]=(y<<_&255)>>>0}var w=m;i.prototype.getParent=function(e){return 2*((e-2)/4|0)},i.prototype.push=function(e,t){var n,i,o,r=this.buffer;for(n=this.length,r[this.length++]=t,r[this.length++]=e;n>0&&(i=this.getParent(n),r[n]>r[i]);)o=r[n],r[n]=r[i],r[i]=o,o=r[n+1],r[n+1]=r[i+1],r[i+1]=o,n=i;return this.length},i.prototype.pop=function(){var e,t,n,i,o,r=this.buffer;for(t=r[0],e=r[1],this.length-=2,r[0]=r[this.length],r[1]=r[this.length+1],o=0;(i=2*o+2,!(i>=this.length))&&(i+2<this.length&&r[i+2]>r[i]&&(i+=2),r[i]>r[o]);)n=r[o],r[o]=r[i],r[i]=n,n=r[o+1],r[o+1]=r[i+1],r[i+1]=n,o=i;return{index:e,value:t,length:this.length}};var S,E=2,C={NONE:0,h:1,g:E,n:3},T=[];for(S=0;288>S;S++)switch(f){case 143>=S:T.push([S+48,8]);break;case 255>=S:T.push([S-144+400,9]);break;case 279>=S:T.push([S-256+0,7]);break;case 287>=S:T.push([S-280+192,8]);break;default:throw"invalid literal: "+S}o.prototype.f=function(){var e,n,i,o,r=this.input;switch(this.d){case 0:for(i=0,o=r.length;o>i;){n=g?r.subarray(i,i+65535):r.slice(i,i+65535),i+=n.length;var s=n,u=i===o,c=p,h=p,v=p,m=p,b=p,y=this.a,_=this.c;if(g){for(y=new Uint8Array(this.a.buffer);y.length<=_+s.length+5;)y=new Uint8Array(y.length<<1);y.set(this.a)}if(c=u?1:0,y[_++]=0|c,h=s.length,v=~h+65536&65535,y[_++]=255&h,y[_++]=h>>>8&255,y[_++]=255&v,y[_++]=v>>>8&255,g)y.set(s,_),_+=s.length,y=y.subarray(0,_);else{for(m=0,b=s.length;b>m;++m)y[_++]=s[m];y.length=_}this.c=_,this.a=y}break;case 1:var w=new t(g?new Uint8Array(this.a.buffer):this.a,this.c);w.b(1,1,f),w.b(1,2,f);var S,C,x,I=a(this,r);for(S=0,C=I.length;C>S;S++)if(x=I[S],t.prototype.b.apply(w,T[x]),x>256)w.b(I[++S],I[++S],f),w.b(I[++S],5),w.b(I[++S],I[++S],f);else if(256===x)break;this.a=w.finish(),this.c=this.a.length;break;case E:var A,O,k,G,B,N,L,P,R,D,F,M,H,U,z,W=new t(g?new Uint8Array(this.a.buffer):this.a,this.c),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19);for(A=E,W.b(1,1,f),W.b(A,2,f),O=a(this,r),N=d(this.m,15),L=l(N),P=d(this.l,7),R=l(P),k=286;k>257&&0===N[k-1];k--);for(G=30;G>1&&0===P[G-1];G--);var J,q,X,K,Z,Y,$=k,Q=G,ee=new(g?Uint32Array:Array)($+Q),te=new(g?Uint32Array:Array)(316),ne=new(g?Uint8Array:Array)(19);for(J=q=0;$>J;J++)ee[q++]=N[J];for(J=0;Q>J;J++)ee[q++]=P[J];if(!g)for(J=0,K=ne.length;K>J;++J)ne[J]=0;for(J=Z=0,K=ee.length;K>J;J+=q){for(q=1;K>J+q&&ee[J+q]===ee[J];++q);if(X=q,0===ee[J])if(3>X)for(;0<X--;)te[Z++]=0,ne[0]++;else for(;X>0;)Y=138>X?X:138,Y>X-3&&X>Y&&(Y=X-3),10>=Y?(te[Z++]=17,te[Z++]=Y-3,ne[17]++):(te[Z++]=18,te[Z++]=Y-11,ne[18]++),X-=Y;else if(te[Z++]=ee[J],ne[ee[J]]++,X--,3>X)for(;0<X--;)te[Z++]=ee[J],ne[ee[J]]++;else for(;X>0;)Y=6>X?X:6,Y>X-3&&X>Y&&(Y=X-3),te[Z++]=16,te[Z++]=Y-3,ne[16]++,X-=Y}for(e=g?te.subarray(0,Z):te.slice(0,Z),D=d(ne,7),U=0;19>U;U++)j[U]=D[V[U]];for(B=19;B>4&&0===j[B-1];B--);for(F=l(D),W.b(k-257,5,f),W.b(G-1,5,f),W.b(B-4,4,f),U=0;B>U;U++)W.b(j[U],3,f);for(U=0,z=e.length;z>U;U++)if(M=e[U],W.b(F[M],D[M],f),M>=16){switch(U++,M){case 16:H=2;break;case 17:H=3;break;case 18:H=7;break;default:throw"invalid code: "+M}W.b(e[U],H,f)}var ie,oe,re,ae,se,de,ue,le,ce=[L,N],pe=[R,P];for(se=ce[0],de=ce[1],ue=pe[0],le=pe[1],ie=0,oe=O.length;oe>ie;++ie)if(re=O[ie],W.b(se[re],de[re],f),re>256)W.b(O[++ie],O[++ie],f),ae=O[++ie],W.b(ue[ae],le[ae],f),W.b(O[++ie],O[++ie],f);else if(256===re)break;this.a=W.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var x=function(){function e(e){switch(f){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 12>=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}var t,n,i=[];for(t=3;258>=t;t++)n=e(t),i[t]=n[2]<<24|n[1]<<16|n[0];return i}(),I=g?new Uint32Array(x):x,A=C;c.prototype.f=function(){var e,t,n,i,o,r,a=0;switch(r=this.a,e=Math.LOG2E*Math.log(32768)-8,t=e<<4|8,r[a++]=t,this.d){case A.NONE:i=0;break;case A.h:i=1;break;case A.g:i=2;break;default:throw Error("unsupported compression type")}n=i<<6|0,r[a++]=n|31-(256*t+n)%31;var s=this.input;if("string"==typeof s){var d,u,l=s.split("");for(d=0,u=l.length;u>d;d++)l[d]=(255&l[d].charCodeAt(0))>>>0;s=l}for(var c,p=1,f=0,h=s.length,v=0;h>0;){c=h>1024?1024:h,h-=c;do p+=s[v++],f+=p;while(--c);p%=65521,f%=65521}return o=(f<<16|p)>>>0,this.j.c=a,r=this.j.f(),a=r.length,g&&(r=new Uint8Array(r.buffer),r.length<=a+4&&(this.a=new Uint8Array(r.length+4),this.a.set(r),r=this.a),r=r.subarray(0,a+4)),r[a++]=o>>24&255,r[a++]=o>>16&255,r[a++]=o>>8&255,r[a++]=255&o,r},e("Zlib.Deflate",c),e("Zlib.Deflate.compress",function(e,t){return new c(e,t).f()}),e("Zlib.Deflate.prototype.compress",c.prototype.f);var O,k,G,B,N={NONE:A.NONE,FIXED:A.h,DYNAMIC:A.g};if(Object.keys)O=Object.keys(N);else for(k in O=[],G=0,N)O[G++]=k;for(G=0,B=O.length;B>G;++G)k=O[G],e("Zlib.Deflate.CompressionType."+k,N[k])}).call(pendo),function(){function e(e,n){var i=e.split("."),o=t;!(i[0]in o)&&o.execScript&&o.execScript("var "+i[0]);for(var r;i.length&&(r=i.shift());)i.length||void 0===n?o=o[r]?o[r]:o[r]={}:o[r]=n}var t=this,n={c:function(e,t,i){return n.update(e,0,t,i)},update:function(e,t,i,o){var r=n.a,a="number"==typeof i?i:i=0,s="number"==typeof o?o:e.length;for(t^=4294967295,a=7&s;a--;++i)t=t>>>8^r[255&(t^e[i])];for(a=s>>3;a--;i+=8)t=t>>>8^r[255&(t^e[i])],t=t>>>8^r[255&(t^e[i+1])],t=t>>>8^r[255&(t^e[i+2])],t=t>>>8^r[255&(t^e[i+3])],t=t>>>8^r[255&(t^e[i+4])],t=t>>>8^r[255&(t^e[i+5])],t=t>>>8^r[255&(t^e[i+6])],t=t>>>8^r[255&(t^e[i+7])];return(4294967295^t)>>>0},d:function(e,t){return(n.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]};n.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(n.b):n.b,e("Zlib.CRC32",n),e("Zlib.CRC32.calc",n.c),e("Zlib.CRC32.update",n.update)}.call(pendo);var JSON=window.JSON;JSON&&"function"==typeof JSON.stringify&&'{"props":{}}'===JSON.stringify({props:{}})||(JSON={}),function(){function f(e){return 10>e?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,i,o,r,a,s=gap,d=t[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),"function"==typeof rep&&(d=rep.call(t,e,d)),typeof d){case"string":return quote(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(d)){for(r=d.length,n=0;r>n;n+=1)a[n]=str(n,d)||"null";return o=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,o}if(rep&&"object"==typeof rep)for(r=rep.length,n=0;r>n;n+=1)"string"==typeof rep[n]&&(i=rep[n],o=str(i,d),o&&a.push(quote(i)+(gap?": ":":")+o));else for(i in d)Object.prototype.hasOwnProperty.call(d,i)&&(o=str(i,d),o&&a.push(quote(i)+(gap?": ":":")+o));return o=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,o}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(e,t,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;n>i;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,i,o=e[t];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i=walk(o,n),i!==undefined?o[n]=i:delete o[n]);return reviver.call(e,t,o)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),"function"!=typeof JSON.decycle&&!function(){function e(e){var t="";switch(e.nodeType){case e.ELEMENT_NODE:t=e.nodeName.toLowerCase(),e.id.length?t+="#"+e.id:(e.className.length&&(t+="."+e.className.replace(/ /,".")),"textContent"in e&&(t+="{textContent:"+(e.textContent.length<20?e.textContent:e.textContent.substr(0,20)+"...")+"}"));break;default:t=e.nodeName,null!==e.nodeValue&&(t+="{value:"+(e.nodeValue.length<20?e.nodeValue:e.nodeValue.substr(0,20)+"...")+"}")}return t}JSON.decycle=function(t,n){var i=[],n="undefined"==typeof n?!1:n,o=[];return function r(t,a){var s,d,u;if(n&&"object"==typeof t&&null!==t&&"nodeType"in t)return e(t);if(!("object"!=typeof t||null===t||t instanceof Boolean||t instanceof Date||t instanceof Number||t instanceof RegExp||t instanceof String)){for(s=0;s<i.length;s+=1)if(i[s]===t)return{$ref:o[s]};if(i.push(t),o.push(a),"[object Array]"===Object.prototype.toString.apply(t))for(u=[],s=0;s<t.length;s+=1)u[s]=r(t[s],a+"["+s+"]");else{u={};for(d in t)Object.prototype.hasOwnProperty.call(t,d)&&(u[d]=r(t[d],a+"["+JSON.stringify(d)+"]"))}return u}return t}(t,"$")}}(),"function"!=typeof JSON.retrocycle&&(JSON.retrocycle=function retrocycle($){var px=/^\$(?:\[(?:\d+|\"(?:[^\\\"\u0000-\u001f]|\\([\\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*\")\])*$/;return function rez(value){var i,item,name,path;if(value&&"object"==typeof value)if("[object Array]"===Object.prototype.toString.apply(value))for(i=0;i<value.length;i+=1)item=value[i],item&&"object"==typeof item&&(path=item.$ref,"string"==typeof path&&px.test(path)?value[i]=eval(path):rez(item));else for(name in value)"object"==typeof value[name]&&(item=value[name],item&&(path=item.$ref,"string"==typeof path&&px.test(path)?value[name]=eval(path):rez(item)))}($),$});var memoizedWarnDep=_.memoize(function(e,t){e=e||"Function",t=t?" and "+t:"";var n=e+" deprecated"+t;return pendo.log(n),n});pendo.SHADOW_STYLE="",_.extend(pendo,{_showElementGuide:deprecateFn(showTooltipGuide,"_showElementGuide","is going away"),flushNow:deprecateFn(flushNow,"pendo.flushNow","is going away"),flushEventCache:deprecateFn(null,"pendo.flushEventCache","is gone"),HOST:HOST,MAX_LENGTH:ENCODED_EVENT_MAX_LENGTH,MAX_NUM_EVENTS:MAX_NUM_EVENTS,_createToolTip:deprecateFn(createTooltipGuide,"pendo._createToolTip","is going away"),_get_tooltip_dimensions:deprecateFn(getTooltipDimensions,"pendo._get_tooltip_dimensions","is going away"),_isOldIE:deprecateFn(isOldIE,"pendo._isOldIE","is going away"),_logMessage:deprecateFn(writeMessage,"pendo._logMessage","is going away"),_sendEvent:deprecateFn(null,"pendo._sendEvent","is gone"),_sendGuideEvent:deprecateFn(writeGuideEvent,"pendo._sendGuideEvent","is going away"),_stopEvents:locked,_storeInCache:deprecateFn(null,"pendo._storeInCache","is gone"),_writeEventImgTag:deprecateFn(writeEvent,"pendo._writeEventImgTag","is going away"),_writeImgTag:deprecateFn(writeImgTag,"pendo._writeImgTag","is going away"),attachEvent:deprecateFn(attachEvent,"pendo.attachEvent","is going away"),detachEvent:deprecateFn(detachEvent,"pendo.detachEvent","is going away"),getText:deprecateFn(getText,"pendo.getText","is going away"),getUA:deprecateFn(getUA,"pendo.getUA","is going away"),ifDebugThen:deprecateFn(null,"pendo.ifDebugThen","is gone"),send_event:deprecateFn(collectEvent,"pendo.send_event","has changed to pendo.cache.createEvent"),wire_page:deprecateFn(wirePage,"pendo.wire_page","is going away"),findGuideBy:findGuideBy,findGuideById:findGuideById,findStepInGuide:findStepInGuide,_updateGuideStepStatus:_updateGuideStepStatus,_addCloseButton:addCloseButton,initialize:initialize,getEventCache:getGuideEventCache,processEventCache:processGuideEventCache,isGuideShown:isGuideShown,_getNextStepInMultistep:getNextStepInMultistep,badgeDiv:launcherBadge&&launcherBadge.element,launcherToolTipDiv:launcherTooltipDiv,updateOptions:updateOptions,createLauncher:createLauncher,initLauncher:initLauncher,_addGuideToLauncher:addGuideToLauncher,isAnonymousVisitor:isAnonymousVisitor,DEFAULT_VISITOR_ID:DEFAULT_VISITOR_ID,shouldIdentityChange:shouldIdentityChange,read:agentStorage.read,write:agentStorage.write,_delete_cookie:agentStorage.clear,_set_cookie:setCookie,_get_cookie:getCookie,get_cookie_key:getPendoCookieKey,ENV:ENV,eventCache:eventCache,_getOpacityStyles:deprecateFn(function(){},"pendo._getOpacityStyles","is going away"),setStyle:setStyle,_createGuideEvent:createGuideEvent,seenGuide:seenGuide,dismissedGuide:dismissedGuide,advancedGuide:advancedGuide,seenTime:seenTime,placeBadge:placeBadge,isBadge:isBadge,showPreview:deprecateFn(showPreview,"pendo.showPreview","is going away"),removeAllBadges:removeAllBadges,tellMaster:tellMaster,DEFAULT_TIMER_LENGTH:DEFAULT_TIMER_LENGTH,registerMessageHandler:registerMessageHandler,_get_offset:getOffsetPosition,_shouldAutoDisplayGuide:shouldAutoDisplayGuide,removeBadge:removeBadge,_showLightboxGuide:showLightboxGuide,_showGuide:showGuide,getElementForGuideStep:getElementForGuideStep,isElementVisible:isElementVisible,getTooltipDivId:getStepDivId,setupWatchOnTooltip:setupWatchOnElement,detectMaster:detectMaster,listenToMaster:listenToMaster,start:whenLoadedCall,SEND_INTERVAL:SEND_INTERVAL,stageGuideEvent:stageGuideEvent,startStagedTimer:startStagedTimer,isURLValid:isURLValid,getURL:getURL,_get_screen_dim:getScreenDimensions,_isInViewport:_isInViewport,_getCss3Prop:_getCss3Prop,waitThenStartGuides:waitThenLoop});var debugging={getEventCache:function(){return[].concat(eventCache)},getAllGuides:function(){return[].concat(getActiveGuides())},getAutoGuides:function(){return AutoDisplay.sortAndFilter(getActiveGuides(),pendo.autoOrdering)},getBadgeGuides:function(){return _.filter(getActiveGuides(),isBadge)},getLauncherGuides:function(){return _.filter(getActiveGuides(),isLauncher)},getEventHistory:function(){return[]},getOriginalOptions:function(){return originalOptions},setActiveGuides:setActiveGuides,getBody:dom.getBody,isMobileUserAgent:isMobileUserAgent,areGuidesDelayed:areGuidesDelayed,getMetadata:function(){return getMetadata()},isStagingServer:function(){return"undefined"==typeof PendoConfig?!1:shouldLoadStagingAgent(PendoConfig)},AutoDisplay:AutoDisplay};_.extend(debug,debugging);var ExtensionService={};!function(e){function t(e){if(!e.length)return e;var n=_.filter(e,r);return n.length?t(_.difference(e,n)):e}function n(e){var t=["name","version","use","type","uri"];if(!_.every(t,_.partial(_.has,e)))return!1;var n=o(e.use);return _.every(_.map(n,function(t){return t(e)}))}function i(e){return d[e]?d[e].handler||_.identity:null}function o(e){return d[e]?d[e].validators:[]}function r(t){if("behavior"===t.use){var n=t.uri(e,ExtensionAPI);return n?(s.push(t),!0):!1}var o=i(t.use);if(!o)return!1;var r=o(t);return r&&s.push(r),!!r}var a=[],s=[],d={};pendo.addExtension=function(e){e=[].concat(e);var i=_.filter(e,n);i.length&&(a=t(a.concat(i)))},e.tagExtension=function(t,n){var i=e.findExtensionByName(t);i.tags=[].concat(i.tags||[],n)},e.findExtensionByTag=function(e){return _.find(s,function(t){return _.contains(t.tags,e)})},e.findExtensionByName=function(e){return _.findWhere(s,{name:e})},e.filterExtensionsByUse=function(e){return _.filter(s,function(t){return t.use===e})},e.findExtensionByNameAndProvider=function(e,t){return _.find(s,function(n){var i=n.data;return i?i.name===e&&i.provider&&i.provider.name===t:!1})},e.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],d[e]={handler:t,validators:n}}}(ExtensionService);var ExtensionAPI={Launcher:{addBehavior:function(e){Launcher.behaviors.push(e)}},Metadata:{getMetadata:function(){return getMetadata()}},Util:{documentScrollTop:documentScrollTop,documentScrollLeft:documentScrollLeft,getOffsetPosition:getOffsetPosition},Events:Events},FlexboxPolyfill=function(){function e(e){var t=e.cloneNode(),n=FlexboxPolyfill.getPendoVisualElements(e.children),i=FlexboxPolyfill.getPendoInlineUIElements(e.children),o=n[0]&&"pendo-mock-flexbox-row"===n[0].className;if(o)return e;t.innerHTML="";for(var r=0;r<n.length;r++)pendo.BuildingBlocks.BuildingBlockGuides.isElementHiddenInGuide(n[r])?t.appendChild(n[r]):t.appendChild(FlexboxPolyfill.wrapElementInMockFlexboxContainer(n[r]));for(var a=0;a<i.length;a++)t.appendChild(i[a]);return e.parentNode.replaceChild(t,e),t}function t(e,t){var n=parseInt(e.offsetWidth,10)-parseInt(e.style.paddingLeft,10)-parseInt(e.style.paddingRight,10),i=FlexboxPolyfill.getPendoVisualElements(e.children),o=0;if(i.length)for(var r=0;o<i.length&&!(r>50);)pendo.BuildingBlocks.BuildingBlockGuides.isElementHiddenInGuide(i[o])?o++:o=FlexboxPolyfill.formatPseudoRow(n,i,o,t,e),r++}function n(e,t,n,i,o){var r=0,a=n,s=[];if(t.length){for(var d=0;e>=r&&a<t.length&&!(d>50);){var u=parseInt(t[a].offsetWidth,10);if(r+=u,r>e&&s.length>1){r-=u,a--;break}s.push(t[a]),a++,d++}var l=Math.min(t.length-1,a),c=e-r;return FlexboxPolyfill.setElementAlignment(s,c,i,o),l+1}}function i(e,t,n,i){if(!(e.length<1))switch(FlexboxPolyfill.wrapMockFlexElementsInMockFlexRows(i,e),n){case"space-between":FlexboxPolyfill.spaceBetween(e,t);break;case"space-around":FlexboxPolyfill.spaceAround(e,t);break;case"space-evenly":FlexboxPolyfill.spaceEvenly(e,t);break;case"center":FlexboxPolyfill.center(e,t);break;case"flex-start":FlexboxPolyfill.flexStart(e);break;case"flex-end":FlexboxPolyfill.flexEnd(e,t)}}function o(e){var t=e.getAttribute("class");return!!(t&&t.indexOf("pendo-inline-ui")>-1)}function r(e){return _.filter(e,function(e){return!o(e)})}function a(e){return _.filter(e,function(e){return o(e)})}function s(e){var t=document.createElement("div");return t.style.display="inline-block",e||(t.style.position="absolute"),t.style["vertical-align"]="top",t.setAttribute("class","pendo-mock-flexbox-element"),t}function d(){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}function u(e){var t=e.getAttribute("class")||"",n=-1!==t.indexOf("pendo-block-wrapper"),i=e.style&&"absolute"===e.style.position,o=get(e.style,"width",""),r=getComputedStyle_safe(e).width,a=o.indexOf("%")>-1;if(n){var s=o?r:null;o=s?s:e.children[0].offsetWidth+"px"}if(!t||t.indexOf("pendo-mock-flexbox-element")<0){var d=FlexboxPolyfill.createFlexContainer(i);return d.appendChild(e),n&&!e.style.width&&(d.children[0].children[0].style.width=o),n&&e.style.width&&(d.style.width=o),a?d.style.width=r:d.style.width=e.style.width,d}return e}function l(e,t){var n=FlexboxPolyfill.createFlexRow(),i="pendo-mock-flexbox-row"===t[0].className,o=FlexboxPolyfill.findMaxChildHeight(t,i);if(i)return t[0].style["min-height"]=o+"px",e;for(var r=0;r<t.length;r++)n.appendChild(t[r]);return e.appendChild(n),n.style["min-height"]=o+"px",e}function c(e,t){for(var n=[],i=0;i<e.length;i++){if(t){var o=e[i].children[0].children[0].getAttribute("class")||"",r=-1!==o.indexOf("pendo-block-wrapper");if(r){var a=e[i].children[0].offsetHeight+"px";e[i].style.height=a}}n.push(e[i].offsetHeight)}return _.reduce(n,function(e,t){return Math.max(e,t)},20)}function p(e,t){for(var n=e.slice(0,t),i=0,o=0;o<n.length;o++){var r=n[o].offsetWidth;i+=r}return i}function f(e,t){for(var n=t/Math.max(e.length-1,1),i=e[0],o=e[e.length-1],r=1;r<e.length-1;r++){var a=p(e,r);e[r].style.left=n+a+"px"}i.style.left="0px",o.style.right="0px"}function h(e,t){for(var n=t/(2*e.length),i=e[0],o=e[e.length-1],r=1;r<e.length-1;r++){var a=p(e,r);e[r].style.left=2*n+a+"px"}i.style.left=n+"px",o.style.right=n+"px"}function g(e,t){for(var n=t/(e.length+1),i=e[0],o=e[e.length-1],r=1;r<e.length-1;r++){var a=p(e,r);e[r].style.left=n+a+"px"}i.style.left=n+"px",o.style.right=n+"px"}function v(e,t){for(var n=t/2,i=e[0],o=e[e.length-1],r=1;r<e.length-1;r++){var a=p(e,r);e[r].style.left=n+a+"px"}e.length>1&&(o.style.right=n+"px"),i.style.left=n+"px"}function m(e){var t=e[0];t.style.left="0px";for(var n=1;n<e.length;n++){var i=p(e,n);e[n].style.left=i+"px"}}function b(e,t){for(var n=t,i=e[0],o=e[e.length-1],r=1;r<e.length-1;r++){var a=p(e,r);e[r].style.left=n+a+"px"}e.length>1&&(i.style.left=n+"px"),o.style.right="0px"}return{calculateTotalOffsetWidth:p,center:v,createFlexContainer:s,createFlexRow:d,findMaxChildHeight:c,flexEnd:b,flexStart:m,formatPseudoRow:n,getPendoInlineUIElements:a,getPendoVisualElements:r,initializeFlexboxContainer:e,isPendoInlineUIElement:o,justifyContent:t,setElementAlignment:i,spaceAround:h,spaceBetween:f,spaceEvenly:g,wrapElementInMockFlexboxContainer:u,wrapMockFlexElementsInMockFlexRows:l}}(),BuildingBlockTemplates=function(){function e(e,t,n,d){var u=d||getActiveGuides();switch(e){case"pendo_resource_center_module_list_item":return i(t,n,u);case"pendo_resource_center_guide_list_item":return o(t,n,u);case"pendo_resource_center_onboarding_item":return r(t,n,u);case"pendo_resource_center_onboarding_progress_bar":return a(t,n,u);case"pendo_resource_center_announcement_item":return s(t,n,u);case"pendo_guide_data_text_block":return c(t,n,u);default:return[]}}function t(e,t){var n=/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi;return e.replace(n,function(e,n){return _.isNull(t[n])||_.isUndefined(t[n])?e:t[n]})}function n(e,i){if(e.content&&(e.content=t(e.content,i)),e.children)for(var o=0;o<e.children.length;o++)n(e.children[o],i);return e}function i(e,t,i){var o=e.templateChildren;return _.reduce(o,function(o,r,a){var s=BuildingBlockResourceCenter.findResourceCenterHomeView(i),d=_.find(i,function(e){return e.id===r.id});if(pendo.designer)d=r,s=_.find(i,function(e){return get(e,"attributes.resourceCenter.isTopLevel")});else if(!d||!d.hasResourceCenterContent)return o;var u=JSON.parse(JSON.stringify(e));delete u.templateChildren,u.props.id=u.props.id+"-"+a,u.props["data-pendo-module-guide-id"]=d.id,u.actions||(u.actions=[]);var l={action:"renderResourceCenterModule",source:u.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:d.id}],uiMetadata:{},eventType:"click"};pendo.designer||u.actions.push(l);var c=get(s,"attributes.notificationBubble"),f=get(s,"attributes.notifications");if(c&&f){var h;"AnnouncementsModule"===get(d,"attributes.resourceCenter.moduleId")&&(h=d.id),"chat"===get(d,"attributes.resourceCenter.integrationName")&&(h="chat"),h&&(u.props["data-pendo-notification-id"]=h,p(u,s,c,h,s.attributes.notifications.individualCounts[h]))}return u=n(u,r),o.concat(BuildingBlockGuides.buildNodeFromJSON(u,t,i))},[])}function o(e,t,i){var o=e.templateChildren;return _.reduce(o,function(o,r,a){var s=_.find(i,function(e){return e.id===r.id});if(pendo.designer)s=r;else if(!s||s.ineligibleForRC)return o;var d=JSON.parse(JSON.stringify(e));r.keywords&&(d.props["data-_pendo-text-list-item-1"]=r.keywords),delete d.templateChildren,d.props.id=d.props.id+"-"+a,d.actions||(d.actions=[]);var u={action:"showGuide",source:d.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:s.id}],uiMetadata:{},eventType:"click"};return pendo.designer||d.actions.push(u),d=n(d,r),o.concat(BuildingBlockGuides.buildNodeFromJSON(d,t,i))},[])}function r(e,i,o){var r=e.templateChildren;return _.reduce(r,function(r,a,s){var d=_.find(o,function(e){return e.id===a.id});if(pendo.designer)d=a;else if(!d||d.ineligibleForRC)return r;var u=JSON.parse(JSON.stringify(e));delete u.templateChildren,u.props.id=u.props.id+"-"+s,u.actions||(u.actions=[]);var l={action:"showGuide",source:u.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:d.id}],uiMetadata:{},eventType:"click"};pendo.designer||u.actions.push(l);var c=d.getTotalSteps(),p=d.getSeenSteps();d.isComplete()&&(p=c);var f=parseInt(p/c*100,10),h=BuildingBlockGuides.findDomBlockInDomJson(u,function(e){return e.svgWidgetId});if(h.svgAttributes.fillCircle.percentComplete=f,a.hasOwnProperty("subtitle"))a.stepProgress=t(a.subtitle,{currentStep:p,totalSteps:c});else{var g="Step "+p+" of "+c;a.stepProgress=g}return u=n(u,a),r.concat(BuildingBlockGuides.buildNodeFromJSON(u,i,o))},[])}function a(e,t,i){var o=t.getGuide().attributes.resourceCenter.children,r=0,a=0;_.forEach(o,function(e){var t=_.find(i,function(t){return t.id===e});if(pendo.designer)t=e;else if(!t||t.ineligibleForRC)return;t.isComplete()?(r+=t.getTotalSteps(),a+=t.getTotalSteps()):(r+=t.getTotalSteps(),a+=t.getSeenSteps())});var s=parseInt(a/r*100,10);isNaN(s)&&(s=0);var d={totalPercentComplete:s+"%"},u=JSON.parse(JSON.stringify(e));u=n(u,d);var l=BuildingBlockGuides.findDomBlockInDomJson(u,function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")});return l.props.style.width=d.totalPercentComplete,[BuildingBlockGuides.buildNodeFromJSON(u,t,i)]}function s(e,t,n){var i=t.getGuide().attributes.resourceCenter.children,o=_.reduce(i,function(e,t,i){var o=_.find(n,function(e){return e.id===t});if(pendo.designer)o=t;else if(!o)return e;return e.push(o),e},[]),r=_.sortBy(o,function(e){var t=get(e,"showsAfter")||get(e,"publishedAt");return t||(t=(new Date).getTime()),-1*t}),a=BuildingBlockResourceCenter.getResourceCenter(),s=get(a,"attributes.notificationBubble");return _.map(r,function(t,n){var i="whatsnew"===get(t,"attributes.type"),o=JSON.parse(JSON.stringify(e)),r=t.steps[0];return r.eventRouter=new EventRouter,o.props.id=o.props.id+"-"+n,o.props["data-pendo-announcement-guide-id"]=t.id,i?u(t,o,s):d(t,o,s)})}function d(e,t,n){var i,o=window.pendo.GuideFactory(e),r=e.steps[0];_.isFunction(r.script)&&r.script(r,o);var a=r.domJson;if(t.children=[a],n){i=l(n);var s=function(e){return"pendo-guide-container"===e.props.id},d=BuildingBlockGuides.findDomBlockInDomJson(t,s),u=parseInt(t.props.style["padding-top"],10),c=parseInt(d.props.style["padding-top"],10);i.props.style.top=c+u+5+"px"}return!BuildingBlockResourceCenter.hasAnnouncementBeenSeen(e)&&i&&(t.props["class"]+=" pendo-unseen-announcement",t.children.unshift(i)),delete t.templateName,BuildingBlockGuides.buildNodeFromJSON(t,r)}function u(e,t,n){var i,o=window.pendo.GuideFactory(e),r=o.steps[0];r.render(),_.isFunction(r.script)&&r.script(r,o);var a=r.guideElement,s=a[0].id,d="#"+s+" h1::after { display:none; }",u=a[0].appendChild(document.createElement("style"));u.innerHTML=d,n&&(i=l(n),i.props.style.top="20px"),!BuildingBlockResourceCenter.hasAnnouncementBeenSeen(e)&&i&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[i]);var c=BuildingBlockGuides.buildNodeFromJSON(t,r);return a.appendTo(c),c}function l(e){return{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:{position:"absolute","border-radius":"5px",height:"10px",width:"10px","line-height":"0px",left:"0px",top:"30px","box-sizing":"content-box","background-color":e["background-color"],"z-index":"10"}}}}function c(e,t,i){var o,r=t.getGuide?t.getGuide():_.find(i,function(e){return e.id===t.guideId}),a=get(r,"attributes.dates."+r.language,!1);if(a)o={showsAfter:a};else{var s=get(r,"showsAfter")||get(r,"publishedAt");s=s?new Date(s):new Date;var d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],u=d[s.getMonth()]+" "+s.getDate()+", "+s.getFullYear();o={showsAfter:u}}var l=JSON.parse(JSON.stringify(e));return l=n(l,o),[BuildingBlockGuides.buildNodeFromJSON(l,t,i)]}function p(e,t,n,i,o){var r=BuildingBlockGuides.findDomBlockInDomJson(e,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")});if(r){var a=_.find(r.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")});if(a&&a.props&&a.props.style){var s=parseInt(a.props.style.width,10);if(s&&!isNaN(s)){var d=r.children.indexOf(a),u=s-40+"px";"100%"!==a.props.style.width&&(a.props.style.width=u),a.props.style["padding-right"]="40px",a.props.style["box-sizing"]="content-box";var l={type:"div",children:[{type:"div",content:String(t.attributes.notifications.individualCounts[i]),
props:{style:{display:"inline-block","vertical-align":"middle","line-height":"26px","font-weight":n["font-weight"],"font-family":n["font-family"],color:n.color}}}],props:{"class":"_pendo-home-view-bubble",style:{position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px",right:"20px",top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":n["background-color"],display:o?"block":"none"}}};r.children.splice(d+1,0,l)}}}}return{buildNodesFromTemplate:e,generateUnreadAnnouncementMiniBubble:l}}(),BuildingBlockTooltips=function(){function e(e,t,o,r){if(o.guideElement){var a=o.guideElement;a.addClass(buildTooltipCSSName());var s=getOffsetPosition(t);if(0===s.height&&0===s.width)return null;var d=function(e){return"pendo-guide-container"===e.props.id},l=BuildingBlockGuides.findDomBlockInDomJson(e,d);if(l){var c=o.attributes.layoutDir,p={height:r.offsetHeight,width:r.offsetWidth},f={height:parseInt(l.props["data-caret-height"],10)||0,width:parseInt(l.props["data-caret-width"],10)||0,backgroundColor:l.props.style["background-color"],offset:10};if(n(o),l.props.style.border){var h=l.props.style.border.split(" ");f.borderColor=h[2],f.borderWidth=parseInt(h[0],10)}var v=i(s,p,f,c);o&&(o.dim=v);var m;o&&_.isFunction(o.getGuide)&&(m=o.getGuide());var b=get(m,"attributes.resourceCenter");s.fixed?(a.css({position:"fixed"}),r.style.position="absolute"):o&&b||(r.style.position="absolute"),f.height&&f.width&&u(a,v,f);var y="300000";r&&r.style&&r.style["z-index"]&&(y=r.style["z-index"]),a.css({"z-index":y}),b||a.css({height:"auto",width:"auto",overflow:"visible"}),o.elementPathRule&&a.css({left:v.left,top:v.top,position:s.fixed?"fixed":"absolute"}),"top"===v.layoutDir&&"left"===v.hbias&&a.find("#pendo-watermark").css({top:"auto",bottom:"100%"});for(var w=/(auto|scroll)/,S=getScrollParent(t,w),E=getBody();S&&S!==E;)o.attachEvent(S,"scroll",_.throttle(_.bind(g,this,o,S,w),10)),S=getScrollParent(S,w);return a[0]}}}function t(e,t){var n=Sizzle(t.elementPathRule)[0],i=function(){pendo.onGuideAdvanced(e,t)};t.attachEvent(n,e,i)}function n(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?t("mouseover",e):e.attributes.advanceActions.elementClick&&t("click",e))}function i(e,t,n,i){var s=pendo._get_screen_dim(),d=i||"auto",u={width:Math.min(t.width,s.width),height:t.height};u.layoutDir=d,u.hbias=o(e,s,d),u.layoutDir=r(u,s,e,d);var l=a(u,e,s);return u.top=l.top,u.left=l.left,"top"===u.layoutDir?u.top-=n.height:"bottom"===u.layoutDir?u.top+=n.height:"right"===u.layoutDir?u.left+=n.height:"left"===u.layoutDir&&(u.left-=n.height),u}function o(e,t,n){if("right"===n||"left"===n)return pendo.log("Setting layout position to "+n),n;var i=t.width/3,o=i,r=2*i;return o<e.left&&e.left<r?"center":e.left<t.width/2?"right":"left"}function r(e,t,n,i){if(i&&"auto"!==i)return i;var o=n.fixed,r=n.top-documentScrollTop(),a=n.left-documentScrollLeft(),s=a+n.width,d=getClientRect(getBody()),u=n.top-e.height<0,l=n.top+n.height+e.height>(o?d.height:d.bottom),c=n.left-e.width<0,p=n.left+n.width+e.width>(o?d.width:d.right),f=l&&u&&c&&p;if(f)return"bottom";var h;r<t.height/3&&(h="bottom");var g=r>2*t.height/3;if((g||"center"===e.hbias)&&(h="top"),a<e.width&&t.width-s<e.width&&(h="bottom"),"bottom"===h){var v=getOffsetPosition(document.body);n.top+e.height>v.height&&(h="top")}return"top"===h&&n.top-e.height<0&&(h="bottom"),l&&u&&("center"!==e.hbias&&(h=e.hbias),c&&p||(p||(h="right"),c||(h="left"))),h&&"bottom"!==h||!l||u||(h="top"),h?h:e.hbias?e.hbias:"bottom"}function a(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?s(e,n,t,e.layoutDir,e.hbias):d(e,t,e.hbias)}function s(e,t,n,i,o){var r=e.height,a=e.width,s={top:null,left:null};if("bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-r),"right"===o){var d=n.left+n.width/2;d+e.width>t.width&&(d-=d+e.width-t.width),s.left=d}else"left"===o?s.left=n.left-a+n.width/2:s.left=n.left+n.width/2-a/2;return s}function d(e,t,n){var i=e.height,o=e.width,r={top:null,left:null};return r.top=t.top-i/2+t.height/2,"right"===e.layoutDir?r.left=t.left+t.width:"left"===e.layoutDir&&(r.left=Math.max(0,t.left-o)),r}function u(e,t,n){var i=document.createElement("div");i.setAttribute("class","pendo-tooltip-caret"),i.style.position="absolute",i.style.zIndex=11,("top"===t.layoutDir||"bottom"===t.layoutDir)&&l(i,e,t,n),("left"===t.layoutDir||"right"===t.layoutDir)&&c(i,e,t,n);var o=e.find("#pendo-guide-container")[0].parentNode;if(o.appendChild(i),n.borderWidth){var r=p(i,n,t.layoutDir);o.appendChild(r)}}function l(e,t,n,i){var o=pendo._get_screen_dim();if(e.style["border-left"]=i.width+"px solid transparent",e.style["border-right"]=i.width+"px solid transparent","left"===n.hbias){var r=n.width-2*i.width-i.offset-i.borderWidth;e.style.left=r+"px",n.left+=i.offset+i.width+i.borderWidth}else"right"===n.hbias?(e.style.left=i.offset+i.borderWidth+"px",n.left-=i.offset+i.width+i.borderWidth,n.left+n.width>o.width&&(n.left=n.left-(n.left+n.width-o.width)),n.left=Math.max(0,n.left)):e.style.left=n.width/2-i.width+"px";if("bottom"===n.layoutDir){e.style["border-bottom"]=i.height+"px solid "+i.backgroundColor;var a=-1*i.height;i.borderWidth&&(a+=i.borderWidth),e.style.top=a+"px"}if("top"===n.layoutDir){e.style["border-top"]=i.height+"px solid "+i.backgroundColor;var s=-1*i.height;i.borderWidth&&(s+=i.borderWidth),e.style.bottom=s+"px"}return e}function c(e,t,n,i){if(e.style["border-top"]=i.width+"px solid transparent",e.style["border-bottom"]=i.width+"px solid transparent",e.style.top=n.height/2-i.width+"px","left"===n.layoutDir){e.style["border-left"]=i.height+"px solid "+i.backgroundColor;var o=-1*i.height;i.borderWidth&&(o+=i.borderWidth),e.style.right=o+"px"}if("right"===n.layoutDir){e.style["border-right"]=i.height+"px solid "+i.backgroundColor;var r=-1*i.height;i.borderWidth&&(r+=i.borderWidth),e.style.left=r+"px"}return e}function p(e,t,n){var i=e.cloneNode();i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10;for(var o=["Top","Right","Bottom","Left"],r=0;r<o.length;r++){var a="border"+o[r]+"Width",s="border"+o[r]+"Color";i.style[a]&&(i.style[a]=parseInt(i.style[a],10)+t.borderWidth+"px",i.style[s]=f(i.style[s],t.borderColor))}return"top"===n&&(i.style.left=parseInt(i.style.left,10)-t.borderWidth+"px",i.style.bottom=parseInt(i.style.bottom,10)-t.borderWidth+"px"),"bottom"===n&&(i.style.left=parseInt(i.style.left,10)-t.borderWidth+"px",i.style.top=parseInt(i.style.top,10)-t.borderWidth+"px"),"right"===n&&(i.style.top=parseInt(i.style.top,10)-t.borderWidth+"px",i.style.left=parseInt(i.style.left,10)-t.borderWidth+"px"),"left"===n&&(i.style.top=parseInt(i.style.top,10)-t.borderWidth+"px",i.style.right=parseInt(i.style.right,10)-t.borderWidth+"px"),i}function f(e,t){return"transparent"===e?e:t}function h(e,t){if(t){var n=getElementForGuideStep(e),i=getOffsetPosition(n);if(checkPlacementChanged(i)&&"none"!==getComputedStyle_safe(e.elements[0]).display){var o=e.attributes.layoutDir,r=e.guideElement,a=dom(t).find("#pendo-guide-container"),s=a[0].style,d={height:t.offsetHeight,width:t.offsetWidth},u={height:parseInt(a[0].getAttribute("data-caret-height"),10)||0,width:parseInt(a[0].getAttribute("data-caret-width"),10)||0,backgroundColor:a[0].style["background-color"],offset:10,borderColor:s.borderColor,borderWidth:parseInt(s.borderWidth,10)},l=this.getBBTooltipDimensions(i,d,u,o);u.height&&u.width&&this.buildTooltipCaret(r,l,u),r.css({top:l.top,left:l.left,position:i.fixed?"fixed":r[0].style.position}),pendo.dom(r.find(".pendo-tooltip-caret")[0]).remove(),pendo.dom(r.find(".pendo-tooltip-caret-border")[0]).remove()}}}function g(e,t,n){var i=getClientRect(e.element);isVisibleInScrollParent(i,t,n)?dom(e.elements[0]).css({display:"block"}):dom(e.elements[0]).css({display:"none"})}return{createBBTooltip:e,getBBTooltipDimensions:i,determineBBHorizontalBias:o,determineTooltipPosition:r,positionBBTooltipWithBias:a,calculateToolTipPositionForTopBottom:s,calculateToolTipPositionForLeftRight:d,buildTooltipCaret:u,styleTopOrBottomCaret:l,styleLeftOrRightCaret:c,buildBorderCaret:p,determineBorderCaretColor:f,placeBBTooltip:h,attachBBAdvanceActions:n}}(),BuildingBlockGuides=function(){function e(t){return t.props&&t.props.id&&0===t.props.id.indexOf("pendo-g-")?t:t.children?_.find(t.children,function(t){return e(t)}):void 0}function t(e,t){for(var n=e.parentNode.children,i=0,o=0;o<n.length;o++)n[o]!==e&&(i+=n[o].offsetHeight);var r=t.offsetHeight,a=Math.max(r-i,0);e.style.height=a+"px"}function n(e,n,i){var o=n.getGuide();if(o.isModule){var r=BuildingBlockResourceCenter.getResourceCenter();if(!r)return;return showGuide(r.steps[0],"badge"),void BuildingBlockResourceCenter.replaceResourceCenterContent(o.id,undefined,!0)}var a=BuildingBlockGuides.findGuideContainerJSON(e),d=get(o,"attributes.resourceCenter"),u=d&&"FullyCustomModule"===get(o,"attributes.resourceCenter.moduleId");n.hasEscapeListener=!1,n.containerId=a&&a.props&&a.props.id,n.element=getElementForGuideStep(n);var l=BuildingBlockGuides.buildNodeFromJSON(e,n,i);n.guideElement=l;var c=l.find("#"+n.containerId),p="data-vertical-alignment",f="Relative to Element"===c.attr(p);f&&!d&&pendo.dom(n.guideElement).css({overflow:"hidden",height:"0",width:"0"}),pendo.designer||c.css({visibility:"hidden"});var g=BuildingBlockWatermark.buildWatermark({targetAccount:o.targetAccount,isBottomAligned:"Bottom Aligned"===c.attr(p)},BuildingBlockGuides.buildNodeFromJSON);g&&c.append(g);var v=n&&n.attributes&&n.attributes.imgCount;l.appendTo(getGuideAttachPoint());var m=c.find('[data-pendo-grow-height="true"]')[0];return m&&t(m,l[0]),h(n.containerId),u||BuildingBlockGuides.recalculateGuideHeight(n.containerId),f?n.attributes.calculatedType="tooltip":BuildingBlockTooltips.attachBBAdvanceActions(n),f&&!v&&s(n,e,c[0]),d&&BuildingBlockResourceCenter.showHomeViewOrEmptyState(o),v||c.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),get(n,"attributes.isAutoFocus")&&!pendo.designer&&dom(c).find("#pendo-guide-container").focus(),l}function i(e,t,n){return e&&e.templateName?BuildingBlockTemplates.buildNodesFromTemplate(e.templateName,e,t,n):[a(e,t,n)]}function o(e,t,n){var i='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw pendo.log(i),new Error(i)}function r(e,t,n){var i={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,"for":!0,frameborder:!0,href:!0,id:!0,name:!0,placeholder:!0,placement:!0,rows:!0,role:!0,scoped:!0,src:!0,start:!0,style:!0,tabindex:!0,target:!0,title:!0,type:!0,value:!0},r=/^data-/,a=/^aria-/,s=pendo._.keys(e);return pendo._.reduce(s,function(s,d){return i[d]||r.test(d)||a.test(d)||o(d,n,t),s[d]=e[d],s},{})}function a(e,t,n){t=t||{id:"unknown",guideId:"unknown"},e.props=r(e.props,t.id,t.guideId);var i=pendo.dom("<"+e.type+"></"+e.type+">"),o=e.props&&e.props.id;if("pendo-backdrop"===o){if(t.attributes&&t.attributes.blockOutUI&&t.attributes.blockOutUI.enabled){var a=_.throttle(_.partial(A,t),25);t.attachEvent(window,"scroll",a,!0)}return w(t)}if(_.each(e.props,function(n,o){"style"===o?i.css(e.props.style):"data-pendo-code-block"!==o||n!==!0||getPendoConfigValue("preventCodeInjection")?i.attr(o,n):i.addClass("pendo-code-block").html(t.getContent())}),e.content&&i.text(e.content),"style"===e.type&&(i.styleSheet?i.styleSheet.cssText=BuildingBlockGuides.buildStyleTagContent(e.css):i.text(BuildingBlockGuides.buildStyleTagContent(e.css))),e.svgWidgetId){var s=BuildingBlockSvgs.buildSvgNode(e.svgWidgetId,e);s.appendTo(i)}var d=e.props.id&&-1!==e.props.id.indexOf("badge"),u=!!e.props.src;if(("img"===e.type&&u&&!d||"iframe"===e.type&&t)&&(t.attributes&&!t.attributes.imgCount?t.attributes.imgCount=1:t.attributes&&t.attributes.imgCount&&t.attributes.imgCount++,BuildingBlockGuides.recalculateGuideHeightOnImgLoad(i,t)),e.actions&&e.actions.length)for(var l=0;l<e.actions.length;l++)if(BuildingBlockGuides.bindActionToNode(i,e.actions[l],t),"renderGuidesListItem"===e.actions[l].action){var c=pendo.findGuideById(e.actions[l].parameters[0]);c?i.text(c.name):i.attr("style","display: none;")}var p=_.find(e.actions,function(e){return"dismissGuide"===e.action});if(p&&!t.hasEscapeListener&&(t.hasEscapeListener=!0,t.attachEvent(window,"keyup",function(e){27===e.keyCode&&t.eventRouter.eventable.trigger("pendoEvent",{step:t,action:"dismissGuide"})},!0)),e.children)for(var f=0;f<e.children.length;f++){var h=BuildingBlockGuides.buildNodesFromJSON(e.children[f],t,n);_.each(h,function(e){e&&e.appendTo(i)})}return i}function s(e,t,n){BuildingBlockTooltips.createBBTooltip(t,e.element,e,n),e.hasBeenScrolledTo||(scrollIntoView(e.element),scrollToTooltip(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}function d(t,n){t.on("load",function(){var t={};!n.containerId&&n.domJson&&(t=e(n.domJson));var i=n.containerId||t.props&&t.props.id||"";h(i),b(i);var o=document.getElementById(n.containerId);n&&n.attributes&&n.attributes.imgCount&&(n.attributes.imgCount--,o&&n.attributes.imgCount<=0&&(o.style.visibility="visible","tooltip"===n.attributes.calculatedType&&s(n,n.domJson,o)))}),t.on("error",function(){var e=document.getElementById(n.containerId);return e?void(e.style.visibility="visible"):void log("Failed to find guideContainer for id: "+n.containerId)})}function u(e,t,n){e.on(t.eventType,function(i){if(t.designerAction)pendo.designerv2.designerActions[t.action](e,t.parameters);else{var o={action:t.action,params:t.parameters,step:n,ignore:!!t.ignore,srcElement:i.srcElement};"showElements"===t.action||"hideElements"===t.action?i.srcElement&&i.srcElement.getAttribute("id")===t.source?n.eventRouter.eventable.trigger("pendoEvent",o):i.target&&i.target.getAttribute("id")===t.source&&n.eventRouter.eventable.trigger("pendoEvent",o):n.eventRouter.eventable.trigger("pendoEvent",o)}})}function l(e){var t="";return _.each(e,function(e,n){t=t+n+":"+e+";"}),t}function c(e){for(var t="",n=0;n<e.length;n++)t+=e[n].selector+"{",_.each(e[n].styles,function(e,n){t+=n+":"+e,t+="!important;"}),t+="}";return t}function p(e){for(var t=["pendo-base","pendo-resource-center-container"],n=0;20>n;n++){var i=_.find(t,function(t){return e.id===t});if(i)return e;if(e===document.body)return document.body;e.parentNode&&(e=e.parentNode)}return document.body}function f(e){var t=Sizzle("[data-pendo-display-flex]",e);_.each(t,function(e){var t=FlexboxPolyfill.initializeFlexboxContainer(e),n=e.getAttribute("data-pendo-justify-content");FlexboxPolyfill.justifyContent(t,n)})}function h(e){var t=document.getElementById(e);t&&(BuildingBlockGuides.flexElement(t),g(t))}function g(e){var t="data-aspect-ratio",n=Sizzle("["+t+"]",e);_.each(n,function(e){var n,i=e.getAttribute(t).split(":");n=i.length>1?parseInt(i[0],10)/parseInt(i[1],10):parseFloat(i[0]),isNaN(n)||(e.style.height=e.offsetWidth/n+"px")})}function v(e){m(e);var t=getClientRect(e);if(0===t.width||0===t.height)return!0;if(e.style&&"visible"===e.style.visibility)return!1;for(var n=e,i=e.id||"",o=0;0!==i.indexOf("pendo-g-")&&(m(n),n=n.parentNode,i=n.id||"",o++,!(o>10)););return!1}function m(e){return e.style&&"none"===e.style.display?!0:e.style&&"0"===e.style.opacity?!0:e.style&&"hidden"===e.style.visibility?!0:!1}function b(e){var t=document.getElementById(e);if(t){var n=parseInt(t.style.height,10),i=t.style.height;pendo.dom(t).css({height:"auto"});var o=parseInt(getComputedStyle_safe(t).height,10),r=t.getAttribute("data-pendo-static-height");if(o>window.innerHeight){var a=dom(t).find("#pendo-guide-container")[0];pendo.dom(a).css({"max-height":"100vh",overflow:"auto"})}if(o!==n){var s=o;r&&n&&(s=n),pendo.dom(t).css({height:""+s+"px"});var d=t.getAttribute("data-vertical-alignment");if("Centered"===d){var u=o>window.innerHeight?window.innerHeight:s;pendo.dom(t).css({"margin-top":"-"+u/2+"px"})}}else pendo.dom(t).css({height:i})}}function y(e,t){if(t(e))return e;if(!e.children)return!1;for(var n=0;n<e.children.length;n++){var i=y(e.children[n],t);if(i)return i}return!1}function w(e){try{var t=e.attributes.blockOutUI||{};t.additionalElements=t.additionalElements||"";var n=[];if(t.enabled&&e.element!==getBody()){n.push(e.element);for(var i=t.additionalElements.replace(/\s/g,"").split(","),o=0;o<t.additionalElements.length;o++)try{var r=Sizzle(i[o]);r&&_.each(r,function(e){n.push(e)})}catch(a){log("Additional element for blockOutUI is invalid selector","error")}}var s=S(n),d=t.padding||{left:0,right:0,top:0,bottom:0},u=getClientRect(getBody());s||(s={top:0,left:0,right:u.width,bottom:u.height,width:0,height:0}),s.fixed&&(u.top=0,u.bottom=u.height,u.left=0,u.right=u.width);var l=T(u,s,d);if(!hasBlockBoxChanged(s)&&!hasBodyDimensionsChanged(u)&&!haveScreenCoordsChanged(l)&&C())return;var c={"z-index":1e4,position:"fixed"},p=[];return _.each(l,function(e,t){var n=E(t,_.extend({},e,c));p.push(n)}),x(p,e)}catch(a){log("Failed to add BlockOut ui","error")}}function S(e){if(e&&e.length){var t=_.reduce(e,function(e,t){if(!isElementVisible(t))return e;var n=getClientRect(t);if(n)return e.fixed=e.fixed&&n.fixed,_.each([["top",isLessThan],["right",isGreaterThan],["bottom",isGreaterThan],["left",isLessThan]],function(t){var i=t[0],o=t[1];(!e[i]||o(n[i],e[i]))&&(e[i]=n[i])}),e},{fixed:!0});t.height=t.bottom-t.top,t.width=t.right-t.left;var n=bodyOffset();return t.fixed||(t.left+=n.left,t.right+=n.left,t.top+=n.top,t.bottom+=n.top),t.fixed=!!t.fixed,t}}function E(e,t){var n=dom("div._pendo-guide-backdrop-region-block_._pendo-region-"+e+"_");return n.length||(n=dom('<div class="_pendo-guide-backdrop-region-block_ _pendo-region-'+e+'_"></div>')),dom(n).css(t),n}function C(){var e=dom("._pendo-guide-backdrop_");return e.length>0}function T(e,t,n){var i={},o=t.top-e.top,r=t.left-e.left;i.top=o-n.top,i.left=r-n.left,i.height=t.height+n.top+n.bottom,i.width=t.width+n.left+n.right;var a={left:0,top:0};return positionFixedActsLikePositionAbsolute()&&(a=bodyOffset(),i.left+=documentScrollLeft(),i.top+=documentScrollTop()),i.bottom=i.top+i.height,i.right=i.left+i.width,{top:{top:0,height:Math.max(i.top-a.top,0),left:i.left,width:i.width},right:{top:-a.top,bottom:0,left:i.right-a.left,right:0},bottom:{top:i.bottom-a.top,bottom:0,left:i.left-a.left,width:i.width},left:{top:-a.top,bottom:0,left:-a.left,width:i.left}}}function x(e,t){var n=I("pendo-backdrop",t.domJson);delete n.props.style.left,delete n.props.style.right,delete n.props.style.width,delete n.props.style.height,delete n.props.style.bottom,delete n.props.style.top;var i=pendo.dom('<div class="_pendo-guide-backdrop_">');return i.attr("class","_pendo-guide-backdrop_"),_.each(n.props,function(t,o){_.each(e,function(e){"style"===o?e.css(n.props.style):e.attr(o,t),i.append(e)})}),i}function I(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=I(e,t.children[n]);if(i)return i}}function A(e){var t=w(e);t&&(dom("._pendo-guide-backdrop_").remove(),e.guideElement.append(t))}return{renderGuideFromJSON:n,buildNodeFromJSON:a,recalculateGuideHeightOnImgLoad:d,buildStyleString:l,buildStyleTagContent:c,bindActionToNode:u,recalculateGuideHeight:b,findDomBlockInDomJson:y,isElementHiddenInGuide:v,positionStepForTooltip:s,flexAllThings:h,flexElement:f,findTopLevelContainer:p,updateBackdrop:A,buildNodesFromJSON:i,findGuideContainerJSON:e,maintainAspectRatios:g,sizeElement:t,getAllowedAttributes:r}}(),BuildingBlockResourceCenter=function(){function e(e){if(I=t(e),!I)return q.resolve();if(FrameController.isShownInAnotherFrame(I.steps[0]))return q.resolve();var i=I.attributes&&I.attributes.resourceCenter&&I.attributes.resourceCenter.moduleId&&"FullyCustomModule"===I.attributes.resourceCenter.moduleId;if(i)return I.hasResourceCenterContent=!0,q.resolve();var o=n(I,e),r=_.reduce(o,function(e,t){return e.concat(t.steps[0].fetchContent())},[]);return r.push(ContentValidation.validate(I).then(_.noop,function(){I.launchMethod="api"})),I.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},_.forEach(o,function(t){var n=t.attributes.resourceCenter,i=n.children,o=n.moduleId;"SandboxModule"===o&&(t.hasResourceCenterContent=!0),"IntegrationModule"===o&&(t.integrationConfig=d(n.integrationName,n.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig&&"chat"===t.integrationConfig.name&&l(n.integrationName,n.integrationProvider));var a=_.reduce(i,function(t,n){var i=_.find(e,function(e){return e.id===n});return i?t.concat(i):t},[]);"AnnouncementsModule"===o&&(I.attributes.notifications.individualCounts[t.id]=0,a.forEach(function(e){x(e)||I.attributes.notifications.individualCounts[t.id]++,r.push(e.steps[0].fetchContent())}));var s=["GuideListModule","OnboardingModule","AnnouncementsModule"];if(s.indexOf(o)>-1){var u=_.filter(a,function(e){return e.shouldBeAddedToResourceCenter()});u.length&&(t.hasResourceCenterContent=!0)}t.guidesInModule=a}),I.modules=o,q.all(r)}function t(e){var t=_.filter(e,function(e){return e&&e.attributes&&e.attributes.resourceCenter&&e.attributes.resourceCenter.isTopLevel}),n=_.find(t,function(e){return"staged"===e.state}),i=n?"staged":"public";return _.find(t,function(e){return e&&e.attributes&&e.attributes.resourceCenter&&e.attributes.resourceCenter.isTopLevel&&e.state===i})}function n(e,t){return _.filter(t,function(t){return t&&get(t,"attributes.resourceCenter.isModule",!1)&&t.state===e.state})}function i(e,t,n){var i="left 200ms",o="left";t&&(i=t[0].value,o=t[1].value);var a=pendo.Sizzle("#pendo-resource-center-container")[0];if(a){var s=pendo.dom(a).find('[id^="pendo-g-"]')[0];if(s){var d=_.find(pendo.guides,function(t){return t.id===e});e!==I.id?I.activeModule=d:delete I.activeModule;var u=d.steps[0];u.eventRouter=new EventRouter;var l=u.domJson;l.props["data-pendo-guide-id"]=d.id;var c=BuildingBlockGuides.buildNodeFromJSON(l,u);u.guideElement=c;var p=c[0];-1===p.id.indexOf("pendo-g-")&&(p=c.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=i,s.style.transition=i,"left"===o?p.style.left=a.offsetWidth+"px":"right"===o&&(p.style.left=-1*a.offsetWidth+"px")),n&&pendo.dom(s).remove(),pendo.dom(p).appendTo(a);var f=pendo.dom(p).find('[data-pendo-grow-height="true"]')[0];f&&BuildingBlockGuides.sizeElement(f,a),BuildingBlockGuides.flexElement(a),BuildingBlockGuides.recalculateGuideHeight(u.containerId),p.style.left="0px",n||("left"===o?s.style.left=-1*a.offsetWidth+"px":"right"===o&&(s.style.left=a.offsetWidth+"px"),window.setTimeout(function(){pendo.dom(s).remove()},200));var h="AnnouncementsModule"===d.attributes.resourceCenter.moduleId;return h&&r(),u.onShown("launcher"),c}}}function o(){window.clearInterval(A),A=null}function r(){A||(A=window.setInterval(function(){var e=Sizzle("#pendo-resource-center-container");if(!e.length)return o();var t=pendo.dom(e[0]).find('[data-layout="AnnouncementsModule"]');if(!t.length)return o();var n=pendo.dom(t).find('ol[id^="pendo-list"]');if(!n.length)return o();var i=getClientRect(n[0]),r=pendo.dom(n).find("li.pendo-unseen-announcement");if(!r.length)return o();for(var a=t.attr("data-pendo-guide-id"),s=p().attributes.notifications.individualCounts[a],d=i.height/3,u=getClientRect(r[r.length-1]),l=u.bottom-30<i.top+i.height,c=0;c<r.length;c++){var f=r[c],h=getClientRect(f),g=h.top-i.top>i.height-d;if(g&&!l)break;pendo.dom(f).removeClass("pendo-unseen-announcement");var v=pendo.dom(f).find(".pendo-unread-announcement-mini-bubble");isOldIE(10)?pendo.dom(f).find(".pendo-unread-announcement-mini-bubble").remove():(v[0].style.visibility="hidden",v[0].style.opacity="0",v[0].style.transition="visibility 0s 2s, opacity 2s linear");var m=pendo.dom(f).attr("data-pendo-announcement-guide-id"),b=_.find(pendo.guides,function(e){return e.id===m});if(!b)break;x(b)||s--,b.steps[0].seenState="advanced",seenGuide(b.id,b.steps[0].id,pendo.get_visitor_id(),"whatsnew",b.language),advancedGuide(b.id,b.steps[0].id,pendo.get_visitor_id(),"advanced",b.language)}T(s,a)},500))}function a(e){e.hasResourceCenterContent&&e.skipResourceCenterHomeView?BuildingBlockResourceCenter.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&BuildingBlockResourceCenter.showResourceCenterEmptyState()}function s(){var e=pendo.Sizzle("#pendo-resource-center-container");if(e&&e.length){var t=pendo.Sizzle("#pendo-resource-center-empty-state-container");t&&t.length&&pendo.dom(t[0]).css({display:"block"})}}function d(e,t){return ExtensionService.findExtensionByNameAndProvider(e,t)}function u(e,t,n){var i=ExtensionService.findExtensionByNameAndProvider(e,t);if(!i)return log(t+" integration has not been loaded into the agent");var o=pendo.dom(n);if(!o)return log("could not find target element for "+t+" integration");var r=i.getFrame();r.appendTo(o),r.css({display:"block"})}function l(e,t){var n=ExtensionService.findExtensionByNameAndProvider(e,t);if(!n)return log(t+" integration has not been loaded into the agent");var i=n.getFrame();isInDocument(i[0])||i.appendTo(getGuideAttachPoint()),i.css({display:"none"})}function c(e){if(e.step){var t=e.step.getGuide();if(t.attributes&&t.attributes.resourceCenter){var n=pendo.dom("#pendo-resource-center-container");if(n&&n.length){var i=n.find('iframe[id^="_pendo-launcher-ext-frame-chat"]');i&&i.length&&i.each(function(e){var t=pendo.dom(e);t.css({display:"none"}),t.appendTo(getGuideAttachPoint())})}}}}function p(){return I}function f(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function h(){var e=p(),t=get(e,"attributes.notifications");if(t){var n=g(t.individualCounts);if(0>=n)return void C();v();var i=n!==t.totalUnseenCount;if(i){if("badge"===e.launchMethod){var o=pendo.dom("._pendo-resource-center-badge-container");if(!o.length)return;b(o[0],e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&e.attributes&&e.attributes.activation&&e.attributes.activation.selector){var r=pendo.Sizzle(e.attributes.activation.selector);if(!r.length)return;y(r[0],e.attributes.notificationBubble,n)}t.totalUnseenCount=n}}}function g(e){return _.reduce(e,function(e,t){return e+t},0)}function v(){var e=p();if(e){var t=get(e,"attributes.notifications");if(t){var n=Sizzle('[data-layout="HomeViewModule"]');if(n.length){var i=pendo.dom(n[0]).find("._pendo-resource-center-home-list");i.length&&_.each(t.individualCounts,function(e,t){m(e,t)})}}}}function m(e,t){var n=Sizzle("#pendo-resource-center-container");if(n.length){var i=pendo.dom(n[0]).find('[data-pendo-notification-id="'+t+'"]');if(i.length){var o=pendo.dom(i[0]).find("._pendo-home-view-bubble"),r=pendo.dom(o[0].children[0]),a=e!==parseInt(r.text(),10);a&&(e>0?(r.text(e),pendo.dom(o[0]).css({display:"block","margin-right":"0"})):pendo.dom(o[0]).css({display:"none"}))}}}function b(e,t,n){var i=get(t,"position","top-left"),o=50,r={"top-left":{top:"-17px",left:o-24+"px",padding:"0px 10px","margin-left":"-35px","margin-top":"8px"},"top-right":{top:"-17px",left:o+13+"px",padding:"0px 10px","margin-left":"-35px","margin-top":"8px"},"bottom-left":{top:"23px",left:o-24+"px",padding:"0px 10px","margin-left":"-35px","margin-top":"8px"},"bottom-right":{top:"23px",left:o+13+"px",padding:"0px 10px","margin-left":"-35px","margin-top":"8px"}},a=r[i];w(e,t,n,a)}function y(e,t,n){var i=0,o=0,r=get(e,"offsetParent"),a=getOffsetPosition(e),s=getComputedStyle_safe(e),d="fixed"===s.position,u=getComputedStyle_safe(r);if(r&&"relative"===u.position){var l=getOffsetPosition(r);i=a.top-l.top-parseInt(s.top,10),o=a.left-l.left-parseInt(s.left,10)}else(!s.position||"static"===s.position||d)&&(i=a.top,o=a.left);var c={width:"28px",top:a.top>14?i-14+"px":0,left:a.left>14?o-14+"px":0,position:d?"fixed":"absolute"},p={width:"28px","font-size":"16px","text-align":"center",position:"absolute",right:"0px"};w(e,t,n,c,p)}function w(e,t,n,i,o){var r=document.getElementsByClassName("pendo-resource-center-badge-notification-bubble");if(r.length){var a=r[0].getElementsByClassName("pendo-notification-bubble-unread-count");a[0].textContent=n}else{var s=S(t,n,i,o);E(s,e)}}function S(e,t,n,i){var o={position:"absolute","border-radius":"20px","line-height":"0px",height:"26px","box-sizing":"content-box","background-color":e["background-color"]},r={"font-weight":e["font-weight"],"font-family":e["font-family"],height:"100%",display:"inline-block","line-height":"26px","vertical-align":"middle",color:e.color};t=t||0;var a=dom('<div class="pendo-resource-center-badge-notification-bubble"></div>'),s=dom('<div class="pendo-notification-bubble-unread-count"></div>'),d=_.extend(o,n),u=_.extend(r,i);a.css(d),s.css(u);var l=dom('<style id="pendo-resource-center-bubble-animation"></style>');if(!isOldIE(10)){var c=f(e["background-color"]),p="rgb("+c.r+", "+c.g+", "+c.b+")",h="@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } }",g='.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+p+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }",v=h+" "+g;l.styleSheet?l.styleSheet.cssText=v:l[0].innerHTML=v}return s.text(t),{bubbleEle:a,unseenCountEle:s,styleEle:l}}function E(e,t){e.styleEle.appendTo(t),e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function C(){var e=window.pendo.Sizzle(".pendo-resource-center-badge-notification-bubble"),t=window.pendo.Sizzle("#pendo-resource-center-bubble-animation");e&&_.each(e,function(t,n){if(e[n]){var i=e[n];i.parentNode.removeChild(i)}}),t&&_.each(t,function(e,n){if(t[n]){var i=t[n];i.parentNode.removeChild(i)}})}function T(e,t){var n=p();if(n){var i=get(n,"attributes.notifications");i&&i.individualCounts[t]!==e&&(i.individualCounts[t]=e,BuildingBlockResourceCenter.updateNotificationBubbles())}}function x(e){return _.isFunction(e.hasBeenSeen)&&e.hasBeenSeen()?!0:"active"===e.steps[0].seenState?!0:!1}return{initializeResourceCenter:e,findResourceCenterHomeView:t,findResourceCenterModules:n,replaceResourceCenterContent:i,showHomeViewOrEmptyState:a,showResourceCenterEmptyState:s,launchIntegrationByNameAndProvider:u,appendIntegrationToBodyByNameAndProvider:l,attemptToPreserveIntegrationIframes:c,getResourceCenter:p,addNotificationBubbleToResourceCenterBadge:b,addNotificationBubbleToTargetElement:y,updateNotificationBubbles:h,removeNotificationBubble:C,updateNotificationBubbleCount:T,updateNotificationBubbleOnHomeView:m,updateOrCreateNotificationBubble:w,hexToRgb:f,doesIntegrationExist:d,calculateTotalNotificationCount:g,updateNotificationBubblesOnHomeView:v,createNotification:S,appendNotificationBubble:E,hasAnnouncementBeenSeen:x,clearAnnouncementUnseenInterval:o,createAnnouncementUnseenInterval:r};var I,A}(),BuildingBlockSvgs=function(){function e(e,n){switch(e){case"onboardingProgressCircle":return t(n)}}function t(e){if(isOldIE(9))return o(e);var t=e.svgAttributes,r=t.fillCircle.percentComplete||0,a=r>=100;return a?n(t):i(t)}function n(e){var t=e.fillCircle.stroke,n='<svg xmlns="http://www.w3.org/2000/svg" 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>',i=pendo.dom(n);return i[0].setAttributeNS(null,"stroke",t),i}function i(e){var t=e.fillCircle.stroke,n=e.backgroundCircle.stroke,i=e.fillCircle.percentComplete||0,o=100/(2*Math.PI),r='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+o+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+o+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',a=pendo.dom(r),s=a.find(".pendo-progress-circle-fill")[0],d=a.find(".pendo-progress-circle-background")[0];return d.setAttributeNS(null,"stroke",n),
0>=i?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",t),s.setAttributeNS(null,"stroke-dasharray",i+", 100")),a}function o(e){var t=e.svgAttributes,n=t.fillCircle.stroke,i=t.backgroundCircle.stroke,o=t.fillCircle.percentComplete||0,r=o>=100,a='<div class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>',s=pendo.dom(a),d=s.find(".pendo-progress-circle-fill");return r?d.css({border:"3px solid "+n,height:"10px",width:"10px"}):d.css({border:"3px solid "+i,height:"10px",width:"10px"}),s}return{buildSvgNode:e,createProgressCircleSvg:t}}(),BuildingBlockWatermark=function(){function e(e){var t=_.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark});BuildingBlockWatermark.watermarkGuides=t;var n=_.map(t,function(e){return e.fetchContent()});return q.all(n)}function t(e){return _.find(BuildingBlockWatermark.watermarkGuides,function(t){return e===t.targetAccount})}function n(e,n){e=e||{};var i=t(e.targetAccount);if(i&&i.steps){var o=i.steps[0];if(o&&o.domJson){var r=o.domJson,a=n(r,o);return a.css({position:"absolute",left:"auto",top:e.isBottomAligned?"auto":"100%",bottom:e.isBottomAligned?"100%":"auto",right:"0"}),a}}}return{initializeWatermark:e,buildWatermark:n}}(),P2AutoLaunch=function(){function e(){_.isFunction(document.addEventListener)&&document.addEventListener("keyup",function(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&c("",!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&c("",!1,!0)},!1)}function t(e,t){var r={"background-color":m.WHITE,height:u(b.MODAL_HEIGHT),"min-height":u(b.MODAL_HEIGHT),width:u(b.MODAL_WIDTH),position:"fixed",top:u(b.MODAL_TOP_OFFSET),left:"50%","margin-left":u(-b.MODAL_WIDTH/2),"border-radius":u(4),"box-shadow":"0px 13px 28px rgba(0, 0, 0, 0.17)",overflow:"hidden","z-index":"300000","box-sizing":"border-box"},a=d("div",v.container,r);a.appendChild(s()),a.appendChild(n(t)),a.appendChild(i()),a.appendChild(o(e)),document.body.appendChild(a)}function n(e){var t=d("div",v.header,{"background-color":m.GRAY_PRIMARY,height:u(b.HEADER_HEIGHT),"min-height":u(b.HEADER_HEIGHT),width:"100%",padding:u(10)+" "+u(20),display:"flex","align-items":"center","box-sizing":"border-box"}),n=d("div",v.logoContainer,{height:u(38),width:u(44),"background-color":m.PENDO_PINK,padding:u(8),"border-radius":u(3),"box-sizing":"border-box"});n.innerHTML=y,t.appendChild(n);var i=d("div",v.title,{width:"100%",display:"flex","align-items":"center","font-family":S.PRIMARY_FONT,"font-size":u(18),color:m.WHITE,"margin-left":u(10),"box-sizing":"border-box"});return i.innerText=e?"VIA Designer":"Pendo Designer",t.appendChild(i),t}function i(){var e=d("div",v.body,{height:b.BODY_HEIGHT,"min-height":b.BODY_HEIGHT,width:"100%",display:"flex",padding:u(32)+" "+u(20),"font-family":S.PRIMARY_FONT,"font-size":u(14),"box-sizing":"border-box"});return e.innerText="Thanks for letting us know you're here. We're ready to try this again. Launch Designer below to begin.",e}function o(e){var t=d("div",v.footer,{"align-items":"center","border-top":"1px solid"+m.GRAY_LIGHTER_6,display:"flex",height:u(b.FOOTER_HEIGHT),"justify-content":"flex-end","min-height":u(b.FOOTER_HEIGHT),padding:u(10),width:"100%","box-sizing":"border-box"}),n=d("button",v.closeButton,{"border-radius":u(3),border:"none",height:u(b.BUTTON_HEIGHT),"padding-right":u(10),"padding-left":u(10),"font-family":S.PRIMARY_FONT,"font-size":u(14),display:"flex","line-height":"120%","margin-right":u(10),"min-width":"90px","justify-content":"center","box-sizing":"border-box"});n.innerHTML="Close",n.onclick=function(){p(v.container),p(v.commIframeId)};var i=d("button",v.launchButton,{"background-color":m.TEAL_PRIMARY,"border-radius":u(3),color:m.WHITE,border:"none",height:u(b.BUTTON_HEIGHT),"padding-right":u(10),"padding-left":u(10),"font-family":S.PRIMARY_FONT,"font-size":u(14),display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"});return i.innerHTML="Launch Designer",i.onclick=function(){g(e)},t.appendChild(n),t.appendChild(i),t}function r(e){return _.reduce(_.pairs(e),function(e,t){var n=t[0],i=t[1];return e+n+":"+i+";"},"")}function a(e){return _.reduce(_.pairs(e),function(e,t){var n=t[0],i=t[1];return e+n+"{"+r(i)+"} "},"")}function s(){var e=document.createElement("style");e.setAttribute("id",v.style),e.type="text/css";var t=document.createTextNode(a(w));return e.appendChild(t),e}function d(e,t,n){var i=document.createElement(e);return i.setAttribute("id",t),_.extend(i.style,n),i}function u(e){return e+"px"}function l(e){return"#"+e}function c(e,n,i){if(!pendo.designerLaunched){var o,r,a=pendo._.once(function(e){n||!i?g(e):t(e,n),f()});addSafeWindowMessageListener(function(e){if("pendo-designer-launch-modal"===e.data.destination){if(clearInterval(o),e.data.viaconfirmed)return void clearInterval(r);if(!e.data.token)return void f();a(e.data.token);var t=JSON.parse(e.data.token);pendo._.contains(t.host,"via")&&!t.visitorId&&(r||(r=setInterval(function(){document.getElementById(v.commIframeId)&&h()},100)))}}),pendo.designerv2.addCommunicationIframe({lookasideDir:e,defaultBucket:"in-app-designer"}),h(),o=window.setInterval(h,50)}}function p(e){document.getElementById(e)&&document.getElementById(e).remove()}function f(){var e=document.querySelector("#"+v.commIframeId+'[src*="pendo"]');e&&e.remove()}function h(){document.getElementById(v.commIframeId).contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:window.pendo.visitorId},"*")}function g(e){var t={},n=JSON.parse(e);t.target=n.target||"latest",n.host&&(t.host=n.host),n.lookaside&&(t.lookaside=n.lookaside),p(v.container),pendo.designerv2.launchInAppDesigner(t)}var v={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"},m={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},b={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370};b.FOOTER_HEIGHT=1.25*b.HEADER_HEIGHT,b.BODY_HEIGHT="calc(100% - "+u(b.HEADER_HEIGHT)+" - "+u(b.FOOTER_HEIGHT)+")";var y='<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>',w={};w[l(v.closeButton)+":hover"]={"background-color":m.GRAY_LIGHTER_6},w[l(v.launchButton)+":hover"]={"background-color":m.TEAL_DARKER+" !important"};var S={PRIMARY_FONT:"Helvetica Neue"};return{listen:e,launchOnLocalStorageToken:g,ids:v,removeElement:p,attemptToLaunch:c}}(),DesignerV2=function(){function e(e){return e?isTrustedOrigin2(e):!1}function t(t){if(!g()){var o=/pendo-designer=([A-Za-z0-9-]+)/,r=/lookaside=[A-Za-z0-9-]+/;if(o.test(t)){var a=o.exec(t);if(a){var s=a[0],d=r.exec(t),u=d?d[0]:"",l=n(a[1]),c=queryStringToObject(s+"&"+u),p=e(l.host)?l.host:null;return c.hasOwnProperty("pendo-designer")?(window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),i({target:l.target||"latest",lookaside:c.lookaside,host:p,preloader:!1}),!0):void 0}}}}function n(e){try{return JSON.parse(atob(decodeURIComponent(e)))||{}}catch(t){return{}}}function i(t){if(!g()){pendo.designerLaunchTime=(new Date).getTime(),t||(t={}),t.lookaside||(t.lookaside=pendoLocalStorage.getItem("pendo-designer-lookaside")||"");var n=t.host||b,i=e(n),o=i?n:"https://app.pendo.io";i||log("Invalid host, falling back to https://app.pendo.io");var r=t.gcsBucket||"in-app-designer",a=t.lookaside||t.target||"latest",s=t.preloader?"preloader.js":"plugin.js",d=t.preloader?"preloader-shims":"designer-shims",u=o+"/"+r+"/"+a+"/"+s;window.pendo.designerv2.hostConfig={gcsBucket:r,baseFolder:a,lookaside:t.lookaside,uniqueWindowId:t.uniqueWindowId,host:o};var l={};t.selectionOnly&&(l["selection-only"]=!0),p(d,u,l),pendo.designerLaunched=!0}}function o(){var e="@keyframes pendoExtensionSlideIn{from{transform:translate3d(-300px,0,0)}to{transform:translate3d(0,0,0);}}",t="#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;}",n="#pendo-mousemove-cover{position:absolute;height:100%;width:100%;top:0;left:0;z-index:9999999999;display:none;}",i="#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;}",o="#pendo-designer-container.fullscreen{width:100%;opacity:0.98;}",r="#pendo-designer-container.closed{left:-400px;}",a="#pendo-designer-iframe{background:#3a3c45;border:0px;height:100%;left:0;z-index:10;top:0;width:100%;}";return e+t+i+n+o+r+a}function r(e){e||(e={});var t=e.lookaside||"latest",n=e.gcsBucket||"designer";c("designer-styles",o(t));var i=b+"/"+n+"/"+t+"/plugin.js";if(p("designer-shims",i),window.pendo.DESIGNER_VERSION)return void s(t,e);var r=window.setInterval(function(){window.pendo.DESIGNER_VERSION&&(s(t,e),clearInterval(r))},100)}function a(e){e||(e={});var t=e.lookaside||e.lookasideDir||"latest",n=e.gcsBucket||e.defaultBucket||"designer",i=(new Date).getTime();window.pendo.designerv2.windowCommunicationId=i;var o="pendo-designer-communication-iframe";if(!document.getElementById(o)){var r="pendo-designer-communication-embedded",a="communication.html";r+="__"+i,e&&e.lookaside&&(r+="__"+e.lookaside,a="lookaside-"+a);var s=b+"/"+n+"/"+t+"/"+a,d=u(o,s,"border-width:0;height:0;width:0;");return d.setAttribute("name",r),document.body.appendChild(d),d}return document.getElementById(o)}function s(e,t){f(),d(e,t)}function d(e,t){if(!document.getElementById("pendo-designer-container")){var n="pendo-designer-embedded",i="designer.html",o="designer";n+="__"+window.pendo.designerv2.windowCommunicationId,t&&t.lookaside&&(n+="__"+t.lookaside,i="lookaside.html"),t&&t.gcsBucket&&(o=t.gcsBucket);var r=b+"/"+o+"/"+e+"/"+i,a=u("pendo-designer-iframe",r);a.setAttribute("name",n);var s=l(a);document.body.appendChild(s)}}function u(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&i.setAttribute("style",n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups"),i.src=t,i}function l(e){var t=document.createElement("div");return t.setAttribute("id","pendo-designer-container"),t.appendChild(e),t}function c(e,t){if(!document.getElementById(e)){var n=document.createElement("style");n.setAttribute("id",e),n.type="text/css";var i=document.createTextNode(t);n.appendChild(i),document.getElementsByTagName("head")[0].appendChild(n)}}function p(e,t,n){if(!document.getElementById(e)){var i=document.createElement("script");i.setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=t,n&&_.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i)}}function f(){window.postMessage({type:"connect",source:"pendo-designer-content-script",destination:"pendo-designer-agent"},"*")}function h(e){var t=document.getElementById("pendo-designer-communication-iframe");t&&t.contentWindow.postMessage(e.data,"*")}function g(){return/^pendo/.test(window.name)}function v(){_.isFunction(window.addEventListener)&&detectMaster()&&window.addEventListener("message",m)}function m(e){if(e&&e.data){var t=e.data.destination;if(t&&"pendo-designer-agent"===t){var n=e.data.type;if(n&&"addSelectionCode"===n){var o=e.data.options;o&&(o.selectionOnly=!0,i(o),window.removeEventListener("message",m))}}}}var b="https://app.pendo.io";return v(),{launchDesigner:r,launchInAppDesigner:i,launchOnToken:t,sendMessageToLocalStorage:h,isValidDesignerHost:e,launchSelectionModeFromMessage:m,addCommunicationIframe:a,addStylesToPage:c}}();pendo.designerv2=DesignerV2,pendo.P2AutoLaunch=P2AutoLaunch,pendo.BuildingBlocks={BuildingBlockGuides:BuildingBlockGuides,BuildingBlockResourceCenter:BuildingBlockResourceCenter,BuildingBlockTemplates:BuildingBlockTemplates,BuildingBlockTooltips:BuildingBlockTooltips,BuildingBlockSvgs:BuildingBlockSvgs},pendo.getVersion=getVersion,pendo.isReady=isReady,pendo.pageLoad=pageLoad,pendo.getVisitorId=pendo.get_visitor_id,pendo.getAccountId=pendo.get_account_id,pendo.flushNow=function(){return flushNow(!0)},pendo.initGuides=initGuides,pendo.loadGuides=loadGuides,pendo.findGuideByName=findGuideByName,pendo.hideGuides=hideGuides,pendo.onGuideDismissed=onGuideDismissed,pendo.onGuideAdvanced=onGuideAdvanced,pendo.onGuidePrevious=onGuidePrevious,pendo.startGuides=manuallyStartGuides,pendo.stopGuides=stopGuides,pendo.toggleLauncher=toggleLauncher,pendo.showLauncher=expandLauncherList,pendo.hideLauncher=collapseLauncherList,pendo.removeLauncher=removeLauncher,pendo.defaultCssUrl=getDefaultCssUrl(),pendo.getActiveGuides=getActiveGuides,pendo.getActiveGuide=getActiveGuide,pendo.guideSeenTimeoutLength=getGuideSeenTimeoutLength(),pendo.areGuidesDisabled=areGuidesDisabled,pendo.setGuidesDisabled=setGuidesDisabled,pendo.buildNodeFromJSON=BuildingBlockGuides.buildNodeFromJSON,pendo.flexElement=BuildingBlockGuides.flexElement,pendo.GuideFactory=GuideFactory,pendo.dom=dom,pendo.getEventPropertyTarget=getEventPropertyTarget,pendo.previewEventProperty=collectEventProperty,pendo.log=log,pendo.enableLogging=enableLogging,pendo.disableLogging=disableLogging,pendo.setActiveContexts=setActiveContexts,pendo.showLogHistory=showLogHistory,pendo.getLoggedContexts=getLoggedContexts,pendo.isDebuggingEnabled=isDebuggingEnabled,pendo.enableDebugging=enableDebugging,pendo.disableDebugging=disableDebugging,pendo.addDebuggingFunctions=addDebuggingFunctions,pendo.stopSendingEvents=lockEvents,pendo.startSendingEvents=unlockEvents,pendo.isSendingEvents=isUnlocked,pendo.fromByteArray=b64.uint8ToBase64;var designer={dom:dom,placeBadge:placeBadge,showPreview:showPreview,stopGuides:stopGuides,removeAllBadges:removeAllBadges,_:_,sizzle:Sizzle,tellMaster:tellMaster,tell:tellMaster,log:log,attachEvent:attachEvent,createLauncher:createLauncher,removeLauncher:removeLauncher,addGuideToLauncher:addGuideToLauncher,updateLauncherContent:updateLauncherContent,DEFAULT_TIMER_LENGTH:DEFAULT_TIMER_LENGTH,getOffsetPosition:getOffsetPosition,getScreenDimensions:getScreenDimensions,registerMessageHandler:registerMessageHandler,whenLoadedCall:whenLoadedCall,loadResource:pendo.loadResource,loadGuideCss:loadGuideCss,GuideFactory:GuideFactory,GuideStep:GuideStep,extractElementTreeContext:extractElementTreeContext,previewGuideFromJSON:BuildingBlockGuides.previewGuideFromJSON,hidePreviewedGuide:BuildingBlockGuides.hidePreviewedGuide,shadowAPI:shadowAPI,getTarget:getTarget},addDesignerFunctionality=function(){designer.areGuidesEnabled=!areGuidesDisabled(),pendo.designer||(pendo.designer=designer)},removeDesignerFunctionality=function(){pendo.designer&&(pendo.designer=null,delete pendo.designer)};isPrototypeOlderThan(1.7)&&patchJSONstringify(),pendo.track=track;var Feedback=function(){function e(){oe="",re="",ae="",se="",de=!1,ue="",le=!1}function t(){return ae+"/html/widget/notLoaded.html"}function n(e){var t,n;return"left"===e?(t=ge,n=ye):(t=he,n=be),ce+pe+fe+t+ve+me+n+_e}function i(){agentStorage.write(ne,!0,ie)}function o(){return agentStorage.read(ne)}function r(e){return oe+e}function a(e){if(!o()){var t=s(e);if(t.data&&"{}"!==t.data&&"null"!==t.data)return pendo.ajax.postJSON(r("/widget/pendo_ping"),t).then(c)}return q.resolve()}function s(e){return e||(e=$(getOptionsCopy())),{data:JSON.stringify(e)}}function d(){var e=agentStorage.read(te)||0;return parseInt(e,10)}function u(e){agentStorage.write(te,e)}function l(){var e=pendo.Sizzle("#feedback-trigger-notification");if(0!==e.length){var t=d();t>0?_.forEach(e,function(e){pendo.dom(e).css({visibility:"visible"})}):_.forEach(e,function(e){pendo.dom(e).css({visibility:"hidden"})})}}function c(e){i(),u(e.data.notifications),l()}function p(){return le?q.resolve():K(getOptionsCopy(),getPendoConfigValue("feedbackSettings"))}function f(e,t){return p().then(function(){return _.isUndefined(e)&&(e={}),"A"===get(e,"anchor.nodeName","").toUpperCase()?(h(),!1):void m().then(function(e){window.location.href=e})},function(){})}function h(){var e=window.open(t(),Math.random().toString(36).substring(7));m().then(function(t){e.location=t})}function g(e){var t=document.createElement("a");return t.href=e,t.host}function v(e){se=g(e)}function m(){var e=s();return e.data&&"{}"!==e.data&&"null"!==e.data?pendo.ajax.postJSON(r("/widget/token"),e).then(function(e){return v(e.data.login_url),e.data.login_url}):void 0}function b(){return document.getElementById(we.feedbackWidget)}function y(){return document.getElementById(we.feedbackIframe)}function w(){var e=y();return e||(j(),e=y()),e}function S(){var e=navigator.userAgent.toLowerCase();return-1!=e.indexOf("msie")&&parseInt(e.split("msie")[1],10)<10}function E(e){if(X()){e&&e.preventDefault&&e.preventDefault();var n=w();n.src&&n.src!==t()||m().then(function(e){n.src=e+"&inWidget=true"}),x(),dom.addClass(b(),"visible"),T("user.widget.opened")}}function C(){I(),dom.removeClass(b(),"visible"),T("user.widget.closed")}function T(e){var t=s();return t.event=e,pendo.ajax.postJSON(r("/analytics"),t)}function x(){var e=document.getElementById(we.feedbackWidget);if(e){var t={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=P("feedback-overlay",t,"div"),i=BuildingBlockGuides.buildNodeFromJSON(n),o=e.parentNode;i.appendTo(o)}}function I(){var e=document.getElementById(we.feedbackWidget),t=document.getElementById(we.feedbackOverlay);if(e&&t){var n=document.getElementById(we.feedbackOverlay);n.parentNode.removeChild(n)}}function A(e){return se?g(e)===se:g(e)===g(ae)}function O(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;A(t)&&k(e.data.message,e.data.data)},!1)}function k(e,n){switch(e){case"close-receptive-widget":C();break;case"open-receptive":f();break;case"update-receptive-notification-count":agentStorage.write("receptiveNotificationCount",n.count),l();break;case"handle-logout":w().src=t(),C();break;case"loaded-receptive-widget":de=!0}}function G(e,t){if(e.visitor.id){var i=_.extend(t,{triggerColor:"#"+t.triggerColor,triggerPosition:t.triggerPosition.toLowerCase()});U();var o=B(i);pendo.designerv2.addStylesToPage("pendo-feedback-styles",n(o.horizontalPosition)),t.customTrigger||H(i,o),j(o.horizontalPosition)}}function B(e){var t=e.triggerPosition.split("_");return{horizontalPosition:t[1],verticalPosition:t[0]}}function N(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"}}function L(e){switch(e.verticalPosition){case"top":return{top:" 10%"};case"middle":return{top:" 45%"};case"bottom":return{bottom:" 20%"}}}function P(e,t,n){return{props:{id:e,style:t},type:n}}function R(){return{"data-turbolinks-permanent":""}}function D(e){var t=N(e),n=L(e),i={position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},o=P(we.feedbackTrigger,i,"div");return _.extend(o.props,R()),_.extend(o.props.style,t),_.extend(o.props.style,n),o}function F(){var e={"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"},t=P("feedback-trigger-notification",e,"span");return t}function M(e,t){var n;n="left"===t.horizontalPosition?"0 0 5px 5px":"3px 3px 0 0";var i={border:"none",padding:"11px 18px 14px 18px","background-color":e.triggerColor,"border-radius":n,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},o={actions:[{action:"openFeedback",destination:"Global",eventType:"click",parameters:[],source:we.feedbackTriggerButton,uiMetadata:{}}]},r=P(we.feedbackTriggerButton,i,"button");return _.extend(r,o),_.extend(r,{content:e.triggerText})}function H(e,t){var n=D(t),i=F(),o=M(e,t),r={type:"style",props:{type:"text/css",scoped:"scoped"},css:[{selector:"#feedback-trigger button:hover",styles:{"box-shadow":"0 -5px 20px rgba(0,0,0,.19)",outline:"none",background:"#3e566f"}},{selector:"#feedback-trigger button:focus",styles:{"box-shadow":"0 -5px 20px rgba(0,0,0,.19)",outline:"none",background:"#3e566f"}}]};_.extend(n,{children:[i,o,r]});var a={};a.eventRouter=new EventRouter;var s=BuildingBlockGuides.buildNodeFromJSON(n,a);s.appendTo(getBody())}function U(){"undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var n=document.getElementById(we.feedbackIframe);n&&(n.src=t())})}function z(e){var t=P(we.feedbackWidget,J(),"div");return _.extend(t,{"data-turbolinks-permanent":"true"}),_.extend(t.props,{"class":"buttonIs-"+e}),t}function W(){var e={width:"100%",height:"99.6%",border:"0 none"},n=P(we.feedbackIframe,e,"iframe");return _.extend(n.props,{src:t()}),n}function V(e){var t;return t="left"===e?{selector:".buttonIs-left.visible",styles:{left:"0px",width:"470px","animation-direction":"alternate-reverse",animation:"pendoFeedbackSlideFromLeft 0.5s 0s 1 alternate both","-webkit-animation":"pendoFeedbackSlideFromLeft 0.5s 0s 1 alternate both","z-index":"9002"}}:{selector:".buttonIs-right.visible",styles:{right:"0",width:"470px","animation-direction":"alternate-reverse",animation:"pendoFeedbackSlideFromRight 0.5s 0s 1 alternate both","-webkit-animation":"pendoFeedbackSlideFromRight 0.5s 0s 1 alternate both","z-index":"9002"}},{type:"style",props:{type:"text/css",scoped:"scoped"},css:[t]}}function j(e){var t=V(e),n=z(e);_.extend(n,{children:[W(),t]});var i=BuildingBlockGuides.buildNodeFromJSON(n);i.appendTo(getBody()),O()}function J(){return{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"}}function X(e){var t=e||getOptionsCopy();if(!S()&&re&&oe&&ae&&ue){if(!_.has(t.visitor,"id"))return void pendo.log("Not valid visitor id");if(!isAnonymousVisitor(t.visitor.id)){if(!_.has(t.account,"id"))return void pendo.log("The current visitor is not associated with an account.");if(!t.disableFeedback)return!0}}}function K(e,t){if(re=t.vendorId,oe=t.apiUrl,ae=t.siteUrl,ue=t.productId,!X(e))return q.reject();var n=$(e);try{return"WIDGET"===t.type&&G(e,t),l(),le=!0,a(n)}catch(i){return le=!1,pendo.log(i,"unhandled error while initializing feedback"),q.reject(i)}}function Z(e){return _.isUndefined(e.user)||_.isUndefined(e.user.id)?"noemail+"+pendo.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io"}function Y(e){if(!_.isUndefined(e.user.firstName)||!_.isUndefined(e.user.lastName)){var t=[];return _.isUndefined(e.user.firstName)||t.push(e.user.firstName),_.isUndefined(e.user.lastName)||t.push(e.user.lastName),t.join(" ")}return _.isUndefined(e.user)||_.isUndefined(e.user.id)?"No Name Provided"+pendo.randomString(32):"No Name Provided"+e.user.id}function $(e){var t=getJwtInfoCopy();if(_.isEmpty(t)){var n=JSON.parse(JSON.stringify(e)),i=n.visitor;return delete n.visitor,n.user=i,_.extend(n,{vendor:{id:re}}),_.extend(n.user,{allowed_products:[{id:ue}]}),_.isUndefined(n.account.is_paying)&&(n.account.is_paying=!0),_.isUndefined(n.user.email)&&(n.user.email=Z(n)),_.isUndefined(n.user.full_name)&&(n.user.full_name=Y(n)),n}var o=JSON.parse(JSON.stringify(t));return _.extend(o,{vendor:{id:re}}),_.extend(o,{allowed_products:[{id:ue}]}),o}function Q(){return le}function ee(){pendo.P2AutoLaunch.removeElement("feedback-trigger"),pendo.P2AutoLaunch.removeElement("feedback-widget"),pendo.P2AutoLaunch.removeElement("pendo-feedback-styles"),pendo.P2AutoLaunch.removeElement("feedback-overlay"),pendo.P2AutoLaunch.removeElement("feedback-widget_iframe"),e()}var te="feedback_notification_count",ne="feedback_ping_sent",ie=36e5,oe="",re="",ae="",se="",de=!1,ue="",le=!1,ce="@media only screen and (max-device-width:1112px){#feedback-widget{overflow-y:scroll}}",pe="@-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%)}}",fe="@-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)}}",he="@-webkit-keyframes pendoFeedbackSlideFromRight{from{transform:translate(-460px,0)}to{transform:translate(0,0)}}@keyframes pendoFeedbackSlideFromRight{from{opacity:0;transform:translate(460px,0)}to{opacity:1;transform:translate(0,0)}}",ge="@-webkit-keyframes pendoFeedbackSlideFromLeft{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}@keyframes pendoFeedbackSlideFromLeft{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}",ve="@-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)}}",me="@-webkit-keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}@keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}",be="@media only screen and (max-width:470px){#feedback-widget.buttonIs-right.visible{width:100%;right:2%}}",ye="@media only screen and (max-width:470px){#feedback-widget.buttonIs-left.visible{width:100%}}",_e="#feedback-trigger button:focus,#feedback-trigger button:hover{box-shadow:0 -5px 20px rgba(0,0,0,.19);outline:0;background:#3e566f}",we={feedbackIframe:"feedback-widget_iframe",feedbackTrigger:"feedback-trigger",feedbackWidget:"feedback-widget",feedbackOverlay:"feedback-overlay",feedbackTriggerButton:"feedback-trigger-button"},Se=function(){return de};return{ping:a,init:K,initialized:Q,loginAndRedirect:f,openFeedback:E,initializeFeedbackOnce:p,isFeedbackLoaded:Se,convertPendoToFeedbackOptions:$,isUnsupportedIE:S,removeFeedbackWidget:ee}}();if(pendo.feedback=Feedback,!pendoCore){var guidesCoreOff=["initGuides","loadGuides","findGuideByName","hideGuides","onGuideDismissed","onGuideAdvanced","onGuidePrevious","startGuides","stopGuides","toggleLauncher","showLauncher","hideLauncher","removeLauncher","defaultCssUrl","areGuidesDisabled","setGuidesDisabled","flexElement","GuideFactory","P2AutoLaunch","BuildingBlocks","designer","advancedGuide","dismissedGuide","findGuideBy","findGuideById","findStepInGuide","getElementForGuideStep","guideContent","guideDev","isGuideShown","seenGuide","showGuideById","showGuideByName","showGuideByName","showPreview","stageGuideEvent","waitThenStartGuides","_addCloseButton","_addGuideToLauncher","_shouldAutoDisplayGuide","_showElementGuide","_showGuide","_showLightboxGuide","_updateGuideStepStatus","badgeDiv","badgesShown","isBadge","placeBadge","removeAllBadges","_addCredits","_createGuideEvent","_createToolTip","_getNextStepInMultistep","_getOpacityStyles","_get_offset","_get_screen_dim","_get_tooltip_dimensions","_isInViewport","_isOldIE","_sendGuideEvent","findModuleByName","guidesProcessingThreadHandle","initLauncher","getTooltipDivId","receiveDomStructureJson","setupWatchOnTooltip","testUrlForStep","hasModule"],eventsCoreOff=["flushEventCache","flushNow","getEventCache","isSendingEvents","processEventCache","send_event","startSendingEvents","stopSendingEvents","track","_sendEvent","_stopEvents","_storeInCache","_writeEventImgTag","_writeImgTag","events","eventCache","attachEvent","detachEvent","getText"],functionsCoreOff=guidesCoreOff.concat(eventsCoreOff);disableUnusedMethodsPendoCoreOff(functionsCoreOff)}_.each(["identify","updateOptions","pageLoad"],function(e){var t=pendo[e];pendo[e]=function(){try{isReady()?t.apply(this,arguments):enqueueCall(e,arguments)}catch(n){writeException(n)}}}),whenLoadedCall(autoInitialize)}}(),pendo.defaultLauncher('<div class="_pendo-launcher-content_" style="border-color:<%= data.color %>">\n <div class="_pendo-launcher-header_">\n <img src="<%= data.launcherBadgeUrl %>"/>\n <div class="_pendo-launcher-title_"><%= data.title %></div>\n <% if (data.enableSearch) { %>\n <div class="_pendo-launcher-search-box_">\n <input type="text" placeholder="Type here to start looking..." />\n </div>\n <% } %>\n </div>\n <div class="_pendo-launcher-guide-listing_">\n <% pendo._.each(guides, function(guide) { %>\n <div class="_pendo-launcher-item_" id="launcher-<%= guide.id %>">\n <a href="javascript:void(0);"><%= guide.name %></a>\n </div>\n <% }) %>\n </div>\n <% if (hidePoweredBy) { %>\n <div class="_pendo-launcher-footer_"></div>\n <% } else { %>\n <div class="_pendo-launcher-footer_ _pendo-launcher-footer-credits_">\n <span>powered by pendo</span>\n </div>\n <% } %>\n</div>\n',function(obj){obj||(obj={});var __t,__p="";Array.prototype.join;with(obj)__p+='<div class="_pendo-launcher-content_" style="border-color:'+(null==(__t=data.color)?"":__t)+'">\n <div class="_pendo-launcher-header_">\n <img src="'+(null==(__t=data.launcherBadgeUrl)?"":__t)+'"/>\n <div class="_pendo-launcher-title_">'+(null==(__t=data.title)?"":__t)+"</div>\n ",data.enableSearch&&(__p+='\n <div class="_pendo-launcher-search-box_">\n <input type="text" placeholder="Type here to start looking..." />\n </div>\n '),__p+='\n </div>\n <div class="_pendo-launcher-guide-listing_">\n ',pendo._.each(guides,function(e){__p+='\n <div class="_pendo-launcher-item_" id="launcher-'+(null==(__t=e.id)?"":__t)+'">\n <a href="javascript:void(0);">'+(null==(__t=e.name)?"":__t)+"</a>\n </div>\n "}),__p+="\n </div>\n ",__p+=hidePoweredBy?'\n <div class="_pendo-launcher-footer_"></div>\n ':'\n <div class="_pendo-launcher-footer_ _pendo-launcher-footer-credits_">\n <span>powered by pendo</span>\n </div>\n ',__p+="\n</div>\n";return __p}))}(window,document);
})({
blockAgentMetadata: false,
dataHost: "data.pendo.io",
stagingServers: null,
stagingAgentUrl: null,
allowedText: ["7","&","#","A","About","Access","Accounts","Activities","Add","Address","Addresses","AIMS","All","Analytics","and","are","AS","assigned","At","Back","BPS","by","CANCEL","Category","Change","Client","Clients","Columns","Company","Contact","Contacts","Contract","created","Data","days","Detail","Detailed","Details","Displayed","Draft","due","else","Exception","Filter","Glance","Go","I","id","in","Information","Last","Linked","Map","me","My","myOneVoice","New","next","not","NOTE","NSP","Open","OV_Notes","OV_SR_Notes","Owner","Past","Pending","Profile","Projects","Recent","Records","Reference","Refresh","Related","REQUEST","SAVE","Service","Settings","Site","someone","span","SR","SRs","starting","Sub","SUBMIT","TASK","Tasks","Team","that","this","to","View","Viewed","week","Welcome","ADD","NOTE","NEW","SAVE","TASKS"],
disableCookies: false,
disableDesignerKeyboardShortcut: false,
disableFeedbackAutoInit: false,
disableGlobalCSS: false,
disablePersistence: false,
enableDebugEvents: false,
enableGuideTimeout: true,
enableSignedMetadata: false,
excludeAllText: false,
freeNPSData: false,
guideValidation: true,
localStorageOnly: false,
pendoCore: true,
pendoFeedback: true,
preventCodeInjection: false,
requireSignedMetadata: false,
guideSeenTimeoutLength: 0,
xhrTimings: false,
xhrWhitelist: null,
htmlAttributeBlacklist: /^(title|alt|href|src|id)$/i,
htmlAttributes: /^(tabindex|div-sc-header-block-settings|data-id|sc-header-block-settings|data-component|data-analytics-.*|data-table-name)$/i,
apiKey: "5ba2118f-b462-47f9-66eb-e0eeddbf109d",
feedbackSettings: {
productId: "7e03fae4-57b2-44ce-8707-4b24f3263092",
apiUrl: "https://api.feedback.us.pendo.io",
siteUrl: "https://feedback.us.pendo.io",
vendorId: "525d5b7c-488b-4ff3-bd83-c4b90066266d",
type: "PORTAL"
}
}); (function(){"undefined"!=typeof pendo.addExtension&&(function(){function e(e,n){function t(e){return d.push(e.uri()),e}function o(e){if(!r.has(e,"uri"))return!1;var n=e.uri().cmds;return n.length?!0:!1}function i(e,n){var t=null;return r.some(e,function(e){return r.some(e.cmds,function(e){return e.cmd===n?(t=e,e):void 0})}),t}function a(e,n,t,o){var i={id:e,response:o,type:t};return n.postMessage(JSON.stringify(i),"*")}function s(t){try{var o=JSON.parse(t.data),s=o.id,c=isNaN(o.type)?o.type:o.key,u=t.source,l=i(d,c);if(l)return l.handler(e,n,o,u,r.partial(a,s,u,c))}catch(p){}}var r=pendo._,d=[];e.registerExtensionsByUse("cmd",t,o),r.isFunction(window.addEventListener)?window.addEventListener("message",s,!1):window.attachEvent("message",s)}pendo.addExtension({name:"command",version:"1.0.1",type:"agent",use:"behavior",description:"adds command functionality to the agent",minAgentVersion:"2.13.0",uri:e})}(),function(){function e(e,n){function t(e){return s.create(e)}function o(){var n=e.filterExtensionsByUse("launcher");d.map(n,function(e){e.addExtension()})}function i(e,n,t,o){r("#_pendo-launcher-ext-frame-"+e+"_").length||n.appendTo('[data-id="'+e+'"] ._pendo-launcher-extension-listing_')}function a(e,n,t,o){var i=t.section+'[data-id="'+e+'"]';if(!r("."+i).length){var a=d.template('<div class="<%= classes.sectionHeader %>"> <div class="<%= classes.sectionTitle %>"> <%= labels.title %> </div> <button class="<%= classes.sectionBackButton %>" aria-label="back"></button></div><div class="<%= classes.sectionBody %>"></div>');r("<div/>").addClass(t.section).attr("data-id",e).html(a({classes:t,labels:o})).appendTo("."+t.body),n.appendTo("."+i+" ."+t.sectionBody)}}function s(e){function n(){return""+(new Date).getTime()}function t(e,n){var t=r('[data-id="'+e+'"]');return t.length?t:null}function o(e,n,t){var o,i,a;"accordion"===pendo.guideWidget.data.templateName?(i="_pendo-launcher-accordion_ _pendo-launcher-"+e+"_",a="._pendo-launcher-body_",o=d.template("<button style=\"background-image: url('https://"+pendo.guideWidget.data.contentHostUrl+'/img/caret-collapsed.png\'); background-repeat: no-repeat; background-position: right 10px center;"> <%= labels.title %></button><div class="_pendo-launcher-extension-listing_"></div>')):(i=n.menuItem,a="."+n.menu,o=d.template('<button class="<%= classes.button %>"> <div class="<%= classes.buttonTitle %>"> <%= labels.title %> </div> <% if (labels.description) { %> <div class="<%= classes.buttonDescription %>"> <%= labels.description %> </div> <% } %></button><div class="_pendo-launcher-item_" style="display:none"></div>'));var s=r("<div/>").addClass(i).attr("data-id",e).html(o({classes:n,labels:t})).appendTo(a);return r("button",s)}this.data=e,this.use="launcher",this.name=this.data.name,this.getName=function(){return this.name},this.getClasses=function(){return{menu:e.options.classes.menu||"_pendo-launcher-menu_",menuItem:e.options.classes.menuItem||"_pendo-launcher-menu-item_",button:e.options.classes.button||"_pendo-launcher-menu-item-button_",buttonTitle:e.options.classes.buttonTitle||"_pendo-launcher-menu-item-title_",buttonDescription:e.options.classes.buttonDescription||"_pendo-launcher-menu-item-description_",body:e.options.classes.body||"_pendo-launcher-body_",section:e.options.classes.section||"_pendo-launcher-section-content_",sectionHeader:e.options.classes.sectionHeader||"_pendo-launcher-section-header_",sectionTitle:e.options.classes.sectionTitle||"_pendo-launcher-section-title_",sectionBody:e.options.classes.sectionDescription||"_pendo-launcher-section-body_",sectionBackButton:e.options.classes.sectionBackButton||"_pendo-launcher-section-back-button_"}},this.getLabels=function(){return{title:this.data.options.labels.title||this.name,description:this.data.options.labels.description}},this.getConfig=function(){return this.data},this.getFrame=function(){if(!this.frame){var e=["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-scripts","allow-same-origin","allow-top-navigation"];this.frame=r("<iframe/>").css({border:"none"}).attr("id","_pendo-launcher-ext-frame-"+this.getName()+"_"+n()).attr("src",this.data.uri).attr("width","100%").attr("height","100%").attr("sandbox",e.join(" "))}return this.frame},this.addExtension=function(){var e=this.getName(),n=this.getClasses(),i=this.getLabels();if(this.trigger=t(e,n)||o(e,n,i),!this.trigger.attr("data-rendered")){if("chat"===e)return this.trigger.attr("data-rendered","true"),this.launchExtension();this.trigger.on("click",d.bind(this.launchExtension,this)),this.trigger.attr("data-rendered","true")}},this.launchExtension=function(){var e=this.getFrame(),n=this.getName(),t=this.getClasses(),o=this.getLabels();return"accordion"===pendo.guideWidget.data.templateName?i(n,e,t,o):a(n,e,t,o)}}var r=pendo.dom,d=pendo._;e.registerExtensionsByUse("launcher",t),n.Launcher.addBehavior(function(){return this.after("updateLauncherContent",o),this}),s.create=function(e){return new s(e)}}pendo.addExtension({name:"launcher",version:"1.0.0",type:"agent",use:"behavior",description:"adds launcher behavior functionality to agent",minAgentVersion:"2.13.0",uri:e})}(),function(){function e(e,i,a,s,r){r({browser:{cookies:n(e,i,a,s),env:t(e,i,a,s),url:o(e,i,a,s)}})}function n(e,n,t,o,i){i({cookies:document.cookie})}function t(e,n,t,o,i){i({env:pendo.ENV})}function o(e,n,t,o,i){var a=pendo.url.externalizeURL();"listen"===t.type&&pendo.url.watch(function(){i({url:a})}),i({url:a})}pendo.addExtension({name:"browser",version:"1.0.0",type:"agent",use:"cmd",minAgentVersion:"2.13.0",uri:function(){return{cmds:[{cmd:"browser",handler:e},{cmd:"browser.cookies",handler:n},{cmd:"browser.env",handler:t},{cmd:"browser.url",handler:o}]}}})}(),function(){function e(e,n,t,o,i){function a(e,n){if(!document.getElementById(e)){var t=document.createElement("div");t.innerHTML='<p>pendo</p><style id="'+e+'" type="text/css">'+n+"</style>",document.getElementsByTagName("head")[0].appendChild(t.childNodes[1])}}function s(e,n){v(e).css({webkitTransform:n,mozTransform:n,msTransform:n,oTransform:n,transform:n,cursor:"zoom-out"}),""===n&&v(e).css({"-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)",filter:"alpha(opacity=0)",opacity:0,cursor:"default"})}function r(){pendo.attachEvent(window,"scroll",f),pendo.attachEvent(window,"resize",f),pendo.attachEvent(document,"click",c)}function d(){pendo.detachEvent(document,"click",c),pendo.detachEvent(window,"scroll",f),pendo.detachEvent(window,"resize",f)}function c(e){return e.metaKey||e.ctrlKey?void window.open(e.target.src,"_blank"):(e.preventDefault(),void f())}function u(){a("_pendo-ext-zoom-styles_",x);var e=document.createElement(T.type.toLowerCase());v(e).addClass("_pendo-ext-zoom-content_").css({cursor:"progress",width:T.width+"px",transition:"all "+C+"ms"}).on("load",h).attr("src",T.src),E=e,r(),p()}function l(){var e=n.Util.getOffsetPosition(v("#_pendo-launcher-ext-frame-helpcenter_")[0]),t=e.top+T.top,o=e.left+T.left;return{top:t+n.Util.documentScrollTop(),left:o+n.Util.documentScrollLeft()}}function p(){z=v("<div/>").addClass("_pendo-ext-zoom-container_").css({cursor:"progress",top:l().top+"px",left:l().left+"px",transition:"all "+C+"ms"}).append(E).appendTo(v.getBody()),N=v("<div/>").addClass("_pendo-ext-zoom-overlay_").css({transition:"all "+C+"ms"}).appendTo(v.getBody())}function m(){var e=null,n=E.naturalWidth,t=E.naturalHeight,o=n/T.width,i=window.innerHeight-B,a=window.innerWidth-B,s=n/t,r=a/i;return e=a>n&&i>t?o:r>s?i/t*o:a/n*o}function h(){var e=n.Util.getOffsetPosition(E),t=window.innerWidth/2,o=window.pageYOffset+window.innerHeight/2,i=e.left+E.width/2,a=e.top+E.height/2,r=Math.round(t-i),d=Math.round(o-a),c="scale("+m()+")",u="translate("+r+"px, "+d+"px) translateZ(0)";s(E,c),s(z,u),N.addClass("_pendo-ext-zoom-overlay-active_")}function f(){d(),s(E,""),s(z,""),N.removeClass("_pendo-ext-zoom-overlay-active_").css({cursor:"default"}),setTimeout(function(){g()},C)}function g(){E&&(v(E).css({width:null}),pendo._.each([E,z,N],function(e){v(e).remove()}),E=null)}var v=pendo.dom,_=["IMG","PICTURE"];if(-1!==pendo._.indexOf(_,t.data.type)){var y="._pendo-ext-zoom-container_{position:absolute;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);opacity:1;z-index:300002}",b="._pendo-ext-zoom-content_{position:relative;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=1);filter:alpha(opacity=100);opacity:1;max-height:none;max-width:none;height:auto;}",w="._pendo-ext-zoom-overlay_{background-color:#fff;position:fixed;top:0;bottom:0;left:0;right:0;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);filter:alpha(opacity=0);opacity:0;z-index:300001;cursor:progress;}._pendo-ext-zoom-overlay_._pendo-ext-zoom-overlay-active_{-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=85);filter:alpha(opacity=85);opacity:0.85;cursor:zoom-out;}",x=y+b+w,T=t.data,k=T.options||{},C=k.transitionDuration||300,B=k.margin||80,E=null,z=null,N=null;return u()}}pendo.addExtension({name:"content",version:"1.0.0",type:"agent",use:"cmd",minAgentVersion:"2.13.0",uri:function(){return{cmds:[{cmd:"content.zoom",handler:e}]}}})}(),function(){function e(e,n,t,o,i){pendo.dom('._pendo-launcher_ ._pendo-launcher-menu-item_[data-id="'+t.data+'"]').on("click",function(){return i()})}function n(e,n,t,o,i){pendo.dom("._pendo-launcher-badge_").on("click",i)}pendo.addExtension({name:"events",version:"1.0.0",type:"agent",use:"cmd",minAgentVersion:"2.13.0",uri:function(){return{cmds:[{cmd:"events.onMenuItemClick",handler:e},{cmd:"events.onToggleClick",handler:n}]}}})}(),function(){function e(e,o,i,a,s){s({extension:{config:n(e,o,i,a,s),stylesheet:t(e,o,i,a,s)}})}function n(e,n,t,o,i){var a=e.findExtensionByTag(t.tag),s=a.getConfig();i({config:s})}function t(e,n,t,o,i){var a=e.findExtensionByTag(t.tag),s=a.getConfig(),r=s.options.stylesheet;i({stylesheet:r})}pendo.addExtension({name:"extension",version:"1.1.1",type:"agent",use:"cmd",minAgentVersion:"2.13.0",uri:function(){return{cmds:[{cmd:"extension",handler:e},{cmd:"extension.config",handler:n},{cmd:"extension.stylesheet",handler:t}]}}})}(),function(){function e(e,n,t,o,i){e.tagExtension(t.data,t.tag)}pendo.addExtension({name:"init",version:"1.0.0",type:"agent",use:"cmd",minAgentVersion:"2.13.0",uri:function(){return{cmds:[{cmd:"init",handler:e}]}}})}(),function(){function e(e,n,t,o,i){var a=n.Metadata.getMetadata();i({metadata:a})}pendo.addExtension({name:"metadata",version:"1.0.0",type:"agent",use:"cmd",minAgentVersion:"2.13.0",uri:function(){return{cmds:[{cmd:"metadata",handler:e}]}}})}(),function(){function e(e,t,o,i,a){var s={},r={};if(pendo.guides){r=n();for(var d in r)r.hasOwnProperty(d)&&(s[d]=r[d]);return a({pendoContext:s})}return pendo.events.guidesLoaded(function(){r=n();for(var e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);a({pendoContext:s})})}function n(){var e=window.pendo.BuildingBlocks&&window.pendo.BuildingBlocks.BuildingBlockResourceCenter&&window.pendo.BuildingBlocks.BuildingBlockResourceCenter.getResourceCenter&&window.pendo.BuildingBlocks.BuildingBlockResourceCenter.getResourceCenter();return{isResourceCenter:!!e,isResourceCenterVisible:e&&e.isShown()}}pendo.addExtension({name:"pendoContext",version:"1.0.0",type:"agent",use:"cmd",minAgentVersion:"2.17.0",uri:function(){return{cmds:[{cmd:"pendoContext",handler:e}]}}})}(),function(){function e(e,t,o,i,a){a({subscription:{key:n(e,t,o,i,a)}})}function n(e,n,t,o,i){var a=pendo.apiKey;i({key:a})}pendo.addExtension({name:"subscription",version:"1.0.0",type:"agent",use:"cmd",minAgentVersion:"2.13.0",uri:function(){return{cmds:[{cmd:"subscription",handler:e},{cmd:"subscription.key",handler:n}]}}})}(),function(){function e(e,n,t,o,i){return pendo.toggleLauncher()}function n(e,n,t,o,i){return document.querySelector('[data-id="'+t.data+'"] ._pendo-launcher-section-back-button_').click()}function t(e,n,t,o,i){var a=pendo.dom,s=t.data.height,r=a('[data-id="'+t.data.clientType+'"] ._pendo-launcher-section-header_');0===s?r.css({display:"none"}):r.css({height:s}),a("._pendo-launcher_ ._pendo-close-guide_").css({display:"none"}),a('[data-id="'+t.data.clientType+'"] ._pendo-launcher-section-body_').css({top:s})}function o(e,n,t,o,i){function a(e){var n=u.whatsnew.unseenCount,t=e+n;return 0===t?c("._pendo-launcher-whatsnew-count_").html("").css({display:"none"}):(p=c("._pendo-launcher-badge_ > ._pendo-launcher-whatsnew-count_"),p.css({display:"inline-block"}).html(t),h.html(e),void pendo.guideWidget.after("update",function(){n!==u.whatsnew.unseenCount&&(n=u.whatsnew.unseenCount,t=e+n,p.html(t>0?t:"").css({display:t?"inline-block":"none"}))}))}function s(e){if(p=c("<div/>").addClass("_pendo-launcher-whatsnew-count_"),"element"===u.launchType)p.appendTo(u.launchElement);else{var n=c("._pendo-launcher-badge_");n.length>0&&n[0]&&/^img$/i.test(n[0].nodeName)&&(c("<div>").addClass(n[0].className).append(n[0]).appendTo(c.getBody()),n[0].className="",p.appendTo(c("._pendo-launcher-badge_")))}return c("._pendo-launcher-whatsnew-count_").html(m>0?m:"").css({display:m?"inline-block":"none"})}var r,d=pendo._,c=pendo.dom,u=pendo.guideWidget.data,l=pendo.BuildingBlocks;l&&(r=l.BuildingBlockResourceCenter);var p,m=t.data.count,h=c('[data-id="'+t.data.clientType+'"] ._pendo-launcher-whatsnew-count_');return r&&r.getResourceCenter&&r.getResourceCenter()?void(d.isFunction(r.updateNotificationBubbleCount)&&r.updateNotificationBubbleCount(t.data.count,t.data.clientType)):(h.length||(h=c("<span/>").addClass("_pendo-launcher-whatsnew-count_").html(m).appendTo(c('[data-id="'+t.data.clientType+'"] ._pendo-launcher-menu-item-button_'))),h.css({display:m?"inline-block":"none",top:0,bottom:0,right:"50px",margin:"auto"}),u.whatsnew.enabled?a(m):s(m))}function i(e,n,t,o,i){var c=pendo.dom,u=t.data.sender||"",l=t.data.preview||"New notification",p=c("._pendo-launcher-badge_"),m=1e4,h=a(u).appendTo(p);s(u,l).appendTo(h);var f=r(h,m);d(h,p,function(){f()},m)}function a(e){var n=pendo.dom,t="launcher-notification-preview",o=n("#"+t);return o.length>0?o.css({opacity:"1"}).html(""):n('<div id="'+t+'">').addClass(["_pendo-launcher-notification-preview_",e].join(" ").trim()).css({position:"absolute",top:"-82px",left:"-325px",height:"100px",width:"300px",padding:"10px",verticalAlign:"bottom",boxShadow:"0px 2px 3px #888",borderRadius:"8px",borderTop:"1px solid #ccc",backgroundColor:"#fff"})}function s(e,n){var t=pendo.dom,o=n+""+(e?" from "+e:"");return t("<div>").text(o)}function r(e,n){var t=pendo.dom;if(n){var o=setTimeout(function(){r(e)},n);return function(){clearTimeout(o)}}t(e).remove()}function d(e,n,t,o){c(n,"click",function(){r(e),t&&t()},o)}function c(e,n,t,o){var i=pendo.dom,a=pendo.attachEvent,s=pendo.detachEvent;if(0!==i(e).length){var r=function(){s(e[0],"click",d)},d=function(){t(),r(),setTimeout(r,o)};a(e[0],"click",d)}}pendo.addExtension({name:"triggers",version:"1.1.1",type:"agent",use:"cmd",minAgentVersion:"2.13.0",uri:function(){return{cmds:[{cmd:"triggers.toggleLauncher",handler:e},{cmd:"triggers.returnToMenu",handler:n},{cmd:"triggers.resizeHeader",handler:t},{cmd:"triggers.updateNotificationBadge",handler:o},{cmd:"triggers.notification",handler:i}]}}})}())})();(function() { "undefined" != typeof pendo.addExtension &&(function() { pendo.addExtension({"environment":"production","minAgentVersion":"2.13.0","name":"helpcenter","options":{"resultCount":4,"labels":{"title":"Help Center","description":"Search for Articles"},"suggestions":{"enabled":true,"path":3,"combineSuggestionPaths":false,"defaultQuery":""},"classes":{"menu":"_pendo-launcher-menu_","body":"_pendo-launcher-body_","menuItem":"_pendo-launcher-menu-item_","button":"_pendo-launcher-menu-item-button_","buttonTitle":"_pendo-launcher-menu-item-title_","buttonDescription":"_pendo-launcher-menu-item-description_","section":"_pendo-launcher-section-content_","sectionHeader":"_pendo-launcher-section-header_","sectionTitle":"_pendo-launcher-section-title_","sectionBody":"_pendo-launcher-section-body_","sectionBackButton":"_pendo-launcher-section-back-button_"},"stylesheet":"https://storage.googleapis.com/pendo-static-4802463602049024/Sqwp_HdWlHatXl7oGjEq_ZxJaNg.extension.css","stylesheetName":"zd-table-2.css"},"provider":{"name":"zendesk","options":{"subdomain":"slack","token":"","category":""}},"type":"agent","use":"launcher","uri":"https://pendo-io-extensions.storage.googleapis.com/extensions/helpcenter/latest/index.html","version":"1.4.4"})}());}());(function() { "undefined" != typeof pendo.addExtension &&(function() { pendo.addExtension({"environment":"production","minAgentVersion":"2.13.0","name":"chat","options":{"labels":{"title":"Live Chat","description":"Real-time Support"},"classes":{"menu":"_pendo-launcher-menu_","body":"_pendo-launcher-body_","menuItem":"_pendo-launcher-menu-item_","button":"_pendo-launcher-menu-item-button_","buttonTitle":"_pendo-launcher-menu-item-title_","buttonDescription":"_pendo-launcher-menu-item-description_","section":"_pendo-launcher-section-content_","sectionHeader":"_pendo-launcher-section-header_","sectionTitle":"_pendo-launcher-section-title_","sectionBody":"_pendo-launcher-section-body_","sectionBackButton":"_pendo-launcher-section-back-button_"}},"provider":{"name":"intercom","options":{"promptNewMessage":false,"providerKey":"phesj0f5"}},"type":"agent","use":"launcher","uri":"https://pendo-io-extensions.storage.googleapis.com/extensions/chat/latest/index.html","version":"1.2.5"})}());}());(function() { "undefined" != typeof pendo.addExtension &&(function() { pendo.addExtension({"environment":"production","minAgentVersion":"2.13.0","name":"receptive-feedback","options":{"labels":{"title":"Share Your Feedback","description":"You can edit this to provide a better description."}},"provider":{"name":"receptive","options":{"authToken":"bc7aa1d9-7b48-4382-bb52-c74723e7b186"}},"type":"agent","use":"launcher","uri":"https://receptive.io/app/#/pendo/auth?inIframe=true","version":"0.3.0"})}());}());(function() { "undefined" != typeof pendo.addExtension &&(function() { pendo.addExtension({"environment":"production","minAgentVersion":"2.13.0","name":"chat","options":{"labels":{"title":"Live Chat","description":"Real-time Support"},"classes":{"menu":"_pendo-launcher-menu_","body":"_pendo-launcher-body_","menuItem":"_pendo-launcher-menu-item_","button":"_pendo-launcher-menu-item-button_","buttonTitle":"_pendo-launcher-menu-item-title_","buttonDescription":"_pendo-launcher-menu-item-description_","section":"_pendo-launcher-section-content_","sectionHeader":"_pendo-launcher-section-header_","sectionTitle":"_pendo-launcher-section-title_","sectionBody":"_pendo-launcher-section-body_","sectionBackButton":"_pendo-launcher-section-back-button_"}},"provider":{"name":"drift","options":{"promptNewMessage":false,"providerKey":"kk4sf2484cxb"}},"type":"agent","use":"launcher","uri":"https://pendo-io-extensions.storage.googleapis.com/extensions/chat/latest/index.html","version":"1.2.5"})}());}());