@pendo/agent 2.350.0 → 2.350.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dom.esm.js CHANGED
@@ -7592,7 +7592,7 @@ function applyMatrix2dRect(matrix2d, rect) {
7592
7592
  return transformedRect;
7593
7593
  }
7594
7594
 
7595
- var VERSION = '2.350.0_';
7595
+ var VERSION = '2.350.1_';
7596
7596
 
7597
7597
  var decodeURIComponent = _.isFunction(globalScope.decodeURIComponent) ? globalScope.decodeURIComponent : _.identity;
7598
7598
 
@@ -4175,8 +4175,8 @@ let SERVER = '';
4175
4175
  let ASSET_HOST = '';
4176
4176
  let ASSET_PATH = '';
4177
4177
  let DESIGNER_SERVER = '';
4178
- let VERSION = '2.350.0_';
4179
- let PACKAGE_VERSION = '2.350.0';
4178
+ let VERSION = '2.350.1_';
4179
+ let PACKAGE_VERSION = '2.350.1';
4180
4180
  let LOADER = 'xhr';
4181
4181
  /* eslint-enable web-sdk-eslint-rules/no-gulp-env-references */
4182
4182
  /**
@@ -57418,9 +57418,13 @@ const injectStyles = (pendoContainerId, log = () => { }) => {
57418
57418
  `
57419
57419
  }, document.head);
57420
57420
  };
57421
- const getRecordIdFromUrl = (recordRegex, log = () => { }) => {
57421
+ // Guides can render inside an iframe whose own location differs from the page
57422
+ // the SDK tracks, so prefer the SDK's URL (the one guides were loaded for).
57423
+ const getPendoPageUrl = (pendo) => { var _a, _b; return ((_b = (_a = pendo === null || pendo === void 0 ? void 0 : pendo.url) === null || _a === void 0 ? void 0 : _a.get) === null || _b === void 0 ? void 0 : _b.call(_a)) || window.location.href; };
57424
+ const stripOrigin = (href) => href.replace(/^[a-z][a-z\d+.-]*:\/\/[^/?#]*/i, '');
57425
+ const getRecordIdFromUrl = (recordRegex, href = window.location.href, log = () => { }) => {
57422
57426
  var _a;
57423
- const match = window.location.href.match(recordRegex);
57427
+ const match = href.match(recordRegex);
57424
57428
  const recordId = (_a = match === null || match === void 0 ? void 0 : match[1]) !== null && _a !== void 0 ? _a : null;
57425
57429
  log(`[predict] recordId found: ${recordId}`);
57426
57430
  return recordId;
@@ -57438,13 +57442,13 @@ const buildRecordRegex = (keyword) => new RegExp(`(?:^|[/?&=.#])${escapeRegexKey
57438
57442
  // 2. recordRegexName - the generalized keyword matcher (path + query).
57439
57443
  // 3. legacy fallback - the original strict `/name/id` template, so every
57440
57444
  // pre-existing config keeps working with no migration.
57441
- const resolveRecordId = (configuration, log = () => { }) => {
57445
+ const resolveRecordId = (configuration, href = window.location.href, log = () => { }) => {
57442
57446
  var _a, _b, _c, _d;
57443
57447
  const { recordRegexPattern, recordRegexName } = configuration;
57444
57448
  // Tier 1: advanced full pattern (matched against the full href).
57445
57449
  if (recordRegexPattern) {
57446
57450
  try {
57447
- const advancedId = (_b = (_a = window.location.href.match(new RegExp(recordRegexPattern))) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : null;
57451
+ const advancedId = (_b = (_a = href.match(new RegExp(recordRegexPattern))) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : null;
57448
57452
  if (advancedId) {
57449
57453
  log(`[predict] recordId found via recordRegexPattern: ${advancedId}`);
57450
57454
  return advancedId;
@@ -57459,15 +57463,14 @@ const resolveRecordId = (configuration, log = () => { }) => {
57459
57463
  }
57460
57464
  // Tier 2: generalized keyword matcher against path + query + hash only
57461
57465
  // (host excluded to avoid subdomain false matches).
57462
- const { pathname, search, hash } = window.location;
57463
- const keywordId = (_d = (_c = `${pathname}${search}${hash}`.match(buildRecordRegex(recordRegexName))) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : null;
57466
+ const keywordId = (_d = (_c = stripOrigin(href).match(buildRecordRegex(recordRegexName))) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : null;
57464
57467
  if (keywordId) {
57465
57468
  log(`[predict] recordId found via recordRegexName: ${keywordId}`);
57466
57469
  return keywordId;
57467
57470
  }
57468
57471
  // Tier 3: legacy template fallback (preserves pre-existing configs).
57469
57472
  const legacyRegex = new RegExp(`/${recordRegexName}/([a-zA-Z0-9]+)(?:/|$)`);
57470
- return getRecordIdFromUrl(legacyRegex, log);
57473
+ return getRecordIdFromUrl(legacyRegex, href, log);
57471
57474
  };
57472
57475
  const safeStringify = (value, fallback) => {
57473
57476
  try {
@@ -57814,7 +57817,9 @@ const predictGuidesScript = ({ step, pendo, cleanupArray, cleanup, log, designer
57814
57817
  predictBaseUrl,
57815
57818
  log }))
57816
57819
  : inlineConfiguration;
57817
- const recordId = resolveRecordId(configuration, log);
57820
+ const pageUrl = getPendoPageUrl(pendo);
57821
+ log(`[predict] resolving recordId from ${pageUrl}`);
57822
+ const recordId = resolveRecordId(configuration, pageUrl, log);
57818
57823
  if (!recordId) {
57819
57824
  log('[predict] no recordId found in URL, aborting');
57820
57825
  return;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license https://agent.pendo.io/licenses
3
3
  */
4
- function loadAgent(B){let s;const d={createScriptURL:e=>e,createHTML:e=>e};function p(e){return s||(s=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",d):d),e.trustedTypesPolicy=s),s}u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var u,c={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=u[n>>2])+u[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=u[n>>10])+u[n>>4&63])+u[n<<2&63]}return o}},Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var H,o,z,j,W,q,V,e={exports:{}};function K(e){e?(q[0]=q[16]=q[1]=q[2]=q[3]=q[4]=q[5]=q[6]=q[7]=q[8]=q[9]=q[10]=q[11]=q[12]=q[13]=q[14]=q[15]=0,this.blocks=q):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}t=e,H="object"==typeof window?window:{},Se=!H.JS_SHA1_NO_COMMON_JS&&t.exports,o="0123456789abcdef".split(""),z=[-2147483648,8388608,32768,128],j=[24,16,8,0],W=["hex","array","digest","arrayBuffer"],q=[],V=function(t){return function(e){return new K(!0).update(e)[t]()}},K.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===H.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<j[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<j[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<j[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<j[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<j[3&n++],a[n>>2]|=(128|t>>12&63)<<j[3&n++]),a[n>>2]|=(128|t>>6&63)<<j[3&n++]),a[n>>2]|=(128|63&t)<<j[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},K.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=z[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},K.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+a[s+4]<<0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+a[s+4]<<0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+a[s+4]<<0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+a[s+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+r<<0,this.h4=this.h4+o<<0},K.prototype.toString=K.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},K.prototype.array=K.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},K.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},n=function(){var t=V("hex");t.create=function(){return new K},t.update=function(e){return t.create().update(e)};for(var e=0;e<W.length;++e){var n=W[e];t[n]=V(n)}return t}(),Se?t.exports=n:H.sha1=n;var $=l(e.exports);function J(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e){return c.uint8ToBase64($.create().update(e).digest())}var X={};function Z(n,i=[],r=[],o=!0){if(n){if(0<r.length){var a=Y(n);for(let e=0,t=r.length;e<t;++e)if(r[e]===a)return!0}if(0<i.length)for(let t=0,e=i.length;t<e;++t){let e=i[t];if("object"==typeof e&&e.value&&(e=e.regexp?(e.value.startsWith("/")&&e.value.endsWith("/")&&(e.value=e.value.substring(1,e.value.length-1)),new RegExp(e.value)):e.value),(e="string"==typeof(e=o&&e instanceof RegExp?(s=e,u=d=void 0,d=s.ignoreCase?"i":"",u="re:"+d+":"+s.source,X[u]||(X[u]=new RegExp("^(?:"+s.source+")(?::\\d+)?$",d)),X[u]):e)?new RegExp("^"+J(e)+"$"):e)instanceof RegExp&&e.test(n))return!0}var s,d,u}return!1}function Q(e){return String(e||"").replace(/^[a-z][a-z0-9+.-]*:\/\//i,"")}function ee(e){e=(e||"").split(":")[0].toLowerCase();if(!e||/^[\d.]+$/.test(e)||0<=e.indexOf(":"))return[];for(var t=e.split("."),n=[],i=0;i<=t.length-2;i++)n.push(t.slice(i).join("."));return n}var E,te="stagingServerHashes",ne="stagingDomains",ie={};function re(e){return e.loadAsModule}function oe(e){return"staging"===e.environmentName}function ae(e){return"extension"===e.installType}var se=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/;function de(e){return se.test(e.src)}function ue(e=[]){e=function(t=[]){for(let e=0;e<t.length;e++)if(de(t[e]))return t[e]}(e);if(e)return e.src.replace(/\.js$/,"-staging.js")}function ce(e,t,n){e=ue(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function le(e,t){return!!(e=e||ie)&&(!!oe(e)||Z((t=t||window.location).host,e.stagingServers,e[te],!1)||function(e,t=[]){if(t.length)for(var n=ee(e),i=0;i<n.length;i++)if(0<=t.indexOf(Y(n[i])))return!0;return!1}(t.host,e[ne]))}var pe=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function he(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function fe(e){if(!e._q)for(var t=pe,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){he(t,e,arguments)}}(t[n],e)}function ge(e,t,n){if(!ae(i=e)&&!oe(i)&&le(i)){i=ce(e,!0,n);if(i)return fe(t),ve(i,t,e.pendoGlobalKey),!0}var i;return!1}function me(e,t,n){if(r=n,!ae(i=e)&&!i.unminified&&r){i=ce(e,!1,n);if(i)return fe(t),ve(i,t,e.pendoGlobalKey),!0}var i,r;return!1}function ve(e,t,n){var i=document.createElement("script"),t=(i["async"]=!0,i.src=p(t).createScriptURL(e),n&&i.setAttribute("data-pendo-global-key",n),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(i,t):(document.head||document.body).appendChild(i)}function ye(e){ie=e}function be(){return void 0===B?{}:B}function we(e){return ie[e]}var Se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};Ee(Se.setTimeout,Se);function Ee(e,t){return"function"==typeof e.bind?e.bind(t):e}var Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return Ee(e[t],e)}(Se);Ie(Se.clearTimeout,Se);function Ie(e,t){return"function"==typeof e.bind?e.bind(t):e}var _e,Gt=function(e){var t="clearTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return Ie(e[t],e)}(Se),_=l(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,H=Object.keys,z=Object.create,j=t&&ArrayBuffer.isView,W=isNaN,q=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),K=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function J(e){return void 0===e}function Y(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Z=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Z(e)&&W(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=$}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=K.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=K[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(H)return H(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return F.valueOf.call(e)===F.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(u),s=_e(y),Te=_e(u,!0);function xe(e){var t;return o(e)?z?z(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function Re(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function ke(e,t,n){e=Ae(e,S(t));return J(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=Re,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,He={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ze=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+He[e]}var We=/^\s*(\w|\$)+\s*$/;var qe=0;function Ve(e,t,n,i,r){return i instanceof t?(i=xe(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var T=c(function(r,o){var a=T.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Ke=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),x=ue(v);function R(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(x(s)&&(f(s)||ae(s)))if(1<t)R(s,t-1,n,i),r=i.length;else for(var d=0,u=s.length;d<u;)i[r++]=s[d++];else n||(i[r++]=s)}return i}var $e=c(function(e,t){var n=(t=R(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ke(e[i],e)}return e});var Je=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ye=T(Je,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ze(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(Ze,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(d.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function dt(e,t,n){t=(x(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),x(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function k(e,t,n){t=_(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,d=!x(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function O(e,i,t){var r=[];return i=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return x(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),k(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return k(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):X(e)?e.match(vt):x(e)?k(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=x(e)?e:w(e))[De(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=De(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=u(e)):(i=_t,t=R(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=k(R(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function xt(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:xt(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=R(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Y(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}return r}var Nt=c(function(e){return Ot(R(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:J,isBoolean:Y,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Z,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&q(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:u,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=xe(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Pe,toPath:Re,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return ke(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(ze,je),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!We.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++qe+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ke,bindAll:$e,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:Je,defer:Ye,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:C(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(Gt(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),d};return e.cancel=function(){Gt(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=C()-o;e<n?r=Ut(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=C(),r||(r=Ut(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){Gt(r),r=a=d=null},e},wrap:function(e,t){return T(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ze,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,E(t))},each:A,forEach:A,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(k(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(x(e)?e:y(e)).length},pick:Ct,omit:Tt,first:Rt,head:Rt,take:Rt,initial:xt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return R(e,t,!1)},without:kt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P}());function I(e){return!(null==e)}function Ce(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,Ce):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=Ce(t),e},{}):e}function Te(){var e=window.pendo_options;if("[object Object]"===Object.prototype.toString.call(e))return e}var C=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,d=_.pluck,u="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i,r=[]){var o;e&&!h[e]&&(o={name:e,aliases:r=_.isArray(r)?r:[],defaultValue:n,supportedSources:t},null!=i&&(o.useAnySource=i),h[e]=o,0<r.length)&&_.each(r,function(e){h[e]===undefined&&(h[e]=o)})}e("additionalPublicAppIds",[c,u],undefined,undefined,["additionalApiKeys"]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("enforceAllowedOriginServers",[u,c],!1),e("allowMixedApplicationFrames",[u,c],!0),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("publicAppId",[c,u],undefined,undefined,["apiKey"]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockWebSDKMetadata",[c],!1,undefined,["blockAgentMetadata"]),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("initializeWhenVisible",[c],!1),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("forceAnonymous",[u,c],!1),e("forcedLeader",[u,c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),e("identityStorageLifetime",[u,c]),e("identityStorageSuffix",[u,c]),e("ignoreHashRouting",[u,c]),e("initializeImmediately",[u,c],!1),e("installType"),e("localStorageOnly",[u,c]),e("location.pushState",[u,c],!0),e("maxCookieTTLDays",[u,c],Infinity),e("observeShadowRoots",[u,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[u,c],!0),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!0),e("promotedWebSDKMetadataConfigurations",[c],undefined,undefined,["promotedAgentMetadataConfigurations"]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedWebSDKUrl",[u,c],undefined,undefined,["selfHostedAgentUrl"]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[c,u],[],!0),e("analytics.excludeEvents",[u,c],[]),e("analytics.localStorageUnload",[u,c],!1),e("enableDebugEvents",[u,c]),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1,undefined,["interceptElementRemoval"]),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disableImportantStyleAttributes",[u,c],!1),e("useInertForBackdrop",[u,c],!1),e("disablePrefetch",[u,c]),e("doNotTrackGuides",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u],!1,undefined,["delayGuides"]),e("guides.disabled",[u],!1,undefined,["disableGuides"]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u],undefined,undefined,["guideTimeout"]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderApplication",[u,c],[]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1,!0),e("previewModeAssetPath"),e("useAssetHostForDesigner",[u,c],!1),e("storage.allowKeys",[u],"*"),e("disableFeedback",[u]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[u,c]),e("enableCrossOriginIsolation",[u,c],!1),e("secureDesignerConnect",[u,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("webSDKDebuggerPluginLoader",[c],undefined,undefined,["agentDebuggerPluginLoader"]),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerWebSDKPluginsLoader",[c,u],undefined,undefined,["designerAgentPluginsLoader"]),e("guideContentLoader",[c]),e("trainingPartner"),e("oemAccountId",[u]),e("whiteLabelSettings",[c]),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[u,c],!0),e("performanceMetricsSampleRate",[u,c],10);var f={};function g(e){return h[e]||{name:e}}function m(t,n){if(n){const i=n();let e=_.get(i.lookup,(n=t,_.get(n,"key")||_.get(n,"name")));return I(e)||(n=_.find(t.aliases||[],function(e){e=_.get(i.lookup,e);if(I(e))return e}))&&(e=_.get(i.lookup,n)),I(e)?e:undefined}}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[u,c,l]),o(n(t,_.partial(v,e)),function(e){return I(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&I(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(d(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[u]=function(){return{lookup:_e||Te(),name:u}},f[c]=function(){return{lookup:ie,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[u]).value:Ce(_e)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){_e=e},options:()=>d(h,"name"),sources:{SNIPPET_SRC:u,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();const xe="extension",Re="native";function Ae(){return C.get("installType")||be().installType||Re}function ke(){return Ae()===xe}function Oe(e){return/native/.test(e)}const Ne=e=>{e=_.get(window,e);return e&&Oe(e)};function Me(e,t){return e=e||10,(t=!isNaN(Pe)&&(!t||Pe<t))&&Le<e}const Le=function(e){let t=De((/msie (\d+)/.exec(Fe(e))||[])[1]);isNaN(t)&&(t=De((/trident\/.*; rv:(\d+)/.exec(Fe(e))||[])[1]));return t}(Ue()),Pe=function(e,t){let n=De((/trident\/(\d+)/.exec(Fe(e))||[])[1]);isNaN(n)&&7==t&&(n=3);return n}(Ue(),Le);function De(e){return parseInt(e,10)}function Fe(e){return _.isString(e)?e.toLowerCase():e}function Ue(){return(window.navigator||{}).userAgent}const Ge={},Be=De((/android (\d+)/.exec(Fe(Ue()))||[])[1]),He=/Boxee/i.test(Ue()),ze=window.document||{},je=ze.documentMode;let We;var qe,Ve=/^(Moz|webkit|O|ms)(?=[A-Z])/,t=ze.body&&ze.body.style;let Ke=!1,$e=!1;if(t){for(const M_ in t)if(qe=Ve.exec(M_)){We=(We=qe[0]).substr(0,1).toUpperCase()+We.substr(1);break}We=We||"WebkitOpacity"in t&&"webkit",Ke=!!("transition"in t||We+"Transition"in t),$e=!!("animation"in t||We+"Animation"in t),!Be||Ke&&$e||(Ke=_.isString(ze.body.style.webkitTransition),$e=_.isString(ze.body.style.webkitAnimation))}var n=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;const Je=_.memoize(function Je(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0),i=!(Be<4);return!(!e||t||!n||!i||He||ke())});const Ye=/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i,Xe=/Android/i,Ze=/Mobile/i,Qe=/Android [\d.]+; K\)|tablet|sm-t|nexus (7|9|10)|xoom|; kf|; t1|lenovo tab/i;const et={supportsHistoryApi:Je,supportsHashChange:function(){var e="onhashchange"in window,t=!je||7<je;return!(!e||!t||ke())},supportsPopover:function(){return!!window.HTMLElement&&Oe(window.HTMLElement.prototype.showPopover)},hasEvent(e){var t;return("input"!=e||9!=Le)&&(_.isUndefined(Ge[e])&&(t=ze.createElement("div"),Ge[e]="on"+e in t),Ge[e])},vendorPrefix:We,transitions:Ke,animations:$e,android:Be,msie:Le,msieDocumentMode:je,safari:0<=(e=Ue()).indexOf("Safari")&&([e=Ue()]=[e],!(0<=e.indexOf("Chrome")||0<=e.indexOf("Chromium"))),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:Oe(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){const e=Ue();return Ye.test(e)&&!(Xe.test(e)&&!Ze.test(e)&&Qe.test(e))}),isChromeExtension:n};var tt=function(){return!isNaN(Le)&&11!=Le&&"CSS1Compat"!==document.compatMode},nt=function(e,t){var n,i=e.height,r=e.width;return"top"==e.arrowPosition||"bottom"==e.arrowPosition?(n=0,"top"==e.arrowPosition?(e.top=t.top+t.height,n=-1,e.arrow.top=3,Le<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==Le?e.arrow.top--:Le<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e};let it="",rt="",ot="",at="",st="",dt="",ut="",ct="2.350.0_",lt="2.350.0",pt="xhr";const ht=function(){return tt()?ct+"+quirksmode":ct};var ft=/^\s+|\s+$/g;function gt(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var mt=(mt=String.prototype.trim)||function(){return this.replace(ft,"")},t={exports:{}};!function(){var Z=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Z?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Z,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,H,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,T,x,R,W=h,q=f,A=new(ee?Uint32Array:Array)(W+q),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<W;N++)A[_++]=m[N];for(N=0;N<q;N++)A[_++]=v[N];if(!ee)for(N=0,T=O.length;N<T;++N)O[N]=0;for(N=x=0,T=A.length;N<T;N+=_){for(_=1;N+_<T&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[k[x++]=0]++;else for(;0<C;)(R=C-3<(R=C<138?C:138)&&R<C?C-3:R)<=10?(k[x++]=17,k[x++]=R-3,O[17]++):(k[x++]=18,k[x++]=R-11,O[18]++),C-=R;else if(k[x++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)k[x++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(R=C<6?C:6)&&R<C&&(R=C-3),k[x++]=16,k[x++]=R-3,O[16]++,C-=R}for(e=ee?k.subarray(0,x):k.slice(0,x),y=oe(O,7),S=0;S<19;S++)j[S]=y[z[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(j[S],3,Q);for(S=0,H=e.length;S<H;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],K=I[0],$=I[1],J=L[0],Y=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(K[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(J[V],Y[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Z&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(t.exports);var vt={Deflate:l(t.exports).Zlib.Deflate},yt="base64url";function bt(e,t){t=t||yt;e=gt("string"==typeof e?e:JSON.stringify(e)),e=new vt.Deflate(e).compress();return t===yt?c.uint8ToBase64(e):e}function wt(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}e={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(e.exports);var St={CRC32:l(e.exports).Zlib.CRC32},Et=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return Et(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=Et(e,n+1)}),i)},It=function(e){e=gt(e);return c.uint8ToBase64(e)},_t=function(e){if(void 0!==e)return e=gt(e=_.isString(e)?e:JSON.stringify(e)),St.CRC32.calc(e,0,e.length)};function Ct(e){return e[Math.floor(Math.random()*e.length)]}function Tt(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=Ct(i);return n}var xt=function(e,t,n){return!(!I(e)||!I(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function S(){return(new Date).getTime()}function Rt(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function At(e,t=window){return wt(_,e,t)}n=window;var kt=_.isFunction(n.isFinite)?n.isFinite:n.Number&&_.isFunction(n.Number.isFinite)?n.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function Ot(e){return"number"==typeof e&&kt(e)&&Math.floor(e)===e}function Nt(e,t,n,i){(t=t||{}).maxRetries=Ot(t.maxRetries)?t.maxRetries:10,t.delay=Ot(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Ut(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,Nt(e,t,o,a)},t.delay):(a||function(){})()}var Mt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function Lt(e){return _.isObject(e)&&_.isFunction(e.then)}function Pt(e){return e&&e.hasOwnProperty("wrappedJSObject")?e.wrappedJSObject:e}var Dt,Ft=_.isFunction(Se.decodeURIComponent)?Se.decodeURIComponent:_.identity,Ht=_.isFunction(Se.encodeURIComponent)?Se.encodeURIComponent:_.identity;class zt{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),_.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=_.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&_.each(e,e=>{e(t)})}}class jt{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+_.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=Dt=Dt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class Wt extends zt{write(e,t,n){this.dispatchEvent(new jt(t,e,n))}writeError(e,t,n){let i,r;_.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new jt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,Dt.Debug,t)}info(e,t){this.write(e,Dt.Info,t)}warn(e,t){this.writeError(e,Dt.Warn,t)}error(e,t){this.writeError(e,Dt.Error,t)}critical(e,t){this.writeError(e,Dt.Critical,t)}}const T=new Wt,qt="cookieConsentCollection",Vt="analytics",Kt="guideAnalytics",$t="textCollection",Jt=["none","whitelist","all"],Yt={agentResponse:"agent_response",clicks:"click",fieldChanges:"change",focus:"focus",formSubmits:"submit",identify:"identify",meta:"meta",objectMetadata:"objectMetadata",pageLoads:"load",prompt:"prompt",trackEvents:"track",userReaction:"user_reaction"},Xt=["guideActivity","guideAdvanced","guideDismissed","guideNotSeen","guideSeen","guideSnoozeCanceled","guideSnoozed","guideTimeout","pollResponse"];let Zt=null;function Qt(e){return _.isString(e)?[e]:_.isArray(e)?e:[]}function en(e){var i,{visitorIdentity:e={},analytics:t={},guides:n={},sessionReplay:r={}}=e||{},o=t.eventCollection||{},t=!0===t.enabled;return{identity:!0===e.trackVisitors,guides:!0===n.enabled,replay:!0===r.enabled,utm:t&&!0===o.utmParameters,analytics:t?(i=o,_.reduce(Yt,function(e,t,n){return!0===i[n]&&e.push(t),e},[])):[],guideAnalytics:t&&!0===o.guideServing?Xt.slice():[],textCollection:t&&(e=o.textCollectionMode,_.contains(Jt,e))?e:Jt[0]}}function tn(e,t){return{identity:e.identity||t.identity,guides:e.guides||t.guides,replay:e.replay||t.replay,utm:e.utm||t.utm,[Vt]:_.union(e[Vt],t[Vt]),[Kt]:_.union(e[Kt],t[Kt]),[$t]:(e=e[$t],t=t[$t],Jt.indexOf(t)>Jt.indexOf(e)?t:e)}}function nn(e){const n=C.get(qt)||{};var t,e=Qt(e);return t=n,_.each(e,function(e){_.isUndefined(t[e])&&T.warn('Consent tier "'+e+'" is not present in '+qt+".")}),_.isEmpty(n)?Zt={}:Zt=_.reduce(e,function(e,t){t=n[t];return t?tn(e,en(t)):e},{identity:!1,guides:!1,replay:!1,utm:!1,[Vt]:[],[Kt]:[],[$t]:Jt[0]}),rn()}function rn(){return Zt?_.extend({},Zt):null}function on(e){return!Zt||_.isUndefined(Zt[e])||!0===Zt[e]}function an(){return!on("identity")}function sn(e,t){return!Zt||(t=Zt[t],!!_.isUndefined(t))||_.contains(t,e)}function dn(e){return!an()&&sn(e,Vt)}const un=function(){var e=C.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function cn(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function ln(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function pn(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:cn(n,n.getItem,null),setItem:cn(n,n.setItem),removeItem:cn(n,n.removeItem),clearPendo:_.partial(ln,n)}:t}catch(i){return t}}var hn=pn(function(){return window.localStorage}),fn=pn(function(){return window.sessionStorage});function gn(e){try{return JSON.parse(e)}catch(t){return null}}var mn,vn={},yn=!0,bn=function(){return C.get("localStorageOnly")},wn=function(){return!!C.get("disableCookies")||an()};function Sn(e){yn=e}var En=function(e){return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(document.cookie))?Ft(e[2]):null},In=function(e,t,n,i){var r,o,a;!yn||C.get("preventCookieRefresh")&&En(e)===t||(a=An(n),r=new Date,o=(i="https:"===document.location.protocol||i)?"None":"Strict",r.setTime(r.getTime()+a),a=e+"="+Ht(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+(i?";secure":"")+"; SameSite="+o,mn&&(a+=";domain="+mn),document.cookie=a)};function _n(e){var t="=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";mn&&(document.cookie=e+t+";domain="+mn),document.cookie=e+t}var Cn=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Tn=function(e,t){return En(Cn(e,t))};const xn=864e5,Rn=100*xn,An=(e=Rn)=>{var t=C.get("maxCookieTTLDays"),t=t<Infinity?t*xn:Infinity;return Math.min(e,t)};var kn=function(e,t,n,i,r){n=n||Rn,In(Cn(e,r),t,n,i)};class On{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return I(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,localStorageOnly:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var Nn,Mn,Ln,Pn,m,x=function(){const d=new On;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=un())||n[t])return d[r](e)||T.warn(`storage key ${e} is not registered`),i.apply(this,arguments);T.debug(`writing storage key ${e} is not allowed`)}}function u(e){return e||bn()||!mn}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.getItem(n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function p(e){if(null===e)return null;try{var t=JSON.parse(e);return null!==t&&"object"==typeof t&&"ttl"in t&&"value"in t?"number"==typeof t.ttl&&isFinite(t.ttl)&&0<t.ttl&&t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}function h(e,t){return null===t?e:(t=(new Date).getTime()+An(t),JSON.stringify({ttl:t,value:e}))}function f(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),t=t?e:Cn(e,n);if(wn()&&delete vn[t],u(i)){if(c("localStorage"))try{return void localStorage.removeItem(t)}catch(r){}}else try{return void _n(t)}catch(r){}delete vn[t]}const t=_.extend({},fn),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},hn));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),r=t?e:Cn(e,n);let o;var a=d.getKeyDeserializer(e);if(wn())return a(p(vn[r])||null);if(u(i)){if(c("localStorage"))try{return null===(o=p(localStorage.getItem(r)))&&f(e,t,n),a(o)}catch(s){l(c)}}else try{if(null!==(o=En(r)))return a(o)}catch(s){}return null===(o=p(vn[r]||null))&&delete vn[r],a(o)},write:e(function(e,t,n,i,r,o){n=d.getKeyConfig(e,"duration",n),i=d.getKeyConfig(e,"isPlain",i),r=d.getKeyConfig(e,"isSecure",r),o=d.getKeyConfig(e,"cookieSuffix",o);var a=d.getKeyConfig(e,"localStorageOnly"),e=(t=d.getKeySerializer(e)(t),i?e:Cn(e,o));if(l(c),wn())return vn[e]=h(t,n),!0;if(u(a)){if(c("localStorage"))try{return localStorage.setItem(e,h(t,n)),!0}catch(s){}}else try{return i||(n=n||Rn),In(e,t,n,r),!0}catch(s){}return vn[e]=h(t,n),!1},"hasLocal"),clear:f,clearAll:function(){_.each(d.keys,(e,t)=>{"local"===e.type&&f(t)})},registry:d,getLocal:()=>n,getSession:()=>t}}(),Dn=(e=function(){var t=Ut;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(n=Se.Promise)&&/native/.test(n)?n:e()),t=(Mn=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Ln=function(n,i){var r=Nn.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===Pn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Pn=1,(Nn={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Pn,e)},a=function(e){t(2,e)},s=function(e,t){e=Ln(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=Mn();try{e(t(u),t(a))}catch(n){t(a)(n)}},u=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(n){return void a(n)}t?d(t):o(e)},e=Mn();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Nn);function Fn(e){var n,i=m.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){m.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):m.resolve(e)}!ke()&&et.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?Dn.all.apply(Dn,arguments):Fn(e)},reject:function(){return Dn.reject.apply(Dn,arguments)},resolve:function(){return Dn.resolve.apply(Dn,arguments)},defer:function(){var n={};return n.promise=new Dn(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=t).all=Fn,m.reject=function(e){var t=m.defer();return t.reject(e),t.promise},m.resolve=function(e){var t=m.defer();return t.resolve(e),t.promise});const Un=x.getSession(),Gn="pendo_tabId",Bn="pendo_parentTabId";Hn=window,n=_.partial,zn=_.extend,jn=_.omit,Wn={data:{},getItem(e){return Wn.data[e]},setItem(e,t){Wn.data[e]=t},removeItem(e){Wn.data[e]=null,delete Wn.data[e]}},qn=n(Yn,Gn,Xn),Vn=n(Yn,"pendo_frameId",Wn);var Hn,zn,jn,Wn,qn,Vn,Kn={addTracerIds(e){return jn(zn(e,{parentTabId:$n(Bn,Xn),tabId:qn(),frameId:Vn()}),function(e){return e===undefined})},setParentTabId:function(e){Jn(Bn,e,Xn)},newTabId:function(){var e=Tt(16);return Jn(Gn,e,Xn),e},getTabId:qn,getFrameId:Vn,tabIdChanged:function(t){var e;if(et.addEventListener)return Hn.addEventListener("storage",e=function(e){e.key===Gn&&(Wn.removeItem(Gn),t())}),function(){Hn.removeEventListener("storage",e)}}};function $n(e,t){return(_.isFunction(t)?t():t).getItem(e)}function Jn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function Yn(e,t){var n=$n(e,t);return n||Jn(e,n=Tt(16),t),n}function Xn(){return n=Wn,i=Un,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function Zn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(_.isString(e)||_.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),_.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return _.isFunction(t)?(n=_.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=_.toArray(arguments).slice(1);return _.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return _.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=_.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}Zn.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};or={DEBUG:e="debug",FRAMES:t="frames",LIFECYCLE:n="lifecycle",RUNTIME:Ir="runtime"},Qn=[new i("ready",[e,n]),new i("deliverablesLoaded",[e,n]),new i("guidesFailed",[e,n]),new i("guidesLoaded",[e,n]),new i("segmentFlagsUpdated",[e,n]),new i("segmentFlagsReady",[e,n]),new i("segmentFlagsError",[e,n]),new i("guideListChanged",[e,n]),new i("guidesReceived",[e,n]),new i("guideSeen",[e,n]),new i("guideNotSeen",[e,n]),new i("guideAdvanced",[e,n]),new i("guideDismissed",[e,n]),new i("guideSnoozed",[e,n]),new i("beforeGuideShow",[n]),new i("beforeMount",[Ir]),new i("beforeAdvance",[Ir]),new i("beforePrevious",[Ir]),new i("beforeSnooze",[Ir]),new i("beforeDismiss",[Ir]),new i("beforeUnmount",[Ir]),new i("unmounted",[Ir]),new i("beforeUpdate",[Ir]),new i("updated",[Ir]),new i("guideSnoozeCancelled",[e,n]),new i("guideTimeout",[e,n]),new i("guideLoopStopped",[e,n]),new i("guideUpdateComplete",[n]),new i("designerLaunched",[e,n]),new i("debuggerLaunched",[e,n]),new i("stepEligibility",[e]),new i("identify",[e,n]),new i("metadata",[e,n]),new i("appUnloaded",[e,n]),new i("appHidden",[e,n]),new i("startPreview",[e]),new i("resourceFetchFail",[e]),new i("contentVerificationFail",[e]),new i("contentValidationFail",[e]),new i("renderFail",[e]),new i("appUsage",[n]),new i("eventCaptured",[e]),new i("error",[e,n]),new i("onClickCaptured",[e]),new i("onEventCaptured",[e]),new i("urlChanged",[n]),new i("leaderChanged",[n,t]),new i("transmit:locked",[n]),new i("transmit:unlocked",[n]),new i("sessionChanged",[n]),new i("ptm:unpaused",[n]),new i("ptm:paused",[n]),new i("recording:unpaused",[n]),new i("recording:paused",[n]),new i("consent:changed",[n]),new i("childFrameJoined",[t]),new i("tabIdChanged:self",[e,n])],ei=Zn.call({}),ti={debug(){return Kn.addTracerIds(ii.apply(null,arguments))},lifecycle:ii,runtime:ii,frames:ii},ni=ei.trigger,ei.trigger=ri,_.each(_.values(or),function(e){ei[e]={on:_.partial(ei.on,e),one:_.partial(ei.one,e),off:_.partial(ei.off,e)}}),_.each(Qn,function(e){e=e.name,ei[e]={on:_.partial(ei.on,e),one:_.partial(ei.one,e),off:_.partial(ei.off,e),trigger:_.partial(ri,e)}});var Qn,ei,ti,ni,R=ei;function i(e,t){this.name=e,this.groups=t||[]}function ii(e,t){e={type:e,ts:S()};return I(t)&&_.isObject(t)&&(e.data=t),e}function ri(t){var e=_.findWhere(Qn,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=ti[e](t,n),ni.apply(ei,[e].concat(i)))}),i.cancel||(i=ii(t,n),ni.apply(ei,[t].concat(i))),i}function oi(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=u(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,Ce(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[d(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:d(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:d(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=d(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[d(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var A=oi(),ai=(A.subscribe(function(e,t){}),"_PENDO_T_"),si=11;const di="visitorId",ui="oldVisitorId",ci="accountId",li="__cookieless_visitor__";var pi=function(e=""){return e+Tt(si)};var hi=function(e){return I(e)&&""!==e&&e!==wi&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===mt.call(e).length)},fi=function(e){return!(!e||"number"==typeof e)&&e.substring(0,ai.length)===ai},gi=function(){return!C.get("disablePersistence")},mi=function(e){e=e||[di,ci,ui];const t=C.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){_n(Cn(e,t)),x.clear(e,!1,t)})},vi="VISITOR-UNIQUE-ID",yi=function(e){return vi===e},bi=function(e=E.visitorId){return e===li},wi="::",Si=function(e){return new RegExp(wi).test(e)};function Ei(e){return e.old_visitor_id!==e.visitor_id}var Ii,_i=function(e,t){var n,i={old_visitor_id:v(),old_account_id:Ai()};hi(e)?(Ri(e),t=t,_.isUndefined(t)?T.info("No account id provided"):an()?T.warn("Ignoring account id "+t+" while identity consent is dnt."):hi(t)?(E.accountId=""+t,gi()&&ki(ci,E.accountId)):(delete E.accountId,delete(n=C.getLocalConfig()).account,C.setLocalConfig(n),A.commit("metadata/clearAccount"),gi()&&x.clear(ci),T.info("Invalid account id: "+t+". Account cleared")),i.visitor_id=v({generate:!0}),i.account_id=Ai(),!Ei(n=i)&&n.old_account_id===n.account_id||(Ei(i)&&(t=i.old_visitor_id)&&(Ii=t,ki(ui,Ii)),R.identify.trigger(i))):T.info("Invalid visitor id "+e)};function Ci(){return pi(ai)}function Ti(e){an()&&(e=li),E.visitorId!==e&&(gi()&&ki(di,e),E.visitorId=e)}function v(e={}){var t=function(){if(hi(E.visitorId))return E.visitorId;var e=C.get("forceAnonymous");if(gi()){var t=Oi(di);if(hi(t)&&(!e||fi(t)))return t}return undefined}();return Ti(t=!t&&e.generate?Ci():t),t}function xi(){return v()||Ci()}var Ri=function(e){hi(e)?an()&&e!==li?T.warn("Ignoring visitor id "+e+" while identity consent is dnt."):Ti(""+e):T.info("Invalid visitor id "+e)};var Ai=function(){var e=C.get("forceAnonymous");return hi(E.accountId)||!gi()||e||(e=Oi(ci),E.accountId=e),E.accountId};function ki(e,t){var n=C.get("identityStorageLifetime")||Rn,i=C.get("identityStorageSuffix")||E.apiKey;x.write(e,t,n,!1,!0,i)}function Oi(e){var t=C.get("identityStorageSuffix"),n=t||E.apiKey,n=x.read(e,!1,n)||x.read(e,!1,E.apiKey);return t&&x.clear(e,!1,E.apiKey),n}function Ni(e={doNotTrack:!1}){var t={old_visitor_id:v({generate:!1}),old_account_id:Ai(),wasCleared:!0};mi(),delete E.visitorId,delete E.accountId,e.doNotTrack?Ri(li):v({generate:!0}),_.extend(t,{visitor_id:v(),account_id:Ai()}),R.identify.trigger(t)}function Mi(e){e=e.data[0];return _.get(e,"wasCleared")}Ir=function(n){return function Li(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}};var Li="function"==typeof(e=(t=Se).URL)&&/native/.test(e)?e:Ir(t.document);function Pi(e){if((t=e)&&"function"==typeof t.composedPath)try{return e.composedPath()}catch(n){return e.path}var t;return null}function Di(e){return e.shadowRoot}function Fi(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Ui(e,t){return Fi(e,t)?e.host:e.parentNode}function Gi(e,t,n){let i=t;for(;i;){if(i===e)return!0;i=Ui(i,n)}return!1}var Bi={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Pi,getShadowRoot:Di,isElementShadowRoot:Fi,getParent:Ui,isShadowSelector:Hi,wrapSizzle(i,u){i.intercept(function(a,t,n,i,r){var e,o;if(Hi(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(Bi.PSEUDO_REGEX,Bi.PSEUDO_SAFE),e=_.map(o.tokenize(e),zi),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(Bi.PSEUDO_REGEX,""),n,i,r);{const d=a(t,n,i,r);return 0<u.cache.size&&u.cache.forEach(e=>{n&&n!==document&&!Gi(n,e)||d.push(...a(t,e,i,r))}),d}function s(e,t,n,i){var r,o;return Hi(e)?(o=s((r={baseCss:(o=(o=e).split(Bi.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Bi.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return Bi.getShadowRoot(t)?e.concat(s(r.shadowCss,Bi.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Bi.isElementShadowRoot(t)&&(Hi(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Hi(e){return!!e&&-1<e.indexOf(Bi.PSEUDO_ELEMENT)}function zi(e){return _.reduce(e,function(e,t){return t.value===Bi.PSEUDO_SAFE?e+Bi.PSEUDO_ELEMENT:e+t.value},"")}var ji,h,w,Wi,qi,Vi,Ki,$i,Ji,Yi,Xi,Zi,k,Qi,er,tr,nr,ir,rr,n={exports:{}},or=n,ar=window,O="sizzle"+ +new Date,sr=ar.document,dr=0,ur=0,cr=Kr(),lr=Kr(),pr=Kr(),hr=Kr(),fr=Kr(),gr=function(e,t){return e===t&&(Xi=!0),0},mr={}.hasOwnProperty,e=[],vr=e.pop,yr=e.push,br=e.push,wr=e.slice,Sr=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Er="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",t="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ir="\\["+r+"*("+t+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+r+"*\\]",_r=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ir+")*)|.*)\\)|)",Cr=new RegExp(r+"+","g"),Tr=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),xr=new RegExp("^"+r+"*,"+r+"*"),Rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),Ar=new RegExp(r+"|>"),kr=new RegExp(_r),Or=new RegExp("^"+t+"$"),Nr={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+Ir),PSEUDO:new RegExp("^"+_r),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+Er+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},Mr=/HTML$/i,Lr=/^(?:input|select|textarea|button)$/i,Pr=/^h\d$/i,Dr=/^[^{]+\{\s*\[native \w/,Fr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ur=/[+~]/,Gr=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),Br=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},Hr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,zr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},jr=function(){Zi()},Wr=io(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{br.apply(e=wr.call(sr.childNodes),sr.childNodes),e[sr.childNodes.length].nodeType}catch(k_){br={apply:e.length?function(e,t){yr.apply(e,wr.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function qr(e){return e[0].length?e.map(qr).join(","):no(e)}function Vr(e,t,n){var i=n[e+" "];i=i||qr(function o(e,t){return e[0].length?e.map(function(e){return o(e,t)}):e.filter(t)}(Vi(e),function(e){return!("PSEUDO"===(e=e).type&&e.matches.length&&"contains"===e.matches[0].replace(Tr,"$1").toLowerCase())}));try{var r=[];return br.apply(r,t.querySelectorAll(i)),n(e,i),r}catch(k_){}}function N(e,t,n,i){var r,o,a,s,d,u,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(Zi(t),t=t||k,er)){if(11!==l&&(s=Fr.exec(e)))if(r=s[1]){if(9===l){if(!(u=t.getElementById(r)))return n;if(u.id===r)return n.push(u),n}else if(c&&(u=c.getElementById(r))&&rr(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return br.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return br.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&(!hr[e+" "]||fr[e+" "])&&(!tr||!tr.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(Ar.test(e)||Rr.test(e))){for((c=Ur.test(e)&&eo(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(Hr,zr):t.setAttribute("id",a=O)),o=(d=Vi(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+no(d[o]);u=d.join(",")}try{return br.apply(n,c.querySelectorAll(u)),n}catch(p){hr(e,!0)}finally{a===O&&t.removeAttribute("id")}!i&&hr[e+" "]&&(i=Vr(e,c,fr))}}return $i(e.replace(Tr,"$1"),t,n,i)}function Kr(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function $r(e){return e[O]=!0,e}function Jr(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(k_){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Yr(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function Xr(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 Zr(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Wr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Qr(a){return $r(function(o){return o=+o,$r(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function eo(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ji in h=N.support={},qi=N.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Mr.test(t||e&&e.nodeName||"HTML")},Zi=N.setDocument=function(e){var e=e?e.ownerDocument||e:sr;return e!=k&&9===e.nodeType&&e.documentElement&&(Qi=(k=e).documentElement,er=!qi(k),sr!=k&&(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",jr,!1):e.attachEvent&&e.attachEvent("onunload",jr)),h.scope=Jr(function(e){return Qi.appendChild(e).appendChild(k.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=Jr(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=Jr(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=!!k.getElementsByClassName,h.getById=Jr(function(e){return Qi.appendChild(e).id=O,!k.getElementsByName||!k.getElementsByName(O).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(Gr,Br);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&er)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(Gr,Br);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&er){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=h.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&er?t.getElementsByClassName(e):h.qsa&&er?t.querySelectorAll("."+e):void 0},nr=[],tr=[],(h.qsa=!!k.querySelectorAll)&&(Jr(function(e){var t;Qi.appendChild(e).innerHTML=p().createHTML("<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&tr.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||tr.push("\\["+r+"*(?:value|"+Er+")"),e.querySelectorAll("[id~="+O+"-]").length||tr.push("~="),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||tr.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||tr.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||tr.push(".#.+[+~]"),e.querySelectorAll("\\\f"),tr.push("[\\r\\n\\f]")}),Jr(function(e){e.innerHTML=p().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&tr.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&tr.push(":enabled",":disabled"),Qi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&tr.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),tr.push(",.*:")})),(h.matchesSelector=Dr.test(ir=Qi.matches||Qi.webkitMatchesSelector||Qi.mozMatchesSelector||Qi.oMatchesSelector||Qi.msMatchesSelector))&&Jr(function(e){h.disconnectedMatch=ir.call(e,"*"),ir.call(e,"[s!='']:x"),nr.push("!=",_r)}),tr=tr.length&&new RegExp(tr.join("|")),nr=nr.length&&new RegExp(nr.join("|")),e=!!Qi.compareDocumentPosition,rr=e||Qi.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},gr=e?function(e,t){var n;return e===t?(Xi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==k||e.ownerDocument==sr&&rr(sr,e)?-1:t==k||t.ownerDocument==sr&&rr(sr,t)?1:Yi?Sr(Yi,e)-Sr(Yi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return Xi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==k?-1:t==k?1:r?-1:o?1:Yi?Sr(Yi,e)-Sr(Yi,t):0;if(r===o)return Xr(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?Xr(a[i],s[i]):a[i]==sr?-1:s[i]==sr?1:0}),k},N.matches=function(e,t){return N(e,null,null,t)},N.matchesSelector=function(e,t){if(Zi(e),h.matchesSelector&&er&&!hr[t+" "]&&(!nr||!nr.test(t))&&(!tr||!tr.test(t)))try{var n=ir.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(k_){hr(t,!0)}return 0<N(t,k,null,[e]).length},N.contains=function(e,t){return(e.ownerDocument||e)!=k&&Zi(e),rr(e,t)},N.attr=function(e,t){(e.ownerDocument||e)!=k&&Zi(e);var n=w.attrHandle[t.toLowerCase()],n=n&&mr.call(w.attrHandle,t.toLowerCase())?n(e,t,!er):undefined;return n!==undefined?n:h.attributes||!er?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},N.escape=function(e){return(e+"").replace(Hr,zr)},N.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},N.uniqueSort=function(e){var t,n=[],i=0,r=0;if(Xi=!h.detectDuplicates,Yi=!h.sortStable&&e.slice(0),e.sort(gr),Xi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return Yi=null,e},Wi=N.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=Wi(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=Wi(t);return n},(w=N.selectors={cacheLength:50,createPseudo:$r,match:Nr,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(Gr,Br),e[3]=(e[3]||e[4]||e[5]||"").replace(Gr,Br),"~="===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]||N.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]&&N.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Nr.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&kr.test(n)&&(t=(t=Vi(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Gr,Br).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=cr[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&cr(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=N.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(Cr," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,d,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;d=u="only"===f&&!d&&"nextSibling"}return!0}if(d=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===dr&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(h=s=0,d.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[dr,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===dr&&i[1]:h))for(;(a=++s&&a&&a[u]||(h=s=0,d.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[dr,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||N.error("unsupported pseudo: "+e);return a[O]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?$r(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Sr(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:$r(function(e){var i=[],r=[],s=Ki(e.replace(Tr,"$1"));return s[O]?$r(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:$r(function(t){return function(e){return 0<N(t,e).length}}),contains:$r(function(t){return t=t.replace(Gr,Br),function(e){return-1<(e.textContent||Wi(e)).indexOf(t)}}),lang:$r(function(n){return Or.test(n||"")||N.error("unsupported lang: "+n),n=n.replace(Gr,Br).toLowerCase(),function(e){var t;do{if(t=er?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ar.location&&ar.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Qi},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:Zr(!1),disabled:Zr(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return Pr.test(e.nodeName)},input:function(e){return Lr.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:Qr(function(){return[0]}),last:Qr(function(e,t){return[t-1]}),eq:Qr(function(e,t,n){return[n<0?n+t:n]}),even:Qr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Qr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Qr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:Qr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[ji]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ji);for(ji in{submit:!0,reset:!0})w.pseudos[ji]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ji);function to(){}function no(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function io(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=ur++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var i,r,o=[dr,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[O]||(e[O]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===dr&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function ro(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function oo(e,t,n,i,r){for(var o,a=[],s=0,d=e.length,u=null!=t;s<d;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),u&&t.push(s));return a}function ao(h,f,g,m,v,e){return m&&!m[O]&&(m=ao(m)),v&&!v[O]&&(v=ao(v,e)),$r(function(e,t,n,i){var r,o,a,s=[],d=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)N(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:oo(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=oo(p,d),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[d[o]]=!(l[d[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?Sr(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=oo(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):br.apply(t,p)})}to.prototype=w.filters=w.pseudos,w.setFilters=new to,Vi=N.tokenize=function(e,t){var n,i,r,o,a,s,d,u=lr[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=w.preFilter;a;){for(o in n&&!(i=xr.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Rr.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Tr," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=Nr[o].exec(a))&&(!d[o]||(i=d[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?N.error(e):lr(e,s).slice(0)},Ki=N.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=pr[e+" "];if(!a){for(n=(t=t||Vi(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,d=io(function(e){return e===i},a,!0),u=io(function(e){return-1<Sr(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==Ji)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[io(ro(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[O]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return ao(1<s&&ro(c),1<s&&no(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Tr,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&no(e))}c.push(t)}return ro(c)}(t[n]))[O]?r:o).push(a);(a=pr(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,d=0,u="0",c=e&&[],l=[],p=Ji,h=e||b&&w.find.TAG("*",r),f=dr+=null==p?1:Math.random()||.1,g=h.length;for(r&&(Ji=t==k||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==k||(Zi(o),n=!er);s=m[a++];)if(s(o,t||k,n)){i.push(o);break}r&&(dr=f)}y&&((o=!s&&o)&&d--,e)&&c.push(o)}if(d+=u,y&&u!==d){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<d)for(;u--;)c[u]||l[u]||(l[u]=vr.call(i));l=oo(l)}br.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&N.uniqueSort(i)}return r&&(dr=f,Ji=p),c},y?$r(i):i))).selector=e}return a},$i=N.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&Vi(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&er&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(Gr,Br),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Nr.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((d=w.find[s])&&(i=d(a.matches[0].replace(Gr,Br),Ur.test(o[0].type)&&eo(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&no(o))break;return br.apply(n,i),n}}return(u||Ki(e,c))(i,t,!er,n,!t||Ur.test(e)&&eo(t.parentNode)||t),n},h.sortStable=O.split("").sort(gr).join("")===O,h.detectDuplicates=!!Xi,Zi(),h.sortDetached=Jr(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),Jr(function(e){return e.innerHTML=p().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||Yr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&Jr(function(e){return e.innerHTML=p().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||Yr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),Jr(function(e){return null==e.getAttribute("disabled")})||Yr(Er,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var so=ar.Sizzle;N.noConflict=function(){return ar.Sizzle===N&&(ar.Sizzle=so),N},or.exports?or.exports=N:ar.Sizzle=N;uo=l(n.exports),(co=_.extend(function(){return co.Sizzle.apply(this,arguments)},uo)).reset=function(){co.Sizzle=uo,co.matchesSelector=uo.matchesSelector,co.matches=uo.matches},co.intercept=function(e,t="Sizzle"){co[t]=_.wrap(co[t],e)},co.reset();var uo,co,lo=co;function M(e,t){var n,i=this;if(e&&e instanceof M)return e;if(!(i instanceof M))return new M(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof M&&(t=0<t.length?t[0]:null);try{n=lo(e,t)}catch(o){n=[]}}else n=[e];else n=[];return _.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function po(){this.ownerKey="_pendo_"+Tt(8)}_.extend(po.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}});var ho=new po,fo=1;function go(e){return _.isNumber(e.eventPhase)&&e.eventPhase===fo}function mo(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?At("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{vo(e,t,n,i)}):_.noop}function vo(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?At("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var yo=function(e){var t=Bi.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},bo={add(t,e){var n=ho.get(t),i=(n.handle||(n.handle=function(e){bo.dispatch(t,e)}),e.id=_.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||mo(t,e.type,n.handle,e.capture),i.push(e),()=>{M.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(ho.get(r,"captureEvents")||{})[o.type]||[],t=(ho.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=ho.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===go(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(yo(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!I(e.selector)||0<M(yo(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){T.error(i)}}}))},remove(e,t,n,i){var r=ho.get(e);if(r){if(_.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=_.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],vo(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],vo(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],vo(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(ho.remove(e,"captureEvents"),ho.remove(e,"bubbleEvents"),ho.remove(e,"handle"))}},trigger(e){var t=ho.get(e);if(!t.pendoStopped)if(e.bubbles){var n=yo(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Bi.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),go(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)bo.dispatch(o[i],e);(e=bo.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(bo.dispatch(n,e),(e=bo.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)bo.dispatch(o[i],e)}}else bo.dispatch(yo(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",ho.ownerKey]),e=Bi.getComposedPath(e);return e&&(t.composedPath=_.constant(e)),t},$:{on(e,n,i,r){return _.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){_.each(e,function(e){bo.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},wo=_.extend(Eo,{get:function(e,t){return Eo({method:"GET",url:e,headers:t})},post:Io,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Io(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?Ht(e):Ht(e)+"="+Ht(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==So()}});function So(){return window.XMLHttpRequest||ActiveXObject}function Eo(e){var t=m.defer(),n=new(So())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function Io(e,t,n){return Eo({method:"POST",url:e,data:t,headers:n})}var _o,Co=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},To=function(){return C.get("annotateUrl")||Oo()||C.get("sanitizeUrl")||C.get(Go)||C.get("xhrWhitelist")},xo=function(){return Oo()?{href:ko(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Ro=function(){return new Li(window.location.href)},Ao=function(){var e,t,n,i;return To()?(e=Ro(),Oo()&&(e.href=ko(e.href)),Co()?(t=L.electronResourcesPath(),n=L.electronUserDirectory(),i=L.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(L.electronUserHomeDirectory(),"").replace("file:///","")):Ho(e.href)):A.getters["location/href"]()},ko=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Oo=function(){return!0===C.get("ignoreHashRouting")},No=500;function Mo(){return _.isUndefined(_o)&&function e(){Uo(),_o=Ut(e,No)}(),()=>{Gt(_o),_o=undefined}}var Lo=function(e){var t;try{t=Ao()}catch(n){}return t},Po=[],Do=!1,Fo=null;function Uo(){var t=xo().href;Fo!=t&&(Fo=t,_.map(Po,function(e){e(t)}))}var Go="queryStringWhitelist";function Bo(e){var t=C.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function Ho(e){e=e||xo().href;var t=C.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=jo(e,null,n,!0)),o=i||{}),wo.urlFor(e,o,r)):e}catch(a){T.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else T.error("customer-provided `annotateUrl` must be of type: function");return e}function zo(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function jo(e,t,n,i){e=e||Lo(),t=t||zo(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=_.isArray(n)?qo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Wo,qo=function(e,t,n){return n&&_.contains(t,"*")?"":(e=Vo(e),e=n?_.omit(e,t):_.pick(e,t),Ko(e))},Vo=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Ft(t[1])),e},{})},Ko=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},L={watch:function(e){const n=[];T.info("Initializing Pendo URL Watcher");var i,t=C.get("location.pushState")&&et.supportsHistoryApi();return Do||(t&&(i=window.history,_.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=_.wrap(i[e],function(e){var t=e.apply(i,_.toArray(arguments).slice(1));return Ut(Uo,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(mo(window,"popstate",Uo))),et.supportsHashChange()&&n.push(mo(window,"hashchange",Uo)),!1!==t&&et.supportsHashChange()||n.push(Mo()),Do=!0),Po.push(e),()=>{_.each(n,function(e){e()}),Po.length=0,Do=!1}},get:Lo,externalizeURL:function(e,t,n){n=n||C.get(Go);return Bo(jo(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Mo,getWindowLocation:xo,clear:function(){Po=[]},isElectron:Co,electronUserDirectory:function(){return window.process.env.PWD||""},electronAppName:function(){return window.process.env.npm_package_name||""},electronUserHomeDirectory:function(){return window.process.env.HOME||""},electronResourcesPath:function(){return window.process.resourcesPath||""}};function $o(){var e=C.getLocalConfig("dataHost");return e||((e=C.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:at)}function Jo(){Wo=$o()}function Yo(){var e=C.get("assetHost");return e?-1===e.indexOf("://")?"https://"+e:e:Xo()}function Xo(){var e=C.get("contentHost")||st;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function Zo(e){var t=Yo(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(dt?dt+"/":"")+n}function Qo(){var e=C.get("allowPartnerAnalyticsForwarding",!1)&&C.get("adoptAnalyticsForwarding",!1);return C.get("trainingPartner",!1)||e}function ea(e,t,n){return n?e.acc=It(n):t&&"ACCOUNT-UNIQUE-ID"!==t&&(e.acc=It(t)),e}var ta=3,na=1,ia=9,ra=11,oa=4;function f(e){var t;if((t=e)&&t.nodeType===na)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function aa(e,t){var n;return!(!e||!_.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&_.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),_.any(n,function(e){return e&&"none"!==e}))}function sa(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function da(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function ua(e){return _.isNumber(e)?e:0}function ca(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!pa(e)?null:e}function la(e){return aa(f(e),We)&&isNaN(Le)}function pa(e){if(e)return(e=f(e))&&(_.contains(["relative","absolute","fixed"],e.position)||aa(e,We))}function ha(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=pa(t)?t:ca(t,n),i=t?fa(t):{top:0,left:0},e=fa(e),r=function(e){if(e){var e=f(e),t=function(e){if(/^matrix\(/.test(e))return e.split(/\(|,|\)/).slice(1,-1).map(e=>parseFloat(e))}(e.transform);if(t&&/^0px\s+0px/.test(e.transformOrigin))return function([e,t,n,i,r,o]){var a=e*i-t*n;return 0!=a?[i/a,-t/a,-n/a,e/a,(n*o-i*r)/a,(t*r-e*o)/a]:null}(t)}}(t),r=(r&&(i=ma(r,i),e=ma(r,e)),{top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height});return t?(t!==n.document.scrollingElement&&(r.top+=ua(t.scrollTop),r.left+=ua(t.scrollLeft)),r.top-=ua(t.clientTop),r.left-=ua(t.clientLeft)):(r.top+=sa(n),r.left+=da(n)),r.bottom=r.top+r.height,r.right=r.left+r.width,r}function fa(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}function ga([e,t,n,i,r,o],[a,s]){return[e*a+n*s+r,t*a+i*s+o]}function ma(e,t){var n=ga(e,[t.left,t.top]),e=ga(e,[t.right,t.bottom]),t={top:n[1],left:n[0],bottom:e[1],right:e[0]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t}var va=void 0===(t=C.get("pendoCore"))||t,ya=function(e,t,n){e=Wo+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function ba(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var wa=function(e){e+="v"+ct;e=ya("log.gif",E.apiKey,{msg:e,version:ct});return m.resolve(_a(e))["catch"](_.noop)};function Sa(e){try{e&&e.body&&_.isFunction(e.body.cancel)&&e.body.cancel()["catch"](_.noop)}catch(t){}return e}function Ea(e){try{var t=Wo+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+ct,visitorId:v()},i=Ca.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):wo.postJSON(t,n);return i.then(function(e){Sa(e)},function(e){T.debug("error writing error:"+e)})}catch(r){return T.info("Failed to write error to server using POST endpoint: "+r),wa("Failed to write error to server using POST endpoint: "+r)}}function Ia(e){try{var t=ya("metrics",E.apiKey,{v:ct});T.debug(`Sending ${JSON.stringify(e)} to ${t} using `+(Ca.supported()?"fetch":"xhr")),Ca.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then(Sa)["catch"](function(e){T.debug("Failed to write metrics payload to server: "+e)}):wo.postJSON(t,e)}catch(n){T.critical("Failed to write metrics payload to server: "+n)}}function _a(e){var t,n;return ka()?(t=m.defer(),mo(n=new Image,"load",t.resolve),mo(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function Ca(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t).then(Sa)}function Ta(e,t){return navigator.sendBeacon(e,t)}Ca.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var xa=!(Ta.supported=function(){return _.isFunction(navigator.sendBeacon)}),Ra=function(){var e=ka();return xa=!0,e&&R["transmit:locked"].trigger(),"Pendo Web SDK locked. No more events will be written."},Aa=function(){var e=!ka();return xa=!1,e&&R["transmit:unlocked"].trigger(),"Pendo Web SDK unlocked. Events will be written."},ka=function(){return!xa&&va},Oa=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Pa(e))}catch(n){return!1}},Na=function(e,t){try{var n;Oa(e,t)||(n=mt.call(Pa(e))+" "+t,La(e,n))}catch(i){}},Ma=function(e,t){try{var n,i;Oa(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Pa(e).replace(n," "),La(e,i))}catch(r){}},La=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},Pa=function(e){try{var t=e["classList"];if(t&&0<t.length){for(var n=[],i=0;i<t.length;i++)n.push(t[i]);return n.join(" ")}var r=e.className;return(_.isString(r)||!I(r)?r:e.getAttribute("class"))||""}catch(o){return""}},Da=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Fa={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Ua=function(e,t){t=function(e){if(_.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);Ga(e,t)},Ga=function(a,e){_.each(e,function(e,t){if(""!==(t=mt.call(t))){var n=Da(t),i=(!_.isNumber(e)||isNaN(e)||Fa[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=mt.call(e.substring(0,i));C.get("disableImportantStyleAttributes")?a.style.setProperty(t,r):a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=mt.call(e)}catch(o){T.info("failed to set style: "+t+" with value "+e)}}})},Ba=function(e=window){return tt()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},Ha=function(e){var t=Ba(),n=sa(),i=da();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function za(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function ja(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=f(n)))return;if("fixed"===t.position)return!isNaN(Le)||!Xa(n);n=n.parentNode}return}(e)?((n=fa(e)).fixed=!0,za(n)):za(ha(e,Va(t.document),t))}var Wa=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},qa=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return T.info("error interrogating body elements: "+n),wa("error picking best body:"+n),0}},Va=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(qa),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return wa("Error getting body element: "+n),e.body}};function Ka(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];1===r.nodeType&&r!==n&&i.push(r)}return i}return[]}function $a(e,t=document){if(lo.contains(t,e))return!0;for(;e&&e.parentNode||Bi.isElementShadowRoot(e);)e=Bi.getParent(e);return e===t}var Ja=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=Va(n),e===n||e===t?((n={left:t.pageXOffset||i.scrollLeft,top:t.pageYOffset||i.scrollTop,width:t.innerWidth,height:t.innerHeight}).right=n.left+n.width,n.bottom=n.top+n.height,n):((i=ja(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},Ya=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Xa(e){for(var t=e&&e.parentNode;t;){if(aa(f(t),We))return 1;t=t.parentNode}}var Za=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if($a(e))for(i=e;i;)if(Bi.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=f(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=f(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Xa(i))i=ca(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function Qa(e,t){e=f(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?es.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?es.BOTH:t.test(e.overflowY)?es.Y:t.test(e.overflowX)?es.X:t.test(e.overflow)?es.BOTH:es.NONE}var es={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ts(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&$a(e)}function ns(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 is(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function rs(e,t,n){const i=[];var r=is(document.documentElement);let o=is(Za(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=is(Za(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const os=['a[href]:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])',"iframe"].join(", ");function as(e,t,n){var i=Ja(t),t=Qa(t,n);if(t!==es.BOTH||Ya(e,i)){if(t===es.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===es.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function ss(e){if(e){if(ts(e))return 1;var t=Ja(e);if(0!==t.width&&0!==t.height){var n=f(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=f(i=i.parentNode)}return 1}}}}function ds(e,t){if(!ss(e))return!1;if(!ts(e)){for(var n=Ja(e),i=Za(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!as(n,i,t))return!1;i=Za(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=da(),e+=sa()),o<=0||e<=0)return!1}}return!0}function us(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=Ja(e),u=Za(e,s);if(!ss(e))return!1;for(;u;){if(t=Ja(u),(o=Qa(u,a))!==es.NONE&&(i=n=0,o!==es.Y&&o!==es.BOTH||(d.bottom>t.bottom&&(n+=d.bottom-t.bottom,d.top-=n,d.bottom-=n),d.top<t.top&&(n-=r=t.top-d.top,d.top+=r,d.bottom+=r)),o!==es.X&&o!==es.BOTH||(d.right>t.right&&(i+=d.right-t.right,d.left-=i,d.right-=i),d.left<t.left&&(i-=r=t.left-d.left,d.left+=r,d.right+=r))),!as(d,u,s))return!1;u=Za(u,s)}return!0}function cs(e,t){var n,i,r,e=Ja(e),o=Ja(t);e.fixed&&!o.fixed||(i=n=0,e.bottom>o.bottom&&(n+=e.bottom-o.bottom,e.top-=n,e.bottom-=n),e.top<o.top&&(n-=r=o.top-e.top,e.top+=r,e.bottom+=r),e.right>o.right&&(i+=e.right-o.right,e.left-=i,e.right-=i),e.left<o.left&&(i-=r=o.left-e.left,e.left+=r,e.right+=r),e=(o=_.isFunction(t.scrollBy))&&Oe(t.scrollBy),o?e?t.scrollBy(i,n):t.scrollTo(t.scrollX+i,t.scrollY+n):(t.scrollTop+=n,t.scrollLeft+=i))}function ls(e){for(var t=/(auto|scroll)/,n=Va(),i=Za(e,t);i&&i!==n;)cs(e,i),i=Za(i,t)}Ir={$:{findOrCreate(e){return 0<this.length?this:M(e)},find(e){var t=M();return t.context=this.context,this.each(function(){M(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(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(){Ua(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Na(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Ma(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){_.each(e,function(e){n=n&&Oa(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(Oa(t,e)?Ma:Na)(t,e)})})},css(e){return this.each(function(){Ua(this,e)}),this},appendTo(e){return M(e).append(this),this},append(e){var t=this;return M(e).each(function(){t.length&&t[0].appendChild(this),$a(this)&&_.each(lo("script",this),ns)}),t},prependTo(e){return M(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],M(e).each(function(){n?M(this).insertBefore(n):M(this).appendTo(t)})),this},getParent(){var e=M(this)[0];if(e&&e.parentNode)return M(e.parentNode)},insertBefore(e){e=M(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),$a(this[0]))&&_.each(lo("script",this[0]),ns)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return _.isObject(e)?(this.each(function(){_.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!lo.matchesSelector(n,e);)if((n=Ui(n))===document||t&&lo.matchesSelector(n,t))return M();return M(n)},eq(e){return M(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class ps{constructor(e=Va(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},et.MutationObserver){const n=new(At("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=setInterval(()=>{this.signal()},500);this._teardown=()=>{clearInterval(i)}}}signal(){_.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}e=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var hs="function"==typeof(or=Se.WeakRef)&&/native/.test(or)?or:e();function fs(e,t){var n,i;return e.tagName&&_.contains(["textarea","input"],e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ys(n.substring(0,i))):gs(e,t)}function gs(e,t=128){var n,i="",r=e.nodeType;if(r===ta||r===oa)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===na||r===ia||r===ra)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=gs(e.childNodes[a],t-i.length))).length)return i+ys(o.substring(0,t-i.length));i+=o}}return i}function ms(e){return 55296<=e&&e<=56319}function vs(e){return 56320<=e&&e<=57343}function ys(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(ms(t)||vs(t)){if(1===e.length)return e.slice(0,-1);if(ms(t))return e.slice(0,-1);if(vs(t))if(!ms(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class bs{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let n=this.elRef&&this.elRef.deref&&this.elRef.deref();var e=$a(n);if(!n||!e){if(n&&!e&&this.teardown(n),!(n=M(this.cssSelector)[0]))return undefined;_.each(this.events,({type:e,capture:t})=>{n.addEventListener(e,e=>this.onEvent(e),t)}),this.elRef=new hs(n)}return n}getText(e=1024){return fs(this.get(),e)}addEventListener(t,e,n=!1){var i=this.get();_.find(this.events,e=>e.type===t&&e.capture===n)||(this.events.push({type:t,capture:n}),i&&i.addEventListener(t,e=>this.onEvent(e),n)),this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(n=this.get()){n&&_.each(this.events,({type:e,capture:t})=>n.removeEventListener(e,this.onEvent,t))}}function ws(e){return e.origin!==undefined?e.origin:e.protocol+"//"+e.host}function Ss(e){var t=ws(e.location);if("null"===t&&e.parent&&e.parent!=e)try{var n=ws(e.parent.location);if(n&&"null"!==n)return n}catch(i){}return t}_.extend(M,{data:ho,event:bo,removeNode:Wa,getClass:Pa,hasClass:Oa,addClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Na(e,t)})):Na(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Ma(e,t)})):Ma(e,t)},getBody:Va,getComputedStyle:f,getClientRect:Ja,intersectRect:Ya,getScrollParent:Za,isElementVisible:ds,Observer:ps,Element:bs,scrollIntoView:ls,getRootNode:is}),_.extend(M.prototype,bo.$,Ir.$);const Es=[/^https:\/\/((adopt|oem)\.)?((us1)\.)?(app|via|adopt|cdn|oem|novus-api|novus|portal)(\.(au|eu|gov|hsbc|jpn|tv))?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)\.appspot\.com$/,/^https:\/\/(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)-static\.storage\.googleapis\.com$/];function Is(t){if(!t)return!1;if(t===ws(window.location))return!0;if(t===$o())return!0;if(t===Yo())return!0;if(t===Xo())return!0;var e=C.get("adoptHost");if(e&&t==="https://"+e)return!0;var n,i,e=C.get("allowedOriginServers",[]),r=C.get("allowedOriginServerHashes",[]);return!!Z(t,e,r)||!!Z(Q(t),e,r)||(n=e,i=r,e=ee(Q(e=t)),!!_.any(e,function(e){e="."+e;return _.contains(n,e)||_.contains(i,Y(e))}))||_.any(Es,function(e){return e.test(t)})}function _s(e){if(_.isString(e)){try{var t=new Li(e);const o=_.last(t.pathname.split("/")),a=o.split(".");var n,i={filename:_.first(a),extension:a.slice(1).join("."),query:{}};return t.search.length&&(i.query=Vo(t.search.substring(1))),t.hash.length&&0<=(r=t.hash.indexOf("?"))&&(n=t.hash.substring(r+1),i.fragmentQuery=Vo(n)),i}catch(s){}var r=zo(e).substring(1),t=r&&r.length?Vo(r):{},o=_.last(_.first(e.split(/[?#]/)).split("/")),a=o.split(".");return{filename:_.first(a),extension:a.slice(1).join("."),query:t}}}function Cs(e,t){var n;C.get("guideValidation")&&et.sri&&(n=_s(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}var Ts,xs=function(e){var t=!((t=C.get("allowedOriginServers",[]))&&0<t.length||(t=C.get("allowedOriginServerHashes",[]))&&0<t.length),n=Qo();return!(!t&&!n)||Is(e)},Rs=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!xs((c=e.url,new Li(c,window.location.href).origin)))throw new Error;e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0],d=C.get("guideContentLoader");if(e.type===r){var u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Cs(u,e.url),a=u}else{if(Rt())return(i=document.createElement("script")).addEventListener("load",function(){t(),Wa(i)}),i.type=o,i.src=p(E).createScriptURL(e.url),Cs(i,e.url),document.body.appendChild(i),i;if(_.isFunction(d))return d(e),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=p(E).createScriptURL(e.url),Cs(i,e.url),a=i,t=_.wrap(t,function(e,t){if(M.removeNode(i),t)return n&&e(t),{};e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),As(a,e.url,t),a}catch(l){return{}}var c},As=function(e,t,n){var i=!1;I(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||T.critical("Failed to load "+t+" within 10 seconds")},1e4))},ks=function(e){var t=JSON.parse(e.data),n=e.origin;T.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),qs(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Os=function(e){Ms(Fs)(Ns(e))},Ns=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation&&(t.type&&"string"==typeof t.type))return{data:t,origin:n,source:i}}catch(r){}};function Ms(t){return function(e){if(e&&Is(e.origin))return t.apply(this,arguments)}}var Ls={disconnect(e){},module:function(e){Ws(e.moduleURL)},debug:function(e){$s(ks)}},Ps=function(e,t){Ls[e]=t},Ds=function(e){delete Ls[e]},Fs=function(e){var t;e&&(t=e.data)&&I(Ls[t.type])&&Ls[t.type](t,e)},Us={},Gs=function(e){if(Us[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Bs=function(e){return I(Us[e])},Hs=function(e){if(Us)for(var t in Us)if(0<=t.indexOf(e))return t;return null},zs=[],js=function(){var e;zs.length<1||(e=zs.shift(),Bs(e))||Rs(e,function(){Gs(e),js()})};var Ws=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};_.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1});try{var n=new Li(e);return Is(n.origin)&&t[n.pathname]}catch(i){T.debug("Invalid module URL: "+e)}}(e)||(zs.push(e),1<zs.length)||js()},qs=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ts||Ks(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";T.info("Failed to postMessage: "+t)}return r},Vs=function(){return window!=window.top},Ks=function(){return new RegExp("^"+J(Wo).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},$s=function(e){var t;return I(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=Ms(e),window.addEventListener("message",t,!1)),function(){I(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Js=_.memoize(function(){return C.get("restrictP1Access")}),Ys=[],Xs=[],Zs=[],Qs=12e4,ed=16,td=1900,nd=65536,id=function(e){return!(!e||""===e)},rd=function(){return L.get()},od={flush:_.noop,flushBy:_.noop,flushEvents:ud,flushTrackEvents:ud,flushAgenticEvents:ud,flushSilos:ud,flushTrackEventSilos:ud,flushAgenticEventSilos:ud,flushBeacons:ud,flushNow:ud,flushLater:cd,flushEvery:ld,flushStop:pd,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Ra,unlock:function(){if(!ka())return hd(),Aa()}},ad=[];function sd(e){ad.push(e)}function dd(e){e=ad.indexOf(e);0<=e&&ad.splice(e,1)}function ud(t){try{_.each(ad,function(e){e.flush&&e.flush(t)})}catch(e){T.critical("unhandled error while flushing event cache",{error:e})}}function cd(e){return t=ud,n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){Gt(i),delete t[n]});var t,n,i}function ld(e){var t;if(e=parseInt(e,10)||0,_.isObject(ld.intervals)||(ld.intervals={}),!ld.intervals[e])return t=window.setInterval(ud,e),ld.intervals[e]=function(){clearInterval(t),delete ld.intervals[e]}}function pd(){var e=_.values(ld.intervals).concat([ud]);_.map(e,function(e){_.isFunction(e)&&e()})}function hd(){_.each(ad,function(e){e.clear&&e.clear()}),pd()}function fd(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,e=>e.codePointAt(0))))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function gd(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(T.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(T.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(T.debug(t+"The jwt is invalid."),!1)):(T.debug(t+"Missing jwt and signingKeyName."),!1)}md=null;var md,vd={set:function(e){md=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==md?md:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!C.get("enableSignedMetadata")&&(n=gd(e,t),C.get("requireSignedMetadata")&&!n?(T.debug("Pendo will not "+t+"."),!1):n?fd(e.jwt):void T.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class yd{constructor(e){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.firstFailureTime=null,this.sendFn=e}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.firstFailureTime=null,this.stopped=!0,Gt(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),null==this.firstFailureTime&&(this.firstFailureTime=(new Date).getTime()),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures["delete"](e),this.firstFailureTime=null;e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);e=this.incrementFailure(e);!this.stopped&&t&&(72e5<=(t=(new Date).getTime())-(this.firstFailureTime||t)?(this.onTimeout&&this.onTimeout(),this.firstFailureTime=null,this.retryLater(36e5)):this.retryLater(Math.min(1e3*Math.pow(2,e-1),3e5)))}retryNow(){Gt(this.timer),delete this.timer,this.next()}retryLater(e){this.timer=Ut(()=>{this.retryNow()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed()&&!this.allowDrainWhileFailed)return Dn.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return Dn.all(n)}}const bd="unsentEvents",wd=6048e5;function Sd(e){var n,t,i=Tn(bd);if(i){try{n=e,t=JSON.parse(i),_.each(t,(e,t)=>{n[t]=(n[t]||[]).concat(e)})}catch(r){}_n(Cn(bd))}}function Ed(e){const n=[];_.each(e,(e,t)=>{_.each(e,e=>{n.push({key:t,request:e})})});e=_.sortBy(n,e=>e.request.ts).slice(Math.ceil(n.length/2));const t={};return _.each(e,e=>{t[e.key]=t[e.key]||[],t[e.key].push(e.request)}),t}class Id{constructor(){this.events={}}send(t,n){var i=this.events[t];if(i){let e=i.shift();for(;e;)n.push(e),e=i.shift();delete this.events[t]}}push(e,t){var n=this.events[e]||[];n.push(t),this.events[e]=n}read(e){e.registry.addLocal(bd,{localStorageOnly:!0,duration:wd});try{this.events=JSON.parse(e.read(bd)||"{}")}catch(t){this.events={}}Sd(this.events),e.clear(bd)}write(e){let t=this.events;for(;0<_.size(t);){if(e.write(bd,JSON.stringify(t),wd))return;t=Ed(t)}e.clear(bd)}}var _d=new Id;const Cd=e=>_.reduce(e,(e,t)=>e+_.get(t,"detail.increment",1),0),Td="pendo-guide-loop-timeout",xd={ptm:"pendo-ptm-gif-failure",guide:"pendo-guide-gif-failure",poll:"pendo-poll-gif-failure",agentic:"pendo-agentic-gif-failure"},Rd={name:"pendo-guide-loop",debuggingOnly:!0},Ad={name:"pendo-event-captured",debuggingOnly:!0},kd="pendo-initialize",Od="pendo-teardown",Nd={};Nd[Td]={name:Td,type:"counter",instrument:Cd},_.each(xd,e=>{Nd[e]={name:e,type:"counter",instrument:Cd}}),Nd[Rd.name]=Rd,Nd[Ad.name]=Ad,Nd[kd]={name:kd},Nd[Od]={name:Od};var Md="debug-enabled";function Ld(){try{var e=x.read(Md)||JSON.parse(En(Md));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function Pd(e=!0){let t;return t=A&&A.getters&&A.getters["debugger/debuggingEnabled"]?A.getters["debugger/debuggingEnabled"]():!0===Ld().enabled,e?t:t?"Yes":"No"}class Dd{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._sending=!1,this._measuringPerformance=!1,this._debugging=!1,this._setDebuggingBound=_.bind(this._setDebugging,this),this._sendBound=_.bind(this.send,this),this._totals={},this.marks=new Set,this.measures=new Set}initialize(){if(!C.get("performanceMetricsEnabled"))return _.noop;this._measuringPerformance=!0,this._markPerformance(kd),this._setDebugging(),R.debuggerLaunched.on(this._setDebuggingBound),R.appUnloaded.on(this._sendBound);var e=100*Math.random()<C.get("performanceMetricsSampleRate");return this._setSending(e),this.interval=setInterval(()=>{this._collect()},6e5),()=>{this.teardown()}}teardown(){this._markPerformance(Od),this.send(),this._measuringPerformance=!1,this._setDebugging(),R.debuggerLaunched.off(this._setDebuggingBound),R.appUnloaded.off(this._sendBound),this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||this._markPerformance(e+"-start",{detail:n})}stopTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||(this._markPerformance(e+"-stop",{detail:n}),this._measurePerformance(e,{detail:n}))}count(e,t=1){this._markPerformance(e,{detail:1<t?{type:"counter",increment:t}:null})}send(){try{this._collect();var e=_.map(this._totals,(e,t)=>({name:t,type:Nd[t].type,value:e,timestamp:Date.now()}));this._totals={},_.size(e)&&this._sending&&Ia(e)}catch(t){T.debug("Failed to send performance metrics: "+t)}}_collect(){if(this._isPerformanceApiAvailable)try{this._sending&&_.each(Nd,({name:e,instrument:t})=>{t&&0<(t=t(performance.getEntriesByName(e)))&&(this._totals[e]=(this._totals[e]||0)+t)})}finally{this._clearMarksAndMeasures()}}_checkPerformanceApi(){return Ne("performance.mark")&&Ne("performance.measure")&&Ne("performance.getEntries")&&Ne("performance.getEntriesByName")&&Ne("performance.clearMarks")&&Ne("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_setDebugging(){this._debugging=Pd()}_setSending(e){this._sending=e}_markPerformance(e,t){this._shouldMeasurePerformance()&&(performance.mark(e,t),this.marks.add(e))}_measurePerformance(e,t){var n,i;this._shouldMeasurePerformance()&&(n=e+"-start",i=e+"-stop",performance.getEntriesByName(n).length)&&performance.getEntriesByName(i).length&&(performance.measure(e,n,i,t),this.measures.add(e))}_clearMarksAndMeasures(){this.marks.forEach(e=>{performance.clearMarks(e)}),this.marks.clear(),this.measures.forEach(e=>{performance.clearMeasures(e)}),this.measures.clear()}}const Fd=new Dd;var Ud="_PENDO_UNNAMED_";function Gd(e,t,n,i,r,o){var a,s;a=C.get("dropAnonymous"),s=fi(v()),!va||a&&s||(a=t,s=n,t=i,n=r,s={type:r=e,browser_time:S(),visitor_id:v({generate:!0}),account_id:Ai(),url:L.externalizeURL(s),props:a||{},eventProperties:n},s=Kn.addTracerIds(s),"track"===r&&(s.track_event_name=t||Ud),a=s,R.eventCaptured.trigger(a,o).cancel)||id(a.url)&&("track"===e?Qd:"agentic"===i?eu:Zd).push(a)}function Bd(){var r=_.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let Hd=0;function zd(e,t){e.sequence=Hd++,t(e)}function jd(e){return n=function(e,t){return e.push(t),e},i=e,function(e,t){t(i=n(i,e))};var n,i}function Wd(e,t){return Qo()?qd("account_id")(e,t):t(e)}function qd(s){return function(e,t){if(!e.length)return t(e);for(var n=_.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==_.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function Vd(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Kd(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function $d(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(Kd(n=Vd(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Kd(i+n,o+1,t.compressionRatio)+r>t.upper)return o;i+=n}if(!(0<o))for(o=i=0;o<e.length;++o){if(Kd(i+(n=Vd(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Jd(){var e=vd.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Yd,Xd,Zd,Qd,eu,tu;function nu(e,t){return 2e3<e.length||!_.isEmpty(t)||!!C.get("sendEventsWithPostOnly")}function iu(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=nd)||1===e.length?t(e):(n=e.length/2,iu(e.slice(0,n),t),void iu(e.slice(n),t))}function ru(e,t){ka()&&t(e)}function ou(e,t){!_.isNumber(e.browser_time)||isNaN(e.browser_time)?T.critical(new Error("Event missing browser_time")):t(e)}function au(e,t){R.eventCaptured.trigger(e).cancel||t(e)}function su(){return function(e,t){1===e.length&&e.JZB.length>nd?(T.debug("Couldn't write event"),wa("Single item is: "+e.JZB.length+". Dropping."),Ea(e.JZB)):t(e)}}function du(e,t){return ya(t.beacon+".gif",e,_.extend({v:ct,ct:S(),jzb:t.JZB},t.params,t.auth))}function uu(e,t){return ya(t.beacon+".gif",e,_.extend({v:ct,ct:S(),s:t.JZB.length},t.params))}function cu(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length,e.ts=e[0].browser_time||S();var n=vd.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function lu(e,t){var n,i;Qo()&&(i=_.first(e),n=_.get(i,"account_id"),i=_.get(i,"oem_account_id"),ea(e.params||(e.params={}),n,i)),t(e)}function pu(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function hu(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function fu(e){return Sa(e),e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function gu(e,t){return Ca(du(e,t)).then(fu)}function mu(e,t){return fetch(uu(e,t),{method:"POST",keepalive:!0,body:hu(t),headers:{"Content-Type":"application/json"}}).then(fu)}function vu(e,t){var n=hu(t);return Ta(uu(e,t),n)?m.resolve():m.reject()}function yu(n){return function(e,t){return t.JZB?t.eventLength<=td&&!C.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&Ca.supported()?gu(e,t):t.auth?wo({method:"GET",url:du(e,t)}):_a(du(e,t)):n.allowPost&&t.eventLength<=nd?Ca.supported()?mu(e,t):Ta.supported()?vu(e,t):wo({method:"POST",url:uu(e,e=t),data:hu(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function bu(n){return function(e,t){if(t.JZB){if(t.eventLength<=td&&!C.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Ca.supported())return gu(e,t);if(et.msie<=11)return wo({method:"GET",url:du(e,t),sync:!0})}if(t.eventLength<=nd&&n.allowPost){if(Ca.supported())return mu(e,t);if(Ta.supported())return vu(e,t);if(et.msie<=11)return wo({method:"POST",url:uu(e,e=t),data:hu(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function wu(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Su(e){return Bd(ru,Wd,iu,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:nd}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],T.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(T.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),iu,su(),cu(e),lu,pu,wu);var t}class Eu{constructor(e){this.queues=e}isEmpty(){return _.all(this.queues,e=>e.isEmpty())}stop(){_.each(this.queues,e=>e.stop())}push(){const t=_.toArray(arguments);_.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=_.toArray(arguments);return m.all(_.map(this.queues,e=>e.drain.apply(e,t)))}}function Iu(a,s,d){s=s||yu(a),d=d||bu(a);e=a;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{const o=new yd(function(e,t,n){return S()-e.ts>wd?m.resolve():(n&&(e.params=_.extend({},e.params,{rt:n})),a.localStorageUnload&&t?(0===r&&_d.push(a.beacon,e),m.resolve()):t&&o.failed()?m.reject():(t?d:s)(i,e))});return o.onTimeout=function(){Fd.count(xd[a.beacon])},o.allowDrainWhileFailed=!0,o.retryPending=!0,o}),e=new Eu(e);return _d.send(a.beacon,e),e}function _u(e,t){var n=C.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||!dn(e.type)||t(e)}class Cu{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Iu(e)}pause({timeout:e=1e4,silent:t=!1,sendOnUnload:n=!1}={}){var i=_.uniqueId();const r=this["locks"];r[i]={sendOnUnload:n};var n=()=>{r[i]&&(t||R.trigger("ptm:unpaused"),Gt(o),delete r[i],this.flush())},o=Ut(n,e);return t||R.trigger("ptm:paused"),n}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if(0!==n.length||0!==i.length||!this.sendQueue.isEmpty()){const r=e||t;if(!_.some(this.locks,e=>!(r&&e.sendOnUnload))){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const o=[];_.each(n,function(e){this.processSilos(e,function(e){o.push(e)})},this),e||t?this.sendQueue.drain(o,e):this.sendQueue.push(...o)}}}}function Tu(e){var i,r,t=Su(e),n=Bd(ou,(r=e.beacon,function(e,t){var n=C.get("excludeNonGuideAnalytics")||an();"ptm"===r&&n||t(e)}),_u,zd,jd(e.cache),(i={overhead:Jd,lower:C.get("sendEventsWithPostOnly")?nd:td,upper:nd,compressionRatio:[2.5,3.75,5]},function(e,t){for(var n=$d(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=$d(e,i)}));return new Cu(_.extend({processSilos:t,packageSilos:n},e))}var xu=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||T.critical(e)}}},Ru=xu(function(e){var t,n,i;if((e=e||L.get())&&e!==Ru.lastUrl)return Ru.lastUrl=e,t=-1,Js()||(n=e,Vs()&&(i=Ks(),qs(i,{type:"load",url:n||location.toString()},"*"))),T.debug("sending load event for url "+e),n={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Vs()&&(n.is_frame=!0),"*"!==(t=un())&&(n.allowed_storage_keys=_.keys(t)),Gd("load",n,e),cd(),R.urlChanged.trigger(),!0});function Au(){return E.normalizedUrl||function(e){try{var t=new Li(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return T.error("Invalid URL provided to normalize"),e}}(L.externalizeURL())}function ku(t,e,n={}){if(!I(t))return!0;var i=e||Au(),{logger:r,context:o,id:a}=n;if(Array.isArray(t)){if(0===t.length)return!0;for(let e=0;e<t.length;e++){var s=t[e];if(I(s))try{if(new RegExp(s).test(i))return!0}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o} (rule ${e}):`,a,d)}}}else if("string"==typeof t)try{return new RegExp(t).test(i)}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o}:`,a,d)}return!1}function Ou(e,t){return ku(e,t,{logger:T,context:"guide",id:"unknown"})}Ru.reset=function(){Ru.lastUrl=null};var Nu=[],Mu=[],Lu={};const Pu={ALL:"*",DEFAULT:"default"};function y(e){e=function(e={}){let t=e.channel;return e.hasOwnProperty("channel")?null==t&&(t=Pu.DEFAULT):t=Pu.ALL,t===Pu.ALL?()=>!0:t===Pu.DEFAULT?e=>null==e.channel:e=>e.channel==t}(e);return _.filter(Nu,e)}function Du(e){return Fu(y(e))}function Fu(e){return _.filter(e,function(e){return!e.isFrameProxy})}function Uu(e){_.isArray(e)?(Nu=e,R.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):T.info("bad guide array input to `setActiveGuides`")}function Gu(e={}){return _.any(y(e),function(e){return e.isShown()})}var Bu=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=y(),(t=_.difference(e,n)).length<e.length&&(Uu(t),A.dispatch("frames/changeGuideList",t)))}}}();function Hu(t,n){return _.find(y(),function(e){return _.get(e,t)===n})||null}function b(e){return Hu("id",e)}function zu(e){return Hu("name",e)}function ju(e,t){return e&&e.id?(e=b(e.id)).findStepById(t):null}var Wu="_pendo-guide-tt_",qu="_pendo-guide-mobile-tt_",Vu=_.partial(_.get,_,"attributes.resourceCenter"),Ku=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},$u=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Ju=function(e){return!!_.get(e,"attributes.form")},Yu=function(e){var t="tooltip";return _.get(e,"type")===t||_.get(e,"attributes.calculatedType")===t||_.get(e,"attributes.buildingBlockLayoutType",_.get(e,"buildingBlockLayoutType"))===t};function Xu(){return"undefined"!=typeof selmo&&!!selmo.isPreviewing}function Zu(){return!!(Xu()&&Ba().width<=320)||et.isMobileUserAgent()}function Qu(e=document){var t=Qu.attachPoint;if(null==t){var n=C.get("guides.attachPoint");if(_.isString(n)){try{t=lo(n)[0]}catch(i){T.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();Qu.attachPoint=t}return t||Va(e)}var ec=function(e){var t=e.getGuide();if(t){t.placeBadge();t=Lu[e.guideId];if(t){t=t.element();if($a(t)&&t.id==="_pendo-badge_"+e.id)return t}}},tc=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!$u(n),!e.overrideElement&&n&&(e.overrideElement=ec(e)),e.targetElement=nc(e,t),e.overrideElement||e.targetElement):(T.info("Can't get element for null step"),null)},nc=function(e,t){e=e.elementPathRule||null,e=e?lo(e,t):[Va(t)];return 0===e.length?null:_.first(e)};function ic(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function rc(e,t,n){var i,r,o,e=ja(e),t=ja(t),a=(e=e,a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),o=Math.max(e.top+e.height,a.top+a.height),e=Math.max(e.left+e.width,a.left+a.width),{height:Math.abs(o-i),width:Math.abs(e-r),top:i,left:r});!1!==Ha(a)||t.fixed||(o=function(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};r.y="top"===n?e.top:e.top+e.height-t.height;r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),_.contains([es.X,es.BOTH],i)&&(r.x=0);_.contains([es.Y,es.BOTH],i)&&(r.y=0);return r}(a,Ba(),n,Qa(Va(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}var oc=["BUTTON","A","IMG"],ac=["advanceGuide","previousStep","dismissGuide","openLink","showGuide","launchGuide","guideSnoozed","goToStep","submitPoll","submitPollAndGoToStep","confirmation"];function sc(e){return _.isObject(e)&&_.isString(e.action)&&_.contains(ac,e.action)}function dc(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||is(o=Qu())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function uc(){return A.getters["frames/isLeader"]()}function cc(e){return A.dispatch("frames/updateFrameVisibility",{visibility:e})}const lc={validateGuide:1,validateLauncher:1,validateGlobalScript:1},pc={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1,onEventCaptured:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},hc={ready:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},fc=["ready","onClickCaptured","onEventCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","segmentFlagsUpdated","segmentFlagsReady","segmentFlagsError","validateGuide","validateLauncher","validateGlobalScript"];function gc(i){const e=_.reduce(fc,function(e,r){if(pc[r]){const t=function(e){return vc[r].apply(vc[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(hc[r]){const n=function(t){{var n=r;t=t.data[0];let e;try{e=new CustomEvent("pendo_"+n,{detail:t})}catch(i){if(!document.createEvent)return;(e=document.createEvent("Event")).initEvent("pendo_"+n,!0,!0),e.detail=t}document.dispatchEvent(e)}};i[r].on(n),e.push(()=>i[r].off(n))}return e},[]);return()=>_.each(e,e=>e())}mc=Zn.call({}),_.each(fc,function(n){mc[n]=function(e){var t;return _.isFunction(e)?mc.on(n,e):(t=lc[n]?"triggerAsync":"trigger",mc[t].apply(mc,[n].concat(_.toArray(arguments))))}});var mc,vc=mc;var yc={post:function(e,t,n,i){return n.ajax.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){n.guidesPayload(e.data),i()})},load(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint(){return"guide.json"},usesXhr(){return!0}};function bc(e){return e.replace(/^https?:\/\//,"")}function wc(){return Qo()?undefined:C.getLocalConfig("contentHost")||C.getHostedConfig("contentHost")}function Sc(e){var n,t,i,r;return(n=wc())&&e?(n=/:\/\//.test(t=n)||/^\//.test(t)?t:"https://"+t,t=/(^|\.)app\./,i=bc(at),t=t.test(i)?i.replace(t,"$1cdn."):bc(st),i=bc(st),r=t.replace(/(^|\.)cdn\./,"$1static."),r=[ot&&J(ot)+"-\\d+\\.storage\\.googleapis\\.com",rt&&J(rt)+"\\.storage\\.googleapis\\.com",t&&"content-\\d+\\."+J(r),t&&J(t),i&&i!==t&&J(i)],_.reduce(r,function(e,t){return t?e.replace(new RegExp("(https:)?\\/\\/"+t,"g"),n):e},e)):e}function Ec(e){return wc()?JSON.parse(Sc(JSON.stringify(e))):e}var Ic=function(){var u={},c=_.compose(function(e){var t=function(){var e=J(C.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&T.debug("Failed to verify URL: "+e+" vs "+t),e},Sc);const d=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
4
+ function loadAgent(B){let s;const d={createScriptURL:e=>e,createHTML:e=>e};function p(e){return s||(s=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",d):d),e.trustedTypesPolicy=s),s}u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var u,c={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=u[n>>2])+u[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=u[n>>10])+u[n>>4&63])+u[n<<2&63]}return o}},Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var H,o,z,j,W,q,V,e={exports:{}};function K(e){e?(q[0]=q[16]=q[1]=q[2]=q[3]=q[4]=q[5]=q[6]=q[7]=q[8]=q[9]=q[10]=q[11]=q[12]=q[13]=q[14]=q[15]=0,this.blocks=q):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}t=e,H="object"==typeof window?window:{},Se=!H.JS_SHA1_NO_COMMON_JS&&t.exports,o="0123456789abcdef".split(""),z=[-2147483648,8388608,32768,128],j=[24,16,8,0],W=["hex","array","digest","arrayBuffer"],q=[],V=function(t){return function(e){return new K(!0).update(e)[t]()}},K.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===H.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<j[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<j[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<j[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<j[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<j[3&n++],a[n>>2]|=(128|t>>12&63)<<j[3&n++]),a[n>>2]|=(128|t>>6&63)<<j[3&n++]),a[n>>2]|=(128|63&t)<<j[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},K.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=z[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},K.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+a[s+4]<<0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+a[s+4]<<0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+a[s+4]<<0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+a[s+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+r<<0,this.h4=this.h4+o<<0},K.prototype.toString=K.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},K.prototype.array=K.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},K.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},n=function(){var t=V("hex");t.create=function(){return new K},t.update=function(e){return t.create().update(e)};for(var e=0;e<W.length;++e){var n=W[e];t[n]=V(n)}return t}(),Se?t.exports=n:H.sha1=n;var $=l(e.exports);function J(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e){return c.uint8ToBase64($.create().update(e).digest())}var X={};function Z(n,i=[],r=[],o=!0){if(n){if(0<r.length){var a=Y(n);for(let e=0,t=r.length;e<t;++e)if(r[e]===a)return!0}if(0<i.length)for(let t=0,e=i.length;t<e;++t){let e=i[t];if("object"==typeof e&&e.value&&(e=e.regexp?(e.value.startsWith("/")&&e.value.endsWith("/")&&(e.value=e.value.substring(1,e.value.length-1)),new RegExp(e.value)):e.value),(e="string"==typeof(e=o&&e instanceof RegExp?(s=e,u=d=void 0,d=s.ignoreCase?"i":"",u="re:"+d+":"+s.source,X[u]||(X[u]=new RegExp("^(?:"+s.source+")(?::\\d+)?$",d)),X[u]):e)?new RegExp("^"+J(e)+"$"):e)instanceof RegExp&&e.test(n))return!0}var s,d,u}return!1}function Q(e){return String(e||"").replace(/^[a-z][a-z0-9+.-]*:\/\//i,"")}function ee(e){e=(e||"").split(":")[0].toLowerCase();if(!e||/^[\d.]+$/.test(e)||0<=e.indexOf(":"))return[];for(var t=e.split("."),n=[],i=0;i<=t.length-2;i++)n.push(t.slice(i).join("."));return n}var E,te="stagingServerHashes",ne="stagingDomains",ie={};function re(e){return e.loadAsModule}function oe(e){return"staging"===e.environmentName}function ae(e){return"extension"===e.installType}var se=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/;function de(e){return se.test(e.src)}function ue(e=[]){e=function(t=[]){for(let e=0;e<t.length;e++)if(de(t[e]))return t[e]}(e);if(e)return e.src.replace(/\.js$/,"-staging.js")}function ce(e,t,n){e=ue(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function le(e,t){return!!(e=e||ie)&&(!!oe(e)||Z((t=t||window.location).host,e.stagingServers,e[te],!1)||function(e,t=[]){if(t.length)for(var n=ee(e),i=0;i<n.length;i++)if(0<=t.indexOf(Y(n[i])))return!0;return!1}(t.host,e[ne]))}var pe=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function he(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function fe(e){if(!e._q)for(var t=pe,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){he(t,e,arguments)}}(t[n],e)}function ge(e,t,n){if(!ae(i=e)&&!oe(i)&&le(i)){i=ce(e,!0,n);if(i)return fe(t),ve(i,t,e.pendoGlobalKey),!0}var i;return!1}function me(e,t,n){if(r=n,!ae(i=e)&&!i.unminified&&r){i=ce(e,!1,n);if(i)return fe(t),ve(i,t,e.pendoGlobalKey),!0}var i,r;return!1}function ve(e,t,n){var i=document.createElement("script"),t=(i["async"]=!0,i.src=p(t).createScriptURL(e),n&&i.setAttribute("data-pendo-global-key",n),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(i,t):(document.head||document.body).appendChild(i)}function ye(e){ie=e}function be(){return void 0===B?{}:B}function we(e){return ie[e]}var Se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};Ee(Se.setTimeout,Se);function Ee(e,t){return"function"==typeof e.bind?e.bind(t):e}var Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return Ee(e[t],e)}(Se);Ie(Se.clearTimeout,Se);function Ie(e,t){return"function"==typeof e.bind?e.bind(t):e}var _e,Gt=function(e){var t="clearTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return Ie(e[t],e)}(Se),_=l(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,H=Object.keys,z=Object.create,j=t&&ArrayBuffer.isView,W=isNaN,q=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),K=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function J(e){return void 0===e}function Y(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Z=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Z(e)&&W(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=$}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=K.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=K[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(H)return H(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return F.valueOf.call(e)===F.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(u),s=_e(y),Te=_e(u,!0);function xe(e){var t;return o(e)?z?z(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function Re(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function ke(e,t,n){e=Ae(e,S(t));return J(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=Re,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,He={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ze=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+He[e]}var We=/^\s*(\w|\$)+\s*$/;var qe=0;function Ve(e,t,n,i,r){return i instanceof t?(i=xe(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var T=c(function(r,o){var a=T.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Ke=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),x=ue(v);function R(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(x(s)&&(f(s)||ae(s)))if(1<t)R(s,t-1,n,i),r=i.length;else for(var d=0,u=s.length;d<u;)i[r++]=s[d++];else n||(i[r++]=s)}return i}var $e=c(function(e,t){var n=(t=R(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ke(e[i],e)}return e});var Je=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ye=T(Je,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ze(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(Ze,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(d.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function dt(e,t,n){t=(x(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),x(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function k(e,t,n){t=_(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,d=!x(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function O(e,i,t){var r=[];return i=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return x(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),k(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return k(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):X(e)?e.match(vt):x(e)?k(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=x(e)?e:w(e))[De(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=De(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=u(e)):(i=_t,t=R(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=k(R(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function xt(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:xt(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=R(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Y(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}return r}var Nt=c(function(e){return Ot(R(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:J,isBoolean:Y,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Z,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&q(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:u,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=xe(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Pe,toPath:Re,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return ke(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(ze,je),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!We.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++qe+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ke,bindAll:$e,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:Je,defer:Ye,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:C(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(Gt(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),d};return e.cancel=function(){Gt(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=C()-o;e<n?r=Ut(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=C(),r||(r=Ut(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){Gt(r),r=a=d=null},e},wrap:function(e,t){return T(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ze,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,E(t))},each:A,forEach:A,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(k(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(x(e)?e:y(e)).length},pick:Ct,omit:Tt,first:Rt,head:Rt,take:Rt,initial:xt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return R(e,t,!1)},without:kt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P}());function I(e){return!(null==e)}function Ce(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,Ce):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=Ce(t),e},{}):e}function Te(){var e=window.pendo_options;if("[object Object]"===Object.prototype.toString.call(e))return e}var C=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,d=_.pluck,u="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i,r=[]){var o;e&&!h[e]&&(o={name:e,aliases:r=_.isArray(r)?r:[],defaultValue:n,supportedSources:t},null!=i&&(o.useAnySource=i),h[e]=o,0<r.length)&&_.each(r,function(e){h[e]===undefined&&(h[e]=o)})}e("additionalPublicAppIds",[c,u],undefined,undefined,["additionalApiKeys"]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("enforceAllowedOriginServers",[u,c],!1),e("allowMixedApplicationFrames",[u,c],!0),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("publicAppId",[c,u],undefined,undefined,["apiKey"]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockWebSDKMetadata",[c],!1,undefined,["blockAgentMetadata"]),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("initializeWhenVisible",[c],!1),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("forceAnonymous",[u,c],!1),e("forcedLeader",[u,c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),e("identityStorageLifetime",[u,c]),e("identityStorageSuffix",[u,c]),e("ignoreHashRouting",[u,c]),e("initializeImmediately",[u,c],!1),e("installType"),e("localStorageOnly",[u,c]),e("location.pushState",[u,c],!0),e("maxCookieTTLDays",[u,c],Infinity),e("observeShadowRoots",[u,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[u,c],!0),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!0),e("promotedWebSDKMetadataConfigurations",[c],undefined,undefined,["promotedAgentMetadataConfigurations"]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedWebSDKUrl",[u,c],undefined,undefined,["selfHostedAgentUrl"]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[c,u],[],!0),e("analytics.excludeEvents",[u,c],[]),e("analytics.localStorageUnload",[u,c],!1),e("enableDebugEvents",[u,c]),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1,undefined,["interceptElementRemoval"]),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disableImportantStyleAttributes",[u,c],!1),e("useInertForBackdrop",[u,c],!1),e("disablePrefetch",[u,c]),e("doNotTrackGuides",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u],!1,undefined,["delayGuides"]),e("guides.disabled",[u],!1,undefined,["disableGuides"]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u],undefined,undefined,["guideTimeout"]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderApplication",[u,c],[]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1,!0),e("previewModeAssetPath"),e("useAssetHostForDesigner",[u,c],!1),e("storage.allowKeys",[u],"*"),e("disableFeedback",[u]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[u,c]),e("enableCrossOriginIsolation",[u,c],!1),e("secureDesignerConnect",[u,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("webSDKDebuggerPluginLoader",[c],undefined,undefined,["agentDebuggerPluginLoader"]),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerWebSDKPluginsLoader",[c,u],undefined,undefined,["designerAgentPluginsLoader"]),e("guideContentLoader",[c]),e("trainingPartner"),e("oemAccountId",[u]),e("whiteLabelSettings",[c]),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[u,c],!0),e("performanceMetricsSampleRate",[u,c],10);var f={};function g(e){return h[e]||{name:e}}function m(t,n){if(n){const i=n();let e=_.get(i.lookup,(n=t,_.get(n,"key")||_.get(n,"name")));return I(e)||(n=_.find(t.aliases||[],function(e){e=_.get(i.lookup,e);if(I(e))return e}))&&(e=_.get(i.lookup,n)),I(e)?e:undefined}}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[u,c,l]),o(n(t,_.partial(v,e)),function(e){return I(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&I(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(d(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[u]=function(){return{lookup:_e||Te(),name:u}},f[c]=function(){return{lookup:ie,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[u]).value:Ce(_e)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){_e=e},options:()=>d(h,"name"),sources:{SNIPPET_SRC:u,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();const xe="extension",Re="native";function Ae(){return C.get("installType")||be().installType||Re}function ke(){return Ae()===xe}function Oe(e){return/native/.test(e)}const Ne=e=>{e=_.get(window,e);return e&&Oe(e)};function Me(e,t){return e=e||10,(t=!isNaN(Pe)&&(!t||Pe<t))&&Le<e}const Le=function(e){let t=De((/msie (\d+)/.exec(Fe(e))||[])[1]);isNaN(t)&&(t=De((/trident\/.*; rv:(\d+)/.exec(Fe(e))||[])[1]));return t}(Ue()),Pe=function(e,t){let n=De((/trident\/(\d+)/.exec(Fe(e))||[])[1]);isNaN(n)&&7==t&&(n=3);return n}(Ue(),Le);function De(e){return parseInt(e,10)}function Fe(e){return _.isString(e)?e.toLowerCase():e}function Ue(){return(window.navigator||{}).userAgent}const Ge={},Be=De((/android (\d+)/.exec(Fe(Ue()))||[])[1]),He=/Boxee/i.test(Ue()),ze=window.document||{},je=ze.documentMode;let We;var qe,Ve=/^(Moz|webkit|O|ms)(?=[A-Z])/,t=ze.body&&ze.body.style;let Ke=!1,$e=!1;if(t){for(const M_ in t)if(qe=Ve.exec(M_)){We=(We=qe[0]).substr(0,1).toUpperCase()+We.substr(1);break}We=We||"WebkitOpacity"in t&&"webkit",Ke=!!("transition"in t||We+"Transition"in t),$e=!!("animation"in t||We+"Animation"in t),!Be||Ke&&$e||(Ke=_.isString(ze.body.style.webkitTransition),$e=_.isString(ze.body.style.webkitAnimation))}var n=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;const Je=_.memoize(function Je(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0),i=!(Be<4);return!(!e||t||!n||!i||He||ke())});const Ye=/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i,Xe=/Android/i,Ze=/Mobile/i,Qe=/Android [\d.]+; K\)|tablet|sm-t|nexus (7|9|10)|xoom|; kf|; t1|lenovo tab/i;const et={supportsHistoryApi:Je,supportsHashChange:function(){var e="onhashchange"in window,t=!je||7<je;return!(!e||!t||ke())},supportsPopover:function(){return!!window.HTMLElement&&Oe(window.HTMLElement.prototype.showPopover)},hasEvent(e){var t;return("input"!=e||9!=Le)&&(_.isUndefined(Ge[e])&&(t=ze.createElement("div"),Ge[e]="on"+e in t),Ge[e])},vendorPrefix:We,transitions:Ke,animations:$e,android:Be,msie:Le,msieDocumentMode:je,safari:0<=(e=Ue()).indexOf("Safari")&&([e=Ue()]=[e],!(0<=e.indexOf("Chrome")||0<=e.indexOf("Chromium"))),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:Oe(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){const e=Ue();return Ye.test(e)&&!(Xe.test(e)&&!Ze.test(e)&&Qe.test(e))}),isChromeExtension:n};var tt=function(){return!isNaN(Le)&&11!=Le&&"CSS1Compat"!==document.compatMode},nt=function(e,t){var n,i=e.height,r=e.width;return"top"==e.arrowPosition||"bottom"==e.arrowPosition?(n=0,"top"==e.arrowPosition?(e.top=t.top+t.height,n=-1,e.arrow.top=3,Le<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==Le?e.arrow.top--:Le<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e};let it="",rt="",ot="",at="",st="",dt="",ut="",ct="2.350.1_",lt="2.350.1",pt="xhr";const ht=function(){return tt()?ct+"+quirksmode":ct};var ft=/^\s+|\s+$/g;function gt(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var mt=(mt=String.prototype.trim)||function(){return this.replace(ft,"")},t={exports:{}};!function(){var Z=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Z?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Z,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,H,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,T,x,R,W=h,q=f,A=new(ee?Uint32Array:Array)(W+q),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<W;N++)A[_++]=m[N];for(N=0;N<q;N++)A[_++]=v[N];if(!ee)for(N=0,T=O.length;N<T;++N)O[N]=0;for(N=x=0,T=A.length;N<T;N+=_){for(_=1;N+_<T&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[k[x++]=0]++;else for(;0<C;)(R=C-3<(R=C<138?C:138)&&R<C?C-3:R)<=10?(k[x++]=17,k[x++]=R-3,O[17]++):(k[x++]=18,k[x++]=R-11,O[18]++),C-=R;else if(k[x++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)k[x++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(R=C<6?C:6)&&R<C&&(R=C-3),k[x++]=16,k[x++]=R-3,O[16]++,C-=R}for(e=ee?k.subarray(0,x):k.slice(0,x),y=oe(O,7),S=0;S<19;S++)j[S]=y[z[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(j[S],3,Q);for(S=0,H=e.length;S<H;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],K=I[0],$=I[1],J=L[0],Y=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(K[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(J[V],Y[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Z&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(t.exports);var vt={Deflate:l(t.exports).Zlib.Deflate},yt="base64url";function bt(e,t){t=t||yt;e=gt("string"==typeof e?e:JSON.stringify(e)),e=new vt.Deflate(e).compress();return t===yt?c.uint8ToBase64(e):e}function wt(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}e={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(e.exports);var St={CRC32:l(e.exports).Zlib.CRC32},Et=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return Et(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=Et(e,n+1)}),i)},It=function(e){e=gt(e);return c.uint8ToBase64(e)},_t=function(e){if(void 0!==e)return e=gt(e=_.isString(e)?e:JSON.stringify(e)),St.CRC32.calc(e,0,e.length)};function Ct(e){return e[Math.floor(Math.random()*e.length)]}function Tt(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=Ct(i);return n}var xt=function(e,t,n){return!(!I(e)||!I(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function S(){return(new Date).getTime()}function Rt(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function At(e,t=window){return wt(_,e,t)}n=window;var kt=_.isFunction(n.isFinite)?n.isFinite:n.Number&&_.isFunction(n.Number.isFinite)?n.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function Ot(e){return"number"==typeof e&&kt(e)&&Math.floor(e)===e}function Nt(e,t,n,i){(t=t||{}).maxRetries=Ot(t.maxRetries)?t.maxRetries:10,t.delay=Ot(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Ut(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,Nt(e,t,o,a)},t.delay):(a||function(){})()}var Mt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function Lt(e){return _.isObject(e)&&_.isFunction(e.then)}function Pt(e){return e&&e.hasOwnProperty("wrappedJSObject")?e.wrappedJSObject:e}var Dt,Ft=_.isFunction(Se.decodeURIComponent)?Se.decodeURIComponent:_.identity,Ht=_.isFunction(Se.encodeURIComponent)?Se.encodeURIComponent:_.identity;class zt{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),_.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=_.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&_.each(e,e=>{e(t)})}}class jt{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+_.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=Dt=Dt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class Wt extends zt{write(e,t,n){this.dispatchEvent(new jt(t,e,n))}writeError(e,t,n){let i,r;_.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new jt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,Dt.Debug,t)}info(e,t){this.write(e,Dt.Info,t)}warn(e,t){this.writeError(e,Dt.Warn,t)}error(e,t){this.writeError(e,Dt.Error,t)}critical(e,t){this.writeError(e,Dt.Critical,t)}}const T=new Wt,qt="cookieConsentCollection",Vt="analytics",Kt="guideAnalytics",$t="textCollection",Jt=["none","whitelist","all"],Yt={agentResponse:"agent_response",clicks:"click",fieldChanges:"change",focus:"focus",formSubmits:"submit",identify:"identify",meta:"meta",objectMetadata:"objectMetadata",pageLoads:"load",prompt:"prompt",trackEvents:"track",userReaction:"user_reaction"},Xt=["guideActivity","guideAdvanced","guideDismissed","guideNotSeen","guideSeen","guideSnoozeCanceled","guideSnoozed","guideTimeout","pollResponse"];let Zt=null;function Qt(e){return _.isString(e)?[e]:_.isArray(e)?e:[]}function en(e){var i,{visitorIdentity:e={},analytics:t={},guides:n={},sessionReplay:r={}}=e||{},o=t.eventCollection||{},t=!0===t.enabled;return{identity:!0===e.trackVisitors,guides:!0===n.enabled,replay:!0===r.enabled,utm:t&&!0===o.utmParameters,analytics:t?(i=o,_.reduce(Yt,function(e,t,n){return!0===i[n]&&e.push(t),e},[])):[],guideAnalytics:t&&!0===o.guideServing?Xt.slice():[],textCollection:t&&(e=o.textCollectionMode,_.contains(Jt,e))?e:Jt[0]}}function tn(e,t){return{identity:e.identity||t.identity,guides:e.guides||t.guides,replay:e.replay||t.replay,utm:e.utm||t.utm,[Vt]:_.union(e[Vt],t[Vt]),[Kt]:_.union(e[Kt],t[Kt]),[$t]:(e=e[$t],t=t[$t],Jt.indexOf(t)>Jt.indexOf(e)?t:e)}}function nn(e){const n=C.get(qt)||{};var t,e=Qt(e);return t=n,_.each(e,function(e){_.isUndefined(t[e])&&T.warn('Consent tier "'+e+'" is not present in '+qt+".")}),_.isEmpty(n)?Zt={}:Zt=_.reduce(e,function(e,t){t=n[t];return t?tn(e,en(t)):e},{identity:!1,guides:!1,replay:!1,utm:!1,[Vt]:[],[Kt]:[],[$t]:Jt[0]}),rn()}function rn(){return Zt?_.extend({},Zt):null}function on(e){return!Zt||_.isUndefined(Zt[e])||!0===Zt[e]}function an(){return!on("identity")}function sn(e,t){return!Zt||(t=Zt[t],!!_.isUndefined(t))||_.contains(t,e)}function dn(e){return!an()&&sn(e,Vt)}const un=function(){var e=C.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function cn(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function ln(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function pn(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:cn(n,n.getItem,null),setItem:cn(n,n.setItem),removeItem:cn(n,n.removeItem),clearPendo:_.partial(ln,n)}:t}catch(i){return t}}var hn=pn(function(){return window.localStorage}),fn=pn(function(){return window.sessionStorage});function gn(e){try{return JSON.parse(e)}catch(t){return null}}var mn,vn={},yn=!0,bn=function(){return C.get("localStorageOnly")},wn=function(){return!!C.get("disableCookies")||an()};function Sn(e){yn=e}var En=function(e){return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(document.cookie))?Ft(e[2]):null},In=function(e,t,n,i){var r,o,a;!yn||C.get("preventCookieRefresh")&&En(e)===t||(a=An(n),r=new Date,o=(i="https:"===document.location.protocol||i)?"None":"Strict",r.setTime(r.getTime()+a),a=e+"="+Ht(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+(i?";secure":"")+"; SameSite="+o,mn&&(a+=";domain="+mn),document.cookie=a)};function _n(e){var t="=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";mn&&(document.cookie=e+t+";domain="+mn),document.cookie=e+t}var Cn=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Tn=function(e,t){return En(Cn(e,t))};const xn=864e5,Rn=100*xn,An=(e=Rn)=>{var t=C.get("maxCookieTTLDays"),t=t<Infinity?t*xn:Infinity;return Math.min(e,t)};var kn=function(e,t,n,i,r){n=n||Rn,In(Cn(e,r),t,n,i)};class On{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return I(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,localStorageOnly:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var Nn,Mn,Ln,Pn,m,x=function(){const d=new On;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=un())||n[t])return d[r](e)||T.warn(`storage key ${e} is not registered`),i.apply(this,arguments);T.debug(`writing storage key ${e} is not allowed`)}}function u(e){return e||bn()||!mn}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.getItem(n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function p(e){if(null===e)return null;try{var t=JSON.parse(e);return null!==t&&"object"==typeof t&&"ttl"in t&&"value"in t?"number"==typeof t.ttl&&isFinite(t.ttl)&&0<t.ttl&&t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}function h(e,t){return null===t?e:(t=(new Date).getTime()+An(t),JSON.stringify({ttl:t,value:e}))}function f(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),t=t?e:Cn(e,n);if(wn()&&delete vn[t],u(i)){if(c("localStorage"))try{return void localStorage.removeItem(t)}catch(r){}}else try{return void _n(t)}catch(r){}delete vn[t]}const t=_.extend({},fn),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},hn));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),r=t?e:Cn(e,n);let o;var a=d.getKeyDeserializer(e);if(wn())return a(p(vn[r])||null);if(u(i)){if(c("localStorage"))try{return null===(o=p(localStorage.getItem(r)))&&f(e,t,n),a(o)}catch(s){l(c)}}else try{if(null!==(o=En(r)))return a(o)}catch(s){}return null===(o=p(vn[r]||null))&&delete vn[r],a(o)},write:e(function(e,t,n,i,r,o){n=d.getKeyConfig(e,"duration",n),i=d.getKeyConfig(e,"isPlain",i),r=d.getKeyConfig(e,"isSecure",r),o=d.getKeyConfig(e,"cookieSuffix",o);var a=d.getKeyConfig(e,"localStorageOnly"),e=(t=d.getKeySerializer(e)(t),i?e:Cn(e,o));if(l(c),wn())return vn[e]=h(t,n),!0;if(u(a)){if(c("localStorage"))try{return localStorage.setItem(e,h(t,n)),!0}catch(s){}}else try{return i||(n=n||Rn),In(e,t,n,r),!0}catch(s){}return vn[e]=h(t,n),!1},"hasLocal"),clear:f,clearAll:function(){_.each(d.keys,(e,t)=>{"local"===e.type&&f(t)})},registry:d,getLocal:()=>n,getSession:()=>t}}(),Dn=(e=function(){var t=Ut;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(n=Se.Promise)&&/native/.test(n)?n:e()),t=(Mn=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Ln=function(n,i){var r=Nn.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===Pn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Pn=1,(Nn={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Pn,e)},a=function(e){t(2,e)},s=function(e,t){e=Ln(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=Mn();try{e(t(u),t(a))}catch(n){t(a)(n)}},u=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(n){return void a(n)}t?d(t):o(e)},e=Mn();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Nn);function Fn(e){var n,i=m.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){m.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):m.resolve(e)}!ke()&&et.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?Dn.all.apply(Dn,arguments):Fn(e)},reject:function(){return Dn.reject.apply(Dn,arguments)},resolve:function(){return Dn.resolve.apply(Dn,arguments)},defer:function(){var n={};return n.promise=new Dn(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=t).all=Fn,m.reject=function(e){var t=m.defer();return t.reject(e),t.promise},m.resolve=function(e){var t=m.defer();return t.resolve(e),t.promise});const Un=x.getSession(),Gn="pendo_tabId",Bn="pendo_parentTabId";Hn=window,n=_.partial,zn=_.extend,jn=_.omit,Wn={data:{},getItem(e){return Wn.data[e]},setItem(e,t){Wn.data[e]=t},removeItem(e){Wn.data[e]=null,delete Wn.data[e]}},qn=n(Yn,Gn,Xn),Vn=n(Yn,"pendo_frameId",Wn);var Hn,zn,jn,Wn,qn,Vn,Kn={addTracerIds(e){return jn(zn(e,{parentTabId:$n(Bn,Xn),tabId:qn(),frameId:Vn()}),function(e){return e===undefined})},setParentTabId:function(e){Jn(Bn,e,Xn)},newTabId:function(){var e=Tt(16);return Jn(Gn,e,Xn),e},getTabId:qn,getFrameId:Vn,tabIdChanged:function(t){var e;if(et.addEventListener)return Hn.addEventListener("storage",e=function(e){e.key===Gn&&(Wn.removeItem(Gn),t())}),function(){Hn.removeEventListener("storage",e)}}};function $n(e,t){return(_.isFunction(t)?t():t).getItem(e)}function Jn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function Yn(e,t){var n=$n(e,t);return n||Jn(e,n=Tt(16),t),n}function Xn(){return n=Wn,i=Un,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function Zn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(_.isString(e)||_.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),_.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return _.isFunction(t)?(n=_.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=_.toArray(arguments).slice(1);return _.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return _.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=_.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}Zn.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};or={DEBUG:e="debug",FRAMES:t="frames",LIFECYCLE:n="lifecycle",RUNTIME:Ir="runtime"},Qn=[new i("ready",[e,n]),new i("deliverablesLoaded",[e,n]),new i("guidesFailed",[e,n]),new i("guidesLoaded",[e,n]),new i("segmentFlagsUpdated",[e,n]),new i("segmentFlagsReady",[e,n]),new i("segmentFlagsError",[e,n]),new i("guideListChanged",[e,n]),new i("guidesReceived",[e,n]),new i("guideSeen",[e,n]),new i("guideNotSeen",[e,n]),new i("guideAdvanced",[e,n]),new i("guideDismissed",[e,n]),new i("guideSnoozed",[e,n]),new i("beforeGuideShow",[n]),new i("beforeMount",[Ir]),new i("beforeAdvance",[Ir]),new i("beforePrevious",[Ir]),new i("beforeSnooze",[Ir]),new i("beforeDismiss",[Ir]),new i("beforeUnmount",[Ir]),new i("unmounted",[Ir]),new i("beforeUpdate",[Ir]),new i("updated",[Ir]),new i("guideSnoozeCancelled",[e,n]),new i("guideTimeout",[e,n]),new i("guideLoopStopped",[e,n]),new i("guideUpdateComplete",[n]),new i("designerLaunched",[e,n]),new i("debuggerLaunched",[e,n]),new i("stepEligibility",[e]),new i("identify",[e,n]),new i("metadata",[e,n]),new i("appUnloaded",[e,n]),new i("appHidden",[e,n]),new i("startPreview",[e]),new i("resourceFetchFail",[e]),new i("contentVerificationFail",[e]),new i("contentValidationFail",[e]),new i("renderFail",[e]),new i("appUsage",[n]),new i("eventCaptured",[e]),new i("error",[e,n]),new i("onClickCaptured",[e]),new i("onEventCaptured",[e]),new i("urlChanged",[n]),new i("leaderChanged",[n,t]),new i("transmit:locked",[n]),new i("transmit:unlocked",[n]),new i("sessionChanged",[n]),new i("ptm:unpaused",[n]),new i("ptm:paused",[n]),new i("recording:unpaused",[n]),new i("recording:paused",[n]),new i("consent:changed",[n]),new i("childFrameJoined",[t]),new i("tabIdChanged:self",[e,n])],ei=Zn.call({}),ti={debug(){return Kn.addTracerIds(ii.apply(null,arguments))},lifecycle:ii,runtime:ii,frames:ii},ni=ei.trigger,ei.trigger=ri,_.each(_.values(or),function(e){ei[e]={on:_.partial(ei.on,e),one:_.partial(ei.one,e),off:_.partial(ei.off,e)}}),_.each(Qn,function(e){e=e.name,ei[e]={on:_.partial(ei.on,e),one:_.partial(ei.one,e),off:_.partial(ei.off,e),trigger:_.partial(ri,e)}});var Qn,ei,ti,ni,R=ei;function i(e,t){this.name=e,this.groups=t||[]}function ii(e,t){e={type:e,ts:S()};return I(t)&&_.isObject(t)&&(e.data=t),e}function ri(t){var e=_.findWhere(Qn,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=ti[e](t,n),ni.apply(ei,[e].concat(i)))}),i.cancel||(i=ii(t,n),ni.apply(ei,[t].concat(i))),i}function oi(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=u(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,Ce(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[d(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:d(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:d(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=d(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[d(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var A=oi(),ai=(A.subscribe(function(e,t){}),"_PENDO_T_"),si=11;const di="visitorId",ui="oldVisitorId",ci="accountId",li="__cookieless_visitor__";var pi=function(e=""){return e+Tt(si)};var hi=function(e){return I(e)&&""!==e&&e!==wi&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===mt.call(e).length)},fi=function(e){return!(!e||"number"==typeof e)&&e.substring(0,ai.length)===ai},gi=function(){return!C.get("disablePersistence")},mi=function(e){e=e||[di,ci,ui];const t=C.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){_n(Cn(e,t)),x.clear(e,!1,t)})},vi="VISITOR-UNIQUE-ID",yi=function(e){return vi===e},bi=function(e=E.visitorId){return e===li},wi="::",Si=function(e){return new RegExp(wi).test(e)};function Ei(e){return e.old_visitor_id!==e.visitor_id}var Ii,_i=function(e,t){var n,i={old_visitor_id:v(),old_account_id:Ai()};hi(e)?(Ri(e),t=t,_.isUndefined(t)?T.info("No account id provided"):an()?T.warn("Ignoring account id "+t+" while identity consent is dnt."):hi(t)?(E.accountId=""+t,gi()&&ki(ci,E.accountId)):(delete E.accountId,delete(n=C.getLocalConfig()).account,C.setLocalConfig(n),A.commit("metadata/clearAccount"),gi()&&x.clear(ci),T.info("Invalid account id: "+t+". Account cleared")),i.visitor_id=v({generate:!0}),i.account_id=Ai(),!Ei(n=i)&&n.old_account_id===n.account_id||(Ei(i)&&(t=i.old_visitor_id)&&(Ii=t,ki(ui,Ii)),R.identify.trigger(i))):T.info("Invalid visitor id "+e)};function Ci(){return pi(ai)}function Ti(e){an()&&(e=li),E.visitorId!==e&&(gi()&&ki(di,e),E.visitorId=e)}function v(e={}){var t=function(){if(hi(E.visitorId))return E.visitorId;var e=C.get("forceAnonymous");if(gi()){var t=Oi(di);if(hi(t)&&(!e||fi(t)))return t}return undefined}();return Ti(t=!t&&e.generate?Ci():t),t}function xi(){return v()||Ci()}var Ri=function(e){hi(e)?an()&&e!==li?T.warn("Ignoring visitor id "+e+" while identity consent is dnt."):Ti(""+e):T.info("Invalid visitor id "+e)};var Ai=function(){var e=C.get("forceAnonymous");return hi(E.accountId)||!gi()||e||(e=Oi(ci),E.accountId=e),E.accountId};function ki(e,t){var n=C.get("identityStorageLifetime")||Rn,i=C.get("identityStorageSuffix")||E.apiKey;x.write(e,t,n,!1,!0,i)}function Oi(e){var t=C.get("identityStorageSuffix"),n=t||E.apiKey,n=x.read(e,!1,n)||x.read(e,!1,E.apiKey);return t&&x.clear(e,!1,E.apiKey),n}function Ni(e={doNotTrack:!1}){var t={old_visitor_id:v({generate:!1}),old_account_id:Ai(),wasCleared:!0};mi(),delete E.visitorId,delete E.accountId,e.doNotTrack?Ri(li):v({generate:!0}),_.extend(t,{visitor_id:v(),account_id:Ai()}),R.identify.trigger(t)}function Mi(e){e=e.data[0];return _.get(e,"wasCleared")}Ir=function(n){return function Li(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}};var Li="function"==typeof(e=(t=Se).URL)&&/native/.test(e)?e:Ir(t.document);function Pi(e){if((t=e)&&"function"==typeof t.composedPath)try{return e.composedPath()}catch(n){return e.path}var t;return null}function Di(e){return e.shadowRoot}function Fi(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Ui(e,t){return Fi(e,t)?e.host:e.parentNode}function Gi(e,t,n){let i=t;for(;i;){if(i===e)return!0;i=Ui(i,n)}return!1}var Bi={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Pi,getShadowRoot:Di,isElementShadowRoot:Fi,getParent:Ui,isShadowSelector:Hi,wrapSizzle(i,u){i.intercept(function(a,t,n,i,r){var e,o;if(Hi(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(Bi.PSEUDO_REGEX,Bi.PSEUDO_SAFE),e=_.map(o.tokenize(e),zi),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(Bi.PSEUDO_REGEX,""),n,i,r);{const d=a(t,n,i,r);return 0<u.cache.size&&u.cache.forEach(e=>{n&&n!==document&&!Gi(n,e)||d.push(...a(t,e,i,r))}),d}function s(e,t,n,i){var r,o;return Hi(e)?(o=s((r={baseCss:(o=(o=e).split(Bi.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Bi.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return Bi.getShadowRoot(t)?e.concat(s(r.shadowCss,Bi.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Bi.isElementShadowRoot(t)&&(Hi(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Hi(e){return!!e&&-1<e.indexOf(Bi.PSEUDO_ELEMENT)}function zi(e){return _.reduce(e,function(e,t){return t.value===Bi.PSEUDO_SAFE?e+Bi.PSEUDO_ELEMENT:e+t.value},"")}var ji,h,w,Wi,qi,Vi,Ki,$i,Ji,Yi,Xi,Zi,k,Qi,er,tr,nr,ir,rr,n={exports:{}},or=n,ar=window,O="sizzle"+ +new Date,sr=ar.document,dr=0,ur=0,cr=Kr(),lr=Kr(),pr=Kr(),hr=Kr(),fr=Kr(),gr=function(e,t){return e===t&&(Xi=!0),0},mr={}.hasOwnProperty,e=[],vr=e.pop,yr=e.push,br=e.push,wr=e.slice,Sr=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Er="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",t="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ir="\\["+r+"*("+t+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+r+"*\\]",_r=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ir+")*)|.*)\\)|)",Cr=new RegExp(r+"+","g"),Tr=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),xr=new RegExp("^"+r+"*,"+r+"*"),Rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),Ar=new RegExp(r+"|>"),kr=new RegExp(_r),Or=new RegExp("^"+t+"$"),Nr={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+Ir),PSEUDO:new RegExp("^"+_r),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+Er+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},Mr=/HTML$/i,Lr=/^(?:input|select|textarea|button)$/i,Pr=/^h\d$/i,Dr=/^[^{]+\{\s*\[native \w/,Fr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ur=/[+~]/,Gr=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),Br=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},Hr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,zr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},jr=function(){Zi()},Wr=io(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{br.apply(e=wr.call(sr.childNodes),sr.childNodes),e[sr.childNodes.length].nodeType}catch(k_){br={apply:e.length?function(e,t){yr.apply(e,wr.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function qr(e){return e[0].length?e.map(qr).join(","):no(e)}function Vr(e,t,n){var i=n[e+" "];i=i||qr(function o(e,t){return e[0].length?e.map(function(e){return o(e,t)}):e.filter(t)}(Vi(e),function(e){return!("PSEUDO"===(e=e).type&&e.matches.length&&"contains"===e.matches[0].replace(Tr,"$1").toLowerCase())}));try{var r=[];return br.apply(r,t.querySelectorAll(i)),n(e,i),r}catch(k_){}}function N(e,t,n,i){var r,o,a,s,d,u,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(Zi(t),t=t||k,er)){if(11!==l&&(s=Fr.exec(e)))if(r=s[1]){if(9===l){if(!(u=t.getElementById(r)))return n;if(u.id===r)return n.push(u),n}else if(c&&(u=c.getElementById(r))&&rr(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return br.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return br.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&(!hr[e+" "]||fr[e+" "])&&(!tr||!tr.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(Ar.test(e)||Rr.test(e))){for((c=Ur.test(e)&&eo(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(Hr,zr):t.setAttribute("id",a=O)),o=(d=Vi(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+no(d[o]);u=d.join(",")}try{return br.apply(n,c.querySelectorAll(u)),n}catch(p){hr(e,!0)}finally{a===O&&t.removeAttribute("id")}!i&&hr[e+" "]&&(i=Vr(e,c,fr))}}return $i(e.replace(Tr,"$1"),t,n,i)}function Kr(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function $r(e){return e[O]=!0,e}function Jr(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(k_){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Yr(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function Xr(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 Zr(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Wr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Qr(a){return $r(function(o){return o=+o,$r(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function eo(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ji in h=N.support={},qi=N.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Mr.test(t||e&&e.nodeName||"HTML")},Zi=N.setDocument=function(e){var e=e?e.ownerDocument||e:sr;return e!=k&&9===e.nodeType&&e.documentElement&&(Qi=(k=e).documentElement,er=!qi(k),sr!=k&&(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",jr,!1):e.attachEvent&&e.attachEvent("onunload",jr)),h.scope=Jr(function(e){return Qi.appendChild(e).appendChild(k.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=Jr(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=Jr(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=!!k.getElementsByClassName,h.getById=Jr(function(e){return Qi.appendChild(e).id=O,!k.getElementsByName||!k.getElementsByName(O).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(Gr,Br);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&er)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(Gr,Br);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&er){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=h.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&er?t.getElementsByClassName(e):h.qsa&&er?t.querySelectorAll("."+e):void 0},nr=[],tr=[],(h.qsa=!!k.querySelectorAll)&&(Jr(function(e){var t;Qi.appendChild(e).innerHTML=p().createHTML("<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&tr.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||tr.push("\\["+r+"*(?:value|"+Er+")"),e.querySelectorAll("[id~="+O+"-]").length||tr.push("~="),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||tr.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||tr.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||tr.push(".#.+[+~]"),e.querySelectorAll("\\\f"),tr.push("[\\r\\n\\f]")}),Jr(function(e){e.innerHTML=p().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&tr.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&tr.push(":enabled",":disabled"),Qi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&tr.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),tr.push(",.*:")})),(h.matchesSelector=Dr.test(ir=Qi.matches||Qi.webkitMatchesSelector||Qi.mozMatchesSelector||Qi.oMatchesSelector||Qi.msMatchesSelector))&&Jr(function(e){h.disconnectedMatch=ir.call(e,"*"),ir.call(e,"[s!='']:x"),nr.push("!=",_r)}),tr=tr.length&&new RegExp(tr.join("|")),nr=nr.length&&new RegExp(nr.join("|")),e=!!Qi.compareDocumentPosition,rr=e||Qi.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},gr=e?function(e,t){var n;return e===t?(Xi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==k||e.ownerDocument==sr&&rr(sr,e)?-1:t==k||t.ownerDocument==sr&&rr(sr,t)?1:Yi?Sr(Yi,e)-Sr(Yi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return Xi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==k?-1:t==k?1:r?-1:o?1:Yi?Sr(Yi,e)-Sr(Yi,t):0;if(r===o)return Xr(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?Xr(a[i],s[i]):a[i]==sr?-1:s[i]==sr?1:0}),k},N.matches=function(e,t){return N(e,null,null,t)},N.matchesSelector=function(e,t){if(Zi(e),h.matchesSelector&&er&&!hr[t+" "]&&(!nr||!nr.test(t))&&(!tr||!tr.test(t)))try{var n=ir.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(k_){hr(t,!0)}return 0<N(t,k,null,[e]).length},N.contains=function(e,t){return(e.ownerDocument||e)!=k&&Zi(e),rr(e,t)},N.attr=function(e,t){(e.ownerDocument||e)!=k&&Zi(e);var n=w.attrHandle[t.toLowerCase()],n=n&&mr.call(w.attrHandle,t.toLowerCase())?n(e,t,!er):undefined;return n!==undefined?n:h.attributes||!er?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},N.escape=function(e){return(e+"").replace(Hr,zr)},N.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},N.uniqueSort=function(e){var t,n=[],i=0,r=0;if(Xi=!h.detectDuplicates,Yi=!h.sortStable&&e.slice(0),e.sort(gr),Xi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return Yi=null,e},Wi=N.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=Wi(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=Wi(t);return n},(w=N.selectors={cacheLength:50,createPseudo:$r,match:Nr,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(Gr,Br),e[3]=(e[3]||e[4]||e[5]||"").replace(Gr,Br),"~="===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]||N.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]&&N.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Nr.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&kr.test(n)&&(t=(t=Vi(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Gr,Br).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=cr[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&cr(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=N.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(Cr," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,d,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;d=u="only"===f&&!d&&"nextSibling"}return!0}if(d=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===dr&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(h=s=0,d.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[dr,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===dr&&i[1]:h))for(;(a=++s&&a&&a[u]||(h=s=0,d.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[dr,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||N.error("unsupported pseudo: "+e);return a[O]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?$r(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Sr(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:$r(function(e){var i=[],r=[],s=Ki(e.replace(Tr,"$1"));return s[O]?$r(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:$r(function(t){return function(e){return 0<N(t,e).length}}),contains:$r(function(t){return t=t.replace(Gr,Br),function(e){return-1<(e.textContent||Wi(e)).indexOf(t)}}),lang:$r(function(n){return Or.test(n||"")||N.error("unsupported lang: "+n),n=n.replace(Gr,Br).toLowerCase(),function(e){var t;do{if(t=er?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ar.location&&ar.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Qi},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:Zr(!1),disabled:Zr(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return Pr.test(e.nodeName)},input:function(e){return Lr.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:Qr(function(){return[0]}),last:Qr(function(e,t){return[t-1]}),eq:Qr(function(e,t,n){return[n<0?n+t:n]}),even:Qr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Qr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Qr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:Qr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[ji]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ji);for(ji in{submit:!0,reset:!0})w.pseudos[ji]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ji);function to(){}function no(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function io(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=ur++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var i,r,o=[dr,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[O]||(e[O]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===dr&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function ro(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function oo(e,t,n,i,r){for(var o,a=[],s=0,d=e.length,u=null!=t;s<d;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),u&&t.push(s));return a}function ao(h,f,g,m,v,e){return m&&!m[O]&&(m=ao(m)),v&&!v[O]&&(v=ao(v,e)),$r(function(e,t,n,i){var r,o,a,s=[],d=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)N(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:oo(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=oo(p,d),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[d[o]]=!(l[d[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?Sr(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=oo(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):br.apply(t,p)})}to.prototype=w.filters=w.pseudos,w.setFilters=new to,Vi=N.tokenize=function(e,t){var n,i,r,o,a,s,d,u=lr[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=w.preFilter;a;){for(o in n&&!(i=xr.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Rr.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Tr," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=Nr[o].exec(a))&&(!d[o]||(i=d[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?N.error(e):lr(e,s).slice(0)},Ki=N.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=pr[e+" "];if(!a){for(n=(t=t||Vi(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,d=io(function(e){return e===i},a,!0),u=io(function(e){return-1<Sr(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==Ji)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[io(ro(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[O]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return ao(1<s&&ro(c),1<s&&no(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Tr,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&no(e))}c.push(t)}return ro(c)}(t[n]))[O]?r:o).push(a);(a=pr(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,d=0,u="0",c=e&&[],l=[],p=Ji,h=e||b&&w.find.TAG("*",r),f=dr+=null==p?1:Math.random()||.1,g=h.length;for(r&&(Ji=t==k||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==k||(Zi(o),n=!er);s=m[a++];)if(s(o,t||k,n)){i.push(o);break}r&&(dr=f)}y&&((o=!s&&o)&&d--,e)&&c.push(o)}if(d+=u,y&&u!==d){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<d)for(;u--;)c[u]||l[u]||(l[u]=vr.call(i));l=oo(l)}br.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&N.uniqueSort(i)}return r&&(dr=f,Ji=p),c},y?$r(i):i))).selector=e}return a},$i=N.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&Vi(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&er&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(Gr,Br),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Nr.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((d=w.find[s])&&(i=d(a.matches[0].replace(Gr,Br),Ur.test(o[0].type)&&eo(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&no(o))break;return br.apply(n,i),n}}return(u||Ki(e,c))(i,t,!er,n,!t||Ur.test(e)&&eo(t.parentNode)||t),n},h.sortStable=O.split("").sort(gr).join("")===O,h.detectDuplicates=!!Xi,Zi(),h.sortDetached=Jr(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),Jr(function(e){return e.innerHTML=p().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||Yr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&Jr(function(e){return e.innerHTML=p().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||Yr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),Jr(function(e){return null==e.getAttribute("disabled")})||Yr(Er,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var so=ar.Sizzle;N.noConflict=function(){return ar.Sizzle===N&&(ar.Sizzle=so),N},or.exports?or.exports=N:ar.Sizzle=N;uo=l(n.exports),(co=_.extend(function(){return co.Sizzle.apply(this,arguments)},uo)).reset=function(){co.Sizzle=uo,co.matchesSelector=uo.matchesSelector,co.matches=uo.matches},co.intercept=function(e,t="Sizzle"){co[t]=_.wrap(co[t],e)},co.reset();var uo,co,lo=co;function M(e,t){var n,i=this;if(e&&e instanceof M)return e;if(!(i instanceof M))return new M(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof M&&(t=0<t.length?t[0]:null);try{n=lo(e,t)}catch(o){n=[]}}else n=[e];else n=[];return _.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function po(){this.ownerKey="_pendo_"+Tt(8)}_.extend(po.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}});var ho=new po,fo=1;function go(e){return _.isNumber(e.eventPhase)&&e.eventPhase===fo}function mo(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?At("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{vo(e,t,n,i)}):_.noop}function vo(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?At("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var yo=function(e){var t=Bi.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},bo={add(t,e){var n=ho.get(t),i=(n.handle||(n.handle=function(e){bo.dispatch(t,e)}),e.id=_.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||mo(t,e.type,n.handle,e.capture),i.push(e),()=>{M.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(ho.get(r,"captureEvents")||{})[o.type]||[],t=(ho.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=ho.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===go(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(yo(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!I(e.selector)||0<M(yo(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){T.error(i)}}}))},remove(e,t,n,i){var r=ho.get(e);if(r){if(_.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=_.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],vo(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],vo(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],vo(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(ho.remove(e,"captureEvents"),ho.remove(e,"bubbleEvents"),ho.remove(e,"handle"))}},trigger(e){var t=ho.get(e);if(!t.pendoStopped)if(e.bubbles){var n=yo(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Bi.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),go(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)bo.dispatch(o[i],e);(e=bo.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(bo.dispatch(n,e),(e=bo.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)bo.dispatch(o[i],e)}}else bo.dispatch(yo(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",ho.ownerKey]),e=Bi.getComposedPath(e);return e&&(t.composedPath=_.constant(e)),t},$:{on(e,n,i,r){return _.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){_.each(e,function(e){bo.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},wo=_.extend(Eo,{get:function(e,t){return Eo({method:"GET",url:e,headers:t})},post:Io,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Io(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?Ht(e):Ht(e)+"="+Ht(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==So()}});function So(){return window.XMLHttpRequest||ActiveXObject}function Eo(e){var t=m.defer(),n=new(So())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function Io(e,t,n){return Eo({method:"POST",url:e,data:t,headers:n})}var _o,Co=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},To=function(){return C.get("annotateUrl")||Oo()||C.get("sanitizeUrl")||C.get(Go)||C.get("xhrWhitelist")},xo=function(){return Oo()?{href:ko(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Ro=function(){return new Li(window.location.href)},Ao=function(){var e,t,n,i;return To()?(e=Ro(),Oo()&&(e.href=ko(e.href)),Co()?(t=L.electronResourcesPath(),n=L.electronUserDirectory(),i=L.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(L.electronUserHomeDirectory(),"").replace("file:///","")):Ho(e.href)):A.getters["location/href"]()},ko=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Oo=function(){return!0===C.get("ignoreHashRouting")},No=500;function Mo(){return _.isUndefined(_o)&&function e(){Uo(),_o=Ut(e,No)}(),()=>{Gt(_o),_o=undefined}}var Lo=function(e){var t;try{t=Ao()}catch(n){}return t},Po=[],Do=!1,Fo=null;function Uo(){var t=xo().href;Fo!=t&&(Fo=t,_.map(Po,function(e){e(t)}))}var Go="queryStringWhitelist";function Bo(e){var t=C.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function Ho(e){e=e||xo().href;var t=C.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=jo(e,null,n,!0)),o=i||{}),wo.urlFor(e,o,r)):e}catch(a){T.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else T.error("customer-provided `annotateUrl` must be of type: function");return e}function zo(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function jo(e,t,n,i){e=e||Lo(),t=t||zo(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=_.isArray(n)?qo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Wo,qo=function(e,t,n){return n&&_.contains(t,"*")?"":(e=Vo(e),e=n?_.omit(e,t):_.pick(e,t),Ko(e))},Vo=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Ft(t[1])),e},{})},Ko=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},L={watch:function(e){const n=[];T.info("Initializing Pendo URL Watcher");var i,t=C.get("location.pushState")&&et.supportsHistoryApi();return Do||(t&&(i=window.history,_.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=_.wrap(i[e],function(e){var t=e.apply(i,_.toArray(arguments).slice(1));return Ut(Uo,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(mo(window,"popstate",Uo))),et.supportsHashChange()&&n.push(mo(window,"hashchange",Uo)),!1!==t&&et.supportsHashChange()||n.push(Mo()),Do=!0),Po.push(e),()=>{_.each(n,function(e){e()}),Po.length=0,Do=!1}},get:Lo,externalizeURL:function(e,t,n){n=n||C.get(Go);return Bo(jo(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Mo,getWindowLocation:xo,clear:function(){Po=[]},isElectron:Co,electronUserDirectory:function(){return window.process.env.PWD||""},electronAppName:function(){return window.process.env.npm_package_name||""},electronUserHomeDirectory:function(){return window.process.env.HOME||""},electronResourcesPath:function(){return window.process.resourcesPath||""}};function $o(){var e=C.getLocalConfig("dataHost");return e||((e=C.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:at)}function Jo(){Wo=$o()}function Yo(){var e=C.get("assetHost");return e?-1===e.indexOf("://")?"https://"+e:e:Xo()}function Xo(){var e=C.get("contentHost")||st;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function Zo(e){var t=Yo(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(dt?dt+"/":"")+n}function Qo(){var e=C.get("allowPartnerAnalyticsForwarding",!1)&&C.get("adoptAnalyticsForwarding",!1);return C.get("trainingPartner",!1)||e}function ea(e,t,n){return n?e.acc=It(n):t&&"ACCOUNT-UNIQUE-ID"!==t&&(e.acc=It(t)),e}var ta=3,na=1,ia=9,ra=11,oa=4;function f(e){var t;if((t=e)&&t.nodeType===na)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function aa(e,t){var n;return!(!e||!_.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&_.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),_.any(n,function(e){return e&&"none"!==e}))}function sa(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function da(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function ua(e){return _.isNumber(e)?e:0}function ca(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!pa(e)?null:e}function la(e){return aa(f(e),We)&&isNaN(Le)}function pa(e){if(e)return(e=f(e))&&(_.contains(["relative","absolute","fixed"],e.position)||aa(e,We))}function ha(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=pa(t)?t:ca(t,n),i=t?fa(t):{top:0,left:0},e=fa(e),r=function(e){if(e){var e=f(e),t=function(e){if(/^matrix\(/.test(e))return e.split(/\(|,|\)/).slice(1,-1).map(e=>parseFloat(e))}(e.transform);if(t&&/^0px\s+0px/.test(e.transformOrigin))return function([e,t,n,i,r,o]){var a=e*i-t*n;return 0!=a?[i/a,-t/a,-n/a,e/a,(n*o-i*r)/a,(t*r-e*o)/a]:null}(t)}}(t),r=(r&&(i=ma(r,i),e=ma(r,e)),{top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height});return t?(t!==n.document.scrollingElement&&(r.top+=ua(t.scrollTop),r.left+=ua(t.scrollLeft)),r.top-=ua(t.clientTop),r.left-=ua(t.clientLeft)):(r.top+=sa(n),r.left+=da(n)),r.bottom=r.top+r.height,r.right=r.left+r.width,r}function fa(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}function ga([e,t,n,i,r,o],[a,s]){return[e*a+n*s+r,t*a+i*s+o]}function ma(e,t){var n=ga(e,[t.left,t.top]),e=ga(e,[t.right,t.bottom]),t={top:n[1],left:n[0],bottom:e[1],right:e[0]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t}var va=void 0===(t=C.get("pendoCore"))||t,ya=function(e,t,n){e=Wo+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function ba(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var wa=function(e){e+="v"+ct;e=ya("log.gif",E.apiKey,{msg:e,version:ct});return m.resolve(_a(e))["catch"](_.noop)};function Sa(e){try{e&&e.body&&_.isFunction(e.body.cancel)&&e.body.cancel()["catch"](_.noop)}catch(t){}return e}function Ea(e){try{var t=Wo+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+ct,visitorId:v()},i=Ca.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):wo.postJSON(t,n);return i.then(function(e){Sa(e)},function(e){T.debug("error writing error:"+e)})}catch(r){return T.info("Failed to write error to server using POST endpoint: "+r),wa("Failed to write error to server using POST endpoint: "+r)}}function Ia(e){try{var t=ya("metrics",E.apiKey,{v:ct});T.debug(`Sending ${JSON.stringify(e)} to ${t} using `+(Ca.supported()?"fetch":"xhr")),Ca.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then(Sa)["catch"](function(e){T.debug("Failed to write metrics payload to server: "+e)}):wo.postJSON(t,e)}catch(n){T.critical("Failed to write metrics payload to server: "+n)}}function _a(e){var t,n;return ka()?(t=m.defer(),mo(n=new Image,"load",t.resolve),mo(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function Ca(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t).then(Sa)}function Ta(e,t){return navigator.sendBeacon(e,t)}Ca.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var xa=!(Ta.supported=function(){return _.isFunction(navigator.sendBeacon)}),Ra=function(){var e=ka();return xa=!0,e&&R["transmit:locked"].trigger(),"Pendo Web SDK locked. No more events will be written."},Aa=function(){var e=!ka();return xa=!1,e&&R["transmit:unlocked"].trigger(),"Pendo Web SDK unlocked. Events will be written."},ka=function(){return!xa&&va},Oa=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Pa(e))}catch(n){return!1}},Na=function(e,t){try{var n;Oa(e,t)||(n=mt.call(Pa(e))+" "+t,La(e,n))}catch(i){}},Ma=function(e,t){try{var n,i;Oa(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Pa(e).replace(n," "),La(e,i))}catch(r){}},La=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},Pa=function(e){try{var t=e["classList"];if(t&&0<t.length){for(var n=[],i=0;i<t.length;i++)n.push(t[i]);return n.join(" ")}var r=e.className;return(_.isString(r)||!I(r)?r:e.getAttribute("class"))||""}catch(o){return""}},Da=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Fa={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Ua=function(e,t){t=function(e){if(_.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);Ga(e,t)},Ga=function(a,e){_.each(e,function(e,t){if(""!==(t=mt.call(t))){var n=Da(t),i=(!_.isNumber(e)||isNaN(e)||Fa[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=mt.call(e.substring(0,i));C.get("disableImportantStyleAttributes")?a.style.setProperty(t,r):a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=mt.call(e)}catch(o){T.info("failed to set style: "+t+" with value "+e)}}})},Ba=function(e=window){return tt()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},Ha=function(e){var t=Ba(),n=sa(),i=da();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function za(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function ja(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=f(n)))return;if("fixed"===t.position)return!isNaN(Le)||!Xa(n);n=n.parentNode}return}(e)?((n=fa(e)).fixed=!0,za(n)):za(ha(e,Va(t.document),t))}var Wa=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},qa=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return T.info("error interrogating body elements: "+n),wa("error picking best body:"+n),0}},Va=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(qa),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return wa("Error getting body element: "+n),e.body}};function Ka(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];1===r.nodeType&&r!==n&&i.push(r)}return i}return[]}function $a(e,t=document){if(lo.contains(t,e))return!0;for(;e&&e.parentNode||Bi.isElementShadowRoot(e);)e=Bi.getParent(e);return e===t}var Ja=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=Va(n),e===n||e===t?((n={left:t.pageXOffset||i.scrollLeft,top:t.pageYOffset||i.scrollTop,width:t.innerWidth,height:t.innerHeight}).right=n.left+n.width,n.bottom=n.top+n.height,n):((i=ja(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},Ya=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Xa(e){for(var t=e&&e.parentNode;t;){if(aa(f(t),We))return 1;t=t.parentNode}}var Za=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if($a(e))for(i=e;i;)if(Bi.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=f(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=f(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Xa(i))i=ca(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function Qa(e,t){e=f(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?es.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?es.BOTH:t.test(e.overflowY)?es.Y:t.test(e.overflowX)?es.X:t.test(e.overflow)?es.BOTH:es.NONE}var es={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ts(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&$a(e)}function ns(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 is(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function rs(e,t,n){const i=[];var r=is(document.documentElement);let o=is(Za(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=is(Za(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const os=['a[href]:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])',"iframe"].join(", ");function as(e,t,n){var i=Ja(t),t=Qa(t,n);if(t!==es.BOTH||Ya(e,i)){if(t===es.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===es.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function ss(e){if(e){if(ts(e))return 1;var t=Ja(e);if(0!==t.width&&0!==t.height){var n=f(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=f(i=i.parentNode)}return 1}}}}function ds(e,t){if(!ss(e))return!1;if(!ts(e)){for(var n=Ja(e),i=Za(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!as(n,i,t))return!1;i=Za(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=da(),e+=sa()),o<=0||e<=0)return!1}}return!0}function us(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=Ja(e),u=Za(e,s);if(!ss(e))return!1;for(;u;){if(t=Ja(u),(o=Qa(u,a))!==es.NONE&&(i=n=0,o!==es.Y&&o!==es.BOTH||(d.bottom>t.bottom&&(n+=d.bottom-t.bottom,d.top-=n,d.bottom-=n),d.top<t.top&&(n-=r=t.top-d.top,d.top+=r,d.bottom+=r)),o!==es.X&&o!==es.BOTH||(d.right>t.right&&(i+=d.right-t.right,d.left-=i,d.right-=i),d.left<t.left&&(i-=r=t.left-d.left,d.left+=r,d.right+=r))),!as(d,u,s))return!1;u=Za(u,s)}return!0}function cs(e,t){var n,i,r,e=Ja(e),o=Ja(t);e.fixed&&!o.fixed||(i=n=0,e.bottom>o.bottom&&(n+=e.bottom-o.bottom,e.top-=n,e.bottom-=n),e.top<o.top&&(n-=r=o.top-e.top,e.top+=r,e.bottom+=r),e.right>o.right&&(i+=e.right-o.right,e.left-=i,e.right-=i),e.left<o.left&&(i-=r=o.left-e.left,e.left+=r,e.right+=r),e=(o=_.isFunction(t.scrollBy))&&Oe(t.scrollBy),o?e?t.scrollBy(i,n):t.scrollTo(t.scrollX+i,t.scrollY+n):(t.scrollTop+=n,t.scrollLeft+=i))}function ls(e){for(var t=/(auto|scroll)/,n=Va(),i=Za(e,t);i&&i!==n;)cs(e,i),i=Za(i,t)}Ir={$:{findOrCreate(e){return 0<this.length?this:M(e)},find(e){var t=M();return t.context=this.context,this.each(function(){M(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(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(){Ua(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Na(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Ma(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){_.each(e,function(e){n=n&&Oa(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(Oa(t,e)?Ma:Na)(t,e)})})},css(e){return this.each(function(){Ua(this,e)}),this},appendTo(e){return M(e).append(this),this},append(e){var t=this;return M(e).each(function(){t.length&&t[0].appendChild(this),$a(this)&&_.each(lo("script",this),ns)}),t},prependTo(e){return M(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],M(e).each(function(){n?M(this).insertBefore(n):M(this).appendTo(t)})),this},getParent(){var e=M(this)[0];if(e&&e.parentNode)return M(e.parentNode)},insertBefore(e){e=M(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),$a(this[0]))&&_.each(lo("script",this[0]),ns)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return _.isObject(e)?(this.each(function(){_.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!lo.matchesSelector(n,e);)if((n=Ui(n))===document||t&&lo.matchesSelector(n,t))return M();return M(n)},eq(e){return M(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class ps{constructor(e=Va(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},et.MutationObserver){const n=new(At("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=setInterval(()=>{this.signal()},500);this._teardown=()=>{clearInterval(i)}}}signal(){_.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}e=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var hs="function"==typeof(or=Se.WeakRef)&&/native/.test(or)?or:e();function fs(e,t){var n,i;return e.tagName&&_.contains(["textarea","input"],e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ys(n.substring(0,i))):gs(e,t)}function gs(e,t=128){var n,i="",r=e.nodeType;if(r===ta||r===oa)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===na||r===ia||r===ra)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=gs(e.childNodes[a],t-i.length))).length)return i+ys(o.substring(0,t-i.length));i+=o}}return i}function ms(e){return 55296<=e&&e<=56319}function vs(e){return 56320<=e&&e<=57343}function ys(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(ms(t)||vs(t)){if(1===e.length)return e.slice(0,-1);if(ms(t))return e.slice(0,-1);if(vs(t))if(!ms(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class bs{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let n=this.elRef&&this.elRef.deref&&this.elRef.deref();var e=$a(n);if(!n||!e){if(n&&!e&&this.teardown(n),!(n=M(this.cssSelector)[0]))return undefined;_.each(this.events,({type:e,capture:t})=>{n.addEventListener(e,e=>this.onEvent(e),t)}),this.elRef=new hs(n)}return n}getText(e=1024){return fs(this.get(),e)}addEventListener(t,e,n=!1){var i=this.get();_.find(this.events,e=>e.type===t&&e.capture===n)||(this.events.push({type:t,capture:n}),i&&i.addEventListener(t,e=>this.onEvent(e),n)),this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(n=this.get()){n&&_.each(this.events,({type:e,capture:t})=>n.removeEventListener(e,this.onEvent,t))}}function ws(e){return e.origin!==undefined?e.origin:e.protocol+"//"+e.host}function Ss(e){var t=ws(e.location);if("null"===t&&e.parent&&e.parent!=e)try{var n=ws(e.parent.location);if(n&&"null"!==n)return n}catch(i){}return t}_.extend(M,{data:ho,event:bo,removeNode:Wa,getClass:Pa,hasClass:Oa,addClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Na(e,t)})):Na(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Ma(e,t)})):Ma(e,t)},getBody:Va,getComputedStyle:f,getClientRect:Ja,intersectRect:Ya,getScrollParent:Za,isElementVisible:ds,Observer:ps,Element:bs,scrollIntoView:ls,getRootNode:is}),_.extend(M.prototype,bo.$,Ir.$);const Es=[/^https:\/\/((adopt|oem)\.)?((us1)\.)?(app|via|adopt|cdn|oem|novus-api|novus|portal)(\.(au|eu|gov|hsbc|jpn|tv))?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)\.appspot\.com$/,/^https:\/\/(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)-static\.storage\.googleapis\.com$/];function Is(t){if(!t)return!1;if(t===ws(window.location))return!0;if(t===$o())return!0;if(t===Yo())return!0;if(t===Xo())return!0;var e=C.get("adoptHost");if(e&&t==="https://"+e)return!0;var n,i,e=C.get("allowedOriginServers",[]),r=C.get("allowedOriginServerHashes",[]);return!!Z(t,e,r)||!!Z(Q(t),e,r)||(n=e,i=r,e=ee(Q(e=t)),!!_.any(e,function(e){e="."+e;return _.contains(n,e)||_.contains(i,Y(e))}))||_.any(Es,function(e){return e.test(t)})}function _s(e){if(_.isString(e)){try{var t=new Li(e);const o=_.last(t.pathname.split("/")),a=o.split(".");var n,i={filename:_.first(a),extension:a.slice(1).join("."),query:{}};return t.search.length&&(i.query=Vo(t.search.substring(1))),t.hash.length&&0<=(r=t.hash.indexOf("?"))&&(n=t.hash.substring(r+1),i.fragmentQuery=Vo(n)),i}catch(s){}var r=zo(e).substring(1),t=r&&r.length?Vo(r):{},o=_.last(_.first(e.split(/[?#]/)).split("/")),a=o.split(".");return{filename:_.first(a),extension:a.slice(1).join("."),query:t}}}function Cs(e,t){var n;C.get("guideValidation")&&et.sri&&(n=_s(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}var Ts,xs=function(e){var t=!((t=C.get("allowedOriginServers",[]))&&0<t.length||(t=C.get("allowedOriginServerHashes",[]))&&0<t.length),n=Qo();return!(!t&&!n)||Is(e)},Rs=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!xs((c=e.url,new Li(c,window.location.href).origin)))throw new Error;e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0],d=C.get("guideContentLoader");if(e.type===r){var u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Cs(u,e.url),a=u}else{if(Rt())return(i=document.createElement("script")).addEventListener("load",function(){t(),Wa(i)}),i.type=o,i.src=p(E).createScriptURL(e.url),Cs(i,e.url),document.body.appendChild(i),i;if(_.isFunction(d))return d(e),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=p(E).createScriptURL(e.url),Cs(i,e.url),a=i,t=_.wrap(t,function(e,t){if(M.removeNode(i),t)return n&&e(t),{};e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),As(a,e.url,t),a}catch(l){return{}}var c},As=function(e,t,n){var i=!1;I(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||T.critical("Failed to load "+t+" within 10 seconds")},1e4))},ks=function(e){var t=JSON.parse(e.data),n=e.origin;T.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),qs(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Os=function(e){Ms(Fs)(Ns(e))},Ns=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation&&(t.type&&"string"==typeof t.type))return{data:t,origin:n,source:i}}catch(r){}};function Ms(t){return function(e){if(e&&Is(e.origin))return t.apply(this,arguments)}}var Ls={disconnect(e){},module:function(e){Ws(e.moduleURL)},debug:function(e){$s(ks)}},Ps=function(e,t){Ls[e]=t},Ds=function(e){delete Ls[e]},Fs=function(e){var t;e&&(t=e.data)&&I(Ls[t.type])&&Ls[t.type](t,e)},Us={},Gs=function(e){if(Us[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Bs=function(e){return I(Us[e])},Hs=function(e){if(Us)for(var t in Us)if(0<=t.indexOf(e))return t;return null},zs=[],js=function(){var e;zs.length<1||(e=zs.shift(),Bs(e))||Rs(e,function(){Gs(e),js()})};var Ws=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};_.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1});try{var n=new Li(e);return Is(n.origin)&&t[n.pathname]}catch(i){T.debug("Invalid module URL: "+e)}}(e)||(zs.push(e),1<zs.length)||js()},qs=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ts||Ks(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";T.info("Failed to postMessage: "+t)}return r},Vs=function(){return window!=window.top},Ks=function(){return new RegExp("^"+J(Wo).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},$s=function(e){var t;return I(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=Ms(e),window.addEventListener("message",t,!1)),function(){I(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Js=_.memoize(function(){return C.get("restrictP1Access")}),Ys=[],Xs=[],Zs=[],Qs=12e4,ed=16,td=1900,nd=65536,id=function(e){return!(!e||""===e)},rd=function(){return L.get()},od={flush:_.noop,flushBy:_.noop,flushEvents:ud,flushTrackEvents:ud,flushAgenticEvents:ud,flushSilos:ud,flushTrackEventSilos:ud,flushAgenticEventSilos:ud,flushBeacons:ud,flushNow:ud,flushLater:cd,flushEvery:ld,flushStop:pd,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Ra,unlock:function(){if(!ka())return hd(),Aa()}},ad=[];function sd(e){ad.push(e)}function dd(e){e=ad.indexOf(e);0<=e&&ad.splice(e,1)}function ud(t){try{_.each(ad,function(e){e.flush&&e.flush(t)})}catch(e){T.critical("unhandled error while flushing event cache",{error:e})}}function cd(e){return t=ud,n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){Gt(i),delete t[n]});var t,n,i}function ld(e){var t;if(e=parseInt(e,10)||0,_.isObject(ld.intervals)||(ld.intervals={}),!ld.intervals[e])return t=window.setInterval(ud,e),ld.intervals[e]=function(){clearInterval(t),delete ld.intervals[e]}}function pd(){var e=_.values(ld.intervals).concat([ud]);_.map(e,function(e){_.isFunction(e)&&e()})}function hd(){_.each(ad,function(e){e.clear&&e.clear()}),pd()}function fd(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,e=>e.codePointAt(0))))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function gd(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(T.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(T.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(T.debug(t+"The jwt is invalid."),!1)):(T.debug(t+"Missing jwt and signingKeyName."),!1)}md=null;var md,vd={set:function(e){md=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==md?md:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!C.get("enableSignedMetadata")&&(n=gd(e,t),C.get("requireSignedMetadata")&&!n?(T.debug("Pendo will not "+t+"."),!1):n?fd(e.jwt):void T.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class yd{constructor(e){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.firstFailureTime=null,this.sendFn=e}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.firstFailureTime=null,this.stopped=!0,Gt(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),null==this.firstFailureTime&&(this.firstFailureTime=(new Date).getTime()),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures["delete"](e),this.firstFailureTime=null;e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);e=this.incrementFailure(e);!this.stopped&&t&&(72e5<=(t=(new Date).getTime())-(this.firstFailureTime||t)?(this.onTimeout&&this.onTimeout(),this.firstFailureTime=null,this.retryLater(36e5)):this.retryLater(Math.min(1e3*Math.pow(2,e-1),3e5)))}retryNow(){Gt(this.timer),delete this.timer,this.next()}retryLater(e){this.timer=Ut(()=>{this.retryNow()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed()&&!this.allowDrainWhileFailed)return Dn.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return Dn.all(n)}}const bd="unsentEvents",wd=6048e5;function Sd(e){var n,t,i=Tn(bd);if(i){try{n=e,t=JSON.parse(i),_.each(t,(e,t)=>{n[t]=(n[t]||[]).concat(e)})}catch(r){}_n(Cn(bd))}}function Ed(e){const n=[];_.each(e,(e,t)=>{_.each(e,e=>{n.push({key:t,request:e})})});e=_.sortBy(n,e=>e.request.ts).slice(Math.ceil(n.length/2));const t={};return _.each(e,e=>{t[e.key]=t[e.key]||[],t[e.key].push(e.request)}),t}class Id{constructor(){this.events={}}send(t,n){var i=this.events[t];if(i){let e=i.shift();for(;e;)n.push(e),e=i.shift();delete this.events[t]}}push(e,t){var n=this.events[e]||[];n.push(t),this.events[e]=n}read(e){e.registry.addLocal(bd,{localStorageOnly:!0,duration:wd});try{this.events=JSON.parse(e.read(bd)||"{}")}catch(t){this.events={}}Sd(this.events),e.clear(bd)}write(e){let t=this.events;for(;0<_.size(t);){if(e.write(bd,JSON.stringify(t),wd))return;t=Ed(t)}e.clear(bd)}}var _d=new Id;const Cd=e=>_.reduce(e,(e,t)=>e+_.get(t,"detail.increment",1),0),Td="pendo-guide-loop-timeout",xd={ptm:"pendo-ptm-gif-failure",guide:"pendo-guide-gif-failure",poll:"pendo-poll-gif-failure",agentic:"pendo-agentic-gif-failure"},Rd={name:"pendo-guide-loop",debuggingOnly:!0},Ad={name:"pendo-event-captured",debuggingOnly:!0},kd="pendo-initialize",Od="pendo-teardown",Nd={};Nd[Td]={name:Td,type:"counter",instrument:Cd},_.each(xd,e=>{Nd[e]={name:e,type:"counter",instrument:Cd}}),Nd[Rd.name]=Rd,Nd[Ad.name]=Ad,Nd[kd]={name:kd},Nd[Od]={name:Od};var Md="debug-enabled";function Ld(){try{var e=x.read(Md)||JSON.parse(En(Md));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function Pd(e=!0){let t;return t=A&&A.getters&&A.getters["debugger/debuggingEnabled"]?A.getters["debugger/debuggingEnabled"]():!0===Ld().enabled,e?t:t?"Yes":"No"}class Dd{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._sending=!1,this._measuringPerformance=!1,this._debugging=!1,this._setDebuggingBound=_.bind(this._setDebugging,this),this._sendBound=_.bind(this.send,this),this._totals={},this.marks=new Set,this.measures=new Set}initialize(){if(!C.get("performanceMetricsEnabled"))return _.noop;this._measuringPerformance=!0,this._markPerformance(kd),this._setDebugging(),R.debuggerLaunched.on(this._setDebuggingBound),R.appUnloaded.on(this._sendBound);var e=100*Math.random()<C.get("performanceMetricsSampleRate");return this._setSending(e),this.interval=setInterval(()=>{this._collect()},6e5),()=>{this.teardown()}}teardown(){this._markPerformance(Od),this.send(),this._measuringPerformance=!1,this._setDebugging(),R.debuggerLaunched.off(this._setDebuggingBound),R.appUnloaded.off(this._sendBound),this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||this._markPerformance(e+"-start",{detail:n})}stopTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||(this._markPerformance(e+"-stop",{detail:n}),this._measurePerformance(e,{detail:n}))}count(e,t=1){this._markPerformance(e,{detail:1<t?{type:"counter",increment:t}:null})}send(){try{this._collect();var e=_.map(this._totals,(e,t)=>({name:t,type:Nd[t].type,value:e,timestamp:Date.now()}));this._totals={},_.size(e)&&this._sending&&Ia(e)}catch(t){T.debug("Failed to send performance metrics: "+t)}}_collect(){if(this._isPerformanceApiAvailable)try{this._sending&&_.each(Nd,({name:e,instrument:t})=>{t&&0<(t=t(performance.getEntriesByName(e)))&&(this._totals[e]=(this._totals[e]||0)+t)})}finally{this._clearMarksAndMeasures()}}_checkPerformanceApi(){return Ne("performance.mark")&&Ne("performance.measure")&&Ne("performance.getEntries")&&Ne("performance.getEntriesByName")&&Ne("performance.clearMarks")&&Ne("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_setDebugging(){this._debugging=Pd()}_setSending(e){this._sending=e}_markPerformance(e,t){this._shouldMeasurePerformance()&&(performance.mark(e,t),this.marks.add(e))}_measurePerformance(e,t){var n,i;this._shouldMeasurePerformance()&&(n=e+"-start",i=e+"-stop",performance.getEntriesByName(n).length)&&performance.getEntriesByName(i).length&&(performance.measure(e,n,i,t),this.measures.add(e))}_clearMarksAndMeasures(){this.marks.forEach(e=>{performance.clearMarks(e)}),this.marks.clear(),this.measures.forEach(e=>{performance.clearMeasures(e)}),this.measures.clear()}}const Fd=new Dd;var Ud="_PENDO_UNNAMED_";function Gd(e,t,n,i,r,o){var a,s;a=C.get("dropAnonymous"),s=fi(v()),!va||a&&s||(a=t,s=n,t=i,n=r,s={type:r=e,browser_time:S(),visitor_id:v({generate:!0}),account_id:Ai(),url:L.externalizeURL(s),props:a||{},eventProperties:n},s=Kn.addTracerIds(s),"track"===r&&(s.track_event_name=t||Ud),a=s,R.eventCaptured.trigger(a,o).cancel)||id(a.url)&&("track"===e?Qd:"agentic"===i?eu:Zd).push(a)}function Bd(){var r=_.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let Hd=0;function zd(e,t){e.sequence=Hd++,t(e)}function jd(e){return n=function(e,t){return e.push(t),e},i=e,function(e,t){t(i=n(i,e))};var n,i}function Wd(e,t){return Qo()?qd("account_id")(e,t):t(e)}function qd(s){return function(e,t){if(!e.length)return t(e);for(var n=_.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==_.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function Vd(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Kd(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function $d(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(Kd(n=Vd(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Kd(i+n,o+1,t.compressionRatio)+r>t.upper)return o;i+=n}if(!(0<o))for(o=i=0;o<e.length;++o){if(Kd(i+(n=Vd(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Jd(){var e=vd.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Yd,Xd,Zd,Qd,eu,tu;function nu(e,t){return 2e3<e.length||!_.isEmpty(t)||!!C.get("sendEventsWithPostOnly")}function iu(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=nd)||1===e.length?t(e):(n=e.length/2,iu(e.slice(0,n),t),void iu(e.slice(n),t))}function ru(e,t){ka()&&t(e)}function ou(e,t){!_.isNumber(e.browser_time)||isNaN(e.browser_time)?T.critical(new Error("Event missing browser_time")):t(e)}function au(e,t){R.eventCaptured.trigger(e).cancel||t(e)}function su(){return function(e,t){1===e.length&&e.JZB.length>nd?(T.debug("Couldn't write event"),wa("Single item is: "+e.JZB.length+". Dropping."),Ea(e.JZB)):t(e)}}function du(e,t){return ya(t.beacon+".gif",e,_.extend({v:ct,ct:S(),jzb:t.JZB},t.params,t.auth))}function uu(e,t){return ya(t.beacon+".gif",e,_.extend({v:ct,ct:S(),s:t.JZB.length},t.params))}function cu(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length,e.ts=e[0].browser_time||S();var n=vd.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function lu(e,t){var n,i;Qo()&&(i=_.first(e),n=_.get(i,"account_id"),i=_.get(i,"oem_account_id"),ea(e.params||(e.params={}),n,i)),t(e)}function pu(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function hu(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function fu(e){return Sa(e),e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function gu(e,t){return Ca(du(e,t)).then(fu)}function mu(e,t){return fetch(uu(e,t),{method:"POST",keepalive:!0,body:hu(t),headers:{"Content-Type":"application/json"}}).then(fu)}function vu(e,t){var n=hu(t);return Ta(uu(e,t),n)?m.resolve():m.reject()}function yu(n){return function(e,t){return t.JZB?t.eventLength<=td&&!C.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&Ca.supported()?gu(e,t):t.auth?wo({method:"GET",url:du(e,t)}):_a(du(e,t)):n.allowPost&&t.eventLength<=nd?Ca.supported()?mu(e,t):Ta.supported()?vu(e,t):wo({method:"POST",url:uu(e,e=t),data:hu(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function bu(n){return function(e,t){if(t.JZB){if(t.eventLength<=td&&!C.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Ca.supported())return gu(e,t);if(et.msie<=11)return wo({method:"GET",url:du(e,t),sync:!0})}if(t.eventLength<=nd&&n.allowPost){if(Ca.supported())return mu(e,t);if(Ta.supported())return vu(e,t);if(et.msie<=11)return wo({method:"POST",url:uu(e,e=t),data:hu(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function wu(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Su(e){return Bd(ru,Wd,iu,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:nd}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],T.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(T.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),iu,su(),cu(e),lu,pu,wu);var t}class Eu{constructor(e){this.queues=e}isEmpty(){return _.all(this.queues,e=>e.isEmpty())}stop(){_.each(this.queues,e=>e.stop())}push(){const t=_.toArray(arguments);_.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=_.toArray(arguments);return m.all(_.map(this.queues,e=>e.drain.apply(e,t)))}}function Iu(a,s,d){s=s||yu(a),d=d||bu(a);e=a;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{const o=new yd(function(e,t,n){return S()-e.ts>wd?m.resolve():(n&&(e.params=_.extend({},e.params,{rt:n})),a.localStorageUnload&&t?(0===r&&_d.push(a.beacon,e),m.resolve()):t&&o.failed()?m.reject():(t?d:s)(i,e))});return o.onTimeout=function(){Fd.count(xd[a.beacon])},o.allowDrainWhileFailed=!0,o.retryPending=!0,o}),e=new Eu(e);return _d.send(a.beacon,e),e}function _u(e,t){var n=C.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||!dn(e.type)||t(e)}class Cu{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Iu(e)}pause({timeout:e=1e4,silent:t=!1,sendOnUnload:n=!1}={}){var i=_.uniqueId();const r=this["locks"];r[i]={sendOnUnload:n};var n=()=>{r[i]&&(t||R.trigger("ptm:unpaused"),Gt(o),delete r[i],this.flush())},o=Ut(n,e);return t||R.trigger("ptm:paused"),n}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if(0!==n.length||0!==i.length||!this.sendQueue.isEmpty()){const r=e||t;if(!_.some(this.locks,e=>!(r&&e.sendOnUnload))){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const o=[];_.each(n,function(e){this.processSilos(e,function(e){o.push(e)})},this),e||t?this.sendQueue.drain(o,e):this.sendQueue.push(...o)}}}}function Tu(e){var i,r,t=Su(e),n=Bd(ou,(r=e.beacon,function(e,t){var n=C.get("excludeNonGuideAnalytics")||an();"ptm"===r&&n||t(e)}),_u,zd,jd(e.cache),(i={overhead:Jd,lower:C.get("sendEventsWithPostOnly")?nd:td,upper:nd,compressionRatio:[2.5,3.75,5]},function(e,t){for(var n=$d(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=$d(e,i)}));return new Cu(_.extend({processSilos:t,packageSilos:n},e))}var xu=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||T.critical(e)}}},Ru=xu(function(e){var t,n,i;if((e=e||L.get())&&e!==Ru.lastUrl)return Ru.lastUrl=e,t=-1,Js()||(n=e,Vs()&&(i=Ks(),qs(i,{type:"load",url:n||location.toString()},"*"))),T.debug("sending load event for url "+e),n={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Vs()&&(n.is_frame=!0),"*"!==(t=un())&&(n.allowed_storage_keys=_.keys(t)),Gd("load",n,e),cd(),R.urlChanged.trigger(),!0});function Au(){return E.normalizedUrl||function(e){try{var t=new Li(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return T.error("Invalid URL provided to normalize"),e}}(L.externalizeURL())}function ku(t,e,n={}){if(!I(t))return!0;var i=e||Au(),{logger:r,context:o,id:a}=n;if(Array.isArray(t)){if(0===t.length)return!0;for(let e=0;e<t.length;e++){var s=t[e];if(I(s))try{if(new RegExp(s).test(i))return!0}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o} (rule ${e}):`,a,d)}}}else if("string"==typeof t)try{return new RegExp(t).test(i)}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o}:`,a,d)}return!1}function Ou(e,t){return ku(e,t,{logger:T,context:"guide",id:"unknown"})}Ru.reset=function(){Ru.lastUrl=null};var Nu=[],Mu=[],Lu={};const Pu={ALL:"*",DEFAULT:"default"};function y(e){e=function(e={}){let t=e.channel;return e.hasOwnProperty("channel")?null==t&&(t=Pu.DEFAULT):t=Pu.ALL,t===Pu.ALL?()=>!0:t===Pu.DEFAULT?e=>null==e.channel:e=>e.channel==t}(e);return _.filter(Nu,e)}function Du(e){return Fu(y(e))}function Fu(e){return _.filter(e,function(e){return!e.isFrameProxy})}function Uu(e){_.isArray(e)?(Nu=e,R.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):T.info("bad guide array input to `setActiveGuides`")}function Gu(e={}){return _.any(y(e),function(e){return e.isShown()})}var Bu=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=y(),(t=_.difference(e,n)).length<e.length&&(Uu(t),A.dispatch("frames/changeGuideList",t)))}}}();function Hu(t,n){return _.find(y(),function(e){return _.get(e,t)===n})||null}function b(e){return Hu("id",e)}function zu(e){return Hu("name",e)}function ju(e,t){return e&&e.id?(e=b(e.id)).findStepById(t):null}var Wu="_pendo-guide-tt_",qu="_pendo-guide-mobile-tt_",Vu=_.partial(_.get,_,"attributes.resourceCenter"),Ku=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},$u=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Ju=function(e){return!!_.get(e,"attributes.form")},Yu=function(e){var t="tooltip";return _.get(e,"type")===t||_.get(e,"attributes.calculatedType")===t||_.get(e,"attributes.buildingBlockLayoutType",_.get(e,"buildingBlockLayoutType"))===t};function Xu(){return"undefined"!=typeof selmo&&!!selmo.isPreviewing}function Zu(){return!!(Xu()&&Ba().width<=320)||et.isMobileUserAgent()}function Qu(e=document){var t=Qu.attachPoint;if(null==t){var n=C.get("guides.attachPoint");if(_.isString(n)){try{t=lo(n)[0]}catch(i){T.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();Qu.attachPoint=t}return t||Va(e)}var ec=function(e){var t=e.getGuide();if(t){t.placeBadge();t=Lu[e.guideId];if(t){t=t.element();if($a(t)&&t.id==="_pendo-badge_"+e.id)return t}}},tc=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!$u(n),!e.overrideElement&&n&&(e.overrideElement=ec(e)),e.targetElement=nc(e,t),e.overrideElement||e.targetElement):(T.info("Can't get element for null step"),null)},nc=function(e,t){e=e.elementPathRule||null,e=e?lo(e,t):[Va(t)];return 0===e.length?null:_.first(e)};function ic(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function rc(e,t,n){var i,r,o,e=ja(e),t=ja(t),a=(e=e,a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),o=Math.max(e.top+e.height,a.top+a.height),e=Math.max(e.left+e.width,a.left+a.width),{height:Math.abs(o-i),width:Math.abs(e-r),top:i,left:r});!1!==Ha(a)||t.fixed||(o=function(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};r.y="top"===n?e.top:e.top+e.height-t.height;r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),_.contains([es.X,es.BOTH],i)&&(r.x=0);_.contains([es.Y,es.BOTH],i)&&(r.y=0);return r}(a,Ba(),n,Qa(Va(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}var oc=["BUTTON","A","IMG"],ac=["advanceGuide","previousStep","dismissGuide","openLink","showGuide","launchGuide","guideSnoozed","goToStep","submitPoll","submitPollAndGoToStep","confirmation"];function sc(e){return _.isObject(e)&&_.isString(e.action)&&_.contains(ac,e.action)}function dc(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||is(o=Qu())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function uc(){return A.getters["frames/isLeader"]()}function cc(e){return A.dispatch("frames/updateFrameVisibility",{visibility:e})}const lc={validateGuide:1,validateLauncher:1,validateGlobalScript:1},pc={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1,onEventCaptured:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},hc={ready:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},fc=["ready","onClickCaptured","onEventCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","segmentFlagsUpdated","segmentFlagsReady","segmentFlagsError","validateGuide","validateLauncher","validateGlobalScript"];function gc(i){const e=_.reduce(fc,function(e,r){if(pc[r]){const t=function(e){return vc[r].apply(vc[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(hc[r]){const n=function(t){{var n=r;t=t.data[0];let e;try{e=new CustomEvent("pendo_"+n,{detail:t})}catch(i){if(!document.createEvent)return;(e=document.createEvent("Event")).initEvent("pendo_"+n,!0,!0),e.detail=t}document.dispatchEvent(e)}};i[r].on(n),e.push(()=>i[r].off(n))}return e},[]);return()=>_.each(e,e=>e())}mc=Zn.call({}),_.each(fc,function(n){mc[n]=function(e){var t;return _.isFunction(e)?mc.on(n,e):(t=lc[n]?"triggerAsync":"trigger",mc[t].apply(mc,[n].concat(_.toArray(arguments))))}});var mc,vc=mc;var yc={post:function(e,t,n,i){return n.ajax.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){n.guidesPayload(e.data),i()})},load(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint(){return"guide.json"},usesXhr(){return!0}};function bc(e){return e.replace(/^https?:\/\//,"")}function wc(){return Qo()?undefined:C.getLocalConfig("contentHost")||C.getHostedConfig("contentHost")}function Sc(e){var n,t,i,r;return(n=wc())&&e?(n=/:\/\//.test(t=n)||/^\//.test(t)?t:"https://"+t,t=/(^|\.)app\./,i=bc(at),t=t.test(i)?i.replace(t,"$1cdn."):bc(st),i=bc(st),r=t.replace(/(^|\.)cdn\./,"$1static."),r=[ot&&J(ot)+"-\\d+\\.storage\\.googleapis\\.com",rt&&J(rt)+"\\.storage\\.googleapis\\.com",t&&"content-\\d+\\."+J(r),t&&J(t),i&&i!==t&&J(i)],_.reduce(r,function(e,t){return t?e.replace(new RegExp("(https:)?\\/\\/"+t,"g"),n):e},e)):e}function Ec(e){return wc()?JSON.parse(Sc(JSON.stringify(e))):e}var Ic=function(){var u={},c=_.compose(function(e){var t=function(){var e=J(C.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&T.debug("Failed to verify URL: "+e+" vs "+t),e},Sc);const d=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
5
5
  var guide = pendo.findGuideById('<%= guide.id %>');
6
6
  var step = guide && guide.findStepById('<%= step.id %>');
7
7
  <% } %>`,`var guide = pendo.findGuideById('${t}');
@@ -201,9 +201,9 @@ Current CSP: "${i}".`}catch(s){return"Content Security Policy: Error formatting
201
201
  .floating-modal-drag-handle.is-dragging { cursor: grabbing; }
202
202
  .floating-modal-drag-handle.is-collapsed { top: 0px; }
203
203
  .frame-floating-modal { width: 100%; height: 100%; background: white; border: none; display: block; }
204
- `},document.head))},getRecordIdFromUrl=(e,t=()=>{})=>{var e=window.location.href.match(e),e=null!=(e=null==e?void 0:e[1])?e:null;return t("[predict] recordId found: "+e),e},escapeRegexKeyword=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),buildRecordRegex=e=>new RegExp(`(?:^|[/?&=.#])${escapeRegexKeyword(e)}[/.=:_-]([a-zA-Z0-9-]+)`,"i"),resolveRecordId=(e,t=()=>{})=>{var n,i,{recordRegexPattern:e,recordRegexName:r}=e;if(e)try{var o=null!=(i=null==(n=window.location.href.match(new RegExp(e)))?void 0:n[1])?i:null;if(o)return t("[predict] recordId found via recordRegexPattern: "+o),o}catch(a){t("[predict] invalid recordRegexPattern, skipping: "+a)}return r?({pathname:e,search:n,hash:i}=window.location,(n=null!=(e=null==(o=(""+e+n+i).match(buildRecordRegex(r)))?void 0:o[1])?e:null)?(t("[predict] recordId found via recordRegexName: "+n),n):(i=new RegExp(`/${r}/([a-zA-Z0-9]+)(?:/|$)`),getRecordIdFromUrl(i,t))):null},safeStringify=(e,t)=>{try{return JSON.stringify(e)}catch(n){return null!=t?t:""}},safeParse=(e,t,n=()=>{})=>{try{return JSON.parse(e)}catch(i){return n("[predict] JSON parse error: "+i),t}},getAvailableParams=e=>e.widgetId?{widgetId:e.widgetId,pipeVersion:e.pipeVersion,forceAccountId:e.forceAccountId}:e,buildQueryParams=e=>{var t=new URLSearchParams,e=getAvailableParams(e),n=Object.entries(e);t.set("pluginVersion",pluginVersion);for(let e=0;e<n.length;e++){var[i,r]=n[e];r!==undefined&&null!==r&&t.set(i,("object"==typeof r?safeStringify:String)(r))}return t.toString()},setupDragAndDrop=(n,r,i)=>{let o=!1,a=!1,s=!1,d=0,u=0,c=0,l=0,p=null;const h=r.querySelector("iframe"),e=e=>{var t;0===e.button&&(e.preventDefault(),o=!0,a=!1,n.classList.add("is-dragging"),r.classList.add("is-dragging"),h&&(h.style.pointerEvents="none"),t=r.getBoundingClientRect(),c=t.left,l=t.top,r.style.left=c+"px",r.style.top=l+"px",r.style.right="auto",r.style.bottom="auto",d=e.clientX,u=e.clientY,document.addEventListener("mousemove",f),document.addEventListener("mouseup",g))},f=e=>{if(o){const n=e.clientX-d,i=e.clientY-u;(Math.abs(n)>DRAG_THRESHOLD||Math.abs(i)>DRAG_THRESHOLD)&&(a=!0),p&&cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e=r.getBoundingClientRect(),t=Math.max(0,Math.min(c+n,window.innerWidth-e.width)),e=Math.max(0,Math.min(l+i,window.innerHeight-e.height));r.style.left=t+"px",r.style.top=e+"px"})}},g=e=>{var t;o&&(o=!1,n.classList.remove("is-dragging"),r.classList.remove("is-dragging"),h&&(h.style.pointerEvents=""),p&&cancelAnimationFrame(p),p=null,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g),!a)&&s&&h&&null!=(t=null===h||void 0===h?void 0:h.contentWindow)&&t.postMessage({type:"TRIGGER_EXPAND"},i)};return n.setCollapsedState=e=>{s=e,n.classList.toggle("is-collapsed",e)},n.addEventListener("mousedown",e),n.cleanup=()=>{n.removeEventListener("mousedown",e),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g),p&&cancelAnimationFrame(p)},n},createExplanationIframe=({analysisId:e,recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r=""})=>{var o="frameExplanation-"+e,a=(null!=(a=$(o))&&a.remove(),i+`/external/analysis/${e}/prediction/drilldown/`+t),i=buildQueryParams(n);createElement("iframe",{id:o,className:"frame-explanation",title:"Explanation",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,src:buildFrameSrc(a+"?"+i,r)},document.body)},applyInitialPosition=(e,t=DEFAULT_INITIAL_POSITION)=>{var n={TOP_LEFT:{top:FLOATING_MODAL_OFFSET,left:FLOATING_MODAL_OFFSET,bottom:"auto",right:"auto"},TOP_RIGHT:{top:FLOATING_MODAL_OFFSET,right:FLOATING_MODAL_OFFSET,bottom:"auto",left:"auto"},BOTTOM_LEFT:{bottom:FLOATING_MODAL_OFFSET,left:FLOATING_MODAL_OFFSET,top:"auto",right:"auto"},BOTTOM_RIGHT:{bottom:FLOATING_MODAL_OFFSET,right:FLOATING_MODAL_OFFSET,top:"auto",left:"auto"}};Object.assign(e.style,null!=(e=n[t])?e:n[DEFAULT_INITIAL_POSITION])},createFloatingModal=({recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r=""})=>{const o=null!=(e=null==(e=n.analysisIds)?void 0:e.flat(Infinity))?e:[];for(let e=0;e<o.length;e++)createExplanationIframe({analysisId:o[e],recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r});const a=createElement("div",{id:"floatingModalContainer",className:"floating-modal-container"},document.body);applyInitialPosition(a,n.initialPosition);var e=createElement("div",{className:"floating-modal-drag-handle",innerHTML:`<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
204
+ `},document.head))},getPendoPageUrl=e=>{var t;return(null==(t=null==(e=null==e?void 0:e.url)?void 0:e.get)?void 0:t.call(e))||window.location.href},stripOrigin=e=>e.replace(/^[a-z][a-z\d+.-]*:\/\/[^/?#]*/i,""),getRecordIdFromUrl=(e,t=window.location.href,n=()=>{})=>{e=t.match(e),e=null!=(t=null==e?void 0:e[1])?t:null;return n("[predict] recordId found: "+e),e},escapeRegexKeyword=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),buildRecordRegex=e=>new RegExp(`(?:^|[/?&=.#])${escapeRegexKeyword(e)}[/.=:_-]([a-zA-Z0-9-]+)`,"i"),resolveRecordId=(e,t=window.location.href,n=()=>{})=>{var i,r,{recordRegexPattern:e,recordRegexName:o}=e;if(e)try{var a=null!=(r=null==(i=t.match(new RegExp(e)))?void 0:i[1])?r:null;if(a)return n("[predict] recordId found via recordRegexPattern: "+a),a}catch(s){n("[predict] invalid recordRegexPattern, skipping: "+s)}return o?(r=null!=(i=null==(e=stripOrigin(t).match(buildRecordRegex(o)))?void 0:e[1])?i:null)?(n("[predict] recordId found via recordRegexName: "+r),r):(a=new RegExp(`/${o}/([a-zA-Z0-9]+)(?:/|$)`),getRecordIdFromUrl(a,t,n)):null},safeStringify=(e,t)=>{try{return JSON.stringify(e)}catch(n){return null!=t?t:""}},safeParse=(e,t,n=()=>{})=>{try{return JSON.parse(e)}catch(i){return n("[predict] JSON parse error: "+i),t}},getAvailableParams=e=>e.widgetId?{widgetId:e.widgetId,pipeVersion:e.pipeVersion,forceAccountId:e.forceAccountId}:e,buildQueryParams=e=>{var t=new URLSearchParams,e=getAvailableParams(e),n=Object.entries(e);t.set("pluginVersion",pluginVersion);for(let e=0;e<n.length;e++){var[i,r]=n[e];r!==undefined&&null!==r&&t.set(i,("object"==typeof r?safeStringify:String)(r))}return t.toString()},setupDragAndDrop=(n,r,i)=>{let o=!1,a=!1,s=!1,d=0,u=0,c=0,l=0,p=null;const h=r.querySelector("iframe"),e=e=>{var t;0===e.button&&(e.preventDefault(),o=!0,a=!1,n.classList.add("is-dragging"),r.classList.add("is-dragging"),h&&(h.style.pointerEvents="none"),t=r.getBoundingClientRect(),c=t.left,l=t.top,r.style.left=c+"px",r.style.top=l+"px",r.style.right="auto",r.style.bottom="auto",d=e.clientX,u=e.clientY,document.addEventListener("mousemove",f),document.addEventListener("mouseup",g))},f=e=>{if(o){const n=e.clientX-d,i=e.clientY-u;(Math.abs(n)>DRAG_THRESHOLD||Math.abs(i)>DRAG_THRESHOLD)&&(a=!0),p&&cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e=r.getBoundingClientRect(),t=Math.max(0,Math.min(c+n,window.innerWidth-e.width)),e=Math.max(0,Math.min(l+i,window.innerHeight-e.height));r.style.left=t+"px",r.style.top=e+"px"})}},g=e=>{var t;o&&(o=!1,n.classList.remove("is-dragging"),r.classList.remove("is-dragging"),h&&(h.style.pointerEvents=""),p&&cancelAnimationFrame(p),p=null,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g),!a)&&s&&h&&null!=(t=null===h||void 0===h?void 0:h.contentWindow)&&t.postMessage({type:"TRIGGER_EXPAND"},i)};return n.setCollapsedState=e=>{s=e,n.classList.toggle("is-collapsed",e)},n.addEventListener("mousedown",e),n.cleanup=()=>{n.removeEventListener("mousedown",e),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g),p&&cancelAnimationFrame(p)},n},createExplanationIframe=({analysisId:e,recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r=""})=>{var o="frameExplanation-"+e,a=(null!=(a=$(o))&&a.remove(),i+`/external/analysis/${e}/prediction/drilldown/`+t),i=buildQueryParams(n);createElement("iframe",{id:o,className:"frame-explanation",title:"Explanation",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,src:buildFrameSrc(a+"?"+i,r)},document.body)},applyInitialPosition=(e,t=DEFAULT_INITIAL_POSITION)=>{var n={TOP_LEFT:{top:FLOATING_MODAL_OFFSET,left:FLOATING_MODAL_OFFSET,bottom:"auto",right:"auto"},TOP_RIGHT:{top:FLOATING_MODAL_OFFSET,right:FLOATING_MODAL_OFFSET,bottom:"auto",left:"auto"},BOTTOM_LEFT:{bottom:FLOATING_MODAL_OFFSET,left:FLOATING_MODAL_OFFSET,top:"auto",right:"auto"},BOTTOM_RIGHT:{bottom:FLOATING_MODAL_OFFSET,right:FLOATING_MODAL_OFFSET,top:"auto",left:"auto"}};Object.assign(e.style,null!=(e=n[t])?e:n[DEFAULT_INITIAL_POSITION])},createFloatingModal=({recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r=""})=>{const o=null!=(e=null==(e=n.analysisIds)?void 0:e.flat(Infinity))?e:[];for(let e=0;e<o.length;e++)createExplanationIframe({analysisId:o[e],recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r});const a=createElement("div",{id:"floatingModalContainer",className:"floating-modal-container"},document.body);applyInitialPosition(a,n.initialPosition);var e=createElement("div",{className:"floating-modal-drag-handle",innerHTML:`<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
205
205
  <g fill="#EBEBEB">
206
206
  <circle cx="3.33" cy="6" r="1.5"/><circle cx="8" cy="6" r="1.5"/><circle cx="12.67" cy="6" r="1.5"/>
207
207
  <circle cx="3.33" cy="10" r="1.5"/><circle cx="8" cy="10" r="1.5"/><circle cx="12.67" cy="10" r="1.5"/>
208
208
  </g>
209
- </svg>`},a),s=i+"/external/analysis/prediction/summary/"+t,d=buildQueryParams(n),s=(createElement("iframe",{id:"frameFloatingModal",className:"frame-floating-modal",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,title:"Floating Modal",src:buildFrameSrc(s+"?"+d,r)},a),getFrameTargetOrigin(r,i));return a.dragHandle=setupDragAndDrop(e,a,s),()=>{var e,t;null!=(t=null==(e=a.dragHandle)?void 0:e.cleanup)&&t.call(e),a.remove();for(let e=0;e<o.length;e++){var n=$("frameExplanation-"+o[e]);n&&n.remove()}}},setupMessageListener=({token:l,forceAccountId:p,cleanup:h,pendo:f,predictBaseUrl:g,wrapperBase:m=""})=>{const v=getFrameTargetOrigin(m,g),e=({origin:e,data:i})=>{var t;if(((e=e)===g||m&&e===m)&&i&&"object"==typeof i){const{type:n,analysisId:r,height:o,width:a}=i,s=$("frameExplanation-"+r),d=$("floatingModalContainer"),u=()=>{d&&(d.style.height=o+"px",d.style.width=a+"px")},c=e=>{var t,n;d&&null!=(n=null==(t=d.dragHandle)?void 0:t.setCollapsedState)&&n.call(t,e)};e={MODAL_INITIALIZED:()=>{var n=$("frameFloatingModal");if(n){let e=null,t=null;var i=f.getConfigValue("retrieveIDPToken"),i=(f._.isFunction(i)&&(i=i())&&(e=i.idToken,t=i.extensionAPIKeys),null==(i=null==f?void 0:f.getVisitorId)?void 0:i.call(f)),r=null!=p?p:null==(r=null==f?void 0:f.getAccountId)?void 0:r.call(f);null!=(n=n.contentWindow)&&n.postMessage({type:"TOKEN_RECEIVED",token:l,idToken:e,extensionAPIKeys:t,visitorId:i,accountId:r},v)}},OPEN_EXPLANATION:()=>{var e;null!==s&&void 0!==s&&s.classList.add("is-visible"),null!=(e=null===s||void 0===s?void 0:s.contentWindow)&&e.postMessage(i,v)},CLOSE_EXPLANATION:()=>null===s||void 0===s?void 0:s.classList.remove("is-visible"),AUTH_ERROR_EXPLANATION:()=>{null!==s&&void 0!==s&&s.classList.remove("is-visible");var e=$("frameFloatingModal");e&&(e.src=e.src)},DATA_READY:()=>{null!==d&&void 0!==d&&d.classList.add("is-visible"),u();var t=i.analysisIds||[];for(let e=0;e<t.length;e++){var n=$("frameExplanation-"+t[e]);n&&n.classList.add("is-exists")}},AUTH_ERROR:()=>{null!==d&&void 0!==d&&d.classList.add("is-visible"),u()},CLOSE_FLOATING_MODAL:h,EXPAND_FLOATING_MODAL:()=>{u(),c(!1)},COLLAPSE_FLOATING_MODAL:()=>{u(),c(!0)}};n&&n in e&&null!=(t=null===e?void 0:e[n])&&t.call(e)}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},mapAnalysisIds=e=>null==e?void 0:e.map(e=>e.map(e=>e.analysisId)),fetchWidgetConfiguration=r=>__awaiter(void 0,void 0,void 0,function*(){var{token:e,predictBaseUrl:t,log:n}=r,i=__rest(r,["token","predictBaseUrl","log"]),e=yield new PredictApiService({baseUrl:getPredictApiBaseUrl(t),token:e}).getWidgetSettingsById(null!=(t=i.widgetId)?t:"",n);return e?Object.assign(Object.assign({},i),{analysisIds:mapAnalysisIds(e.analysesHierarchy),recordRegexPattern:e.recordRegexPattern,recordRegexName:e.recordRegexKeyword,initialPosition:e.initialPosition}):i}),predictGuidesScript=({step:o,pendo:a,cleanupArray:s,cleanup:d,log:u,designerServer:c})=>__awaiter(void 0,void 0,void 0,function*(){u("[predict] initializing");var e,t,n,i,r=null==o?void 0:o.containerId;injectStyles(r,u),0<s.length?u("[predict] cleanupArray is not empty"):c?(r=getPredictBaseUrl(c),(t=null==(t=o.guideElement.find(GUIDE_BUTTON_IDENTIFIER))?void 0:t[0])?(e=(t=safeParse(t.textContent,{},u))["token"],(t=__rest(t,["token"]))&&e?(t=null!=t&&t.widgetId?yield fetchWidgetConfiguration(Object.assign(Object.assign({},t),{token:e,predictBaseUrl:r,log:u})):t,(n=resolveRecordId(t,u))?(i=getFrameWrapperBase(a),u("[predict] predictBaseUrl: "+r+(i?", wrapping via "+i:"")),s.push(setupMessageListener({token:e,forceAccountId:t.forceAccountId,cleanup:d,pendo:a,predictBaseUrl:r,wrapperBase:i})),s.push(createFloatingModal({recordId:n,configuration:t,predictBaseUrl:r,wrapperBase:i}))):u("[predict] no recordId found in URL, aborting")):u("[predict] no configuration found, aborting")):u("[predict] no guide button found, aborting")):u("[predict] no designerServer found, aborting")}),PredictGuides=()=>{let o=null,a=[];const s=()=>{var e;null!=(e=null===o||void 0===o?void 0:o.log)&&e.debug("[predict] cleaning up");for(let e=0;e<a.length;e++)try{a[e]()}catch(t){}a=[]};return{name:"PredictGuides",initialize:(e,t)=>{var n=(o=t).ConfigReader,i="predictGuides",i=(n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i));if(i){const r=t.log.debug.bind(t.log);o.Events.urlChanged.on(s);n={name:"PredictFrameScript",script(e,t,n){var i=(null==(i=null==n?void 0:n.getConfigValue)?void 0:i.call(n,"designerServer"))||(null==(i=null==n?void 0:n.getConfigValue)?void 0:i.call(n,"server"));Promise$2.resolve(predictGuidesScript({step:e,pendo:n,cleanupArray:a,cleanup:s,log:r,designerServer:i}))["catch"](e=>{r("[predict] predictGuidesScript crashed, tearing down: "+e),s()}),this.on("unmounted",e=>{"hidden"!==e.reason&&s()})},test(e,t){e=e.name||"";return PREDICT_STEP_REGEX.test(e)}};o.GlobalRuntime.addGlobalScript(n)}},teardown:()=>{var e;s(),null!=(e=null==(e=null===o||void 0===o?void 0:o.Events)?void 0:e.urlChanged)&&e.off(s)}}},ASSISTANT_MESSAGE="assistantMessage",CONVERSATION_ID_URL_PATTERN="conversationIdUrlPattern",MESSAGE_CONTENT="messageContent",MESSAGE_ID_ATTR="messageIdAttr",MESSAGE_ID_PATTERN="messageIdPattern",MODEL_USED_ATTR="modelUsedAttr",REACTION_ACTIVE="reactionActive",STREAMING_ACTIVE="streamingActive",STREAMING_ACTIVE_ATTR="streamingActiveAttr",THUMB_DOWN="thumbDown",THUMB_UP="thumbUp",TURN_CONTAINER="turnContainer",USER_MESSAGE="userMessage",CUSTOM_AGENT_ID_URL_PATTERN="customAgentIdUrlPattern",CUSTOM_AGENT_ID="customAgentId",CUSTOM_AGENT_NAME="customAgentName",REQUIRED_SELECTORS=[ASSISTANT_MESSAGE,CONVERSATION_ID_URL_PATTERN,STREAMING_ACTIVE,TURN_CONTAINER,USER_MESSAGE],SUPPORTED_PRESETS=["chatgpt-full","gemini-full","claude-full","copilot-full","copilot-m365-full"],STREAMING_END_SETTLE_MS=500,SUBMISSION_START_RETRY_MS=1e3,SUBMISSION_START_MAX_ATTEMPTS=4,NEW_CONVERSATION_TTL_MS=3e5,NEW_CONVERSATION_KEY="pendo_pca_new_conv";class DOMConversation{static validateConfig(e){if(!Array.isArray(e))return REQUIRED_SELECTORS.slice();const t=new Set;for(const i of e)if(i&&i.type&&i.cssSelector){if(i.type===CONVERSATION_ID_URL_PATTERN)try{RegExp(i.cssSelector)}catch(n){continue}t.add(i.type)}return REQUIRED_SELECTORS.filter(e=>!t.has(e))}static supportedPreset(e){return-1!==SUPPORTED_PRESETS.indexOf(e)}constructor(e,t,n,i){this.selectors={},this.listeners=[],this.isActive=!0,this.observers=[],this.wasStreaming=!1,this.streamingEndTimer=null,this.submissionStartRetryTimer=null,this.requestNode=null,this.conversationIdRegex=null,this.customAgentIdRegex=null,this.messageIdRegex=null,this.lastReturnedMessageId=null,this.dom=e.dom,this._=e._,this.api=t,this.Sizzle=e.Sizzle,this.id=n,this._.isArray(i)||(this.api.log.error("cssSelectors must be an array, received: "+typeof i),i=[]),this._.each(i,e=>{e&&e.type&&(this.selectors[e.type]=e.cssSelector)}),this.conversationIdRegex=new RegExp(this.selectors[CONVERSATION_ID_URL_PATTERN]);t=this.selectors[CUSTOM_AGENT_ID_URL_PATTERN];if(t)try{this.customAgentIdRegex=new RegExp(t)}catch(r){this.api.log.error("bad customAgentIdUrlPattern "+t,{error:r})}e=this.selectors[MESSAGE_ID_PATTERN];if(e)try{this.messageIdRegex=new RegExp(e)}catch(r){this.api.log.error("bad messageIdPattern "+e,{error:r})}this.root=document.body,this.setupReactionListener(),this.setupStreamingObserver()}setupReactionListener(){(this.findSelector(THUMB_UP)||this.findSelector(THUMB_DOWN))&&(this.reactionClickHandler=this.handleReactionClick.bind(this),this.root.addEventListener("click",this.reactionClickHandler,!0))}handleReactionClick(t){t=t.target;if(t&&1===t.nodeType){var n=this.findSelector(THUMB_UP),i=this.findSelector(THUMB_DOWN),t=this.dom(t).closest(n+", "+i);if(t.length){i=this.Sizzle.matchesSelector(t[0],n),n=this.findSelector(REACTION_ACTIVE),n=n&&this.Sizzle.matchesSelector(t[0],n)?"unreact":i?"positive":"negative",i=this.findSelector(ASSISTANT_MESSAGE);let e=t.closest(i);e.length||(e=t.closest(this.findSelector(TURN_CONTAINER)).find(i)),this.emit("user_reaction",{agentId:this.id,messageId:this.getMessageId(e),content:n})}}}tryFlushNewConversation(){var e=+this.api.sessionStorage.getItem(NEW_CONVERSATION_KEY);e&&(this.api.sessionStorage.removeItem(NEW_CONVERSATION_KEY),Date.now()-e>NEW_CONVERSATION_TTL_MS||this.getConversationId()&&this.startStreamingEndTimer())}setupStreamingObserver(){this.wasStreaming=0<this.select(STREAMING_ACTIVE).length,this.stopStreamingEndTimer();var e=new(getZoneSafeMethod(this._,"MutationObserver"))(this.handleMutation.bind(this)),t=this.findSelector(STREAMING_ACTIVE_ATTR);e.observe(this.root,{childList:!0,subtree:!0,attributes:!0,attributeFilter:t?[t]:undefined}),this.observers.push(e)}handleMutation(){var e=0<this.select(STREAMING_ACTIVE).length;e!==this.wasStreaming&&(e?this.streamingEndTimer?this.stopStreamingEndTimer():(this.getConversationId()||this.api.sessionStorage.setItem(NEW_CONVERSATION_KEY,String(Date.now())),this.onSubmissionStart()):this.startStreamingEndTimer(),this.wasStreaming=e)}onSubmissionStart(e=1){this.requestNode=this.findLastRequestNode(),this.requestNode?this.handleUserMessage(this.requestNode):e<SUBMISSION_START_MAX_ATTEMPTS&&this.startSubmissionStartRetryTimer(e+1)}onSubmissionEnd(){this.stopSubmissionStartRetryTimer(),this.getConversationId()&&this.api.sessionStorage.removeItem(NEW_CONVERSATION_KEY);let e=this.requestNode;if(this.requestNode=null,!e){if(!(e=this.findLastRequestNode()))return;this.handleUserMessage(e)}var t=e[0];if(t){var n=this.select(ASSISTANT_MESSAGE);for(let e=0;e<n.length;e++){var i=n[e];t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING&&this.handleAssistantMessage(this.dom(i))}}}extractContent(e){let t=e;var n=this.findSelector(MESSAGE_CONTENT),e=(t=n&&(n=e.find(n)).length?n:t).text().trim();return e||t[0].textContent.trim()}getMessageId(e){var t=this.findSelector(MESSAGE_ID_ATTR);return t?e.attr(t):this.syntheticMessageId(e[0])}syntheticMessageId(t){if(t){var e=this.findSelector(USER_MESSAGE),e=e&&this.Sizzle.matchesSelector(t,e),n=e?"u":"a",i=this.select(e?USER_MESSAGE:ASSISTANT_MESSAGE);for(let e=0;e<i.length;e++)if(i[e]===t)return n+"-"+e}return undefined}handleUserMessage(e){this.emit("prompt",{agentId:this.id,messageId:this.getMessageId(e),content:this.extractContent(e)})}handleAssistantMessage(e){var t=this.findSelector(MODEL_USED_ATTR),t=t&&e.attr(t);this.emit("agent_response",{agentId:this.id,messageId:this.getMessageId(e),agentModelsUsed:t?[t]:[],content:this.extractContent(e)})}findLastRequestNode(){var e,t;return!this.getConversationId()||!(e=this._.last(this.select(USER_MESSAGE)))||(e=this.dom(e),!(t=this.getMessageId(e)))||this.messageIdRegex&&!this.messageIdRegex.test(t)||t===this.lastReturnedMessageId?null:(this.lastReturnedMessageId=t,e)}findSelector(e){return this.selectors[e]}select(e){return this.dom(this.findSelector(e),this.root)}getConversationId(){var e=location.href.match(this.conversationIdRegex);return e?e[1]!==undefined?e[1]:e[0]:null}getCustomAgentId(){if(!this.customAgentIdRegex)return undefined;let e=location.href;if(this.findSelector(CUSTOM_AGENT_ID)){var t=this.select(CUSTOM_AGENT_ID);if(!t.length)return undefined;e=t.attr("href")||""}t=e.match(this.customAgentIdRegex);return t?t[1]!==undefined?t[1]:t[0]:undefined}getCustomAgentName(){var e;return this.findSelector(CUSTOM_AGENT_NAME)&&(e=this.select(CUSTOM_AGENT_NAME)).length?e.text().trim():""}addCustomAgentInfo(e){var t=this.getCustomAgentId();t&&(e.customAgentId=t,t=this.getCustomAgentName())&&(e.customAgentName=t)}onSubmit(e){this.listeners.push(e)}emit(t,n){n.conversationId=this.getConversationId(),this.addCustomAgentInfo(n),this._.each(this.listeners,e=>e(t,n))}startStreamingEndTimer(){this.stopStreamingEndTimer(),this.streamingEndTimer=setTimeout$1(()=>{this.streamingEndTimer=null,this.onSubmissionEnd()},STREAMING_END_SETTLE_MS)}stopStreamingEndTimer(){this.streamingEndTimer&&(clearTimeout$1(this.streamingEndTimer),this.streamingEndTimer=null)}startSubmissionStartRetryTimer(e){this.stopSubmissionStartRetryTimer(),this.submissionStartRetryTimer=setTimeout$1(()=>{this.submissionStartRetryTimer=null,this.onSubmissionStart(e)},SUBMISSION_START_RETRY_MS)}stopSubmissionStartRetryTimer(){this.submissionStartRetryTimer&&(clearTimeout$1(this.submissionStartRetryTimer),this.submissionStartRetryTimer=null)}suspend(){this.isActive=!1}resume(){this.isActive=!0,this.tryFlushNewConversation()}teardown(){this._.each(this.observers,e=>e&&e.disconnect&&e.disconnect()),this.observers=[],this.reactionClickHandler&&this.root&&(this.root.removeEventListener("click",this.reactionClickHandler,!0),this.reactionClickHandler=null),this.stopStreamingEndTimer(),this.stopSubmissionStartRetryTimer(),this.listeners=[]}}function ConversationAnalytics(){let i,r,o,a,s=[],d=new Map;const u="aiAgents";return{name:"ConversationAnalytics",initialize:function(e,t){i=e,r=t,o=i._,a=r.log;e=r.ConfigReader;e.addOption(u,[e.sources.PENDO_CONFIG_SRC,e.sources.SNIPPET_SRC]),p(e.get(u)),null!=(t=r.Events.guidesLoaded)&&t.on(n)},teardown:function(){o.each(s,e=>e.teardown()),s=[],d.clear()},onConfigLoaded:p,observeConversation:h,sendConversationEvent:f,reEvaluatePageRules:n};function c(e,t="unknown"){let n=e;var i;return Array.isArray(e)?(i=o.filter(e,e=>e&&""!==e.trim()),n=o.map(i,e=>e.startsWith("//*/")?e.substring(1):e)):"string"==typeof e&&e.startsWith("//*/")&&(n=e.substring(1)),r.util.testPageRule(n,undefined,{logger:a,context:"agent",id:t})}function n(){o.each(s,e=>{t=e.id;var t=d.get(t);t&&c(t.pageRule,t.id)?e.resume():e.suspend()});const n=o.map(o.filter(s,e=>e.isActive),e=>e.id);var e=r.ConfigReader.get(u)||[];o.each(e,e=>{var t;l(e)&&(t=o.contains(n,e.id),c(e.pageRule,e.id))&&!t&&h(e)})}function l(e){return DOMConversation.supportedPreset(e.preset)}function p(e=[]){e&&o.isArray(e)&&0!==e.length&&(d.clear(),o.each(e,e=>{l(e)&&(d.set(e.id,e),c(e.pageRule,e.id))&&h(e)}))}function h(e){const{id:t,cssSelectors:n}=e;o.find(s,e=>e.id===t)||((e=DOMConversation.validateConfig(n)).length?a.error("aiAgent config missing required selectors",{agentId:t,missing:e}):((e=new DOMConversation(i,r,t,n)).onSubmit(f),s.push(e)))}function f(e,t){var n=o.find(s,e=>e.id===t.agentId);n&&!n.isActive||(t=o.extend({agentType:"conversation"},t),r.analytics.collectEvent(e,t,undefined,"agentic"))}}export{ConsoleCapture,ConversationAnalytics,Feedback,GuideMarkdown,NetworkCapture,PredictGuides,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
209
+ </svg>`},a),s=i+"/external/analysis/prediction/summary/"+t,d=buildQueryParams(n),s=(createElement("iframe",{id:"frameFloatingModal",className:"frame-floating-modal",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,title:"Floating Modal",src:buildFrameSrc(s+"?"+d,r)},a),getFrameTargetOrigin(r,i));return a.dragHandle=setupDragAndDrop(e,a,s),()=>{var e,t;null!=(t=null==(e=a.dragHandle)?void 0:e.cleanup)&&t.call(e),a.remove();for(let e=0;e<o.length;e++){var n=$("frameExplanation-"+o[e]);n&&n.remove()}}},setupMessageListener=({token:l,forceAccountId:p,cleanup:h,pendo:f,predictBaseUrl:g,wrapperBase:m=""})=>{const v=getFrameTargetOrigin(m,g),e=({origin:e,data:i})=>{var t;if(((e=e)===g||m&&e===m)&&i&&"object"==typeof i){const{type:n,analysisId:r,height:o,width:a}=i,s=$("frameExplanation-"+r),d=$("floatingModalContainer"),u=()=>{d&&(d.style.height=o+"px",d.style.width=a+"px")},c=e=>{var t,n;d&&null!=(n=null==(t=d.dragHandle)?void 0:t.setCollapsedState)&&n.call(t,e)};e={MODAL_INITIALIZED:()=>{var n=$("frameFloatingModal");if(n){let e=null,t=null;var i=f.getConfigValue("retrieveIDPToken"),i=(f._.isFunction(i)&&(i=i())&&(e=i.idToken,t=i.extensionAPIKeys),null==(i=null==f?void 0:f.getVisitorId)?void 0:i.call(f)),r=null!=p?p:null==(r=null==f?void 0:f.getAccountId)?void 0:r.call(f);null!=(n=n.contentWindow)&&n.postMessage({type:"TOKEN_RECEIVED",token:l,idToken:e,extensionAPIKeys:t,visitorId:i,accountId:r},v)}},OPEN_EXPLANATION:()=>{var e;null!==s&&void 0!==s&&s.classList.add("is-visible"),null!=(e=null===s||void 0===s?void 0:s.contentWindow)&&e.postMessage(i,v)},CLOSE_EXPLANATION:()=>null===s||void 0===s?void 0:s.classList.remove("is-visible"),AUTH_ERROR_EXPLANATION:()=>{null!==s&&void 0!==s&&s.classList.remove("is-visible");var e=$("frameFloatingModal");e&&(e.src=e.src)},DATA_READY:()=>{null!==d&&void 0!==d&&d.classList.add("is-visible"),u();var t=i.analysisIds||[];for(let e=0;e<t.length;e++){var n=$("frameExplanation-"+t[e]);n&&n.classList.add("is-exists")}},AUTH_ERROR:()=>{null!==d&&void 0!==d&&d.classList.add("is-visible"),u()},CLOSE_FLOATING_MODAL:h,EXPAND_FLOATING_MODAL:()=>{u(),c(!1)},COLLAPSE_FLOATING_MODAL:()=>{u(),c(!0)}};n&&n in e&&null!=(t=null===e?void 0:e[n])&&t.call(e)}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},mapAnalysisIds=e=>null==e?void 0:e.map(e=>e.map(e=>e.analysisId)),fetchWidgetConfiguration=r=>__awaiter(void 0,void 0,void 0,function*(){var{token:e,predictBaseUrl:t,log:n}=r,i=__rest(r,["token","predictBaseUrl","log"]),e=yield new PredictApiService({baseUrl:getPredictApiBaseUrl(t),token:e}).getWidgetSettingsById(null!=(t=i.widgetId)?t:"",n);return e?Object.assign(Object.assign({},i),{analysisIds:mapAnalysisIds(e.analysesHierarchy),recordRegexPattern:e.recordRegexPattern,recordRegexName:e.recordRegexKeyword,initialPosition:e.initialPosition}):i}),predictGuidesScript=({step:o,pendo:a,cleanupArray:s,cleanup:d,log:u,designerServer:c})=>__awaiter(void 0,void 0,void 0,function*(){u("[predict] initializing");var e,t,n,i,r=null==o?void 0:o.containerId;injectStyles(r,u),0<s.length?u("[predict] cleanupArray is not empty"):c?(r=getPredictBaseUrl(c),(t=null==(t=o.guideElement.find(GUIDE_BUTTON_IDENTIFIER))?void 0:t[0])?(e=(t=safeParse(t.textContent,{},u))["token"],(t=__rest(t,["token"]))&&e?(t=null!=t&&t.widgetId?yield fetchWidgetConfiguration(Object.assign(Object.assign({},t),{token:e,predictBaseUrl:r,log:u})):t,n=getPendoPageUrl(a),u("[predict] resolving recordId from "+n),(n=resolveRecordId(t,n,u))?(i=getFrameWrapperBase(a),u("[predict] predictBaseUrl: "+r+(i?", wrapping via "+i:"")),s.push(setupMessageListener({token:e,forceAccountId:t.forceAccountId,cleanup:d,pendo:a,predictBaseUrl:r,wrapperBase:i})),s.push(createFloatingModal({recordId:n,configuration:t,predictBaseUrl:r,wrapperBase:i}))):u("[predict] no recordId found in URL, aborting")):u("[predict] no configuration found, aborting")):u("[predict] no guide button found, aborting")):u("[predict] no designerServer found, aborting")}),PredictGuides=()=>{let o=null,a=[];const s=()=>{var e;null!=(e=null===o||void 0===o?void 0:o.log)&&e.debug("[predict] cleaning up");for(let e=0;e<a.length;e++)try{a[e]()}catch(t){}a=[]};return{name:"PredictGuides",initialize:(e,t)=>{var n=(o=t).ConfigReader,i="predictGuides",i=(n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i));if(i){const r=t.log.debug.bind(t.log);o.Events.urlChanged.on(s);n={name:"PredictFrameScript",script(e,t,n){var i=(null==(i=null==n?void 0:n.getConfigValue)?void 0:i.call(n,"designerServer"))||(null==(i=null==n?void 0:n.getConfigValue)?void 0:i.call(n,"server"));Promise$2.resolve(predictGuidesScript({step:e,pendo:n,cleanupArray:a,cleanup:s,log:r,designerServer:i}))["catch"](e=>{r("[predict] predictGuidesScript crashed, tearing down: "+e),s()}),this.on("unmounted",e=>{"hidden"!==e.reason&&s()})},test(e,t){e=e.name||"";return PREDICT_STEP_REGEX.test(e)}};o.GlobalRuntime.addGlobalScript(n)}},teardown:()=>{var e;s(),null!=(e=null==(e=null===o||void 0===o?void 0:o.Events)?void 0:e.urlChanged)&&e.off(s)}}},ASSISTANT_MESSAGE="assistantMessage",CONVERSATION_ID_URL_PATTERN="conversationIdUrlPattern",MESSAGE_CONTENT="messageContent",MESSAGE_ID_ATTR="messageIdAttr",MESSAGE_ID_PATTERN="messageIdPattern",MODEL_USED_ATTR="modelUsedAttr",REACTION_ACTIVE="reactionActive",STREAMING_ACTIVE="streamingActive",STREAMING_ACTIVE_ATTR="streamingActiveAttr",THUMB_DOWN="thumbDown",THUMB_UP="thumbUp",TURN_CONTAINER="turnContainer",USER_MESSAGE="userMessage",CUSTOM_AGENT_ID_URL_PATTERN="customAgentIdUrlPattern",CUSTOM_AGENT_ID="customAgentId",CUSTOM_AGENT_NAME="customAgentName",REQUIRED_SELECTORS=[ASSISTANT_MESSAGE,CONVERSATION_ID_URL_PATTERN,STREAMING_ACTIVE,TURN_CONTAINER,USER_MESSAGE],SUPPORTED_PRESETS=["chatgpt-full","gemini-full","claude-full","copilot-full","copilot-m365-full"],STREAMING_END_SETTLE_MS=500,SUBMISSION_START_RETRY_MS=1e3,SUBMISSION_START_MAX_ATTEMPTS=4,NEW_CONVERSATION_TTL_MS=3e5,NEW_CONVERSATION_KEY="pendo_pca_new_conv";class DOMConversation{static validateConfig(e){if(!Array.isArray(e))return REQUIRED_SELECTORS.slice();const t=new Set;for(const i of e)if(i&&i.type&&i.cssSelector){if(i.type===CONVERSATION_ID_URL_PATTERN)try{RegExp(i.cssSelector)}catch(n){continue}t.add(i.type)}return REQUIRED_SELECTORS.filter(e=>!t.has(e))}static supportedPreset(e){return-1!==SUPPORTED_PRESETS.indexOf(e)}constructor(e,t,n,i){this.selectors={},this.listeners=[],this.isActive=!0,this.observers=[],this.wasStreaming=!1,this.streamingEndTimer=null,this.submissionStartRetryTimer=null,this.requestNode=null,this.conversationIdRegex=null,this.customAgentIdRegex=null,this.messageIdRegex=null,this.lastReturnedMessageId=null,this.dom=e.dom,this._=e._,this.api=t,this.Sizzle=e.Sizzle,this.id=n,this._.isArray(i)||(this.api.log.error("cssSelectors must be an array, received: "+typeof i),i=[]),this._.each(i,e=>{e&&e.type&&(this.selectors[e.type]=e.cssSelector)}),this.conversationIdRegex=new RegExp(this.selectors[CONVERSATION_ID_URL_PATTERN]);t=this.selectors[CUSTOM_AGENT_ID_URL_PATTERN];if(t)try{this.customAgentIdRegex=new RegExp(t)}catch(r){this.api.log.error("bad customAgentIdUrlPattern "+t,{error:r})}e=this.selectors[MESSAGE_ID_PATTERN];if(e)try{this.messageIdRegex=new RegExp(e)}catch(r){this.api.log.error("bad messageIdPattern "+e,{error:r})}this.root=document.body,this.setupReactionListener(),this.setupStreamingObserver()}setupReactionListener(){(this.findSelector(THUMB_UP)||this.findSelector(THUMB_DOWN))&&(this.reactionClickHandler=this.handleReactionClick.bind(this),this.root.addEventListener("click",this.reactionClickHandler,!0))}handleReactionClick(t){t=t.target;if(t&&1===t.nodeType){var n=this.findSelector(THUMB_UP),i=this.findSelector(THUMB_DOWN),t=this.dom(t).closest(n+", "+i);if(t.length){i=this.Sizzle.matchesSelector(t[0],n),n=this.findSelector(REACTION_ACTIVE),n=n&&this.Sizzle.matchesSelector(t[0],n)?"unreact":i?"positive":"negative",i=this.findSelector(ASSISTANT_MESSAGE);let e=t.closest(i);e.length||(e=t.closest(this.findSelector(TURN_CONTAINER)).find(i)),this.emit("user_reaction",{agentId:this.id,messageId:this.getMessageId(e),content:n})}}}tryFlushNewConversation(){var e=+this.api.sessionStorage.getItem(NEW_CONVERSATION_KEY);e&&(this.api.sessionStorage.removeItem(NEW_CONVERSATION_KEY),Date.now()-e>NEW_CONVERSATION_TTL_MS||this.getConversationId()&&this.startStreamingEndTimer())}setupStreamingObserver(){this.wasStreaming=0<this.select(STREAMING_ACTIVE).length,this.stopStreamingEndTimer();var e=new(getZoneSafeMethod(this._,"MutationObserver"))(this.handleMutation.bind(this)),t=this.findSelector(STREAMING_ACTIVE_ATTR);e.observe(this.root,{childList:!0,subtree:!0,attributes:!0,attributeFilter:t?[t]:undefined}),this.observers.push(e)}handleMutation(){var e=0<this.select(STREAMING_ACTIVE).length;e!==this.wasStreaming&&(e?this.streamingEndTimer?this.stopStreamingEndTimer():(this.getConversationId()||this.api.sessionStorage.setItem(NEW_CONVERSATION_KEY,String(Date.now())),this.onSubmissionStart()):this.startStreamingEndTimer(),this.wasStreaming=e)}onSubmissionStart(e=1){this.requestNode=this.findLastRequestNode(),this.requestNode?this.handleUserMessage(this.requestNode):e<SUBMISSION_START_MAX_ATTEMPTS&&this.startSubmissionStartRetryTimer(e+1)}onSubmissionEnd(){this.stopSubmissionStartRetryTimer(),this.getConversationId()&&this.api.sessionStorage.removeItem(NEW_CONVERSATION_KEY);let e=this.requestNode;if(this.requestNode=null,!e){if(!(e=this.findLastRequestNode()))return;this.handleUserMessage(e)}var t=e[0];if(t){var n=this.select(ASSISTANT_MESSAGE);for(let e=0;e<n.length;e++){var i=n[e];t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING&&this.handleAssistantMessage(this.dom(i))}}}extractContent(e){let t=e;var n=this.findSelector(MESSAGE_CONTENT),e=(t=n&&(n=e.find(n)).length?n:t).text().trim();return e||t[0].textContent.trim()}getMessageId(e){var t=this.findSelector(MESSAGE_ID_ATTR);return t?e.attr(t):this.syntheticMessageId(e[0])}syntheticMessageId(t){if(t){var e=this.findSelector(USER_MESSAGE),e=e&&this.Sizzle.matchesSelector(t,e),n=e?"u":"a",i=this.select(e?USER_MESSAGE:ASSISTANT_MESSAGE);for(let e=0;e<i.length;e++)if(i[e]===t)return n+"-"+e}return undefined}handleUserMessage(e){this.emit("prompt",{agentId:this.id,messageId:this.getMessageId(e),content:this.extractContent(e)})}handleAssistantMessage(e){var t=this.findSelector(MODEL_USED_ATTR),t=t&&e.attr(t);this.emit("agent_response",{agentId:this.id,messageId:this.getMessageId(e),agentModelsUsed:t?[t]:[],content:this.extractContent(e)})}findLastRequestNode(){var e,t;return!this.getConversationId()||!(e=this._.last(this.select(USER_MESSAGE)))||(e=this.dom(e),!(t=this.getMessageId(e)))||this.messageIdRegex&&!this.messageIdRegex.test(t)||t===this.lastReturnedMessageId?null:(this.lastReturnedMessageId=t,e)}findSelector(e){return this.selectors[e]}select(e){return this.dom(this.findSelector(e),this.root)}getConversationId(){var e=location.href.match(this.conversationIdRegex);return e?e[1]!==undefined?e[1]:e[0]:null}getCustomAgentId(){if(!this.customAgentIdRegex)return undefined;let e=location.href;if(this.findSelector(CUSTOM_AGENT_ID)){var t=this.select(CUSTOM_AGENT_ID);if(!t.length)return undefined;e=t.attr("href")||""}t=e.match(this.customAgentIdRegex);return t?t[1]!==undefined?t[1]:t[0]:undefined}getCustomAgentName(){var e;return this.findSelector(CUSTOM_AGENT_NAME)&&(e=this.select(CUSTOM_AGENT_NAME)).length?e.text().trim():""}addCustomAgentInfo(e){var t=this.getCustomAgentId();t&&(e.customAgentId=t,t=this.getCustomAgentName())&&(e.customAgentName=t)}onSubmit(e){this.listeners.push(e)}emit(t,n){n.conversationId=this.getConversationId(),this.addCustomAgentInfo(n),this._.each(this.listeners,e=>e(t,n))}startStreamingEndTimer(){this.stopStreamingEndTimer(),this.streamingEndTimer=setTimeout$1(()=>{this.streamingEndTimer=null,this.onSubmissionEnd()},STREAMING_END_SETTLE_MS)}stopStreamingEndTimer(){this.streamingEndTimer&&(clearTimeout$1(this.streamingEndTimer),this.streamingEndTimer=null)}startSubmissionStartRetryTimer(e){this.stopSubmissionStartRetryTimer(),this.submissionStartRetryTimer=setTimeout$1(()=>{this.submissionStartRetryTimer=null,this.onSubmissionStart(e)},SUBMISSION_START_RETRY_MS)}stopSubmissionStartRetryTimer(){this.submissionStartRetryTimer&&(clearTimeout$1(this.submissionStartRetryTimer),this.submissionStartRetryTimer=null)}suspend(){this.isActive=!1}resume(){this.isActive=!0,this.tryFlushNewConversation()}teardown(){this._.each(this.observers,e=>e&&e.disconnect&&e.disconnect()),this.observers=[],this.reactionClickHandler&&this.root&&(this.root.removeEventListener("click",this.reactionClickHandler,!0),this.reactionClickHandler=null),this.stopStreamingEndTimer(),this.stopSubmissionStartRetryTimer(),this.listeners=[]}}function ConversationAnalytics(){let i,r,o,a,s=[],d=new Map;const u="aiAgents";return{name:"ConversationAnalytics",initialize:function(e,t){i=e,r=t,o=i._,a=r.log;e=r.ConfigReader;e.addOption(u,[e.sources.PENDO_CONFIG_SRC,e.sources.SNIPPET_SRC]),p(e.get(u)),null!=(t=r.Events.guidesLoaded)&&t.on(n)},teardown:function(){o.each(s,e=>e.teardown()),s=[],d.clear()},onConfigLoaded:p,observeConversation:h,sendConversationEvent:f,reEvaluatePageRules:n};function c(e,t="unknown"){let n=e;var i;return Array.isArray(e)?(i=o.filter(e,e=>e&&""!==e.trim()),n=o.map(i,e=>e.startsWith("//*/")?e.substring(1):e)):"string"==typeof e&&e.startsWith("//*/")&&(n=e.substring(1)),r.util.testPageRule(n,undefined,{logger:a,context:"agent",id:t})}function n(){o.each(s,e=>{t=e.id;var t=d.get(t);t&&c(t.pageRule,t.id)?e.resume():e.suspend()});const n=o.map(o.filter(s,e=>e.isActive),e=>e.id);var e=r.ConfigReader.get(u)||[];o.each(e,e=>{var t;l(e)&&(t=o.contains(n,e.id),c(e.pageRule,e.id))&&!t&&h(e)})}function l(e){return DOMConversation.supportedPreset(e.preset)}function p(e=[]){e&&o.isArray(e)&&0!==e.length&&(d.clear(),o.each(e,e=>{l(e)&&(d.set(e.id,e),c(e.pageRule,e.id))&&h(e)}))}function h(e){const{id:t,cssSelectors:n}=e;o.find(s,e=>e.id===t)||((e=DOMConversation.validateConfig(n)).length?a.error("aiAgent config missing required selectors",{agentId:t,missing:e}):((e=new DOMConversation(i,r,t,n)).onSubmit(f),s.push(e)))}function f(e,t){var n=o.find(s,e=>e.id===t.agentId);n&&!n.isActive||(t=o.extend({agentType:"conversation"},t),r.analytics.collectEvent(e,t,undefined,"agentic"))}}export{ConsoleCapture,ConversationAnalytics,Feedback,GuideMarkdown,NetworkCapture,PredictGuides,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
package/dist/servers.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "au": {
3
3
  "server": "https://app.au.pendo.io",
4
4
  "assetHost": "cdn.au.pendo.io",
5
- "assetPath": "agent/releases/2.350.0",
5
+ "assetPath": "agent/releases/2.350.1",
6
6
  "env": "prod-au",
7
7
  "designerServer": "https://app.au.pendo.io",
8
8
  "globalBucket": "pendo-au-static",
@@ -11,7 +11,7 @@
11
11
  "eu": {
12
12
  "server": "https://app.eu.pendo.io",
13
13
  "assetHost": "cdn.eu.pendo.io",
14
- "assetPath": "agent/releases/2.350.0",
14
+ "assetPath": "agent/releases/2.350.1",
15
15
  "env": "prod-eu",
16
16
  "designerServer": "https://app.eu.pendo.io",
17
17
  "globalBucket": "pendo-eu-static",
@@ -20,7 +20,7 @@
20
20
  "gov": {
21
21
  "server": "https://app.gov.pendo.io",
22
22
  "assetHost": "cdn.gov.pendo.io",
23
- "assetPath": "agent/releases/2.350.0",
23
+ "assetPath": "agent/releases/2.350.1",
24
24
  "env": "prod-gov",
25
25
  "designerServer": "https://app.gov.pendo.io",
26
26
  "globalBucket": "pendo-govramp-static",
@@ -29,7 +29,7 @@
29
29
  "hsbc": {
30
30
  "server": "https://app.hsbc.pendo.io",
31
31
  "assetHost": "cdn.hsbc.pendo.io",
32
- "assetPath": "agent/releases/2.350.0",
32
+ "assetPath": "agent/releases/2.350.1",
33
33
  "env": "prod-hsbc",
34
34
  "designerServer": "https://app.hsbc.pendo.io",
35
35
  "globalBucket": "pendo-hsbc-static",
@@ -38,7 +38,7 @@
38
38
  "io": {
39
39
  "server": "https://app.pendo.io",
40
40
  "assetHost": "cdn.pendo.io",
41
- "assetPath": "agent/releases/2.350.0",
41
+ "assetPath": "agent/releases/2.350.1",
42
42
  "env": "prod-io",
43
43
  "designerServer": "https://app.pendo.io",
44
44
  "globalBucket": "pendo-io-static",
@@ -47,7 +47,7 @@
47
47
  "jpn": {
48
48
  "server": "https://app.jpn.pendo.io",
49
49
  "assetHost": "cdn.jpn.pendo.io",
50
- "assetPath": "agent/releases/2.350.0",
50
+ "assetPath": "agent/releases/2.350.1",
51
51
  "env": "prod-jpn",
52
52
  "designerServer": "https://app.jpn.pendo.io",
53
53
  "globalBucket": "pendo-jp-prod-static",
@@ -56,7 +56,7 @@
56
56
  "tv": {
57
57
  "server": "https://app.tv.pendo.io",
58
58
  "assetHost": "cdn.tv.pendo.io",
59
- "assetPath": "agent/releases/2.350.0",
59
+ "assetPath": "agent/releases/2.350.1",
60
60
  "env": "prod-tv",
61
61
  "designerServer": "https://app.tv.pendo.io",
62
62
  "globalBucket": "pendo-tv-static",
@@ -65,7 +65,7 @@
65
65
  "us1": {
66
66
  "server": "https://us1.app.pendo.io",
67
67
  "assetHost": "us1.cdn.pendo.io",
68
- "assetPath": "agent/releases/2.350.0",
68
+ "assetPath": "agent/releases/2.350.1",
69
69
  "env": "prod-us1",
70
70
  "designerServer": "https://us1.app.pendo.io",
71
71
  "globalBucket": "pendo-us1-static",
package/package.json CHANGED
@@ -12,5 +12,5 @@
12
12
  "engines": {
13
13
  "node": ">=12"
14
14
  },
15
- "version": "2.350.0"
15
+ "version": "2.350.1"
16
16
  }